webpackJsonp([0],{"+2+s":function(t,e,n){"use strict";var i=n("Ds5P"),r=n("49qz")(!0);i(i.P,"String",{at:function(t){return r(this,t)}})},"+AsZ":function(t,e,n){t.exports=n("sh6c")},"+CM9":function(t,e,n){"use strict";var i=n("Ds5P"),r=n("ot5s")(!1),o=[].indexOf,a=!!o&&1/[1].indexOf(1,-0)<0;i(i.P+i.F*(a||!n("NNrz")(o)),"Array",{indexOf:function(t){return a?o.apply(this,arguments)||0:r(this,t,arguments[1])}})},"+E39":function(t,e,n){t.exports=!n("S82l")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},"+Mt+":function(t,e,n){"use strict";var i=n("Ds5P"),r=n("7gX0"),o=n("OzIq"),a=n("7O1s"),s=n("nphH");i(i.P+i.R,"Promise",{finally:function(t){var e=a(this,r.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},"+ZMJ":function(t,e,n){var i=n("lOnJ");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},"+tPU":function(t,e,n){n("xGkn");for(var i=n("7KvD"),r=n("hJx8"),o=n("/bQp"),a=n("dSzd")("toStringTag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=i[l],h=u&&u.prototype;h&&!h[a]&&r(h,a,l),o[l]=o.Array}},"+vXH":function(t,e,n){n("77Ug")("Float64",8,function(t){return function(e,n,i){return t(this,e,n,i)}})},"+yjc":function(t,e,n){var i=n("UKM+");n("3i66")("isSealed",function(t){return function(e){return!i(e)||!!t&&t(e)}})},"//Fk":function(t,e,n){t.exports={default:n("U5ju"),__esModule:!0}},"/bQp":function(t,e){t.exports={}},"/whu":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},"07k+":function(t,e,n){for(var i,r=n("OzIq"),o=n("2p1q"),a=n("ulTY"),s=a("typed_array"),c=a("view"),l=!(!r.ArrayBuffer||!r.DataView),u=l,h=0,d="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");h<9;)(i=r[d[h++]])?(o(i.prototype,s,!0),o(i.prototype,c,!0)):u=!1;t.exports={ABV:l,CONSTR:u,TYPED:s,VIEW:c}},"0Rih":function(t,e,n){"use strict";var i=n("OzIq"),r=n("Ds5P"),o=n("R3AP"),a=n("A16L"),s=n("1aA0"),c=n("vmSO"),l=n("9GpA"),u=n("UKM+"),h=n("zgIt"),d=n("qkyc"),f=n("yYvK"),p=n("kic5");t.exports=function(t,e,n,m,v,g){var y=i[t],b=y,x=v?"set":"add",_=b&&b.prototype,w={},S=function(t){var e=_[t];o(_,t,"delete"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(g&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return g&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,n){return e.call(this,0===t?0:t,n),this})};if("function"==typeof b&&(g||_.forEach&&!h(function(){(new b).entries().next()}))){var T=new b,E=T[x](g?{}:-0,1)!=T,M=h(function(){T.has(1)}),C=d(function(t){new b(t)}),L=!g&&h(function(){for(var t=new b,e=5;e--;)t[x](e,e);return!t.has(-0)});C||((b=e(function(e,n){l(e,b,t);var i=p(new y,e,b);return void 0!=n&&c(n,v,i[x],i),i})).prototype=_,_.constructor=b),(M||L)&&(S("delete"),S("has"),v&&S("get")),(L||E)&&S(x),g&&_.clear&&delete _.clear}else b=m.getConstructor(e,t,v,x),a(b.prototype,n),s.NEED=!0;return f(b,t),w[t]=b,r(r.G+r.W+r.F*(b!=y),w),g||m.setStrong(b,t,v),b}},"0j1G":function(t,e,n){"use strict";var i=n("Ds5P");t.exports=function(t){i(i.S,t,{of:function(){for(var t=arguments.length,e=new Array(t);t--;)e[t]=arguments[t];return new this(e)}})}},"0pGU":function(t,e,n){"use strict";var i=n("DIVP");t.exports=function(){var t=i(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},"1A13":function(t,e,n){"use strict";var i=n("49qz")(!0);n("uc2A")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},"1ETD":function(t,e,n){var i=n("kkCw")("match");t.exports=function(t){var e=/./;try{"/./"[t](e)}catch(n){try{return e[i]=!1,!"/./"[t](e)}catch(t){}}return!0}},"1aA0":function(t,e,n){var i=n("ulTY")("meta"),r=n("UKM+"),o=n("WBcL"),a=n("lDLk").f,s=0,c=Object.isExtensible||function(){return!0},l=!n("zgIt")(function(){return c(Object.preventExtensions({}))}),u=function(t){a(t,i,{value:{i:"O"+ ++s,w:{}}})},h=t.exports={KEY:i,NEED:!1,fastKey:function(t,e){if(!r(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!o(t,i)){if(!c(t))return"F";if(!e)return"E";u(t)}return t[i].i},getWeak:function(t,e){if(!o(t,i)){if(!c(t))return!0;if(!e)return!1;u(t)}return t[i].w},onFreeze:function(t){return l&&h.NEED&&c(t)&&!o(t,i)&&u(t),t}}},"1ip3":function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},"1uLP":function(t,e,n){var i=n("Ds5P");i(i.G+i.W+i.F*!n("07k+").ABV,{DataView:n("LrcN").DataView})},"2KxR":function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},"2VSL":function(t,e,n){var i=n("BbyF"),r=n("xAdt"),o=n("/whu");t.exports=function(t,e,n,a){var s=String(o(t)),c=s.length,l=void 0===n?" ":String(n),u=i(e);if(u<=c||""==l)return s;var h=u-c,d=r.call(l,Math.ceil(h/l.length));return d.length>h&&(d=d.slice(0,h)),a?d+s:s+d}},"2p1q":function(t,e,n){var i=n("lDLk"),r=n("fU25");t.exports=n("bUqO")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},"32VL":function(t,e,n){"use strict";var i,r,o=n("0pGU"),a=RegExp.prototype.exec,s=String.prototype.replace,c=a,l=(i=/a/,r=/b*/g,a.call(i,"a"),a.call(r,"a"),0!==i.lastIndex||0!==r.lastIndex),u=void 0!==/()??/.exec("")[1];(l||u)&&(c=function(t){var e,n,i,r,c=this;return u&&(n=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),l&&(e=c.lastIndex),i=a.call(c,t),l&&i&&(c.lastIndex=c.global?i.index+i[0].length:e),u&&i&&i.length>1&&s.call(i[0],n,function(){for(r=1;r<arguments.length-2;r++)void 0===arguments[r]&&(i[r]=void 0)}),i}),t.exports=c},"3Eo+":function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},"3QrE":function(t,e,n){var i=n("Ds5P");i(i.P,"Function",{bind:n("ZtwE")})},"3X7g":function(t,e,n){"use strict";(function(t){e.c=c,e.b=function(t){c(function(){c(t)})},e.a=function(t){s.call(o,t)};var i=n("o69Z"),r=Date.now();var o=i.i?t:window,a=o.requestAnimationFrame||function(t){var e=Date.now(),n=Math.max(0,16-(e-r)),i=setTimeout(t,n);return r=e+n,i},s=o.cancelAnimationFrame||o.clearTimeout;function c(t){return a.call(o,t)}}).call(e,n("DuR2"))},"3fs2":function(t,e,n){var i=n("RY/4"),r=n("dSzd")("iterator"),o=n("/bQp");t.exports=n("FeBl").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},"3g/S":function(t,e,n){var i=n("OzIq"),r=n("7gX0"),o=n("V3l/"),a=n("M8WE"),s=n("lDLk").f;t.exports=function(t){var e=r.Symbol||(r.Symbol=o?{}:i.Symbol||{});"_"==t.charAt(0)||t in e||s(e,t,{value:a.f(t)})}},"3i66":function(t,e,n){var i=n("Ds5P"),r=n("7gX0"),o=n("zgIt");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},"3q4u":function(t,e,n){var i=n("wCso"),r=n("DIVP"),o=i.key,a=i.map,s=i.store;i.exp({deleteMetadata:function(t,e){var n=arguments.length<3?void 0:o(arguments[2]),i=a(r(e),n,!1);if(void 0===i||!i.delete(t))return!1;if(i.size)return!0;var c=s.get(e);return c.delete(n),!!c.size||s.delete(e)}})},"3s83":function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{RAD_PER_DEG:180/Math.PI})},"41xE":function(t,e,n){var i=n("OzIq").navigator;t.exports=i&&i.userAgent||""},"49qz":function(t,e,n){var i=n("oeih"),r=n("/whu");t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),c=i(n),l=s.length;return c<0||c>=l?t?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},"4IZP":function(t,e){t.exports=Object.is||function(t,e){return t===e?0!==t||1/t==1/e:t!=t&&e!=e}},"4M2W":function(t,e,n){n("A0n/"),n("i68Q"),n("QzLV"),n("Hhm4"),n("C+4B"),n("W4Z6"),n("tJwI"),n("eC2H"),n("VTn2"),n("W/IU"),n("Y5ex"),n("WpPb"),n("+yjc"),n("gPva"),n("n12u"),n("nRs1"),n("jrHM"),n("gYYG"),n("3QrE"),n("EuXz"),n("PbPd"),n("S+E/"),n("EvFb"),n("QBuC"),n("QWLi"),n("ZRJK"),n("Stuz"),n("yuXV"),n("XtiL"),n("LG56"),n("A1ng"),n("WiIn"),n("aJ2J"),n("altv"),n("dULJ"),n("v2lb"),n("7Jvp"),n("lyhN"),n("kBOG"),n("xONB"),n("LlNE"),n("9xIj"),n("m6Yj"),n("wrs0"),n("Lqg1"),n("1ip3"),n("pWGb"),n("N4KQ"),n("Hl+4"),n("MjHD"),n("SRCy"),n("H0mh"),n("bqOW"),n("F3sI"),n("mhn7"),n("1A13"),n("Racj"),n("Y1S0"),n("Gh7F"),n("tqSY"),n("CvWX"),n("8Np7"),n("R4pa"),n("4RlI"),n("iM2X"),n("J+j9"),n("82of"),n("X/Hz"),n("eVIH"),n("UJiG"),n("SU+a"),n("5iw+"),n("EWrS"),n("J2ob"),n("QaEu"),n("8fhx"),n("UbXY"),n("Rk41"),n("4Q0w"),n("IMUI"),n("beEN"),n("xMpm"),n("j42X"),n("81dZ"),n("uDYd"),n("CEO+"),n("w6W7"),n("fOdq"),n("wVdn"),n("Nkrw"),n("wnRD"),n("lkT3"),n("+CM9"),n("oHKp"),n("9vc3"),n("No4x"),n("WpTh"),n("U6qc"),n("Q/CP"),n("WgSQ"),n("lnZN"),n("Jbuy"),n("FaZr"),n("pd+2"),n("MfeA"),n("VjuZ"),n("qwQ3"),n("mJx5"),n("y9m4"),n("MsuQ"),n("dSUw"),n("ZDXm"),n("V/H1"),n("9mmO"),n("1uLP"),n("52Wt"),n("TFWu"),n("MyjO"),n("qtRy"),n("THnP"),n("K0JP"),n("NfZy"),n("dTzs"),n("+vXH"),n("CVR+"),n("vmSu"),n("4ZU1"),n("yx1U"),n("X7aK"),n("SPtU"),n("A52B"),n("PuTd"),n("dm+7"),n("JG34"),n("Rw4K"),n("9mGU"),n("bUY0"),n("mTp7"),n("gbyG"),n("oF0V"),n("v90c"),n("+2+s"),n("smQ+"),n("m8F4"),n("xn9I"),n("LRL/"),n("sc7i"),n("9Yib"),n("vu/c"),n("zmx7"),n("YVn/"),n("FKfb"),n("oYp4"),n("dxQb"),n("xCpI"),n("AkTE"),n("h7Xi"),n("arGp"),n("JJ3w"),n("qZb+"),n("La7N"),n("BOYP"),n("4rmF"),n("Ygg6"),n("6Xxs"),n("qdHU"),n("DQfQ"),n("j/Lv"),n("U+VG"),n("X6NR"),n("W0pi"),n("taNN"),n("vnWP"),n("R3KI"),n("6iMJ"),n("B3Xn"),n("3s83"),n("F1ui"),n("uEEG"),n("i039"),n("H7zx"),n("+Mt+"),n("QcWB"),n("yJ2x"),n("3q4u"),n("NHaJ"),n("v3hU"),n("zZHq"),n("vsh6"),n("8WbS"),n("yOtE"),n("EZ+5"),n("aM0T"),n("nh2o"),n("v8VU"),n("dich"),n("fx22"),t.exports=n("7gX0")},"4PMK":function(t,e,n){"use strict";e.a=function(t){if(!Object(r.e)(t))return;return t=String(t),Object(o.b)(t)?t+"px":t},e.b=function(t){if("number"==typeof t)return t;if(r.d){if(-1!==t.indexOf("rem"))return function(t){return+(t=t.replace(/rem/g,""))*function(){if(!i){var t=document.documentElement,e=t.style.fontSize||window.getComputedStyle(t).fontSize;i=parseFloat(e)}return i}()}(t);if(-1!==t.indexOf("vw"))return function(t){return+(t=t.replace(/vw/g,""))*window.innerWidth/100}(t);if(-1!==t.indexOf("vh"))return function(t){return+(t=t.replace(/vh/g,""))*window.innerHeight/100}(t)}return parseFloat(t)};var i,r=n("o69Z"),o=n("mRXp")},"4Q0w":function(t,e,n){var i=n("kkCw")("toPrimitive"),r=Date.prototype;i in r||n("2p1q")(r,i,n("jB26"))},"4RlI":function(t,e,n){"use strict";n("y325")("blink",function(t){return function(){return t(this,"blink","","")}})},"4ZU1":function(t,e,n){var i=n("lDLk"),r=n("Ds5P"),o=n("DIVP"),a=n("s4j0");r(r.S+r.F*n("zgIt")(function(){Reflect.defineProperty(i.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(t,e,n){o(t),e=a(e,!0),o(n);try{return i.f(t,e,n),!0}catch(t){return!1}}})},"4mcu":function(t,e){t.exports=function(){}},"4rmF":function(t,e,n){n("iKpr")("Map")},"52Wt":function(t,e,n){n("77Ug")("Int8",1,function(t){return function(e,n,i){return t(this,e,n,i)}})},"52gC":function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on  "+t);return t}},"54/E":function(t,e,n){"use strict";e.a=o;var i=n("o69Z"),r=Object.prototype.hasOwnProperty;function o(t,e){return Object.keys(e).forEach(function(n){!function(t,e,n){var a=e[n];Object(i.e)(a)&&(r.call(t,n)&&Object(i.g)(a)?t[n]=o(Object(t[n]),e[n]):t[n]=a)}(t,e,n)}),t}},"5iw+":function(t,e,n){"use strict";n("y325")("strike",function(t){return function(){return t(this,"strike","","")}})},"6Xxs":function(t,e,n){n("iKpr")("WeakMap")},"6iMJ":function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{isubh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)-(i>>>0)-((~r&o|~(r^o)&r-o>>>0)>>>31)|0}})},"73qY":function(t,e,n){t.exports=n("VWgF")("native-function-to-string",Function.toString)},"77Pl":function(t,e,n){var i=n("EqjI");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},"77Ug":function(t,e,n){"use strict";if(n("bUqO")){var i=n("V3l/"),r=n("OzIq"),o=n("zgIt"),a=n("Ds5P"),s=n("07k+"),c=n("LrcN"),l=n("rFzY"),u=n("9GpA"),h=n("fU25"),d=n("2p1q"),f=n("A16L"),p=n("oeih"),m=n("BbyF"),v=n("8D8H"),g=n("zo/l"),y=n("s4j0"),b=n("WBcL"),x=n("wC1N"),_=n("UKM+"),w=n("FryR"),S=n("9vb1"),T=n("7ylX"),E=n("KOrd"),M=n("WcO1").f,C=n("SHe9"),L=n("ulTY"),O=n("kkCw"),k=n("LhTa"),P=n("ot5s"),A=n("7O1s"),I=n("WgSQ"),D=n("bN1p"),R=n("qkyc"),B=n("CEne"),N=n("zCYm"),j=n("DPsE"),z=n("lDLk"),F=n("x9zv"),V=z.f,U=F.f,G=r.RangeError,$=r.TypeError,H=r.Uint8Array,W=Array.prototype,q=c.ArrayBuffer,X=c.DataView,Y=k(0),K=k(2),Z=k(3),J=k(4),Q=k(5),tt=k(6),et=P(!0),nt=P(!1),it=I.values,rt=I.keys,ot=I.entries,at=W.lastIndexOf,st=W.reduce,ct=W.reduceRight,lt=W.join,ut=W.sort,ht=W.slice,dt=W.toString,ft=W.toLocaleString,pt=O("iterator"),mt=O("toStringTag"),vt=L("typed_constructor"),gt=L("def_constructor"),yt=s.CONSTR,bt=s.TYPED,xt=s.VIEW,_t=k(1,function(t,e){return Mt(A(t,t[gt]),e)}),wt=o(function(){return 1===new H(new Uint16Array([1]).buffer)[0]}),St=!!H&&!!H.prototype.set&&o(function(){new H(1).set({})}),Tt=function(t,e){var n=p(t);if(n<0||n%e)throw G("Wrong offset!");return n},Et=function(t){if(_(t)&&bt in t)return t;throw $(t+" is not a typed array!")},Mt=function(t,e){if(!(_(t)&&vt in t))throw $("It is not a typed array constructor!");return new t(e)},Ct=function(t,e){return Lt(A(t,t[gt]),e)},Lt=function(t,e){for(var n=0,i=e.length,r=Mt(t,i);i>n;)r[n]=e[n++];return r},Ot=function(t,e,n){V(t,e,{get:function(){return this._d[n]}})},kt=function(t){var e,n,i,r,o,a,s=w(t),c=arguments.length,u=c>1?arguments[1]:void 0,h=void 0!==u,d=C(s);if(void 0!=d&&!S(d)){for(a=d.call(s),i=[],e=0;!(o=a.next()).done;e++)i.push(o.value);s=i}for(h&&c>2&&(u=l(u,arguments[2],2)),e=0,n=m(s.length),r=Mt(this,n);n>e;e++)r[e]=h?u(s[e],e):s[e];return r},Pt=function(){for(var t=0,e=arguments.length,n=Mt(this,e);e>t;)n[t]=arguments[t++];return n},At=!!H&&o(function(){ft.call(new H(1))}),It=function(){return ft.apply(At?ht.call(Et(this)):Et(this),arguments)},Dt={copyWithin:function(t,e){return j.call(Et(this),t,e,arguments.length>2?arguments[2]:void 0)},every:function(t){return J(Et(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return N.apply(Et(this),arguments)},filter:function(t){return Ct(this,K(Et(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return Q(Et(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Et(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){Y(Et(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return nt(Et(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return et(Et(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return lt.apply(Et(this),arguments)},lastIndexOf:function(t){return at.apply(Et(this),arguments)},map:function(t){return _t(Et(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return st.apply(Et(this),arguments)},reduceRight:function(t){return ct.apply(Et(this),arguments)},reverse:function(){for(var t,e=Et(this).length,n=Math.floor(e/2),i=0;i<n;)t=this[i],this[i++]=this[--e],this[e]=t;return this},some:function(t){return Z(Et(this),t,arguments.length>1?arguments[1]:void 0)},sort:function(t){return ut.call(Et(this),t)},subarray:function(t,e){var n=Et(this),i=n.length,r=g(t,i);return new(A(n,n[gt]))(n.buffer,n.byteOffset+r*n.BYTES_PER_ELEMENT,m((void 0===e?i:g(e,i))-r))}},Rt=function(t,e){return Ct(this,ht.call(Et(this),t,e))},Bt=function(t){Et(this);var e=Tt(arguments[1],1),n=this.length,i=w(t),r=m(i.length),o=0;if(r+e>n)throw G("Wrong length!");for(;o<r;)this[e+o]=i[o++]},Nt={entries:function(){return ot.call(Et(this))},keys:function(){return rt.call(Et(this))},values:function(){return it.call(Et(this))}},jt=function(t,e){return _(t)&&t[bt]&&"symbol"!=typeof e&&e in t&&String(+e)==String(e)},zt=function(t,e){return jt(t,e=y(e,!0))?h(2,t[e]):U(t,e)},Ft=function(t,e,n){return!(jt(t,e=y(e,!0))&&_(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?V(t,e,n):(t[e]=n.value,t)};yt||(F.f=zt,z.f=Ft),a(a.S+a.F*!yt,"Object",{getOwnPropertyDescriptor:zt,defineProperty:Ft}),o(function(){dt.call({})})&&(dt=ft=function(){return lt.call(this)});var Vt=f({},Dt);f(Vt,Nt),d(Vt,pt,Nt.values),f(Vt,{slice:Rt,set:Bt,constructor:function(){},toString:dt,toLocaleString:It}),Ot(Vt,"buffer","b"),Ot(Vt,"byteOffset","o"),Ot(Vt,"byteLength","l"),Ot(Vt,"length","e"),V(Vt,mt,{get:function(){return this[bt]}}),t.exports=function(t,e,n,c){var l=t+((c=!!c)?"Clamped":"")+"Array",h="get"+t,f="set"+t,p=r[l],g=p||{},y=p&&E(p),b=!p||!s.ABV,w={},S=p&&p.prototype,C=function(t,n){V(t,n,{get:function(){return function(t,n){var i=t._d;return i.v[h](n*e+i.o,wt)}(this,n)},set:function(t){return function(t,n,i){var r=t._d;c&&(i=(i=Math.round(i))<0?0:i>255?255:255&i),r.v[f](n*e+r.o,i,wt)}(this,n,t)},enumerable:!0})};b?(p=n(function(t,n,i,r){u(t,p,l,"_d");var o,a,s,c,h=0,f=0;if(_(n)){if(!(n instanceof q||"ArrayBuffer"==(c=x(n))||"SharedArrayBuffer"==c))return bt in n?Lt(p,n):kt.call(p,n);o=n,f=Tt(i,e);var g=n.byteLength;if(void 0===r){if(g%e)throw G("Wrong length!");if((a=g-f)<0)throw G("Wrong length!")}else if((a=m(r)*e)+f>g)throw G("Wrong length!");s=a/e}else s=v(n),o=new q(a=s*e);for(d(t,"_d",{b:o,o:f,l:a,e:s,v:new X(o)});h<s;)C(t,h++)}),S=p.prototype=T(Vt),d(S,"constructor",p)):o(function(){p(1)})&&o(function(){new p(-1)})&&R(function(t){new p,new p(null),new p(1.5),new p(t)},!0)||(p=n(function(t,n,i,r){var o;return u(t,p,l),_(n)?n instanceof q||"ArrayBuffer"==(o=x(n))||"SharedArrayBuffer"==o?void 0!==r?new g(n,Tt(i,e),r):void 0!==i?new g(n,Tt(i,e)):new g(n):bt in n?Lt(p,n):kt.call(p,n):new g(v(n))}),Y(y!==Function.prototype?M(g).concat(M(y)):M(g),function(t){t in p||d(p,t,g[t])}),p.prototype=S,i||(S.constructor=p));var L=S[pt],O=!!L&&("values"==L.name||void 0==L.name),k=Nt.values;d(p,vt,!0),d(S,bt,l),d(S,xt,!0),d(S,gt,p),(c?new p(1)[mt]==l:mt in S)||V(S,mt,{get:function(){return l}}),w[l]=p,a(a.G+a.W+a.F*(p!=g),w),a(a.S,l,{BYTES_PER_ELEMENT:e}),a(a.S+a.F*o(function(){g.of.call(p,1)}),l,{from:kt,of:Pt}),"BYTES_PER_ELEMENT"in S||d(S,"BYTES_PER_ELEMENT",e),a(a.P,l,Dt),B(l),a(a.P+a.F*St,l,{set:Bt}),a(a.P+a.F*!O,l,Nt),i||S.toString==dt||(S.toString=dt),a(a.P+a.F*o(function(){new p(1).slice()}),l,{slice:Rt}),a(a.P+a.F*(o(function(){return[1,2].toLocaleString()!=new p([1,2]).toLocaleString()})||!o(function(){S.toLocaleString.call([1,2])})),l,{toLocaleString:It}),D[l]=O?L:k,i||O||d(S,pt,k)}}else t.exports=function(){}},"7Jvp":function(t,e,n){var i=n("Ds5P"),r=Math.asinh;i(i.S+i.F*!(r&&1/r(0)>0),"Math",{asinh:function t(e){return isFinite(e=+e)&&0!=e?e<0?-t(-e):Math.log(e+Math.sqrt(e*e+1)):e}})},"7KvD":function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},"7O1s":function(t,e,n){var i=n("DIVP"),r=n("XSOZ"),o=n("kkCw")("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||void 0==(n=i(a)[o])?e:r(n)}},"7QTg":function(t,e,n){var i;i=function(t){return function(t){function e(i){if(n[i])return n[i].exports;var r=n[i]={i:i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,e),r.l=!0,r.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,i){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:i})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/",e(e.s=4)}([function(e,n){e.exports=t},function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,s=t.default);var l,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=i),l){var h=u.functional,d=h?u.render:u.beforeCreate;h?(u._injectStyles=l,u.render=function(t,e){return l.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:a,exports:s,options:u}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(5),r=n.n(i),o=n(8),a=n(1)(r.a,o.a,!1,null,null,null);e.default=a.exports},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=n(6),r=n.n(i),o=n(7),a=n(1)(r.a,o.a,!1,null,null,null);e.default=a.exports},function(t,e,n){"use strict";function i(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0}),e.install=e.swiperSlide=e.swiper=e.Swiper=void 0;var r=i(n(0)),o=i(n(2)),a=i(n(3)),s=window.Swiper||r.default,c=a.default,l=o.default,u=function(t,e){e&&(a.default.props.globalOptions.default=function(){return e}),t.component(a.default.name,a.default),t.component(o.default.name,o.default)},h={Swiper:s,swiper:c,swiperSlide:l,install:u};e.default=h,e.Swiper=s,e.swiper=c,e.swiperSlide=l,e.install=u},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default={name:"swiper-slide",data:function(){return{slideClass:"swiper-slide"}},ready:function(){this.update()},mounted:function(){this.update(),this.$parent&&this.$parent.options&&this.$parent.options.slideClass&&(this.slideClass=this.$parent.options.slideClass)},updated:function(){this.update()},attached:function(){this.update()},methods:{update:function(){this.$parent&&this.$parent.swiper&&this.$parent.update()}}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=function(t){return t&&t.__esModule?t:{default:t}}(n(0)),r=window.Swiper||i.default;"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(t,e){if(null==t)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(t),i=1;i<arguments.length;i++){var r=arguments[i];if(null!=r)for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(n[o]=r[o])}return n},writable:!0,configurable:!0});var o=["beforeDestroy","slideChange","slideChangeTransitionStart","slideChangeTransitionEnd","slideNextTransitionStart","slideNextTransitionEnd","slidePrevTransitionStart","slidePrevTransitionEnd","transitionStart","transitionEnd","touchStart","touchMove","touchMoveOpposite","sliderMove","touchEnd","click","tap","doubleTap","imagesReady","progress","reachBeginning","reachEnd","fromEdge","setTranslate","setTransition","resize"];e.default={name:"swiper",props:{options:{type:Object,default:function(){return{}}},globalOptions:{type:Object,required:!1,default:function(){return{}}}},data:function(){return{swiper:null,classes:{wrapperClass:"swiper-wrapper"}}},ready:function(){this.swiper||this.mountInstance()},mounted:function(){if(!this.swiper){var t=!1;for(var e in this.classes)this.classes.hasOwnProperty(e)&&this.options[e]&&(t=!0,this.classes[e]=this.options[e]);t?this.$nextTick(this.mountInstance):this.mountInstance()}},activated:function(){this.update()},updated:function(){this.update()},beforeDestroy:function(){this.$nextTick(function(){this.swiper&&(this.swiper.destroy&&this.swiper.destroy(),delete this.swiper)})},methods:{update:function(){this.swiper&&(this.swiper.update&&this.swiper.update(),this.swiper.navigation&&this.swiper.navigation.update(),this.swiper.pagination&&this.swiper.pagination.render(),this.swiper.pagination&&this.swiper.pagination.update())},mountInstance:function(){var t=Object.assign({},this.globalOptions,this.options);this.swiper=new r(this.$el,t),this.bindEvents(),this.$emit("ready",this.swiper)},bindEvents:function(){var t=this,e=this;o.forEach(function(n){t.swiper.on(n,function(){e.$emit.apply(e,[n].concat(Array.prototype.slice.call(arguments))),e.$emit.apply(e,[n.replace(/([A-Z])/g,"-$1").toLowerCase()].concat(Array.prototype.slice.call(arguments)))})})}}}},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"swiper-container"},[t._t("parallax-bg"),t._v(" "),n("div",{class:t.classes.wrapperClass},[t._t("default")],2),t._v(" "),t._t("pagination"),t._v(" "),t._t("button-prev"),t._v(" "),t._t("button-next"),t._v(" "),t._t("scrollbar")],2)},staticRenderFns:[]};e.a=i},function(t,e,n){"use strict";var i={render:function(){var t=this,e=t.$createElement;return(t._self._c||e)("div",{class:t.slideClass},[t._t("default")],2)},staticRenderFns:[]};e.a=i}])},t.exports=i(n("gsqX"))},"7gX0":function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},"7ylX":function(t,e,n){var i=n("DIVP"),r=n("twxM"),o=n("QKXm"),a=n("mZON")("IE_PROTO"),s=function(){},c=function(){var t,e=n("jhxf")("iframe"),i=o.length;for(e.style.display="none",n("d075").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c.prototype[o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},"81dZ":function(t,e,n){"use strict";var i=n("Ds5P"),r=n("d075"),o=n("ydD5"),a=n("zo/l"),s=n("BbyF"),c=[].slice;i(i.P+i.F*n("zgIt")(function(){r&&c.call(r)}),"Array",{slice:function(t,e){var n=s(this.length),i=o(this);if(e=void 0===e?n:e,"Array"==i)return c.call(this,t,e);for(var r=a(t,n),l=a(e,n),u=s(l-r),h=new Array(u),d=0;d<u;d++)h[d]="String"==i?this.charAt(r+d):this[r+d];return h}})},"82Mu":function(t,e,n){var i=n("7KvD"),r=n("L42u").set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,c="process"==n("R9M2")(a);t.exports=function(){var t,e,n,l=function(){var i,r;for(c&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(c)n=function(){a.nextTick(l)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){r.call(i,l)};else{var h=!0,d=document.createTextNode("");new o(l).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},"82of":function(t,e,n){"use strict";n("y325")("fontcolor",function(t){return function(e){return t(this,"font","color",e)}})},"880/":function(t,e,n){t.exports=n("hJx8")},"8D8H":function(t,e,n){var i=n("oeih"),r=n("BbyF");t.exports=function(t){if(void 0===t)return 0;var e=i(t),n=r(e);if(e!==n)throw RangeError("Wrong length!");return n}},"8Np7":function(t,e,n){"use strict";n("y325")("anchor",function(t){return function(e){return t(this,"a","name",e)}})},"8WbS":function(t,e,n){var i=n("wCso"),r=n("DIVP"),o=n("KOrd"),a=i.has,s=i.key,c=function(t,e,n){if(a(t,e,n))return!0;var i=o(e);return null!==i&&c(t,i,n)};i.exp({hasMetadata:function(t,e){return c(t,r(e),arguments.length<3?void 0:s(arguments[2]))}})},"8fhx":function(t,e,n){"use strict";var i=n("Ds5P"),r=n("FryR"),o=n("s4j0");i(i.P+i.F*n("zgIt")(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(t){var e=r(this),n=o(e);return"number"!=typeof n||isFinite(n)?e.toISOString():null}})},"8t38":function(t,e,n){var i=n("OzIq").parseFloat,r=n("Ymdd").trim;t.exports=1/i(n("Xduv")+"-0")!=-1/0?function(t){var e=r(String(t),3),n=i(e);return 0===n&&"-"==e.charAt(0)?-0:n}:i},"94VQ":function(t,e,n){"use strict";var i=n("Yobk"),r=n("X8DO"),o=n("e6n0"),a={};n("hJx8")(a,n("dSzd")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},"9Dx1":function(t,e,n){"use strict";var i=n("wC1N"),r=RegExp.prototype.exec;t.exports=function(t,e){var n=t.exec;if("function"==typeof n){var o=n.call(t,e);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==i(t))throw new TypeError("RegExp#exec called on incompatible receiver");return r.call(t,e)}},"9GpA":function(t,e){t.exports=function(t,e,n,i){if(!(t instanceof e)||void 0!==i&&i in t)throw TypeError(n+": incorrect invocation!");return t}},"9Yib":function(t,e,n){n("3g/S")("asyncIterator")},"9bBU":function(t,e,n){n("mClu");var i=n("FeBl").Object;t.exports=function(t,e,n){return i.defineProperty(t,e,n)}},"9mGU":function(t,e,n){var i=n("Ds5P"),r=n("DIVP"),o=Object.preventExtensions;i(i.S,"Reflect",{preventExtensions:function(t){r(t);try{return o&&o(t),!0}catch(t){return!1}}})},"9mmO":function(t,e,n){"use strict";var i=n("Ds5P"),r=n("07k+"),o=n("LrcN"),a=n("DIVP"),s=n("zo/l"),c=n("BbyF"),l=n("UKM+"),u=n("OzIq").ArrayBuffer,h=n("7O1s"),d=o.ArrayBuffer,f=o.DataView,p=r.ABV&&u.isView,m=d.prototype.slice,v=r.VIEW;i(i.G+i.W+i.F*(u!==d),{ArrayBuffer:d}),i(i.S+i.F*!r.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||l(t)&&v in t}}),i(i.P+i.U+i.F*n("zgIt")(function(){return!new d(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(t,e){if(void 0!==m&&void 0===e)return m.call(a(this),t);for(var n=a(this).byteLength,i=s(t,n),r=s(void 0===e?n:e,n),o=new(h(this,d))(c(r-i)),l=new f(this),u=new f(o),p=0;i<r;)u.setUint8(p++,l.getUint8(i++));return o}}),n("CEne")("ArrayBuffer")},"9vb1":function(t,e,n){var i=n("bN1p"),r=n("kkCw")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},"9vc3":function(t,e,n){var i=n("Ds5P");i(i.P,"Array",{copyWithin:n("DPsE")}),n("RhFG")("copyWithin")},"9xIj":function(t,e,n){var i=n("Ds5P"),r=n("x78i");i(i.S+i.F*(r!=Math.expm1),"Math",{expm1:r})},"A0n/":function(t,e,n){"use strict";var i=n("OzIq"),r=n("WBcL"),o=n("bUqO"),a=n("Ds5P"),s=n("R3AP"),c=n("1aA0").KEY,l=n("zgIt"),u=n("VWgF"),h=n("yYvK"),d=n("ulTY"),f=n("kkCw"),p=n("M8WE"),m=n("3g/S"),v=n("C+Ps"),g=n("XO1R"),y=n("DIVP"),b=n("UKM+"),x=n("PHqh"),_=n("s4j0"),w=n("fU25"),S=n("7ylX"),T=n("bG/2"),E=n("x9zv"),M=n("lDLk"),C=n("Qh14"),L=E.f,O=M.f,k=T.f,P=i.Symbol,A=i.JSON,I=A&&A.stringify,D=f("_hidden"),R=f("toPrimitive"),B={}.propertyIsEnumerable,N=u("symbol-registry"),j=u("symbols"),z=u("op-symbols"),F=Object.prototype,V="function"==typeof P,U=i.QObject,G=!U||!U.prototype||!U.prototype.findChild,$=o&&l(function(){return 7!=S(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=L(F,e);i&&delete F[e],O(t,e,n),i&&t!==F&&O(F,e,i)}:O,H=function(t){var e=j[t]=S(P.prototype);return e._k=t,e},W=V&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},q=function(t,e,n){return t===F&&q(z,e,n),y(t),e=_(e,!0),y(n),r(j,e)?(n.enumerable?(r(t,D)&&t[D][e]&&(t[D][e]=!1),n=S(n,{enumerable:w(0,!1)})):(r(t,D)||O(t,D,w(1,{})),t[D][e]=!0),$(t,e,n)):O(t,e,n)},X=function(t,e){y(t);for(var n,i=v(e=x(e)),r=0,o=i.length;o>r;)q(t,n=i[r++],e[n]);return t},Y=function(t){var e=B.call(this,t=_(t,!0));return!(this===F&&r(j,t)&&!r(z,t))&&(!(e||!r(this,t)||!r(j,t)||r(this,D)&&this[D][t])||e)},K=function(t,e){if(t=x(t),e=_(e,!0),t!==F||!r(j,e)||r(z,e)){var n=L(t,e);return!n||!r(j,e)||r(t,D)&&t[D][e]||(n.enumerable=!0),n}},Z=function(t){for(var e,n=k(x(t)),i=[],o=0;n.length>o;)r(j,e=n[o++])||e==D||e==c||i.push(e);return i},J=function(t){for(var e,n=t===F,i=k(n?z:x(t)),o=[],a=0;i.length>a;)!r(j,e=i[a++])||n&&!r(F,e)||o.push(j[e]);return o};V||(s((P=function(){if(this instanceof P)throw TypeError("Symbol is not a constructor!");var t=d(arguments.length>0?arguments[0]:void 0),e=function(n){this===F&&e.call(z,n),r(this,D)&&r(this[D],t)&&(this[D][t]=!1),$(this,t,w(1,n))};return o&&G&&$(F,t,{configurable:!0,set:e}),H(t)}).prototype,"toString",function(){return this._k}),E.f=K,M.f=q,n("WcO1").f=T.f=Z,n("Y1aA").f=Y,n("Y1N3").f=J,o&&!n("V3l/")&&s(F,"propertyIsEnumerable",Y,!0),p.f=function(t){return H(f(t))}),a(a.G+a.W+a.F*!V,{Symbol:P});for(var Q="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),tt=0;Q.length>tt;)f(Q[tt++]);for(var et=C(f.store),nt=0;et.length>nt;)m(et[nt++]);a(a.S+a.F*!V,"Symbol",{for:function(t){return r(N,t+="")?N[t]:N[t]=P(t)},keyFor:function(t){if(!W(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){G=!0},useSimple:function(){G=!1}}),a(a.S+a.F*!V,"Object",{create:function(t,e){return void 0===e?S(t):X(S(t),e)},defineProperty:q,defineProperties:X,getOwnPropertyDescriptor:K,getOwnPropertyNames:Z,getOwnPropertySymbols:J}),A&&a(a.S+a.F*(!V||l(function(){var t=P();return"[null]"!=I([t])||"{}"!=I({a:t})||"{}"!=I(Object(t))})),"JSON",{stringify:function(t){for(var e,n,i=[t],r=1;arguments.length>r;)i.push(arguments[r++]);if(n=e=i[1],(b(e)||void 0!==t)&&!W(t))return g(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!W(e))return e}),i[1]=e,I.apply(A,i)}}),P.prototype[R]||n("2p1q")(P.prototype,R,P.prototype.valueOf),h(P,"Symbol"),h(Math,"Math",!0),h(i.JSON,"JSON",!0)},A16L:function(t,e,n){var i=n("R3AP");t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},A1ng:function(t,e,n){var i=n("Ds5P"),r=n("n982"),o=Math.abs;i(i.S,"Number",{isSafeInteger:function(t){return r(t)&&o(t)<=9007199254740991}})},A52B:function(t,e,n){var i=n("x9zv"),r=n("Ds5P"),o=n("DIVP");r(r.S,"Reflect",{getOwnPropertyDescriptor:function(t,e){return i.f(o(t),e)}})},AA6R:function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e,n=1;n<arguments.length;n++)for(var i in e=arguments[n])Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}).apply(this,arguments)}var r=["attrs","props","domProps"],o=["class","style","directives"],a=["on","nativeOn"],s=function(t,e){return function(){t&&t.apply(this,arguments),e&&e.apply(this,arguments)}};t.exports=function(t){return t.reduce(function(t,e){for(var n in e)if(t[n])if(-1!==r.indexOf(n))t[n]=i({},t[n],e[n]);else if(-1!==o.indexOf(n)){var c=t[n]instanceof Array?t[n]:[t[n]],l=e[n]instanceof Array?e[n]:[e[n]];t[n]=[].concat(c,l)}else if(-1!==a.indexOf(n))for(var u in e[n])if(t[n][u]){var h=t[n][u]instanceof Array?t[n][u]:[t[n][u]],d=e[n][u]instanceof Array?e[n][u]:[e[n][u]];t[n][u]=[].concat(h,d)}else t[n][u]=e[n][u];else if("hook"===n)for(var f in e[n])t[n][f]=t[n][f]?s(t[n][f],e[n][f]):e[n][f];else t[n]=e[n];else t[n]=e[n];return t},{})}},AkTE:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("FryR"),o=n("s4j0"),a=n("KOrd"),s=n("x9zv").f;n("bUqO")&&i(i.P+n("dm6P"),"Object",{__lookupSetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=s(n,i))return e.set}while(n=a(n))}})},B3Xn:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{imulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,a=n>>16,s=i>>16,c=(a*o>>>0)+(r*o>>>16);return a*s+(c>>16)+((r*s>>>0)+(65535&c)>>16)}})},BOYP:function(t,e,n){n("0j1G")("WeakSet")},BbyF:function(t,e,n){var i=n("oeih"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},"C+4B":function(t,e,n){var i=n("PHqh"),r=n("x9zv").f;n("3i66")("getOwnPropertyDescriptor",function(){return function(t,e){return r(i(t),e)}})},"C+Ps":function(t,e,n){var i=n("Qh14"),r=n("Y1N3"),o=n("Y1aA");t.exports=function(t){var e=i(t),n=r.f;if(n)for(var a,s=n(t),c=o.f,l=0;s.length>l;)c.call(t,a=s[l++])&&e.push(a);return e}},C4MV:function(t,e,n){t.exports={default:n("9bBU"),__esModule:!0}},"CEO+":function(t,e,n){"use strict";var i=n("Ds5P"),r=n("LhTa")(0),o=n("NNrz")([].forEach,!0);i(i.P+i.F*!o,"Array",{forEach:function(t){return r(this,t,arguments[1])}})},CEne:function(t,e,n){"use strict";var i=n("OzIq"),r=n("lDLk"),o=n("bUqO"),a=n("kkCw")("species");t.exports=function(t){var e=i[t];o&&e&&!e[a]&&r.f(e,a,{configurable:!0,get:function(){return this}})}},"CVR+":function(t,e,n){var i=n("Ds5P"),r=n("XSOZ"),o=n("DIVP"),a=(n("OzIq").Reflect||{}).apply,s=Function.apply;i(i.S+i.F*!n("zgIt")(function(){a(function(){})}),"Reflect",{apply:function(t,e,n){var i=r(t),c=o(n);return a?a(i,e,c):s.call(i,e,c)}})},CXw9:function(t,e,n){"use strict";var i,r,o,a,s=n("O4g8"),c=n("7KvD"),l=n("+ZMJ"),u=n("RY/4"),h=n("kM2E"),d=n("EqjI"),f=n("lOnJ"),p=n("2KxR"),m=n("NWt+"),v=n("t8x9"),g=n("L42u").set,y=n("82Mu")(),b=n("qARP"),x=n("dNDb"),_=n("iUbK"),w=n("fJUb"),S=c.TypeError,T=c.process,E=T&&T.versions,M=E&&E.v8||"",C=c.Promise,L="process"==u(T),O=function(){},k=r=b.f,P=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[n("dSzd")("species")]=function(t){t(O,O)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==M.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),A=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,r=1==t._s,o=0,a=function(e){var n,o,a,s=r?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(r||(2==t._h&&B(t),t._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===e.promise?l(S("Promise-chain cycle")):(o=A(n))?o.call(n,c,l):c(n)):l(i)}catch(t){u&&!a&&u.exit(),l(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){g.call(c,function(){var e,n,i,r=t._v,o=R(t);if(o&&(e=x(function(){L?T.emit("unhandledRejection",r,t):(n=c.onunhandledrejection)?n({promise:t,reason:r}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=L||R(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){g.call(c,function(){var e;L?T.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},j=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=A(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,l(j,i,1),l(N,i,1))}catch(t){N.call(i,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){N.call({_w:n,_d:!1},t)}}};P||(C=function(t){p(this,C,"Promise","_h"),f(t),i.call(this);try{t(l(j,this,1),l(N,this,1))}catch(t){N.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("xH/j")(C.prototype,{then:function(t,e){var n=k(v(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=l(j,t,1),this.reject=l(N,t,1)},b.f=k=function(t){return t===C||t===a?new o(t):r(t)}),h(h.G+h.W+h.F*!P,{Promise:C}),n("e6n0")(C,"Promise"),n("bRrM")("Promise"),a=n("FeBl").Promise,h(h.S+h.F*!P,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!P),"Promise",{resolve:function(t){return w(s&&this===a?C:this,t)}}),h(h.S+h.F*!(P&&n("dY0y")(function(t){C.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=k(e),i=n.resolve,r=n.reject,o=x(function(){var n=[],o=0,a=1;m(t,!1,function(t){var s=o++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=k(e),i=n.reject,r=x(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},Cdx3:function(t,e,n){var i=n("sB3e"),r=n("lktj");n("uqUo")("keys",function(){return function(t){return r(i(t))}})},CvWX:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("BbyF"),o=n("kqpo"),a="".startsWith;i(i.P+i.F*n("1ETD")("startsWith"),"String",{startsWith:function(t){var e=o(this,t,"startsWith"),n=r(Math.min(arguments.length>1?arguments[1]:void 0,e.length)),i=String(t);return a?a.call(e,i,n):e.slice(n,n+i.length)===i}})},CwSZ:function(t,e,n){"use strict";var i=n("p8xL"),r=n("XgCd"),o={brackets:function(t){return t+"[]"},indices:function(t,e){return t+"["+e+"]"},repeat:function(t){return t}},a=Date.prototype.toISOString,s={delimiter:"&",encode:!0,encoder:i.encode,encodeValuesOnly:!1,serializeDate:function(t){return a.call(t)},skipNulls:!1,strictNullHandling:!1},c=function t(e,n,r,o,a,c,l,u,h,d,f,p){var m=e;if("function"==typeof l)m=l(n,m);else if(m instanceof Date)m=d(m);else if(null===m){if(o)return c&&!p?c(n,s.encoder):n;m=""}if("string"==typeof m||"number"==typeof m||"boolean"==typeof m||i.isBuffer(m))return c?[f(p?n:c(n,s.encoder))+"="+f(c(m,s.encoder))]:[f(n)+"="+f(String(m))];var v,g=[];if(void 0===m)return g;if(Array.isArray(l))v=l;else{var y=Object.keys(m);v=u?y.sort(u):y}for(var b=0;b<v.length;++b){var x=v[b];a&&null===m[x]||(g=Array.isArray(m)?g.concat(t(m[x],r(n,x),r,o,a,c,l,u,h,d,f,p)):g.concat(t(m[x],n+(h?"."+x:"["+x+"]"),r,o,a,c,l,u,h,d,f,p)))}return g};t.exports=function(t,e){var n=t,a=e?i.assign({},e):{};if(null!==a.encoder&&void 0!==a.encoder&&"function"!=typeof a.encoder)throw new TypeError("Encoder has to be a function.");var l=void 0===a.delimiter?s.delimiter:a.delimiter,u="boolean"==typeof a.strictNullHandling?a.strictNullHandling:s.strictNullHandling,h="boolean"==typeof a.skipNulls?a.skipNulls:s.skipNulls,d="boolean"==typeof a.encode?a.encode:s.encode,f="function"==typeof a.encoder?a.encoder:s.encoder,p="function"==typeof a.sort?a.sort:null,m=void 0!==a.allowDots&&a.allowDots,v="function"==typeof a.serializeDate?a.serializeDate:s.serializeDate,g="boolean"==typeof a.encodeValuesOnly?a.encodeValuesOnly:s.encodeValuesOnly;if(void 0===a.format)a.format=r.default;else if(!Object.prototype.hasOwnProperty.call(r.formatters,a.format))throw new TypeError("Unknown format option provided.");var y,b,x=r.formatters[a.format];"function"==typeof a.filter?n=(b=a.filter)("",n):Array.isArray(a.filter)&&(y=b=a.filter);var _,w=[];if("object"!=typeof n||null===n)return"";_=a.arrayFormat in o?a.arrayFormat:"indices"in a?a.indices?"indices":"repeat":"indices";var S=o[_];y||(y=Object.keys(n)),p&&y.sort(p);for(var T=0;T<y.length;++T){var E=y[T];h&&null===n[E]||(w=w.concat(c(n[E],E,S,u,h,d?f:null,b,p,m,v,x,g)))}var M=w.join(l),C=!0===a.addQueryPrefix?"?":"";return M.length>0?C+M:""}},D2L2:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},DDCP:function(t,e,n){"use strict";var i=n("p8xL"),r=Object.prototype.hasOwnProperty,o={allowDots:!1,allowPrototypes:!1,arrayLimit:20,decoder:i.decode,delimiter:"&",depth:5,parameterLimit:1e3,plainObjects:!1,strictNullHandling:!1},a=function(t,e,n){if(t){var i=n.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,o=/(\[[^[\]]*])/g,a=/(\[[^[\]]*])/.exec(i),s=a?i.slice(0,a.index):i,c=[];if(s){if(!n.plainObjects&&r.call(Object.prototype,s)&&!n.allowPrototypes)return;c.push(s)}for(var l=0;null!==(a=o.exec(i))&&l<n.depth;){if(l+=1,!n.plainObjects&&r.call(Object.prototype,a[1].slice(1,-1))&&!n.allowPrototypes)return;c.push(a[1])}return a&&c.push("["+i.slice(a.index)+"]"),function(t,e,n){for(var i=e,r=t.length-1;r>=0;--r){var o,a=t[r];if("[]"===a)o=(o=[]).concat(i);else{o=n.plainObjects?Object.create(null):{};var s="["===a.charAt(0)&&"]"===a.charAt(a.length-1)?a.slice(1,-1):a,c=parseInt(s,10);!isNaN(c)&&a!==s&&String(c)===s&&c>=0&&n.parseArrays&&c<=n.arrayLimit?(o=[])[c]=i:o[s]=i}i=o}return i}(c,e,n)}};t.exports=function(t,e){var n=e?i.assign({},e):{};if(null!==n.decoder&&void 0!==n.decoder&&"function"!=typeof n.decoder)throw new TypeError("Decoder has to be a function.");if(n.ignoreQueryPrefix=!0===n.ignoreQueryPrefix,n.delimiter="string"==typeof n.delimiter||i.isRegExp(n.delimiter)?n.delimiter:o.delimiter,n.depth="number"==typeof n.depth?n.depth:o.depth,n.arrayLimit="number"==typeof n.arrayLimit?n.arrayLimit:o.arrayLimit,n.parseArrays=!1!==n.parseArrays,n.decoder="function"==typeof n.decoder?n.decoder:o.decoder,n.allowDots="boolean"==typeof n.allowDots?n.allowDots:o.allowDots,n.plainObjects="boolean"==typeof n.plainObjects?n.plainObjects:o.plainObjects,n.allowPrototypes="boolean"==typeof n.allowPrototypes?n.allowPrototypes:o.allowPrototypes,n.parameterLimit="number"==typeof n.parameterLimit?n.parameterLimit:o.parameterLimit,n.strictNullHandling="boolean"==typeof n.strictNullHandling?n.strictNullHandling:o.strictNullHandling,""===t||null===t||void 0===t)return n.plainObjects?Object.create(null):{};for(var s="string"==typeof t?function(t,e){for(var n={},i=e.ignoreQueryPrefix?t.replace(/^\?/,""):t,a=e.parameterLimit===1/0?void 0:e.parameterLimit,s=i.split(e.delimiter,a),c=0;c<s.length;++c){var l,u,h=s[c],d=h.indexOf("]="),f=-1===d?h.indexOf("="):d+1;-1===f?(l=e.decoder(h,o.decoder),u=e.strictNullHandling?null:""):(l=e.decoder(h.slice(0,f),o.decoder),u=e.decoder(h.slice(f+1),o.decoder)),r.call(n,l)?n[l]=[].concat(n[l]).concat(u):n[l]=u}return n}(t,n):t,c=n.plainObjects?Object.create(null):{},l=Object.keys(s),u=0;u<l.length;++u){var h=l[u],d=a(h,s[h],n);c=i.merge(c,d,n)}return i.compact(c)}},DIVP:function(t,e,n){var i=n("UKM+");t.exports=function(t){if(!i(t))throw TypeError(t+" is not an object!");return t}},DPsE:function(t,e,n){"use strict";var i=n("FryR"),r=n("zo/l"),o=n("BbyF");t.exports=[].copyWithin||function(t,e){var n=i(this),a=o(n.length),s=r(t,a),c=r(e,a),l=arguments.length>2?arguments[2]:void 0,u=Math.min((void 0===l?a:r(l,a))-c,a-s),h=1;for(c<s&&s<c+u&&(h=-1,c+=u-1,s+=u-1);u-- >0;)c in n?n[s]=n[c]:delete n[s],s+=h,c+=h;return n}},DQfQ:function(t,e,n){var i=n("Ds5P");i(i.G,{global:n("OzIq")})},Dgii:function(t,e,n){"use strict";var i=n("lDLk").f,r=n("7ylX"),o=n("A16L"),a=n("rFzY"),s=n("9GpA"),c=n("vmSO"),l=n("uc2A"),u=n("KB1o"),h=n("CEne"),d=n("bUqO"),f=n("1aA0").fastKey,p=n("zq/X"),m=d?"_s":"size",v=function(t,e){var n,i=f(e);if("F"!==i)return t._i[i];for(n=t._f;n;n=n.n)if(n.k==e)return n};t.exports={getConstructor:function(t,e,n,l){var u=t(function(t,i){s(t,u,e,"_i"),t._t=e,t._i=r(null),t._f=void 0,t._l=void 0,t[m]=0,void 0!=i&&c(i,n,t[l],t)});return o(u.prototype,{clear:function(){for(var t=p(this,e),n=t._i,i=t._f;i;i=i.n)i.r=!0,i.p&&(i.p=i.p.n=void 0),delete n[i.i];t._f=t._l=void 0,t[m]=0},delete:function(t){var n=p(this,e),i=v(n,t);if(i){var r=i.n,o=i.p;delete n._i[i.i],i.r=!0,o&&(o.n=r),r&&(r.p=o),n._f==i&&(n._f=r),n._l==i&&(n._l=o),n[m]--}return!!i},forEach:function(t){p(this,e);for(var n,i=a(t,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(i(n.v,n.k,this);n&&n.r;)n=n.p},has:function(t){return!!v(p(this,e),t)}}),d&&i(u.prototype,"size",{get:function(){return p(this,e)[m]}}),u},def:function(t,e,n){var i,r,o=v(t,e);return o?o.v=n:(t._l=o={i:r=f(e,!0),k:e,v:n,p:i=t._l,n:void 0,r:!1},t._f||(t._f=o),i&&(i.n=o),t[m]++,"F"!==r&&(t._i[r]=o)),t},getEntry:v,setStrong:function(t,e,n){l(t,e,function(t,n){this._t=p(t,e),this._k=n,this._l=void 0},function(){for(var t=this._k,e=this._l;e&&e.r;)e=e.p;return this._t&&(this._l=e=e?e.n:this._t._f)?u(0,"keys"==t?e.k:"values"==t?e.v:[e.k,e.v]):(this._t=void 0,u(1))},n?"entries":"values",!n,!0),h(e)}}},Ds5P:function(t,e,n){var i=n("OzIq"),r=n("7gX0"),o=n("2p1q"),a=n("R3AP"),s=n("rFzY"),c=function(t,e,n){var l,u,h,d,f=t&c.F,p=t&c.G,m=t&c.S,v=t&c.P,g=t&c.B,y=p?i:m?i[e]||(i[e]={}):(i[e]||{}).prototype,b=p?r:r[e]||(r[e]={}),x=b.prototype||(b.prototype={});for(l in p&&(n=e),n)h=((u=!f&&y&&void 0!==y[l])?y:n)[l],d=g&&u?s(h,i):v&&"function"==typeof h?s(Function.call,h):h,y&&a(y,l,h,t&c.U),b[l]!=h&&o(b,l,d),v&&x[l]!=h&&(x[l]=h)};i.core=r,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},DuR2:function(t,e){var n;n=function(){return this}();try{n=n||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(n=window)}t.exports=n},EGZi:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},EWrS:function(t,e,n){"use strict";n("y325")("sub",function(t){return function(){return t(this,"sub","","")}})},"EZ+5":function(t,e,n){var i=n("wCso"),r=n("DIVP"),o=n("XSOZ"),a=i.key,s=i.set;i.exp({metadata:function(t,e){return function(n,i){s(t,e,(void 0!==i?r:o)(n),a(i))}}})},EqBC:function(t,e,n){"use strict";var i=n("kM2E"),r=n("FeBl"),o=n("7KvD"),a=n("t8x9"),s=n("fJUb");i(i.P+i.R,"Promise",{finally:function(t){var e=a(this,r.Promise||o.Promise),n="function"==typeof t;return this.then(n?function(n){return s(e,t()).then(function(){return n})}:t,n?function(n){return s(e,t()).then(function(){throw n})}:t)}})},EqjI:function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},EuXz:function(t,e,n){var i=n("lDLk").f,r=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in r||n("bUqO")&&i(r,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},EvFb:function(t,e,n){var i=n("Ds5P"),r=n("8t38");i(i.G+i.F*(parseFloat!=r),{parseFloat:r})},F1ui:function(t,e,n){var i=n("Ds5P"),r=Math.PI/180;i(i.S,"Math",{radians:function(t){return t*r}})},F3sI:function(t,e,n){var i=n("Ds5P"),r=n("PHqh"),o=n("BbyF");i(i.S,"String",{raw:function(t){for(var e=r(t.raw),n=o(e.length),i=arguments.length,a=[],s=0;n>s;)a.push(String(e[s++])),s<i&&a.push(String(arguments[s]));return a.join("")}})},FKfb:function(t,e,n){var i=n("Ds5P"),r=n("lKE8")(!0);i(i.S,"Object",{entries:function(t){return r(t)}})},FaZr:function(t,e,n){"use strict";n("pd+2");var i=n("DIVP"),r=n("0pGU"),o=n("bUqO"),a=/./.toString,s=function(t){n("R3AP")(RegExp.prototype,"toString",t,!0)};n("zgIt")(function(){return"/a/b"!=a.call({source:"a",flags:"b"})})?s(function(){var t=i(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?r.call(t):void 0)}):"toString"!=a.name&&s(function(){return a.call(this)})},"Fd2+":function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}var r=n("AA6R"),o=n.n(r),a=n("o69Z"),s=n("lRwf"),c=n.n(s),l=["ref","style","class","attrs","refInFor","nativeOn","directives","staticClass","staticStyle"],u={nativeOn:"on"};function h(t,e){var n=l.reduce(function(e,n){return t.data[n]&&(e[u[n]||n]=t.data[n]),e},{});return e&&(n.on=n.on||{},i(n.on,t.data.on)),n}function d(t,e){for(var n=arguments.length,i=new Array(n>2?n-2:0),r=2;r<n;r++)i[r-2]=arguments[r];var o=t.listeners[e];o&&(Array.isArray(o)?o.forEach(function(t){t.apply(void 0,i)}):o.apply(void 0,i))}function f(t,e){var n=new c.a({el:document.createElement("div"),props:t.props,render:function(n){return n(t,i({props:this.$props},e))}});return document.body.appendChild(n.$el),n}var p={zIndex:2e3,lockCount:0,stack:[],find:function(t){return this.stack.filter(function(e){return e.vm===t})[0]}},m=!1;if(!a.i)try{var v={};Object.defineProperty(v,"passive",{get:function(){m=!0}}),window.addEventListener("test-passive",null,v)}catch(t){}function g(t,e,n,i){void 0===i&&(i=!1),a.i||t.addEventListener(e,n,!!m&&{capture:!1,passive:i})}function y(t,e,n){a.i||t.removeEventListener(e,n)}function b(t){t.stopPropagation()}function x(t,e){("boolean"!=typeof t.cancelable||t.cancelable)&&t.preventDefault(),e&&b(t)}var _=Object(a.b)("overlay"),w=_[0],S=_[1];function T(t){x(t,!0)}function E(t,e,n,r){var s=i({zIndex:e.zIndex},e.customStyle);return Object(a.e)(e.duration)&&(s.animationDuration=e.duration+"s"),t("transition",{attrs:{name:"van-fade"}},[t("div",o()([{directives:[{name:"show",value:e.show}],style:s,class:[S(),e.className],on:{touchmove:e.lockScroll?T:a.j}},h(r,!0)]),[null==n.default?void 0:n.default()])])}E.props={show:Boolean,zIndex:[Number,String],duration:[Number,String],className:null,customStyle:Object,lockScroll:{type:Boolean,default:!0}};var M=w(E);function C(t){var e=t.parentNode;e&&e.removeChild(t)}var L={className:"",customStyle:{}};function O(t){var e=p.find(t);if(e){var n=t.$el,r=e.config,o=e.overlay;n&&n.parentNode&&n.parentNode.insertBefore(o.$el,n),i(o,L,r,{show:!0})}}function k(t,e){var n=p.find(t);if(n)n.config=e;else{var i=function(t){return f(M,{on:{click:function(){t.$emit("click-overlay"),t.closeOnClickOverlay&&(t.onClickOverlay?t.onClickOverlay():t.close())}}})}(t);p.stack.push({vm:t,config:e,overlay:i})}O(t)}function P(t){var e=p.find(t);e&&(e.overlay.show=!1)}function A(t){return t===window}var I=/scroll|auto/i;function D(t,e){void 0===e&&(e=window);for(var n=t;n&&"HTML"!==n.tagName&&"BODY"!==n.tagName&&1===n.nodeType&&n!==e;){var i=window.getComputedStyle(n).overflowY;if(I.test(i))return n;n=n.parentNode}return e}function R(t){var e="scrollTop"in t?t.scrollTop:t.pageYOffset;return Math.max(e,0)}function B(t,e){"scrollTop"in t?t.scrollTop=e:t.scrollTo(t.scrollX,e)}function N(){return window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0}function j(t){B(window,t),B(document.body,t)}function z(t,e){if(A(t))return 0;var n=e?R(e):N();return t.getBoundingClientRect().top+n}var F=10;var V={data:function(){return{direction:""}},methods:{touchStart:function(t){this.resetTouchStatus(),this.startX=t.touches[0].clientX,this.startY=t.touches[0].clientY},touchMove:function(t){var e,n,i=t.touches[0];this.deltaX=i.clientX-this.startX,this.deltaY=i.clientY-this.startY,this.offsetX=Math.abs(this.deltaX),this.offsetY=Math.abs(this.deltaY),this.direction=this.direction||(e=this.offsetX,n=this.offsetY,e>n&&e>F?"horizontal":n>e&&n>F?"vertical":"")},resetTouchStatus:function(){this.direction="",this.deltaX=0,this.deltaY=0,this.offsetX=0,this.offsetY=0},bindTouchEvent:function(t){var e=this.onTouchStart,n=this.onTouchMove,i=this.onTouchEnd;g(t,"touchstart",e),g(t,"touchmove",n),i&&(g(t,"touchend",i),g(t,"touchcancel",i))}}};function U(t){var e=void 0===t?{}:t,n=e.ref,i=e.afterPortal;return{props:{getContainer:[String,Function]},watch:{getContainer:"portal"},mounted:function(){this.getContainer&&this.portal()},methods:{portal:function(){var t,e,r=this.getContainer,o=n?this.$refs[n]:this.$el;r?t="string"==typeof(e=r)?document.querySelector(e):e():this.$parent&&(t=this.$parent.$el),t&&t!==o.parentNode&&t.appendChild(o),i&&i.call(this)}}}}var G=0;function $(t){var e="binded_"+G++;function n(){this[e]||(t.call(this,g,!0),this[e]=!0)}function i(){this[e]&&(t.call(this,y,!1),this[e]=!1)}return{mounted:n,activated:n,deactivated:i,beforeDestroy:i}}var H={mixins:[$(function(t,e){this.handlePopstate(e&&this.closeOnPopstate)})],props:{closeOnPopstate:Boolean},data:function(){return{bindStatus:!1}},watch:{closeOnPopstate:function(t){this.handlePopstate(t)}},methods:{onPopstate:function(){this.close(),this.shouldReopen=!1},handlePopstate:function(t){this.$isServer||this.bindStatus!==t&&(this.bindStatus=t,(t?g:y)(window,"popstate",this.onPopstate))}}},W={transitionAppear:Boolean,value:Boolean,overlay:Boolean,overlayStyle:Object,overlayClass:String,closeOnClickOverlay:Boolean,zIndex:[Number,String],lockScroll:{type:Boolean,default:!0},lazyRender:{type:Boolean,default:!0}};function q(t){return void 0===t&&(t={}),{mixins:[V,H,U({afterPortal:function(){this.overlay&&O()}})],props:W,data:function(){return{inited:this.value}},computed:{shouldRender:function(){return this.inited||!this.lazyRender}},watch:{value:function(e){var n=e?"open":"close";this.inited=this.inited||this.value,this[n](),t.skipToggleEvent||this.$emit(n)},overlay:"renderOverlay"},mounted:function(){this.value&&this.open()},activated:function(){this.shouldReopen&&(this.$emit("input",!0),this.shouldReopen=!1)},beforeDestroy:function(){var t,e;t=this,(e=p.find(t))&&C(e.overlay.$el),this.opened&&this.removeLock(),this.getContainer&&C(this.$el)},deactivated:function(){this.value&&(this.close(),this.shouldReopen=!0)},methods:{open:function(){this.$isServer||this.opened||(void 0!==this.zIndex&&(p.zIndex=this.zIndex),this.opened=!0,this.renderOverlay(),this.addLock())},addLock:function(){this.lockScroll&&(g(document,"touchstart",this.touchStart),g(document,"touchmove",this.onTouchMove),p.lockCount||document.body.classList.add("van-overflow-hidden"),p.lockCount++)},removeLock:function(){this.lockScroll&&p.lockCount&&(p.lockCount--,y(document,"touchstart",this.touchStart),y(document,"touchmove",this.onTouchMove),p.lockCount||document.body.classList.remove("van-overflow-hidden"))},close:function(){this.opened&&(P(this),this.opened=!1,this.removeLock(),this.$emit("input",!1))},onTouchMove:function(t){this.touchMove(t);var e=this.deltaY>0?"10":"01",n=D(t.target,this.$el),i=n.scrollHeight,r=n.offsetHeight,o=n.scrollTop,a="11";0===o?a=r>=i?"00":"01":o+r>=i&&(a="10"),"11"===a||"vertical"!==this.direction||parseInt(a,2)&parseInt(e,2)||x(t,!0)},renderOverlay:function(){var t=this;!this.$isServer&&this.value&&this.$nextTick(function(){t.updateZIndex(t.overlay?1:0),t.overlay?k(t,{zIndex:p.zIndex++,duration:t.duration,className:t.overlayClass,customStyle:t.overlayStyle}):P(t)})},updateZIndex:function(t){void 0===t&&(t=0),this.$el.style.zIndex=++p.zIndex+t}}}}var X=Object(a.b)("info"),Y=X[0],K=X[1];function Z(t,e,n,i){var r=e.dot,s=e.info,c=Object(a.e)(s)&&""!==s;if(r||c)return t("div",o()([{class:K({dot:r})},h(i,!0)]),[r?"":e.info])}Z.props={dot:Boolean,info:[Number,String]};var J=Y(Z),Q=Object(a.b)("icon"),tt=Q[0],et=Q[1];var nt={medel:"medal","medel-o":"medal-o","calender-o":"calendar-o"};function it(t,e,n,i){var r,s=function(t){return t&&nt[t]||t}(e.name),c=function(t){return!!t&&-1!==t.indexOf("/")}(s);return t(e.tag,o()([{class:[e.classPrefix,c?"":e.classPrefix+"-"+s],style:{color:e.color,fontSize:Object(a.a)(e.size)}},h(i,!0)]),[n.default&&n.default(),c&&t("img",{class:et("image"),attrs:{src:s}}),t(J,{attrs:{dot:e.dot,info:null!=(r=e.badge)?r:e.info}})])}it.props={dot:Boolean,name:String,size:[Number,String],info:[Number,String],badge:[Number,String],color:String,tag:{type:String,default:"i"},classPrefix:{type:String,default:et()}};var rt=tt(it),ot=Object(a.b)("popup"),at=ot[0],st=ot[1],ct=at({mixins:[q()],props:{round:Boolean,duration:[Number,String],closeable:Boolean,transition:String,safeAreaInsetBottom:Boolean,closeIcon:{type:String,default:"cross"},closeIconPosition:{type:String,default:"top-right"},position:{type:String,default:"center"},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}},beforeCreate:function(){var t=this,e=function(e){return function(n){return t.$emit(e,n)}};this.onClick=e("click"),this.onOpened=e("opened"),this.onClosed=e("closed")},methods:{onClickCloseIcon:function(t){this.$emit("click-close-icon",t),this.close()}},render:function(){var t,e=arguments[0];if(this.shouldRender){var n=this.round,i=this.position,r=this.duration,o="center"===i,s=this.transition||(o?"van-fade":"van-popup-slide-"+i),c={};if(Object(a.e)(r))c[o?"animationDuration":"transitionDuration"]=r+"s";return e("transition",{attrs:{appear:this.transitionAppear,name:s},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[e("div",{directives:[{name:"show",value:this.value}],style:c,class:st((t={round:n},t[i]=i,t["safe-area-inset-bottom"]=this.safeAreaInsetBottom,t)),on:{click:this.onClick}},[this.slots(),this.closeable&&e(rt,{attrs:{role:"button",tabindex:"0",name:this.closeIcon},class:st("close-icon",this.closeIconPosition),on:{click:this.onClickCloseIcon}})])])}}}),lt=Object(a.b)("loading"),ut=lt[0],ht=lt[1];function dt(t,e,n,i){var r=e.color,s=e.size,c=e.type,l={color:r};if(s){var u=Object(a.a)(s);l.width=u,l.height=u}return t("div",o()([{class:ht([c,{vertical:e.vertical}])},h(i,!0)]),[t("span",{class:ht("spinner",c),style:l},[function(t,e){if("spinner"===e.type){for(var n=[],i=0;i<12;i++)n.push(t("i"));return n}return t("svg",{class:ht("circular"),attrs:{viewBox:"25 25 50 50"}},[t("circle",{attrs:{cx:"50",cy:"50",r:"20",fill:"none"}})])}(t,e)]),function(t,e,n){if(n.default){var i,r={fontSize:Object(a.a)(e.textSize),color:null!=(i=e.textColor)?i:e.color};return t("span",{class:ht("text"),style:r},[n.default()])}}(t,e,n)])}dt.props={color:String,size:[Number,String],vertical:Boolean,textSize:[Number,String],textColor:String,type:{type:String,default:"circular"}};var ft=ut(dt),pt=Object(a.b)("action-sheet"),mt=pt[0],vt=pt[1];function gt(t,e,n,i){var r=e.title,a=e.cancelText,s=e.closeable;function c(){d(i,"input",!1),d(i,"cancel")}return t(ct,o()([{class:vt(),attrs:{position:"bottom",round:e.round,value:e.value,overlay:e.overlay,duration:e.duration,lazyRender:e.lazyRender,lockScroll:e.lockScroll,getContainer:e.getContainer,closeOnPopstate:e.closeOnPopstate,closeOnClickOverlay:e.closeOnClickOverlay,safeAreaInsetBottom:e.safeAreaInsetBottom}},h(i,!0)]),[function(){if(r)return t("div",{class:vt("header")},[r,s&&t(rt,{attrs:{name:e.closeIcon},class:vt("close"),on:{click:c}})])}(),function(){var i=(null==n.description?void 0:n.description())||e.description;if(i)return t("div",{class:vt("description")},[i])}(),t("div",{class:vt("content")},[e.actions&&e.actions.map(function(n,r){var o=n.disabled,a=n.loading,s=n.callback;return t("button",{attrs:{type:"button"},class:[vt("item",{disabled:o,loading:a}),n.className],style:{color:n.color},on:{click:function(t){t.stopPropagation(),o||a||(s&&s(n),d(i,"select",n,r),e.closeOnClickAction&&d(i,"input",!1))}}},[a?t(ft,{class:vt("loading-icon")}):[t("span",{class:vt("name")},[n.name]),n.subname&&t("div",{class:vt("subname")},[n.subname])]])}),null==n.default?void 0:n.default()]),function(){if(a)return[t("div",{class:vt("gap")}),t("button",{attrs:{type:"button"},class:vt("cancel"),on:{click:c}},[a])]}()])}gt.props=i({},W,{title:String,actions:Array,duration:[Number,String],cancelText:String,description:String,getContainer:[String,Function],closeOnPopstate:Boolean,closeOnClickAction:Boolean,round:{type:Boolean,default:!0},closeable:{type:Boolean,default:!0},closeIcon:{type:String,default:"cross"},safeAreaInsetBottom:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}});var yt=mt(gt);function bt(t){return t=t.replace(/[^-|\d]/g,""),/^((\+86)|(86))?(1)\d{10}$/.test(t)||/^0[0-9-]{10,13}$/.test(t)}var xt={title:String,loading:Boolean,readonly:Boolean,itemHeight:[Number,String],showToolbar:Boolean,cancelButtonText:String,confirmButtonText:String,allowHtml:{type:Boolean,default:!0},visibleItemCount:{type:[Number,String],default:6},swipeDuration:{type:[Number,String],default:1e3}},_t="#ee0a24",wt="van-hairline",St=wt+"--top",Tt=wt+"--left",Et=wt+"--bottom",Mt=wt+"--surround",Ct=wt+"--top-bottom",Lt=n("4PMK"),Ot=n("54/E");function kt(t){return Array.isArray(t)?t.map(function(t){return kt(t)}):"object"==typeof t?Object(Ot.a)({},t):t}function Pt(t,e,n){return Math.min(Math.max(t,e),n)}function At(t,e,n){var i=t.indexOf(e);return-1===i?t:"-"===e&&0!==i?t.slice(0,i):t.slice(0,i+1)+t.slice(i).replace(n,"")}function It(t,e,n){void 0===e&&(e=!0),void 0===n&&(n=!0),t=e?At(t,".",/\./g):t.split(".")[0],t=n?At(t,"-",/-/g):t.replace(/-/,"");var i=e?/[^-0-9.]/g:/[^-0-9]/g;return t.replace(i,"")}var Dt=Object(a.b)("picker-column"),Rt=Dt[0],Bt=Dt[1];function Nt(t){return Object(a.g)(t)&&t.disabled}var jt=Rt({mixins:[V],props:{valueKey:String,readonly:Boolean,allowHtml:Boolean,className:String,itemHeight:Number,defaultIndex:Number,swipeDuration:[Number,String],visibleItemCount:[Number,String],initialOptions:{type:Array,default:function(){return[]}}},data:function(){return{offset:0,duration:0,options:kt(this.initialOptions),currentIndex:this.defaultIndex}},created:function(){this.$parent.children&&this.$parent.children.push(this),this.setIndex(this.currentIndex)},mounted:function(){this.bindTouchEvent(this.$el)},destroyed:function(){var t=this.$parent.children;t&&t.splice(t.indexOf(this),1)},watch:{initialOptions:"setOptions",defaultIndex:function(t){this.setIndex(t)}},computed:{count:function(){return this.options.length},baseOffset:function(){return this.itemHeight*(this.visibleItemCount-1)/2}},methods:{setOptions:function(t){JSON.stringify(t)!==JSON.stringify(this.options)&&(this.options=kt(t),this.setIndex(this.defaultIndex))},onTouchStart:function(t){if(!this.readonly){if(this.touchStart(t),this.moving){var e=function(t){var e=window.getComputedStyle(t),n=e.transform||e.webkitTransform,i=n.slice(7,n.length-1).split(", ")[5];return Number(i)}(this.$refs.wrapper);this.offset=Math.min(0,e-this.baseOffset),this.startOffset=this.offset}else this.startOffset=this.offset;this.duration=0,this.transitionEndTrigger=null,this.touchStartTime=Date.now(),this.momentumOffset=this.startOffset}},onTouchMove:function(t){if(!this.readonly){this.touchMove(t),"vertical"===this.direction&&(this.moving=!0,x(t,!0)),this.offset=Pt(this.startOffset+this.deltaY,-this.count*this.itemHeight,this.itemHeight);var e=Date.now();e-this.touchStartTime>300&&(this.touchStartTime=e,this.momentumOffset=this.offset)}},onTouchEnd:function(){var t=this;if(!this.readonly){var e=this.offset-this.momentumOffset,n=Date.now()-this.touchStartTime;if(n<300&&Math.abs(e)>15)this.momentum(e,n);else{var i=this.getIndexByOffset(this.offset);this.duration=200,this.setIndex(i,!0),setTimeout(function(){t.moving=!1},0)}}},onTransitionEnd:function(){this.stopMomentum()},onClickItem:function(t){this.moving||this.readonly||(this.transitionEndTrigger=null,this.duration=200,this.setIndex(t,!0))},adjustIndex:function(t){for(var e=t=Pt(t,0,this.count);e<this.count;e++)if(!Nt(this.options[e]))return e;for(var n=t-1;n>=0;n--)if(!Nt(this.options[n]))return n},getOptionText:function(t){return Object(a.g)(t)&&this.valueKey in t?t[this.valueKey]:t},setIndex:function(t,e){var n=this,i=-(t=this.adjustIndex(t)||0)*this.itemHeight,r=function(){t!==n.currentIndex&&(n.currentIndex=t,e&&n.$emit("change",t))};this.moving&&i!==this.offset?this.transitionEndTrigger=r:r(),this.offset=i},setValue:function(t){for(var e=this.options,n=0;n<e.length;n++)if(this.getOptionText(e[n])===t)return this.setIndex(n)},getValue:function(){return this.options[this.currentIndex]},getIndexByOffset:function(t){return Pt(Math.round(-t/this.itemHeight),0,this.count-1)},momentum:function(t,e){var n=Math.abs(t/e);t=this.offset+n/.003*(t<0?-1:1);var i=this.getIndexByOffset(t);this.duration=+this.swipeDuration,this.setIndex(i,!0)},stopMomentum:function(){this.moving=!1,this.duration=0,this.transitionEndTrigger&&(this.transitionEndTrigger(),this.transitionEndTrigger=null)},genOptions:function(){var t=this,e=this.$createElement,n={height:this.itemHeight+"px"};return this.options.map(function(i,r){var a,s=t.getOptionText(i),c=Nt(i),l={style:n,attrs:{role:"button",tabindex:c?-1:0},class:[Bt("item",{disabled:c,selected:r===t.currentIndex})],on:{click:function(){t.onClickItem(r)}}},u={class:"van-ellipsis",domProps:(a={},a[t.allowHtml?"innerHTML":"textContent"]=s,a)};return e("li",o()([{},l]),[t.slots("option",i)||e("div",o()([{},u]))])})}},render:function(){var t=arguments[0],e={transform:"translate3d(0, "+(this.offset+this.baseOffset)+"px, 0)",transitionDuration:this.duration+"ms",transitionProperty:this.duration?"all":"none"};return t("div",{class:[Bt(),this.className]},[t("ul",{ref:"wrapper",style:e,class:Bt("wrapper"),on:{transitionend:this.onTransitionEnd}},[this.genOptions()])])}}),zt=Object(a.b)("picker"),Ft=zt[0],Vt=zt[1],Ut=zt[2],Gt=Ft({props:i({},xt,{defaultIndex:{type:[Number,String],default:0},columns:{type:Array,default:function(){return[]}},toolbarPosition:{type:String,default:"top"},valueKey:{type:String,default:"text"}}),data:function(){return{children:[],formattedColumns:[]}},computed:{itemPxHeight:function(){return this.itemHeight?Object(Lt.b)(this.itemHeight):44},dataType:function(){var t=this.columns[0]||{};return t.children?"cascade":t.values?"object":"text"}},watch:{columns:{handler:"format",immediate:!0}},methods:{format:function(){var t=this.columns,e=this.dataType;"text"===e?this.formattedColumns=[{values:t}]:"cascade"===e?this.formatCascade():this.formattedColumns=t},formatCascade:function(){for(var t=[],e={children:this.columns};e&&e.children;){for(var n,i=e.children,r=null!=(n=e.defaultIndex)?n:+this.defaultIndex;i[r]&&i[r].disabled;){if(!(r<i.length-1)){r=0;break}r++}t.push({values:e.children,className:e.className,defaultIndex:r}),e=i[r]}this.formattedColumns=t},emit:function(t){var e=this;if("text"===this.dataType)this.$emit(t,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map(function(t){return t[e.valueKey]})),this.$emit(t,n,this.getIndexes())}},onCascadeChange:function(t){for(var e={children:this.columns},n=this.getIndexes(),i=0;i<=t;i++)e=e.children[n[i]];for(;e&&e.children;)t++,this.setColumnValues(t,e.children),e=e.children[e.defaultIndex||0]},onChange:function(t){var e=this;if("cascade"===this.dataType&&this.onCascadeChange(t),"text"===this.dataType)this.$emit("change",this,this.getColumnValue(0),this.getColumnIndex(0));else{var n=this.getValues();"cascade"===this.dataType&&(n=n.map(function(t){return t[e.valueKey]})),this.$emit("change",this,n,t)}},getColumn:function(t){return this.children[t]},getColumnValue:function(t){var e=this.getColumn(t);return e&&e.getValue()},setColumnValue:function(t,e){var n=this.getColumn(t);n&&(n.setValue(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnIndex:function(t){return(this.getColumn(t)||{}).currentIndex},setColumnIndex:function(t,e){var n=this.getColumn(t);n&&(n.setIndex(e),"cascade"===this.dataType&&this.onCascadeChange(t))},getColumnValues:function(t){return(this.children[t]||{}).options},setColumnValues:function(t,e){var n=this.children[t];n&&n.setOptions(e)},getValues:function(){return this.children.map(function(t){return t.getValue()})},setValues:function(t){var e=this;t.forEach(function(t,n){e.setColumnValue(n,t)})},getIndexes:function(){return this.children.map(function(t){return t.currentIndex})},setIndexes:function(t){var e=this;t.forEach(function(t,n){e.setColumnIndex(n,t)})},confirm:function(){this.children.forEach(function(t){return t.stopMomentum()}),this.emit("confirm")},cancel:function(){this.emit("cancel")},genTitle:function(){var t=this.$createElement,e=this.slots("title");return e||(this.title?t("div",{class:["van-ellipsis",Vt("title")]},[this.title]):void 0)},genCancel:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Vt("cancel"),on:{click:this.cancel}},[this.slots("cancel")||this.cancelButtonText||Ut("cancel")])},genConfirm:function(){return(0,this.$createElement)("button",{attrs:{type:"button"},class:Vt("confirm"),on:{click:this.confirm}},[this.slots("confirm")||this.confirmButtonText||Ut("confirm")])},genToolbar:function(){var t=this.$createElement;if(this.showToolbar)return t("div",{class:Vt("toolbar")},[this.slots()||[this.genCancel(),this.genTitle(),this.genConfirm()]])},genColumns:function(){var t=this.$createElement,e=this.itemPxHeight,n=e*this.visibleItemCount,i={height:e+"px"},r={height:n+"px"},o={backgroundSize:"100% "+(n-e)/2+"px"};return t("div",{class:Vt("columns"),style:r,on:{touchmove:x}},[this.genColumnItems(),t("div",{class:Vt("mask"),style:o}),t("div",{class:["van-hairline-unset--top-bottom",Vt("frame")],style:i})])},genColumnItems:function(){var t=this,e=this.$createElement;return this.formattedColumns.map(function(n,i){var r;return e(jt,{attrs:{readonly:t.readonly,valueKey:t.valueKey,allowHtml:t.allowHtml,className:n.className,itemHeight:t.itemPxHeight,defaultIndex:null!=(r=n.defaultIndex)?r:+t.defaultIndex,swipeDuration:t.swipeDuration,visibleItemCount:t.visibleItemCount,initialOptions:n.values},scopedSlots:{option:t.$scopedSlots.option},on:{change:function(){t.onChange(i)}}})})}},render:function(t){return t("div",{class:Vt()},["top"===this.toolbarPosition?this.genToolbar():t(),this.loading?t(ft,{class:Vt("loading")}):t(),this.slots("columns-top"),this.genColumns(),this.slots("columns-bottom"),"bottom"===this.toolbarPosition?this.genToolbar():t()])}}),$t=Object(a.b)("area"),Ht=$t[0],Wt=$t[1];var qt=Ht({props:i({},xt,{value:String,areaList:{type:Object,default:function(){return{}}},columnsNum:{type:[Number,String],default:3},isOverseaCode:{type:Function,default:function(t){return"9"===t[0]}},columnsPlaceholder:{type:Array,default:function(){return[]}}}),data:function(){return{code:this.value,columns:[{values:[]},{values:[]},{values:[]}]}},computed:{province:function(){return this.areaList.province_list||{}},city:function(){return this.areaList.city_list||{}},county:function(){return this.areaList.county_list||{}},displayColumns:function(){return this.columns.slice(0,+this.columnsNum)},placeholderMap:function(){return{province:this.columnsPlaceholder[0]||"",city:this.columnsPlaceholder[1]||"",county:this.columnsPlaceholder[2]||""}}},watch:{value:function(t){this.code=t,this.setValues()},areaList:{deep:!0,handler:"setValues"},columnsNum:function(){var t=this;this.$nextTick(function(){t.setValues()})}},mounted:function(){this.setValues()},methods:{getList:function(t,e){var n=[];if("province"!==t&&!e)return n;var i=this[t];if(n=Object.keys(i).map(function(t){return{code:t,name:i[t]}}),e&&(this.isOverseaCode(e)&&"city"===t&&(e="9"),n=n.filter(function(t){return 0===t.code.indexOf(e)})),this.placeholderMap[t]&&n.length){var r="";"city"===t?r="000000".slice(2,4):"county"===t&&(r="000000".slice(4,6)),n.unshift({code:""+e+r,name:this.placeholderMap[t]})}return n},getIndex:function(t,e){var n="province"===t?2:"city"===t?4:6,i=this.getList(t,e.slice(0,n-2));this.isOverseaCode(e)&&"province"===t&&(n=1),e=e.slice(0,n);for(var r=0;r<i.length;r++)if(i[r].code.slice(0,n)===e)return r;return 0},parseOutputValues:function(t){var e=this;return t.map(function(t,n){return t?((t=JSON.parse(JSON.stringify(t))).code&&t.name!==e.columnsPlaceholder[n]||(t.code="",t.name=""),t):t})},onChange:function(t,e,n){this.code=e[n].code,this.setValues();var i=this.parseOutputValues(t.getValues());this.$emit("change",t,i,n)},onConfirm:function(t,e){t=this.parseOutputValues(t),this.setValues(),this.$emit("confirm",t,e)},getDefaultCode:function(){if(this.columnsPlaceholder.length)return"000000";var t=Object.keys(this.county);if(t[0])return t[0];var e=Object.keys(this.city);return e[0]?e[0]:""},setValues:function(){var t=this.code;t||(t=this.getDefaultCode());var e=this.$refs.picker,n=this.getList("province"),i=this.getList("city",t.slice(0,2));e&&(e.setColumnValues(0,n),e.setColumnValues(1,i),i.length&&"00"===t.slice(2,4)&&!this.isOverseaCode(t)&&(t=i[0].code),e.setColumnValues(2,this.getList("county",t.slice(0,4))),e.setIndexes([this.getIndex("province",t),this.getIndex("city",t),this.getIndex("county",t)]))},getValues:function(){var t=this.$refs.picker,e=t?t.getValues().filter(function(t){return!!t}):[];return e=this.parseOutputValues(e),e},getArea:function(){var t=this.getValues(),e={code:"",country:"",province:"",city:"",county:""};if(!t.length)return e;var n=t.map(function(t){return t.name}),i=t.filter(function(t){return!!t.code});return e.code=i.length?i[i.length-1].code:"",this.isOverseaCode(e.code)?(e.country=n[1]||"",e.province=n[2]||""):(e.province=n[0]||"",e.city=n[1]||"",e.county=n[2]||""),e},reset:function(t){this.code=t||"",this.setValues()}},render:function(){var t,e,n,r,o,a=arguments[0],s=i({},this.$listeners,{change:this.onChange,confirm:this.onConfirm});return a(Gt,{ref:"picker",class:Wt(),attrs:{showToolbar:!0,valueKey:"name",title:this.title,columns:this.displayColumns,loading:this.loading,readonly:this.readonly,itemHeight:this.itemHeight,swipeDuration:this.swipeDuration,visibleItemCount:this.visibleItemCount,cancelButtonText:this.cancelButtonText,confirmButtonText:this.confirmButtonText},scopedSlots:(t=this,e=["title","columns-top","columns-bottom"],n=t.$slots,r=t.$scopedSlots,o={},e.forEach(function(t){r[t]?o[t]=r[t]:n[t]&&(o[t]=function(){return n[t]})}),o),on:i({},s)})}});function Xt(t,e){var n=e.to,i=e.url,r=e.replace;if(n&&t){var o=t[r?"replace":"push"](n);o&&o.catch&&o.catch(function(t){if(t&&!function(t){return"NavigationDuplicated"===t.name||t.message&&-1!==t.message.indexOf("redundant navigation")}(t))throw t})}else i&&(r?location.replace(i):location.href=i)}function Yt(t){Xt(t.parent&&t.parent.$router,t.props)}var Kt={url:String,replace:Boolean,to:[String,Object]},Zt={icon:String,size:String,center:Boolean,isLink:Boolean,required:Boolean,clickable:Boolean,iconPrefix:String,titleStyle:null,titleClass:null,valueClass:null,labelClass:null,title:[Number,String],value:[Number,String],label:[Number,String],arrowDirection:String,border:{type:Boolean,default:!0}},Jt=Object(a.b)("cell"),Qt=Jt[0],te=Jt[1];function ee(t,e,n,i){var r=e.icon,s=e.size,c=e.title,l=e.label,u=e.value,f=e.isLink,p=n.title||Object(a.e)(c);var m=f||e.clickable,v={clickable:m,center:e.center,required:e.required,borderless:!e.border};return s&&(v[s]=s),t("div",o()([{class:te(v),attrs:{role:m?"button":null,tabindex:m?0:null},on:{click:function(t){d(i,"click",t),Yt(i)}}},h(i)]),[n.icon?n.icon():r?t(rt,{class:te("left-icon"),attrs:{name:r,classPrefix:e.iconPrefix}}):void 0,function(){if(p)return t("div",{class:[te("title"),e.titleClass],style:e.titleStyle},[n.title?n.title():t("span",[c]),function(){if(n.label||Object(a.e)(l))return t("div",{class:[te("label"),e.labelClass]},[n.label?n.label():l])}()])}(),function(){if(n.default||Object(a.e)(u))return t("div",{class:[te("value",{alone:!p}),e.valueClass]},[n.default?n.default():t("span",[u])])}(),function(){var i=n["right-icon"];if(i)return i();if(f){var r=e.arrowDirection;return t(rt,{class:te("right-icon"),attrs:{name:r?"arrow-"+r:"arrow"}})}}(),null==n.extra?void 0:n.extra()])}ee.props=i({},Zt,Kt);var ne=Qt(ee);var ie=!a.i&&/ios|iphone|ipad|ipod/.test(navigator.userAgent.toLowerCase());function re(){ie&&j(N())}var oe=Object(a.b)("field"),ae=oe[0],se=oe[1],ce=ae({inheritAttrs:!1,provide:function(){return{vanField:this}},inject:{vanForm:{default:null}},props:i({},Zt,{name:String,rules:Array,disabled:{type:Boolean,default:null},readonly:{type:Boolean,default:null},autosize:[Boolean,Object],leftIcon:String,rightIcon:String,clearable:Boolean,formatter:Function,maxlength:[Number,String],labelWidth:[Number,String],labelClass:null,labelAlign:String,inputAlign:String,placeholder:String,errorMessage:String,errorMessageAlign:String,showWordLimit:Boolean,value:{type:[Number,String],default:""},type:{type:String,default:"text"},error:{type:Boolean,default:null},colon:{type:Boolean,default:null},clearTrigger:{type:String,default:"focus"},formatTrigger:{type:String,default:"onChange"}}),data:function(){return{focused:!1,validateFailed:!1,validateMessage:""}},watch:{value:function(){this.updateValue(this.value),this.resetValidation(),this.validateWithTrigger("onChange"),this.$nextTick(this.adjustSize)}},mounted:function(){this.updateValue(this.value,this.formatTrigger),this.$nextTick(this.adjustSize),this.vanForm&&this.vanForm.addField(this)},beforeDestroy:function(){this.vanForm&&this.vanForm.removeField(this)},computed:{showClear:function(){var t=this.getProp("readonly");if(this.clearable&&!t){var e=Object(a.e)(this.value)&&""!==this.value,n="always"===this.clearTrigger||"focus"===this.clearTrigger&&this.focused;return e&&n}},showError:function(){return null!==this.error?this.error:!!(this.vanForm&&this.vanForm.showError&&this.validateFailed)||void 0},listeners:function(){return i({},this.$listeners,{blur:this.onBlur,focus:this.onFocus,input:this.onInput,click:this.onClickInput,keypress:this.onKeypress})},labelStyle:function(){var t=this.getProp("labelWidth");if(t)return{width:Object(a.a)(t)}},formValue:function(){return this.children&&(this.$scopedSlots.input||this.$slots.input)?this.children.value:this.value}},methods:{focus:function(){this.$refs.input&&this.$refs.input.focus()},blur:function(){this.$refs.input&&this.$refs.input.blur()},runValidator:function(t,e){return new Promise(function(n){var i=e.validator(t,e);if(Object(a.h)(i))return i.then(n);n(i)})},isEmptyValue:function(t){return Array.isArray(t)?!t.length:0!==t&&!t},runSyncRule:function(t,e){return(!e.required||!this.isEmptyValue(t))&&!(e.pattern&&!e.pattern.test(t))},getRuleMessage:function(t,e){var n=e.message;return Object(a.f)(n)?n(t,e):n},runRules:function(t){var e=this;return t.reduce(function(t,n){return t.then(function(){if(!e.validateFailed){var t=e.formValue;return n.formatter&&(t=n.formatter(t,n)),e.runSyncRule(t,n)?n.validator?e.runValidator(t,n).then(function(i){!1===i&&(e.validateFailed=!0,e.validateMessage=e.getRuleMessage(t,n))}):void 0:(e.validateFailed=!0,void(e.validateMessage=e.getRuleMessage(t,n)))}})},Promise.resolve())},validate:function(t){var e=this;return void 0===t&&(t=this.rules),new Promise(function(n){t||n(),e.resetValidation(),e.runRules(t).then(function(){e.validateFailed?n({name:e.name,message:e.validateMessage}):n()})})},validateWithTrigger:function(t){if(this.vanForm&&this.rules){var e=this.vanForm.validateTrigger===t,n=this.rules.filter(function(n){return n.trigger?n.trigger===t:e});this.validate(n)}},resetValidation:function(){this.validateFailed&&(this.validateFailed=!1,this.validateMessage="")},updateValue:function(t,e){void 0===e&&(e="onChange"),t=Object(a.e)(t)?String(t):"";var n=this.maxlength;if(Object(a.e)(n)&&t.length>n&&(t=this.value&&this.value.length===+n?this.value:t.slice(0,n)),"number"===this.type||"digit"===this.type){var i="number"===this.type;t=It(t,i,i)}this.formatter&&e===this.formatTrigger&&(t=this.formatter(t));var r=this.$refs.input;r&&t!==r.value&&(r.value=t),t!==this.value&&this.$emit("input",t)},onInput:function(t){t.target.composing||this.updateValue(t.target.value)},onFocus:function(t){this.focused=!0,this.$emit("focus",t),this.getProp("readonly")&&this.blur()},onBlur:function(t){this.focused=!1,this.updateValue(this.value,"onBlur"),this.$emit("blur",t),this.validateWithTrigger("onBlur"),re()},onClick:function(t){this.$emit("click",t)},onClickInput:function(t){this.$emit("click-input",t)},onClickLeftIcon:function(t){this.$emit("click-left-icon",t)},onClickRightIcon:function(t){this.$emit("click-right-icon",t)},onClear:function(t){x(t),this.$emit("input",""),this.$emit("clear",t)},onKeypress:function(t){13===t.keyCode&&(this.getProp("submitOnEnter")||"textarea"===this.type||x(t),"search"===this.type&&this.blur());this.$emit("keypress",t)},adjustSize:function(){var t=this.$refs.input;if("textarea"===this.type&&this.autosize&&t){t.style.height="auto";var e=t.scrollHeight;if(Object(a.g)(this.autosize)){var n=this.autosize,i=n.maxHeight,r=n.minHeight;i&&(e=Math.min(e,i)),r&&(e=Math.max(e,r))}e&&(t.style.height=e+"px")}},genInput:function(){var t=this.$createElement,e=this.type,n=this.getProp("disabled"),r=this.getProp("readonly"),a=this.slots("input"),s=this.getProp("inputAlign");if(a)return t("div",{class:se("control",[s,"custom"]),on:{click:this.onClickInput}},[a]);var c={ref:"input",class:se("control",s),domProps:{value:this.value},attrs:i({},this.$attrs,{name:this.name,disabled:n,readonly:r,placeholder:this.placeholder}),on:this.listeners,directives:[{name:"model",value:this.value}]};if("textarea"===e)return t("textarea",o()([{},c]));var l,u=e;return"number"===e&&(u="text",l="decimal"),"digit"===e&&(u="tel",l="numeric"),t("input",o()([{attrs:{type:u,inputmode:l}},c]))},genLeftIcon:function(){var t=this.$createElement;if(this.slots("left-icon")||this.leftIcon)return t("div",{class:se("left-icon"),on:{click:this.onClickLeftIcon}},[this.slots("left-icon")||t(rt,{attrs:{name:this.leftIcon,classPrefix:this.iconPrefix}})])},genRightIcon:function(){var t=this.$createElement,e=this.slots;if(e("right-icon")||this.rightIcon)return t("div",{class:se("right-icon"),on:{click:this.onClickRightIcon}},[e("right-icon")||t(rt,{attrs:{name:this.rightIcon,classPrefix:this.iconPrefix}})])},genWordLimit:function(){var t=this.$createElement;if(this.showWordLimit&&this.maxlength){var e=(this.value||"").length;return t("div",{class:se("word-limit")},[t("span",{class:se("word-num")},[e]),"/",this.maxlength])}},genMessage:function(){var t=this.$createElement;if(!this.vanForm||!1!==this.vanForm.showErrorMessage){var e=this.errorMessage||this.validateMessage;if(e){var n=this.getProp("errorMessageAlign");return t("div",{class:se("error-message",n)},[e])}}},getProp:function(t){return Object(a.e)(this[t])?this[t]:this.vanForm&&Object(a.e)(this.vanForm[t])?this.vanForm[t]:void 0},genLabel:function(){var t=this.$createElement,e=this.getProp("colon")?":":"";return this.slots("label")?[this.slots("label"),e]:this.label?t("span",[this.label+e]):void 0}},render:function(){var t,e=arguments[0],n=this.slots,i=this.getProp("disabled"),r=this.getProp("labelAlign"),o={icon:this.genLeftIcon},a=this.genLabel();a&&(o.title=function(){return a});var s=this.slots("extra");return s&&(o.extra=function(){return s}),e(ne,{attrs:{icon:this.leftIcon,size:this.size,center:this.center,border:this.border,isLink:this.isLink,required:this.required,clickable:this.clickable,titleStyle:this.labelStyle,valueClass:se("value"),titleClass:[se("label",r),this.labelClass],arrowDirection:this.arrowDirection},scopedSlots:o,class:se((t={error:this.showError,disabled:i},t["label-"+r]=r,t["min-height"]="textarea"===this.type&&!this.autosize,t)),on:{click:this.onClick}},[e("div",{class:se("body")},[this.genInput(),this.showClear&&e(rt,{attrs:{name:"clear"},class:se("clear"),on:{touchstart:this.onClear}}),this.genRightIcon(),n("button")&&e("div",{class:se("button")},[n("button")])]),this.genWordLimit(),this.genMessage()])}}),le=0;var ue=Object(a.b)("toast"),he=ue[0],de=ue[1],fe=he({mixins:[q()],props:{icon:String,className:null,iconPrefix:String,loadingType:String,forbidClick:Boolean,closeOnClick:Boolean,message:[Number,String],type:{type:String,default:"text"},position:{type:String,default:"middle"},transition:{type:String,default:"van-fade"},lockScroll:{type:Boolean,default:!1}},data:function(){return{clickable:!1}},mounted:function(){this.toggleClickable()},destroyed:function(){this.toggleClickable()},watch:{value:"toggleClickable",forbidClick:"toggleClickable"},methods:{onClick:function(){this.closeOnClick&&this.close()},toggleClickable:function(){var t=this.value&&this.forbidClick;this.clickable!==t&&(this.clickable=t,t?(le||document.body.classList.add("van-toast--unclickable"),le++):--le||document.body.classList.remove("van-toast--unclickable"))},onAfterEnter:function(){this.$emit("opened"),this.onOpened&&this.onOpened()},onAfterLeave:function(){this.$emit("closed")},genIcon:function(){var t=this.$createElement,e=this.icon,n=this.type,i=this.iconPrefix,r=this.loadingType;return e||"success"===n||"fail"===n?t(rt,{class:de("icon"),attrs:{classPrefix:i,name:e||n}}):"loading"===n?t(ft,{class:de("loading"),attrs:{type:r}}):void 0},genMessage:function(){var t=this.$createElement,e=this.type,n=this.message;if(Object(a.e)(n)&&""!==n)return"html"===e?t("div",{class:de("text"),domProps:{innerHTML:n}}):t("div",{class:de("text")},[n])}},render:function(){var t,e=arguments[0];return e("transition",{attrs:{name:this.transition},on:{afterEnter:this.onAfterEnter,afterLeave:this.onAfterLeave}},[e("div",{directives:[{name:"show",value:this.value}],class:[de([this.position,(t={},t[this.type]=!this.icon,t)]),this.className],on:{click:this.onClick}},[this.genIcon(),this.genMessage()])])}}),pe={icon:"",type:"text",mask:!1,value:!0,message:"",className:"",overlay:!1,onClose:null,onOpened:null,duration:2e3,iconPrefix:void 0,position:"middle",transition:"van-fade",forbidClick:!1,loadingType:void 0,getContainer:"body",overlayStyle:null,closeOnClick:!1,closeOnClickOverlay:!1},me={},ve=[],ge=!1,ye=i({},pe);function be(t){return Object(a.g)(t)?t:{message:t}}function xe(){if(a.i)return{};if(!(ve=ve.filter(function(t){return!t.$el.parentNode||(e=t.$el,document.body.contains(e));var e})).length||ge){var t=new(c.a.extend(fe))({el:document.createElement("div")});t.$on("input",function(e){t.value=e}),ve.push(t)}return ve[ve.length-1]}function _e(t){void 0===t&&(t={});var e=xe();return e.value&&e.updateZIndex(),t=be(t),(t=i({},ye,me[t.type||ye.type],t)).clear=function(){e.value=!1,t.onClose&&(t.onClose(),t.onClose=null),ge&&!a.i&&e.$on("closed",function(){clearTimeout(e.timer),ve=ve.filter(function(t){return t!==e}),C(e.$el),e.$destroy()})},i(e,function(t){return i({},t,{overlay:t.mask||t.overlay,mask:void 0,duration:void 0})}(t)),clearTimeout(e.timer),t.duration>0&&(e.timer=setTimeout(function(){e.clear()},t.duration)),e}["loading","success","fail"].forEach(function(t){var e;_e[t]=(e=t,function(t){return _e(i({type:e},be(t)))})}),_e.clear=function(t){ve.length&&(t?(ve.forEach(function(t){t.clear()}),ve=[]):ge?ve.shift().clear():ve[0].clear())},_e.setDefaultOptions=function(t,e){"string"==typeof t?me[t]=e:i(ye,t)},_e.resetDefaultOptions=function(t){"string"==typeof t?me[t]=null:(ye=i({},pe),me={})},_e.allowMultiple=function(t){void 0===t&&(t=!0),ge=t},_e.install=function(){c.a.use(fe)},c.a.prototype.$toast=_e;var we=_e,Se=Object(a.b)("button"),Te=Se[0],Ee=Se[1];function Me(t,e,n,i){var r,a=e.tag,s=e.icon,c=e.type,l=e.color,u=e.plain,f=e.disabled,p=e.loading,m=e.hairline,v=e.loadingText,g=e.iconPosition,y={};l&&(y.color=u?l:"white",u||(y.background=l),-1!==l.indexOf("gradient")?y.border=0:y.borderColor=l);var b,x,_=[Ee([c,e.size,{plain:u,loading:p,disabled:f,hairline:m,block:e.block,round:e.round,square:e.square}]),(r={},r[Mt]=m,r)];function w(){return p?n.loading?n.loading():t(ft,{class:Ee("loading"),attrs:{size:e.loadingSize,type:e.loadingType,color:"currentColor"}}):s?t(rt,{attrs:{name:s,classPrefix:e.iconPrefix},class:Ee("icon")}):void 0}return t(a,o()([{style:y,class:_,attrs:{type:e.nativeType,disabled:f},on:{click:function(t){p||f||(d(i,"click",t),Yt(i))},touchstart:function(t){d(i,"touchstart",t)}}},h(i)]),[t("div",{class:Ee("content")},[(x=[],"left"===g&&x.push(w()),(b=p?v:n.default?n.default():e.text)&&x.push(t("span",{class:Ee("text")},[b])),"right"===g&&x.push(w()),x)])])}Me.props=i({},Kt,{text:String,icon:String,color:String,block:Boolean,plain:Boolean,round:Boolean,square:Boolean,loading:Boolean,hairline:Boolean,disabled:Boolean,iconPrefix:String,nativeType:String,loadingText:String,loadingType:String,tag:{type:String,default:"button"},type:{type:String,default:"default"},size:{type:String,default:"normal"},loadingSize:{type:String,default:"20px"},iconPosition:{type:String,default:"left"}});var Ce=Te(Me);function Le(t,e){var n=e.$vnode.componentOptions;if(n&&n.children){var i=function(t){var e=[];return function t(n){n.forEach(function(n){e.push(n),n.componentInstance&&t(n.componentInstance.$children.map(function(t){return t.$vnode})),n.children&&t(n.children)})}(t),e}(n.children);t.sort(function(t,e){return i.indexOf(t.$vnode)-i.indexOf(e.$vnode)})}}function Oe(t,e){var n,i;void 0===e&&(e={});var r=e.indexKey||"index";return{inject:(n={},n[t]={default:null},n),computed:(i={parent:function(){return this.disableBindRelation?null:this[t]}},i[r]=function(){return this.bindRelation(),this.parent?this.parent.children.indexOf(this):null},i),watch:{disableBindRelation:function(t){t||this.bindRelation()}},mounted:function(){this.bindRelation()},beforeDestroy:function(){var t=this;this.parent&&(this.parent.children=this.parent.children.filter(function(e){return e!==t}))},methods:{bindRelation:function(){if(this.parent&&-1===this.parent.children.indexOf(this)){var t=[].concat(this.parent.children,[this]);Le(t,this.parent),this.parent.children=t}}}}}function ke(t){return{provide:function(){var e;return(e={})[t]=this,e},data:function(){return{children:[]}}}}var Pe,Ae=Object(a.b)("goods-action"),Ie=Ae[0],De=Ae[1],Re=Ie({mixins:[ke("vanGoodsAction")],props:{safeAreaInsetBottom:{type:Boolean,default:!0}},render:function(){return(0,arguments[0])("div",{class:De({unfit:!this.safeAreaInsetBottom})},[this.slots()])}}),Be=Object(a.b)("goods-action-button"),Ne=Be[0],je=Be[1],ze=Ne({mixins:[Oe("vanGoodsAction")],props:i({},Kt,{type:String,text:String,icon:String,color:String,loading:Boolean,disabled:Boolean}),computed:{isFirst:function(){var t=this.parent&&this.parent.children[this.index-1];return!t||t.$options.name!==this.$options.name},isLast:function(){var t=this.parent&&this.parent.children[this.index+1];return!t||t.$options.name!==this.$options.name}},methods:{onClick:function(t){this.$emit("click",t),Xt(this.$router,this)}},render:function(){return(0,arguments[0])(Ce,{class:je([{first:this.isFirst,last:this.isLast},this.type]),attrs:{size:"large",type:this.type,icon:this.icon,color:this.color,loading:this.loading,disabled:this.disabled},on:{click:this.onClick}},[this.slots()||this.text])}}),Fe=Object(a.b)("dialog"),Ve=Fe[0],Ue=Fe[1],Ge=Fe[2],$e=Ve({mixins:[q()],props:{title:String,theme:String,width:[Number,String],message:String,className:null,callback:Function,beforeClose:Function,messageAlign:String,cancelButtonText:String,cancelButtonColor:String,confirmButtonText:String,confirmButtonColor:String,showCancelButton:Boolean,overlay:{type:Boolean,default:!0},allowHtml:{type:Boolean,default:!0},transition:{type:String,default:"van-dialog-bounce"},showConfirmButton:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!1}},data:function(){return{loading:{confirm:!1,cancel:!1}}},methods:{onClickOverlay:function(){this.handleAction("overlay")},handleAction:function(t){var e=this;this.$emit(t),this.value&&(this.beforeClose?(this.loading[t]=!0,this.beforeClose(t,function(n){!1!==n&&e.loading[t]&&e.onClose(t),e.loading.confirm=!1,e.loading.cancel=!1})):this.onClose(t))},onClose:function(t){this.close(),this.callback&&this.callback(t)},onOpened:function(){this.$emit("opened")},onClosed:function(){this.$emit("closed")},genRoundButtons:function(){var t=this,e=this.$createElement;return e(Re,{class:Ue("footer")},[this.showCancelButton&&e(ze,{attrs:{size:"large",type:"warning",text:this.cancelButtonText||Ge("cancel"),color:this.cancelButtonColor,loading:this.loading.cancel},class:Ue("cancel"),on:{click:function(){t.handleAction("cancel")}}}),this.showConfirmButton&&e(ze,{attrs:{size:"large",type:"danger",text:this.confirmButtonText||Ge("confirm"),color:this.confirmButtonColor,loading:this.loading.confirm},class:Ue("confirm"),on:{click:function(){t.handleAction("confirm")}}})])},genButtons:function(){var t,e=this,n=this.$createElement,i=this.showCancelButton&&this.showConfirmButton;return n("div",{class:[St,Ue("footer")]},[this.showCancelButton&&n(Ce,{attrs:{size:"large",loading:this.loading.cancel,text:this.cancelButtonText||Ge("cancel")},class:Ue("cancel"),style:{color:this.cancelButtonColor},on:{click:function(){e.handleAction("cancel")}}}),this.showConfirmButton&&n(Ce,{attrs:{size:"large",loading:this.loading.confirm,text:this.confirmButtonText||Ge("confirm")},class:[Ue("confirm"),(t={},t[Tt]=i,t)],style:{color:this.confirmButtonColor},on:{click:function(){e.handleAction("confirm")}}})])},genContent:function(t,e){var n=this.$createElement;if(e)return n("div",{class:Ue("content")},[e]);var i=this.message,r=this.messageAlign;if(i){var a,s,c={class:Ue("message",(a={"has-title":t},a[r]=r,a)),domProps:(s={},s[this.allowHtml?"innerHTML":"textContent"]=i,s)};return n("div",{class:Ue("content",{isolated:!t})},[n("div",o()([{},c]))])}}},render:function(){var t=arguments[0];if(this.shouldRender){var e=this.message,n=this.slots(),i=this.slots("title")||this.title,r=i&&t("div",{class:Ue("header",{isolated:!e&&!n})},[i]);return t("transition",{attrs:{name:this.transition},on:{afterEnter:this.onOpened,afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],attrs:{role:"dialog","aria-labelledby":this.title||e},class:[Ue([this.theme]),this.className],style:{width:Object(a.a)(this.width)}},[r,this.genContent(i,n),"round-button"===this.theme?this.genRoundButtons():this.genButtons()])])}}});function He(t){return a.i?Promise.resolve():new Promise(function(e,n){var r;Pe&&(r=Pe.$el,document.body.contains(r))||(Pe&&Pe.$destroy(),(Pe=new(c.a.extend($e))({el:document.createElement("div"),propsData:{lazyRender:!1}})).$on("input",function(t){Pe.value=t})),i(Pe,He.currentOptions,t,{resolve:e,reject:n})})}He.defaultOptions={value:!0,title:"",width:"",theme:null,message:"",overlay:!0,className:"",allowHtml:!0,lockScroll:!0,transition:"van-dialog-bounce",beforeClose:null,overlayClass:"",overlayStyle:null,messageAlign:"",getContainer:"body",cancelButtonText:"",cancelButtonColor:null,confirmButtonText:"",confirmButtonColor:null,showConfirmButton:!0,showCancelButton:!1,closeOnPopstate:!0,closeOnClickOverlay:!1,callback:function(t){Pe["confirm"===t?"resolve":"reject"](t)}},He.alert=He,He.confirm=function(t){return He(i({showCancelButton:!0},t))},He.close=function(){Pe&&(Pe.value=!1)},He.setDefaultOptions=function(t){i(He.currentOptions,t)},He.resetDefaultOptions=function(){He.currentOptions=i({},He.defaultOptions)},He.resetDefaultOptions(),He.install=function(){c.a.use($e)},He.Component=$e,c.a.prototype.$dialog=He;var We=He,qe=Object(a.b)("address-edit-detail"),Xe=qe[0],Ye=qe[1],Ke=qe[2],Ze=!a.i&&/android/.test(navigator.userAgent.toLowerCase()),Je=Xe({props:{value:String,errorMessage:String,focused:Boolean,detailRows:[Number,String],searchResult:Array,detailMaxlength:[Number,String],showSearchResult:Boolean},computed:{shouldShowSearchResult:function(){return this.focused&&this.searchResult&&this.showSearchResult}},methods:{onSelect:function(t){this.$emit("select-search",t),this.$emit("input",((t.address||"")+" "+(t.name||"")).trim())},onFinish:function(){this.$refs.field.blur()},genFinish:function(){var t=this.$createElement;if(this.value&&this.focused&&Ze)return t("div",{class:Ye("finish"),on:{click:this.onFinish}},[Ke("complete")])},genSearchResult:function(){var t=this,e=this.$createElement,n=this.value,i=this.shouldShowSearchResult,r=this.searchResult;if(i)return r.map(function(i){return e(ne,{key:i.name+i.address,attrs:{clickable:!0,border:!1,icon:"location-o",label:i.address},class:Ye("search-item"),on:{click:function(){t.onSelect(i)}},scopedSlots:{title:function(){if(i.name){var t=i.name.replace(n,"<span class="+Ye("keyword")+">"+n+"</span>");return e("div",{domProps:{innerHTML:t}})}}}})})}},render:function(){var t=arguments[0];return t(ne,{class:Ye()},[t(ce,{attrs:{autosize:!0,rows:this.detailRows,clearable:!Ze,type:"textarea",value:this.value,errorMessage:this.errorMessage,border:!this.shouldShowSearchResult,label:Ke("label"),maxlength:this.detailMaxlength,placeholder:Ke("placeholder")},ref:"field",scopedSlots:{icon:this.genFinish},on:i({},this.$listeners)}),this.genSearchResult()])}}),Qe={size:[Number,String],value:null,loading:Boolean,disabled:Boolean,activeColor:String,inactiveColor:String,activeValue:{type:null,default:!0},inactiveValue:{type:null,default:!1}},tn={inject:{vanField:{default:null}},watch:{value:function(){var t=this.vanField;t&&(t.resetValidation(),t.validateWithTrigger("onChange"))}},created:function(){var t=this.vanField;t&&!t.children&&(t.children=this)}},en=Object(a.b)("switch"),nn=en[0],rn=en[1],on=nn({mixins:[tn],props:Qe,computed:{checked:function(){return this.value===this.activeValue},style:function(){return{fontSize:Object(a.a)(this.size),backgroundColor:this.checked?this.activeColor:this.inactiveColor}}},methods:{onClick:function(t){if(this.$emit("click",t),!this.disabled&&!this.loading){var e=this.checked?this.inactiveValue:this.activeValue;this.$emit("input",e),this.$emit("change",e)}},genLoading:function(){var t=this.$createElement;if(this.loading){var e=this.checked?this.activeColor:this.inactiveColor;return t(ft,{class:rn("loading"),attrs:{color:e}})}}},render:function(){var t=arguments[0],e=this.checked,n=this.loading,i=this.disabled;return t("div",{class:rn({on:e,loading:n,disabled:i}),attrs:{role:"switch","aria-checked":String(e)},style:this.style,on:{click:this.onClick}},[t("div",{class:rn("node")},[this.genLoading()])])}}),an=Object(a.b)("address-edit"),sn=an[0],cn=an[1],ln=an[2],un={name:"",tel:"",country:"",province:"",city:"",county:"",areaCode:"",postalCode:"",addressDetail:"",isDefault:!1};var hn=sn({props:{areaList:Object,isSaving:Boolean,isDeleting:Boolean,validator:Function,showDelete:Boolean,showPostal:Boolean,searchResult:Array,telMaxlength:[Number,String],showSetDefault:Boolean,saveButtonText:String,areaPlaceholder:String,deleteButtonText:String,showSearchResult:Boolean,showArea:{type:Boolean,default:!0},showDetail:{type:Boolean,default:!0},disableArea:Boolean,detailRows:{type:[Number,String],default:1},detailMaxlength:{type:[Number,String],default:200},addressInfo:{type:Object,default:function(){return i({},un)}},telValidator:{type:Function,default:bt},postalValidator:{type:Function,default:function(t){return/^\d{6}$/.test(t)}},areaColumnsPlaceholder:{type:Array,default:function(){return[]}}},data:function(){return{data:{},showAreaPopup:!1,detailFocused:!1,errorInfo:{tel:"",name:"",areaCode:"",postalCode:"",addressDetail:""}}},computed:{areaListLoaded:function(){return Object(a.g)(this.areaList)&&Object.keys(this.areaList).length},areaText:function(){var t=this.data,e=t.country,n=t.province,i=t.city,r=t.county;if(t.areaCode){var o=[e,n,i,r];return n&&n===i&&o.splice(1,1),o.filter(function(t){return t}).join("/")}return""},hideBottomFields:function(){var t=this.searchResult;return t&&t.length&&this.detailFocused}},watch:{addressInfo:{handler:function(t){this.data=i({},un,t),this.setAreaCode(t.areaCode)},deep:!0,immediate:!0},areaList:function(){this.setAreaCode(this.data.areaCode)}},methods:{onFocus:function(t){this.errorInfo[t]="",this.detailFocused="addressDetail"===t,this.$emit("focus",t)},onChangeDetail:function(t){this.data.addressDetail=t,this.$emit("change-detail",t)},onAreaConfirm:function(t){(t=t.filter(function(t){return!!t})).some(function(t){return!t.code})?we(ln("areaEmpty")):(this.showAreaPopup=!1,this.assignAreaValues(),this.$emit("change-area",t))},assignAreaValues:function(){var t=this.$refs.area;if(t){var e=t.getArea();e.areaCode=e.code,delete e.code,i(this.data,e)}},onSave:function(){var t=this,e=["name","tel"];this.showArea&&e.push("areaCode"),this.showDetail&&e.push("addressDetail"),this.showPostal&&e.push("postalCode"),e.every(function(e){var n=t.getErrorMessage(e);return n&&(t.errorInfo[e]=n),!n})&&!this.isSaving&&this.$emit("save",this.data)},getErrorMessage:function(t){var e=String(this.data[t]||"").trim();if(this.validator){var n=this.validator(t,e);if(n)return n}switch(t){case"name":return e?"":ln("nameEmpty");case"tel":return this.telValidator(e)?"":ln("telInvalid");case"areaCode":return e?"":ln("areaEmpty");case"addressDetail":return e?"":ln("addressEmpty");case"postalCode":return e&&!this.postalValidator(e)?ln("postalEmpty"):""}},onDelete:function(){var t=this;We.confirm({title:ln("confirmDelete")}).then(function(){t.$emit("delete",t.data)}).catch(function(){t.$emit("cancel-delete",t.data)})},getArea:function(){return this.$refs.area?this.$refs.area.getValues():[]},setAreaCode:function(t){this.data.areaCode=t||"",t&&this.$nextTick(this.assignAreaValues)},setAddressDetail:function(t){this.data.addressDetail=t},onDetailBlur:function(){var t=this;setTimeout(function(){t.detailFocused=!1})},genSetDefaultCell:function(t){var e=this;if(this.showSetDefault){var n={"right-icon":function(){return t(on,{attrs:{size:"24"},on:{change:function(t){e.$emit("change-default",t)}},model:{value:e.data.isDefault,callback:function(t){e.$set(e.data,"isDefault",t)}}})}};return t(ne,{directives:[{name:"show",value:!this.hideBottomFields}],attrs:{center:!0,title:ln("defaultAddress")},class:cn("default"),scopedSlots:n})}return t()}},render:function(t){var e=this,n=this.data,i=this.errorInfo,r=this.disableArea,o=this.hideBottomFields,a=function(t){return function(){return e.onFocus(t)}};return t("div",{class:cn()},[t("div",{class:cn("fields")},[t(ce,{attrs:{clearable:!0,label:ln("name"),placeholder:ln("namePlaceholder"),errorMessage:i.name},on:{focus:a("name")},model:{value:n.name,callback:function(t){e.$set(n,"name",t)}}}),t(ce,{attrs:{clearable:!0,type:"tel",label:ln("tel"),maxlength:this.telMaxlength,placeholder:ln("telPlaceholder"),errorMessage:i.tel},on:{focus:a("tel")},model:{value:n.tel,callback:function(t){e.$set(n,"tel",t)}}}),t(ce,{directives:[{name:"show",value:this.showArea}],attrs:{readonly:!0,clickable:!r,label:ln("area"),placeholder:this.areaPlaceholder||ln("areaPlaceholder"),errorMessage:i.areaCode,rightIcon:r?null:"arrow",value:this.areaText},on:{focus:a("areaCode"),click:function(){e.$emit("click-area"),e.showAreaPopup=!r}}}),t(Je,{directives:[{name:"show",value:this.showDetail}],attrs:{focused:this.detailFocused,value:n.addressDetail,errorMessage:i.addressDetail,detailRows:this.detailRows,detailMaxlength:this.detailMaxlength,searchResult:this.searchResult,showSearchResult:this.showSearchResult},on:{focus:a("addressDetail"),blur:this.onDetailBlur,input:this.onChangeDetail,"select-search":function(t){e.$emit("select-search",t)}}}),this.showPostal&&t(ce,{directives:[{name:"show",value:!o}],attrs:{type:"tel",maxlength:"6",label:ln("postal"),placeholder:ln("postal"),errorMessage:i.postalCode},on:{focus:a("postalCode")},model:{value:n.postalCode,callback:function(t){e.$set(n,"postalCode",t)}}}),this.slots()]),this.genSetDefaultCell(t),t("div",{directives:[{name:"show",value:!o}],class:cn("buttons")},[t(Ce,{attrs:{block:!0,round:!0,loading:this.isSaving,type:"danger",text:this.saveButtonText||ln("save")},on:{click:this.onSave}}),this.showDelete&&t(Ce,{attrs:{block:!0,round:!0,loading:this.isDeleting,text:this.deleteButtonText||ln("delete")},on:{click:this.onDelete}})]),t(ct,{attrs:{round:!0,position:"bottom",lazyRender:!1,getContainer:"body"},model:{value:e.showAreaPopup,callback:function(t){e.showAreaPopup=t}}},[t(qt,{ref:"area",attrs:{value:n.areaCode,loading:!this.areaListLoaded,areaList:this.areaList,columnsPlaceholder:this.areaColumnsPlaceholder},on:{confirm:this.onAreaConfirm,cancel:function(){e.showAreaPopup=!1}}})])])}}),dn=Object(a.b)("radio-group"),fn=dn[0],pn=dn[1],mn=fn({mixins:[ke("vanRadio"),tn],props:{value:null,disabled:Boolean,direction:String,checkedColor:String,iconSize:[Number,String]},watch:{value:function(t){this.$emit("change",t)}},render:function(){return(0,arguments[0])("div",{class:pn([this.direction]),attrs:{role:"radiogroup"}},[this.slots()])}}),vn=Object(a.b)("tag"),gn=vn[0],yn=vn[1];function bn(t,e,n,i){var r,a=e.type,s=e.mark,c=e.plain,l=e.color,u=e.round,f=e.size,p=((r={})[c?"color":"backgroundColor"]=l,r);e.textColor&&(p.color=e.textColor);var m={mark:s,plain:c,round:u};f&&(m[f]=f);var v=e.closeable&&t(rt,{attrs:{name:"cross"},class:yn("close"),on:{click:function(t){t.stopPropagation(),d(i,"close")}}});return t("transition",{attrs:{name:e.closeable?"van-fade":null}},[t("span",o()([{key:"content",style:p,class:yn([m,a])},h(i,!0)]),[null==n.default?void 0:n.default(),v])])}bn.props={size:String,mark:Boolean,color:String,plain:Boolean,round:Boolean,textColor:String,closeable:Boolean,type:{type:String,default:"default"}};var xn=gn(bn),_n=function(t){var e=t.parent,n=t.bem,i=t.role;return{mixins:[Oe(e),tn],props:{name:null,value:null,disabled:Boolean,iconSize:[Number,String],checkedColor:String,labelPosition:String,labelDisabled:Boolean,shape:{type:String,default:"round"},bindGroup:{type:Boolean,default:!0}},computed:{disableBindRelation:function(){return!this.bindGroup},isDisabled:function(){return this.parent&&this.parent.disabled||this.disabled},direction:function(){return this.parent&&this.parent.direction||null},iconStyle:function(){var t=this.checkedColor||this.parent&&this.parent.checkedColor;if(t&&this.checked&&!this.isDisabled)return{borderColor:t,backgroundColor:t}},tabindex:function(){return this.isDisabled||"radio"===i&&!this.checked?-1:0}},methods:{onClick:function(t){var e=this,n=t.target,i=this.$refs.icon,r=i===n||i.contains(n);this.isDisabled||!r&&this.labelDisabled?this.$emit("click",t):(this.toggle(),setTimeout(function(){e.$emit("click",t)}))},genIcon:function(){var t=this.$createElement,e=this.checked,i=this.iconSize||this.parent&&this.parent.iconSize;return t("div",{ref:"icon",class:n("icon",[this.shape,{disabled:this.isDisabled,checked:e}]),style:{fontSize:Object(a.a)(i)}},[this.slots("icon",{checked:e})||t(rt,{attrs:{name:"success"},style:this.iconStyle})])},genLabel:function(){var t=this.$createElement,e=this.slots();if(e)return t("span",{class:n("label",[this.labelPosition,{disabled:this.isDisabled}])},[e])}},render:function(){var t=arguments[0],e=[this.genIcon()];return"left"===this.labelPosition?e.unshift(this.genLabel()):e.push(this.genLabel()),t("div",{attrs:{role:i,tabindex:this.tabindex,"aria-checked":String(this.checked)},class:n([{disabled:this.isDisabled,"label-disabled":this.labelDisabled},this.direction]),on:{click:this.onClick}},[e])}}},wn=Object(a.b)("radio"),Sn=(0,wn[0])({mixins:[_n({bem:wn[1],role:"radio",parent:"vanRadio"})],computed:{currentValue:{get:function(){return this.parent?this.parent.value:this.value},set:function(t){(this.parent||this).$emit("input",t)}},checked:function(){return this.currentValue===this.name}},methods:{toggle:function(){this.currentValue=this.name}}}),Tn=Object(a.b)("address-item"),En=Tn[0],Mn=Tn[1];function Cn(t,e,n,r){var a=e.disabled,s=e.switchable;return t("div",{class:Mn({disabled:a}),on:{click:function(){s&&d(r,"select"),d(r,"click")}}},[t(ne,o()([{attrs:{border:!1,valueClass:Mn("value")},scopedSlots:{default:function(){var n=e.data,i=[t("div",{class:Mn("name")},[n.name+" "+n.tel,function(){if(e.data.isDefault&&e.defaultTagText)return t(xn,{attrs:{type:"danger",round:!0},class:Mn("tag")},[e.defaultTagText])}()]),t("div",{class:Mn("address")},[n.address])];return s&&!a?t(Sn,{attrs:{name:n.id,iconSize:18}},[i]):i},"right-icon":function(){return t(rt,{attrs:{name:"edit"},class:Mn("edit"),on:{click:function(t){t.stopPropagation(),d(r,"edit"),d(r,"click")}}})}}},h(r)])),null==n.bottom?void 0:n.bottom(i({},e.data,{disabled:a}))])}Cn.props={data:Object,disabled:Boolean,switchable:Boolean,defaultTagText:String};var Ln=En(Cn),On=Object(a.b)("address-list"),kn=On[0],Pn=On[1],An=On[2];function In(t,e,n,i){function r(r,o){if(r)return r.map(function(r,a){return t(Ln,{attrs:{data:r,disabled:o,switchable:e.switchable,defaultTagText:e.defaultTagText},key:r.id,scopedSlots:{bottom:n["item-bottom"]},on:{select:function(){d(i,o?"select-disabled":"select",r,a),o||d(i,"input",r.id)},edit:function(){d(i,o?"edit-disabled":"edit",r,a)},click:function(){d(i,"click-item",r,a)}}})})}var a=r(e.list),s=r(e.disabledList,!0);return t("div",o()([{class:Pn()},h(i)]),[null==n.top?void 0:n.top(),t(mn,{attrs:{value:e.value}},[a]),e.disabledText&&t("div",{class:Pn("disabled-text")},[e.disabledText]),s,null==n.default?void 0:n.default(),t("div",{class:Pn("bottom")},[t(Ce,{attrs:{round:!0,block:!0,type:"danger",text:e.addButtonText||An("add")},class:Pn("add"),on:{click:function(){d(i,"add")}}})])])}In.props={list:Array,value:[Number,String],disabledList:Array,disabledText:String,addButtonText:String,defaultTagText:String,switchable:{type:Boolean,default:!0}};var Dn=kn(In),Rn=n("mRXp"),Bn=Object(a.b)("badge"),Nn=Bn[0],jn=Bn[1],zn=Nn({props:{dot:Boolean,max:[Number,String],color:String,content:[Number,String],tag:{type:String,default:"div"}},methods:{hasContent:function(){return!!(this.$scopedSlots.content||Object(a.e)(this.content)&&""!==this.content)},renderContent:function(){var t=this.dot,e=this.max,n=this.content;if(!t&&this.hasContent())return this.$scopedSlots.content?this.$scopedSlots.content():Object(a.e)(e)&&Object(Rn.b)(n)&&+n>e?e+"+":n},renderBadge:function(){var t=this.$createElement;if(this.hasContent()||this.dot)return t("div",{class:jn({dot:this.dot,fixed:!!this.$scopedSlots.default}),style:{background:this.color}},[this.renderContent()])}},render:function(){var t=arguments[0];return this.$scopedSlots.default?t(this.tag,{class:jn("wrapper")},[this.$scopedSlots.default(),this.renderBadge()]):this.renderBadge()}}),Fn=n("3X7g");function Vn(t){return"[object Date]"===Object.prototype.toString.call(t)&&!Object(Rn.a)(t.getTime())}var Un=Object(a.b)("calendar"),Gn=Un[0],$n=Un[1],Hn=Un[2];function Wn(t,e){var n=t.getFullYear(),i=e.getFullYear(),r=t.getMonth(),o=e.getMonth();return n===i?r===o?0:r>o?1:-1:n>i?1:-1}function qn(t,e){var n=Wn(t,e);if(0===n){var i=t.getDate(),r=e.getDate();return i===r?0:i>r?1:-1}return n}function Xn(t,e){return(t=new Date(t)).setDate(t.getDate()+e),t}function Yn(t){return Xn(t,1)}function Kn(t){return new Date(t)}function Zn(t){return Array.isArray(t)?t.map(function(t){return null===t?t:Kn(t)}):Kn(t)}function Jn(t,e){return 32-new Date(t,e-1,32).getDate()}var Qn=(0,Object(a.b)("calendar-month")[0])({props:{date:Date,type:String,color:String,minDate:Date,maxDate:Date,showMark:Boolean,rowHeight:[Number,String],formatter:Function,lazyRender:Boolean,currentDate:[Date,Array],allowSameDay:Boolean,showSubtitle:Boolean,showMonthTitle:Boolean,firstDayOfWeek:Number},data:function(){return{visible:!1}},computed:{title:function(){return t=this.date,Hn("monthTitle",t.getFullYear(),t.getMonth()+1);var t},rowHeightWithUnit:function(){return Object(a.a)(this.rowHeight)},offset:function(){var t=this.firstDayOfWeek,e=this.date.getDay();return t?(e+7-this.firstDayOfWeek)%7:e},totalDay:function(){return Jn(this.date.getFullYear(),this.date.getMonth()+1)},shouldRender:function(){return this.visible||!this.lazyRender},placeholders:function(){for(var t=[],e=Math.ceil((this.totalDay+this.offset)/7),n=1;n<=e;n++)t.push({type:"placeholder"});return t},days:function(){for(var t=[],e=this.date.getFullYear(),n=this.date.getMonth(),i=1;i<=this.totalDay;i++){var r=new Date(e,n,i),o=this.getDayType(r),a={date:r,type:o,text:i,bottomInfo:this.getBottomInfo(o)};this.formatter&&(a=this.formatter(a)),t.push(a)}return t}},methods:{getHeight:function(){return this.height||(this.height=this.$el.getBoundingClientRect().height),this.height},scrollIntoView:function(t){var e=this.$refs,n=e.days,i=e.month;B(t,(this.showSubtitle?n:i).getBoundingClientRect().top-t.getBoundingClientRect().top+t.scrollTop)},getMultipleDayType:function(t){var e=this,n=function(t){return e.currentDate.some(function(e){return 0===qn(e,t)})};if(n(t)){var i=Xn(t,-1),r=Yn(t),o=n(i),a=n(r);return o&&a?"multiple-middle":o?"end":a?"start":"multiple-selected"}return""},getRangeDayType:function(t){var e=this.currentDate,n=e[0],i=e[1];if(!n)return"";var r=qn(t,n);if(!i)return 0===r?"start":"";var o=qn(t,i);return 0===r&&0===o&&this.allowSameDay?"start-end":0===r?"start":0===o?"end":r>0&&o<0?"middle":void 0},getDayType:function(t){var e=this.type,n=this.minDate,i=this.maxDate,r=this.currentDate;return qn(t,n)<0||qn(t,i)>0?"disabled":null!==r?"single"===e?0===qn(t,r)?"selected":"":"multiple"===e?this.getMultipleDayType(t):"range"===e?this.getRangeDayType(t):void 0:void 0},getBottomInfo:function(t){if("range"===this.type){if("start"===t||"end"===t)return Hn(t);if("start-end"===t)return Hn("startEnd")}},getDayStyle:function(t,e){var n={height:this.rowHeightWithUnit};return"placeholder"===t?(n.width="100%",n):(0===e&&(n.marginLeft=100*this.offset/7+"%"),this.color&&("start"===t||"end"===t||"start-end"===t||"multiple-selected"===t||"multiple-middle"===t?n.background=this.color:"middle"===t&&(n.color=this.color)),n)},genTitle:function(){var t=this.$createElement;if(this.showMonthTitle)return t("div",{class:$n("month-title")},[this.title])},genMark:function(){var t=this.$createElement;if(this.showMark&&this.shouldRender)return t("div",{class:$n("month-mark")},[this.date.getMonth()+1])},genDays:function(){var t=this.$createElement,e=this.shouldRender?this.days:this.placeholders;return t("div",{ref:"days",attrs:{role:"grid"},class:$n("days")},[this.genMark(),e.map(this.genDay)])},genDay:function(t,e){var n=this,i=this.$createElement,r=t.type,o=t.topInfo,a=t.bottomInfo,s=this.getDayStyle(r,e),c="disabled"===r,l=function(){c||n.$emit("click",t)},u=o&&i("div",{class:$n("top-info")},[o]),h=a&&i("div",{class:$n("bottom-info")},[a]);return"selected"===r?i("div",{attrs:{role:"gridcell",tabindex:-1},style:s,class:[$n("day"),t.className],on:{click:l}},[i("div",{class:$n("selected-day"),style:{width:this.rowHeightWithUnit,height:this.rowHeightWithUnit,background:this.color}},[u,t.text,h])]):i("div",{attrs:{role:"gridcell",tabindex:c?null:-1},style:s,class:[$n("day",r),t.className],on:{click:l}},[u,t.text,h])}},render:function(){return(0,arguments[0])("div",{class:$n("month"),ref:"month"},[this.genTitle(),this.genDays()])}}),ti=(0,Object(a.b)("calendar-header")[0])({props:{title:String,subtitle:String,showTitle:Boolean,showSubtitle:Boolean,firstDayOfWeek:Number},methods:{genTitle:function(){var t=this.$createElement;if(this.showTitle){var e=this.slots("title")||this.title||Hn("title");return t("div",{class:$n("header-title")},[e])}},genSubtitle:function(){var t=this.$createElement;if(this.showSubtitle)return t("div",{class:$n("header-subtitle")},[this.subtitle])},genWeekDays:function(){var t=this.$createElement,e=Hn("weekdays"),n=this.firstDayOfWeek,i=[].concat(e.slice(n,7),e.slice(0,n));return t("div",{class:$n("weekdays")},[i.map(function(e){return t("span",{class:$n("weekday")},[e])})])}},render:function(){return(0,arguments[0])("div",{class:$n("header")},[this.genTitle(),this.genSubtitle(),this.genWeekDays()])}}),ei=Gn({props:{title:String,color:String,value:Boolean,readonly:Boolean,formatter:Function,rowHeight:[Number,String],confirmText:String,rangePrompt:String,defaultDate:[Date,Array],getContainer:[String,Function],allowSameDay:Boolean,confirmDisabledText:String,type:{type:String,default:"single"},round:{type:Boolean,default:!0},position:{type:String,default:"bottom"},poppable:{type:Boolean,default:!0},maxRange:{type:[Number,String],default:null},lazyRender:{type:Boolean,default:!0},showMark:{type:Boolean,default:!0},showTitle:{type:Boolean,default:!0},showConfirm:{type:Boolean,default:!0},showSubtitle:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},minDate:{type:Date,validator:Vn,default:function(){return new Date}},maxDate:{type:Date,validator:Vn,default:function(){var t=new Date;return new Date(t.getFullYear(),t.getMonth()+6,t.getDate())}},firstDayOfWeek:{type:[Number,String],default:0,validator:function(t){return t>=0&&t<=6}}},data:function(){return{subtitle:"",currentDate:this.getInitialDate()}},computed:{months:function(){var t=[],e=new Date(this.minDate);e.setDate(1);do{t.push(new Date(e)),e.setMonth(e.getMonth()+1)}while(1!==Wn(e,this.maxDate));return t},buttonDisabled:function(){var t=this.type,e=this.currentDate;if(e){if("range"===t)return!e[0]||!e[1];if("multiple"===t)return!e.length}return!e},dayOffset:function(){return this.firstDayOfWeek?this.firstDayOfWeek%7:0}},watch:{type:"reset",value:"init",defaultDate:function(t){this.currentDate=t,this.scrollIntoView()}},mounted:function(){this.init()},activated:function(){this.init()},methods:{reset:function(){this.currentDate=this.getInitialDate(),this.scrollIntoView()},init:function(){var t=this;this.poppable&&!this.value||this.$nextTick(function(){t.bodyHeight=Math.floor(t.$refs.body.getBoundingClientRect().height),t.onScroll(),t.scrollIntoView()})},scrollToDate:function(t){var e=this;Object(Fn.c)(function(){var n=e.value||!e.poppable;t&&n&&e.months.some(function(n,i){if(0===Wn(n,t)){var r=e.$refs,o=r.body;return r.months[i].scrollIntoView(o),!0}return!1})})},scrollIntoView:function(){var t=this.currentDate;if(t){var e="single"===this.type?t:t[0];this.scrollToDate(e)}},getInitialDate:function(){var t=this.type,e=this.minDate,n=this.maxDate,i=this.defaultDate;if(null===i)return i;var r=new Date;if(-1===qn(r,e)?r=e:1===qn(r,n)&&(r=n),"range"===t){var o=i||[],a=o[0],s=o[1];return[a||r,s||Yn(r)]}return"multiple"===t?i||[r]:i||r},onScroll:function(){var t=this.$refs,e=t.body,n=t.months,i=R(e),r=i+this.bodyHeight,o=n.map(function(t){return t.getHeight()});if(!(r>o.reduce(function(t,e){return t+e},0)&&i>0)){for(var a,s=0,c=[-1,-1],l=0;l<n.length;l++){s<=r&&s+o[l]>=i&&(c[1]=l,a||(a=n[l],c[0]=l),n[l].showed||(n[l].showed=!0,this.$emit("month-show",{date:n[l].date,title:n[l].title}))),s+=o[l]}n.forEach(function(t,e){t.visible=e>=c[0]-1&&e<=c[1]+1}),a&&(this.subtitle=a.title)}},onClickDay:function(t){if(!this.readonly){var e=t.date,n=this.type,i=this.currentDate;if("range"===n){if(!i)return void this.select([e,null]);var r=i[0],o=i[1];if(r&&!o){var a=qn(e,r);1===a?this.select([r,e],!0):-1===a?this.select([e,null]):this.allowSameDay&&this.select([e,e],!0)}else this.select([e,null])}else if("multiple"===n){if(!i)return void this.select([e]);var s;if(this.currentDate.some(function(t,n){var i=0===qn(t,e);return i&&(s=n),i})){var c=i.splice(s,1)[0];this.$emit("unselect",Kn(c))}else this.maxRange&&i.length>=this.maxRange?we(this.rangePrompt||Hn("rangePrompt",this.maxRange)):this.select([].concat(i,[e]))}else this.select(e,!0)}},togglePopup:function(t){this.$emit("input",t)},select:function(t,e){var n=this,i=function(t){n.currentDate=t,n.$emit("select",Zn(n.currentDate))};if(e&&"range"===this.type&&!this.checkRange(t))return void(this.showConfirm?i([t[0],Xn(t[0],this.maxRange-1)]):i(t));i(t),e&&!this.showConfirm&&this.onConfirm()},checkRange:function(t){var e=this.maxRange,n=this.rangePrompt;return!(e&&function(t){var e=t[0].getTime();return(t[1].getTime()-e)/864e5+1}(t)>e)||(we(n||Hn("rangePrompt",e)),!1)},onConfirm:function(){this.$emit("confirm",Zn(this.currentDate))},genMonth:function(t,e){var n=this.$createElement,i=0!==e||!this.showSubtitle;return n(Qn,{ref:"months",refInFor:!0,attrs:{date:t,type:this.type,color:this.color,minDate:this.minDate,maxDate:this.maxDate,showMark:this.showMark,formatter:this.formatter,rowHeight:this.rowHeight,lazyRender:this.lazyRender,currentDate:this.currentDate,showSubtitle:this.showSubtitle,allowSameDay:this.allowSameDay,showMonthTitle:i,firstDayOfWeek:this.dayOffset},on:{click:this.onClickDay}})},genFooterContent:function(){var t=this.$createElement,e=this.slots("footer");if(e)return e;if(this.showConfirm){var n=this.buttonDisabled?this.confirmDisabledText:this.confirmText;return t(Ce,{attrs:{round:!0,block:!0,type:"danger",color:this.color,disabled:this.buttonDisabled,nativeType:"button"},class:$n("confirm"),on:{click:this.onConfirm}},[n||Hn("confirm")])}},genFooter:function(){return(0,this.$createElement)("div",{class:$n("footer",{unfit:!this.safeAreaInsetBottom})},[this.genFooterContent()])},genCalendar:function(){var t=this,e=this.$createElement;return e("div",{class:$n()},[e(ti,{attrs:{title:this.title,showTitle:this.showTitle,subtitle:this.subtitle,showSubtitle:this.showSubtitle,firstDayOfWeek:this.dayOffset},scopedSlots:{title:function(){return t.slots("title")}}}),e("div",{ref:"body",class:$n("body"),on:{scroll:this.onScroll}},[this.months.map(this.genMonth)]),this.genFooter()])}},render:function(){var t=this,e=arguments[0];if(this.poppable){var n,i=function(e){return function(){return t.$emit(e)}};return e(ct,{attrs:(n={round:!0,value:this.value},n.round=this.round,n.position=this.position,n.closeable=this.showTitle||this.showSubtitle,n.getContainer=this.getContainer,n.closeOnPopstate=this.closeOnPopstate,n.closeOnClickOverlay=this.closeOnClickOverlay,n),class:$n("popup"),on:{input:this.togglePopup,open:i("open"),opened:i("opened"),close:i("close"),closed:i("closed")}},[this.genCalendar()])}return this.genCalendar()}}),ni=Object(a.b)("image"),ii=ni[0],ri=ni[1],oi=ii({props:{src:String,fit:String,alt:String,round:Boolean,width:[Number,String],height:[Number,String],radius:[Number,String],lazyLoad:Boolean,iconPrefix:String,showError:{type:Boolean,default:!0},showLoading:{type:Boolean,default:!0},errorIcon:{type:String,default:"photo-fail"},loadingIcon:{type:String,default:"photo"}},data:function(){return{loading:!0,error:!1}},watch:{src:function(){this.loading=!0,this.error=!1}},computed:{style:function(){var t={};return Object(a.e)(this.width)&&(t.width=Object(a.a)(this.width)),Object(a.e)(this.height)&&(t.height=Object(a.a)(this.height)),Object(a.e)(this.radius)&&(t.overflow="hidden",t.borderRadius=Object(a.a)(this.radius)),t}},created:function(){var t=this.$Lazyload;t&&a.d&&(t.$on("loaded",this.onLazyLoaded),t.$on("error",this.onLazyLoadError))},beforeDestroy:function(){var t=this.$Lazyload;t&&(t.$off("loaded",this.onLazyLoaded),t.$off("error",this.onLazyLoadError))},methods:{onLoad:function(t){this.loading=!1,this.$emit("load",t)},onLazyLoaded:function(t){t.el===this.$refs.image&&this.loading&&this.onLoad()},onLazyLoadError:function(t){t.el!==this.$refs.image||this.error||this.onError()},onError:function(t){this.error=!0,this.loading=!1,this.$emit("error",t)},onClick:function(t){this.$emit("click",t)},genPlaceholder:function(){var t=this.$createElement;return this.loading&&this.showLoading?t("div",{class:ri("loading")},[this.slots("loading")||t(rt,{attrs:{name:this.loadingIcon,classPrefix:this.iconPrefix},class:ri("loading-icon")})]):this.error&&this.showError?t("div",{class:ri("error")},[this.slots("error")||t(rt,{attrs:{name:this.errorIcon,classPrefix:this.iconPrefix},class:ri("error-icon")})]):void 0},genImage:function(){var t=this.$createElement,e={class:ri("img"),attrs:{alt:this.alt},style:{objectFit:this.fit}};if(!this.error)return this.lazyLoad?t("img",o()([{ref:"image",directives:[{name:"lazy",value:this.src}]},e])):t("img",o()([{attrs:{src:this.src},on:{load:this.onLoad,error:this.onError}},e]))}},render:function(){return(0,arguments[0])("div",{class:ri({round:this.round}),style:this.style,on:{click:this.onClick}},[this.genImage(),this.genPlaceholder(),this.slots()])}}),ai=Object(a.b)("card"),si=ai[0],ci=ai[1];function li(t,e,n,i){var r,s=e.thumb,c=n.num||Object(a.e)(e.num),l=n.price||Object(a.e)(e.price),u=n["origin-price"]||Object(a.e)(e.originPrice),f=c||l||u||n.bottom;function p(t){d(i,"click-thumb",t)}return t("div",o()([{class:ci()},h(i,!0)]),[t("div",{class:ci("header")},[function(){if(n.thumb||s)return t("a",{attrs:{href:e.thumbLink},class:ci("thumb"),on:{click:p}},[n.thumb?n.thumb():t(oi,{attrs:{src:s,width:"100%",height:"100%",fit:"cover","lazy-load":e.lazyLoad}}),function(){if(n.tag||e.tag)return t("div",{class:ci("tag")},[n.tag?n.tag():t(xn,{attrs:{mark:!0,type:"danger"}},[e.tag])])}()])}(),t("div",{class:ci("content",{centered:e.centered})},[t("div",[n.title?n.title():e.title?t("div",{class:[ci("title"),"van-multi-ellipsis--l2"]},[e.title]):void 0,n.desc?n.desc():e.desc?t("div",{class:[ci("desc"),"van-ellipsis"]},[e.desc]):void 0,null==n.tags?void 0:n.tags()]),f&&t("div",{class:"van-card__bottom"},[null==(r=n["price-top"])?void 0:r.call(n),function(){if(l)return t("div",{class:ci("price")},[n.price?n.price():(i=e.price.toString().split("."),t("div",[t("span",{class:ci("price-currency")},[e.currency]),t("span",{class:ci("price-integer")},[i[0]]),".",t("span",{class:ci("price-decimal")},[i[1]])]))]);var i}(),function(){if(u){var i=n["origin-price"];return t("div",{class:ci("origin-price")},[i?i():e.currency+" "+e.originPrice])}}(),function(){if(c)return t("div",{class:ci("num")},[n.num?n.num():"x"+e.num])}(),null==n.bottom?void 0:n.bottom()])])]),function(){if(n.footer)return t("div",{class:ci("footer")},[n.footer()])}()])}li.props={tag:String,desc:String,thumb:String,title:String,centered:Boolean,lazyLoad:Boolean,thumbLink:String,num:[Number,String],price:[Number,String],originPrice:[Number,String],currency:{type:String,default:"¥"}};var ui,hi=si(li),di=Object(a.b)("tab"),fi=di[0],pi=di[1],mi=fi({mixins:[Oe("vanTabs")],props:i({},Kt,{dot:Boolean,name:[Number,String],info:[Number,String],badge:[Number,String],title:String,titleStyle:null,titleClass:null,disabled:Boolean}),data:function(){return{inited:!1}},computed:{computedName:function(){var t;return null!=(t=this.name)?t:this.index},isActive:function(){var t=this.computedName===this.parent.currentName;return t&&(this.inited=!0),t}},watch:{title:function(){this.parent.setLine(),this.parent.scrollIntoView()},inited:function(t){var e=this;this.parent.lazyRender&&t&&this.$nextTick(function(){e.parent.$emit("rendered",e.computedName,e.title)})}},render:function(t){var e=this.slots,n=this.parent,i=this.isActive,r=e();if(r||n.animated){var o=n.scrollspy||i,a=this.inited||n.scrollspy||!n.lazyRender?r:t();return n.animated?t("div",{attrs:{role:"tabpanel","aria-hidden":!i},class:pi("pane-wrapper",{inactive:!i})},[t("div",{class:pi("pane")},[a])]):t("div",{directives:[{name:"show",value:o}],attrs:{role:"tabpanel"},class:pi("pane")},[a])}}});function vi(t){var e=window.getComputedStyle(t),n="none"===e.display,i=null===t.offsetParent&&"fixed"!==e.position;return n||i}function gi(t){var e=t.interceptor,n=t.args,i=t.done;if(e){var r=e.apply(void 0,n);Object(a.h)(r)?r.then(function(t){t&&i()}).catch(a.j):r&&i()}else i()}var yi=Object(a.b)("tab"),bi=yi[0],xi=yi[1],_i=bi({props:{dot:Boolean,type:String,info:[Number,String],color:String,title:String,isActive:Boolean,disabled:Boolean,scrollable:Boolean,activeColor:String,inactiveColor:String},computed:{style:function(){var t={},e=this.color,n=this.isActive,i="card"===this.type;e&&i&&(t.borderColor=e,this.disabled||(n?t.backgroundColor=e:t.color=e));var r=n?this.activeColor:this.inactiveColor;return r&&(t.color=r),t}},methods:{onClick:function(){this.$emit("click")},genText:function(){var t=this.$createElement,e=t("span",{class:xi("text",{ellipsis:!this.scrollable})},[this.slots()||this.title]);return this.dot||Object(a.e)(this.info)&&""!==this.info?t("span",{class:xi("text-wrapper")},[e,t(J,{attrs:{dot:this.dot,info:this.info}})]):e}},render:function(){return(0,arguments[0])("div",{attrs:{role:"tab","aria-selected":this.isActive},class:[xi({active:this.isActive,disabled:this.disabled})],style:this.style,on:{click:this.onClick}},[this.genText()])}}),wi=Object(a.b)("sticky"),Si=wi[0],Ti=wi[1],Ei=Si({mixins:[$(function(t,e){if(this.scroller||(this.scroller=D(this.$el)),this.observer){var n=e?"observe":"unobserve";this.observer[n](this.$el)}t(this.scroller,"scroll",this.onScroll,!0),this.onScroll()})],props:{zIndex:[Number,String],container:null,offsetTop:{type:[Number,String],default:0}},data:function(){return{fixed:!1,height:0,transform:0}},computed:{offsetTopPx:function(){return Object(Lt.b)(this.offsetTop)},style:function(){if(this.fixed){var t={};return Object(a.e)(this.zIndex)&&(t.zIndex=this.zIndex),this.offsetTopPx&&this.fixed&&(t.top=this.offsetTopPx+"px"),this.transform&&(t.transform="translate3d(0, "+this.transform+"px, 0)"),t}}},created:function(){var t=this;!a.i&&window.IntersectionObserver&&(this.observer=new IntersectionObserver(function(e){e[0].intersectionRatio>0&&t.onScroll()},{root:document.body}))},methods:{onScroll:function(){var t=this;if(!vi(this.$el)){this.height=this.$el.offsetHeight;var e=this.container,n=this.offsetTopPx,i=R(window),r=z(this.$el),o=function(){t.$emit("scroll",{scrollTop:i,isFixed:t.fixed})};if(e){var a=r+e.offsetHeight;if(i+n+this.height>a){var s=this.height+i-a;return s<this.height?(this.fixed=!0,this.transform=-(s+n)):this.fixed=!1,void o()}}i+n>r?(this.fixed=!0,this.transform=0):this.fixed=!1,o()}}},render:function(){var t=arguments[0],e=this.fixed;return t("div",{style:{height:e?this.height+"px":null}},[t("div",{class:Ti({fixed:e}),style:this.style},[this.slots()])])}}),Mi=Object(a.b)("tabs"),Ci=Mi[0],Li=Mi[1],Oi=Ci({mixins:[V],props:{count:Number,duration:[Number,String],animated:Boolean,swipeable:Boolean,currentIndex:Number},computed:{style:function(){if(this.animated)return{transform:"translate3d("+-1*this.currentIndex*100+"%, 0, 0)",transitionDuration:this.duration+"s"}},listeners:function(){if(this.swipeable)return{touchstart:this.touchStart,touchmove:this.touchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}}},methods:{onTouchEnd:function(){var t=this.direction,e=this.deltaX,n=this.currentIndex;"horizontal"===t&&this.offsetX>=50&&(e>0&&0!==n?this.$emit("change",n-1):e<0&&n!==this.count-1&&this.$emit("change",n+1))},genChildren:function(){var t=this.$createElement;return this.animated?t("div",{class:Li("track"),style:this.style},[this.slots()]):this.slots()}},render:function(){return(0,arguments[0])("div",{class:Li("content",{animated:this.animated}),on:i({},this.listeners)},[this.genChildren()])}}),ki=Object(a.b)("tabs"),Pi=ki[0],Ai=ki[1],Ii=Pi({mixins:[ke("vanTabs"),$(function(t){this.scroller||(this.scroller=D(this.$el)),t(window,"resize",this.resize,!0),this.scrollspy&&t(this.scroller,"scroll",this.onScroll,!0)})],model:{prop:"active"},props:{color:String,border:Boolean,sticky:Boolean,animated:Boolean,swipeable:Boolean,scrollspy:Boolean,background:String,lineWidth:[Number,String],lineHeight:[Number,String],beforeChange:Function,titleActiveColor:String,titleInactiveColor:String,type:{type:String,default:"line"},active:{type:[Number,String],default:0},ellipsis:{type:Boolean,default:!0},duration:{type:[Number,String],default:.3},offsetTop:{type:[Number,String],default:0},lazyRender:{type:Boolean,default:!0},swipeThreshold:{type:[Number,String],default:5}},data:function(){return{position:"",currentIndex:null,lineStyle:{backgroundColor:this.color}}},computed:{scrollable:function(){return this.children.length>this.swipeThreshold||!this.ellipsis},navStyle:function(){return{borderColor:this.color,background:this.background}},currentName:function(){var t=this.children[this.currentIndex];if(t)return t.computedName},offsetTopPx:function(){return Object(Lt.b)(this.offsetTop)},scrollOffset:function(){return this.sticky?this.offsetTopPx+this.tabHeight:0}},watch:{color:"setLine",active:function(t){t!==this.currentName&&this.setCurrentIndexByName(t)},children:function(){var t=this;this.setCurrentIndexByName(this.active||this.currentName),this.setLine(),this.$nextTick(function(){t.scrollIntoView(!0)})},currentIndex:function(){this.scrollIntoView(),this.setLine(),this.stickyFixed&&!this.scrollspy&&j(Math.ceil(z(this.$el)-this.offsetTopPx))},scrollspy:function(t){t?g(this.scroller,"scroll",this.onScroll,!0):y(this.scroller,"scroll",this.onScroll)}},mounted:function(){this.init()},activated:function(){this.init(),this.setLine()},methods:{resize:function(){this.setLine()},init:function(){var t=this;this.$nextTick(function(){var e;t.inited=!0,t.tabHeight=A(e=t.$refs.wrap)?e.innerHeight:e.getBoundingClientRect().height,t.scrollIntoView(!0)})},setLine:function(){var t=this,e=this.inited;this.$nextTick(function(){var n=t.$refs.titles;if(n&&n[t.currentIndex]&&"line"===t.type&&!vi(t.$el)){var i=n[t.currentIndex].$el,r=t.lineWidth,o=t.lineHeight,s=i.offsetLeft+i.offsetWidth/2,c={width:Object(a.a)(r),backgroundColor:t.color,transform:"translateX("+s+"px) translateX(-50%)"};if(e&&(c.transitionDuration=t.duration+"s"),Object(a.e)(o)){var l=Object(a.a)(o);c.height=l,c.borderRadius=l}t.lineStyle=c}})},setCurrentIndexByName:function(t){var e=this.children.filter(function(e){return e.computedName===t}),n=(this.children[0]||{}).index||0;this.setCurrentIndex(e.length?e[0].index:n)},setCurrentIndex:function(t){var e=this.findAvailableTab(t);if(Object(a.e)(e)){var n=this.children[e],i=n.computedName,r=null!==this.currentIndex;this.currentIndex=e,i!==this.active&&(this.$emit("input",i),r&&this.$emit("change",i,n.title))}},findAvailableTab:function(t){for(var e=t<this.currentIndex?-1:1;t>=0&&t<this.children.length;){if(!this.children[t].disabled)return t;t+=e}},onClick:function(t,e){var n=this,i=this.children[e],r=i.title,o=i.disabled,a=i.computedName;o?this.$emit("disabled",a,r):(gi({interceptor:this.beforeChange,args:[a],done:function(){n.setCurrentIndex(e),n.scrollToCurrentContent()}}),this.$emit("click",a,r),Xt(t.$router,t))},scrollIntoView:function(t){var e=this.$refs.titles;if(this.scrollable&&e&&e[this.currentIndex]){var n=this.$refs.nav,i=e[this.currentIndex].$el;!function(t,e,n){Object(Fn.a)(ui);var i=0,r=t.scrollLeft,o=0===n?1:Math.round(1e3*n/16);!function n(){t.scrollLeft+=(e-r)/o,++i<o&&(ui=Object(Fn.c)(n))}()}(n,i.offsetLeft-(n.offsetWidth-i.offsetWidth)/2,t?0:+this.duration)}},onSticktScroll:function(t){this.stickyFixed=t.isFixed,this.$emit("scroll",t)},scrollTo:function(t){var e=this;this.$nextTick(function(){e.setCurrentIndexByName(t),e.scrollToCurrentContent(!0)})},scrollToCurrentContent:function(t){var e=this;if(void 0===t&&(t=!1),this.scrollspy){var n=this.children[this.currentIndex],i=null==n?void 0:n.$el;if(i){var r=z(i,this.scroller)-this.scrollOffset;this.lockScroll=!0,function(t,e,n,i){var r=R(t),o=r<e,a=0===n?1:Math.round(1e3*n/16),s=(e-r)/a;!function n(){r+=s,(o&&r>e||!o&&r<e)&&(r=e),B(t,r),o&&r<e||!o&&r>e?Object(Fn.c)(n):i&&Object(Fn.c)(i)}()}(this.scroller,r,t?0:+this.duration,function(){e.lockScroll=!1})}}},onScroll:function(){if(this.scrollspy&&!this.lockScroll){var t=this.getCurrentIndexOnScroll();this.setCurrentIndex(t)}},getCurrentIndexOnScroll:function(){for(var t,e=this.children,n=0;n<e.length;n++){if((A(t=e[n].$el)?0:t.getBoundingClientRect().top)>this.scrollOffset)return 0===n?0:n-1}return e.length-1}},render:function(){var t,e=this,n=arguments[0],i=this.type,r=this.animated,o=this.scrollable,a=this.children.map(function(t,r){var a;return n(_i,{ref:"titles",refInFor:!0,attrs:{type:i,dot:t.dot,info:null!=(a=t.badge)?a:t.info,title:t.title,color:e.color,isActive:r===e.currentIndex,disabled:t.disabled,scrollable:o,activeColor:e.titleActiveColor,inactiveColor:e.titleInactiveColor},style:t.titleStyle,class:t.titleClass,scopedSlots:{default:function(){return t.slots("title")}},on:{click:function(){e.onClick(t,r)}}})}),s=n("div",{ref:"wrap",class:[Ai("wrap",{scrollable:o}),(t={},t[Ct]="line"===i&&this.border,t)]},[n("div",{ref:"nav",attrs:{role:"tablist"},class:Ai("nav",[i,{complete:this.scrollable}]),style:this.navStyle},[this.slots("nav-left"),a,"line"===i&&n("div",{class:Ai("line"),style:this.lineStyle}),this.slots("nav-right")])]);return n("div",{class:Ai([i])},[this.sticky?n(Ei,{attrs:{container:this.$el,offsetTop:this.offsetTop},on:{scroll:this.onSticktScroll}},[s]):s,n(Oi,{attrs:{count:this.children.length,animated:r,duration:this.duration,swipeable:this.swipeable,currentIndex:this.currentIndex},on:{change:this.setCurrentIndex}},[this.slots()])])}}),Di=Object(a.b)("cascader"),Ri=Di[0],Bi=Di[1],Ni=Di[2],ji=Ri({props:{title:String,value:[Number,String],placeholder:String,activeColor:String,options:{type:Array,default:function(){return[]}},closeable:{type:Boolean,default:!0}},data:function(){return{tabs:[],activeTab:0}},watch:{options:{deep:!0,handler:"updateTabs"},value:function(t){if((t||0===t)&&-1!==this.tabs.map(function(t){var e;return null==(e=t.selectedOption)?void 0:e.value}).indexOf(t))return;this.updateTabs()}},created:function(){this.updateTabs()},methods:{getSelectedOptionsByValue:function(t,e){for(var n=0;n<t.length;n++){var i=t[n];if(i.value===e)return[i];if(i.children){var r=this.getSelectedOptionsByValue(i.children,e);if(r)return[i].concat(r)}}},updateTabs:function(){var t=this;if(this.value||0===this.value){var e=this.getSelectedOptionsByValue(this.options,this.value);if(e){var n=this.options;return this.tabs=e.map(function(t){var e={options:n,selectedOption:t},i=n.filter(function(e){return e.value===t.value});return i.length&&(n=i[0].children),e}),n&&this.tabs.push({options:n,selectedOption:null}),void this.$nextTick(function(){t.activeTab=t.tabs.length-1})}}this.tabs=[{options:this.options,selectedOption:null}]},onSelect:function(t,e){var n=this;if(this.tabs[e].selectedOption=t,this.tabs.length>e+1&&(this.tabs=this.tabs.slice(0,e+1)),t.children){var i={options:t.children,selectedOption:null};this.tabs[e+1]?this.$set(this.tabs,e+1,i):this.tabs.push(i),this.$nextTick(function(){n.activeTab++})}var r=this.tabs.map(function(t){return t.selectedOption}).filter(function(t){return!!t}),o={value:t.value,tabIndex:e,selectedOptions:r};this.$emit("input",t.value),this.$emit("change",o),t.children||this.$emit("finish",o)},onClose:function(){this.$emit("close")},renderHeader:function(){var t=this.$createElement;return t("div",{class:Bi("header")},[t("h2",{class:Bi("title")},[this.slots("title")||this.title]),this.closeable?t(rt,{attrs:{name:"cross"},class:Bi("close-icon"),on:{click:this.onClose}}):null])},renderOptions:function(t,e,n){var i=this,r=this.$createElement;return r("ul",{class:Bi("options")},[t.map(function(t){var o=e&&t.value===e.value;return r("li",{class:Bi("option",{selected:o}),style:{color:o?i.activeColor:null},on:{click:function(){i.onSelect(t,n)}}},[r("span",[t.text]),o?r(rt,{attrs:{name:"success"},class:Bi("selected-icon")}):null])})])},renderTab:function(t,e){var n=this.$createElement,i=t.options,r=t.selectedOption,o=r?r.text:this.placeholder||Ni("select");return n(mi,{attrs:{title:o,titleClass:Bi("tab",{unselected:!r})}},[this.renderOptions(i,r,e)])},renderTabs:function(){var t=this;return(0,this.$createElement)(Ii,{attrs:{animated:!0,swipeable:!0,swipeThreshold:0,color:this.activeColor},class:Bi("tabs"),model:{value:t.activeTab,callback:function(e){t.activeTab=e}}},[this.tabs.map(this.renderTab)])}},render:function(){return(0,arguments[0])("div",{class:Bi()},[this.renderHeader(),this.renderTabs()])}}),zi=Object(a.b)("cell-group"),Fi=zi[0],Vi=zi[1];function Ui(t,e,n,i){var r,a=t("div",o()([{class:[Vi(),(r={},r[Ct]=e.border,r)]},h(i,!0)]),[null==n.default?void 0:n.default()]);return e.title||n.title?t("div",[t("div",{class:Vi("title")},[n.title?n.title():e.title]),a]):a}Ui.props={title:String,border:{type:Boolean,default:!0}};var Gi=Fi(Ui),$i=Object(a.b)("checkbox"),Hi=(0,$i[0])({mixins:[_n({bem:$i[1],role:"checkbox",parent:"vanCheckbox"})],computed:{checked:{get:function(){return this.parent?-1!==this.parent.value.indexOf(this.name):this.value},set:function(t){this.parent?this.setParentValue(t):this.$emit("input",t)}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggle:function(t){var e=this;void 0===t&&(t=!this.checked),clearTimeout(this.toggleTask),this.toggleTask=setTimeout(function(){e.checked=t})},setParentValue:function(t){var e=this.parent,n=e.value.slice();if(t){if(e.max&&n.length>=e.max)return;-1===n.indexOf(this.name)&&(n.push(this.name),e.$emit("input",n))}else{var i=n.indexOf(this.name);-1!==i&&(n.splice(i,1),e.$emit("input",n))}}}}),Wi=Object(a.b)("checkbox-group"),qi=Wi[0],Xi=Wi[1],Yi=qi({mixins:[ke("vanCheckbox"),tn],props:{max:[Number,String],disabled:Boolean,direction:String,iconSize:[Number,String],checkedColor:String,value:{type:Array,default:function(){return[]}}},watch:{value:function(t){this.$emit("change",t)}},methods:{toggleAll:function(t){void 0===t&&(t={}),"boolean"==typeof t&&(t={checked:t});var e=t,n=e.checked,i=e.skipDisabled,r=this.children.filter(function(t){return t.disabled&&i?t.checked:null!=n?n:!t.checked}).map(function(t){return t.name});this.$emit("input",r)}},render:function(){return(0,arguments[0])("div",{class:Xi([this.direction])},[this.slots()])}}),Ki=Object(a.b)("circle"),Zi=Ki[0],Ji=Ki[1],Qi=0;function tr(t){return Math.min(Math.max(t,0),100)}var er=Zi({props:{text:String,size:[Number,String],color:[String,Object],layerColor:String,strokeLinecap:String,value:{type:Number,default:0},speed:{type:[Number,String],default:0},fill:{type:String,default:"none"},rate:{type:[Number,String],default:100},strokeWidth:{type:[Number,String],default:40},clockwise:{type:Boolean,default:!0}},beforeCreate:function(){this.uid="van-circle-gradient-"+Qi++},computed:{style:function(){var t=Object(a.a)(this.size);return{width:t,height:t}},path:function(){return t=this.clockwise,"M "+(e=this.viewBoxSize)/2+" "+e/2+" m 0, -500 a 500, 500 0 1, "+(n=t?1:0)+" 0, 1000 a 500, 500 0 1, "+n+" 0, -1000";var t,e,n},viewBoxSize:function(){return+this.strokeWidth+1e3},layerStyle:function(){return{fill:""+this.fill,stroke:""+this.layerColor,strokeWidth:this.strokeWidth+"px"}},hoverStyle:function(){var t=3140*this.value/100;return{stroke:""+this.color,strokeWidth:+this.strokeWidth+1+"px",strokeLinecap:this.strokeLinecap,strokeDasharray:t+"px 3140px"}},gradient:function(){return Object(a.g)(this.color)},LinearGradient:function(){var t=this,e=this.$createElement;if(this.gradient){var n=Object.keys(this.color).sort(function(t,e){return parseFloat(t)-parseFloat(e)}).map(function(n,i){return e("stop",{key:i,attrs:{offset:n,"stop-color":t.color[n]}})});return e("defs",[e("linearGradient",{attrs:{id:this.uid,x1:"100%",y1:"0%",x2:"0%",y2:"0%"}},[n])])}}},watch:{rate:{handler:function(t){this.startTime=Date.now(),this.startRate=this.value,this.endRate=tr(t),this.increase=this.endRate>this.startRate,this.duration=Math.abs(1e3*(this.startRate-this.endRate)/this.speed),this.speed?(Object(Fn.a)(this.rafId),this.rafId=Object(Fn.c)(this.animate)):this.$emit("input",this.endRate)},immediate:!0}},methods:{animate:function(){var t=Date.now(),e=Math.min((t-this.startTime)/this.duration,1)*(this.endRate-this.startRate)+this.startRate;this.$emit("input",tr(parseFloat(e.toFixed(1)))),(this.increase?e<this.endRate:e>this.endRate)&&(this.rafId=Object(Fn.c)(this.animate))}},render:function(){var t=arguments[0];return t("div",{class:Ji(),style:this.style},[t("svg",{attrs:{viewBox:"0 0 "+this.viewBoxSize+" "+this.viewBoxSize}},[this.LinearGradient,t("path",{class:Ji("layer"),style:this.layerStyle,attrs:{d:this.path}}),t("path",{attrs:{d:this.path,stroke:this.gradient?"url(#"+this.uid+")":this.color},class:Ji("hover"),style:this.hoverStyle})]),this.slots()||this.text&&t("div",{class:Ji("text")},[this.text])])}}),nr=Object(a.b)("col"),ir=nr[0],rr=nr[1],or=ir({mixins:[Oe("vanRow")],props:{span:[Number,String],offset:[Number,String],tag:{type:String,default:"div"}},computed:{style:function(){var t=this.index,e=(this.parent||{}).spaces;if(e&&e[t]){var n=e[t],i=n.left,r=n.right;return{paddingLeft:i?i+"px":null,paddingRight:r?r+"px":null}}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.span,i=this.offset;return e(this.tag,{style:this.style,class:rr((t={},t[n]=n,t["offset-"+i]=i,t)),on:{click:this.onClick}},[this.slots()])}}),ar=Object(a.b)("collapse"),sr=ar[0],cr=ar[1],lr=sr({mixins:[ke("vanCollapse")],props:{accordion:Boolean,value:[String,Number,Array],border:{type:Boolean,default:!0}},methods:{switch:function(t,e){this.accordion||(t=e?this.value.concat(t):this.value.filter(function(e){return e!==t})),this.$emit("change",t),this.$emit("input",t)}},render:function(){var t;return(0,arguments[0])("div",{class:[cr(),(t={},t[Ct]=this.border,t)]},[this.slots()])}}),ur=Object(a.b)("collapse-item"),hr=ur[0],dr=ur[1],fr=["title","icon","right-icon"],pr=hr({mixins:[Oe("vanCollapse")],props:i({},Zt,{name:[Number,String],disabled:Boolean,isLink:{type:Boolean,default:!0}}),data:function(){return{show:null,inited:null}},computed:{currentName:function(){var t;return null!=(t=this.name)?t:this.index},expanded:function(){var t=this;if(!this.parent)return null;var e=this.parent,n=e.value;return e.accordion?n===this.currentName:n.some(function(e){return e===t.currentName})}},created:function(){this.show=this.expanded,this.inited=this.expanded},watch:{expanded:function(t,e){var n=this;null!==e&&(t&&(this.show=!0,this.inited=!0),(t?this.$nextTick:Fn.c)(function(){var e=n.$refs,i=e.content,r=e.wrapper;if(i&&r){var o=i.offsetHeight;if(o){var a=o+"px";r.style.height=t?0:a,Object(Fn.b)(function(){r.style.height=t?a:0})}else n.onTransitionEnd()}}))}},methods:{onClick:function(){this.disabled||this.toggle()},toggle:function(t){void 0===t&&(t=!this.expanded);var e=this.parent,n=this.currentName,i=e.accordion&&n===e.value?"":n;this.parent.switch(i,t)},onTransitionEnd:function(){this.expanded?this.$refs.wrapper.style.height="":this.show=!1},genTitle:function(){var t=this,e=this.$createElement,n=this.border,r=this.disabled,o=this.expanded,a=fr.reduce(function(e,n){return t.slots(n)&&(e[n]=function(){return t.slots(n)}),e},{});return this.slots("value")&&(a.default=function(){return t.slots("value")}),e(ne,{attrs:{role:"button",tabindex:r?-1:0,"aria-expanded":String(o)},class:dr("title",{disabled:r,expanded:o,borderless:!n}),on:{click:this.onClick},scopedSlots:a,props:i({},this.$props)})},genContent:function(){var t=this.$createElement;if(this.inited)return t("div",{directives:[{name:"show",value:this.show}],ref:"wrapper",class:dr("wrapper"),on:{transitionend:this.onTransitionEnd}},[t("div",{ref:"content",class:dr("content")},[this.slots()])])}},render:function(){return(0,arguments[0])("div",{class:[dr({border:this.index&&this.border})]},[this.genTitle(),this.genContent()])}}),mr=Object(a.b)("contact-card"),vr=mr[0],gr=mr[1],yr=mr[2];function br(t,e,n,i){var r=e.type,a=e.editable;return t(ne,o()([{attrs:{center:!0,border:!1,isLink:a,valueClass:gr("value"),icon:"edit"===r?"contact":"add-square"},class:gr([r]),on:{click:function(t){a&&d(i,"click",t)}}},h(i)]),["add"===r?e.addText||yr("addText"):[t("div",[yr("name")+"："+e.name]),t("div",[yr("tel")+"："+e.tel])]])}br.props={tel:String,name:String,addText:String,editable:{type:Boolean,default:!0},type:{type:String,default:"add"}};var xr=vr(br),_r=Object(a.b)("contact-edit"),wr=_r[0],Sr=_r[1],Tr=_r[2],Er={tel:"",name:""},Mr=wr({props:{isEdit:Boolean,isSaving:Boolean,isDeleting:Boolean,showSetDefault:Boolean,setDefaultLabel:String,contactInfo:{type:Object,default:function(){return i({},Er)}},telValidator:{type:Function,default:bt}},data:function(){return{data:i({},Er,this.contactInfo),errorInfo:{name:"",tel:""}}},watch:{contactInfo:function(t){this.data=i({},Er,t)}},methods:{onFocus:function(t){this.errorInfo[t]=""},getErrorMessageByKey:function(t){var e=this.data[t].trim();switch(t){case"name":return e?"":Tr("nameInvalid");case"tel":return this.telValidator(e)?"":Tr("telInvalid")}},onSave:function(){var t=this;["name","tel"].every(function(e){var n=t.getErrorMessageByKey(e);return n&&(t.errorInfo[e]=n),!n})&&!this.isSaving&&this.$emit("save",this.data)},onDelete:function(){var t=this;We.confirm({title:Tr("confirmDelete")}).then(function(){t.$emit("delete",t.data)})}},render:function(){var t=this,e=arguments[0],n=this.data,i=this.errorInfo,r=function(e){return function(){return t.onFocus(e)}};return e("div",{class:Sr()},[e("div",{class:Sr("fields")},[e(ce,{attrs:{clearable:!0,maxlength:"30",label:Tr("name"),placeholder:Tr("nameEmpty"),errorMessage:i.name},on:{focus:r("name")},model:{value:n.name,callback:function(e){t.$set(n,"name",e)}}}),e(ce,{attrs:{clearable:!0,type:"tel",label:Tr("tel"),placeholder:Tr("telEmpty"),errorMessage:i.tel},on:{focus:r("tel")},model:{value:n.tel,callback:function(e){t.$set(n,"tel",e)}}})]),this.showSetDefault&&e(ne,{attrs:{title:this.setDefaultLabel,border:!1},class:Sr("switch-cell")},[e(on,{attrs:{size:24},slot:"right-icon",on:{change:function(e){t.$emit("change-default",e)}},model:{value:n.isDefault,callback:function(e){t.$set(n,"isDefault",e)}}})]),e("div",{class:Sr("buttons")},[e(Ce,{attrs:{block:!0,round:!0,type:"danger",text:Tr("save"),loading:this.isSaving},on:{click:this.onSave}}),this.isEdit&&e(Ce,{attrs:{block:!0,round:!0,text:Tr("delete"),loading:this.isDeleting},on:{click:this.onDelete}})])])}}),Cr=Object(a.b)("contact-list"),Lr=Cr[0],Or=Cr[1],kr=Cr[2];function Pr(t,e,n,i){var r=e.list&&e.list.map(function(n,r){function o(){d(i,"input",n.id),d(i,"select",n,r)}return t(ne,{key:n.id,attrs:{isLink:!0,center:!0,valueClass:Or("item-value")},class:Or("item"),scopedSlots:{icon:function(){return t(rt,{attrs:{name:"edit"},class:Or("edit"),on:{click:function(t){t.stopPropagation(),d(i,"edit",n,r)}}})},default:function(){var i=[n.name+"，"+n.tel];return n.isDefault&&e.defaultTagText&&i.push(t(xn,{attrs:{type:"danger",round:!0},class:Or("item-tag")},[e.defaultTagText])),i},"right-icon":function(){return t(Sn,{attrs:{name:n.id,iconSize:16,checkedColor:_t},on:{click:o}})}},on:{click:o}})});return t("div",o()([{class:Or()},h(i)]),[t(mn,{attrs:{value:e.value},class:Or("group")},[r]),t("div",{class:Or("bottom")},[t(Ce,{attrs:{round:!0,block:!0,type:"danger",text:e.addText||kr("addText")},class:Or("add"),on:{click:function(){d(i,"add")}}})])])}Pr.props={value:null,list:Array,addText:String,defaultTagText:String};var Ar=Lr(Pr),Ir=n("YNA3"),Dr=1e3,Rr=60*Dr,Br=60*Rr,Nr=24*Br;var jr=Object(a.b)("count-down"),zr=jr[0],Fr=jr[1],Vr=zr({props:{millisecond:Boolean,time:{type:[Number,String],default:0},format:{type:String,default:"HH:mm:ss"},autoStart:{type:Boolean,default:!0}},data:function(){return{remain:0}},computed:{timeData:function(){return t=this.remain,{days:Math.floor(t/Nr),hours:Math.floor(t%Nr/Br),minutes:Math.floor(t%Br/Rr),seconds:Math.floor(t%Rr/Dr),milliseconds:Math.floor(t%Dr)};var t},formattedTime:function(){return function(t,e){var n=e.days,i=e.hours,r=e.minutes,o=e.seconds,a=e.milliseconds;if(-1===t.indexOf("DD")?i+=24*n:t=t.replace("DD",Object(Ir.b)(n)),-1===t.indexOf("HH")?r+=60*i:t=t.replace("HH",Object(Ir.b)(i)),-1===t.indexOf("mm")?o+=60*r:t=t.replace("mm",Object(Ir.b)(r)),-1===t.indexOf("ss")?a+=1e3*o:t=t.replace("ss",Object(Ir.b)(o)),-1!==t.indexOf("S")){var s=Object(Ir.b)(a,3);t=-1!==t.indexOf("SSS")?t.replace("SSS",s):-1!==t.indexOf("SS")?t.replace("SS",s.slice(0,2)):t.replace("S",s.charAt(0))}return t}(this.format,this.timeData)}},watch:{time:{immediate:!0,handler:"reset"}},activated:function(){this.keepAlivePaused&&(this.counting=!0,this.keepAlivePaused=!1,this.tick())},deactivated:function(){this.counting&&(this.pause(),this.keepAlivePaused=!0)},beforeDestroy:function(){this.pause()},methods:{start:function(){this.counting||(this.counting=!0,this.endTime=Date.now()+this.remain,this.tick())},pause:function(){this.counting=!1,Object(Fn.a)(this.rafId)},reset:function(){this.pause(),this.remain=+this.time,this.autoStart&&this.start()},tick:function(){a.d&&(this.millisecond?this.microTick():this.macroTick())},microTick:function(){var t=this;this.rafId=Object(Fn.c)(function(){t.counting&&(t.setRemain(t.getRemain()),t.remain>0&&t.microTick())})},macroTick:function(){var t=this;this.rafId=Object(Fn.c)(function(){if(t.counting){var e,n,i=t.getRemain();e=i,n=t.remain,(Math.floor(e/1e3)!==Math.floor(n/1e3)||0===i)&&t.setRemain(i),t.remain>0&&t.macroTick()}})},getRemain:function(){return Math.max(this.endTime-Date.now(),0)},setRemain:function(t){this.remain=t,this.$emit("change",this.timeData),0===t&&(this.pause(),this.$emit("finish"))}},render:function(){return(0,arguments[0])("div",{class:Fr()},[this.slots("default",this.timeData)||this.formattedTime])}}),Ur=Object(a.b)("coupon"),Gr=Ur[0],$r=Ur[1],Hr=Ur[2];function Wr(t){var e=new Date(1e3*t);return e.getFullYear()+"."+Object(Ir.b)(e.getMonth()+1)+"."+Object(Ir.b)(e.getDate())}function qr(t){return(t/100).toFixed(t%100==0?0:t%10==0?1:2)}var Xr=Gr({props:{coupon:Object,chosen:Boolean,disabled:Boolean,currency:{type:String,default:"¥"}},computed:{validPeriod:function(){var t=this.coupon,e=t.startAt,n=t.endAt;return Wr(e)+" - "+Wr(n)},faceAmount:function(){var t,e=this.coupon;if(e.valueDesc)return e.valueDesc+"<span>"+(e.unitDesc||"")+"</span>";if(e.denominations){var n=qr(e.denominations);return"<span>"+this.currency+"</span> "+n}return e.discount?Hr("discount",((t=e.discount)/10).toFixed(t%10==0?0:1)):""},conditionMessage:function(){var t=qr(this.coupon.originCondition);return"0"===t?Hr("unlimited"):Hr("condition",t)}},render:function(){var t=arguments[0],e=this.coupon,n=this.disabled,i=n&&e.reason||e.description;return t("div",{class:$r({disabled:n})},[t("div",{class:$r("content")},[t("div",{class:$r("head")},[t("h2",{class:$r("amount"),domProps:{innerHTML:this.faceAmount}}),t("p",{class:$r("condition")},[this.coupon.condition||this.conditionMessage])]),t("div",{class:$r("body")},[t("p",{class:$r("name")},[e.name]),t("p",{class:$r("valid")},[this.validPeriod]),!this.disabled&&t(Hi,{attrs:{size:18,value:this.chosen,checkedColor:_t},class:$r("corner")})])]),i&&t("p",{class:$r("description")},[i])])}}),Yr=Object(a.b)("coupon-cell"),Kr=Yr[0],Zr=Yr[1],Jr=Yr[2];function Qr(t,e,n,i){var r=e.coupons[+e.chosenCoupon],s=function(t){var e=t.coupons,n=t.chosenCoupon,i=t.currency,r=e[+n];if(r){var o=0;return Object(a.e)(r.value)?o=r.value:Object(a.e)(r.denominations)&&(o=r.denominations),"-"+i+" "+(o/100).toFixed(2)}return 0===e.length?Jr("tips"):Jr("count",e.length)}(e);return t(ne,o()([{class:Zr(),attrs:{value:s,title:e.title||Jr("title"),border:e.border,isLink:e.editable,valueClass:Zr("value",{selected:r})}},h(i,!0)]))}Qr.model={prop:"chosenCoupon"},Qr.props={title:String,coupons:{type:Array,default:function(){return[]}},currency:{type:String,default:"¥"},border:{type:Boolean,default:!0},editable:{type:Boolean,default:!0},chosenCoupon:{type:[Number,String],default:-1}};var to=Kr(Qr),eo=Object(a.b)("coupon-list"),no=eo[0],io=eo[1],ro=eo[2],oo=no({model:{prop:"code"},props:{code:String,closeButtonText:String,inputPlaceholder:String,enabledTitle:String,disabledTitle:String,exchangeButtonText:String,exchangeButtonLoading:Boolean,exchangeButtonDisabled:Boolean,exchangeMinLength:{type:Number,default:1},chosenCoupon:{type:Number,default:-1},coupons:{type:Array,default:function(){return[]}},disabledCoupons:{type:Array,default:function(){return[]}},displayedCouponIndex:{type:Number,default:-1},showExchangeBar:{type:Boolean,default:!0},showCloseButton:{type:Boolean,default:!0},showCount:{type:Boolean,default:!0},currency:{type:String,default:"¥"},emptyImage:{type:String,default:"https://img.yzcdn.cn/vant/coupon-empty.png"}},data:function(){return{tab:0,winHeight:window.innerHeight,currentCode:this.code||""}},computed:{buttonDisabled:function(){return!this.exchangeButtonLoading&&(this.exchangeButtonDisabled||!this.currentCode||this.currentCode.length<this.exchangeMinLength)},listStyle:function(){return{height:this.winHeight-(this.showExchangeBar?140:94)+"px"}}},watch:{code:function(t){this.currentCode=t},currentCode:function(t){this.$emit("input",t)},displayedCouponIndex:"scrollToShowCoupon"},mounted:function(){this.scrollToShowCoupon(this.displayedCouponIndex)},methods:{onClickExchangeButton:function(){this.$emit("exchange",this.currentCode),this.code||(this.currentCode="")},scrollToShowCoupon:function(t){var e=this;-1!==t&&this.$nextTick(function(){var n=e.$refs,i=n.card,r=n.list;r&&i&&i[t]&&(r.scrollTop=i[t].$el.offsetTop-100)})},genEmpty:function(){var t=this.$createElement;return t("div",{class:io("empty")},[t("img",{attrs:{src:this.emptyImage}}),t("p",[ro("empty")])])},genExchangeButton:function(){return(0,this.$createElement)(Ce,{attrs:{plain:!0,type:"danger",text:this.exchangeButtonText||ro("exchange"),loading:this.exchangeButtonLoading,disabled:this.buttonDisabled},class:io("exchange"),on:{click:this.onClickExchangeButton}})}},render:function(){var t=this,e=arguments[0],n=this.coupons,i=this.disabledCoupons,r=this.showCount?" ("+n.length+")":"",o=(this.enabledTitle||ro("enable"))+r,a=this.showCount?" ("+i.length+")":"",s=(this.disabledTitle||ro("disabled"))+a,c=this.showExchangeBar&&e("div",{class:io("exchange-bar")},[e(ce,{attrs:{clearable:!0,border:!1,placeholder:this.inputPlaceholder||ro("placeholder"),maxlength:"20"},class:io("field"),model:{value:t.currentCode,callback:function(e){t.currentCode=e}}}),this.genExchangeButton()]),l=function(e){return function(){return t.$emit("change",e)}},u=e(mi,{attrs:{title:o}},[e("div",{class:io("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[n.map(function(n,i){return e(Xr,{ref:"card",key:n.id,attrs:{coupon:n,currency:t.currency,chosen:i===t.chosenCoupon},nativeOn:{click:l(i)}})}),!n.length&&this.genEmpty()])]),h=e(mi,{attrs:{title:s}},[e("div",{class:io("list",{"with-bottom":this.showCloseButton}),style:this.listStyle},[i.map(function(n){return e(Xr,{attrs:{disabled:!0,coupon:n,currency:t.currency},key:n.id})}),!i.length&&this.genEmpty()])]);return e("div",{class:io()},[c,e(Ii,{class:io("tab"),attrs:{border:!1},model:{value:t.tab,callback:function(e){t.tab=e}}},[u,h]),e("div",{class:io("bottom")},[e(Ce,{directives:[{name:"show",value:this.showCloseButton}],attrs:{round:!0,type:"danger",block:!0,text:this.closeButtonText||ro("close")},class:io("close"),on:{click:l(-1)}})])])}}),ao=i({},xt,{value:null,filter:Function,columnsOrder:Array,showToolbar:{type:Boolean,default:!0},formatter:{type:Function,default:function(t,e){return e}}}),so={data:function(){return{innerValue:this.formatValue(this.value)}},computed:{originColumns:function(){var t=this;return this.ranges.map(function(e){var n=e.type,i=e.range,r=function(t,e){for(var n=-1,i=Array(t);++n<t;)i[n]=e(n);return i}(i[1]-i[0]+1,function(t){return Object(Ir.b)(i[0]+t)});return t.filter&&(r=t.filter(n,r)),{type:n,values:r}})},columns:function(){var t=this;return this.originColumns.map(function(e){return{values:e.values.map(function(n){return t.formatter(e.type,n)})}})}},watch:{columns:"updateColumnValue",innerValue:function(t){this.$emit("input",t)}},mounted:function(){var t=this;this.updateColumnValue(),this.$nextTick(function(){t.updateInnerValue()})},methods:{getPicker:function(){return this.$refs.picker},onConfirm:function(){this.$emit("confirm",this.innerValue)},onCancel:function(){this.$emit("cancel")}},render:function(){var t=this,e=arguments[0],n={};return Object.keys(xt).forEach(function(e){n[e]=t[e]}),e(Gt,{ref:"picker",attrs:{columns:this.columns,readonly:this.readonly},scopedSlots:this.$scopedSlots,on:{change:this.onChange,confirm:this.onConfirm,cancel:this.onCancel},props:i({},n)})}},co=(0,Object(a.b)("time-picker")[0])({mixins:[so],props:i({},ao,{minHour:{type:[Number,String],default:0},maxHour:{type:[Number,String],default:23},minMinute:{type:[Number,String],default:0},maxMinute:{type:[Number,String],default:59}}),computed:{ranges:function(){return[{type:"hour",range:[+this.minHour,+this.maxHour]},{type:"minute",range:[+this.minMinute,+this.maxMinute]}]}},watch:{filter:"updateInnerValue",minHour:"updateInnerValue",maxHour:"updateInnerValue",minMinute:"updateInnerValue",maxMinute:"updateInnerValue",value:function(t){(t=this.formatValue(t))!==this.innerValue&&(this.innerValue=t,this.updateColumnValue())}},methods:{formatValue:function(t){t||(t=Object(Ir.b)(this.minHour)+":"+Object(Ir.b)(this.minMinute));var e=t.split(":"),n=e[0],i=e[1];return(n=Object(Ir.b)(Pt(n,this.minHour,this.maxHour)))+":"+(i=Object(Ir.b)(Pt(i,this.minMinute,this.maxMinute)))},updateInnerValue:function(){var t=this.getPicker().getIndexes(),e=t[0],n=t[1],i=this.originColumns,r=i[0],o=i[1],a=r.values[e]||r.values[0],s=o.values[n]||o.values[0];this.innerValue=this.formatValue(a+":"+s),this.updateColumnValue()},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick(function(){e.$nextTick(function(){e.$emit("change",t)})})},updateColumnValue:function(){var t=this,e=this.formatter,n=this.innerValue.split(":"),i=[e("hour",n[0]),e("minute",n[1])];this.$nextTick(function(){t.getPicker().setValues(i)})}}}),lo=(new Date).getFullYear(),uo=(0,Object(a.b)("date-picker")[0])({mixins:[so],props:i({},ao,{type:{type:String,default:"datetime"},minDate:{type:Date,default:function(){return new Date(lo-10,0,1)},validator:Vn},maxDate:{type:Date,default:function(){return new Date(lo+10,11,31)},validator:Vn}}),watch:{filter:"updateInnerValue",minDate:"updateInnerValue",maxDate:"updateInnerValue",value:function(t){(t=this.formatValue(t)).valueOf()!==this.innerValue.valueOf()&&(this.innerValue=t)}},computed:{ranges:function(){var t=this.getBoundary("max",this.innerValue),e=t.maxYear,n=t.maxDate,i=t.maxMonth,r=t.maxHour,o=t.maxMinute,a=this.getBoundary("min",this.innerValue),s=a.minYear,c=a.minDate,l=[{type:"year",range:[s,e]},{type:"month",range:[a.minMonth,i]},{type:"day",range:[c,n]},{type:"hour",range:[a.minHour,r]},{type:"minute",range:[a.minMinute,o]}];switch(this.type){case"date":l=l.slice(0,3);break;case"year-month":l=l.slice(0,2);break;case"month-day":l=l.slice(1,3);break;case"datehour":l=l.slice(0,4)}if(this.columnsOrder){var u=this.columnsOrder.concat(l.map(function(t){return t.type}));l.sort(function(t,e){return u.indexOf(t.type)-u.indexOf(e.type)})}return l}},methods:{formatValue:function(t){return Vn(t)||(t=this.minDate),t=Math.max(t,this.minDate.getTime()),t=Math.min(t,this.maxDate.getTime()),new Date(t)},getBoundary:function(t,e){var n,i=this[t+"Date"],r=i.getFullYear(),o=1,a=1,s=0,c=0;return"max"===t&&(o=12,a=Jn(e.getFullYear(),e.getMonth()+1),s=23,c=59),e.getFullYear()===r&&(o=i.getMonth()+1,e.getMonth()+1===o&&(a=i.getDate(),e.getDate()===a&&(s=i.getHours(),e.getHours()===s&&(c=i.getMinutes())))),(n={})[t+"Year"]=r,n[t+"Month"]=o,n[t+"Date"]=a,n[t+"Hour"]=s,n[t+"Minute"]=c,n},updateInnerValue:function(){var t,e,n,i=this,r=this.type,o=this.getPicker().getIndexes(),a=function(t){var e=0;return i.originColumns.forEach(function(n,i){t===n.type&&(e=i)}),function(t){if(!t)return 0;for(;Object(Rn.a)(parseInt(t,10));){if(!(t.length>1))return 0;t=t.slice(1)}return parseInt(t,10)}(i.originColumns[e].values[o[e]])};"month-day"===r?(t=this.innerValue.getFullYear(),e=a("month"),n=a("day")):(t=a("year"),e=a("month"),n="year-month"===r?1:a("day"));var s=Jn(t,e);n=n>s?s:n;var c=0,l=0;"datehour"===r&&(c=a("hour")),"datetime"===r&&(c=a("hour"),l=a("minute"));var u=new Date(t,e-1,n,c,l);this.innerValue=this.formatValue(u)},onChange:function(t){var e=this;this.updateInnerValue(),this.$nextTick(function(){e.$nextTick(function(){e.$emit("change",t)})})},updateColumnValue:function(){var t=this,e=this.innerValue,n=this.formatter,i=this.originColumns.map(function(t){switch(t.type){case"year":return n("year",""+e.getFullYear());case"month":return n("month",Object(Ir.b)(e.getMonth()+1));case"day":return n("day",Object(Ir.b)(e.getDate()));case"hour":return n("hour",Object(Ir.b)(e.getHours()));case"minute":return n("minute",Object(Ir.b)(e.getMinutes()));default:return null}});this.$nextTick(function(){t.getPicker().setValues(i)})}}}),ho=Object(a.b)("datetime-picker"),fo=ho[0],po=ho[1],mo=fo({props:i({},co.props,uo.props),methods:{getPicker:function(){return this.$refs.root.getPicker()}},render:function(){return(0,arguments[0])("time"===this.type?co:uo,{ref:"root",class:po(),scopedSlots:this.$scopedSlots,props:i({},this.$props),on:i({},this.$listeners)})}}),vo=Object(a.b)("divider"),go=vo[0],yo=vo[1];function bo(t,e,n,i){var r;return t("div",o()([{attrs:{role:"separator"},style:{borderColor:e.borderColor},class:yo((r={dashed:e.dashed,hairline:e.hairline},r["content-"+e.contentPosition]=n.default,r))},h(i,!0)]),[n.default&&n.default()])}bo.props={dashed:Boolean,hairline:{type:Boolean,default:!0},contentPosition:{type:String,default:"center"}};var xo=go(bo),_o=Object(a.b)("dropdown-item"),wo=_o[0],So=_o[1],To=wo({mixins:[U({ref:"wrapper"}),Oe("vanDropdownMenu")],props:{value:null,title:String,disabled:Boolean,titleClass:String,options:{type:Array,default:function(){return[]}},lazyRender:{type:Boolean,default:!0}},data:function(){return{transition:!0,showPopup:!1,showWrapper:!1}},computed:{displayTitle:function(){var t=this;if(this.title)return this.title;var e=this.options.filter(function(e){return e.value===t.value});return e.length?e[0].text:""}},watch:{showPopup:function(t){this.bindScroll(t)}},beforeCreate:function(){var t=this,e=function(e){return function(){return t.$emit(e)}};this.onOpen=e("open"),this.onClose=e("close"),this.onOpened=e("opened")},methods:{toggle:function(t,e){void 0===t&&(t=!this.showPopup),void 0===e&&(e={}),t!==this.showPopup&&(this.transition=!e.immediate,this.showPopup=t,t&&(this.parent.updateOffset(),this.showWrapper=!0))},bindScroll:function(t){var e=this.parent.scroller;(t?g:y)(e,"scroll",this.onScroll,!0)},onScroll:function(){this.parent.updateOffset()},onClickWrapper:function(t){this.getContainer&&t.stopPropagation()}},render:function(){var t=this,e=arguments[0],n=this.parent,i=n.zIndex,r=n.offset,o=n.overlay,a=n.duration,s=n.direction,c=n.activeColor,l=n.closeOnClickOverlay,u=this.options.map(function(n){var i=n.value===t.value;return e(ne,{attrs:{clickable:!0,icon:n.icon,title:n.text},key:n.value,class:So("option",{active:i}),style:{color:i?c:""},on:{click:function(){t.showPopup=!1,n.value!==t.value&&(t.$emit("input",n.value),t.$emit("change",n.value))}}},[i&&e(rt,{class:So("icon"),attrs:{color:c,name:"success"}})])}),h={zIndex:i};return"down"===s?h.top=r+"px":h.bottom=r+"px",e("div",[e("div",{directives:[{name:"show",value:this.showWrapper}],ref:"wrapper",style:h,class:So([s]),on:{click:this.onClickWrapper}},[e(ct,{attrs:{overlay:o,position:"down"===s?"top":"bottom",duration:this.transition?a:0,lazyRender:this.lazyRender,overlayStyle:{position:"absolute"},closeOnClickOverlay:l},class:So("content"),on:{open:this.onOpen,close:this.onClose,opened:this.onOpened,closed:function(){t.showWrapper=!1,t.$emit("closed")}},model:{value:t.showPopup,callback:function(e){t.showPopup=e}}},[u,this.slots("default")])])])}}),Eo=function(t){return{props:{closeOnClickOutside:{type:Boolean,default:!0}},data:function(){var e=this;return{clickOutsideHandler:function(n){e.closeOnClickOutside&&!e.$el.contains(n.target)&&e[t.method]()}}},mounted:function(){g(document,t.event,this.clickOutsideHandler)},beforeDestroy:function(){y(document,t.event,this.clickOutsideHandler)}}},Mo=Object(a.b)("dropdown-menu"),Co=Mo[0],Lo=Mo[1],Oo=Co({mixins:[ke("vanDropdownMenu"),Eo({event:"click",method:"onClickOutside"})],props:{zIndex:[Number,String],activeColor:String,overlay:{type:Boolean,default:!0},duration:{type:[Number,String],default:.2},direction:{type:String,default:"down"},closeOnClickOverlay:{type:Boolean,default:!0}},data:function(){return{offset:0}},computed:{scroller:function(){return D(this.$el)},opened:function(){return this.children.some(function(t){return t.showWrapper})},barStyle:function(){if(this.opened&&Object(a.e)(this.zIndex))return{zIndex:1+this.zIndex}}},methods:{updateOffset:function(){if(this.$refs.bar){var t=this.$refs.bar.getBoundingClientRect();"down"===this.direction?this.offset=t.bottom:this.offset=window.innerHeight-t.top}},toggleItem:function(t){this.children.forEach(function(e,n){n===t?e.toggle():e.showPopup&&e.toggle(!1,{immediate:!0})})},onClickOutside:function(){this.children.forEach(function(t){t.toggle(!1)})}},render:function(){var t=this,e=arguments[0],n=this.children.map(function(n,i){return e("div",{attrs:{role:"button",tabindex:n.disabled?-1:0},class:Lo("item",{disabled:n.disabled}),on:{click:function(){n.disabled||t.toggleItem(i)}}},[e("span",{class:[Lo("title",{active:n.showPopup,down:n.showPopup===("down"===t.direction)}),n.titleClass],style:{color:n.showPopup?t.activeColor:""}},[e("div",{class:"van-ellipsis"},[n.slots("title")||n.displayTitle])])])});return e("div",{class:Lo()},[e("div",{ref:"bar",style:this.barStyle,class:Lo("bar",{opened:this.opened})},[n]),this.slots("default")])}}),ko={render:function(){var t=arguments[0],e=function(e,n,i){return t("stop",{attrs:{"stop-color":e,offset:n+"%","stop-opacity":i}})};return t("svg",{attrs:{viewBox:"0 0 160 160",xmlns:"http://www.w3.org/2000/svg"}},[t("defs",[t("linearGradient",{attrs:{id:"c",x1:"64.022%",y1:"100%",x2:"64.022%",y2:"0%"}},[e("#FFF",0,.5),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:"d",x1:"64.022%",y1:"96.956%",x2:"64.022%",y2:"0%"}},[e("#F2F3F5",0,.3),e("#F2F3F5",100)]),t("linearGradient",{attrs:{id:"h",x1:"50%",y1:"0%",x2:"50%",y2:"84.459%"}},[e("#EBEDF0",0),e("#DCDEE0",100,0)]),t("linearGradient",{attrs:{id:"i",x1:"100%",y1:"0%",x2:"100%",y2:"100%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:"k",x1:"100%",y1:"100%",x2:"100%",y2:"0%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:"m",x1:"0%",y1:"43.982%",x2:"100%",y2:"54.703%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("linearGradient",{attrs:{id:"n",x1:"94.535%",y1:"43.837%",x2:"5.465%",y2:"54.948%"}},[e("#EAEDF0",0),e("#DCDEE0",100)]),t("radialGradient",{attrs:{id:"g",cx:"50%",cy:"0%",fx:"50%",fy:"0%",r:"100%",gradientTransform:"matrix(0 1 -.54835 0 .5 -.5)"}},[e("#EBEDF0",0),e("#FFF",100,0)])]),t("g",{attrs:{fill:"none","fill-rule":"evenodd"}},[t("g",{attrs:{opacity:".8"}},[t("path",{attrs:{d:"M0 124V46h20v20h14v58H0z",fill:"url(#c)",transform:"matrix(-1 0 0 1 36 7)"}}),t("path",{attrs:{d:"M40.5 5a8.504 8.504 0 018.13 6.009l.12-.005L49 11a8 8 0 11-1 15.938V27H34v-.174a6.5 6.5 0 11-1.985-12.808A8.5 8.5 0 0140.5 5z",fill:"url(#d)",transform:"translate(2 7)"}}),t("path",{attrs:{d:"M96.016 0a4.108 4.108 0 013.934 2.868l.179-.004c2.138 0 3.871 1.71 3.871 3.818 0 2.109-1.733 3.818-3.871 3.818-.164 0-.325-.01-.484-.03v.03h-6.774v-.083a3.196 3.196 0 01-.726.083C90.408 10.5 89 9.111 89 7.398c0-1.636 1.284-2.976 2.911-3.094a3.555 3.555 0 01-.008-.247c0-2.24 1.842-4.057 4.113-4.057z",fill:"url(#d)",transform:"translate(2 7)"}}),t("path",{attrs:{d:"M121 8h22.231v14H152v77.37h-31V8z",fill:"url(#c)",transform:"translate(2 7)"}})]),t("path",{attrs:{fill:"url(#g)",d:"M0 139h160v21H0z"}}),t("path",{attrs:{d:"M37 18a7 7 0 013 13.326v26.742c0 1.23-.997 2.227-2.227 2.227h-1.546A2.227 2.227 0 0134 58.068V31.326A7 7 0 0137 18z",fill:"url(#h)","fill-rule":"nonzero",transform:"translate(43 36)"}}),t("g",{attrs:{opacity:".6","stroke-linecap":"round","stroke-width":"7"}},[t("path",{attrs:{d:"M20.875 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#i)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M9.849 0C3.756 6.225 0 14.747 0 24.146c0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#i)",transform:"translate(43 36)"}}),t("path",{attrs:{d:"M57.625 11.136a18.868 18.868 0 00-5.284 13.121c0 5.094 2.012 9.718 5.284 13.12",stroke:"url(#k)",transform:"rotate(-180 76.483 42.257)"}}),t("path",{attrs:{d:"M73.216 0c-6.093 6.225-9.849 14.747-9.849 24.146 0 9.398 3.756 17.92 9.849 24.145",stroke:"url(#k)",transform:"rotate(-180 89.791 42.146)"}})]),t("g",{attrs:{transform:"translate(31 105)","fill-rule":"nonzero"}},[t("rect",{attrs:{fill:"url(#m)",width:"98",height:"34",rx:"2"}}),t("rect",{attrs:{fill:"#FFF",x:"9",y:"8",width:"80",height:"18",rx:"1.114"}}),t("rect",{attrs:{fill:"url(#n)",x:"15",y:"12",width:"18",height:"6",rx:"1.114"}})])])])}},Po=Object(a.b)("empty"),Ao=Po[0],Io=Po[1],Do=["error","search","default"],Ro=Ao({props:{imageSize:[Number,String],description:String,image:{type:String,default:"default"}},methods:{genImageContent:function(){var t=this.$createElement,e=this.slots("image");if(e)return e;if("network"===this.image)return t(ko);var n=this.image;return-1!==Do.indexOf(n)&&(n="https://img.yzcdn.cn/vant/empty-image-"+n+".png"),t("img",{attrs:{src:n}})},genImage:function(){var t=this.$createElement,e={width:Object(a.a)(this.imageSize),height:Object(a.a)(this.imageSize)};return t("div",{class:Io("image"),style:e},[this.genImageContent()])},genDescription:function(){var t=this.$createElement,e=this.slots("description")||this.description;if(e)return t("p",{class:Io("description")},[e])},genBottom:function(){var t=this.$createElement,e=this.slots();if(e)return t("div",{class:Io("bottom")},[e])}},render:function(){return(0,arguments[0])("div",{class:Io()},[this.genImage(),this.genDescription(),this.genBottom()])}}),Bo=Object(a.b)("form"),No=Bo[0],jo=Bo[1],zo=No({props:{colon:Boolean,disabled:Boolean,readonly:Boolean,labelWidth:[Number,String],labelAlign:String,inputAlign:String,scrollToError:Boolean,validateFirst:Boolean,errorMessageAlign:String,submitOnEnter:{type:Boolean,default:!0},validateTrigger:{type:String,default:"onBlur"},showError:{type:Boolean,default:!0},showErrorMessage:{type:Boolean,default:!0}},provide:function(){return{vanForm:this}},data:function(){return{fields:[]}},methods:{getFieldsByNames:function(t){return t?this.fields.filter(function(e){return-1!==t.indexOf(e.name)}):this.fields},validateSeq:function(t){var e=this;return new Promise(function(n,i){var r=[];e.getFieldsByNames(t).reduce(function(t,e){return t.then(function(){if(!r.length)return e.validate().then(function(t){t&&r.push(t)})})},Promise.resolve()).then(function(){r.length?i(r):n()})})},validateFields:function(t){var e=this;return new Promise(function(n,i){var r=e.getFieldsByNames(t);Promise.all(r.map(function(t){return t.validate()})).then(function(t){(t=t.filter(function(t){return t})).length?i(t):n()})})},validate:function(t){return t&&!Array.isArray(t)?this.validateField(t):this.validateFirst?this.validateSeq(t):this.validateFields(t)},validateField:function(t){var e=this.fields.filter(function(e){return e.name===t});return e.length?new Promise(function(t,n){e[0].validate().then(function(e){e?n(e):t()})}):Promise.reject()},resetValidation:function(t){t&&!Array.isArray(t)&&(t=[t]),this.getFieldsByNames(t).forEach(function(t){t.resetValidation()})},scrollToField:function(t,e){this.fields.some(function(n){return n.name===t&&(n.$el.scrollIntoView(e),!0)})},addField:function(t){this.fields.push(t),Le(this.fields,this)},removeField:function(t){this.fields=this.fields.filter(function(e){return e!==t})},getValues:function(){return this.fields.reduce(function(t,e){return t[e.name]=e.formValue,t},{})},onSubmit:function(t){t.preventDefault(),this.submit()},submit:function(){var t=this,e=this.getValues();this.validate().then(function(){t.$emit("submit",e)}).catch(function(n){t.$emit("failed",{values:e,errors:n}),t.scrollToError&&t.scrollToField(n[0].name)})}},render:function(){return(0,arguments[0])("form",{class:jo(),on:{submit:this.onSubmit}},[this.slots()])}}),Fo=Object(a.b)("goods-action-icon"),Vo=Fo[0],Uo=Fo[1],Go=Vo({mixins:[Oe("vanGoodsAction")],props:i({},Kt,{dot:Boolean,text:String,icon:String,color:String,info:[Number,String],badge:[Number,String],iconClass:null}),methods:{onClick:function(t){this.$emit("click",t),Xt(this.$router,this)},genIcon:function(){var t,e=this.$createElement,n=this.slots("icon"),i=null!=(t=this.badge)?t:this.info;return n?e("div",{class:Uo("icon")},[n,e(J,{attrs:{dot:this.dot,info:i}})]):e(rt,{class:[Uo("icon"),this.iconClass],attrs:{tag:"div",dot:this.dot,info:i,name:this.icon,color:this.color}})}},render:function(){return(0,arguments[0])("div",{attrs:{role:"button",tabindex:"0"},class:Uo(),on:{click:this.onClick}},[this.genIcon(),this.slots()||this.text])}}),$o=Object(a.b)("grid"),Ho=$o[0],Wo=$o[1],qo=Ho({mixins:[ke("vanGrid")],props:{square:Boolean,gutter:[Number,String],iconSize:[Number,String],direction:String,clickable:Boolean,columnNum:{type:[Number,String],default:4},center:{type:Boolean,default:!0},border:{type:Boolean,default:!0}},computed:{style:function(){var t=this.gutter;if(t)return{paddingLeft:Object(a.a)(t)}}},render:function(){var t;return(0,arguments[0])("div",{style:this.style,class:[Wo(),(t={},t[St]=this.border&&!this.gutter,t)]},[this.slots()])}}),Xo=Object(a.b)("grid-item"),Yo=Xo[0],Ko=Xo[1],Zo=Yo({mixins:[Oe("vanGrid")],props:i({},Kt,{dot:Boolean,text:String,icon:String,iconPrefix:String,info:[Number,String],badge:[Number,String]}),computed:{style:function(){var t=this.parent,e=t.square,n=t.gutter,i=t.columnNum,r=100/i+"%",o={flexBasis:r};if(e)o.paddingTop=r;else if(n){var s=Object(a.a)(n);o.paddingRight=s,this.index>=i&&(o.marginTop=s)}return o},contentStyle:function(){var t=this.parent,e=t.square,n=t.gutter;if(e&&n){var i=Object(a.a)(n);return{right:i,bottom:i,height:"auto"}}}},methods:{onClick:function(t){this.$emit("click",t),Xt(this.$router,this)},genIcon:function(){var t,e=this.$createElement,n=this.slots("icon"),i=null!=(t=this.badge)?t:this.info;return n?e("div",{class:Ko("icon-wrapper")},[n,e(J,{attrs:{dot:this.dot,info:i}})]):this.icon?e(rt,{attrs:{name:this.icon,dot:this.dot,badge:i,size:this.parent.iconSize,classPrefix:this.iconPrefix},class:Ko("icon")}):void 0},getText:function(){var t=this.$createElement,e=this.slots("text");return e||(this.text?t("span",{class:Ko("text")},[this.text]):void 0)},genContent:function(){var t=this.slots();return t||[this.genIcon(),this.getText()]}},render:function(){var t,e=arguments[0],n=this.parent,i=n.center,r=n.border,o=n.square,a=n.gutter,s=n.direction,c=n.clickable;return e("div",{class:[Ko({square:o})],style:this.style},[e("div",{style:this.contentStyle,attrs:{role:c?"button":null,tabindex:c?0:null},class:[Ko("content",[s,{center:i,square:o,clickable:c,surround:r&&a}]),(t={},t[wt]=r,t)],on:{click:this.onClick}},[this.genContent()])])}}),Jo=Object(a.b)("image-preview"),Qo=Jo[0],ta=Jo[1],ea=Object(a.b)("swipe"),na=ea[0],ia=ea[1],ra=na({mixins:[V,ke("vanSwipe"),$(function(t,e){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0),t(window,"visibilitychange",this.onVisibilityChange),e?this.initialize():this.clear()})],props:{width:[Number,String],height:[Number,String],autoplay:[Number,String],vertical:Boolean,lazyRender:Boolean,indicatorColor:String,loop:{type:Boolean,default:!0},duration:{type:[Number,String],default:500},touchable:{type:Boolean,default:!0},initialSwipe:{type:[Number,String],default:0},showIndicators:{type:Boolean,default:!0},stopPropagation:{type:Boolean,default:!0}},data:function(){return{rect:null,offset:0,active:0,deltaX:0,deltaY:0,swiping:!1,computedWidth:0,computedHeight:0}},watch:{children:function(){this.initialize()},initialSwipe:function(){this.initialize()},autoplay:function(t){t>0?this.autoPlay():this.clear()}},computed:{count:function(){return this.children.length},maxCount:function(){return Math.ceil(Math.abs(this.minOffset)/this.size)},delta:function(){return this.vertical?this.deltaY:this.deltaX},size:function(){return this[this.vertical?"computedHeight":"computedWidth"]},trackSize:function(){return this.count*this.size},activeIndicator:function(){return(this.active+this.count)%this.count},isCorrectDirection:function(){var t=this.vertical?"vertical":"horizontal";return this.direction===t},trackStyle:function(){var t={transitionDuration:(this.swiping?0:this.duration)+"ms",transform:"translate"+(this.vertical?"Y":"X")+"("+this.offset+"px)"};if(this.size){var e=this.vertical?"height":"width",n=this.vertical?"width":"height";t[e]=this.trackSize+"px",t[n]=this[n]?this[n]+"px":""}return t},indicatorStyle:function(){return{backgroundColor:this.indicatorColor}},minOffset:function(){return(this.vertical?this.rect.height:this.rect.width)-this.size*this.count}},mounted:function(){this.bindTouchEvent(this.$refs.track)},methods:{initialize:function(t){if(void 0===t&&(t=+this.initialSwipe),this.$el&&!vi(this.$el)){clearTimeout(this.timer);var e=this.$el.getBoundingClientRect();this.rect=e,this.swiping=!0,this.active=t,this.computedWidth=+this.width||e.width,this.computedHeight=+this.height||e.height,this.offset=this.getTargetOffset(t),this.children.forEach(function(t){t.offset=0}),this.autoPlay()}},resize:function(){this.initialize(this.activeIndicator)},onVisibilityChange:function(){document.hidden?this.clear():this.autoPlay()},onTouchStart:function(t){this.touchable&&(this.clear(),this.touchStartTime=Date.now(),this.touchStart(t),this.correctPosition())},onTouchMove:function(t){this.touchable&&this.swiping&&(this.touchMove(t),this.isCorrectDirection&&(x(t,this.stopPropagation),this.move({offset:this.delta})))},onTouchEnd:function(){if(this.touchable&&this.swiping){var t=this.size,e=this.delta,n=e/(Date.now()-this.touchStartTime);if((Math.abs(n)>.25||Math.abs(e)>t/2)&&this.isCorrectDirection){var i=this.vertical?this.offsetY:this.offsetX,r=0;r=this.loop?i>0?e>0?-1:1:0:-Math[e>0?"ceil":"floor"](e/t),this.move({pace:r,emitChange:!0})}else e&&this.move({pace:0});this.swiping=!1,this.autoPlay()}},getTargetActive:function(t){var e=this.active,n=this.count,i=this.maxCount;return t?this.loop?Pt(e+t,-1,n):Pt(e+t,0,i):e},getTargetOffset:function(t,e){void 0===e&&(e=0);var n=t*this.size;this.loop||(n=Math.min(n,-this.minOffset));var i=e-n;return this.loop||(i=Pt(i,this.minOffset,0)),i},move:function(t){var e=t.pace,n=void 0===e?0:e,i=t.offset,r=void 0===i?0:i,o=t.emitChange,a=this.loop,s=this.count,c=this.active,l=this.children,u=this.trackSize,h=this.minOffset;if(!(s<=1)){var d=this.getTargetActive(n),f=this.getTargetOffset(d,r);if(a){if(l[0]&&f!==h){var p=f<h;l[0].offset=p?u:0}if(l[s-1]&&0!==f){var m=f>0;l[s-1].offset=m?-u:0}}this.active=d,this.offset=f,o&&d!==c&&this.$emit("change",this.activeIndicator)}},prev:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Fn.b)(function(){t.swiping=!1,t.move({pace:-1,emitChange:!0})})},next:function(){var t=this;this.correctPosition(),this.resetTouchStatus(),Object(Fn.b)(function(){t.swiping=!1,t.move({pace:1,emitChange:!0})})},swipeTo:function(t,e){var n=this;void 0===e&&(e={}),this.correctPosition(),this.resetTouchStatus(),Object(Fn.b)(function(){var i;i=n.loop&&t===n.count?0===n.active?0:t:t%n.count,e.immediate?Object(Fn.b)(function(){n.swiping=!1}):n.swiping=!1,n.move({pace:i-n.active,emitChange:!0})})},correctPosition:function(){this.swiping=!0,this.active<=-1&&this.move({pace:this.count}),this.active>=this.count&&this.move({pace:-this.count})},clear:function(){clearTimeout(this.timer)},autoPlay:function(){var t=this,e=this.autoplay;e>0&&this.count>1&&(this.clear(),this.timer=setTimeout(function(){t.next(),t.autoPlay()},e))},genIndicator:function(){var t=this,e=this.$createElement,n=this.count,i=this.activeIndicator,r=this.slots("indicator");return r||(this.showIndicators&&n>1?e("div",{class:ia("indicators",{vertical:this.vertical})},[Array.apply(void 0,Array(n)).map(function(n,r){return e("i",{class:ia("indicator",{active:r===i}),style:r===i?t.indicatorStyle:null})})]):void 0)}},render:function(){var t=arguments[0];return t("div",{class:ia()},[t("div",{ref:"track",style:this.trackStyle,class:ia("track",{vertical:this.vertical})},[this.slots()]),this.genIndicator()])}}),oa=Object(a.b)("swipe-item"),aa=oa[0],sa=oa[1],ca=aa({mixins:[Oe("vanSwipe")],data:function(){return{offset:0,inited:!1,mounted:!1}},mounted:function(){var t=this;this.$nextTick(function(){t.mounted=!0})},computed:{style:function(){var t={},e=this.parent,n=e.size,i=e.vertical;return n&&(t[i?"height":"width"]=n+"px"),this.offset&&(t.transform="translate"+(i?"Y":"X")+"("+this.offset+"px)"),t},shouldRender:function(){var t=this.index,e=this.inited,n=this.parent,i=this.mounted;if(!n.lazyRender||e)return!0;if(!i)return!1;var r=n.activeIndicator,o=n.count-1,a=0===r&&n.loop?o:r-1,s=r===o&&n.loop?0:r+1,c=t===r||t===a||t===s;return c&&(this.inited=!0),c}},render:function(){return(0,arguments[0])("div",{class:sa(),style:this.style,on:i({},this.$listeners)},[this.shouldRender&&this.slots()])}});function la(t){return Math.sqrt(Math.pow(t[0].clientX-t[1].clientX,2)+Math.pow(t[0].clientY-t[1].clientY,2))}var ua,ha={mixins:[V],props:{src:String,show:Boolean,active:Number,minZoom:[Number,String],maxZoom:[Number,String],rootWidth:Number,rootHeight:Number},data:function(){return{scale:1,moveX:0,moveY:0,moving:!1,zooming:!1,imageRatio:0,displayWidth:0,displayHeight:0}},computed:{vertical:function(){var t=this.rootWidth,e=this.rootHeight/t;return this.imageRatio>e},imageStyle:function(){var t=this.scale,e={transitionDuration:this.zooming||this.moving?"0s":".3s"};if(1!==t){var n=this.moveX/t,i=this.moveY/t;e.transform="scale("+t+", "+t+") translate("+n+"px, "+i+"px)"}return e},maxMoveX:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight/this.imageRatio:this.rootWidth;return Math.max(0,(this.scale*t-this.rootWidth)/2)}return 0},maxMoveY:function(){if(this.imageRatio){var t=this.vertical?this.rootHeight:this.rootWidth*this.imageRatio;return Math.max(0,(this.scale*t-this.rootHeight)/2)}return 0}},watch:{show:function(t){t||this.resetScale()}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{resetScale:function(){this.setScale(1),this.moveX=0,this.moveY=0},setScale:function(t){this.scale=Pt(t,+this.minZoom,+this.maxZoom),this.$emit("scale",{scale:this.scale,index:this.active})},toggleScale:function(){var t=this.scale>1?1:2;this.setScale(t),this.moveX=0,this.moveY=0},onTouchStart:function(t){var e=t.touches,n=this.offsetX,i=void 0===n?0:n;this.touchStart(t),this.touchStartTime=new Date,this.startMoveX=this.moveX,this.startMoveY=this.moveY,this.moving=1===e.length&&1!==this.scale,this.zooming=2===e.length&&!i,this.zooming&&(this.startScale=this.scale,this.startDistance=la(t.touches))},onTouchMove:function(t){var e=t.touches;if(this.touchMove(t),(this.moving||this.zooming)&&x(t,!0),this.moving){var n=this.deltaX+this.startMoveX,i=this.deltaY+this.startMoveY;this.moveX=Pt(n,-this.maxMoveX,this.maxMoveX),this.moveY=Pt(i,-this.maxMoveY,this.maxMoveY)}if(this.zooming&&2===e.length){var r=la(e),o=this.startScale*r/this.startDistance;this.setScale(o)}},onTouchEnd:function(t){var e=!1;(this.moving||this.zooming)&&(e=!0,this.moving&&this.startMoveX===this.moveX&&this.startMoveY===this.moveY&&(e=!1),t.touches.length||(this.zooming&&(this.moveX=Pt(this.moveX,-this.maxMoveX,this.maxMoveX),this.moveY=Pt(this.moveY,-this.maxMoveY,this.maxMoveY),this.zooming=!1),this.moving=!1,this.startMoveX=0,this.startMoveY=0,this.startScale=1,this.scale<1&&this.resetScale())),x(t,e),this.checkTap(),this.resetTouchStatus()},checkTap:function(){var t=this,e=this.offsetX,n=void 0===e?0:e,i=this.offsetY,r=void 0===i?0:i,o=new Date-this.touchStartTime;n<10&&r<10&&o<250&&(this.doubleTapTimer?(clearTimeout(this.doubleTapTimer),this.doubleTapTimer=null,this.toggleScale()):this.doubleTapTimer=setTimeout(function(){t.$emit("close"),t.doubleTapTimer=null},250))},onLoad:function(t){var e=t.target,n=e.naturalWidth,i=e.naturalHeight;this.imageRatio=i/n}},render:function(){var t=arguments[0],e={loading:function(){return t(ft,{attrs:{type:"spinner"}})}};return t(ca,{class:ta("swipe-item")},[t(oi,{attrs:{src:this.src,fit:"contain"},class:ta("image",{vertical:this.vertical}),style:this.imageStyle,scopedSlots:e,on:{load:this.onLoad}})])}},da=Qo({mixins:[V,q({skipToggleEvent:!0}),$(function(t){t(window,"resize",this.resize,!0),t(window,"orientationchange",this.resize,!0)})],props:{className:null,closeable:Boolean,asyncClose:Boolean,showIndicators:Boolean,images:{type:Array,default:function(){return[]}},loop:{type:Boolean,default:!0},overlay:{type:Boolean,default:!0},minZoom:{type:[Number,String],default:1/3},maxZoom:{type:[Number,String],default:3},showIndex:{type:Boolean,default:!0},swipeDuration:{type:[Number,String],default:500},startPosition:{type:[Number,String],default:0},overlayClass:{type:String,default:ta("overlay")},closeIcon:{type:String,default:"clear"},closeOnPopstate:{type:Boolean,default:!0},closeIconPosition:{type:String,default:"top-right"}},data:function(){return{active:0,rootWidth:0,rootHeight:0,doubleClickTimer:null}},mounted:function(){this.resize()},watch:{startPosition:"setActive",value:function(t){var e=this;t?(this.setActive(+this.startPosition),this.$nextTick(function(){e.resize(),e.$refs.swipe.swipeTo(+e.startPosition,{immediate:!0})})):this.$emit("close",{index:this.active,url:this.images[this.active]})}},methods:{resize:function(){if(this.$el&&this.$el.getBoundingClientRect){var t=this.$el.getBoundingClientRect();this.rootWidth=t.width,this.rootHeight=t.height}},emitClose:function(){this.asyncClose||this.$emit("input",!1)},emitScale:function(t){this.$emit("scale",t)},setActive:function(t){t!==this.active&&(this.active=t,this.$emit("change",t))},genIndex:function(){var t=this.$createElement;if(this.showIndex)return t("div",{class:ta("index")},[this.slots("index",{index:this.active})||this.active+1+" / "+this.images.length])},genCover:function(){var t=this.$createElement,e=this.slots("cover");if(e)return t("div",{class:ta("cover")},[e])},genImages:function(){var t=this,e=this.$createElement;return e(ra,{ref:"swipe",attrs:{lazyRender:!0,loop:this.loop,duration:this.swipeDuration,initialSwipe:this.startPosition,showIndicators:this.showIndicators,indicatorColor:"white"},class:ta("swipe"),on:{change:this.setActive}},[this.images.map(function(n){return e(ha,{attrs:{src:n,show:t.value,active:t.active,maxZoom:t.maxZoom,minZoom:t.minZoom,rootWidth:t.rootWidth,rootHeight:t.rootHeight},on:{scale:t.emitScale,close:t.emitClose}})})])},genClose:function(){var t=this.$createElement;if(this.closeable)return t(rt,{attrs:{role:"button",name:this.closeIcon},class:ta("close-icon",this.closeIconPosition),on:{click:this.emitClose}})},onClosed:function(){this.$emit("closed")},swipeTo:function(t,e){this.$refs.swipe&&this.$refs.swipe.swipeTo(t,e)}},render:function(){var t=arguments[0];if(this.shouldRender)return t("transition",{attrs:{name:"van-fade"},on:{afterLeave:this.onClosed}},[t("div",{directives:[{name:"show",value:this.value}],class:[ta(),this.className]},[this.genClose(),this.genImages(),this.genIndex(),this.genCover()])])}}),fa={loop:!0,value:!0,images:[],maxZoom:3,minZoom:1/3,onClose:null,onChange:null,className:"",showIndex:!0,closeable:!1,closeIcon:"clear",asyncClose:!1,getContainer:"body",startPosition:0,swipeDuration:500,showIndicators:!1,closeOnPopstate:!0,closeIconPosition:"top-right"},pa=function(t,e){if(void 0===e&&(e=0),!a.i){ua||(ua=new(c.a.extend(da))({el:document.createElement("div")}),document.body.appendChild(ua.$el),ua.$on("change",function(t){ua.onChange&&ua.onChange(t)}),ua.$on("scale",function(t){ua.onScale&&ua.onScale(t)}));var n=Array.isArray(t)?{images:t,startPosition:e}:t;return i(ua,fa,n),ua.$once("input",function(t){ua.value=t}),ua.$once("closed",function(){ua.images=[]}),n.onClose&&(ua.$off("close"),ua.$once("close",n.onClose)),ua}};pa.Component=da,pa.install=function(){c.a.use(da)};var ma=pa,va=Object(a.b)("index-anchor"),ga=va[0],ya=va[1],ba=ga({mixins:[Oe("vanIndexBar",{indexKey:"childrenIndex"})],props:{index:[Number,String]},data:function(){return{top:0,left:null,rect:{top:0,height:0},width:null,active:!1}},computed:{sticky:function(){return this.active&&this.parent.sticky},anchorStyle:function(){if(this.sticky)return{zIndex:""+this.parent.zIndex,left:this.left?this.left+"px":null,width:this.width?this.width+"px":null,transform:"translate3d(0, "+this.top+"px, 0)",color:this.parent.highlightColor}}},mounted:function(){var t=this.$el.getBoundingClientRect();this.rect.height=t.height},methods:{scrollIntoView:function(){this.$el.scrollIntoView()},getRect:function(t,e){var n=this.$el.getBoundingClientRect();return this.rect.height=n.height,t===window||t===document.body?this.rect.top=n.top+N():this.rect.top=n.top+R(t)-e.top,this.rect}},render:function(){var t,e=arguments[0],n=this.sticky;return e("div",{style:{height:n?this.rect.height+"px":null}},[e("div",{style:this.anchorStyle,class:[ya({sticky:n}),(t={},t[Et]=n,t)]},[this.slots("default")||this.index])])}});var xa=Object(a.b)("index-bar"),_a=xa[0],wa=xa[1],Sa=_a({mixins:[V,ke("vanIndexBar"),$(function(t){this.scroller||(this.scroller=D(this.$el)),t(this.scroller,"scroll",this.onScroll)})],props:{zIndex:[Number,String],highlightColor:String,sticky:{type:Boolean,default:!0},stickyOffsetTop:{type:Number,default:0},indexList:{type:Array,default:function(){for(var t=[],e="A".charCodeAt(0),n=0;n<26;n++)t.push(String.fromCharCode(e+n));return t}}},data:function(){return{activeAnchorIndex:null}},computed:{sidebarStyle:function(){if(Object(a.e)(this.zIndex))return{zIndex:this.zIndex+1}},highlightStyle:function(){var t=this.highlightColor;if(t)return{color:t}}},watch:{indexList:function(){this.$nextTick(this.onScroll)},activeAnchorIndex:function(t){t&&this.$emit("change",t)}},methods:{onScroll:function(){var t=this;if(!vi(this.$el)){var e=R(this.scroller),n=this.getScrollerRect(),i=this.children.map(function(e){return e.getRect(t.scroller,n)}),r=this.getActiveAnchorIndex(e,i);this.activeAnchorIndex=this.indexList[r],this.sticky&&this.children.forEach(function(o,a){if(a===r||a===r-1){var s=o.$el.getBoundingClientRect();o.left=s.left,o.width=s.width}else o.left=null,o.width=null;if(a===r)o.active=!0,o.top=Math.max(t.stickyOffsetTop,i[a].top-e)+n.top;else if(a===r-1){var c=i[r].top-e;o.active=c>0,o.top=c+n.top-i[a].height}else o.active=!1})}},getScrollerRect:function(){return this.scroller.getBoundingClientRect?this.scroller.getBoundingClientRect():{top:0,left:0}},getActiveAnchorIndex:function(t,e){for(var n=this.children.length-1;n>=0;n--){var i=n>0?e[n-1].height:0;if(t+(this.sticky?i+this.stickyOffsetTop:0)>=e[n].top)return n}return-1},onClick:function(t){this.scrollToElement(t.target)},onTouchMove:function(t){if(this.touchMove(t),"vertical"===this.direction){x(t);var e=t.touches[0],n=e.clientX,i=e.clientY,r=document.elementFromPoint(n,i);if(r){var o=r.dataset.index;this.touchActiveIndex!==o&&(this.touchActiveIndex=o,this.scrollToElement(r))}}},scrollTo:function(t){var e=this.children.filter(function(e){return String(e.index)===t});e[0]&&(e[0].scrollIntoView(),this.sticky&&this.stickyOffsetTop&&j(N()-this.stickyOffsetTop),this.$emit("select",e[0].index))},scrollToElement:function(t){var e=t.dataset.index;this.scrollTo(e)},onTouchEnd:function(){this.active=null}},render:function(){var t=this,e=arguments[0],n=this.indexList.map(function(n){var i=n===t.activeAnchorIndex;return e("span",{class:wa("index",{active:i}),style:i?t.highlightStyle:null,attrs:{"data-index":n}},[n])});return e("div",{class:wa()},[e("div",{class:wa("sidebar"),style:this.sidebarStyle,on:{click:this.onClick,touchstart:this.touchStart,touchmove:this.onTouchMove,touchend:this.onTouchEnd,touchcancel:this.onTouchEnd}},[n]),this.slots("default")])}}),Ta=n("cTzj"),Ea=n.n(Ta).a,Ma=Object(a.b)("list"),Ca=Ma[0],La=Ma[1],Oa=Ma[2],ka=Ca({mixins:[$(function(t){this.scroller||(this.scroller=D(this.$el)),t(this.scroller,"scroll",this.check)})],model:{prop:"loading"},props:{error:Boolean,loading:Boolean,finished:Boolean,errorText:String,loadingText:String,finishedText:String,immediateCheck:{type:Boolean,default:!0},offset:{type:[Number,String],default:300},direction:{type:String,default:"down"}},data:function(){return{innerLoading:this.loading}},updated:function(){this.innerLoading=this.loading},mounted:function(){this.immediateCheck&&this.check()},watch:{loading:"check",finished:"check"},methods:{check:function(){var t=this;this.$nextTick(function(){if(!(t.innerLoading||t.finished||t.error)){var e,n=t.$el,i=t.scroller,r=t.offset,o=t.direction;if(!((e=i.getBoundingClientRect?i.getBoundingClientRect():{top:0,bottom:i.innerHeight}).bottom-e.top)||vi(n))return!1;var a=t.$refs.placeholder.getBoundingClientRect();("up"===o?e.top-a.top<=r:a.bottom-e.bottom<=r)&&(t.innerLoading=!0,t.$emit("input",!0),t.$emit("load"))}})},clickErrorText:function(){this.$emit("update:error",!1),this.check()},genLoading:function(){var t=this.$createElement;if(this.innerLoading&&!this.finished)return t("div",{key:"loading",class:La("loading")},[this.slots("loading")||t(ft,{attrs:{size:"16"}},[this.loadingText||Oa("loading")])])},genFinishedText:function(){var t=this.$createElement;if(this.finished){var e=this.slots("finished")||this.finishedText;if(e)return t("div",{class:La("finished-text")},[e])}},genErrorText:function(){var t=this.$createElement;if(this.error){var e=this.slots("error")||this.errorText;if(e)return t("div",{on:{click:this.clickErrorText},class:La("error-text")},[e])}}},render:function(){var t=arguments[0],e=t("div",{ref:"placeholder",key:"placeholder",class:La("placeholder")});return t("div",{class:La(),attrs:{role:"feed","aria-busy":this.innerLoading}},["down"===this.direction?this.slots():e,this.genLoading(),this.genFinishedText(),this.genErrorText(),"up"===this.direction?this.slots():e])}}),Pa=n("S06l"),Aa=Object(a.b)("nav-bar"),Ia=Aa[0],Da=Aa[1],Ra=Ia({props:{title:String,fixed:Boolean,zIndex:[Number,String],leftText:String,rightText:String,leftArrow:Boolean,placeholder:Boolean,safeAreaInsetTop:Boolean,border:{type:Boolean,default:!0}},data:function(){return{height:null}},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.navBar.getBoundingClientRect().height)},methods:{genLeft:function(){var t=this.$createElement,e=this.slots("left");return e||[this.leftArrow&&t(rt,{class:Da("arrow"),attrs:{name:"arrow-left"}}),this.leftText&&t("span",{class:Da("text")},[this.leftText])]},genRight:function(){var t=this.$createElement,e=this.slots("right");return e||(this.rightText?t("span",{class:Da("text")},[this.rightText]):void 0)},genNavBar:function(){var t,e=this.$createElement;return e("div",{ref:"navBar",style:{zIndex:this.zIndex},class:[Da({fixed:this.fixed,"safe-area-inset-top":this.safeAreaInsetTop}),(t={},t[Et]=this.border,t)]},[e("div",{class:Da("content")},[this.hasLeft()&&e("div",{class:Da("left"),on:{click:this.onClickLeft}},[this.genLeft()]),e("div",{class:[Da("title"),"van-ellipsis"]},[this.slots("title")||this.title]),this.hasRight()&&e("div",{class:Da("right"),on:{click:this.onClickRight}},[this.genRight()])])])},hasLeft:function(){return this.leftArrow||this.leftText||this.slots("left")},hasRight:function(){return this.rightText||this.slots("right")},onClickLeft:function(t){this.$emit("click-left",t)},onClickRight:function(t){this.$emit("click-right",t)}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:Da("placeholder"),style:{height:this.height+"px"}},[this.genNavBar()]):this.genNavBar()}}),Ba=Object(a.b)("notice-bar"),Na=Ba[0],ja=Ba[1],za=Na({mixins:[$(function(t){t(window,"pageshow",this.start)})],props:{text:String,mode:String,color:String,leftIcon:String,wrapable:Boolean,background:String,scrollable:{type:Boolean,default:null},delay:{type:[Number,String],default:1},speed:{type:[Number,String],default:50}},data:function(){return{show:!0,offset:0,duration:0,wrapWidth:0,contentWidth:0}},watch:{scrollable:"start",text:{handler:"start",immediate:!0}},activated:function(){this.start()},methods:{onClickIcon:function(t){"closeable"===this.mode&&(this.show=!1,this.$emit("close",t))},onTransitionEnd:function(){var t=this;this.offset=this.wrapWidth,this.duration=0,Object(Fn.c)(function(){Object(Fn.b)(function(){t.offset=-t.contentWidth,t.duration=(t.contentWidth+t.wrapWidth)/t.speed,t.$emit("replay")})})},reset:function(){this.offset=0,this.duration=0,this.wrapWidth=0,this.contentWidth=0},start:function(){var t=this,e=Object(a.e)(this.delay)?1e3*this.delay:0;this.reset(),clearTimeout(this.startTimer),this.startTimer=setTimeout(function(){var e=t.$refs,n=e.wrap,i=e.content;if(n&&i&&!1!==t.scrollable){var r=n.getBoundingClientRect().width,o=i.getBoundingClientRect().width;(t.scrollable||o>r)&&Object(Fn.b)(function(){t.offset=-o,t.duration=o/t.speed,t.wrapWidth=r,t.contentWidth=o})}},e)}},render:function(){var t,e=this,n=arguments[0],i=this.slots,r=this.mode,o=this.leftIcon,a=this.onClickIcon,s={color:this.color,background:this.background},c={transform:this.offset?"translateX("+this.offset+"px)":"",transitionDuration:this.duration+"s"};return n("div",{attrs:{role:"alert"},directives:[{name:"show",value:this.show}],class:ja({wrapable:this.wrapable}),style:s,on:{click:function(t){e.$emit("click",t)}}},[(t=i("left-icon"),t||(o?n(rt,{class:ja("left-icon"),attrs:{name:o}}):void 0)),n("div",{ref:"wrap",class:ja("wrap"),attrs:{role:"marquee"}},[n("div",{ref:"content",class:[ja("content"),{"van-ellipsis":!1===this.scrollable&&!this.wrapable}],style:c,on:{transitionend:this.onTransitionEnd}},[this.slots()||this.text])]),function(){var t,e=i("right-icon");return e||("closeable"===r?t="cross":"link"===r&&(t="arrow"),t?n(rt,{class:ja("right-icon"),attrs:{name:t},on:{click:a}}):void 0)}()])}}),Fa=Object(a.b)("notify"),Va=Fa[0],Ua=Fa[1];function Ga(t,e,n,i){var r={color:e.color,background:e.background};return t(ct,o()([{attrs:{value:e.value,position:"top",overlay:!1,duration:.2,lockScroll:!1},style:r,class:[Ua([e.type]),e.className]},h(i,!0)]),[(null==n.default?void 0:n.default())||e.message])}Ga.props=i({},W,{color:String,message:[Number,String],duration:[Number,String],className:null,background:String,getContainer:[String,Function],type:{type:String,default:"danger"}});var $a,Ha,Wa=Va(Ga);function qa(t){var e;if(!a.i)return Ha||(Ha=f(Wa,{on:{click:function(t){Ha.onClick&&Ha.onClick(t)},close:function(){Ha.onClose&&Ha.onClose()},opened:function(){Ha.onOpened&&Ha.onOpened()}}})),t=i({},qa.currentOptions,(e=t,Object(a.g)(e)?e:{message:e})),i(Ha,t),clearTimeout($a),t.duration&&t.duration>0&&($a=setTimeout(qa.clear,t.duration)),Ha}qa.clear=function(){Ha&&(Ha.value=!1)},qa.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null},qa.setDefaultOptions=function(t){i(qa.currentOptions,t)},qa.resetDefaultOptions=function(){qa.currentOptions={type:"danger",value:!0,message:"",color:void 0,background:void 0,duration:3e3,className:"",onClose:null,onClick:null,onOpened:null}},qa.install=function(){c.a.use(Wa)},qa.Component=Wa,c.a.prototype.$notify=qa;var Xa=qa,Ya={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 32 22",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M28.016 0A3.991 3.991 0 0132 3.987v14.026c0 2.2-1.787 3.987-3.98 3.987H10.382c-.509 0-.996-.206-1.374-.585L.89 13.09C.33 12.62 0 11.84 0 11.006c0-.86.325-1.62.887-2.08L9.01.585A1.936 1.936 0 0110.383 0zm0 1.947H10.368L2.24 10.28c-.224.226-.312.432-.312.73 0 .287.094.51.312.729l8.128 8.333h17.648a2.041 2.041 0 002.037-2.04V3.987c0-1.127-.915-2.04-2.037-2.04zM23.028 6a.96.96 0 01.678.292.95.95 0 01-.003 1.377l-3.342 3.348 3.326 3.333c.189.188.292.43.292.679 0 .248-.103.49-.292.679a.96.96 0 01-.678.292.959.959 0 01-.677-.292L18.99 12.36l-3.343 3.345a.96.96 0 01-.677.292.96.96 0 01-.678-.292.962.962 0 01-.292-.68c0-.248.104-.49.292-.679l3.342-3.348-3.342-3.348A.963.963 0 0114 6.971c0-.248.104-.49.292-.679A.96.96 0 0114.97 6a.96.96 0 01.677.292l3.358 3.348 3.345-3.348A.96.96 0 0123.028 6z",fill:"currentColor"}})])}},Ka={render:function(){var t=arguments[0];return t("svg",{attrs:{viewBox:"0 0 30 24",xmlns:"http://www.w3.org/2000/svg"}},[t("path",{attrs:{d:"M25.877 12.843h-1.502c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.5c.187 0 .187 0 .187-.188v-1.511c0-.19 0-.191-.185-.191zM17.999 10.2c0 .188 0 .188.188.188h1.687c.188 0 .188 0 .188-.188V8.688c0-.187.004-.187-.186-.19h-1.69c-.187 0-.187 0-.187.19V10.2zm2.25-3.967h1.5c.188 0 .188 0 .188-.188v-1.7c0-.19 0-.19-.188-.19h-1.5c-.189 0-.189 0-.189.19v1.7c0 .188 0 .188.19.188zm2.063 4.157h3.563c.187 0 .187 0 .187-.189V4.346c0-.19.004-.19-.185-.19h-1.69c-.187 0-.187 0-.187.188v4.155h-1.688c-.187 0-.187 0-.187.189v1.514c0 .19 0 .19.187.19zM14.812 24l2.812-3.4H12l2.813 3.4zm-9-11.157H4.31c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h1.502c.187 0 .187 0 .187-.188v-1.511c0-.19.01-.191-.189-.191zm15.937 0H8.25c-.188 0-.188 0-.188.19v1.512c0 .188 0 .188.188.188h13.5c.188 0 .188 0 .188-.188v-1.511c0-.19 0-.191-.188-.191zm-11.438-2.454h1.5c.188 0 .188 0 .188-.188V8.688c0-.187 0-.187-.188-.189h-1.5c-.187 0-.187 0-.187.189V10.2c0 .188 0 .188.187.188zM27.94 0c.563 0 .917.21 1.313.567.518.466.748.757.748 1.51v14.92c0 .567-.188 1.134-.562 1.512-.376.378-.938.566-1.313.566H2.063c-.563 0-.938-.188-1.313-.566-.562-.378-.75-.945-.75-1.511V2.078C0 1.51.188.944.562.567.938.189 1.5 0 1.875 0zm-.062 2H2v14.92h25.877V2zM5.81 4.157c.19 0 .19 0 .19.189v1.762c-.003.126-.024.126-.188.126H4.249c-.126-.003-.126-.023-.126-.188v-1.7c-.187-.19 0-.19.188-.19zm10.5 2.077h1.503c.187 0 .187 0 .187-.188v-1.7c0-.19 0-.19-.187-.19h-1.502c-.188 0-.188.001-.188.19v1.7c0 .188 0 .188.188.188zM7.875 8.5c.187 0 .187.002.187.189V10.2c0 .188 0 .188-.187.188H4.249c-.126-.002-.126-.023-.126-.188V8.625c.003-.126.024-.126.188-.126zm7.875 0c.19.002.19.002.19.189v1.575c-.003.126-.024.126-.19.126h-1.563c-.126-.002-.126-.023-.126-.188V8.625c.002-.126.023-.126.189-.126zm-6-4.342c.187 0 .187 0 .187.189v1.7c0 .188 0 .188-.187.188H8.187c-.126-.003-.126-.023-.126-.188V4.283c.003-.126.024-.126.188-.126zm3.94 0c.185 0 .372 0 .372.189v1.762c-.002.126-.023.126-.187.126h-1.75C12 6.231 12 6.211 12 6.046v-1.7c0-.19.187-.19.187-.19z",fill:"currentColor"}})])}},Za=Object(a.b)("key"),Ja=Za[0],Qa=Za[1],ts=Ja({mixins:[V],props:{type:String,text:[Number,String],color:String,wider:Boolean,large:Boolean,loading:Boolean},data:function(){return{active:!1}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{onTouchStart:function(t){t.stopPropagation(),this.touchStart(t),this.active=!0},onTouchMove:function(t){this.touchMove(t),this.direction&&(this.active=!1)},onTouchEnd:function(t){this.active&&(this.slots("default")||t.preventDefault(),this.active=!1,this.$emit("press",this.text,this.type))},genContent:function(){var t=this.$createElement,e="extra"===this.type,n="delete"===this.type,i=this.slots("default")||this.text;return this.loading?t(ft,{class:Qa("loading-icon")}):n?i||t(Ya,{class:Qa("delete-icon")}):e?i||t(Ka,{class:Qa("collapse-icon")}):i}},render:function(){var t=arguments[0];return t("div",{class:Qa("wrapper",{wider:this.wider})},[t("div",{attrs:{role:"button",tabindex:"0"},class:Qa([this.color,{large:this.large,active:this.active,delete:"delete"===this.type}])},[this.genContent()])])}}),es=Object(a.b)("number-keyboard"),ns=es[0],is=es[1],rs=ns({mixins:[U(),$(function(t){this.hideOnClickOutside&&t(document.body,"touchstart",this.onBlur)})],model:{event:"update:value"},props:{show:Boolean,title:String,zIndex:[Number,String],randomKeyOrder:Boolean,closeButtonText:String,deleteButtonText:String,closeButtonLoading:Boolean,theme:{type:String,default:"default"},value:{type:String,default:""},extraKey:{type:[String,Array],default:""},maxlength:{type:[Number,String],default:Number.MAX_VALUE},transition:{type:Boolean,default:!0},showDeleteKey:{type:Boolean,default:!0},hideOnClickOutside:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0}},watch:{show:function(t){this.transition||this.$emit(t?"show":"hide")}},computed:{keys:function(){return"custom"===this.theme?this.genCustomKeys():this.genDefaultKeys()}},methods:{genBasicKeys:function(){for(var t=[],e=1;e<=9;e++)t.push({text:e});return this.randomKeyOrder&&t.sort(function(){return Math.random()>.5?1:-1}),t},genDefaultKeys:function(){return[].concat(this.genBasicKeys(),[{text:this.extraKey,type:"extra"},{text:0},{text:this.showDeleteKey?this.deleteButtonText:"",type:this.showDeleteKey?"delete":""}])},genCustomKeys:function(){var t=this.genBasicKeys(),e=this.extraKey,n=Array.isArray(e)?e:[e];return 1===n.length?t.push({text:0,wider:!0},{text:n[0],type:"extra"}):2===n.length&&t.push({text:n[0],type:"extra"},{text:0},{text:n[1],type:"extra"}),t},onBlur:function(){this.show&&this.$emit("blur")},onClose:function(){this.$emit("close"),this.onBlur()},onAnimationEnd:function(){this.$emit(this.show?"show":"hide")},onPress:function(t,e){if(""!==t){var n=this.value;"delete"===e?(this.$emit("delete"),this.$emit("update:value",n.slice(0,n.length-1))):"close"===e?this.onClose():n.length<this.maxlength&&(this.$emit("input",t),this.$emit("update:value",n+t))}else"extra"===e&&this.onBlur()},genTitle:function(){var t=this.$createElement,e=this.title,n=this.theme,i=this.closeButtonText,r=this.slots("title-left"),o=i&&"default"===n;if(e||o||r)return t("div",{class:is("header")},[r&&t("span",{class:is("title-left")},[r]),e&&t("h2",{class:is("title")},[e]),o&&t("button",{attrs:{type:"button"},class:is("close"),on:{click:this.onClose}},[i])])},genKeys:function(){var t=this,e=this.$createElement;return this.keys.map(function(n){return e(ts,{key:n.text,attrs:{text:n.text,type:n.type,wider:n.wider,color:n.color},on:{press:t.onPress}},["delete"===n.type&&t.slots("delete"),"extra"===n.type&&t.slots("extra-key")])})},genSidebar:function(){var t=this.$createElement;if("custom"===this.theme)return t("div",{class:is("sidebar")},[this.showDeleteKey&&t(ts,{attrs:{large:!0,text:this.deleteButtonText,type:"delete"},on:{press:this.onPress}},[this.slots("delete")]),t(ts,{attrs:{large:!0,text:this.closeButtonText,type:"close",color:"blue",loading:this.closeButtonLoading},on:{press:this.onPress}})])}},render:function(){var t=arguments[0],e=this.genTitle();return t("transition",{attrs:{name:this.transition?"van-slide-up":""}},[t("div",{directives:[{name:"show",value:this.show}],style:{zIndex:this.zIndex},class:is({unfit:!this.safeAreaInsetBottom,"with-title":e}),on:{touchstart:b,animationend:this.onAnimationEnd,webkitAnimationEnd:this.onAnimationEnd}},[e,t("div",{class:is("body")},[t("div",{class:is("keys")},[this.genKeys()]),this.genSidebar()])])])}}),os=Object(a.b)("pagination"),as=os[0],ss=os[1],cs=os[2];function ls(t,e,n){return{number:t,text:e,active:n}}var us=as({props:{prevText:String,nextText:String,forceEllipses:Boolean,mode:{type:String,default:"multi"},value:{type:Number,default:0},pageCount:{type:[Number,String],default:0},totalItems:{type:[Number,String],default:0},itemsPerPage:{type:[Number,String],default:10},showPageSize:{type:[Number,String],default:5}},computed:{count:function(){var t=this.pageCount||Math.ceil(this.totalItems/this.itemsPerPage);return Math.max(1,t)},pages:function(){var t=[],e=this.count,n=+this.showPageSize;if("multi"!==this.mode)return t;var i=1,r=e,o=n<e;o&&(r=(i=Math.max(this.value-Math.floor(n/2),1))+n-1)>e&&(i=(r=e)-n+1);for(var a=i;a<=r;a++){var s=ls(a,a,a===this.value);t.push(s)}if(o&&n>0&&this.forceEllipses){if(i>1){var c=ls(i-1,"...",!1);t.unshift(c)}if(r<e){var l=ls(r+1,"...",!1);t.push(l)}}return t}},watch:{value:{handler:function(t){this.select(t||this.value)},immediate:!0}},methods:{select:function(t,e){t=Math.min(this.count,Math.max(1,t)),this.value!==t&&(this.$emit("input",t),e&&this.$emit("change",t))}},render:function(){var t,e,n=this,i=arguments[0],r=this.value,o="multi"!==this.mode,a=function(t){return function(){n.select(t,!0)}};return i("ul",{class:ss({simple:o})},[i("li",{class:[ss("item",{disabled:1===r}),ss("prev"),wt],on:{click:a(r-1)}},[(null!=(t=this.slots("prev-text"))?t:this.prevText)||cs("prev")]),this.pages.map(function(t){var e;return i("li",{class:[ss("item",{active:t.active}),ss("page"),wt],on:{click:a(t.number)}},[null!=(e=n.slots("page",t))?e:t.text])}),o&&i("li",{class:ss("page-desc")},[this.slots("pageDesc")||r+"/"+this.count]),i("li",{class:[ss("item",{disabled:r===this.count}),ss("next"),wt],on:{click:a(r+1)}},[(null!=(e=this.slots("next-text"))?e:this.nextText)||cs("next")])])}}),hs=Object(a.b)("panel"),ds=hs[0],fs=hs[1];function ps(t,e,n,i){return t(Gi,o()([{class:fs(),scopedSlots:{default:function(){return[n.header?n.header():t(ne,{attrs:{icon:e.icon,label:e.desc,title:e.title,value:e.status,valueClass:fs("header-value")},class:fs("header")}),t("div",{class:fs("content")},[n.default&&n.default()]),n.footer&&t("div",{class:[fs("footer"),St]},[n.footer()])]}}},h(i,!0)]))}ps.props={icon:String,desc:String,title:String,status:String};var ms=ds(ps),vs=Object(a.b)("password-input"),gs=vs[0],ys=vs[1];function bs(t,e,n,i){for(var r,s=e.mask,c=e.value,l=e.length,u=e.gutter,f=e.focused,p=e.errorInfo,m=p||e.info,v=[],g=0;g<l;g++){var y,b=c[g],x=0!==g&&!u,_=f&&g===c.length,w=void 0;0!==g&&u&&(w={marginLeft:Object(a.a)(u)}),v.push(t("li",{class:[(y={},y[Tt]=x,y),ys("item",{focus:_})],style:w},[s?t("i",{style:{visibility:b?"visible":"hidden"}}):b,_&&t("div",{class:ys("cursor")})]))}return t("div",{class:ys()},[t("ul",o()([{class:[ys("security"),(r={},r[Mt]=!u,r)],on:{touchstart:function(t){t.stopPropagation(),d(i,"focus",t)}}},h(i,!0)]),[v]),m&&t("div",{class:ys(p?"error-info":"info")},[m])])}bs.props={info:String,gutter:[Number,String],focused:Boolean,errorInfo:String,mask:{type:Boolean,default:!0},value:{type:String,default:""},length:{type:[Number,String],default:6}};var xs=gs(bs),_s=n("4B/U"),ws=Object(a.b)("popover"),Ss=ws[0],Ts=ws[1],Es=Ss({mixins:[Eo({event:"touchstart",method:"onClickOutside"})],props:{value:Boolean,trigger:String,overlay:Boolean,offset:{type:Array,default:function(){return[0,8]}},theme:{type:String,default:"light"},actions:{type:Array,default:function(){return[]}},placement:{type:String,default:"bottom"},getContainer:{type:[String,Function],default:"body"},closeOnClickAction:{type:Boolean,default:!0}},watch:{value:"updateLocation",placement:"updateLocation"},mounted:function(){this.updateLocation()},beforeDestroy:function(){this.popper&&(this.popper.destroy(),this.popper=null)},methods:{createPopper:function(){return Object(_s.a)(this.$refs.wrapper,this.$refs.popover.$el,{placement:this.placement,modifiers:[{name:"computeStyles",options:{adaptive:!1,gpuAcceleration:!1}},i({},_s.b,{options:{offset:this.offset}})]})},updateLocation:function(){var t=this;this.$nextTick(function(){t.value&&(t.popper?t.popper.setOptions({placement:t.placement}):t.popper=t.createPopper())})},renderAction:function(t,e){var n=this,i=this.$createElement,r=t.icon,o=t.text,a=t.disabled,s=t.className;return i("div",{attrs:{role:"menuitem"},class:[Ts("action",{disabled:a,"with-icon":r}),s],on:{click:function(){return n.onClickAction(t,e)}}},[r&&i(rt,{attrs:{name:r},class:Ts("action-icon")}),i("div",{class:[Ts("action-text"),Et]},[o])])},onToggle:function(t){this.$emit("input",t)},onClickWrapper:function(){"click"===this.trigger&&this.onToggle(!this.value)},onTouchstart:function(t){t.stopPropagation(),this.$emit("touchstart",t)},onClickAction:function(t,e){t.disabled||(this.$emit("select",t,e),this.closeOnClickAction&&this.$emit("input",!1))},onClickOutside:function(){this.$emit("input",!1)},onOpen:function(){this.$emit("open")},onOpened:function(){this.$emit("opened")},onClose:function(){this.$emit("close")},onClosed:function(){this.$emit("closed")}},render:function(){var t=arguments[0];return t("span",{ref:"wrapper",class:Ts("wrapper"),on:{click:this.onClickWrapper}},[t(ct,{ref:"popover",attrs:{value:this.value,overlay:this.overlay,position:null,transition:"van-popover-zoom",lockScroll:!1,getContainer:this.getContainer},class:Ts([this.theme]),on:{open:this.onOpen,close:this.onClose,input:this.onToggle,opened:this.onOpened,closed:this.onClosed},nativeOn:{touchstart:this.onTouchstart}},[t("div",{class:Ts("arrow")}),t("div",{class:Ts("content"),attrs:{role:"menu"}},[this.slots("default")||this.actions.map(this.renderAction)])]),this.slots("reference")])}}),Ms=Object(a.b)("progress"),Cs=Ms[0],Ls=Ms[1],Os=Cs({props:{color:String,inactive:Boolean,pivotText:String,textColor:String,pivotColor:String,trackColor:String,strokeWidth:[Number,String],percentage:{type:[Number,String],required:!0,validator:function(t){return t>=0&&t<=100}},showPivot:{type:Boolean,default:!0}},data:function(){return{pivotWidth:0,progressWidth:0}},mounted:function(){this.resize()},watch:{showPivot:"resize",pivotText:"resize"},methods:{resize:function(){var t=this;this.$nextTick(function(){t.progressWidth=t.$el.offsetWidth,t.pivotWidth=t.$refs.pivot?t.$refs.pivot.offsetWidth:0})}},render:function(){var t=arguments[0],e=this.pivotText,n=this.percentage,i=null!=e?e:n+"%",r=this.showPivot&&i,o=this.inactive?"#cacaca":this.color,s={color:this.textColor,left:(this.progressWidth-this.pivotWidth)*n/100+"px",background:this.pivotColor||o},c={background:o,width:this.progressWidth*n/100+"px"},l={background:this.trackColor,height:Object(a.a)(this.strokeWidth)};return t("div",{class:Ls(),style:l},[t("span",{class:Ls("portion"),style:c},[r&&t("span",{ref:"pivot",style:s,class:Ls("pivot")},[i])])])}}),ks=Object(a.b)("pull-refresh"),Ps=ks[0],As=ks[1],Is=ks[2],Ds=["pulling","loosing","success"],Rs=Ps({mixins:[V],props:{disabled:Boolean,successText:String,pullingText:String,loosingText:String,loadingText:String,value:{type:Boolean,required:!0},successDuration:{type:[Number,String],default:500},animationDuration:{type:[Number,String],default:300},headHeight:{type:[Number,String],default:50}},data:function(){return{status:"normal",distance:0,duration:0}},computed:{touchable:function(){return"loading"!==this.status&&"success"!==this.status&&!this.disabled},headStyle:function(){if(50!==this.headHeight)return{height:this.headHeight+"px"}}},watch:{value:function(t){this.duration=this.animationDuration,t?this.setStatus(+this.headHeight,!0):this.slots("success")||this.successText?this.showSuccessTip():this.setStatus(0,!1)}},mounted:function(){this.bindTouchEvent(this.$refs.track),this.scrollEl=D(this.$el)},methods:{checkPullStart:function(t){this.ceiling=0===R(this.scrollEl),this.ceiling&&(this.duration=0,this.touchStart(t))},onTouchStart:function(t){this.touchable&&this.checkPullStart(t)},onTouchMove:function(t){this.touchable&&(this.ceiling||this.checkPullStart(t),this.touchMove(t),this.ceiling&&this.deltaY>=0&&"vertical"===this.direction&&(x(t),this.setStatus(this.ease(this.deltaY))))},onTouchEnd:function(){var t=this;this.touchable&&this.ceiling&&this.deltaY&&(this.duration=this.animationDuration,"loosing"===this.status?(this.setStatus(+this.headHeight,!0),this.$emit("input",!0),this.$nextTick(function(){t.$emit("refresh")})):this.setStatus(0))},ease:function(t){var e=+this.headHeight;return t>e&&(t=t<2*e?e+(t-e)/2:1.5*e+(t-2*e)/4),Math.round(t)},setStatus:function(t,e){var n;n=e?"loading":0===t?"normal":t<this.headHeight?"pulling":"loosing",this.distance=t,n!==this.status&&(this.status=n)},genStatus:function(){var t=this.$createElement,e=this.status,n=this.distance,i=this.slots(e,{distance:n});if(i)return i;var r=[],o=this[e+"Text"]||Is(e);return-1!==Ds.indexOf(e)&&r.push(t("div",{class:As("text")},[o])),"loading"===e&&r.push(t(ft,{attrs:{size:"16"}},[o])),r},showSuccessTip:function(){var t=this;this.status="success",setTimeout(function(){t.setStatus(0)},this.successDuration)}},render:function(){var t=arguments[0],e={transitionDuration:this.duration+"ms",transform:this.distance?"translate3d(0,"+this.distance+"px, 0)":""};return t("div",{class:As()},[t("div",{ref:"track",class:As("track"),style:e},[t("div",{class:As("head"),style:this.headStyle},[this.genStatus()]),this.slots()])])}}),Bs=Object(a.b)("rate"),Ns=Bs[0],js=Bs[1];var zs=Ns({mixins:[V,tn],props:{size:[Number,String],color:String,gutter:[Number,String],readonly:Boolean,disabled:Boolean,allowHalf:Boolean,voidColor:String,iconPrefix:String,disabledColor:String,value:{type:Number,default:0},icon:{type:String,default:"star"},voidIcon:{type:String,default:"star-o"},count:{type:[Number,String],default:5},touchable:{type:Boolean,default:!0}},computed:{list:function(){for(var t,e,n,i=[],r=1;r<=this.count;r++)i.push((t=this.value,e=r,n=this.allowHalf,t>=e?"full":t+.5>=e&&n?"half":"void"));return i},sizeWithUnit:function(){return Object(a.a)(this.size)},gutterWithUnit:function(){return Object(a.a)(this.gutter)}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{select:function(t){this.disabled||this.readonly||t===this.value||(this.$emit("input",t),this.$emit("change",t))},onTouchStart:function(t){var e=this;if(!this.readonly&&!this.disabled&&this.touchable){this.touchStart(t);var n=[];this.$refs.items.map(function(t){return t.getBoundingClientRect()}).forEach(function(t,i){e.allowHalf?n.push({score:i+.5,left:t.left},{score:i+1,left:t.left+t.width/2}):n.push({score:i+1,left:t.left})}),this.ranges=n}},onTouchMove:function(t){if(!this.readonly&&!this.disabled&&this.touchable&&(this.touchMove(t),"horizontal"===this.direction)){x(t);var e=t.touches[0].clientX;this.select(this.getScoreByPosition(e))}},getScoreByPosition:function(t){for(var e=this.ranges.length-1;e>0;e--)if(t>this.ranges[e].left)return this.ranges[e].score;return this.allowHalf?.5:1},genStar:function(t,e){var n,i=this,r=this.$createElement,o=this.icon,a=this.color,s=this.count,c=this.voidIcon,l=this.disabled,u=this.voidColor,h=this.disabledColor,d=e+1,f="full"===t,p="void"===t;return this.gutterWithUnit&&d!==+s&&(n={paddingRight:this.gutterWithUnit}),r("div",{ref:"items",refInFor:!0,key:e,attrs:{role:"radio",tabindex:"0","aria-setsize":s,"aria-posinset":d,"aria-checked":String(!p)},style:n,class:js("item")},[r(rt,{attrs:{size:this.sizeWithUnit,name:f?o:c,color:l?h:f?a:u,classPrefix:this.iconPrefix,"data-score":d},class:js("icon",{disabled:l,full:f}),on:{click:function(){i.select(d)}}}),this.allowHalf&&r(rt,{attrs:{size:this.sizeWithUnit,name:p?c:o,color:l?h:p?u:a,classPrefix:this.iconPrefix,"data-score":d-.5},class:js("icon",["half",{disabled:l,full:!p}]),on:{click:function(){i.select(d-.5)}}})])}},render:function(){var t=this;return(0,arguments[0])("div",{class:js({readonly:this.readonly,disabled:this.disabled}),attrs:{tabindex:"0",role:"radiogroup"}},[this.list.map(function(e,n){return t.genStar(e,n)})])}}),Fs=Object(a.b)("row"),Vs=Fs[0],Us=Fs[1],Gs=Vs({mixins:[ke("vanRow")],props:{type:String,align:String,justify:String,tag:{type:String,default:"div"},gutter:{type:[Number,String],default:0}},computed:{spaces:function(){var t=Number(this.gutter);if(t){var e=[],n=[[]],i=0;return this.children.forEach(function(t,e){(i+=Number(t.span))>24?(n.push([e]),i-=24):n[n.length-1].push(e)}),n.forEach(function(n){var i=t*(n.length-1)/n.length;n.forEach(function(n,r){if(0===r)e.push({right:i});else{var o=t-e[n-1].right,a=i-o;e.push({left:o,right:a})}})}),e}}},methods:{onClick:function(t){this.$emit("click",t)}},render:function(){var t,e=arguments[0],n=this.align,i=this.justify,r="flex"===this.type;return e(this.tag,{class:Us((t={flex:r},t["align-"+n]=r&&n,t["justify-"+i]=r&&i,t)),on:{click:this.onClick}},[this.slots()])}}),$s=Object(a.b)("search"),Hs=$s[0],Ws=$s[1],qs=$s[2];function Xs(t,e,n,r){var a={attrs:r.data.attrs,on:i({},r.listeners,{keypress:function(t){13===t.keyCode&&(x(t),d(r,"search",e.value)),d(r,"keypress",t)}})},s=h(r);return s.attrs=void 0,t("div",o()([{class:Ws({"show-action":e.showAction}),style:{background:e.background}},s]),[null==n.left?void 0:n.left(),t("div",{class:Ws("content",e.shape)},[function(){if(n.label||e.label)return t("div",{class:Ws("label")},[n.label?n.label():e.label])}(),t(ce,o()([{attrs:{type:"search",border:!1,value:e.value,leftIcon:e.leftIcon,rightIcon:e.rightIcon,clearable:e.clearable,clearTrigger:e.clearTrigger},scopedSlots:{"left-icon":n["left-icon"],"right-icon":n["right-icon"]}},a]))]),function(){if(e.showAction)return t("div",{class:Ws("action"),attrs:{role:"button",tabindex:"0"},on:{click:function(){n.action||(d(r,"input",""),d(r,"cancel"))}}},[n.action?n.action():e.actionText||qs("cancel")])}()])}Xs.props={value:String,label:String,rightIcon:String,actionText:String,background:String,showAction:Boolean,clearTrigger:String,shape:{type:String,default:"square"},clearable:{type:Boolean,default:!0},leftIcon:{type:String,default:"search"}};var Ys=Hs(Xs),Ks=["qq","link","weibo","wechat","poster","qrcode","weapp-qrcode"],Zs=Object(a.b)("share-sheet"),Js=Zs[0],Qs=Zs[1],tc=Zs[2],ec=Js({props:i({},W,{title:String,cancelText:String,description:String,getContainer:[String,Function],options:{type:Array,default:function(){return[]}},overlay:{type:Boolean,default:!0},closeOnPopstate:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0}}),methods:{onCancel:function(){this.toggle(!1),this.$emit("cancel")},onSelect:function(t,e){this.$emit("select",t,e)},toggle:function(t){this.$emit("input",t)},getIconURL:function(t){return-1!==Ks.indexOf(t)?"https://img.yzcdn.cn/vant/share-icon-"+t+".png":t},genHeader:function(){var t=this.$createElement,e=this.slots("title")||this.title,n=this.slots("description")||this.description;if(e||n)return t("div",{class:Qs("header")},[e&&t("h2",{class:Qs("title")},[e]),n&&t("span",{class:Qs("description")},[n])])},genOptions:function(t,e){var n=this,i=this.$createElement;return i("div",{class:Qs("options",{border:e})},[t.map(function(t,e){return i("div",{attrs:{role:"button",tabindex:"0"},class:[Qs("option"),t.className],on:{click:function(){n.onSelect(t,e)}}},[i("img",{attrs:{src:n.getIconURL(t.icon)},class:Qs("icon")}),t.name&&i("span",{class:Qs("name")},[t.name]),t.description&&i("span",{class:Qs("option-description")},[t.description])])})])},genRows:function(){var t=this,e=this.options;return Array.isArray(e[0])?e.map(function(e,n){return t.genOptions(e,0!==n)}):this.genOptions(e)},genCancelText:function(){var t,e=this.$createElement,n=null!=(t=this.cancelText)?t:tc("cancel");if(n)return e("button",{attrs:{type:"button"},class:Qs("cancel"),on:{click:this.onCancel}},[n])},onClickOverlay:function(){this.$emit("click-overlay")}},render:function(){return(0,arguments[0])(ct,{attrs:{round:!0,value:this.value,position:"bottom",overlay:this.overlay,duration:this.duration,lazyRender:this.lazyRender,lockScroll:this.lockScroll,getContainer:this.getContainer,closeOnPopstate:this.closeOnPopstate,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:Qs(),on:{input:this.toggle,"click-overlay":this.onClickOverlay}},[this.genHeader(),this.genRows(),this.genCancelText()])}}),nc=Object(a.b)("sidebar"),ic=nc[0],rc=nc[1],oc=ic({mixins:[ke("vanSidebar")],model:{prop:"activeKey"},props:{activeKey:{type:[Number,String],default:0}},data:function(){return{index:+this.activeKey}},watch:{activeKey:function(){this.setIndex(+this.activeKey)}},methods:{setIndex:function(t){t!==this.index&&(this.index=t,this.$emit("change",t))}},render:function(){return(0,arguments[0])("div",{class:rc()},[this.slots()])}}),ac=Object(a.b)("sidebar-item"),sc=ac[0],cc=ac[1],lc=sc({mixins:[Oe("vanSidebar")],props:i({},Kt,{dot:Boolean,info:[Number,String],badge:[Number,String],title:String,disabled:Boolean}),computed:{select:function(){return this.index===+this.parent.activeKey}},methods:{onClick:function(){this.disabled||(this.$emit("click",this.index),this.parent.$emit("input",this.index),this.parent.setIndex(this.index),Xt(this.$router,this))}},render:function(){var t,e,n=arguments[0];return n("a",{class:cc({select:this.select,disabled:this.disabled}),on:{click:this.onClick}},[n("div",{class:cc("text")},[null!=(t=this.slots("title"))?t:this.title,n(J,{attrs:{dot:this.dot,info:null!=(e=this.badge)?e:this.info},class:cc("info")})])])}}),uc=Object(a.b)("skeleton"),hc=uc[0],dc=uc[1],fc="100%",pc="60%";function mc(t,e,n,i){if(!e.loading)return n.default&&n.default();return t("div",o()([{class:dc({animate:e.animate,round:e.round})},h(i)]),[function(){if(e.avatar){var n=Object(a.a)(e.avatarSize);return t("div",{class:dc("avatar",e.avatarShape),style:{width:n,height:n}})}}(),t("div",{class:dc("content")},[function(){if(e.title)return t("h3",{class:dc("title"),style:{width:Object(a.a)(e.titleWidth)}})}(),function(){for(var n,i=[],r=e.rowWidth,o=0;o<e.row;o++)i.push(t("div",{class:dc("row"),style:{width:Object(a.a)((n=o,r===fc&&n===+e.row-1?pc:Array.isArray(r)?r[n]:r))}}));return i}()])])}mc.props={title:Boolean,round:Boolean,avatar:Boolean,titleWidth:[Number,String],avatarSize:[Number,String],row:{type:[Number,String],default:0},loading:{type:Boolean,default:!0},animate:{type:Boolean,default:!0},avatarShape:{type:String,default:"round"},rowWidth:{type:[Number,String,Array],default:fc}};var vc=hc(mc),gc={QUOTA_LIMIT:0,STOCK_LIMIT:1},yc={LIMIT_TYPE:gc,UNSELECTED_SKU_VALUE_ID:""},bc=function(t){var e={};return t.forEach(function(t){e[t.k_s]=t.v}),e},xc=function(t,e){var n=Object.keys(e).filter(function(t){return""!==e[t]});return t.length===n.length},_c=function(t,e){return t.filter(function(t){return Object.keys(e).every(function(n){return String(t[n])===String(e[n])})})[0]},wc=function(t,e){var n=bc(t);return Object.keys(e).reduce(function(t,i){var r=n[i],o=e[i];if(""!==o){var a=r.filter(function(t){return t.id===o})[0];a&&t.push(a)}return t},[])},Sc=function(t,e,n){var r,o=n.key,a=n.valueId,s=i({},e,((r={})[o]=a,r)),c=Object.keys(s).filter(function(t){return""!==s[t]});return t.filter(function(t){return c.every(function(e){return String(s[e])===String(t[e])})}).reduce(function(t,e){return t+=e.stock_num},0)>0},Tc=function(t,e){var n=function(t){var e={};return t.forEach(function(t){var n={};t.v.forEach(function(t){n[t.id]=t}),e[t.k_id]=n}),e}(t);return Object.keys(e).reduce(function(t,r){return e[r].forEach(function(e){t.push(i({},n[r][e]))}),t},[])},Ec=function(t,e){var n=[];return(t||[]).forEach(function(t){if(e[t.k_id]&&e[t.k_id].length>0){var r=[];t.v.forEach(function(n){e[t.k_id].indexOf(n.id)>-1&&r.push(i({},n))}),n.push(i({},t,{v:r}))}}),n},Mc={normalizeSkuTree:bc,getSkuComb:_c,getSelectedSkuValues:wc,isAllSelected:xc,isSkuChoosable:Sc,getSelectedPropValues:Tc,getSelectedProperties:Ec},Cc=Object(a.b)("sku-header"),Lc=Cc[0],Oc=Cc[1];function kc(t,e,n,r){var a,s=e.sku,c=e.goods,l=e.skuEventBus,u=e.selectedSku,d=e.showHeaderImage,f=void 0===d||d,p=function(t,e){var n;return t.tree.some(function(t){var r=e[t.k_s];if(r&&t.v){var o=t.v.filter(function(t){return t.id===r})[0]||{},a=o.previewImgUrl||o.imgUrl||o.img_url;if(a)return n=i({},o,{ks:t.k_s,imgUrl:a}),!0}return!1}),n}(s,u),m=p?p.imgUrl:c.picture;return t("div",o()([{class:[Oc(),Et]},h(r)]),[f&&t(oi,{attrs:{fit:"cover",src:m},class:Oc("img-wrap"),on:{click:function(){l.$emit("sku:previewImage",p)}}},[null==(a=n["sku-header-image-extra"])?void 0:a.call(n)]),t("div",{class:Oc("goods-info")},[null==n.default?void 0:n.default()])])}kc.props={sku:Object,goods:Object,skuEventBus:Object,selectedSku:Object,showHeaderImage:Boolean};var Pc=Lc(kc),Ac=Object(a.b)("sku-header-item"),Ic=Ac[0],Dc=Ac[1];var Rc=Ic(function(t,e,n,i){return t("div",o()([{class:Dc()},h(i)]),[n.default&&n.default()])}),Bc=Object(a.b)("sku-row"),Nc=Bc[0],jc=Bc[1],zc=Bc[2],Fc=Nc({mixins:[ke("vanSkuRows"),$(function(t){this.scrollable&&this.$refs.scroller&&t(this.$refs.scroller,"scroll",this.onScroll)})],props:{skuRow:Object},data:function(){return{progress:0}},computed:{scrollable:function(){return this.skuRow.largeImageMode&&this.skuRow.v.length>6}},methods:{onScroll:function(){var t=this.$refs,e=t.scroller,n=t.row.offsetWidth-e.offsetWidth;this.progress=e.scrollLeft/n},genTitle:function(){var t=this.$createElement;return t("div",{class:jc("title")},[this.skuRow.k,this.skuRow.is_multiple&&t("span",{class:jc("title-multiple")},["（",zc("multiple"),"）"])])},genIndicator:function(){var t=this.$createElement;if(this.scrollable){var e={transform:"translate3d("+20*this.progress+"px, 0, 0)"};return t("div",{class:jc("indicator-wrapper")},[t("div",{class:jc("indicator")},[t("div",{class:jc("indicator-slider"),style:e})])])}},genContent:function(){var t=this.$createElement,e=this.slots();if(this.skuRow.largeImageMode){var n=[],i=[];return e.forEach(function(t,e){(Math.floor(e/3)%2==0?n:i).push(t)}),t("div",{class:jc("scroller"),ref:"scroller"},[t("div",{class:jc("row"),ref:"row"},[n]),i.length?t("div",{class:jc("row")},[i]):null])}return e},centerItem:function(t){if(this.skuRow.largeImageMode&&t){var e=this.children,n=void 0===e?[]:e,i=this.$refs,r=i.scroller,o=i.row,a=n.find(function(e){return+e.skuValue.id==+t});if(r&&o&&a&&a.$el){var s=a.$el,c=s.offsetLeft-(r.offsetWidth-s.offsetWidth)/2;r.scrollLeft=c}}}},render:function(){return(0,arguments[0])("div",{class:[jc(),Et]},[this.genTitle(),this.genContent(),this.genIndicator()])}}),Vc=(0,Object(a.b)("sku-row-item")[0])({mixins:[Oe("vanSkuRows")],props:{lazyLoad:Boolean,skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedSku:Object,largeImageMode:Boolean,disableSoldoutSku:Boolean,skuList:{type:Array,default:function(){return[]}}},computed:{imgUrl:function(){var t=this.skuValue.imgUrl||this.skuValue.img_url;return this.largeImageMode?t||"https://img.yzcdn.cn/upload_files/2020/06/24/FmKWDg0bN9rMcTp9ne8MXiQWGtLn.png":t},choosable:function(){return!this.disableSoldoutSku||Sc(this.skuList,this.selectedSku,{key:this.skuKeyStr,valueId:this.skuValue.id})}},methods:{onSelect:function(){this.choosable&&this.skuEventBus.$emit("sku:select",i({},this.skuValue,{skuKeyStr:this.skuKeyStr}))},onPreviewImg:function(t){t.stopPropagation();var e=this.skuValue,n=this.skuKeyStr;this.skuEventBus.$emit("sku:previewImage",i({},e,{ks:n,imgUrl:e.imgUrl||e.img_url}))},genImage:function(t){var e=this.$createElement;if(this.imgUrl)return e(oi,{attrs:{fit:"cover",src:this.imgUrl,lazyLoad:this.lazyLoad},class:t+"-img"})}},render:function(){var t=arguments[0],e=this.skuValue.id===this.selectedSku[this.skuKeyStr],n=this.largeImageMode?jc("image-item"):jc("item");return t("span",{class:[n,e?n+"--active":"",this.choosable?"":n+"--disabled"],on:{click:this.onSelect}},[this.genImage(n),t("div",{class:n+"-name"},[this.largeImageMode?t("span",{class:{"van-multi-ellipsis--l2":this.largeImageMode}},[this.skuValue.name]):this.skuValue.name]),this.largeImageMode&&t("img",{class:n+"-img-icon",attrs:{src:"https://img.yzcdn.cn/upload_files/2020/07/02/Fu4_ya0l0aAt4Mv4PL9jzPzfZnDX.png"},on:{click:this.onPreviewImg}})])}}),Uc=(0,Object(a.b)("sku-row-prop-item")[0])({props:{skuValue:Object,skuKeyStr:String,skuEventBus:Object,selectedProp:Object,multiple:Boolean},computed:{choosed:function(){var t=this.selectedProp,e=this.skuKeyStr,n=this.skuValue;return!(!t||!t[e])&&t[e].indexOf(n.id)>-1}},methods:{onSelect:function(){this.skuEventBus.$emit("sku:propSelect",i({},this.skuValue,{skuKeyStr:this.skuKeyStr,multiple:this.multiple}))}},render:function(){var t=arguments[0];return t("span",{class:["van-sku-row__item",{"van-sku-row__item--active":this.choosed}],on:{click:this.onSelect}},[t("span",{class:"van-sku-row__item-name"},[this.skuValue.name])])}}),Gc=Object(a.b)("stepper"),$c=Gc[0],Hc=Gc[1];function Wc(t,e){return String(t)===String(e)}var qc=$c({mixins:[tn],props:{value:null,theme:String,integer:Boolean,disabled:Boolean,allowEmpty:Boolean,inputWidth:[Number,String],buttonSize:[Number,String],asyncChange:Boolean,placeholder:String,disablePlus:Boolean,disableMinus:Boolean,disableInput:Boolean,decimalLength:[Number,String],name:{type:[Number,String],default:""},min:{type:[Number,String],default:1},max:{type:[Number,String],default:1/0},step:{type:[Number,String],default:1},defaultValue:{type:[Number,String],default:1},showPlus:{type:Boolean,default:!0},showMinus:{type:Boolean,default:!0},showInput:{type:Boolean,default:!0},longPress:{type:Boolean,default:!0}},data:function(){var t,e=null!=(t=this.value)?t:this.defaultValue,n=this.format(e);return Wc(n,this.value)||this.$emit("input",n),{currentValue:n}},computed:{minusDisabled:function(){return this.disabled||this.disableMinus||this.currentValue<=+this.min},plusDisabled:function(){return this.disabled||this.disablePlus||this.currentValue>=+this.max},inputStyle:function(){var t={};return this.inputWidth&&(t.width=Object(a.a)(this.inputWidth)),this.buttonSize&&(t.height=Object(a.a)(this.buttonSize)),t},buttonStyle:function(){if(this.buttonSize){var t=Object(a.a)(this.buttonSize);return{width:t,height:t}}}},watch:{max:"check",min:"check",integer:"check",decimalLength:"check",value:function(t){Wc(t,this.currentValue)||(this.currentValue=this.format(t))},currentValue:function(t){this.$emit("input",t),this.$emit("change",t,{name:this.name})}},methods:{check:function(){var t=this.format(this.currentValue);Wc(t,this.currentValue)||(this.currentValue=t)},formatNumber:function(t){return It(String(t),!this.integer)},format:function(t){return this.allowEmpty&&""===t?t:(t=""===(t=this.formatNumber(t))?0:+t,t=Object(Rn.a)(t)?this.min:t,t=Math.max(Math.min(this.max,t),this.min),Object(a.e)(this.decimalLength)&&(t=t.toFixed(this.decimalLength)),t)},onInput:function(t){var e=t.target.value,n=this.formatNumber(e);if(Object(a.e)(this.decimalLength)&&-1!==n.indexOf(".")){var i=n.split(".");n=i[0]+"."+i[1].slice(0,this.decimalLength)}Wc(e,n)||(t.target.value=n),n===String(+n)&&(n=+n),this.emitChange(n)},emitChange:function(t){this.asyncChange?(this.$emit("input",t),this.$emit("change",t,{name:this.name})):this.currentValue=t},onChange:function(){var t=this.type;if(this[t+"Disabled"])this.$emit("overlimit",t);else{var e,n,i,r="minus"===t?-this.step:+this.step,o=this.format((e=+this.currentValue,n=r,i=Math.pow(10,10),Math.round((e+n)*i)/i));this.emitChange(o),this.$emit(t)}},onFocus:function(t){this.disableInput&&this.$refs.input?this.$refs.input.blur():this.$emit("focus",t)},onBlur:function(t){var e=this.format(t.target.value);t.target.value=e,this.currentValue=e,this.$emit("blur",t),re()},longPressStep:function(){var t=this;this.longPressTimer=setTimeout(function(){t.onChange(),t.longPressStep(t.type)},200)},onTouchStart:function(){var t=this;this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress=!1,this.longPressTimer=setTimeout(function(){t.isLongPress=!0,t.onChange(),t.longPressStep()},600))},onTouchEnd:function(t){this.longPress&&(clearTimeout(this.longPressTimer),this.isLongPress&&x(t))},onMousedown:function(t){this.disableInput&&t.preventDefault()}},render:function(){var t=this,e=arguments[0],n=function(e){return{on:{click:function(n){n.preventDefault(),t.type=e,t.onChange()},touchstart:function(){t.type=e,t.onTouchStart()},touchend:t.onTouchEnd,touchcancel:t.onTouchEnd}}};return e("div",{class:Hc([this.theme])},[e("button",o()([{directives:[{name:"show",value:this.showMinus}],attrs:{type:"button"},style:this.buttonStyle,class:Hc("minus",{disabled:this.minusDisabled})},n("minus")])),e("input",{directives:[{name:"show",value:this.showInput}],ref:"input",attrs:{type:this.integer?"tel":"text",role:"spinbutton",disabled:this.disabled,readonly:this.disableInput,inputmode:this.integer?"numeric":"decimal",placeholder:this.placeholder,"aria-valuemax":this.max,"aria-valuemin":this.min,"aria-valuenow":this.currentValue},class:Hc("input"),domProps:{value:this.currentValue},style:this.inputStyle,on:{input:this.onInput,focus:this.onFocus,blur:this.onBlur,mousedown:this.onMousedown}}),e("button",o()([{directives:[{name:"show",value:this.showPlus}],attrs:{type:"button"},style:this.buttonStyle,class:Hc("plus",{disabled:this.plusDisabled})},n("plus")]))])}}),Xc=Object(a.b)("sku-stepper"),Yc=Xc[0],Kc=Xc[2],Zc=gc.QUOTA_LIMIT,Jc=gc.STOCK_LIMIT,Qc=Yc({props:{stock:Number,skuEventBus:Object,skuStockNum:Number,selectedNum:Number,stepperTitle:String,disableStepperInput:Boolean,customStepperConfig:Object,hideQuotaText:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1}},data:function(){return{currentNum:this.selectedNum,limitType:Jc}},watch:{currentNum:function(t){var e=parseInt(t,10);e>=this.stepperMinLimit&&e<=this.stepperLimit&&this.skuEventBus.$emit("sku:numChange",e)},stepperLimit:function(t){t<this.currentNum&&this.stepperMinLimit<=t&&(this.currentNum=t),this.checkState(this.stepperMinLimit,t)},stepperMinLimit:function(t){(t>this.currentNum||t>this.stepperLimit)&&(this.currentNum=t),this.checkState(t,this.stepperLimit)}},computed:{stepperLimit:function(){var t,e=this.quota-this.quotaUsed;return this.quota>0&&e<=this.stock?(t=e<0?0:e,this.limitType=Zc):(t=this.stock,this.limitType=Jc),t},stepperMinLimit:function(){return this.startSaleNum<1?1:this.startSaleNum},quotaText:function(){var t=this.customStepperConfig,e=t.quotaText;if(t.hideQuotaText)return"";var n="";if(e)n=e;else{var i=[];this.startSaleNum>1&&i.push(Kc("quotaStart",this.startSaleNum)),this.quota>0&&i.push(Kc("quotaLimit",this.quota)),n=i.join(Kc("comma"))}return n}},created:function(){this.checkState(this.stepperMinLimit,this.stepperLimit)},methods:{setCurrentNum:function(t){this.currentNum=t,this.checkState(this.stepperMinLimit,this.stepperLimit)},onOverLimit:function(t){this.skuEventBus.$emit("sku:overLimit",{action:t,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})},onChange:function(t){var e=parseInt(t,10),n=this.customStepperConfig.handleStepperChange;n&&n(e),this.$emit("change",e)},checkState:function(t,e){this.currentNum<t||t>e?this.currentNum=t:this.currentNum>e&&(this.currentNum=e),this.skuEventBus.$emit("sku:stepperState",{valid:t<=e,min:t,max:e,limitType:this.limitType,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum})}},render:function(){var t=this,e=arguments[0];return e("div",{class:"van-sku-stepper-stock"},[e("div",{class:"van-sku__stepper-title"},[this.stepperTitle||Kc("num")]),e(qc,{attrs:{integer:!0,min:this.stepperMinLimit,max:this.stepperLimit,disableInput:this.disableStepperInput},class:"van-sku__stepper",on:{overlimit:this.onOverLimit,change:this.onChange},model:{value:t.currentNum,callback:function(e){t.currentNum=e}}}),!this.hideQuotaText&&this.quotaText&&e("span",{class:"van-sku__stepper-quota"},["(",this.quotaText,")"])])}});function tl(t){return/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([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])))$/i.test(t)}function el(t){return Array.isArray(t)?t:[t]}function nl(t,e){return new Promise(function(n){if("file"!==e){var i=new FileReader;i.onload=function(t){n(t.target.result)},"dataUrl"===e?i.readAsDataURL(t):"text"===e&&i.readAsText(t)}else n()})}var il=/\.(jpeg|jpg|gif|png|svg|webp|jfif|bmp|dpg)/i;function rl(t){return!!t.isImage||(t.file&&t.file.type?0===t.file.type.indexOf("image"):t.url?(e=t.url,il.test(e)):!!t.content&&0===t.content.indexOf("data:image"));var e}var ol=Object(a.b)("uploader"),al=ol[0],sl=ol[1],cl=al({inheritAttrs:!1,mixins:[tn],model:{prop:"fileList"},props:{disabled:Boolean,lazyLoad:Boolean,uploadText:String,afterRead:Function,beforeRead:Function,beforeDelete:Function,previewSize:[Number,String],previewOptions:Object,name:{type:[Number,String],default:""},accept:{type:String,default:"image/*"},fileList:{type:Array,default:function(){return[]}},maxSize:{type:[Number,String],default:Number.MAX_VALUE},maxCount:{type:[Number,String],default:Number.MAX_VALUE},deletable:{type:Boolean,default:!0},showUpload:{type:Boolean,default:!0},previewImage:{type:Boolean,default:!0},previewFullImage:{type:Boolean,default:!0},imageFit:{type:String,default:"cover"},resultType:{type:String,default:"dataUrl"},uploadIcon:{type:String,default:"photograph"}},computed:{previewSizeWithUnit:function(){return Object(a.a)(this.previewSize)},value:function(){return this.fileList}},methods:{getDetail:function(t){return void 0===t&&(t=this.fileList.length),{name:this.name,index:t}},onChange:function(t){var e=this,n=t.target.files;if(!this.disabled&&n.length){if(n=1===n.length?n[0]:[].slice.call(n),this.beforeRead){var i=this.beforeRead(n,this.getDetail());if(!i)return void this.resetInput();if(Object(a.h)(i))return void i.then(function(t){t?e.readFile(t):e.readFile(n)}).catch(this.resetInput)}this.readFile(n)}},readFile:function(t){var e=this,n=function(t,e){return el(t).some(function(t){return t.size>e})}(t,this.maxSize);if(Array.isArray(t)){var i=this.maxCount-this.fileList.length;t.length>i&&(t=t.slice(0,i)),Promise.all(t.map(function(t){return nl(t,e.resultType)})).then(function(i){var r=t.map(function(t,e){var n={file:t,status:"",message:""};return i[e]&&(n.content=i[e]),n});e.onAfterRead(r,n)})}else nl(t,this.resultType).then(function(i){var r={file:t,status:"",message:""};i&&(r.content=i),e.onAfterRead(r,n)})},onAfterRead:function(t,e){var n=this;this.resetInput();var i=t;if(e){var r=t;Array.isArray(t)?(r=[],i=[],t.forEach(function(t){t.file&&(t.file.size>n.maxSize?r.push(t):i.push(t))})):i=null,this.$emit("oversize",r,this.getDetail())}(Array.isArray(i)?Boolean(i.length):Boolean(i))&&(this.$emit("input",[].concat(this.fileList,el(i))),this.afterRead&&this.afterRead(i,this.getDetail()))},onDelete:function(t,e){var n,i=this,r=null!=(n=t.beforeDelete)?n:this.beforeDelete;if(r){var o=r(t,this.getDetail(e));if(!o)return;if(Object(a.h)(o))return void o.then(function(){i.deleteFile(t,e)}).catch(a.j)}this.deleteFile(t,e)},deleteFile:function(t,e){var n=this.fileList.slice(0);n.splice(e,1),this.$emit("input",n),this.$emit("delete",t,this.getDetail(e))},resetInput:function(){this.$refs.input&&(this.$refs.input.value="")},onPreviewImage:function(t){var e=this;if(this.previewFullImage){var n=this.fileList.filter(function(t){return rl(t)}),r=n.map(function(t){return t.content||t.url});this.imagePreview=ma(i({images:r,startPosition:n.indexOf(t),onClose:function(){e.$emit("close-preview")}},this.previewOptions))}},closeImagePreview:function(){this.imagePreview&&this.imagePreview.close()},chooseFile:function(){this.disabled||this.$refs.input&&this.$refs.input.click()},genPreviewMask:function(t){var e=this.$createElement,n=t.status,i=t.message;if("uploading"===n||"failed"===n){var r="failed"===n?e(rt,{attrs:{name:"close"},class:sl("mask-icon")}):e(ft,{class:sl("loading")}),o=Object(a.e)(i)&&""!==i;return e("div",{class:sl("mask")},[r,o&&e("div",{class:sl("mask-message")},[i])])}},genPreviewItem:function(t,e){var n,r,o,a=this,s=this.$createElement,c=null!=(n=t.deletable)?n:this.deletable,l="uploading"!==t.status&&c&&s("div",{class:sl("preview-delete"),on:{click:function(n){n.stopPropagation(),a.onDelete(t,e)}}},[s(rt,{attrs:{name:"cross"},class:sl("preview-delete-icon")})]),u=this.slots("preview-cover",i({index:e},t)),h=u&&s("div",{class:sl("preview-cover")},[u]),d=null!=(r=t.previewSize)?r:this.previewSize,f=null!=(o=t.imageFit)?o:this.imageFit,p=rl(t)?s(oi,{attrs:{fit:f,src:t.content||t.url,width:d,height:d,lazyLoad:this.lazyLoad},class:sl("preview-image"),on:{click:function(){a.onPreviewImage(t)}}},[h]):s("div",{class:sl("file"),style:{width:this.previewSizeWithUnit,height:this.previewSizeWithUnit}},[s(rt,{class:sl("file-icon"),attrs:{name:"description"}}),s("div",{class:[sl("file-name"),"van-ellipsis"]},[t.file?t.file.name:t.url]),h]);return s("div",{class:sl("preview"),on:{click:function(){a.$emit("click-preview",t,a.getDetail(e))}}},[p,this.genPreviewMask(t),l])},genPreviewList:function(){if(this.previewImage)return this.fileList.map(this.genPreviewItem)},genUpload:function(){var t=this.$createElement;if(!(this.fileList.length>=this.maxCount)&&this.showUpload){var e,n=this.slots(),r=t("input",{attrs:i({},this.$attrs,{type:"file",accept:this.accept,disabled:this.disabled}),ref:"input",class:sl("input"),on:{change:this.onChange}});if(n)return t("div",{class:sl("input-wrapper")},[n,r]);if(this.previewSize){var o=this.previewSizeWithUnit;e={width:o,height:o}}return t("div",{class:sl("upload"),style:e},[t(rt,{attrs:{name:this.uploadIcon},class:sl("upload-icon")}),this.uploadText&&t("span",{class:sl("upload-text")},[this.uploadText]),r])}}},render:function(){var t=arguments[0];return t("div",{class:sl()},[t("div",{class:sl("wrapper",{disabled:this.disabled})},[this.genPreviewList(),this.genUpload()])])}}),ll=Object(a.b)("sku-img-uploader"),ul=ll[0],hl=ll[2],dl=ul({props:{value:String,uploadImg:Function,maxSize:{type:Number,default:6}},data:function(){return{fileList:[]}},watch:{value:function(t){this.fileList=t?[{url:t,isImage:!0}]:[]}},methods:{afterReadFile:function(t){var e=this;t.status="uploading",t.message=hl("uploading"),this.uploadImg(t.file,t.content).then(function(n){t.status="done",e.$emit("input",n)}).catch(function(){t.status="failed",t.message=hl("fail")})},onOversize:function(){this.$toast(hl("oversize",this.maxSize))},onDelete:function(){this.$emit("input","")}},render:function(){var t=this;return(0,arguments[0])(cl,{attrs:{maxCount:1,afterRead:this.afterReadFile,maxSize:1024*this.maxSize*1024},on:{oversize:this.onOversize,delete:this.onDelete},model:{value:t.fileList,callback:function(e){t.fileList=e}}})}});var fl=Object(a.b)("sku-datetime-field"),pl=fl[0],ml=fl[2],vl=pl({props:{value:String,label:String,required:Boolean,placeholder:String,type:{type:String,default:"date"}},data:function(){return{showDatePicker:!1,currentDate:"time"===this.type?"":new Date,minDate:new Date((new Date).getFullYear()-60,0,1)}},watch:{value:function(t){switch(this.type){case"time":this.currentDate=t;break;case"date":case"datetime":this.currentDate=((e=t)?new Date(e.replace(/-/g,"/")):null)||new Date}var e}},computed:{title:function(){return ml("title."+this.type)}},methods:{onClick:function(){this.showDatePicker=!0},onConfirm:function(t){var e=t;"time"!==this.type&&(e=function(t,e){if(void 0===e&&(e="date"),!t)return"";var n=t.getFullYear(),i=t.getMonth()+1,r=t.getDate(),o=n+"-"+Object(Ir.b)(i)+"-"+Object(Ir.b)(r);if("datetime"===e){var a=t.getHours(),s=t.getMinutes();o+=" "+Object(Ir.b)(a)+":"+Object(Ir.b)(s)}return o}(t,this.type)),this.$emit("input",e),this.showDatePicker=!1},onCancel:function(){this.showDatePicker=!1},formatter:function(t,e){return""+e+ml("format."+t)}},render:function(){var t=this,e=arguments[0];return e(ce,{attrs:{readonly:!0,"is-link":!0,center:!0,value:this.value,label:this.label,required:this.required,placeholder:this.placeholder},on:{click:this.onClick}},[e(ct,{attrs:{round:!0,position:"bottom",getContainer:"body"},slot:"extra",model:{value:t.showDatePicker,callback:function(e){t.showDatePicker=e}}},[e(mo,{attrs:{type:this.type,title:this.title,value:this.currentDate,minDate:this.minDate,formatter:this.formatter},on:{cancel:this.onCancel,confirm:this.onConfirm}})])])}}),gl=Object(a.b)("sku-messages"),yl=gl[0],bl=gl[1],xl=gl[2],_l=yl({props:{messageConfig:Object,goodsId:[Number,String],messages:{type:Array,default:function(){return[]}}},data:function(){return{messageValues:this.resetMessageValues(this.messages)}},watch:{messages:function(t){this.messageValues=this.resetMessageValues(t)}},methods:{resetMessageValues:function(t){var e=this.messageConfig.initialMessages,n=void 0===e?{}:e;return(t||[]).map(function(t){return{value:n[t.name]||""}})},getType:function(t){return 1==+t.multiple?"textarea":"id_no"===t.type?"text":t.datetime>0?"datetime":t.type},getMessages:function(){var t={};return this.messageValues.forEach(function(e,n){t["message_"+n]=e.value}),t},getCartMessages:function(){var t=this,e={};return this.messageValues.forEach(function(n,i){var r=t.messages[i];e[r.name]=n.value}),e},getPlaceholder:function(t){var e=1==+t.multiple?"textarea":t.type,n=this.messageConfig.placeholderMap||{};return t.placeholder||n[e]||xl("placeholder."+e)},validateMessages:function(){for(var t=this.messageValues,e=0;e<t.length;e++){var n=t[e].value,i=this.messages[e];if(""===n){if("1"===String(i.required))return xl("image"===i.type?"upload":"fill")+i.name}else{if("tel"===i.type&&!Object(Rn.b)(n))return xl("invalid.tel");if("mobile"===i.type&&!/^\d{6,20}$/.test(n))return xl("invalid.mobile");if("email"===i.type&&!tl(n))return xl("invalid.email");if("id_no"===i.type&&(n.length<15||n.length>18))return xl("invalid.id_no")}}},getFormatter:function(t){return function(e){return"mobile"===t.type||"tel"===t.type?e.replace(/[^\d.]/g,""):e}},genMessage:function(t,e){var n=this,i=this.$createElement;return"image"===t.type?i(ne,{key:this.goodsId+"-"+e,attrs:{title:t.name,required:"1"===String(t.required),valueClass:bl("image-cell-value")},class:bl("image-cell")},[i(dl,{attrs:{maxSize:this.messageConfig.uploadMaxSize,uploadImg:this.messageConfig.uploadImg},model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}}),i("div",{class:bl("image-cell-label")},[xl("imageLabel")])]):["date","time"].indexOf(t.type)>-1?i(vl,{attrs:{label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t)},key:this.goodsId+"-"+e,model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}}):i(ce,{attrs:{maxlength:"200",center:!t.multiple,label:t.name,required:"1"===String(t.required),placeholder:this.getPlaceholder(t),type:this.getType(t),formatter:this.getFormatter(t)},key:this.goodsId+"-"+e,model:{value:n.messageValues[e].value,callback:function(t){n.$set(n.messageValues[e],"value",t)}}})}},render:function(){return(0,arguments[0])("div",{class:bl()},[this.messages.map(this.genMessage)])}}),wl=Object(a.b)("sku-actions"),Sl=wl[0],Tl=wl[1],El=wl[2];function Ml(t,e,n,i){var r=function(t){return function(){e.skuEventBus.$emit(t)}};return t("div",o()([{class:Tl()},h(i)]),[e.showAddCartBtn&&t(Ce,{attrs:{size:"large",type:"warning",text:e.addCartText||El("addCart")},on:{click:r("sku:addCart")}}),t(Ce,{attrs:{size:"large",type:"danger",text:e.buyText||El("buy")},on:{click:r("sku:buy")}})])}Ml.props={buyText:String,addCartText:String,skuEventBus:Object,showAddCartBtn:Boolean};var Cl=Sl(Ml),Ll=Object(a.b)("sku"),Ol=Ll[0],kl=Ll[1],Pl=Ll[2],Al=gc.QUOTA_LIMIT,Il=Ol({props:{sku:Object,goods:Object,value:Boolean,buyText:String,goodsId:[Number,String],priceTag:String,lazyLoad:Boolean,hideStock:Boolean,properties:Array,addCartText:String,stepperTitle:String,getContainer:[String,Function],hideQuotaText:Boolean,hideSelectedText:Boolean,resetStepperOnHide:Boolean,customSkuValidator:Function,disableStepperInput:Boolean,resetSelectedSkuOnHide:Boolean,quota:{type:Number,default:0},quotaUsed:{type:Number,default:0},startSaleNum:{type:Number,default:1},initialSku:{type:Object,default:function(){return{}}},stockThreshold:{type:Number,default:50},showSoldoutSku:{type:Boolean,default:!0},showAddCartBtn:{type:Boolean,default:!0},disableSoldoutSku:{type:Boolean,default:!0},customStepperConfig:{type:Object,default:function(){return{}}},showHeaderImage:{type:Boolean,default:!0},previewOnClickImage:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:!0},closeOnClickOverlay:{type:Boolean,default:!0},bodyOffsetTop:{type:Number,default:200},messageConfig:{type:Object,default:function(){return{initialMessages:{},placeholderMap:{},uploadImg:function(){return Promise.resolve()},uploadMaxSize:5}}}},data:function(){return{selectedSku:{},selectedProp:{},selectedNum:1,show:this.value}},watch:{show:function(t){this.$emit("input",t),t||(this.$emit("sku-close",{selectedSkuValues:this.selectedSkuValues,selectedNum:this.selectedNum,selectedSkuComb:this.selectedSkuComb}),this.resetStepperOnHide&&this.resetStepper(),this.resetSelectedSkuOnHide&&this.resetSelectedSku())},value:function(t){this.show=t},skuTree:"resetSelectedSku",initialSku:function(){this.resetStepper(),this.resetSelectedSku()}},computed:{skuGroupClass:function(){return["van-sku-group-container",{"van-sku-group-container--hide-soldout":!this.showSoldoutSku}]},bodyStyle:function(){if(!this.$isServer)return{maxHeight:window.innerHeight-this.bodyOffsetTop+"px"}},isSkuCombSelected:function(){var t=this;return!(this.hasSku&&!xc(this.skuTree,this.selectedSku))&&!this.propList.some(function(e){return(t.selectedProp[e.k_id]||[]).length<1})},isSkuEmpty:function(){return 0===Object.keys(this.sku).length},hasSku:function(){return!this.sku.none_sku},hasSkuOrAttr:function(){return this.hasSku||this.propList.length>0},selectedSkuComb:function(){var t=null;return this.isSkuCombSelected&&(t=this.hasSku?_c(this.skuList,this.selectedSku):{id:this.sku.collection_id,price:Math.round(100*this.sku.price),stock_num:this.sku.stock_num})&&(t.properties=Ec(this.propList,this.selectedProp),t.property_price=this.selectedPropValues.reduce(function(t,e){return t+(e.price||0)},0)),t},selectedSkuValues:function(){return wc(this.skuTree,this.selectedSku)},selectedPropValues:function(){return Tc(this.propList,this.selectedProp)},price:function(){return this.selectedSkuComb?((this.selectedSkuComb.price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.price},originPrice:function(){return this.selectedSkuComb&&this.selectedSkuComb.origin_price?((this.selectedSkuComb.origin_price+this.selectedSkuComb.property_price)/100).toFixed(2):this.sku.origin_price},skuTree:function(){return this.sku.tree||[]},skuList:function(){return this.sku.list||[]},propList:function(){return this.properties||[]},imageList:function(){var t=[this.goods.picture];return this.skuTree.length>0&&this.skuTree.forEach(function(e){e.v&&e.v.forEach(function(e){var n=e.previewImgUrl||e.imgUrl||e.img_url;n&&-1===t.indexOf(n)&&t.push(n)})}),t},stock:function(){var t=this.customStepperConfig.stockNum;return void 0!==t?t:this.selectedSkuComb?this.selectedSkuComb.stock_num:this.sku.stock_num},stockText:function(){var t=this.$createElement,e=this.customStepperConfig.stockFormatter;return e?e(this.stock):[Pl("stock")+" ",t("span",{class:kl("stock-num",{highlight:this.stock<this.stockThreshold})},[this.stock])," "+Pl("stockUnit")]},selectedText:function(){var t=this;if(this.selectedSkuComb){var e=this.selectedSkuValues.concat(this.selectedPropValues);return Pl("selected")+" "+e.map(function(t){return t.name}).join(" ")}var n=this.skuTree.filter(function(e){return""===t.selectedSku[e.k_s]}).map(function(t){return t.k}),i=this.propList.filter(function(e){return(t.selectedProp[e.k_id]||[]).length<1}).map(function(t){return t.k});return Pl("select")+" "+n.concat(i).join(" ")}},created:function(){var t=new c.a;this.skuEventBus=t,t.$on("sku:select",this.onSelect),t.$on("sku:propSelect",this.onPropSelect),t.$on("sku:numChange",this.onNumChange),t.$on("sku:previewImage",this.onPreviewImage),t.$on("sku:overLimit",this.onOverLimit),t.$on("sku:stepperState",this.onStepperState),t.$on("sku:addCart",this.onAddCart),t.$on("sku:buy",this.onBuy),this.resetStepper(),this.resetSelectedSku(),this.$emit("after-sku-create",t)},methods:{resetStepper:function(){var t=this.$refs.skuStepper,e=this.initialSku.selectedNum,n=null!=e?e:this.startSaleNum;this.stepperError=null,t?t.setCurrentNum(n):this.selectedNum=n},resetSelectedSku:function(){var t=this;this.selectedSku={},this.skuTree.forEach(function(e){t.selectedSku[e.k_s]=""}),this.skuTree.forEach(function(e){var n=e.k_s,i=1===e.v.length?e.v[0].id:t.initialSku[n];i&&Sc(t.skuList,t.selectedSku,{key:n,valueId:i})&&(t.selectedSku[n]=i)});var e=this.selectedSkuValues;e.length>0&&this.$nextTick(function(){t.$emit("sku-selected",{skuValue:e[e.length-1],selectedSku:t.selectedSku,selectedSkuComb:t.selectedSkuComb})}),this.selectedProp={};var n=this.initialSku.selectedProp,i=void 0===n?{}:n;this.propList.forEach(function(e){e.v&&1===e.v.length?t.selectedProp[e.k_id]=[e.v[0].id]:i[e.k_id]&&(t.selectedProp[e.k_id]=i[e.k_id])});var r=this.selectedPropValues;r.length>0&&this.$emit("sku-prop-selected",{propValue:r[r.length-1],selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.$emit("sku-reset",{selectedSku:this.selectedSku,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb}),this.centerInitialSku()},getSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getMessages():{}},getSkuCartMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.getCartMessages():{}},validateSkuMessages:function(){return this.$refs.skuMessages?this.$refs.skuMessages.validateMessages():""},validateSku:function(){if(0===this.selectedNum)return Pl("unavailable");if(this.isSkuCombSelected)return this.validateSkuMessages();if(this.customSkuValidator){var t=this.customSkuValidator(this);if(t)return t}return Pl("selectSku")},onSelect:function(t){var e,n;this.selectedSku=this.selectedSku[t.skuKeyStr]===t.id?i({},this.selectedSku,((e={})[t.skuKeyStr]="",e)):i({},this.selectedSku,((n={})[t.skuKeyStr]=t.id,n)),this.$emit("sku-selected",{skuValue:t,selectedSku:this.selectedSku,selectedSkuComb:this.selectedSkuComb})},onPropSelect:function(t){var e,n=this.selectedProp[t.skuKeyStr]||[],r=n.indexOf(t.id);r>-1?n.splice(r,1):t.multiple?n.push(t.id):n.splice(0,1,t.id),this.selectedProp=i({},this.selectedProp,((e={})[t.skuKeyStr]=n,e)),this.$emit("sku-prop-selected",{propValue:t,selectedProp:this.selectedProp,selectedSkuComb:this.selectedSkuComb})},onNumChange:function(t){this.selectedNum=t},onPreviewImage:function(t){var e=this,n=0,r=this.imageList[0];t&&t.imgUrl&&(this.imageList.some(function(e,i){return e===t.imgUrl&&(n=i,!0)}),r=t.imgUrl);var o=i({},t,{index:n,imageList:this.imageList,indexImage:r});this.$emit("open-preview",o),this.previewOnClickImage&&ma({images:this.imageList,startPosition:n,onClose:function(){e.$emit("close-preview",o)}})},onOverLimit:function(t){var e=t.action,n=t.limitType,i=t.quota,r=t.quotaUsed,o=this.customStepperConfig.handleOverLimit;o?o(t):"minus"===e?this.startSaleNum>1?we(Pl("minusStartTip",this.startSaleNum)):we(Pl("minusTip")):"plus"===e&&we(n===Al?r>0?Pl("quotaUsedTip",i,r):Pl("quotaTip",i):Pl("soldout"))},onStepperState:function(t){this.stepperError=t.valid?null:i({},t,{action:"plus"})},onAddCart:function(){this.onBuyOrAddCart("add-cart")},onBuy:function(){this.onBuyOrAddCart("buy-clicked")},onBuyOrAddCart:function(t){if(this.stepperError)return this.onOverLimit(this.stepperError);var e=this.validateSku();e?we(e):this.$emit(t,this.getSkuData())},getSkuData:function(){return{goodsId:this.goodsId,messages:this.getSkuMessages(),selectedNum:this.selectedNum,cartMessages:this.getSkuCartMessages(),selectedSkuComb:this.selectedSkuComb}},onOpened:function(){this.centerInitialSku()},centerInitialSku:function(){var t=this;(this.$refs.skuRows||[]).forEach(function(e){var n=(e.skuRow||{}).k_s;e.centerItem(t.initialSku[n])})}},render:function(){var t=this,e=arguments[0];if(!this.isSkuEmpty){var n=this.sku,i=this.skuList,r=this.goods,o=this.price,a=this.lazyLoad,s=this.originPrice,c=this.skuEventBus,l=this.selectedSku,u=this.selectedProp,h=this.selectedNum,d=this.stepperTitle,f=this.selectedSkuComb,p=this.showHeaderImage,m=this.disableSoldoutSku,v={price:o,originPrice:s,selectedNum:h,skuEventBus:c,selectedSku:l,selectedSkuComb:f},g=function(e){return t.slots(e,v)},y=g("sku-header")||e(Pc,{attrs:{sku:n,goods:r,skuEventBus:c,selectedSku:l,showHeaderImage:p}},[e("template",{slot:"sku-header-image-extra"},[g("sku-header-image-extra")]),g("sku-header-price")||e("div",{class:"van-sku__goods-price"},[e("span",{class:"van-sku__price-symbol"},["￥"]),e("span",{class:"van-sku__price-num"},[o]),this.priceTag&&e("span",{class:"van-sku__price-tag"},[this.priceTag])]),g("sku-header-origin-price")||s&&e(Rc,[Pl("originPrice")," ￥",s]),!this.hideStock&&e(Rc,[e("span",{class:"van-sku__stock"},[this.stockText])]),this.hasSkuOrAttr&&!this.hideSelectedText&&e(Rc,[this.selectedText]),g("sku-header-extra")]),b=g("sku-group")||this.hasSkuOrAttr&&e("div",{class:this.skuGroupClass},[this.skuTree.map(function(t){return e(Fc,{attrs:{skuRow:t},ref:"skuRows",refInFor:!0},[t.v.map(function(n){return e(Vc,{attrs:{skuList:i,lazyLoad:a,skuValue:n,skuKeyStr:t.k_s,selectedSku:l,skuEventBus:c,disableSoldoutSku:m,largeImageMode:t.largeImageMode}})})])}),this.propList.map(function(t){return e(Fc,{attrs:{skuRow:t}},[t.v.map(function(n){return e(Uc,{attrs:{skuValue:n,skuKeyStr:t.k_id+"",selectedProp:u,skuEventBus:c,multiple:t.is_multiple}})})])})]),x=g("sku-stepper")||e(Qc,{ref:"skuStepper",attrs:{stock:this.stock,quota:this.quota,quotaUsed:this.quotaUsed,startSaleNum:this.startSaleNum,skuEventBus:c,selectedNum:h,stepperTitle:d,skuStockNum:n.stock_num,disableStepperInput:this.disableStepperInput,customStepperConfig:this.customStepperConfig,hideQuotaText:this.hideQuotaText},on:{change:function(e){t.$emit("stepper-change",e)}}}),_=g("sku-messages")||e(_l,{ref:"skuMessages",attrs:{goodsId:this.goodsId,messageConfig:this.messageConfig,messages:n.messages}}),w=g("sku-actions")||e(Cl,{attrs:{buyText:this.buyText,skuEventBus:c,addCartText:this.addCartText,showAddCartBtn:this.showAddCartBtn}});return e(ct,{attrs:{round:!0,closeable:!0,position:"bottom",getContainer:this.getContainer,closeOnClickOverlay:this.closeOnClickOverlay,safeAreaInsetBottom:this.safeAreaInsetBottom},class:"van-sku-container",on:{opened:this.onOpened},model:{value:t.show,callback:function(e){t.show=e}}},[y,e("div",{class:"van-sku-body",style:this.bodyStyle},[g("sku-body-top"),b,g("extra-sku-group"),x,_]),g("sku-actions-top"),w])}}});Pa.a.add({"zh-CN":{vanSku:{select:"请选择",selected:"已选",selectSku:"请先选择商品规格",soldout:"库存不足",originPrice:"原价",minusTip:"至少选择一件",minusStartTip:function(t){return t+"件起售"},unavailable:"商品已经无法购买啦",stock:"剩余",stockUnit:"件",quotaTip:function(t){return"每人限购"+t+"件"},quotaUsedTip:function(t,e){return"每人限购"+t+"件，你已购买"+e+"件"}},vanSkuActions:{buy:"立即购买",addCart:"加入购物车"},vanSkuImgUploader:{oversize:function(t){return"最大可上传图片为"+t+"MB，请尝试压缩图片尺寸"},fail:"上传失败",uploading:"上传中..."},vanSkuStepper:{quotaLimit:function(t){return"限购"+t+"件"},quotaStart:function(t){return t+"件起售"},comma:"，",num:"购买数量"},vanSkuMessages:{fill:"请填写",upload:"请上传",imageLabel:"仅限一张",invalid:{tel:"请填写正确的数字格式留言",mobile:"手机号长度为6-20位数字",email:"请填写正确的邮箱",id_no:"请填写正确的身份证号码"},placeholder:{id_no:"请填写身份证号",text:"请填写留言",tel:"请填写数字",email:"请填写邮箱",date:"请选择日期",time:"请选择时间",textarea:"请填写留言",mobile:"请填写手机号"}},vanSkuRow:{multiple:"可多选"},vanSkuDatetimeField:{title:{date:"选择年月日",time:"选择时间",datetime:"选择日期时间"},format:{year:"年",month:"月",day:"日",hour:"时",minute:"分"}}}}),Il.SkuActions=Cl,Il.SkuHeader=Pc,Il.SkuHeaderItem=Rc,Il.SkuMessages=_l,Il.SkuStepper=Qc,Il.SkuRow=Fc,Il.SkuRowItem=Vc,Il.SkuRowPropItem=Uc,Il.skuHelper=Mc,Il.skuConstants=yc;var Dl=Il,Rl=Object(a.b)("slider"),Bl=Rl[0],Nl=Rl[1],jl=function(t,e){return JSON.stringify(t)===JSON.stringify(e)},zl=Bl({mixins:[V,tn],props:{disabled:Boolean,vertical:Boolean,range:Boolean,barHeight:[Number,String],buttonSize:[Number,String],activeColor:String,inactiveColor:String,min:{type:[Number,String],default:0},max:{type:[Number,String],default:100},step:{type:[Number,String],default:1},value:{type:[Number,Array],default:0}},data:function(){return{dragStatus:""}},computed:{scope:function(){return this.max-this.min},buttonStyle:function(){if(this.buttonSize){var t=Object(a.a)(this.buttonSize);return{width:t,height:t}}}},created:function(){this.updateValue(this.value)},mounted:function(){this.range?(this.bindTouchEvent(this.$refs.wrapper0),this.bindTouchEvent(this.$refs.wrapper1)):this.bindTouchEvent(this.$refs.wrapper)},methods:{onTouchStart:function(t){this.disabled||(this.touchStart(t),this.currentValue=this.value,this.range?this.startValue=this.value.map(this.format):this.startValue=this.format(this.value),this.dragStatus="start")},onTouchMove:function(t){if(!this.disabled){"start"===this.dragStatus&&this.$emit("drag-start"),x(t,!0),this.touchMove(t),this.dragStatus="draging";var e=this.$el.getBoundingClientRect(),n=(this.vertical?this.deltaY:this.deltaX)/(this.vertical?e.height:e.width)*this.scope;this.range?this.currentValue[this.index]=this.startValue[this.index]+n:this.currentValue=this.startValue+n,this.updateValue(this.currentValue)}},onTouchEnd:function(){this.disabled||("draging"===this.dragStatus&&(this.updateValue(this.currentValue,!0),this.$emit("drag-end")),this.dragStatus="")},onClick:function(t){if(t.stopPropagation(),!this.disabled){var e=this.$el.getBoundingClientRect(),n=this.vertical?t.clientY-e.top:t.clientX-e.left,i=this.vertical?e.height:e.width,r=+this.min+n/i*this.scope;if(this.range){var o=this.value,a=o[0],s=o[1];r<=(a+s)/2?a=r:s=r,r=[a,s]}this.startValue=this.value,this.updateValue(r,!0)}},handleOverlap:function(t){return t[0]>t[1]?(t=kt(t)).reverse():t},updateValue:function(t,e){t=this.range?this.handleOverlap(t).map(this.format):this.format(t),jl(t,this.value)||this.$emit("input",t),e&&!jl(t,this.startValue)&&this.$emit("change",t)},format:function(t){return Math.round(Math.max(this.min,Math.min(t,this.max))/this.step)*this.step}},render:function(){var t,e,n,i,r,o,s=this,c=arguments[0],l=this.vertical,u=l?"height":"width",h=l?"width":"height",d=((t={background:this.inactiveColor})[h]=Object(a.a)(this.barHeight),t),f=function(){var t=s.value,e=s.min,n=s.range,i=s.scope;return n?100*(t[0]-e)/i+"%":null},p=((e={})[u]=(n=s.value,i=s.min,r=s.range,o=s.scope,r?100*(n[1]-n[0])/o+"%":100*(n-i)/o+"%"),e.left=this.vertical?null:f(),e.top=this.vertical?f():null,e.background=this.activeColor,e);this.dragStatus&&(p.transition="none");var m=function(t){var e=["left","right"],n="number"==typeof t;return c("div",{ref:n?"wrapper"+t:"wrapper",attrs:{role:"slider",tabindex:s.disabled?-1:0,"aria-valuemin":s.min,"aria-valuenow":s.value,"aria-valuemax":s.max,"aria-orientation":s.vertical?"vertical":"horizontal"},class:Nl(n?"button-wrapper-"+e[t]:"button-wrapper"),on:{touchstart:function(){n&&(s.index=t)},click:function(t){return t.stopPropagation()}}},[s.slots("button")||c("div",{class:Nl("button"),style:s.buttonStyle})])};return c("div",{style:d,class:Nl({disabled:this.disabled,vertical:l}),on:{click:this.onClick}},[c("div",{class:Nl("bar"),style:p},[this.range?[m(0),m(1)]:m()])])}}),Fl=Object(a.b)("step"),Vl=Fl[0],Ul=Fl[1],Gl=Vl({mixins:[Oe("vanSteps")],computed:{status:function(){return this.index<this.parent.active?"finish":this.index===+this.parent.active?"process":void 0},active:function(){return"process"===this.status},lineStyle:function(){return"finish"===this.status?{background:this.parent.activeColor}:{background:this.parent.inactiveColor}},titleStyle:function(){return this.active?{color:this.parent.activeColor}:this.status?void 0:{color:this.parent.inactiveColor}}},methods:{genCircle:function(){var t=this.$createElement,e=this.parent,n=e.activeIcon,i=e.activeColor,r=e.inactiveIcon;if(this.active)return this.slots("active-icon")||t(rt,{class:Ul("icon","active"),attrs:{name:n,color:i}});var o=this.slots("inactive-icon");return r||o?o||t(rt,{class:Ul("icon"),attrs:{name:r}}):t("i",{class:Ul("circle"),style:this.lineStyle})},onClickStep:function(){this.parent.$emit("click-step",this.index)}},render:function(){var t,e=arguments[0],n=this.status,i=this.active,r=this.parent.direction;return e("div",{class:[wt,Ul([r,(t={},t[n]=n,t)])]},[e("div",{class:Ul("title",{active:i}),style:this.titleStyle,on:{click:this.onClickStep}},[this.slots()]),e("div",{class:Ul("circle-container"),on:{click:this.onClickStep}},[this.genCircle()]),e("div",{class:Ul("line"),style:this.lineStyle})])}}),$l=Object(a.b)("steps"),Hl=$l[0],Wl=$l[1],ql=Hl({mixins:[ke("vanSteps")],props:{activeColor:String,inactiveIcon:String,inactiveColor:String,active:{type:[Number,String],default:0},direction:{type:String,default:"horizontal"},activeIcon:{type:String,default:"checked"}},render:function(){var t=arguments[0];return t("div",{class:Wl([this.direction])},[t("div",{class:Wl("items")},[this.slots()])])}}),Xl=Object(a.b)("submit-bar"),Yl=Xl[0],Kl=Xl[1],Zl=Xl[2];function Jl(t,e,n,i){var r=e.tip,a=e.price,s=e.tipIcon;return t("div",o()([{class:Kl({unfit:!e.safeAreaInsetBottom})},h(i)]),[n.top&&n.top(),function(){if(n.tip||r)return t("div",{class:Kl("tip")},[s&&t(rt,{class:Kl("tip-icon"),attrs:{name:s}}),r&&t("span",{class:Kl("tip-text")},[r]),n.tip&&n.tip()])}(),t("div",{class:Kl("bar")},[n.default&&n.default(),function(){if("number"==typeof a){var n=(a/100).toFixed(e.decimalLength).split("."),i=e.decimalLength?"."+n[1]:"";return t("div",{style:{textAlign:e.textAlign?e.textAlign:""},class:Kl("text")},[t("span",[e.label||Zl("label")]),t("span",{class:Kl("price")},[e.currency,t("span",{class:Kl("price","integer")},[n[0]]),i]),e.suffixLabel&&t("span",{class:Kl("suffix-label")},[e.suffixLabel])])}}(),n.button?n.button():t(Ce,{attrs:{round:!0,type:e.buttonType,text:e.loading?"":e.buttonText,color:e.buttonColor,loading:e.loading,disabled:e.disabled},class:Kl("button",e.buttonType),on:{click:function(){d(i,"submit")}}})])])}Jl.props={tip:String,label:String,price:Number,tipIcon:String,loading:Boolean,disabled:Boolean,textAlign:String,buttonText:String,buttonColor:String,suffixLabel:String,safeAreaInsetBottom:{type:Boolean,default:!0},decimalLength:{type:[Number,String],default:2},currency:{type:String,default:"¥"},buttonType:{type:String,default:"danger"}};var Ql=Yl(Jl),tu=Object(a.b)("swipe-cell"),eu=tu[0],nu=tu[1],iu=eu({mixins:[V,Eo({event:"touchstart",method:"onClick"})],props:{onClose:Function,disabled:Boolean,leftWidth:[Number,String],rightWidth:[Number,String],beforeClose:Function,stopPropagation:Boolean,name:{type:[Number,String],default:""}},data:function(){return{offset:0,dragging:!1}},computed:{computedLeftWidth:function(){return+this.leftWidth||this.getWidthByRef("left")},computedRightWidth:function(){return+this.rightWidth||this.getWidthByRef("right")}},mounted:function(){this.bindTouchEvent(this.$el)},methods:{getWidthByRef:function(t){return this.$refs[t]?this.$refs[t].getBoundingClientRect().width:0},open:function(t){var e="left"===t?this.computedLeftWidth:-this.computedRightWidth;this.opened=!0,this.offset=e,this.$emit("open",{position:t,name:this.name,detail:this.name})},close:function(t){this.offset=0,this.opened&&(this.opened=!1,this.$emit("close",{position:t,name:this.name}))},onTouchStart:function(t){this.disabled||(this.startOffset=this.offset,this.touchStart(t))},onTouchMove:function(t){this.disabled||(this.touchMove(t),"horizontal"===this.direction&&(this.dragging=!0,this.lockClick=!0,(!this.opened||this.deltaX*this.startOffset<0)&&x(t,this.stopPropagation),this.offset=Pt(this.deltaX+this.startOffset,-this.computedRightWidth,this.computedLeftWidth)))},onTouchEnd:function(){var t=this;this.disabled||this.dragging&&(this.toggle(this.offset>0?"left":"right"),this.dragging=!1,setTimeout(function(){t.lockClick=!1},0))},toggle:function(t){var e=Math.abs(this.offset),n=this.opened?.85:.15,i=this.computedLeftWidth,r=this.computedRightWidth;r&&"right"===t&&e>r*n?this.open("right"):i&&"left"===t&&e>i*n?this.open("left"):this.close()},onClick:function(t){void 0===t&&(t="outside"),this.$emit("click",t),this.opened&&!this.lockClick&&(this.beforeClose?this.beforeClose({position:t,name:this.name,instance:this}):this.onClose?this.onClose(t,this,{name:this.name}):this.close(t))},getClickHandler:function(t,e){var n=this;return function(i){e&&i.stopPropagation(),n.onClick(t)}},genLeftPart:function(){var t=this.$createElement,e=this.slots("left");if(e)return t("div",{ref:"left",class:nu("left"),on:{click:this.getClickHandler("left",!0)}},[e])},genRightPart:function(){var t=this.$createElement,e=this.slots("right");if(e)return t("div",{ref:"right",class:nu("right"),on:{click:this.getClickHandler("right",!0)}},[e])}},render:function(){var t=arguments[0],e={transform:"translate3d("+this.offset+"px, 0, 0)",transitionDuration:this.dragging?"0s":".6s"};return t("div",{class:nu(),on:{click:this.getClickHandler("cell")}},[t("div",{class:nu("wrapper"),style:e},[this.genLeftPart(),this.slots(),this.genRightPart()])])}}),ru=Object(a.b)("switch-cell"),ou=ru[0],au=ru[1];function su(t,e,n,r){return t(ne,o()([{attrs:{center:!0,size:e.cellSize,title:e.title,border:e.border},class:au([e.cellSize])},h(r)]),[t(on,{props:i({},e),on:i({},r.listeners)})])}su.props=i({},Qe,{title:String,cellSize:String,border:{type:Boolean,default:!0},size:{type:String,default:"24px"}});var cu=ou(su),lu=Object(a.b)("tabbar"),uu=lu[0],hu=lu[1],du=uu({mixins:[ke("vanTabbar")],props:{route:Boolean,zIndex:[Number,String],placeholder:Boolean,activeColor:String,beforeChange:Function,inactiveColor:String,value:{type:[Number,String],default:0},border:{type:Boolean,default:!0},fixed:{type:Boolean,default:!0},safeAreaInsetBottom:{type:Boolean,default:null}},data:function(){return{height:null}},computed:{fit:function(){return null!==this.safeAreaInsetBottom?this.safeAreaInsetBottom:this.fixed}},watch:{value:"setActiveItem",children:"setActiveItem"},mounted:function(){this.placeholder&&this.fixed&&(this.height=this.$refs.tabbar.getBoundingClientRect().height)},methods:{setActiveItem:function(){var t=this;this.children.forEach(function(e,n){e.active=(e.name||n)===t.value})},onChange:function(t){var e=this;t!==this.value&&gi({interceptor:this.beforeChange,args:[t],done:function(){e.$emit("input",t),e.$emit("change",t)}})},genTabbar:function(){var t;return(0,this.$createElement)("div",{ref:"tabbar",style:{zIndex:this.zIndex},class:[(t={},t[Ct]=this.border,t),hu({unfit:!this.fit,fixed:this.fixed})]},[this.slots()])}},render:function(){var t=arguments[0];return this.placeholder&&this.fixed?t("div",{class:hu("placeholder"),style:{height:this.height+"px"}},[this.genTabbar()]):this.genTabbar()}}),fu=Object(a.b)("tabbar-item"),pu=fu[0],mu=fu[1],vu=pu({mixins:[Oe("vanTabbar")],props:i({},Kt,{dot:Boolean,icon:String,name:[Number,String],info:[Number,String],badge:[Number,String],iconPrefix:String}),data:function(){return{active:!1}},computed:{routeActive:function(){var t=this.to,e=this.$route;if(t&&e){var n=Object(a.g)(t)?t:{path:t},i=n.path===e.path,r=Object(a.e)(n.name)&&n.name===e.name;return i||r}}},methods:{onClick:function(t){this.parent.onChange(this.name||this.index),this.$emit("click",t),Xt(this.$router,this)},genIcon:function(t){var e=this.$createElement,n=this.slots("icon",{active:t});return n||(this.icon?e(rt,{attrs:{name:this.icon,classPrefix:this.iconPrefix}}):void 0)}},render:function(){var t,e=arguments[0],n=this.parent.route?this.routeActive:this.active,i=this.parent[n?"activeColor":"inactiveColor"];return e("div",{class:mu({active:n}),style:{color:i},on:{click:this.onClick}},[e("div",{class:mu("icon")},[this.genIcon(n),e(J,{attrs:{dot:this.dot,info:null!=(t=this.badge)?t:this.info}})]),e("div",{class:mu("text")},[this.slots("default",{active:n})])])}}),gu=Object(a.b)("tree-select"),yu=gu[0],bu=gu[1];function xu(t,e,n,i){var r=e.items,s=e.height,c=e.activeId,l=e.selectedIcon,u=e.mainActiveIndex;var f=(r[+u]||{}).children||[],p=Array.isArray(c);function m(t){return p?-1!==c.indexOf(t):c===t}var v=r.map(function(e){var n;return t(lc,{attrs:{dot:e.dot,info:null!=(n=e.badge)?n:e.info,title:e.text,disabled:e.disabled},class:[bu("nav-item"),e.className]})});return t("div",o()([{class:bu(),style:{height:Object(a.a)(s)}},h(i)]),[t(oc,{class:bu("nav"),attrs:{activeKey:u},on:{change:function(t){d(i,"update:main-active-index",t),d(i,"click-nav",t),d(i,"navclick",t)}}},[v]),t("div",{class:bu("content")},[n.content?n.content():f.map(function(n){return t("div",{key:n.id,class:["van-ellipsis",bu("item",{active:m(n.id),disabled:n.disabled})],on:{click:function(){if(!n.disabled){var t=n.id;if(p){var r=(t=c.slice()).indexOf(n.id);-1!==r?t.splice(r,1):t.length<e.max&&t.push(n.id)}d(i,"update:active-id",t),d(i,"click-item",n),d(i,"itemclick",n)}}}},[n.text,m(n.id)&&t(rt,{attrs:{name:l},class:bu("selected")})])})])])}xu.props={max:{type:[Number,String],default:1/0},items:{type:Array,default:function(){return[]}},height:{type:[Number,String],default:300},activeId:{type:[Number,String,Array],default:0},selectedIcon:{type:String,default:"success"},mainActiveIndex:{type:[Number,String],default:0}};var _u=yu(xu);n.d(e,!1,function(){return yt}),n.d(e,!1,function(){return hn}),n.d(e,!1,function(){return Dn}),n.d(e,!1,function(){return qt}),n.d(e,!1,function(){return zn}),n.d(e,!1,function(){return Ce}),n.d(e,!1,function(){return ei}),n.d(e,!1,function(){return hi}),n.d(e,!1,function(){return ji}),n.d(e,!1,function(){return ne}),n.d(e,!1,function(){return Gi}),n.d(e,!1,function(){return Hi}),n.d(e,!1,function(){return Yi}),n.d(e,!1,function(){return er}),n.d(e,!1,function(){return or}),n.d(e,!1,function(){return lr}),n.d(e,!1,function(){return pr}),n.d(e,!1,function(){return xr}),n.d(e,!1,function(){return Mr}),n.d(e,!1,function(){return Ar}),n.d(e,!1,function(){return Vr}),n.d(e,!1,function(){return Xr}),n.d(e,!1,function(){return to}),n.d(e,!1,function(){return oo}),n.d(e,!1,function(){return mo}),n.d(e,!1,function(){return We}),n.d(e,!1,function(){return xo}),n.d(e,!1,function(){return To}),n.d(e,!1,function(){return Oo}),n.d(e,!1,function(){return Ro}),n.d(e,!1,function(){return ce}),n.d(e,!1,function(){return zo}),n.d(e,!1,function(){return Re}),n.d(e,!1,function(){return ze}),n.d(e,!1,function(){return Go}),n.d(e,!1,function(){return qo}),n.d(e,!1,function(){return Zo}),n.d(e,!1,function(){return rt}),n.d(e,!1,function(){return oi}),n.d(e,!1,function(){return ma}),n.d(e,!1,function(){return ba}),n.d(e,!1,function(){return Sa}),n.d(e,!1,function(){return J}),n.d(e,!1,function(){return Ea}),n.d(e,!1,function(){return ka}),n.d(e,!1,function(){return ft}),n.d(e,!1,function(){return Pa.a}),n.d(e,!1,function(){return Ra}),n.d(e,!1,function(){return za}),n.d(e,!1,function(){return Xa}),n.d(e,!1,function(){return rs}),n.d(e,!1,function(){return M}),n.d(e,!1,function(){return us}),n.d(e,!1,function(){return ms}),n.d(e,!1,function(){return xs}),n.d(e,!1,function(){return Gt}),n.d(e,!1,function(){return Es}),n.d(e,!1,function(){return ct}),n.d(e,!1,function(){return Os}),n.d(e,!1,function(){return Rs}),n.d(e,!1,function(){return Sn}),n.d(e,!1,function(){return mn}),n.d(e,!1,function(){return zs}),n.d(e,!1,function(){return Gs}),n.d(e,!1,function(){return Ys}),n.d(e,!1,function(){return ec}),n.d(e,!1,function(){return oc}),n.d(e,!1,function(){return lc}),n.d(e,!1,function(){return vc}),n.d(e,!1,function(){return Dl}),n.d(e,!1,function(){return zl}),n.d(e,!1,function(){return Gl}),n.d(e,!1,function(){return qc}),n.d(e,!1,function(){return ql}),n.d(e,!1,function(){return Ei}),n.d(e,!1,function(){return Ql}),n.d(e,!1,function(){return ra}),n.d(e,!1,function(){return iu}),n.d(e,!1,function(){return ca}),n.d(e,!1,function(){return on}),n.d(e,!1,function(){return cu}),n.d(e,!1,function(){return mi}),n.d(e,!1,function(){return du}),n.d(e,!1,function(){return vu}),n.d(e,!1,function(){return Ii}),n.d(e,!1,function(){return xn}),n.d(e,"a",function(){return we}),n.d(e,!1,function(){return _u}),n.d(e,!1,function(){return cl});function wu(t){[yt,hn,Dn,qt,zn,Ce,ei,hi,ji,ne,Gi,Hi,Yi,er,or,lr,pr,xr,Mr,Ar,Vr,Xr,to,oo,mo,We,xo,To,Oo,Ro,ce,zo,Re,ze,Go,qo,Zo,rt,oi,ma,ba,Sa,J,ka,ft,Pa.a,Ra,za,Xa,rs,M,us,ms,xs,Gt,Es,ct,Os,Rs,Sn,mn,zs,Gs,Ys,ec,oc,lc,vc,Dl,zl,Gl,qc,ql,Ei,Ql,ra,iu,ca,on,cu,mi,du,vu,Ii,xn,we,_u,cl].forEach(function(e){e.install?t.use(e):e.name&&t.component(e.name,e)})}"undefined"!=typeof window&&window.Vue&&wu(window.Vue)},FeBl:function(t,e){var n=t.exports={version:"2.6.5"};"number"==typeof __e&&(__e=n)},FkIZ:function(t,e,n){var i=n("XSOZ"),r=n("FryR"),o=n("Q6Nf"),a=n("BbyF");t.exports=function(t,e,n,s,c){i(e);var l=r(t),u=o(l),h=a(l.length),d=c?h-1:0,f=c?-1:1;if(n<2)for(;;){if(d in u){s=u[d],d+=f;break}if(d+=f,c?d<0:h<=d)throw TypeError("Reduce of empty array with no initial value")}for(;c?d>=0:h>d;d+=f)d in u&&(s=e(s,u[d],d,l));return s}},FryR:function(t,e,n){var i=n("/whu");t.exports=function(t){return Object(i(t))}},Gh7F:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("kqpo");i(i.P+i.F*n("1ETD")("includes"),"String",{includes:function(t){return!!~r(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},GqC1:function(t,e,n){var i=n("Ml+6");i.CSS2DObject=function(t){i.Object3D.call(this),t&&(this.element=t,this.element.style.position="absolute",this.addEventListener("removed",function(t){null!==this.element.parentNode&&this.element.parentNode.removeChild(this.element)}))},i.CSS2DObject.prototype=Object.assign(Object.create(i.Object3D.prototype),{constructor:i.CSS2DObject,copy:function(t,e){return i.Object3D.prototype.copy.call(this,t,e),void 0!=t&&(this.element=t.element.cloneNode(!0),this.addEventListener("removed",function(t){null!==this.element.parentNode&&this.element.parentNode.removeChild(this.element)})),this}}),i.CSS2DRenderer=function(){var t,e,n,r,o;console.log("THREE.CSS2DRenderer",i.REVISION);var a=new i.Vector3,s=new i.Matrix4,c=new i.Matrix4,l={objects:new WeakMap},u=document.createElement("div");u.style.overflow="hidden",this.domElement=u,this.getSize=function(){return{width:t,height:e}},this.setSize=function(i,a,s,c){s,o=c,n=(t=i)/2,r=(e=a)/2,u.style.width=i+"px",u.style.height=a+"px",u.style.left=s+"px",u.style.top=o+"px"};var h,d,f=function(o,s){if(o instanceof i.CSS2DObject){a.setFromMatrixPosition(o.matrixWorld),a.applyMatrix4(c);var h=o.element,d="translate(-50%,-50%) ";"-Infinity"!==a.z.toString()&&"Infinity"!==a.z.toString()&&a.z<1?d+="translate("+(a.x*n+n)+"px,"+(-a.y*r+r)+"px) ":d+="translate("+2*t+"px,"+2*e+"px) ",h.style.WebkitTransform=d,h.style.MozTransform=d,h.style.oTransform=d,h.style.transform=d;var m={distanceToCameraSquared:p(s,o)};l.objects.set(o,m),h.parentNode!==u&&u.appendChild(h),window.screenEvent.VR.isVR&&(h.isOver=window.Util.isOver("left_cursor",h))}for(var v=0,g=o.children.length;v<g;v++)f(o.children[v],s);if("Scene"===o.type&&!o.userData.type){var y=o.children.filter(function(t){return t instanceof i.CSS2DObject&&!0===t.element.isOver});y.length>0?window.cursor.start(function(){window.guide.jumpTo(y[0])}):window.cursor.restore()}},p=(h=new i.Vector3,d=new i.Vector3,function(t,e){return h.setFromMatrixPosition(t.matrixWorld),d.setFromMatrixPosition(e.matrixWorld),h.distanceToSquared(d)}),m=function(t){for(var e=function(t){var e=[];return t.traverse(function(t){t instanceof i.CSS2DObject&&e.push(t)}),e}(t).sort(function(t,e){return l.objects.get(t).distanceToCameraSquared-l.objects.get(e).distanceToCameraSquared}),n=e.length,r=0,o=e.length;r<o;r++)e[r].element.style.zIndex=n-r};this.render=function(t,e){t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),s.copy(e.matrixWorldInverse),c.multiplyMatrices(e.projectionMatrix,s),f(t,e),m(t)}},e.CSS2DRenderer=i.CSS2DRenderer,e.CSS2DObject=i.CSS2DObject},H0mh:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},H7zx:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{signbit:function(t){return(t=+t)!=t?t:0==t?1/t==1/0:t>0}})},Hhm4:function(t,e,n){var i=n("Ds5P");i(i.S+i.F*!n("bUqO"),"Object",{defineProperties:n("twxM")})},"Hl+4":function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{sign:n("cwmK")})},IFpc:function(t,e,n){"use strict";var i=n("XO1R"),r=n("UKM+"),o=n("BbyF"),a=n("rFzY"),s=n("kkCw")("isConcatSpreadable");t.exports=function t(e,n,c,l,u,h,d,f){for(var p,m,v=u,g=0,y=!!d&&a(d,f,3);g<l;){if(g in c){if(p=y?y(c[g],g,n):c[g],m=!1,r(p)&&(m=void 0!==(m=p[s])?!!m:i(p)),m&&h>0)v=t(e,n,p,o(p.length),v,h-1)-1;else{if(v>=9007199254740991)throw TypeError();e[v]=p}v++}g++}return v}},IMUI:function(t,e,n){var i=n("Ds5P");i(i.S,"Array",{isArray:n("XO1R")})},IRJ3:function(t,e,n){"use strict";var i=n("7ylX"),r=n("fU25"),o=n("yYvK"),a={};n("2p1q")(a,n("kkCw")("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=i(a,{next:r(1,n)}),o(t,e+" Iterator")}},Ibhu:function(t,e,n){var i=n("D2L2"),r=n("TcQ7"),o=n("vFc/")(!1),a=n("ax3d")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),c=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);for(;e.length>c;)i(s,n=e[c++])&&(~o(l,n)||l.push(n));return l}},"J+j9":function(t,e,n){"use strict";n("y325")("fixed",function(t){return function(){return t(this,"tt","","")}})},J2ob:function(t,e,n){"use strict";n("y325")("sup",function(t){return function(){return t(this,"sup","","")}})},JG34:function(t,e,n){var i=n("Ds5P"),r=n("DIVP"),o=Object.isExtensible;i(i.S,"Reflect",{isExtensible:function(t){return r(t),!o||o(t)}})},JJ3w:function(t,e,n){n("0j1G")("Map")},Jbuy:function(t,e,n){"use strict";var i=n("32VL");n("Ds5P")({target:"RegExp",proto:!0,forced:i!==/./.exec},{exec:i})},K0JP:function(t,e,n){n("77Ug")("Int32",4,function(t){return function(e,n,i){return t(this,e,n,i)}})},KB1o:function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},KOrd:function(t,e,n){var i=n("WBcL"),r=n("FryR"),o=n("mZON")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},L42u:function(t,e,n){var i,r,o,a=n("+ZMJ"),s=n("knuC"),c=n("RPLV"),l=n("ON07"),u=n("7KvD"),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,v=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++v]=function(){s("function"==typeof t?t:Function(t),e)},i(v),v},f=function(t){delete g[t]},"process"==n("R9M2")(h)?i=function(t){h.nextTick(a(y,t,1))}:m&&m.now?i=function(t){m.now(a(y,t,1))}:p?(o=(r=new p).port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:f}},LG56:function(t,e,n){var i=n("Ds5P");i(i.S,"Number",{isNaN:function(t){return t!=t}})},"LRL/":function(t,e,n){"use strict";n("Ymdd")("trimRight",function(t){return function(){return t(this,2)}},"trimEnd")},La7N:function(t,e,n){n("0j1G")("WeakMap")},LhTa:function(t,e,n){var i=n("rFzY"),r=n("Q6Nf"),o=n("FryR"),a=n("BbyF"),s=n("plSV");t.exports=function(t,e){var n=1==t,c=2==t,l=3==t,u=4==t,h=6==t,d=5==t||h,f=e||s;return function(e,s,p){for(var m,v,g=o(e),y=r(g),b=i(s,p,3),x=a(y.length),_=0,w=n?f(e,x):c?f(e,0):void 0;x>_;_++)if((d||_ in y)&&(v=b(m=y[_],_,g),t))if(n)w[_]=v;else if(v)switch(t){case 3:return!0;case 5:return m;case 6:return _;case 2:w.push(m)}else if(u)return!1;return h?-1:l||u?u:w}}},LlNE:function(t,e,n){var i=n("Ds5P"),r=Math.exp;i(i.S,"Math",{cosh:function(t){return(r(t=+t)+r(-t))/2}})},Lqg1:function(t,e,n){var i=n("Ds5P"),r=Math.imul;i(i.S+i.F*n("zgIt")(function(){return-5!=r(4294967295,5)||2!=r.length}),"Math",{imul:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i;return 0|r*o+((65535&n>>>16)*o+r*(65535&i>>>16)<<16>>>0)}})},LrcN:function(t,e,n){"use strict";var i=n("OzIq"),r=n("bUqO"),o=n("V3l/"),a=n("07k+"),s=n("2p1q"),c=n("A16L"),l=n("zgIt"),u=n("9GpA"),h=n("oeih"),d=n("BbyF"),f=n("8D8H"),p=n("WcO1").f,m=n("lDLk").f,v=n("zCYm"),g=n("yYvK"),y="prototype",b="Wrong index!",x=i.ArrayBuffer,_=i.DataView,w=i.Math,S=i.RangeError,T=i.Infinity,E=x,M=w.abs,C=w.pow,L=w.floor,O=w.log,k=w.LN2,P=r?"_b":"buffer",A=r?"_l":"byteLength",I=r?"_o":"byteOffset";function D(t,e,n){var i,r,o,a=new Array(n),s=8*n-e-1,c=(1<<s)-1,l=c>>1,u=23===e?C(2,-24)-C(2,-77):0,h=0,d=t<0||0===t&&1/t<0?1:0;for((t=M(t))!=t||t===T?(r=t!=t?1:0,i=c):(i=L(O(t)/k),t*(o=C(2,-i))<1&&(i--,o*=2),(t+=i+l>=1?u/o:u*C(2,1-l))*o>=2&&(i++,o/=2),i+l>=c?(r=0,i=c):i+l>=1?(r=(t*o-1)*C(2,e),i+=l):(r=t*C(2,l-1)*C(2,e),i=0));e>=8;a[h++]=255&r,r/=256,e-=8);for(i=i<<e|r,s+=e;s>0;a[h++]=255&i,i/=256,s-=8);return a[--h]|=128*d,a}function R(t,e,n){var i,r=8*n-e-1,o=(1<<r)-1,a=o>>1,s=r-7,c=n-1,l=t[c--],u=127&l;for(l>>=7;s>0;u=256*u+t[c],c--,s-=8);for(i=u&(1<<-s)-1,u>>=-s,s+=e;s>0;i=256*i+t[c],c--,s-=8);if(0===u)u=1-a;else{if(u===o)return i?NaN:l?-T:T;i+=C(2,e),u-=a}return(l?-1:1)*i*C(2,u-e)}function B(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function N(t){return[255&t]}function j(t){return[255&t,t>>8&255]}function z(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function F(t){return D(t,52,8)}function V(t){return D(t,23,4)}function U(t,e,n){m(t[y],e,{get:function(){return this[n]}})}function G(t,e,n,i){var r=f(+n);if(r+e>t[A])throw S(b);var o=t[P]._b,a=r+t[I],s=o.slice(a,a+e);return i?s:s.reverse()}function $(t,e,n,i,r,o){var a=f(+n);if(a+e>t[A])throw S(b);for(var s=t[P]._b,c=a+t[I],l=i(+r),u=0;u<e;u++)s[c+u]=l[o?u:e-u-1]}if(a.ABV){if(!l(function(){x(1)})||!l(function(){new x(-1)})||l(function(){return new x,new x(1.5),new x(NaN),"ArrayBuffer"!=x.name})){for(var H,W=(x=function(t){return u(this,x),new E(f(t))})[y]=E[y],q=p(E),X=0;q.length>X;)(H=q[X++])in x||s(x,H,E[H]);o||(W.constructor=x)}var Y=new _(new x(2)),K=_[y].setInt8;Y.setInt8(0,2147483648),Y.setInt8(1,2147483649),!Y.getInt8(0)&&Y.getInt8(1)||c(_[y],{setInt8:function(t,e){K.call(this,t,e<<24>>24)},setUint8:function(t,e){K.call(this,t,e<<24>>24)}},!0)}else x=function(t){u(this,x,"ArrayBuffer");var e=f(t);this._b=v.call(new Array(e),0),this[A]=e},_=function(t,e,n){u(this,_,"DataView"),u(t,x,"DataView");var i=t[A],r=h(e);if(r<0||r>i)throw S("Wrong offset!");if(r+(n=void 0===n?i-r:d(n))>i)throw S("Wrong length!");this[P]=t,this[I]=r,this[A]=n},r&&(U(x,"byteLength","_l"),U(_,"buffer","_b"),U(_,"byteLength","_l"),U(_,"byteOffset","_o")),c(_[y],{getInt8:function(t){return G(this,1,t)[0]<<24>>24},getUint8:function(t){return G(this,1,t)[0]},getInt16:function(t){var e=G(this,2,t,arguments[1]);return(e[1]<<8|e[0])<<16>>16},getUint16:function(t){var e=G(this,2,t,arguments[1]);return e[1]<<8|e[0]},getInt32:function(t){return B(G(this,4,t,arguments[1]))},getUint32:function(t){return B(G(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return R(G(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return R(G(this,8,t,arguments[1]),52,8)},setInt8:function(t,e){$(this,1,t,N,e)},setUint8:function(t,e){$(this,1,t,N,e)},setInt16:function(t,e){$(this,2,t,j,e,arguments[2])},setUint16:function(t,e){$(this,2,t,j,e,arguments[2])},setInt32:function(t,e){$(this,4,t,z,e,arguments[2])},setUint32:function(t,e){$(this,4,t,z,e,arguments[2])},setFloat32:function(t,e){$(this,4,t,V,e,arguments[2])},setFloat64:function(t,e){$(this,8,t,F,e,arguments[2])}});g(x,"ArrayBuffer"),g(_,"DataView"),s(_[y],a.VIEW,!0),e.ArrayBuffer=x,e.DataView=_},Lw6n:function(module,exports,__webpack_require__){(function(global){var n;this||self,n=function(){return function(){var __webpack_modules__={4264:function(t,e,n){t.exports=n(7588)},5036:function(t,e,n){n(1719),n(5677),n(6394),n(5334),n(6969),n(2021),n(8328),n(2129);var i=n(1287);t.exports=i.Promise},2582:function(t,e,n){n(1646),n(6394),n(2004),n(462),n(8407),n(2429),n(1172),n(8288),n(1274),n(8201),n(6626),n(3211),n(9952),n(15),n(9831),n(7521),n(2972),n(6956),n(5222),n(2257);var i=n(1287);t.exports=i.Symbol},8257:function(t,e,n){var i=n(7583),r=n(9212),o=n(5637),a=i.TypeError;t.exports=function(t){if(r(t))return t;throw a(o(t)+" is not a function")}},1186:function(t,e,n){var i=n(7583),r=n(2097),o=n(5637),a=i.TypeError;t.exports=function(t){if(r(t))return t;throw a(o(t)+" is not a constructor")}},9882:function(t,e,n){var i=n(7583),r=n(9212),o=i.String,a=i.TypeError;t.exports=function(t){if("object"==typeof t||r(t))return t;throw a("Can't set "+o(t)+" as a prototype")}},6288:function(t,e,n){var i=n(3649),r=n(3590),o=n(4615),a=i("unscopables"),s=Array.prototype;null==s[a]&&o.f(s,a,{configurable:!0,value:r(null)}),t.exports=function(t){s[a][t]=!0}},4761:function(t,e,n){var i=n(7583),r=n(2447),o=i.TypeError;t.exports=function(t,e){if(r(e,t))return t;throw o("Incorrect invocation")}},2569:function(t,e,n){var i=n(7583),r=n(794),o=i.String,a=i.TypeError;t.exports=function(t){if(r(t))return t;throw a(o(t)+" is not an object")}},5766:function(t,e,n){var i=n(2977),r=n(6782),o=n(1825),a=function(t){return function(e,n,a){var s,c=i(e),l=o(c),u=r(a,l);if(t&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}};t.exports={includes:a(!0),indexOf:a(!1)}},4805:function(t,e,n){var i=n(2938),r=n(7386),o=n(5044),a=n(1324),s=n(1825),c=n(4822),l=r([].push),u=function(t){var e=1==t,n=2==t,r=3==t,u=4==t,h=6==t,d=7==t,f=5==t||h;return function(p,m,v,g){for(var y,b,x=a(p),_=o(x),w=i(m,v),S=s(_),T=0,E=g||c,M=e?E(p,S):n||d?E(p,0):void 0;S>T;T++)if((f||T in _)&&(b=w(y=_[T],T,x),t))if(e)M[T]=b;else if(b)switch(t){case 3:return!0;case 5:return y;case 6:return T;case 2:l(M,y)}else switch(t){case 4:return!1;case 7:l(M,y)}return h?-1:r||u?u:M}};t.exports={forEach:u(0),map:u(1),filter:u(2),some:u(3),every:u(4),find:u(5),findIndex:u(6),filterReject:u(7)}},9269:function(t,e,n){var i=n(6544),r=n(3649),o=n(4061),a=r("species");t.exports=function(t){return o>=51||!i(function(){var e=[];return(e.constructor={})[a]=function(){return{foo:1}},1!==e[t](Boolean).foo})}},4546:function(t,e,n){var i=n(7583),r=n(6782),o=n(1825),a=n(5999),s=i.Array,c=Math.max;t.exports=function(t,e,n){for(var i=o(t),l=r(e,i),u=r(void 0===n?i:n,i),h=s(c(u-l,0)),d=0;l<u;l++,d++)a(h,d,t[l]);return h.length=d,h}},6917:function(t,e,n){var i=n(7386);t.exports=i([].slice)},5289:function(t,e,n){var i=n(7583),r=n(4521),o=n(2097),a=n(794),s=n(3649)("species"),c=i.Array;t.exports=function(t){var e;return r(t)&&(e=t.constructor,(o(e)&&(e===c||r(e.prototype))||a(e)&&null===(e=e[s]))&&(e=void 0)),void 0===e?c:e}},4822:function(t,e,n){var i=n(5289);t.exports=function(t,e){return new(i(t))(0===e?0:e)}},3616:function(t,e,n){var i=n(3649)("iterator"),r=!1;try{var o=0,a={next:function(){return{done:!!o++}},return:function(){r=!0}};a[i]=function(){return this},Array.from(a,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o={};o[i]=function(){return{next:function(){return{done:n=!0}}}},t(o)}catch(t){}return n}},9624:function(t,e,n){var i=n(7386),r=i({}.toString),o=i("".slice);t.exports=function(t){return o(r(t),8,-1)}},3058:function(t,e,n){var i=n(7583),r=n(8191),o=n(9212),a=n(9624),s=n(3649)("toStringTag"),c=i.Object,l="Arguments"==a(function(){return arguments}());t.exports=r?a:function(t){var e,n,i;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=c(t),s))?n:l?a(e):"Object"==(i=a(e))&&o(e.callee)?"Arguments":i}},1509:function(t,e,n){var i=n(7386)("".replace),r=String(Error("zxcasd").stack),o=/\n\s*at [^:]*:[^\n]*/,a=o.test(r);t.exports=function(t,e){if(a&&"string"==typeof t)for(;e--;)t=i(t,o,"");return t}},3478:function(t,e,n){var i=n(2870),r=n(929),o=n(6683),a=n(4615);t.exports=function(t,e,n){for(var s=r(e),c=a.f,l=o.f,u=0;u<s.length;u++){var h=s[u];i(t,h)||n&&i(n,h)||c(t,h,l(e,h))}}},926:function(t,e,n){var i=n(6544);t.exports=!i(function(){function t(){}return t.prototype.constructor=null,Object.getPrototypeOf(new t)!==t.prototype})},4683:function(t,e,n){"use strict";var i=n(2365).IteratorPrototype,r=n(3590),o=n(4677),a=n(8821),s=n(339),c=function(){return this};t.exports=function(t,e,n,l){var u=e+" Iterator";return t.prototype=r(i,{next:o(+!l,n)}),a(t,u,!1,!0),s[u]=c,t}},57:function(t,e,n){var i=n(8494),r=n(4615),o=n(4677);t.exports=i?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},4677:function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},5999:function(t,e,n){"use strict";var i=n(8734),r=n(4615),o=n(4677);t.exports=function(t,e,n){var a=i(e);a in t?r.f(t,a,o(0,n)):t[a]=n}},9012:function(t,e,n){"use strict";var i=n(7263),r=n(8262),o=n(6268),a=n(4340),s=n(9212),c=n(4683),l=n(729),u=n(7496),h=n(8821),d=n(57),f=n(1270),p=n(3649),m=n(339),v=n(2365),g=a.PROPER,y=a.CONFIGURABLE,b=v.IteratorPrototype,x=v.BUGGY_SAFARI_ITERATORS,_=p("iterator"),w="keys",S="values",T="entries",E=function(){return this};t.exports=function(t,e,n,a,p,v,M){c(n,e,a);var C,L,O,k=function(t){if(t===p&&R)return R;if(!x&&t in I)return I[t];switch(t){case w:case S:case T:return function(){return new n(this,t)}}return function(){return new n(this)}},P=e+" Iterator",A=!1,I=t.prototype,D=I[_]||I["@@iterator"]||p&&I[p],R=!x&&D||k(p),B="Array"==e&&I.entries||D;if(B&&(C=l(B.call(new t)))!==Object.prototype&&C.next&&(o||l(C)===b||(u?u(C,b):s(C[_])||f(C,_,E)),h(C,P,!0,!0),o&&(m[P]=E)),g&&p==S&&D&&D.name!==S&&(!o&&y?d(I,"name",S):(A=!0,R=function(){return r(D,this)})),p)if(L={values:k(S),keys:v?R:k(w),entries:k(T)},M)for(O in L)(x||A||!(O in I))&&f(I,O,L[O]);else i({target:e,proto:!0,forced:x||A},L);return o&&!M||I[_]===R||f(I,_,R,{name:p}),m[e]=R,L}},2219:function(t,e,n){var i=n(1287),r=n(2870),o=n(491),a=n(4615).f;t.exports=function(t){var e=i.Symbol||(i.Symbol={});r(e,t)||a(e,t,{value:o.f(t)})}},8494:function(t,e,n){var i=n(6544);t.exports=!i(function(){return 7!=Object.defineProperty({},1,{get:function(){return 7}})[1]})},6668:function(t,e,n){var i=n(7583),r=n(794),o=i.document,a=r(o)&&r(o.createElement);t.exports=function(t){return a?o.createElement(t):{}}},6778:function(t){t.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},9307:function(t,e,n){var i=n(6668)("span").classList,r=i&&i.constructor&&i.constructor.prototype;t.exports=r===Object.prototype?void 0:r},2274:function(t){t.exports="object"==typeof window},3256:function(t,e,n){var i=n(6918),r=n(7583);t.exports=/ipad|iphone|ipod/i.test(i)&&void 0!==r.Pebble},7020:function(t,e,n){var i=n(6918);t.exports=/(?:ipad|iphone|ipod).*applewebkit/i.test(i)},5354:function(t,e,n){var i=n(9624),r=n(7583);t.exports="process"==i(r.process)},6846:function(t,e,n){var i=n(6918);t.exports=/web0s(?!.*chrome)/i.test(i)},6918:function(t,e,n){var i=n(5897);t.exports=i("navigator","userAgent")||""},4061:function(t,e,n){var i,r,o=n(7583),a=n(6918),s=o.process,c=o.Deno,l=s&&s.versions||c&&c.version,u=l&&l.v8;u&&(r=(i=u.split("."))[0]>0&&i[0]<4?1:+(i[0]+i[1])),!r&&a&&(!(i=a.match(/Edge\/(\d+)/))||i[1]>=74)&&(i=a.match(/Chrome\/(\d+)/))&&(r=+i[1]),t.exports=r},5690:function(t){t.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},1178:function(t,e,n){var i=n(6544),r=n(4677);t.exports=!i(function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",r(1,7)),7!==t.stack)})},7263:function(t,e,n){var i=n(7583),r=n(6683).f,o=n(57),a=n(1270),s=n(460),c=n(3478),l=n(4451);t.exports=function(t,e){var n,u,h,d,f,p=t.target,m=t.global,v=t.stat;if(n=m?i:v?i[p]||s(p,{}):(i[p]||{}).prototype)for(u in e){if(d=e[u],h=t.noTargetGet?(f=r(n,u))&&f.value:n[u],!l(m?u:p+(v?".":"#")+u,t.forced)&&void 0!==h){if(typeof d==typeof h)continue;c(d,h)}(t.sham||h&&h.sham)&&o(d,"sham",!0),a(n,u,d,t)}}},6544:function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},1611:function(t,e,n){var i=n(8987),r=Function.prototype,o=r.apply,a=r.call;t.exports="object"==typeof Reflect&&Reflect.apply||(i?a.bind(o):function(){return a.apply(o,arguments)})},2938:function(t,e,n){var i=n(7386),r=n(8257),o=n(8987),a=i(i.bind);t.exports=function(t,e){return r(t),void 0===e?t:o?a(t,e):function(){return t.apply(e,arguments)}}},8987:function(t,e,n){var i=n(6544);t.exports=!i(function(){var t=function(){}.bind();return"function"!=typeof t||t.hasOwnProperty("prototype")})},8262:function(t,e,n){var i=n(8987),r=Function.prototype.call;t.exports=i?r.bind(r):function(){return r.apply(r,arguments)}},4340:function(t,e,n){var i=n(8494),r=n(2870),o=Function.prototype,a=i&&Object.getOwnPropertyDescriptor,s=r(o,"name"),c=s&&"something"===function(){}.name,l=s&&(!i||i&&a(o,"name").configurable);t.exports={EXISTS:s,PROPER:c,CONFIGURABLE:l}},7386:function(t,e,n){var i=n(8987),r=Function.prototype,o=r.bind,a=r.call,s=i&&o.bind(a,a);t.exports=i?function(t){return t&&s(t)}:function(t){return t&&function(){return a.apply(t,arguments)}}},5897:function(t,e,n){var i=n(7583),r=n(9212);t.exports=function(t,e){return arguments.length<2?function(t){return r(t)?t:void 0}(i[t]):i[t]&&i[t][e]}},8272:function(t,e,n){var i=n(3058),r=n(911),o=n(339),a=n(3649)("iterator");t.exports=function(t){if(null!=t)return r(t,a)||r(t,"@@iterator")||o[i(t)]}},6307:function(t,e,n){var i=n(7583),r=n(8262),o=n(8257),a=n(2569),s=n(5637),c=n(8272),l=i.TypeError;t.exports=function(t,e){var n=arguments.length<2?c(t):e;if(o(n))return a(r(n,t));throw l(s(t)+" is not iterable")}},911:function(t,e,n){var i=n(8257);t.exports=function(t,e){var n=t[e];return null==n?void 0:i(n)}},7583:function(t,e,n){var i=function(t){return t&&t.Math==Math&&t};t.exports=i("object"==typeof globalThis&&globalThis)||i("object"==typeof window&&window)||i("object"==typeof self&&self)||i("object"==typeof n.g&&n.g)||function(){return this}()||Function("return this")()},2870:function(t,e,n){var i=n(7386),r=n(1324),o=i({}.hasOwnProperty);t.exports=Object.hasOwn||function(t,e){return o(r(t),e)}},4639:function(t){t.exports={}},2716:function(t,e,n){var i=n(7583);t.exports=function(t,e){var n=i.console;n&&n.error&&(1==arguments.length?n.error(t):n.error(t,e))}},482:function(t,e,n){var i=n(5897);t.exports=i("document","documentElement")},275:function(t,e,n){var i=n(8494),r=n(6544),o=n(6668);t.exports=!i&&!r(function(){return 7!=Object.defineProperty(o("div"),"a",{get:function(){return 7}}).a})},5044:function(t,e,n){var i=n(7583),r=n(7386),o=n(6544),a=n(9624),s=i.Object,c=r("".split);t.exports=o(function(){return!s("z").propertyIsEnumerable(0)})?function(t){return"String"==a(t)?c(t,""):s(t)}:s},9734:function(t,e,n){var i=n(7386),r=n(9212),o=n(1314),a=i(Function.toString);r(o.inspectSource)||(o.inspectSource=function(t){return a(t)}),t.exports=o.inspectSource},4402:function(t,e,n){var i=n(794),r=n(57);t.exports=function(t,e){i(e)&&"cause"in e&&r(t,"cause",e.cause)}},2743:function(t,e,n){var i,r,o,a=n(9491),s=n(7583),c=n(7386),l=n(794),u=n(57),h=n(2870),d=n(1314),f=n(9137),p=n(4639),m="Object already initialized",v=s.TypeError,g=s.WeakMap;if(a||d.state){var y=d.state||(d.state=new g),b=c(y.get),x=c(y.has),_=c(y.set);i=function(t,e){if(x(y,t))throw new v(m);return e.facade=t,_(y,t,e),e},r=function(t){return b(y,t)||{}},o=function(t){return x(y,t)}}else{var w=f("state");p[w]=!0,i=function(t,e){if(h(t,w))throw new v(m);return e.facade=t,u(t,w,e),e},r=function(t){return h(t,w)?t[w]:{}},o=function(t){return h(t,w)}}t.exports={set:i,get:r,has:o,enforce:function(t){return o(t)?r(t):i(t,{})},getterFor:function(t){return function(e){var n;if(!l(e)||(n=r(e)).type!==t)throw v("Incompatible receiver, "+t+" required");return n}}}},114:function(t,e,n){var i=n(3649),r=n(339),o=i("iterator"),a=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||a[o]===t)}},4521:function(t,e,n){var i=n(9624);t.exports=Array.isArray||function(t){return"Array"==i(t)}},9212:function(t){t.exports=function(t){return"function"==typeof t}},2097:function(t,e,n){var i=n(7386),r=n(6544),o=n(9212),a=n(3058),s=n(5897),c=n(9734),l=function(){},u=[],h=s("Reflect","construct"),d=/^\s*(?:class|function)\b/,f=i(d.exec),p=!d.exec(l),m=function(t){if(!o(t))return!1;try{return h(l,u,t),!0}catch(t){return!1}},v=function(t){if(!o(t))return!1;switch(a(t)){case"AsyncFunction":case"GeneratorFunction":case"AsyncGeneratorFunction":return!1}try{return p||!!f(d,c(t))}catch(t){return!0}};v.sham=!0,t.exports=!h||r(function(){var t;return m(m.call)||!m(Object)||!m(function(){t=!0})||t})?v:m},4451:function(t,e,n){var i=n(6544),r=n(9212),o=/#|\.prototype\./,a=function(t,e){var n=c[s(t)];return n==u||n!=l&&(r(e)?i(e):!!e)},s=a.normalize=function(t){return String(t).replace(o,".").toLowerCase()},c=a.data={},l=a.NATIVE="N",u=a.POLYFILL="P";t.exports=a},794:function(t,e,n){var i=n(9212);t.exports=function(t){return"object"==typeof t?null!==t:i(t)}},6268:function(t){t.exports=!1},5871:function(t,e,n){var i=n(7583),r=n(5897),o=n(9212),a=n(2447),s=n(7786),c=i.Object;t.exports=s?function(t){return"symbol"==typeof t}:function(t){var e=r("Symbol");return o(e)&&a(e.prototype,c(t))}},4026:function(t,e,n){var i=n(7583),r=n(2938),o=n(8262),a=n(2569),s=n(5637),c=n(114),l=n(1825),u=n(2447),h=n(6307),d=n(8272),f=n(7093),p=i.TypeError,m=function(t,e){this.stopped=t,this.result=e},v=m.prototype;t.exports=function(t,e,n){var i,g,y,b,x,_,w,S=n&&n.that,T=!(!n||!n.AS_ENTRIES),E=!(!n||!n.IS_ITERATOR),M=!(!n||!n.INTERRUPTED),C=r(e,S),L=function(t){return i&&f(i,"normal",t),new m(!0,t)},O=function(t){return T?(a(t),M?C(t[0],t[1],L):C(t[0],t[1])):M?C(t,L):C(t)};if(E)i=t;else{if(!(g=d(t)))throw p(s(t)+" is not iterable");if(c(g)){for(y=0,b=l(t);b>y;y++)if((x=O(t[y]))&&u(v,x))return x;return new m(!1)}i=h(t,g)}for(_=i.next;!(w=o(_,i)).done;){try{x=O(w.value)}catch(t){f(i,"throw",t)}if("object"==typeof x&&x&&u(v,x))return x}return new m(!1)}},7093:function(t,e,n){var i=n(8262),r=n(2569),o=n(911);t.exports=function(t,e,n){var a,s;r(t);try{if(!(a=o(t,"return"))){if("throw"===e)throw n;return n}a=i(a,t)}catch(t){s=!0,a=t}if("throw"===e)throw n;if(s)throw a;return r(a),n}},2365:function(t,e,n){"use strict";var i,r,o,a=n(6544),s=n(9212),c=n(3590),l=n(729),u=n(1270),h=n(3649),d=n(6268),f=h("iterator"),p=!1;[].keys&&("next"in(o=[].keys())?(r=l(l(o)))!==Object.prototype&&(i=r):p=!0),null==i||a(function(){var t={};return i[f].call(t)!==t})?i={}:d&&(i=c(i)),s(i[f])||u(i,f,function(){return this}),t.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:p}},339:function(t){t.exports={}},1825:function(t,e,n){var i=n(97);t.exports=function(t){return i(t.length)}},2095:function(t,e,n){var i,r,o,a,s,c,l,u,h=n(7583),d=n(2938),f=n(6683).f,p=n(8117).set,m=n(7020),v=n(3256),g=n(6846),y=n(5354),b=h.MutationObserver||h.WebKitMutationObserver,x=h.document,_=h.process,w=h.Promise,S=f(h,"queueMicrotask"),T=S&&S.value;T||(i=function(){var t,e;for(y&&(t=_.domain)&&t.exit();r;){e=r.fn,r=r.next;try{e()}catch(t){throw r?a():o=void 0,t}}o=void 0,t&&t.enter()},m||y||g||!b||!x?!v&&w&&w.resolve?((l=w.resolve(void 0)).constructor=w,u=d(l.then,l),a=function(){u(i)}):y?a=function(){_.nextTick(i)}:(p=d(p,h),a=function(){p(i)}):(s=!0,c=x.createTextNode(""),new b(i).observe(c,{characterData:!0}),a=function(){c.data=s=!s})),t.exports=T||function(t){var e={fn:t,next:void 0};o&&(o.next=e),r||(r=e,a()),o=e}},783:function(t,e,n){var i=n(7583);t.exports=i.Promise},8640:function(t,e,n){var i=n(4061),r=n(6544);t.exports=!!Object.getOwnPropertySymbols&&!r(function(){var t=Symbol();return!String(t)||!(Object(t)instanceof Symbol)||!Symbol.sham&&i&&i<41})},9491:function(t,e,n){var i=n(7583),r=n(9212),o=n(9734),a=i.WeakMap;t.exports=r(a)&&/native code/.test(o(a))},5084:function(t,e,n){"use strict";var i=n(8257);t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}(t)}},2764:function(t,e,n){var i=n(8320);t.exports=function(t,e){return void 0===t?arguments.length<2?"":e:i(t)}},3590:function(t,e,n){var i,r=n(2569),o=n(8728),a=n(5690),s=n(4639),c=n(482),l=n(6668),u=n(9137)("IE_PROTO"),h=function(){},d=function(t){return"<script>"+t+"<\/script>"},f=function(t){t.write(d("")),t.close();var e=t.parentWindow.Object;return t=null,e},p=function(){try{i=new ActiveXObject("htmlfile")}catch(t){}var t,e;p="undefined"!=typeof document?document.domain&&i?f(i):((e=l("iframe")).style.display="none",c.appendChild(e),e.src=String("javascript:"),(t=e.contentWindow.document).open(),t.write(d("document.F=Object")),t.close(),t.F):f(i);for(var n=a.length;n--;)delete p.prototype[a[n]];return p()};s[u]=!0,t.exports=Object.create||function(t,e){var n;return null!==t?(h.prototype=r(t),n=new h,h.prototype=null,n[u]=t):n=p(),void 0===e?n:o.f(n,e)}},8728:function(t,e,n){var i=n(8494),r=n(7670),o=n(4615),a=n(2569),s=n(2977),c=n(5432);e.f=i&&!r?Object.defineProperties:function(t,e){a(t);for(var n,i=s(e),r=c(e),l=r.length,u=0;l>u;)o.f(t,n=r[u++],i[n]);return t}},4615:function(t,e,n){var i=n(7583),r=n(8494),o=n(275),a=n(7670),s=n(2569),c=n(8734),l=i.TypeError,u=Object.defineProperty,h=Object.getOwnPropertyDescriptor;e.f=r?a?function(t,e,n){if(s(t),e=c(e),s(n),"function"==typeof t&&"prototype"===e&&"value"in n&&"writable"in n&&!n.writable){var i=h(t,e);i&&i.writable&&(t[e]=n.value,n={configurable:"configurable"in n?n.configurable:i.configurable,enumerable:"enumerable"in n?n.enumerable:i.enumerable,writable:!1})}return u(t,e,n)}:u:function(t,e,n){if(s(t),e=c(e),s(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw l("Accessors not supported");return"value"in n&&(t[e]=n.value),t}},6683:function(t,e,n){var i=n(8494),r=n(8262),o=n(112),a=n(4677),s=n(2977),c=n(8734),l=n(2870),u=n(275),h=Object.getOwnPropertyDescriptor;e.f=i?h:function(t,e){if(t=s(t),e=c(e),u)try{return h(t,e)}catch(t){}if(l(t,e))return a(!r(o.f,t,e),t[e])}},3130:function(t,e,n){var i=n(9624),r=n(2977),o=n(9275).f,a=n(4546),s="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return s&&"Window"==i(t)?function(t){try{return o(t)}catch(t){return a(s)}}(t):o(r(t))}},9275:function(t,e,n){var i=n(8356),r=n(5690).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},4012:function(t,e){e.f=Object.getOwnPropertySymbols},729:function(t,e,n){var i=n(7583),r=n(2870),o=n(9212),a=n(1324),s=n(9137),c=n(926),l=s("IE_PROTO"),u=i.Object,h=u.prototype;t.exports=c?u.getPrototypeOf:function(t){var e=a(t);if(r(e,l))return e[l];var n=e.constructor;return o(n)&&e instanceof n?n.prototype:e instanceof u?h:null}},2447:function(t,e,n){var i=n(7386);t.exports=i({}.isPrototypeOf)},8356:function(t,e,n){var i=n(7386),r=n(2870),o=n(2977),a=n(5766).indexOf,s=n(4639),c=i([].push);t.exports=function(t,e){var n,i=o(t),l=0,u=[];for(n in i)!r(s,n)&&r(i,n)&&c(u,n);for(;e.length>l;)r(i,n=e[l++])&&(~a(u,n)||c(u,n));return u}},5432:function(t,e,n){var i=n(8356),r=n(5690);t.exports=Object.keys||function(t){return i(t,r)}},112:function(t,e){"use strict";var n={}.propertyIsEnumerable,i=Object.getOwnPropertyDescriptor,r=i&&!n.call({1:2},1);e.f=r?function(t){var e=i(this,t);return!!e&&e.enumerable}:n},7496:function(t,e,n){var i=n(7386),r=n(2569),o=n(9882);t.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var t,e=!1,n={};try{(t=i(Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set))(n,[]),e=n instanceof Array}catch(t){}return function(n,i){return r(n),o(i),e?t(n,i):n.__proto__=i,n}}():void 0)},3060:function(t,e,n){"use strict";var i=n(8191),r=n(3058);t.exports=i?{}.toString:function(){return"[object "+r(this)+"]"}},6252:function(t,e,n){var i=n(7583),r=n(8262),o=n(9212),a=n(794),s=i.TypeError;t.exports=function(t,e){var n,i;if("string"===e&&o(n=t.toString)&&!a(i=r(n,t)))return i;if(o(n=t.valueOf)&&!a(i=r(n,t)))return i;if("string"!==e&&o(n=t.toString)&&!a(i=r(n,t)))return i;throw s("Can't convert object to primitive value")}},929:function(t,e,n){var i=n(5897),r=n(7386),o=n(9275),a=n(4012),s=n(2569),c=r([].concat);t.exports=i("Reflect","ownKeys")||function(t){var e=o.f(s(t)),n=a.f;return n?c(e,n(t)):e}},1287:function(t,e,n){var i=n(7583);t.exports=i},544:function(t){t.exports=function(t){try{return{error:!1,value:t()}}catch(t){return{error:!0,value:t}}}},5732:function(t,e,n){var i=n(2569),r=n(794),o=n(5084);t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},2723:function(t){var e=function(){this.head=null,this.tail=null};e.prototype={add:function(t){var e={item:t,next:null};this.head?this.tail.next=e:this.head=e,this.tail=e},get:function(){var t=this.head;if(t)return this.head=t.next,this.tail===t&&(this.tail=null),t.item}},t.exports=e},6893:function(t,e,n){var i=n(1270);t.exports=function(t,e,n){for(var r in e)i(t,r,e[r],n);return t}},1270:function(t,e,n){var i=n(7583),r=n(9212),o=n(2870),a=n(57),s=n(460),c=n(9734),l=n(2743),u=n(4340).CONFIGURABLE,h=l.get,d=l.enforce,f=String(String).split("String");(t.exports=function(t,e,n,c){var l,h=!!c&&!!c.unsafe,p=!!c&&!!c.enumerable,m=!!c&&!!c.noTargetGet,v=c&&void 0!==c.name?c.name:e;r(n)&&("Symbol("===String(v).slice(0,7)&&(v="["+String(v).replace(/^Symbol\(([^)]*)\)/,"$1")+"]"),(!o(n,"name")||u&&n.name!==v)&&a(n,"name",v),(l=d(n)).source||(l.source=f.join("string"==typeof v?v:""))),t!==i?(h?!m&&t[e]&&(p=!0):delete t[e],p?t[e]=n:a(t,e,n)):p?t[e]=n:s(e,n)})(Function.prototype,"toString",function(){return r(this)&&h(this).source||c(this)})},3955:function(t,e,n){var i=n(7583).TypeError;t.exports=function(t){if(null==t)throw i("Can't call method on "+t);return t}},460:function(t,e,n){var i=n(7583),r=Object.defineProperty;t.exports=function(t,e){try{r(i,t,{value:e,configurable:!0,writable:!0})}catch(n){i[t]=e}return e}},7730:function(t,e,n){"use strict";var i=n(5897),r=n(4615),o=n(3649),a=n(8494),s=o("species");t.exports=function(t){var e=i(t),n=r.f;a&&e&&!e[s]&&n(e,s,{configurable:!0,get:function(){return this}})}},8821:function(t,e,n){var i=n(4615).f,r=n(2870),o=n(3649)("toStringTag");t.exports=function(t,e,n){t&&!n&&(t=t.prototype),t&&!r(t,o)&&i(t,o,{configurable:!0,value:e})}},9137:function(t,e,n){var i=n(7836),r=n(8284),o=i("keys");t.exports=function(t){return o[t]||(o[t]=r(t))}},1314:function(t,e,n){var i=n(7583),r=n(460),o="__core-js_shared__",a=i[o]||r(o,{});t.exports=a},7836:function(t,e,n){var i=n(6268),r=n(1314);(t.exports=function(t,e){return r[t]||(r[t]=void 0!==e?e:{})})("versions",[]).push({version:"3.21.1",mode:i?"pure":"global",copyright:"© 2014-2022 Denis Pushkarev (zloirock.ru)",license:"https://github.com/zloirock/core-js/blob/v3.21.1/LICENSE",source:"https://github.com/zloirock/core-js"})},564:function(t,e,n){var i=n(2569),r=n(1186),o=n(3649)("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||null==(n=i(a)[o])?e:r(n)}},6389:function(t,e,n){var i=n(7386),r=n(7486),o=n(8320),a=n(3955),s=i("".charAt),c=i("".charCodeAt),l=i("".slice),u=function(t){return function(e,n){var i,u,h=o(a(e)),d=r(n),f=h.length;return d<0||d>=f?t?"":void 0:(i=c(h,d))<55296||i>56319||d+1===f||(u=c(h,d+1))<56320||u>57343?t?s(h,d):i:t?l(h,d,d+2):u-56320+(i-55296<<10)+65536}};t.exports={codeAt:u(!1),charAt:u(!0)}},8117:function(t,e,n){var i,r,o,a,s=n(7583),c=n(1611),l=n(2938),u=n(9212),h=n(2870),d=n(6544),f=n(482),p=n(6917),m=n(6668),v=n(7520),g=n(7020),y=n(5354),b=s.setImmediate,x=s.clearImmediate,_=s.process,w=s.Dispatch,S=s.Function,T=s.MessageChannel,E=s.String,M=0,C={};try{i=s.location}catch(t){}var L=function(t){if(h(C,t)){var e=C[t];delete C[t],e()}},O=function(t){return function(){L(t)}},k=function(t){L(t.data)},P=function(t){s.postMessage(E(t),i.protocol+"//"+i.host)};b&&x||(b=function(t){v(arguments.length,1);var e=u(t)?t:S(t),n=p(arguments,1);return C[++M]=function(){c(e,void 0,n)},r(M),M},x=function(t){delete C[t]},y?r=function(t){_.nextTick(O(t))}:w&&w.now?r=function(t){w.now(O(t))}:T&&!g?(a=(o=new T).port2,o.port1.onmessage=k,r=l(a.postMessage,a)):s.addEventListener&&u(s.postMessage)&&!s.importScripts&&i&&"file:"!==i.protocol&&!d(P)?(r=P,s.addEventListener("message",k,!1)):r="onreadystatechange"in m("script")?function(t){f.appendChild(m("script")).onreadystatechange=function(){f.removeChild(this),L(t)}}:function(t){setTimeout(O(t),0)}),t.exports={set:b,clear:x}},6782:function(t,e,n){var i=n(7486),r=Math.max,o=Math.min;t.exports=function(t,e){var n=i(t);return n<0?r(n+e,0):o(n,e)}},2977:function(t,e,n){var i=n(5044),r=n(3955);t.exports=function(t){return i(r(t))}},7486:function(t){var e=Math.ceil,n=Math.floor;t.exports=function(t){var i=+t;return i!=i||0===i?0:(i>0?n:e)(i)}},97:function(t,e,n){var i=n(7486),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},1324:function(t,e,n){var i=n(7583),r=n(3955),o=i.Object;t.exports=function(t){return o(r(t))}},2670:function(t,e,n){var i=n(7583),r=n(8262),o=n(794),a=n(5871),s=n(911),c=n(6252),l=n(3649),u=i.TypeError,h=l("toPrimitive");t.exports=function(t,e){if(!o(t)||a(t))return t;var n,i=s(t,h);if(i){if(void 0===e&&(e="default"),n=r(i,t,e),!o(n)||a(n))return n;throw u("Can't convert object to primitive value")}return void 0===e&&(e="number"),c(t,e)}},8734:function(t,e,n){var i=n(2670),r=n(5871);t.exports=function(t){var e=i(t,"string");return r(e)?e:e+""}},8191:function(t,e,n){var i={};i[n(3649)("toStringTag")]="z",t.exports="[object z]"===String(i)},8320:function(t,e,n){var i=n(7583),r=n(3058),o=i.String;t.exports=function(t){if("Symbol"===r(t))throw TypeError("Cannot convert a Symbol value to a string");return o(t)}},5637:function(t,e,n){var i=n(7583).String;t.exports=function(t){try{return i(t)}catch(t){return"Object"}}},8284:function(t,e,n){var i=n(7386),r=0,o=Math.random(),a=i(1..toString);t.exports=function(t){return"Symbol("+(void 0===t?"":t)+")_"+a(++r+o,36)}},7786:function(t,e,n){var i=n(8640);t.exports=i&&!Symbol.sham&&"symbol"==typeof Symbol.iterator},7670:function(t,e,n){var i=n(8494),r=n(6544);t.exports=i&&r(function(){return 42!=Object.defineProperty(function(){},"prototype",{value:42,writable:!1}).prototype})},7520:function(t,e,n){var i=n(7583).TypeError;t.exports=function(t,e){if(t<e)throw i("Not enough arguments");return t}},491:function(t,e,n){var i=n(3649);e.f=i},3649:function(t,e,n){var i=n(7583),r=n(7836),o=n(2870),a=n(8284),s=n(8640),c=n(7786),l=r("wks"),u=i.Symbol,h=u&&u.for,d=c?u:u&&u.withoutSetter||a;t.exports=function(t){if(!o(l,t)||!s&&"string"!=typeof l[t]){var e="Symbol."+t;s&&o(u,t)?l[t]=u[t]:l[t]=c&&h?h(e):d(e)}return l[t]}},1719:function(t,e,n){"use strict";var i=n(7263),r=n(7583),o=n(2447),a=n(729),s=n(7496),c=n(3478),l=n(3590),u=n(57),h=n(4677),d=n(1509),f=n(4402),p=n(4026),m=n(2764),v=n(3649),g=n(1178),y=v("toStringTag"),b=r.Error,x=[].push,_=function(t,e){var n,i=arguments.length>2?arguments[2]:void 0,r=o(w,this);s?n=s(new b,r?a(this):w):(n=r?this:l(w),u(n,y,"Error")),void 0!==e&&u(n,"message",m(e)),g&&u(n,"stack",d(n.stack,1)),f(n,i);var c=[];return p(t,x,{that:c}),u(n,"errors",c),n};s?s(_,b):c(_,b,{name:!0});var w=_.prototype=l(b.prototype,{constructor:h(1,_),message:h(1,""),name:h(1,"AggregateError")});i({global:!0},{AggregateError:_})},1646:function(t,e,n){"use strict";var i=n(7263),r=n(7583),o=n(6544),a=n(4521),s=n(794),c=n(1324),l=n(1825),u=n(5999),h=n(4822),d=n(9269),f=n(3649),p=n(4061),m=f("isConcatSpreadable"),v=9007199254740991,g="Maximum allowed index exceeded",y=r.TypeError,b=p>=51||!o(function(){var t=[];return t[m]=!1,t.concat()[0]!==t}),x=d("concat"),_=function(t){if(!s(t))return!1;var e=t[m];return void 0!==e?!!e:a(t)};i({target:"Array",proto:!0,forced:!b||!x},{concat:function(t){var e,n,i,r,o,a=c(this),s=h(a,0),d=0;for(e=-1,i=arguments.length;e<i;e++)if(_(o=-1===e?a:arguments[e])){if(d+(r=l(o))>v)throw y(g);for(n=0;n<r;n++,d++)n in o&&u(s,d,o[n])}else{if(d>=v)throw y(g);u(s,d++,o)}return s.length=d,s}})},5677:function(t,e,n){"use strict";var i=n(2977),r=n(6288),o=n(339),a=n(2743),s=n(4615).f,c=n(9012),l=n(6268),u=n(8494),h="Array Iterator",d=a.set,f=a.getterFor(h);t.exports=c(Array,"Array",function(t,e){d(this,{type:h,target:i(t),index:0,kind:e})},function(){var t=f(this),e=t.target,n=t.kind,i=t.index++;return!e||i>=e.length?(t.target=void 0,{value:void 0,done:!0}):"keys"==n?{value:i,done:!1}:"values"==n?{value:e[i],done:!1}:{value:[i,e[i]],done:!1}},"values");var p=o.Arguments=o.Array;if(r("keys"),r("values"),r("entries"),!l&&u&&"values"!==p.name)try{s(p,"name",{value:"values"})}catch(t){}},6956:function(t,e,n){var i=n(7583);n(8821)(i.JSON,"JSON",!0)},5222:function(t,e,n){n(8821)(Math,"Math",!0)},6394:function(t,e,n){var i=n(8191),r=n(1270),o=n(3060);i||r(Object.prototype,"toString",o,{unsafe:!0})},6969:function(t,e,n){"use strict";var i=n(7263),r=n(8262),o=n(8257),a=n(5084),s=n(544),c=n(4026);i({target:"Promise",stat:!0},{allSettled:function(t){var e=this,n=a.f(e),i=n.resolve,l=n.reject,u=s(function(){var n=o(e.resolve),a=[],s=0,l=1;c(t,function(t){var o=s++,c=!1;l++,r(n,e,t).then(function(t){c||(c=!0,a[o]={status:"fulfilled",value:t},--l||i(a))},function(t){c||(c=!0,a[o]={status:"rejected",reason:t},--l||i(a))})}),--l||i(a)});return u.error&&l(u.value),n.promise}})},2021:function(t,e,n){"use strict";var i=n(7263),r=n(8257),o=n(5897),a=n(8262),s=n(5084),c=n(544),l=n(4026),u="No one promise resolved";i({target:"Promise",stat:!0},{any:function(t){var e=this,n=o("AggregateError"),i=s.f(e),h=i.resolve,d=i.reject,f=c(function(){var i=r(e.resolve),o=[],s=0,c=1,f=!1;l(t,function(t){var r=s++,l=!1;c++,a(i,e,t).then(function(t){l||f||(f=!0,h(t))},function(t){l||f||(l=!0,o[r]=t,--c||d(new n(o,u)))})}),--c||d(new n(o,u))});return f.error&&d(f.value),i.promise}})},8328:function(t,e,n){"use strict";var i=n(7263),r=n(6268),o=n(783),a=n(6544),s=n(5897),c=n(9212),l=n(564),u=n(5732),h=n(1270);if(i({target:"Promise",proto:!0,real:!0,forced:!!o&&a(function(){o.prototype.finally.call({then:function(){}},function(){})})},{finally:function(t){var e=l(this,s("Promise")),n=c(t);return this.then(n?function(n){return u(e,t()).then(function(){return n})}:t,n?function(n){return u(e,t()).then(function(){throw n})}:t)}}),!r&&c(o)){var d=s("Promise").prototype.finally;o.prototype.finally!==d&&h(o.prototype,"finally",d,{unsafe:!0})}},5334:function(t,e,n){"use strict";var i,r,o,a,s=n(7263),c=n(6268),l=n(7583),u=n(5897),h=n(8262),d=n(783),f=n(1270),p=n(6893),m=n(7496),v=n(8821),g=n(7730),y=n(8257),b=n(9212),x=n(794),_=n(4761),w=n(9734),S=n(4026),T=n(3616),E=n(564),M=n(8117).set,C=n(2095),L=n(5732),O=n(2716),k=n(5084),P=n(544),A=n(2723),I=n(2743),D=n(4451),R=n(3649),B=n(2274),N=n(5354),j=n(4061),z=R("species"),F="Promise",V=I.getterFor(F),U=I.set,G=I.getterFor(F),$=d&&d.prototype,H=d,W=$,q=l.TypeError,X=l.document,Y=l.process,K=k.f,Z=K,J=!!(X&&X.createEvent&&l.dispatchEvent),Q=b(l.PromiseRejectionEvent),tt="unhandledrejection",et=!1,nt=D(F,function(){var t=w(H),e=t!==String(H);if(!e&&66===j)return!0;if(c&&!W.finally)return!0;if(j>=51&&/native code/.test(t))return!1;var n=new H(function(t){t(1)}),i=function(t){t(function(){},function(){})};return(n.constructor={})[z]=i,!(et=n.then(function(){})instanceof i)||!e&&B&&!Q}),it=nt||!T(function(t){H.all(t).catch(function(){})}),rt=function(t){var e;return!(!x(t)||!b(e=t.then))&&e},ot=function(t,e){var n,i,r,o=e.value,a=1==e.state,s=a?t.ok:t.fail,c=t.resolve,l=t.reject,u=t.domain;try{s?(a||(2===e.rejection&&ut(e),e.rejection=1),!0===s?n=o:(u&&u.enter(),n=s(o),u&&(u.exit(),r=!0)),n===t.promise?l(q("Promise-chain cycle")):(i=rt(n))?h(i,n,c,l):c(n)):l(o)}catch(t){u&&!r&&u.exit(),l(t)}},at=function(t,e){t.notified||(t.notified=!0,C(function(){for(var n,i=t.reactions;n=i.get();)ot(n,t);t.notified=!1,e&&!t.rejection&&ct(t)}))},st=function(t,e,n){var i,r;J?((i=X.createEvent("Event")).promise=e,i.reason=n,i.initEvent(t,!1,!0),l.dispatchEvent(i)):i={promise:e,reason:n},!Q&&(r=l["on"+t])?r(i):t===tt&&O("Unhandled promise rejection",n)},ct=function(t){h(M,l,function(){var e,n=t.facade,i=t.value;if(lt(t)&&(e=P(function(){N?Y.emit("unhandledRejection",i,n):st(tt,n,i)}),t.rejection=N||lt(t)?2:1,e.error))throw e.value})},lt=function(t){return 1!==t.rejection&&!t.parent},ut=function(t){h(M,l,function(){var e=t.facade;N?Y.emit("rejectionHandled",e):st("rejectionhandled",e,t.value)})},ht=function(t,e,n){return function(i){t(e,i,n)}},dt=function(t,e,n){t.done||(t.done=!0,n&&(t=n),t.value=e,t.state=2,at(t,!0))},ft=function t(e,n,i){if(!e.done){e.done=!0,i&&(e=i);try{if(e.facade===n)throw q("Promise can't be resolved itself");var r=rt(n);r?C(function(){var i={done:!1};try{h(r,n,ht(t,i,e),ht(dt,i,e))}catch(t){dt(i,t,e)}}):(e.value=n,e.state=1,at(e,!1))}catch(t){dt({done:!1},t,e)}}};if(nt&&(W=(H=function(t){_(this,W),y(t),h(i,this);var e=V(this);try{t(ht(ft,e),ht(dt,e))}catch(t){dt(e,t)}}).prototype,(i=function(t){U(this,{type:F,done:!1,notified:!1,parent:!1,reactions:new A,rejection:!1,state:0,value:void 0})}).prototype=p(W,{then:function(t,e){var n=G(this),i=K(E(this,H));return n.parent=!0,i.ok=!b(t)||t,i.fail=b(e)&&e,i.domain=N?Y.domain:void 0,0==n.state?n.reactions.add(i):C(function(){ot(i,n)}),i.promise},catch:function(t){return this.then(void 0,t)}}),r=function(){var t=new i,e=V(t);this.promise=t,this.resolve=ht(ft,e),this.reject=ht(dt,e)},k.f=K=function(t){return t===H||t===o?new r(t):Z(t)},!c&&b(d)&&$!==Object.prototype)){a=$.then,et||(f($,"then",function(t,e){var n=this;return new H(function(t,e){h(a,n,t,e)}).then(t,e)},{unsafe:!0}),f($,"catch",W.catch,{unsafe:!0}));try{delete $.constructor}catch(t){}m&&m($,W)}s({global:!0,wrap:!0,forced:nt},{Promise:H}),v(H,F,!1,!0),g(F),o=u(F),s({target:F,stat:!0,forced:nt},{reject:function(t){var e=K(this);return h(e.reject,void 0,t),e.promise}}),s({target:F,stat:!0,forced:c||nt},{resolve:function(t){return L(c&&this===o?H:this,t)}}),s({target:F,stat:!0,forced:it},{all:function(t){var e=this,n=K(e),i=n.resolve,r=n.reject,o=P(function(){var n=y(e.resolve),o=[],a=0,s=1;S(t,function(t){var c=a++,l=!1;s++,h(n,e,t).then(function(t){l||(l=!0,o[c]=t,--s||i(o))},r)}),--s||i(o)});return o.error&&r(o.value),n.promise},race:function(t){var e=this,n=K(e),i=n.reject,r=P(function(){var r=y(e.resolve);S(t,function(t){h(r,e,t).then(n.resolve,i)})});return r.error&&i(r.value),n.promise}})},2257:function(t,e,n){var i=n(7263),r=n(7583),o=n(8821);i({global:!0},{Reflect:{}}),o(r.Reflect,"Reflect",!0)},2129:function(t,e,n){"use strict";var i=n(6389).charAt,r=n(8320),o=n(2743),a=n(9012),s="String Iterator",c=o.set,l=o.getterFor(s);a(String,"String",function(t){c(this,{type:s,string:r(t),index:0})},function(){var t,e=l(this),n=e.string,r=e.index;return r>=n.length?{value:void 0,done:!0}:(t=i(n,r),e.index+=t.length,{value:t,done:!1})})},462:function(t,e,n){n(2219)("asyncIterator")},8407:function(t,e,n){"use strict";var i=n(7263),r=n(8494),o=n(7583),a=n(7386),s=n(2870),c=n(9212),l=n(2447),u=n(8320),h=n(4615).f,d=n(3478),f=o.Symbol,p=f&&f.prototype;if(r&&c(f)&&(!("description"in p)||void 0!==f().description)){var m={},v=function(){var t=arguments.length<1||void 0===arguments[0]?void 0:u(arguments[0]),e=l(p,this)?new f(t):void 0===t?f():f(t);return""===t&&(m[e]=!0),e};d(v,f),v.prototype=p,p.constructor=v;var g="Symbol(test)"==String(f("test")),y=a(p.toString),b=a(p.valueOf),x=/^Symbol\((.*)\)[^)]+$/,_=a("".replace),w=a("".slice);h(p,"description",{configurable:!0,get:function(){var t=b(this),e=y(t);if(s(m,t))return"";var n=g?w(e,7,-1):_(e,x,"$1");return""===n?void 0:n}}),i({global:!0,forced:!0},{Symbol:v})}},2429:function(t,e,n){n(2219)("hasInstance")},1172:function(t,e,n){n(2219)("isConcatSpreadable")},8288:function(t,e,n){n(2219)("iterator")},2004:function(t,e,n){"use strict";var i=n(7263),r=n(7583),o=n(5897),a=n(1611),s=n(8262),c=n(7386),l=n(6268),u=n(8494),h=n(8640),d=n(6544),f=n(2870),p=n(4521),m=n(9212),v=n(794),g=n(2447),y=n(5871),b=n(2569),x=n(1324),_=n(2977),w=n(8734),S=n(8320),T=n(4677),E=n(3590),M=n(5432),C=n(9275),L=n(3130),O=n(4012),k=n(6683),P=n(4615),A=n(8728),I=n(112),D=n(6917),R=n(1270),B=n(7836),N=n(9137),j=n(4639),z=n(8284),F=n(3649),V=n(491),U=n(2219),G=n(8821),$=n(2743),H=n(4805).forEach,W=N("hidden"),q="Symbol",X=F("toPrimitive"),Y=$.set,K=$.getterFor(q),Z=Object.prototype,J=r.Symbol,Q=J&&J.prototype,tt=r.TypeError,et=r.QObject,nt=o("JSON","stringify"),it=k.f,rt=P.f,ot=L.f,at=I.f,st=c([].push),ct=B("symbols"),lt=B("op-symbols"),ut=B("string-to-symbol-registry"),ht=B("symbol-to-string-registry"),dt=B("wks"),ft=!et||!et.prototype||!et.prototype.findChild,pt=u&&d(function(){return 7!=E(rt({},"a",{get:function(){return rt(this,"a",{value:7}).a}})).a})?function(t,e,n){var i=it(Z,e);i&&delete Z[e],rt(t,e,n),i&&t!==Z&&rt(Z,e,i)}:rt,mt=function(t,e){var n=ct[t]=E(Q);return Y(n,{type:q,tag:t,description:e}),u||(n.description=e),n},vt=function(t,e,n){t===Z&&vt(lt,e,n),b(t);var i=w(e);return b(n),f(ct,i)?(n.enumerable?(f(t,W)&&t[W][i]&&(t[W][i]=!1),n=E(n,{enumerable:T(0,!1)})):(f(t,W)||rt(t,W,T(1,{})),t[W][i]=!0),pt(t,i,n)):rt(t,i,n)},gt=function(t,e){b(t);var n=_(e),i=M(n).concat(_t(n));return H(i,function(e){u&&!s(yt,n,e)||vt(t,e,n[e])}),t},yt=function(t){var e=w(t),n=s(at,this,e);return!(this===Z&&f(ct,e)&&!f(lt,e))&&(!(n||!f(this,e)||!f(ct,e)||f(this,W)&&this[W][e])||n)},bt=function(t,e){var n=_(t),i=w(e);if(n!==Z||!f(ct,i)||f(lt,i)){var r=it(n,i);return!r||!f(ct,i)||f(n,W)&&n[W][i]||(r.enumerable=!0),r}},xt=function(t){var e=ot(_(t)),n=[];return H(e,function(t){f(ct,t)||f(j,t)||st(n,t)}),n},_t=function(t){var e=t===Z,n=ot(e?lt:_(t)),i=[];return H(n,function(t){!f(ct,t)||e&&!f(Z,t)||st(i,ct[t])}),i};if(h||(R(Q=(J=function(){if(g(Q,this))throw tt("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?S(arguments[0]):void 0,e=z(t);return u&&ft&&pt(Z,e,{configurable:!0,set:function t(n){this===Z&&s(t,lt,n),f(this,W)&&f(this[W],e)&&(this[W][e]=!1),pt(this,e,T(1,n))}}),mt(e,t)}).prototype,"toString",function(){return K(this).tag}),R(J,"withoutSetter",function(t){return mt(z(t),t)}),I.f=yt,P.f=vt,A.f=gt,k.f=bt,C.f=L.f=xt,O.f=_t,V.f=function(t){return mt(F(t),t)},u&&(rt(Q,"description",{configurable:!0,get:function(){return K(this).description}}),l||R(Z,"propertyIsEnumerable",yt,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!h,sham:!h},{Symbol:J}),H(M(dt),function(t){U(t)}),i({target:q,stat:!0,forced:!h},{for:function(t){var e=S(t);if(f(ut,e))return ut[e];var n=J(e);return ut[e]=n,ht[n]=e,n},keyFor:function(t){if(!y(t))throw tt(t+" is not a symbol");if(f(ht,t))return ht[t]},useSetter:function(){ft=!0},useSimple:function(){ft=!1}}),i({target:"Object",stat:!0,forced:!h,sham:!u},{create:function(t,e){return void 0===e?E(t):gt(E(t),e)},defineProperty:vt,defineProperties:gt,getOwnPropertyDescriptor:bt}),i({target:"Object",stat:!0,forced:!h},{getOwnPropertyNames:xt,getOwnPropertySymbols:_t}),i({target:"Object",stat:!0,forced:d(function(){O.f(1)})},{getOwnPropertySymbols:function(t){return O.f(x(t))}}),nt&&i({target:"JSON",stat:!0,forced:!h||d(function(){var t=J();return"[null]"!=nt([t])||"{}"!=nt({a:t})||"{}"!=nt(Object(t))})},{stringify:function(t,e,n){var i=D(arguments),r=e;if((v(e)||void 0!==t)&&!y(t))return p(e)||(e=function(t,e){if(m(r)&&(e=s(r,this,t,e)),!y(e))return e}),i[1]=e,a(nt,null,i)}}),!Q[X]){var wt=Q.valueOf;R(Q,X,function(t){return s(wt,this)})}G(J,q),j[W]=!0},8201:function(t,e,n){n(2219)("matchAll")},1274:function(t,e,n){n(2219)("match")},6626:function(t,e,n){n(2219)("replace")},3211:function(t,e,n){n(2219)("search")},9952:function(t,e,n){n(2219)("species")},15:function(t,e,n){n(2219)("split")},9831:function(t,e,n){n(2219)("toPrimitive")},7521:function(t,e,n){n(2219)("toStringTag")},2972:function(t,e,n){n(2219)("unscopables")},4655:function(t,e,n){var i=n(7583),r=n(6778),o=n(9307),a=n(5677),s=n(57),c=n(3649),l=c("iterator"),u=c("toStringTag"),h=a.values,d=function(t,e){if(t){if(t[l]!==h)try{s(t,l,h)}catch(e){t[l]=h}if(t[u]||s(t,u,e),r[e])for(var n in a)if(t[n]!==a[n])try{s(t,n,a[n])}catch(e){t[n]=a[n]}}};for(var f in r)d(i[f]&&i[f].prototype,f);d(o,"DOMTokenList")},8765:function(t,e,n){var i=n(5036);n(4655),t.exports=i},5441:function(t,e,n){var i=n(2582);n(4655),t.exports=i},7705:function(t){"use strict";t.exports=function(t){var e=[];return e.toString=function(){return this.map(function(e){var n="",i=void 0!==e[5];return e[4]&&(n+="@supports (".concat(e[4],") {")),e[2]&&(n+="@media ".concat(e[2]," {")),i&&(n+="@layer".concat(e[5].length>0?" ".concat(e[5]):""," {")),n+=t(e),i&&(n+="}"),e[2]&&(n+="}"),e[4]&&(n+="}"),n}).join("")},e.i=function(t,n,i,r,o){"string"==typeof t&&(t=[[null,t,void 0]]);var a={};if(i)for(var s=0;s<this.length;s++){var c=this[s][0];null!=c&&(a[c]=!0)}for(var l=0;l<t.length;l++){var u=[].concat(t[l]);i&&a[u[0]]||(void 0!==o&&(void 0===u[5]||(u[1]="@layer".concat(u[5].length>0?" ".concat(u[5]):""," {").concat(u[1],"}")),u[5]=o),n&&(u[2]?(u[1]="@media ".concat(u[2]," {").concat(u[1],"}"),u[2]=n):u[2]=n),r&&(u[4]?(u[1]="@supports (".concat(u[4],") {").concat(u[1],"}"),u[4]=r):u[4]="".concat(r)),e.push(u))}},e}},6738:function(t){"use strict";t.exports=function(t){return t[1]}},8679:function(t){var e=window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver,n=window.WeakMap;if(void 0===n){var i=Object.defineProperty,r=Date.now()%1e9;(n=function(){this.name="__st"+(1e9*Math.random()>>>0)+r+++"__"}).prototype={set:function(t,e){var n=t[this.name];return n&&n[0]===t?n[1]=e:i(t,this.name,{value:[t,e],writable:!0}),this},get:function(t){var e;return(e=t[this.name])&&e[0]===t?e[1]:void 0},delete:function(t){var e=t[this.name];if(!e)return!1;var n=e[0]===t;return e[0]=e[1]=void 0,n},has:function(t){var e=t[this.name];return!!e&&e[0]===t}}}var o=new n,a=window.msSetImmediate;if(!a){var s=[],c=String(Math.random());window.addEventListener("message",function(t){if(t.data===c){var e=s;s=[],e.forEach(function(t){t()})}}),a=function(t){s.push(t),window.postMessage(c,"*")}}var l=!1,u=[];function h(){l=!1;var t=u;u=[],t.sort(function(t,e){return t.uid_-e.uid_});var e=!1;t.forEach(function(t){var n=t.takeRecords();!function(t){t.nodes_.forEach(function(e){var n=o.get(e);n&&n.forEach(function(e){e.observer===t&&e.removeTransientObservers()})})}(t),n.length&&(t.callback_(n,t),e=!0)}),e&&h()}function d(t,e){for(var n=t;n;n=n.parentNode){var i=o.get(n);if(i)for(var r=0;r<i.length;r++){var a=i[r],s=a.options;if(n===t||s.subtree){var c=e(s);c&&a.enqueue(c)}}}}var f,p,m=0;function v(t){this.callback_=t,this.nodes_=[],this.records_=[],this.uid_=++m}function g(t,e){this.type=t,this.target=e,this.addedNodes=[],this.removedNodes=[],this.previousSibling=null,this.nextSibling=null,this.attributeName=null,this.attributeNamespace=null,this.oldValue=null}function y(t,e){return f=new g(t,e)}function b(t){return p||((n=new g((e=f).type,e.target)).addedNodes=e.addedNodes.slice(),n.removedNodes=e.removedNodes.slice(),n.previousSibling=e.previousSibling,n.nextSibling=e.nextSibling,n.attributeName=e.attributeName,n.attributeNamespace=e.attributeNamespace,n.oldValue=e.oldValue,(p=n).oldValue=t,p);var e,n}function x(t,e,n){this.observer=t,this.target=e,this.options=n,this.transientObservedNodes=[]}v.prototype={observe:function(t,e){var n;if(n=t,t=window.ShadowDOMPolyfill&&window.ShadowDOMPolyfill.wrapIfNeeded(n)||n,!e.childList&&!e.attributes&&!e.characterData||e.attributeOldValue&&!e.attributes||e.attributeFilter&&e.attributeFilter.length&&!e.attributes||e.characterDataOldValue&&!e.characterData)throw new SyntaxError;var i,r=o.get(t);r||o.set(t,r=[]);for(var a=0;a<r.length;a++)if(r[a].observer===this){(i=r[a]).removeListeners(),i.options=e;break}i||(i=new x(this,t,e),r.push(i),this.nodes_.push(t)),i.addListeners()},disconnect:function(){this.nodes_.forEach(function(t){for(var e=o.get(t),n=0;n<e.length;n++){var i=e[n];if(i.observer===this){i.removeListeners(),e.splice(n,1);break}}},this),this.records_=[]},takeRecords:function(){var t=this.records_;return this.records_=[],t}},x.prototype={enqueue:function(t){var e,n=this.observer.records_,i=n.length;if(n.length>0){var r=function(t,e){return t===e?t:!p||(n=t)!==p&&n!==f?null:p;var n}(n[i-1],t);if(r)return void(n[i-1]=r)}else e=this.observer,u.push(e),l||(l=!0,a(h));n[i]=t},addListeners:function(){this.addListeners_(this.target)},addListeners_:function(t){var e=this.options;e.attributes&&t.addEventListener("DOMAttrModified",this,!0),e.characterData&&t.addEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.addEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.addEventListener("DOMNodeRemoved",this,!0)},removeListeners:function(){this.removeListeners_(this.target)},removeListeners_:function(t){var e=this.options;e.attributes&&t.removeEventListener("DOMAttrModified",this,!0),e.characterData&&t.removeEventListener("DOMCharacterDataModified",this,!0),e.childList&&t.removeEventListener("DOMNodeInserted",this,!0),(e.childList||e.subtree)&&t.removeEventListener("DOMNodeRemoved",this,!0)},addTransientObserver:function(t){if(t!==this.target){this.addListeners_(t),this.transientObservedNodes.push(t);var e=o.get(t);e||o.set(t,e=[]),e.push(this)}},removeTransientObservers:function(){var t=this.transientObservedNodes;this.transientObservedNodes=[],t.forEach(function(t){this.removeListeners_(t);for(var e=o.get(t),n=0;n<e.length;n++)if(e[n]===this){e.splice(n,1);break}},this)},handleEvent:function(t){switch(t.stopImmediatePropagation(),t.type){case"DOMAttrModified":var e=t.attrName,n=t.relatedNode.namespaceURI,i=t.target;(o=new y("attributes",i)).attributeName=e,o.attributeNamespace=n;var r=null;"undefined"!=typeof MutationEvent&&t.attrChange===MutationEvent.ADDITION||(r=t.prevValue),d(i,function(t){if(t.attributes&&(!t.attributeFilter||!t.attributeFilter.length||-1!==t.attributeFilter.indexOf(e)||-1!==t.attributeFilter.indexOf(n)))return t.attributeOldValue?b(r):o});break;case"DOMCharacterDataModified":var o=y("characterData",i=t.target);r=t.prevValue,d(i,function(t){if(t.characterData)return t.characterDataOldValue?b(r):o});break;case"DOMNodeRemoved":this.addTransientObserver(t.target);case"DOMNodeInserted":i=t.relatedNode;var a,s,c=t.target;"DOMNodeInserted"===t.type?(a=[c],s=[]):(a=[],s=[c]);var l=c.previousSibling,u=c.nextSibling;(o=y("childList",i)).addedNodes=a,o.removedNodes=s,o.previousSibling=l,o.nextSibling=u,d(i,function(t){if(t.childList)return o})}f=p=void 0}},e||(e=v),t.exports=e},7588:function(t){var e=function(t){"use strict";var e,n=Object.prototype,i=n.hasOwnProperty,r="function"==typeof Symbol?Symbol:{},o=r.iterator||"@@iterator",a=r.asyncIterator||"@@asyncIterator",s=r.toStringTag||"@@toStringTag";function c(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{c({},"")}catch(t){c=function(t,e,n){return t[e]=n}}function l(t,e,n,i){var r=e&&e.prototype instanceof v?e:v,o=Object.create(r.prototype),a=new L(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw o;return k()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=E(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=u(t,e,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function u(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}t.wrap=l;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",m={};function v(){}function g(){}function y(){}var b={};c(b,o,function(){return this});var x=Object.getPrototypeOf,_=x&&x(x(O([])));_&&_!==n&&i.call(_,o)&&(b=_);var w=y.prototype=v.prototype=Object.create(b);function S(t){["next","throw","return"].forEach(function(e){c(t,e,function(t){return this._invoke(e,t)})})}function T(t,e){function n(r,o,a,s){var c=u(t[r],t,o);if("throw"!==c.type){var l=c.arg,h=l.value;return h&&"object"==typeof h&&i.call(h,"__await")?e.resolve(h.__await).then(function(t){n("next",t,a,s)},function(t){n("throw",t,a,s)}):e.resolve(h).then(function(t){l.value=t,a(l)},function(t){return n("throw",t,a,s)})}s(c.arg)}var r;this._invoke=function(t,i){function o(){return new e(function(e,r){n(t,i,e,r)})}return r=r?r.then(o,o):o()}}function E(t,n){var i=t.iterator[n.method];if(i===e){if(n.delegate=null,"throw"===n.method){if(t.iterator.return&&(n.method="return",n.arg=e,E(t,n),"throw"===n.method))return m;n.method="throw",n.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=u(i,t.iterator,n.arg);if("throw"===r.type)return n.method="throw",n.arg=r.arg,n.delegate=null,m;var o=r.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,m):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,m)}function M(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function L(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(M,this),this.reset(!0)}function O(t){if(t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,a=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return a.next=a}}return{next:k}}function k(){return{value:e,done:!0}}return g.prototype=y,c(w,"constructor",y),c(y,"constructor",g),g.displayName=c(y,s,"GeneratorFunction"),t.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===g||"GeneratorFunction"===(e.displayName||e.name))},t.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,y):(t.__proto__=y,c(t,s,"GeneratorFunction")),t.prototype=Object.create(w),t},t.awrap=function(t){return{__await:t}},S(T.prototype),c(T.prototype,a,function(){return this}),t.AsyncIterator=T,t.async=function(e,n,i,r,o){void 0===o&&(o=Promise);var a=new T(l(e,n,i,r),o);return t.isGeneratorFunction(n)?a:a.next().then(function(t){return t.done?t.value:a.next()})},S(w),c(w,s,"Generator"),c(w,o,function(){return this}),c(w,"toString",function(){return"[object Generator]"}),t.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},t.values=O,L.prototype={constructor:L,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(C),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return s.type="throw",s.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return r("end");if(a.tryLoc<=this.prev){var c=i.call(a,"catchLoc"),l=i.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return r(a.catchLoc,!0);if(this.prev<a.finallyLoc)return r(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return r(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return r(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var o=r;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;C(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:O(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),m}},t}(t.exports);try{regeneratorRuntime=e}catch(t){"object"==typeof globalThis?globalThis.regeneratorRuntime=e:Function("r","regeneratorRuntime = r")(e)}},8702:function(t,e,n){"use strict";n.d(e,{Z:function(){return R}});var i=n(4296),r=n(6464),o=n(6881),a=n(2942),s=n(7003),c=n(3379),l=n.n(c),u=n(7795),h=n.n(u),d=n(569),f=n.n(d),p=n(3565),m=n.n(p),v=n(9216),g=n.n(v),y=n(4589),b=n.n(y),x=n(5313),_={};x.Z&&x.Z.locals&&(_.locals=x.Z.locals);var w,S=0,T={};T.styleTagTransform=b(),T.setAttributes=m(),T.insert=f().bind(null,"head"),T.domAPI=h(),T.insertStyleElement=g(),_.use=function(t){return T.options=t||{},S++||(w=l()(x.Z,T)),_},_.unuse=function(){S>0&&!--S&&(w(),w=null)};var E=_;function M(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M599.99999 832.000004h47.999999a24 24 0 0 0 23.999999-24V376.000013a24 24 0 0 0-23.999999-24h-47.999999a24 24 0 0 0-24 24v431.999991a24 24 0 0 0 24 24zM927.999983 160.000017h-164.819997l-67.999998-113.399998A95.999998 95.999998 0 0 0 612.819989 0.00002H411.179993a95.999998 95.999998 0 0 0-82.319998 46.599999L260.819996 160.000017H95.999999A31.999999 31.999999 0 0 0 64 192.000016v32a31.999999 31.999999 0 0 0 31.999999 31.999999h32v671.999987a95.999998 95.999998 0 0 0 95.999998 95.999998h575.999989a95.999998 95.999998 0 0 0 95.999998-95.999998V256.000015h31.999999a31.999999 31.999999 0 0 0 32-31.999999V192.000016a31.999999 31.999999 0 0 0-32-31.999999zM407.679993 101.820018A12 12 0 0 1 417.999993 96.000018h187.999996a12 12 0 0 1 10.3 5.82L651.219989 160.000017H372.779994zM799.999986 928.000002H223.999997V256.000015h575.999989z m-423.999992-95.999998h47.999999a24 24 0 0 0 24-24V376.000013a24 24 0 0 0-24-24h-47.999999a24 24 0 0 0-24 24v431.999991a24 24 0 0 0 24 24z"),(0,a.Ljt)(e,"class","vc-icon-delete"),(0,a.Ljt)(e,"viewBox","0 0 1024 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function C(t){var e,n,i;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),i=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M874.154197 150.116875A511.970373 511.970373 0 1 0 1023.993986 511.991687a511.927744 511.927744 0 0 0-149.839789-361.874812z m-75.324866 648.382129A405.398688 405.398688 0 1 1 917.422301 511.991687a405.313431 405.313431 0 0 1-118.59297 286.507317z"),(0,a.Ljt)(i,"d","M725.039096 299.274605a54.351559 54.351559 0 0 0-76.731613 0l-135.431297 135.431297L377.274375 299.274605a54.436817 54.436817 0 0 0-76.944756 76.987385l135.388668 135.431297-135.388668 135.473925a54.436817 54.436817 0 0 0 76.944756 76.987385l135.388668-135.431297 135.431297 135.473926a54.436817 54.436817 0 0 0 76.731613-76.987385l-135.388668-135.473926 135.388668-135.431296a54.479445 54.479445 0 0 0 0.213143-77.030014z"),(0,a.Ljt)(e,"viewBox","0 0 1024 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n),(0,a.R3I)(e,i)},d:function(t){t&&(0,a.ogt)(e)}}}function L(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"fill-rule","evenodd"),(0,a.Ljt)(n,"d","M5.75 1a.75.75 0 00-.75.75v3c0 .414.336.75.75.75h4.5a.75.75 0 00.75-.75v-3a.75.75 0 00-.75-.75h-4.5zm.75 3V2.5h3V4h-3zm-2.874-.467a.75.75 0 00-.752-1.298A1.75 1.75 0 002 3.75v9.5c0 .966.784 1.75 1.75 1.75h8.5A1.75 1.75 0 0014 13.25v-9.5a1.75 1.75 0 00-.874-1.515.75.75 0 10-.752 1.298.25.25 0 01.126.217v9.5a.25.25 0 01-.25.25h-8.5a.25.25 0 01-.25-.25v-9.5a.25.25 0 01.126-.217z"),(0,a.Ljt)(e,"class","vc-icon-copy"),(0,a.Ljt)(e,"viewBox","0 0 16 16")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function O(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"fill-rule","evenodd"),(0,a.Ljt)(n,"d","M13.78 4.22a.75.75 0 010 1.06l-7.25 7.25a.75.75 0 01-1.06 0L2.22 9.28a.75.75 0 011.06-1.06L6 10.94l6.72-6.72a.75.75 0 011.06 0z"),(0,a.Ljt)(e,"class","vc-icon-suc"),(0,a.Ljt)(e,"viewBox","0 0 16 16")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function k(t){var e,n,i;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),i=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M776.533333 1024 162.133333 1024C72.533333 1024 0 951.466667 0 861.866667L0 247.466667C0 157.866667 72.533333 85.333333 162.133333 85.333333L469.333333 85.333333c25.6 0 42.666667 17.066667 42.666667 42.666667s-17.066667 42.666667-42.666667 42.666667L162.133333 170.666667C119.466667 170.666667 85.333333 204.8 85.333333 247.466667l0 610.133333c0 42.666667 34.133333 76.8 76.8 76.8l610.133333 0c42.666667 0 76.8-34.133333 76.8-76.8L849.066667 554.666667c0-25.6 17.066667-42.666667 42.666667-42.666667s42.666667 17.066667 42.666667 42.666667l0 307.2C938.666667 951.466667 866.133333 1024 776.533333 1024z"),(0,a.Ljt)(i,"d","M256 810.666667c-12.8 0-21.333333-4.266667-29.866667-12.8C217.6 789.333333 213.333333 772.266667 213.333333 759.466667l42.666667-213.333333c0-8.533333 4.266667-17.066667 12.8-21.333333l512-512c17.066667-17.066667 42.666667-17.066667 59.733333 0l170.666667 170.666667c17.066667 17.066667 17.066667 42.666667 0 59.733333l-512 512c-4.266667 4.266667-12.8 8.533333-21.333333 12.8l-213.333333 42.666667C260.266667 810.666667 260.266667 810.666667 256 810.666667zM337.066667 576l-25.6 136.533333 136.533333-25.6L921.6 213.333333 810.666667 102.4 337.066667 576z"),(0,a.Ljt)(e,"class","vc-icon-edit"),(0,a.Ljt)(e,"viewBox","0 0 1024 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n),(0,a.R3I)(e,i)},d:function(t){t&&(0,a.ogt)(e)}}}function P(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M581.338005 987.646578c-2.867097 4.095853-4.573702 8.669555-8.191705 12.287558a83.214071 83.214071 0 0 1-60.959939 24.029001 83.214071 83.214071 0 0 1-61.028203-24.029001c-3.618003-3.618003-5.324608-8.191705-8.123441-12.15103L24.370323 569.050448a83.418864 83.418864 0 0 1 117.892289-117.89229l369.923749 369.92375L1308.829682 24.438587A83.418864 83.418864 0 0 1 1426.721971 142.194348L581.338005 987.646578z"),(0,a.Ljt)(e,"class","vc-icon-don"),(0,a.Ljt)(e,"viewBox","0 0 1501 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function A(t){var e,n;return{c:function(){e=(0,a.bi5)("svg"),n=(0,a.bi5)("path"),(0,a.Ljt)(n,"d","M894.976 574.464q0 78.848-29.696 148.48t-81.408 123.392-121.856 88.064-151.04 41.472q-5.12 1.024-9.216 1.536t-9.216 0.512l-177.152 0q-17.408 0-34.304-6.144t-30.208-16.896-22.016-25.088-8.704-29.696 8.192-29.696 21.504-24.576 29.696-16.384 33.792-6.144l158.72 1.024q54.272 0 102.4-19.968t83.968-53.76 56.32-79.36 20.48-97.792q0-49.152-18.432-92.16t-50.688-76.8-75.264-54.784-93.184-26.112q-2.048 0-2.56 0.512t-2.56 0.512l-162.816 0 0 80.896q0 17.408-13.824 25.6t-44.544-10.24q-8.192-5.12-26.112-17.92t-41.984-30.208-50.688-36.864l-51.2-38.912q-15.36-12.288-26.624-22.016t-11.264-24.064q0-12.288 12.8-25.6t29.184-26.624q18.432-15.36 44.032-35.84t50.688-39.936 45.056-35.328 28.16-22.016q24.576-17.408 39.936-7.168t16.384 30.72l0 81.92 162.816 0q5.12 0 10.752 1.024t10.752 2.048q79.872 8.192 149.504 41.984t121.344 87.552 80.896 123.392 29.184 147.456z"),(0,a.Ljt)(e,"class","vc-icon-cancel"),(0,a.Ljt)(e,"viewBox","0 0 1024 1024"),(0,a.Ljt)(e,"width","200"),(0,a.Ljt)(e,"height","200")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function I(t){var e,n,i,r,o,s,c,l,u,h="delete"===t[0]&&M(),d="clear"===t[0]&&C(),f="copy"===t[0]&&L(),p="success"===t[0]&&O(),m="edit"===t[0]&&k(),v="done"===t[0]&&P(),g="cancel"===t[0]&&A();return{c:function(){e=(0,a.bGB)("i"),h&&h.c(),n=(0,a.DhX)(),d&&d.c(),i=(0,a.DhX)(),f&&f.c(),r=(0,a.DhX)(),p&&p.c(),o=(0,a.DhX)(),m&&m.c(),s=(0,a.DhX)(),v&&v.c(),c=(0,a.DhX)(),g&&g.c(),(0,a.Ljt)(e,"class","vc-icon")},m:function(y,b){(0,a.$Tr)(y,e,b),h&&h.m(e,null),(0,a.R3I)(e,n),d&&d.m(e,null),(0,a.R3I)(e,i),f&&f.m(e,null),(0,a.R3I)(e,r),p&&p.m(e,null),(0,a.R3I)(e,o),m&&m.m(e,null),(0,a.R3I)(e,s),v&&v.m(e,null),(0,a.R3I)(e,c),g&&g.m(e,null),l||(u=(0,a.oLt)(e,"click",t[1]),l=!0)},p:function(t,a){a[0],"delete"===t[0]?h||((h=M()).c(),h.m(e,n)):h&&(h.d(1),h=null),"clear"===t[0]?d||((d=C()).c(),d.m(e,i)):d&&(d.d(1),d=null),"copy"===t[0]?f||((f=L()).c(),f.m(e,r)):f&&(f.d(1),f=null),"success"===t[0]?p||((p=O()).c(),p.m(e,o)):p&&(p.d(1),p=null),"edit"===t[0]?m||((m=k()).c(),m.m(e,s)):m&&(m.d(1),m=null),"done"===t[0]?v||((v=P()).c(),v.m(e,c)):v&&(v.d(1),v=null),"cancel"===t[0]?g||((g=A()).c(),g.m(e,null)):g&&(g.d(1),g=null)},i:a.ZTd,o:a.ZTd,d:function(t){t&&(0,a.ogt)(e),h&&h.d(),d&&d.d(),f&&f.d(),p&&p.d(),m&&m.d(),v&&v.d(),g&&g.d(),l=!1,u()}}}function D(t,e,n){var i=e.name;return(0,s.H3)(function(){E.use()}),(0,s.ev)(function(){E.unuse()}),t.$$set=function(t){"name"in t&&n(0,i=t.name)},[i,function(e){a.cKT.call(this,t,e)}]}var R=function(t){function e(e){var n;return n=t.call(this)||this,(0,a.S1n)((0,r.Z)(n),e,D,I,a.N8,{name:0}),n}return(0,o.Z)(e,t),(0,i.Z)(e,[{key:"name",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({name:t}),(0,a.yl1)()}}]),e}(a.f_C)},3903:function(__unused_webpack_module,__webpack_exports__,__webpack_require__){"use strict";var _babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__=__webpack_require__(6464),_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_6__=__webpack_require__(6881),svelte_internal__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__(2942),svelte__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__(7003),_component_icon_icon_svelte__WEBPACK_IMPORTED_MODULE_2__=__webpack_require__(8702),_logTool__WEBPACK_IMPORTED_MODULE_5__=__webpack_require__(8665),_log_model__WEBPACK_IMPORTED_MODULE_3__=__webpack_require__(5629),_logCommand_less__WEBPACK_IMPORTED_MODULE_4__=__webpack_require__(3411);function get_each_context(t,e,n){var i=t.slice();return i[28]=e[n],i}function create_if_block_2(t){var e,n,i;return{c:function(){(e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("li")).textContent="Close",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(e,"class","vc-cmd-prompted-hide")},m:function(r,o){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(r,e,o),n||(i=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"click",t[5]),n=!0)},p:svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ZTd,d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),n=!1,i()}}}function create_else_block(t){var e;return{c:function(){(e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("li")).textContent="No Prompted"},m:function(t,n){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(t,e,n)},p:svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ZTd,d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e)}}}function create_each_block(t){var e,n,i,r,o=t[28].text+"";function a(){return t[14](t[28])}return{c:function(){e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("li"),n=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.fLW)(o)},m:function(t,o){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(t,e,o),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,n),i||(r=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"click",a),i=!0)},p:function(e,i){t=e,8&i&&o!==(o=t[28].text+"")&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.rTO)(n,o)},d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),i=!1,r()}}}function create_if_block_1(t){var e,n,i,r,o;return n=new _component_icon_icon_svelte__WEBPACK_IMPORTED_MODULE_2__.Z({props:{name:"clear"}}),{c:function(){e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("div"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.YCL)(n.$$.fragment),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(e,"class","vc-cmd-clear-btn")},m:function(a,s){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(a,e,s),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.yef)(n,e,null),i=!0,r||(o=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"click",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.AT7)(t[17])),r=!0)},p:svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ZTd,i:function(t){i||((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(n.$$.fragment,t),i=!0)},o:function(t){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(n.$$.fragment,t),i=!1},d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.vpE)(n),r=!1,o()}}}function create_if_block(t){var e,n,i,r,o;return n=new _component_icon_icon_svelte__WEBPACK_IMPORTED_MODULE_2__.Z({props:{name:"clear"}}),{c:function(){e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("div"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.YCL)(n.$$.fragment),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(e,"class","vc-cmd-clear-btn")},m:function(a,s){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(a,e,s),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.yef)(n,e,null),i=!0,r||(o=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"click",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.AT7)(t[19])),r=!0)},p:svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ZTd,i:function(t){i||((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(n.$$.fragment,t),i=!0)},o:function(t){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(n.$$.fragment,t),i=!1},d:function(t){t&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.vpE)(n),r=!1,o()}}}function create_fragment(t){for(var e,n,i,r,o,a,s,c,l,u,h,d,f,p,m,v,g,y,b,x,_,w=t[3].length>0&&create_if_block_2(t),S=t[3],T=[],E=0;E<S.length;E+=1)T[E]=create_each_block(get_each_context(t,S,E));var M=null;S.length||(M=create_else_block(t));var C=t[1].length>0&&create_if_block_1(t),L=t[4].length>0&&create_if_block(t);return{c:function(){e=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("form"),n=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("ul"),w&&w.c(),i=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)();for(var b=0;b<T.length;b+=1)T[b].c();M&&M.c(),r=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),o=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("div"),a=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("textarea"),s=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),C&&C.c(),c=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),(l=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("button")).textContent="OK",u=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),h=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("form"),d=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("ul"),f=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),p=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("div"),m=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("textarea"),v=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),L&&L.c(),g=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.DhX)(),(y=(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.bGB)("button")).textContent="Filter",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(n,"class","vc-cmd-prompted"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(n,"style",t[2]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(a,"class","vc-cmd-input"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(a,"placeholder","command..."),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(o,"class","vc-cmd-input-wrap"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(l,"class","vc-cmd-btn"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(l,"type","submit"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(e,"class","vc-cmd"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(d,"class","vc-cmd-prompted"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(m,"class","vc-cmd-input"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(m,"placeholder","filter..."),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(p,"class","vc-cmd-input-wrap"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(y,"class","vc-cmd-btn"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(y,"type","submit"),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(h,"class","vc-cmd vc-filter")},m:function(S,E){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(S,e,E),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,n),w&&w.m(n,null),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(n,i);for(var O=0;O<T.length;O+=1)T[O].m(n,null);M&&M.m(n,null),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,r),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,o),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(o,a),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.BmG)(a,t[1]),t[16](a),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(o,s),C&&C.m(o,null),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,c),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(e,l),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(S,u,E),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.$Tr)(S,h,E),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,d),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,f),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,p),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(p,m),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.BmG)(m,t[4]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(p,v),L&&L.m(p,null),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,g),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.R3I)(h,y),b=!0,x||(_=[(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"input",t[15]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"keydown",t[10]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"keyup",t[11]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"focus",t[8]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(a,"blur",t[9]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(e,"submit",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.AT7)(t[12])),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(m,"input",t[18]),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.oLt)(h,"submit",(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.AT7)(t[13]))],x=!0)},p:function(t,e){var r=e[0];if(t[3].length>0?w?w.p(t,r):((w=create_if_block_2(t)).c(),w.m(n,i)):w&&(w.d(1),w=null),136&r){var s;for(S=t[3],s=0;s<S.length;s+=1){var c=get_each_context(t,S,s);T[s]?T[s].p(c,r):(T[s]=create_each_block(c),T[s].c(),T[s].m(n,null))}for(;s<T.length;s+=1)T[s].d(1);T.length=S.length,!S.length&&M?M.p(t,r):S.length?M&&(M.d(1),M=null):((M=create_else_block(t)).c(),M.m(n,null))}(!b||4&r)&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ljt)(n,"style",t[2]),2&r&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.BmG)(a,t[1]),t[1].length>0?C?(C.p(t,r),2&r&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(C,1)):((C=create_if_block_1(t)).c(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(C,1),C.m(o,null)):C&&((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.dvw)(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(C,1,1,function(){C=null}),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.gbL)()),16&r&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.BmG)(m,t[4]),t[4].length>0?L?(L.p(t,r),16&r&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(L,1)):((L=create_if_block(t)).c(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(L,1),L.m(p,null)):L&&((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.dvw)(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(L,1,1,function(){L=null}),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.gbL)())},i:function(t){b||((0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(C),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.Ui)(L),b=!0)},o:function(t){(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(C),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.etI)(L),b=!1},d:function(n){n&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(e),w&&w.d(),(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.RMB)(T,n),M&&M.d(),t[16](null),C&&C.d(),n&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(u),n&&(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.ogt)(h),L&&L.d(),x=!1,(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.j7q)(_)}}}function instance($$self,$$props,$$invalidate){var module=_log_model__WEBPACK_IMPORTED_MODULE_3__.W.getSingleton(_log_model__WEBPACK_IMPORTED_MODULE_3__.W,"VConsoleLogModel"),cachedObjKeys={},dispatch=(0,svelte__WEBPACK_IMPORTED_MODULE_1__.x)(),cmdElement,cmdValue="",promptedStyle="",promptedList=[],filterValue="";(0,svelte__WEBPACK_IMPORTED_MODULE_1__.H3)(function(){_logCommand_less__WEBPACK_IMPORTED_MODULE_4__.Z.use()}),(0,svelte__WEBPACK_IMPORTED_MODULE_1__.ev)(function(){_logCommand_less__WEBPACK_IMPORTED_MODULE_4__.Z.unuse()});var evalCommand=function(t){module.evalCommand(t)},moveCursorToPos=function(t,e){t.setSelectionRange&&setTimeout(function(){t.setSelectionRange(e,e)},1)},clearPromptedList=function(){$$invalidate(2,promptedStyle="display: none;"),$$invalidate(3,promptedList=[])},updatePromptedList=function updatePromptedList(identifier){if(""!==cmdValue){identifier||(identifier=(0,_logTool__WEBPACK_IMPORTED_MODULE_5__.oj)(cmdValue));var objName="window",keyName=cmdValue;if("."!==identifier.front.text&&"["!==identifier.front.text||(objName=identifier.front.before,keyName=""!==identifier.back.text?identifier.back.before:identifier.front.after),keyName=keyName.replace(/(^['"]+)|(['"']+$)/g,""),!cachedObjKeys[objName])try{cachedObjKeys[objName]=Object.getOwnPropertyNames(eval("("+objName+")")).sort()}catch(t){}try{if(cachedObjKeys[objName])for(var i=0;i<cachedObjKeys[objName].length&&!(promptedList.length>=100);i++){var key=String(cachedObjKeys[objName][i]),keyPattern=new RegExp("^"+keyName,"i");if(keyPattern.test(key)){var completeCmd=objName;"."===identifier.front.text||""===identifier.front.text?completeCmd+="."+key:"["===identifier.front.text&&(completeCmd+="['"+key+"']"),promptedList.push({text:key,value:completeCmd})}}}catch(t){}if(promptedList.length>0){var m=Math.min(200,31*(promptedList.length+1));$$invalidate(2,promptedStyle="display: block; height: "+m+"px; margin-top: "+(-m-2)+"px;"),$$invalidate(3,promptedList)}else clearPromptedList()}else clearPromptedList()},autoCompleteBrackets=function(t,e){if(8!==e&&46!==e&&""===t.front.after)switch(t.front.text){case"[":return $$invalidate(1,cmdValue+="]"),void moveCursorToPos(cmdElement,cmdValue.length-1);case"(":return $$invalidate(1,cmdValue+=")"),void moveCursorToPos(cmdElement,cmdValue.length-1);case"{":return $$invalidate(1,cmdValue+="}"),void moveCursorToPos(cmdElement,cmdValue.length-1)}},dispatchFilterEvent=function(){dispatch("filterText",{filterText:filterValue})},onTapClearText=function(t){"cmd"===t?($$invalidate(1,cmdValue=""),clearPromptedList()):"filter"===t&&($$invalidate(4,filterValue=""),dispatchFilterEvent())},onTapPromptedItem=function onTapPromptedItem(item){var type="";try{type=eval("typeof "+item.value)}catch(t){}$$invalidate(1,cmdValue=item.value+("function"===type?"()":"")),clearPromptedList()},onCmdFocus=function(){updatePromptedList()},onCmdBlur=function(){},onCmdKeyDown=function(t){13===t.keyCode&&(t.preventDefault(),onCmdSubmit())},onCmdKeyUp=function(t){$$invalidate(3,promptedList=[]);var e=(0,_logTool__WEBPACK_IMPORTED_MODULE_5__.oj)(t.target.value);autoCompleteBrackets(e,t.keyCode),updatePromptedList(e)},onCmdSubmit=function(){""!==cmdValue&&evalCommand(cmdValue),clearPromptedList()},onFilterSubmit=function(t){dispatchFilterEvent()},click_handler=function(t){return onTapPromptedItem(t)};function textarea0_input_handler(){cmdValue=this.value,$$invalidate(1,cmdValue)}function textarea0_binding(t){svelte_internal__WEBPACK_IMPORTED_MODULE_0__.VnY[t?"unshift":"push"](function(){$$invalidate(0,cmdElement=t)})}var click_handler_1=function(){return onTapClearText("cmd")};function textarea1_input_handler(){filterValue=this.value,$$invalidate(4,filterValue)}var click_handler_2=function(){return onTapClearText("filter")};return[cmdElement,cmdValue,promptedStyle,promptedList,filterValue,clearPromptedList,onTapClearText,onTapPromptedItem,onCmdFocus,onCmdBlur,onCmdKeyDown,onCmdKeyUp,onCmdSubmit,onFilterSubmit,click_handler,textarea0_input_handler,textarea0_binding,click_handler_1,textarea1_input_handler,click_handler_2]}var LogCommand=function(t){function e(e){var n;return n=t.call(this)||this,(0,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.S1n)((0,_babel_runtime_helpers_assertThisInitialized__WEBPACK_IMPORTED_MODULE_7__.Z)(n),e,instance,create_fragment,svelte_internal__WEBPACK_IMPORTED_MODULE_0__.N8,{}),n}return(0,_babel_runtime_helpers_inheritsLoose__WEBPACK_IMPORTED_MODULE_6__.Z)(e,t),e}(svelte_internal__WEBPACK_IMPORTED_MODULE_0__.f_C);__webpack_exports__.Z=LogCommand},4687:function(t,e,n){"use strict";n.d(e,{x:function(){return r}});var i=n(3313),r=function(){var t=(0,i.fZ)({updateTime:0}),e=t.subscribe,n=t.set,r=t.update;return{subscribe:e,set:n,update:r,updateTime:function(){r(function(t){return t.updateTime=Date.now(),t})}}}()},643:function(t,e,n){"use strict";n.d(e,{N:function(){return i}});var i=function(){function t(){this._onDataUpdateCallbacks=[]}return t.getSingleton=function(e,n){return n||(n=e.toString()),t.singleton[n]||(t.singleton[n]=new e),t.singleton[n]},t}();i.singleton={}},5103:function(t,e,n){"use strict";function i(t){var e=t>0?new Date(t):new Date,n=e.getDate()<10?"0"+e.getDate():e.getDate(),i=e.getMonth()<9?"0"+(e.getMonth()+1):e.getMonth()+1,r=e.getFullYear(),o=e.getHours()<10?"0"+e.getHours():e.getHours(),a=e.getMinutes()<10?"0"+e.getMinutes():e.getMinutes(),s=e.getSeconds()<10?"0"+e.getSeconds():e.getSeconds(),c=e.getMilliseconds()<10?"0"+e.getMilliseconds():e.getMilliseconds();return c<100&&(c="0"+c),{time:+e,year:r,month:i,day:n,hour:o,minute:a,second:s,millisecond:c}}function r(t){return"[object Number]"===Object.prototype.toString.call(t)}function o(t){return"bigint"==typeof t}function a(t){return"string"==typeof t}function s(t){return"[object Array]"===Object.prototype.toString.call(t)}function c(t){return"boolean"==typeof t}function l(t){return void 0===t}function u(t){return null===t}function h(t){return"symbol"==typeof t}function d(t){return!("[object Object]"!==Object.prototype.toString.call(t)&&(r(t)||o(t)||a(t)||c(t)||s(t)||u(t)||f(t)||l(t)||h(t)))}function f(t){return"function"==typeof t}function p(t){return"object"==typeof HTMLElement?t instanceof HTMLElement:t&&"object"==typeof t&&null!==t&&1===t.nodeType&&"string"==typeof t.nodeName}function m(t){var e=Object.prototype.toString.call(t);return"[object Window]"===e||"[object DOMWindow]"===e||"[object global]"===e}function v(t){return null!=t&&"string"!=typeof t&&"boolean"!=typeof t&&"number"!=typeof t&&"function"!=typeof t&&"symbol"!=typeof t&&"bigint"!=typeof t&&"undefined"!=typeof Symbol&&"function"==typeof t[Symbol.iterator]}function g(t){return Object.prototype.toString.call(t).replace(/\[object (.*)\]/,"$1")}n.d(e,{C4:function(){return o},DV:function(){return b},FJ:function(){return m},Ft:function(){return u},HD:function(){return a},H_:function(){return N},KL:function(){return C},Kn:function(){return d},MH:function(){return P},PO:function(){return x},QI:function(){return B},QK:function(){return A},TW:function(){return v},_3:function(){return i},_D:function(){return I},cF:function(){return R},hZ:function(){return M},hj:function(){return r},id:function(){return L},jn:function(){return c},kJ:function(){return s},kK:function(){return p},mf:function(){return f},o8:function(){return l},po:function(){return D},qr:function(){return k},qt:function(){return j},rE:function(){return S},yk:function(){return h},zl:function(){return g}});var y=/(function|class) ([^ \{\()}]{1,})[\(| ]/;function b(t){var e;if(null==t)return"";var n=y.exec((null==t||null==(e=t.constructor)?void 0:e.toString())||"");return n&&n.length>1?n[2]:""}function x(t){var e,n=Object.prototype.hasOwnProperty;if(!t||"object"!=typeof t||t.nodeType||m(t))return!1;try{if(t.constructor&&!n.call(t,"constructor")&&!n.call(t.constructor.prototype,"isPrototypeOf"))return!1}catch(t){return!1}for(e in t);return void 0===e||n.call(t,e)}var _=/[\n\t]/g,w=function(t){return{"\n":"\\n","\t":"\\t"}[t]};function S(t){return"string"!=typeof t?t:String(t).replace(_,w)}var T=function(t,e){void 0===e&&(e=0);var n="";return a(t)?(e>0&&(t=L(t,e)),n+='"'+S(t)+'"'):h(t)?n+=String(t).replace(/^Symbol\((.*)\)$/i,'Symbol("$1")'):f(t)?n+=(t.name||"function")+"()":o(t)?n+=String(t)+"n":n+=String(t),n},E=function t(e,n,i){if(void 0===i&&(i=0),d(e)||s(e))if(n.circularFinder(e)){var r="";if(s(e))r="(Circular Array)";else if(d(e)){var o;r="(Circular "+((null==(o=e.constructor)?void 0:o.name)||"Object")+")"}n.ret+=n.standardJSON?'"'+r+'"':r}else{var c="",l="";if(n.pretty){for(var u=0;u<=i;u++)c+="  ";l="\n"}var f="{",p="}";s(e)&&(f="[",p="]"),n.ret+=f+l;for(var m=P(e),v=0;v<m.length;v++){var g=m[v];n.ret+=c;try{s(e)||(d(g)||s(g)||h(g)?n.ret+=Object.prototype.toString.call(g):a(g)&&n.standardJSON?n.ret+='"'+g+'"':n.ret+=g,n.ret+=": ")}catch(t){continue}try{var y=e[g];if(s(y))n.maxDepth>-1&&i>=n.maxDepth?n.ret+="Array("+y.length+")":t(y,n,i+1);else if(d(y)){var b;n.maxDepth>-1&&i>=n.maxDepth?n.ret+=((null==(b=y.constructor)?void 0:b.name)||"Object")+" {}":t(y,n,i+1)}else n.ret+=T(y,n.keyMaxLen)}catch(t){n.ret+=n.standardJSON?'"(PARSE_ERROR)"':"(PARSE_ERROR)"}if(n.keyMaxLen>0&&n.ret.length>=10*n.keyMaxLen){n.ret+=", (...)";break}v<m.length-1&&(n.ret+=", "),n.ret+=l}n.ret+=c.substring(0,c.length-2)+p}else n.ret+=T(e,n.keyMaxLen)};function M(t,e){void 0===e&&(e={maxDepth:-1,keyMaxLen:-1,pretty:!1,standardJSON:!1});var n,i=Object.assign({ret:"",maxDepth:-1,keyMaxLen:-1,pretty:!1,standardJSON:!1,circularFinder:(n=new WeakSet,function(t){if("object"==typeof t&&null!==t){if(n.has(t))return!0;n.add(t)}return!1})},e);return E(t,i),i.ret}function C(t){return t<=0?"":t>=1e6?(t/1e3/1e3).toFixed(1)+" MB":t>=1e3?(t/1e3).toFixed(1)+" KB":t+" B"}function L(t,e){return t.length>e&&(t=t.substring(0,e)+"...("+C(function(t){try{return encodeURI(t).split(/%(?:u[0-9A-F]{2})?[0-9A-F]{2}|./).length-1}catch(t){return 0}}(t))+")"),t}var O=function(t,e){return String(t).localeCompare(String(e),void 0,{numeric:!0,sensitivity:"base"})};function k(t){return t.sort(O)}function P(t){return d(t)||s(t)?Object.keys(t):[]}function A(t){var e=P(t);return function(t){return d(t)||s(t)?Object.getOwnPropertyNames(t):[]}(t).filter(function(t){return-1===e.indexOf(t)})}function I(t){return d(t)||s(t)?Object.getOwnPropertySymbols(t):[]}function D(t,e){window.localStorage&&(t="vConsole_"+t,localStorage.setItem(t,e))}function R(t){if(window.localStorage)return t="vConsole_"+t,localStorage.getItem(t)}function B(t){return void 0===t&&(t=""),"__vc_"+t+Math.random().toString(36).substring(2,8)}function N(){return"undefined"!=typeof window&&!!window.__wxConfig&&!!window.wx&&!!window.__virtualDOM__}function j(t){if(N()&&"function"==typeof window.wx[t])try{for(var e,n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return(e=window.wx[t]).call.apply(e,[window.wx].concat(i))}catch(e){return void console.debug("[vConsole] Fail to call wx."+t+"():",e)}}},5629:function(t,e,n){"use strict";n.d(e,{W:function(){return p}});var i=n(8270),r=n(6881),o=n(5103),a=n(643),s=n(4687),c=n(8665),l=n(9923);function u(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function h(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?u(Object(n),!0).forEach(function(e){(0,i.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function d(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return f(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?f(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function f(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var p=function(t){function e(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(e=t.call.apply(t,[this].concat(i))||this).LOG_METHODS=["log","info","warn","debug","error"],e.ADDED_LOG_PLUGIN_ID=[],e.maxLogNumber=1e3,e.logCounter=0,e.groupLevel=0,e.groupLabelCollapsedStack=[],e.pluginPattern=void 0,e.logQueue=[],e.flushLogScheduled=!1,e.origConsole={},e}(0,r.Z)(e,t);var n=e.prototype;return n.bindPlugin=function(t){return!(this.ADDED_LOG_PLUGIN_ID.indexOf(t)>-1||(0===this.ADDED_LOG_PLUGIN_ID.length&&this.mockConsole(),l.O.create(t),this.ADDED_LOG_PLUGIN_ID.push(t),this.pluginPattern=new RegExp("^\\[("+this.ADDED_LOG_PLUGIN_ID.join("|")+")\\]$","i"),0))},n.unbindPlugin=function(t){var e=this.ADDED_LOG_PLUGIN_ID.indexOf(t);return-1!==e&&(this.ADDED_LOG_PLUGIN_ID.splice(e,1),l.O.delete(t),0===this.ADDED_LOG_PLUGIN_ID.length&&this.unmockConsole(),!0)},n.mockConsole=function(){var t=this;"function"!=typeof this.origConsole.log&&(window.console?(this.LOG_METHODS.map(function(e){t.origConsole[e]=window.console[e]}),this.origConsole.time=window.console.time,this.origConsole.timeEnd=window.console.timeEnd,this.origConsole.clear=window.console.clear,this.origConsole.group=window.console.group,this.origConsole.groupCollapsed=window.console.groupCollapsed,this.origConsole.groupEnd=window.console.groupEnd):window.console={},this._mockConsoleLog(),this._mockConsoleTime(),this._mockConsoleGroup(),this._mockConsoleClear(),window._vcOrigConsole=this.origConsole)},n._mockConsoleLog=function(){var t=this;this.LOG_METHODS.map(function(e){window.console[e]=function(){for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];t.addLog({type:e,origData:i||[]})}.bind(window.console)})},n._mockConsoleTime=function(){var t=this,e={};window.console.time=function(t){void 0===t&&(t=""),e[t]=Date.now()}.bind(window.console),window.console.timeEnd=function(n){void 0===n&&(n="");var i=e[n],r=0;i&&(r=Date.now()-i,delete e[n]),t.addLog({type:"log",origData:[n+": "+r+"ms"]})}.bind(window.console)},n._mockConsoleGroup=function(){var t=this,e=function(e){return function(n){void 0===n&&(n="console.group");var i=Symbol(n);t.groupLabelCollapsedStack.push({label:i,collapsed:e}),t.addLog({type:"log",origData:[n],isGroupHeader:e?2:1,isGroupCollapsed:!1},{noOrig:!0}),t.groupLevel++,e?t.origConsole.groupCollapsed(n):t.origConsole.group(n)}.bind(window.console)};window.console.group=e(!1),window.console.groupCollapsed=e(!0),window.console.groupEnd=function(){t.groupLabelCollapsedStack.pop(),t.groupLevel=Math.max(0,t.groupLevel-1),t.origConsole.groupEnd()}.bind(window.console)},n._mockConsoleClear=function(){var t=this;window.console.clear=function(){t.resetGroup(),t.clearLog();for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];t.callOriginalConsole.apply(t,["clear"].concat(n))}.bind(window.console)},n.unmockConsole=function(){for(var t in this.origConsole)window.console[t]=this.origConsole[t],delete this.origConsole[t];window._vcOrigConsole&&delete window._vcOrigConsole},n.callOriginalConsole=function(t){if("function"==typeof this.origConsole[t]){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];this.origConsole[t].apply(window.console,n)}},n.resetGroup=function(){for(;this.groupLevel>0;)console.groupEnd()},n.clearLog=function(){var t=l.O.getAll();for(var e in t)this.clearPluginLog(e)},n.clearPluginLog=function(t){var e=this.logQueue;this.logQueue=[];for(var n,i=d(e);!(n=i()).done;){var r=n.value;this._extractPluginIdByLog(r)!==t&&this.logQueue.push(r)}l.O.get(t).update(function(t){return t.logList.length=0,t}),s.x.updateTime()},n.addLog=function(t,e){void 0===t&&(t={type:"log",origData:[],isGroupHeader:0,isGroupCollapsed:!1});var n=this.groupLabelCollapsedStack[this.groupLabelCollapsedStack.length-2],i=this.groupLabelCollapsedStack[this.groupLabelCollapsedStack.length-1],r={_id:o.QI(),type:t.type,cmdType:null==e?void 0:e.cmdType,toggle:{},date:Date.now(),data:(0,c.b1)(t.origData||[]),repeated:0,groupLabel:null==i?void 0:i.label,groupLevel:this.groupLevel,groupHeader:t.isGroupHeader,groupCollapsed:t.isGroupHeader?!(null==n||!n.collapsed):!(null==i||!i.collapsed)};this._signalLog(r),null!=e&&e.noOrig||this.callOriginalConsole.apply(this,[t.type].concat(t.origData))},n.evalCommand=function(t){this.addLog({type:"log",origData:[t]},{cmdType:"input"});var e=void 0;try{e=eval.call(window,"("+t+")")}catch(n){try{e=eval.call(window,t)}catch(t){}}this.addLog({type:"log",origData:[e]},{cmdType:"output"})},n._signalLog=function(t){var e=this;this.flushLogScheduled||(this.flushLogScheduled=!0,window.requestAnimationFrame(function(){e.flushLogScheduled=!1,e._flushLogs()})),this.logQueue.push(t)},n._flushLogs=function(){var t=this,e=this.logQueue;this.logQueue=[];for(var n,i={},r=d(e);!(n=r()).done;){var o=n.value,a=this._extractPluginIdByLog(o);(i[a]=i[a]||[]).push(o)}for(var c=function(e){var n=i[e];l.O.get(e).update(function(e){for(var i,r=[].concat(e.logList),o=d(n);!(i=o()).done;){var a=i.value;t._isRepeatedLog(r,a)?t._updateLastLogRepeated(r):r.push(a)}return{logList:r=t._limitLogListLength(r)}})},u=0,h=Object.keys(i);u<h.length;u++)c(h[u]);s.x.updateTime()},n._extractPluginIdByLog=function(t){var e,n="default",i=null==(e=t.data[0])?void 0:e.origData;if(o.HD(i)){var r=i.match(this.pluginPattern);if(null!==r&&r.length>1){var a=r[1].toLowerCase();this.ADDED_LOG_PLUGIN_ID.indexOf(a)>-1&&(n=a,t.data.shift())}}return n},n._isRepeatedLog=function(t,e){var n=t[t.length-1];if(!n)return!1;var i=!1;if(e.type===n.type&&e.cmdType===n.cmdType&&e.data.length===n.data.length){i=!0;for(var r=0;r<e.data.length;r++)if(e.data[r].origData!==n.data[r].origData){i=!1;break}}return i},n._updateLastLogRepeated=function(t){var e=t[t.length-1],n=e.repeated?e.repeated+1:2;return t[t.length-1]=h(h({},e),{},{repeated:n}),t},n._limitLogListLength=function(t){var e=t.length,n=this.maxLogNumber;return e>n?t.slice(e-n,e):t},e}(a.N)},9923:function(t,e,n){"use strict";n.d(e,{O:function(){return r}});var i=n(3313),r=function(){function t(){}return t.create=function(t){return this.storeMap[t]||(this.storeMap[t]=(0,i.fZ)({logList:[]})),this.storeMap[t]},t.delete=function(t){this.storeMap[t]&&delete this.storeMap[t]},t.get=function(t){return this.storeMap[t]},t.getRaw=function(t){return(0,i.U2)(this.storeMap[t])},t.getAll=function(){return this.storeMap},t}();r.storeMap={}},8665:function(t,e,n){"use strict";n.d(e,{HX:function(){return u},LH:function(){return o},Tg:function(){return f},b1:function(){return d},oj:function(){return l}});var i=n(5103),r=function(t){var e=i.hZ(t,{maxDepth:0}),n=e.substring(0,36),r=i.DV(t);return e.length>36&&(n+="..."),i.rE(r+" "+n)},o=function(t,e){void 0===e&&(e=!0);var n="undefined",o=t;return t instanceof f?(n="uninvocatable",o="(...)"):i.kJ(t)?(n="array",o=r(t)):i.Kn(t)?(n="object",o=r(t)):i.HD(t)?(n="string",o=i.rE(t),e&&(o='"'+o+'"')):i.hj(t)?(n="number",o=String(t)):i.C4(t)?(n="bigint",o=String(t)+"n"):i.jn(t)?(n="boolean",o=String(t)):i.Ft(t)?(n="null",o="null"):i.o8(t)?(n="undefined",o="undefined"):i.mf(t)?(n="function",o=(t.name||"function")+"()"):i.yk(t)&&(n="symbol",o=String(t)),{text:o,valueType:n}},a=[".","[","(","{","}"],s=["]",")","}"],c=function(t,e,n){void 0===n&&(n=0);for(var i={text:"",pos:-1,before:"",after:""},r=t.length-1;r>=n;r--){var o=e.indexOf(t[r]);if(o>-1){i.text=e[o],i.pos=r,i.before=t.substring(n,r),i.after=t.substring(r+1,t.length);break}}return i},l=function(t){var e=c(t,a,0);return{front:e,back:c(t,s,e.pos+1)}},u=function(t,e){if(""===e)return!0;for(var n=0;n<t.data.length;n++)if("string"==typeof t.data[n].origData&&t.data[n].origData.indexOf(e)>-1)return!0;return!1},h=/(\%[csdo] )|( \%[csdo])/g,d=function(t){if(h.lastIndex=0,i.HD(t[0])&&h.test(t[0])){for(var e,n=[].concat(t),r=n.shift().split(h).filter(function(t){return void 0!==t&&""!==t}),o=n,a=[],s=!1,c="";r.length>0;){var l=r.shift();if(/ ?\%c ?/.test(l)?o.length>0?"string"!=typeof(c=o.shift())&&(c=""):(e=l,c="",s=!0):/ ?\%[sd] ?/.test(l)?(e=o.length>0?i.Kn(o[0])?i.DV(o.shift()):String(o.shift()):l,s=!0):/ ?\%o ?/.test(l)?(e=o.length>0?o.shift():l,s=!0):(e=l,s=!0),s){var u={origData:e};c&&(u.style=c),a.push(u),s=!1,e=void 0,c=""}}for(var d=0;d<o.length;d++)a.push({origData:o[d]});return a}for(var f=[],p=0;p<t.length;p++)f.push({origData:t[p]});return f},f=function(){}},5313:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,".vc-icon {\n  word-break: normal;\n  white-space: normal;\n  overflow: visible;\n}\n.vc-icon svg {\n  fill: var(--VC-FG-2);\n  height: 1em;\n  width: 1em;\n  vertical-align: -0.11em;\n}\n.vc-icon .vc-icon-delete {\n  vertical-align: -0.11em;\n}\n.vc-icon .vc-icon-copy {\n  height: 1.1em;\n  width: 1.1em;\n  vertical-align: -0.16em;\n}\n.vc-icon .vc-icon-suc {\n  fill: var(--VC-TEXTGREEN);\n  height: 1.1em;\n  width: 1.1em;\n  vertical-align: -0.16em;\n}\n",""]),e.Z=a},1142:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,".vc-scroller-viewport {\n  position: relative;\n  overflow: hidden;\n  height: 100%;\n}\n.vc-scroller-contents {\n  min-height: 100%;\n  will-change: transform;\n}\n.vc-scroller-items {\n  will-change: height;\n  position: relative;\n}\n.vc-scroller-item {\n  display: none;\n  position: absolute;\n  left: 0;\n  right: 0;\n}\n.vc-scroller-viewport.static .vc-scroller-item {\n  display: block;\n  position: static;\n}\n.vc-scroller-scrollbar-track {\n  width: 4px;\n  position: absolute;\n  top: 0;\n  right: 0;\n  bottom: 0;\n  padding: 1px;\n}\n.vc-scroller-scrollbar-thumb {\n  position: relative;\n  width: 100%;\n  height: 100%;\n  background: rgba(0, 0, 0, 0.5);\n  border-radius: 999px;\n}\n",""]),e.Z=a},3283:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,'#__vconsole {\n  --VC-BG-0: #ededed;\n  --VC-BG-1: #f7f7f7;\n  --VC-BG-2: #fff;\n  --VC-BG-3: #f7f7f7;\n  --VC-BG-4: #4c4c4c;\n  --VC-BG-5: #fff;\n  --VC-BG-6: rgba(0, 0, 0, 0.1);\n  --VC-FG-0: rgba(0, 0, 0, 0.9);\n  --VC-FG-HALF: rgba(0, 0, 0, 0.9);\n  --VC-FG-1: rgba(0, 0, 0, 0.5);\n  --VC-FG-2: rgba(0, 0, 0, 0.3);\n  --VC-FG-3: rgba(0, 0, 0, 0.1);\n  --VC-RED: #fa5151;\n  --VC-ORANGE: #fa9d3b;\n  --VC-YELLOW: #ffc300;\n  --VC-GREEN: #91d300;\n  --VC-LIGHTGREEN: #95ec69;\n  --VC-BRAND: #07c160;\n  --VC-BLUE: #10aeff;\n  --VC-INDIGO: #1485ee;\n  --VC-PURPLE: #6467f0;\n  --VC-LINK: #576b95;\n  --VC-TEXTGREEN: #06ae56;\n  --VC-FG: black;\n  --VC-BG: white;\n  --VC-BG-COLOR-ACTIVE: #ececec;\n  --VC-WARN-BG: #fff3cc;\n  --VC-WARN-BORDER: #ffe799;\n  --VC-ERROR-BG: #fedcdc;\n  --VC-ERROR-BORDER: #fdb9b9;\n  --VC-DOM-TAG-NAME-COLOR: #881280;\n  --VC-DOM-ATTRIBUTE-NAME-COLOR: #994500;\n  --VC-DOM-ATTRIBUTE-VALUE-COLOR: #1a1aa6;\n  --VC-CODE-KEY-FG: #881391;\n  --VC-CODE-PRIVATE-KEY-FG: #cfa1d3;\n  --VC-CODE-FUNC-FG: #0d22aa;\n  --VC-CODE-NUMBER-FG: #1c00cf;\n  --VC-CODE-STR-FG: #c41a16;\n  --VC-CODE-NULL-FG: #808080;\n  color: var(--VC-FG-0);\n  font-size: 13px;\n  font-family: Helvetica Neue, Helvetica, Arial, sans-serif;\n  -webkit-user-select: auto;\n  /* global */\n}\n#__vconsole .vc-max-height {\n  max-height: 19.23076923em;\n}\n#__vconsole .vc-max-height-line {\n  max-height: 6.30769231em;\n}\n#__vconsole .vc-min-height {\n  min-height: 3.07692308em;\n}\n#__vconsole dd,\n#__vconsole dl,\n#__vconsole pre {\n  margin: 0;\n}\n#__vconsole pre {\n  white-space: pre-wrap;\n}\n#__vconsole i {\n  font-style: normal;\n}\n.vc-table {\n  height: 100%;\n}\n.vc-table .vc-table-row {\n  line-height: 1.5;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: row;\n  -moz-box-orient: horizontal;\n  -moz-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-flex-wrap: wrap;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  overflow: hidden;\n  border-bottom: 1px solid var(--VC-FG-3);\n}\n.vc-table .vc-table-row.vc-left-border {\n  border-left: 1px solid var(--VC-FG-3);\n}\n.vc-table .vc-table-row-icon {\n  margin-left: 4px;\n}\n.vc-table .vc-table-col {\n  -webkit-box-flex: 1;\n  -webkit-flex: 1;\n  -moz-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  padding: 0.23076923em 0.30769231em;\n  border-left: 1px solid var(--VC-FG-3);\n  overflow: auto;\n}\n.vc-table .vc-table-col:first-child {\n  border: none;\n}\n.vc-table .vc-table-col-value {\n  white-space: pre-wrap;\n  word-break: break-word;\n  /*white-space: nowrap;\n    text-overflow: ellipsis;*/\n  -webkit-overflow-scrolling: touch;\n}\n.vc-table .vc-small .vc-table-col {\n  padding: 0 0.30769231em;\n  font-size: 0.92307692em;\n}\n.vc-table .vc-table-col-2 {\n  -webkit-box-flex: 2;\n  -webkit-flex: 2;\n  -moz-box-flex: 2;\n  -ms-flex: 2;\n  flex: 2;\n}\n.vc-table .vc-table-col-3 {\n  -webkit-box-flex: 3;\n  -webkit-flex: 3;\n  -moz-box-flex: 3;\n  -ms-flex: 3;\n  flex: 3;\n}\n.vc-table .vc-table-col-4 {\n  -webkit-box-flex: 4;\n  -webkit-flex: 4;\n  -moz-box-flex: 4;\n  -ms-flex: 4;\n  flex: 4;\n}\n.vc-table .vc-table-col-5 {\n  -webkit-box-flex: 5;\n  -webkit-flex: 5;\n  -moz-box-flex: 5;\n  -ms-flex: 5;\n  flex: 5;\n}\n.vc-table .vc-table-col-6 {\n  -webkit-box-flex: 6;\n  -webkit-flex: 6;\n  -moz-box-flex: 6;\n  -ms-flex: 6;\n  flex: 6;\n}\n.vc-table .vc-table-row-error {\n  border-color: var(--VC-ERROR-BORDER);\n  background-color: var(--VC-ERROR-BG);\n}\n.vc-table .vc-table-row-error .vc-table-col {\n  color: var(--VC-RED);\n  border-color: var(--VC-ERROR-BORDER);\n}\n.vc-table .vc-table-col-title {\n  font-weight: bold;\n}\n.vc-table .vc-table-action {\n  display: flex;\n  justify-content: space-evenly;\n}\n.vc-table .vc-table-action .vc-icon {\n  flex: 1;\n  text-align: center;\n  display: block;\n}\n.vc-table .vc-table-action .vc-icon:hover {\n  background: var(--VC-BG-3);\n}\n.vc-table .vc-table-action .vc-icon:active {\n  background: var(--VC-BG-1);\n}\n.vc-table .vc-table-input {\n  width: 100%;\n  border: none;\n  color: var(--VC-FG-0);\n  background-color: var(--VC-BG-6);\n  height: 3.53846154em;\n}\n.vc-table .vc-table-input:focus {\n  background-color: var(--VC-FG-2);\n}\n@media (prefers-color-scheme: dark) {\n  #__vconsole:not([data-theme="light"]) {\n    --VC-BG-0: #191919;\n    --VC-BG-1: #1f1f1f;\n    --VC-BG-2: #232323;\n    --VC-BG-3: #2f2f2f;\n    --VC-BG-4: #606060;\n    --VC-BG-5: #2c2c2c;\n    --VC-BG-6: rgba(255, 255, 255, 0.2);\n    --VC-FG-0: rgba(255, 255, 255, 0.8);\n    --VC-FG-HALF: rgba(255, 255, 255, 0.6);\n    --VC-FG-1: rgba(255, 255, 255, 0.5);\n    --VC-FG-2: rgba(255, 255, 255, 0.3);\n    --VC-FG-3: rgba(255, 255, 255, 0.05);\n    --VC-RED: #fa5151;\n    --VC-ORANGE: #c87d2f;\n    --VC-YELLOW: #cc9c00;\n    --VC-GREEN: #74a800;\n    --VC-LIGHTGREEN: #28b561;\n    --VC-BRAND: #07c160;\n    --VC-BLUE: #10aeff;\n    --VC-INDIGO: #1196ff;\n    --VC-PURPLE: #8183ff;\n    --VC-LINK: #7d90a9;\n    --VC-TEXTGREEN: #259c5c;\n    --VC-FG: white;\n    --VC-BG: black;\n    --VC-BG-COLOR-ACTIVE: #282828;\n    --VC-WARN-BG: #332700;\n    --VC-WARN-BORDER: #664e00;\n    --VC-ERROR-BG: #321010;\n    --VC-ERROR-BORDER: #642020;\n    --VC-DOM-TAG-NAME-COLOR: #5DB0D7;\n    --VC-DOM-ATTRIBUTE-NAME-COLOR: #9BBBDC;\n    --VC-DOM-ATTRIBUTE-VALUE-COLOR: #f29766;\n    --VC-CODE-KEY-FG: #e36eec;\n    --VC-CODE-PRIVATE-KEY-FG: #f4c5f7;\n    --VC-CODE-FUNC-FG: #556af2;\n    --VC-CODE-NUMBER-FG: #9980ff;\n    --VC-CODE-STR-FG: #e93f3b;\n    --VC-CODE-NULL-FG: #808080;\n  }\n}\n#__vconsole[data-theme="dark"] {\n  --VC-BG-0: #191919;\n  --VC-BG-1: #1f1f1f;\n  --VC-BG-2: #232323;\n  --VC-BG-3: #2f2f2f;\n  --VC-BG-4: #606060;\n  --VC-BG-5: #2c2c2c;\n  --VC-BG-6: rgba(255, 255, 255, 0.2);\n  --VC-FG-0: rgba(255, 255, 255, 0.8);\n  --VC-FG-HALF: rgba(255, 255, 255, 0.6);\n  --VC-FG-1: rgba(255, 255, 255, 0.5);\n  --VC-FG-2: rgba(255, 255, 255, 0.3);\n  --VC-FG-3: rgba(255, 255, 255, 0.05);\n  --VC-RED: #fa5151;\n  --VC-ORANGE: #c87d2f;\n  --VC-YELLOW: #cc9c00;\n  --VC-GREEN: #74a800;\n  --VC-LIGHTGREEN: #28b561;\n  --VC-BRAND: #07c160;\n  --VC-BLUE: #10aeff;\n  --VC-INDIGO: #1196ff;\n  --VC-PURPLE: #8183ff;\n  --VC-LINK: #7d90a9;\n  --VC-TEXTGREEN: #259c5c;\n  --VC-FG: white;\n  --VC-BG: black;\n  --VC-BG-COLOR-ACTIVE: #282828;\n  --VC-WARN-BG: #332700;\n  --VC-WARN-BORDER: #664e00;\n  --VC-ERROR-BG: #321010;\n  --VC-ERROR-BORDER: #642020;\n  --VC-DOM-TAG-NAME-COLOR: #5DB0D7;\n  --VC-DOM-ATTRIBUTE-NAME-COLOR: #9BBBDC;\n  --VC-DOM-ATTRIBUTE-VALUE-COLOR: #f29766;\n  --VC-CODE-KEY-FG: #e36eec;\n  --VC-CODE-PRIVATE-KEY-FG: #f4c5f7;\n  --VC-CODE-FUNC-FG: #556af2;\n  --VC-CODE-NUMBER-FG: #9980ff;\n  --VC-CODE-STR-FG: #e93f3b;\n  --VC-CODE-NULL-FG: #808080;\n}\n.vc-tabbar {\n  border-bottom: 1px solid var(--VC-FG-3);\n  overflow-x: auto;\n  height: 3em;\n  width: auto;\n  white-space: nowrap;\n}\n.vc-tabbar .vc-tab {\n  display: inline-block;\n  line-height: 3em;\n  padding: 0 1.15384615em;\n  border-right: 1px solid var(--VC-FG-3);\n  text-decoration: none;\n  color: var(--VC-FG-0);\n  -webkit-tap-highlight-color: transparent;\n  -webkit-touch-callout: none;\n}\n.vc-tabbar .vc-tab:active {\n  background-color: rgba(0, 0, 0, 0.15);\n}\n.vc-tabbar .vc-tab.vc-actived {\n  background-color: var(--VC-BG-1);\n}\n.vc-toolbar {\n  border-top: 1px solid var(--VC-FG-3);\n  line-height: 3em;\n  position: absolute;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: row;\n  -moz-box-orient: horizontal;\n  -moz-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n}\n.vc-toolbar .vc-tool {\n  display: none;\n  font-style: normal;\n  text-decoration: none;\n  color: var(--VC-FG-0);\n  width: 50%;\n  -webkit-box-flex: 1;\n  -webkit-flex: 1;\n  -moz-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  text-align: center;\n  position: relative;\n  -webkit-touch-callout: none;\n}\n.vc-toolbar .vc-tool.vc-toggle,\n.vc-toolbar .vc-tool.vc-global-tool {\n  display: block;\n}\n.vc-toolbar .vc-tool:active {\n  background-color: rgba(0, 0, 0, 0.15);\n}\n.vc-toolbar .vc-tool:after {\n  content: " ";\n  position: absolute;\n  top: 0.53846154em;\n  bottom: 0.53846154em;\n  right: 0;\n  border-left: 1px solid var(--VC-FG-3);\n}\n.vc-toolbar .vc-tool-last:after {\n  border: none;\n}\n.vc-topbar {\n  background-color: var(--VC-BG-1);\n  display: -webkit-box;\n  display: -webkit-flex;\n  display: -moz-box;\n  display: -ms-flexbox;\n  display: flex;\n  -webkit-box-orient: horizontal;\n  -webkit-box-direction: normal;\n  -webkit-flex-direction: row;\n  -moz-box-orient: horizontal;\n  -moz-box-direction: normal;\n  -ms-flex-direction: row;\n  flex-direction: row;\n  -webkit-flex-wrap: wrap;\n  -ms-flex-wrap: wrap;\n  flex-wrap: wrap;\n  width: 100%;\n}\n.vc-topbar .vc-toptab {\n  display: none;\n  -webkit-box-flex: 1;\n  -webkit-flex: 1;\n  -moz-box-flex: 1;\n  -ms-flex: 1;\n  flex: 1;\n  line-height: 2.30769231em;\n  padding: 0 1.15384615em;\n  border-bottom: 1px solid var(--VC-FG-3);\n  text-decoration: none;\n  text-align: center;\n  color: var(--VC-FG-0);\n  -webkit-tap-highlight-color: transparent;\n  -webkit-touch-callout: none;\n}\n.vc-topbar .vc-toptab.vc-toggle {\n  display: block;\n}\n.vc-topbar .vc-toptab:active {\n  background-color: rgba(0, 0, 0, 0.15);\n}\n.vc-topbar .vc-toptab.vc-actived {\n  border-bottom: 1px solid var(--VC-INDIGO);\n}\n.vc-mask {\n  display: none;\n  position: fixed;\n  top: 0;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  background: rgba(0, 0, 0, 0);\n  z-index: 10001;\n  -webkit-transition: background 0.3s;\n  transition: background 0.3s;\n  -webkit-tap-highlight-color: transparent;\n  overflow-y: scroll;\n}\n.vc-panel {\n  display: none;\n  position: fixed;\n  min-height: 85%;\n  left: 0;\n  right: 0;\n  bottom: -100%;\n  z-index: 10002;\n  background-color: var(--VC-BG-0);\n  transition: bottom 0.3s;\n}\n.vc-toggle .vc-switch {\n  display: none;\n}\n.vc-toggle .vc-mask {\n  background: rgba(0, 0, 0, 0.6);\n  display: block;\n}\n.vc-toggle .vc-panel {\n  bottom: 0;\n}\n.vc-content {\n  background-color: var(--VC-BG-2);\n  overflow-x: hidden;\n  overflow-y: auto;\n  position: absolute;\n  top: 3.07692308em;\n  left: 0;\n  right: 0;\n  bottom: 3.07692308em;\n  -webkit-overflow-scrolling: touch;\n  margin-bottom: constant(safe-area-inset-bottom);\n  margin-bottom: env(safe-area-inset-bottom);\n}\n.vc-content.vc-has-topbar {\n  top: 5.46153846em;\n}\n.vc-plugin-box {\n  display: none;\n  position: relative;\n  min-height: 100%;\n}\n.vc-plugin-box.vc-fixed-height {\n  height: 100%;\n}\n.vc-plugin-box.vc-actived {\n  display: block;\n}\n.vc-plugin-content {\n  display: flex;\n  width: 100%;\n  height: 100%;\n  overflow-y: auto;\n  flex-direction: column;\n  -webkit-tap-highlight-color: transparent;\n}\n.vc-plugin-content:empty:before {\n  content: "Empty";\n  color: var(--VC-FG-1);\n  position: absolute;\n  top: 45%;\n  left: 0;\n  right: 0;\n  bottom: 0;\n  font-size: 1.15384615em;\n  text-align: center;\n}\n.vc-plugin-empty {\n  color: var(--VC-FG-1);\n  font-size: 1.15384615em;\n  height: 100%;\n  width: 100%;\n  padding: 1.15384615em 0;\n  text-align: center;\n  display: flex;\n  flex-direction: column;\n  justify-content: center;\n}\n@supports (bottom: constant(safe-area-inset-bottom)) or (bottom: env(safe-area-inset-bottom)) {\n  .vc-toolbar,\n  .vc-switch {\n    bottom: constant(safe-area-inset-bottom);\n    bottom: env(safe-area-inset-bottom);\n  }\n}\n',""]),e.Z=a},7558:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,".vc-switch {\n  display: block;\n  position: fixed;\n  right: 0.76923077em;\n  bottom: 0.76923077em;\n  color: #FFF;\n  background-color: var(--VC-BRAND);\n  line-height: 1;\n  font-size: 1.07692308em;\n  padding: 0.61538462em 1.23076923em;\n  z-index: 10000;\n  border-radius: 0.30769231em;\n  box-shadow: 0 0 0.61538462em rgba(0, 0, 0, 0.4);\n}\n",""]),e.Z=a},5670:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,'/* color */\n.vcelm-node {\n  color: var(--VC-DOM-TAG-NAME-COLOR);\n}\n.vcelm-k {\n  color: var(--VC-DOM-ATTRIBUTE-NAME-COLOR);\n}\n.vcelm-v {\n  color: var(--VC-DOM-ATTRIBUTE-VALUE-COLOR);\n}\n.vcelm-l.vc-actived > .vcelm-node {\n  background-color: var(--VC-FG-3);\n}\n/* layout */\n.vcelm-l {\n  padding-left: 8px;\n  position: relative;\n  word-wrap: break-word;\n  line-height: 1.2;\n}\n/*.vcelm-l.vcelm-noc {\n  padding-left: 0;\n}*/\n.vcelm-l .vcelm-node:active {\n  background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vcelm-l.vcelm-noc .vcelm-node:active {\n  background-color: transparent;\n}\n.vcelm-t {\n  white-space: pre-wrap;\n  word-wrap: break-word;\n}\n/* level */\n/* arrow */\n.vcelm-l:before {\n  content: "";\n  display: block;\n  position: absolute;\n  top: 6px;\n  left: 3px;\n  width: 0;\n  height: 0;\n  border: transparent solid 3px;\n  border-left-color: var(--VC-FG-1);\n}\n.vcelm-l.vc-toggle:before {\n  display: block;\n  top: 6px;\n  left: 0;\n  border-top-color: var(--VC-FG-1);\n  border-left-color: transparent;\n}\n.vcelm-l.vcelm-noc:before {\n  display: none;\n}\n',""]),e.Z=a},3327:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,"",""]),e.Z=a},1130:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,".vc-cmd {\n  height: 3.07692308em;\n  border-top: 1px solid var(--VC-FG-3);\n  display: flex;\n  flex-direction: row;\n}\n.vc-cmd.vc-filter {\n  bottom: 0;\n}\n.vc-cmd-input-wrap {\n  display: flex;\n  align-items: center;\n  flex: 1;\n  position: relative;\n  height: 2.15384615em;\n  padding: 0.46153846em 0.61538462em;\n}\n.vc-cmd-input {\n  width: 100%;\n  border: none;\n  resize: none;\n  outline: none;\n  padding: 0;\n  font-size: 0.92307692em;\n  background-color: transparent;\n  color: var(--VC-FG-0);\n}\n.vc-cmd-input::-webkit-input-placeholder {\n  line-height: 2.15384615em;\n}\n.vc-cmd-btn {\n  width: 3.07692308em;\n  border: none;\n  background-color: var(--VC-BG-0);\n  color: var(--VC-FG-0);\n  outline: none;\n  -webkit-touch-callout: none;\n  font-size: 1em;\n}\n.vc-cmd-clear-btn {\n  flex: 1 3.07692308em;\n  text-align: center;\n  line-height: 3.07692308em;\n}\n.vc-cmd-btn:active,\n.vc-cmd-clear-btn:active {\n  background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-cmd-prompted {\n  position: absolute;\n  left: 0.46153846em;\n  right: 0.46153846em;\n  background-color: var(--VC-BG-3);\n  border: 1px solid var(--VC-FG-3);\n  overflow-x: scroll;\n  display: none;\n}\n.vc-cmd-prompted li {\n  list-style: none;\n  line-height: 30px;\n  padding: 0 0.46153846em;\n  border-bottom: 1px solid var(--VC-FG-3);\n}\n.vc-cmd-prompted li:active {\n  background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-cmd-prompted-hide {\n  text-align: center;\n}\n",""]),e.Z=a},7147:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,'.vc-log-row {\n  margin: 0;\n  padding: 0.46153846em 0.61538462em;\n  overflow: hidden;\n  line-height: 1.3;\n  border-bottom: 1px solid var(--VC-FG-3);\n  word-break: break-word;\n  position: relative;\n  display: flex;\n}\n.vc-log-info {\n  color: var(--VC-PURPLE);\n}\n.vc-log-debug {\n  color: var(--VC-YELLOW);\n}\n.vc-log-warn {\n  color: var(--VC-ORANGE);\n  border-color: var(--VC-WARN-BORDER);\n  background-color: var(--VC-WARN-BG);\n}\n.vc-log-error {\n  color: var(--VC-RED);\n  border-color: var(--VC-ERROR-BORDER);\n  background-color: var(--VC-ERROR-BG);\n}\n.vc-logrow-icon {\n  margin-left: auto;\n}\n.vc-log-padding {\n  width: 1.53846154em;\n  border-left: 1px solid var(--VC-FG-3);\n}\n.vc-log-group .vc-log-content {\n  font-weight: bold;\n}\n.vc-log-group-toggle {\n  padding-left: 0.76923077em;\n}\n.vc-log-group-toggle {\n  display: block;\n  font-style: italic;\n  padding-left: 0.76923077em;\n  position: relative;\n}\n.vc-log-group-toggle:active {\n  background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-log-group > .vc-log-group-toggle::before {\n  content: "";\n  position: absolute;\n  top: 0.30769231em;\n  left: 0.15384615em;\n  width: 0;\n  height: 0;\n  border: transparent solid 0.30769231em;\n  border-left-color: var(--VC-FG-1);\n}\n.vc-log-group.vc-toggle > .vc-log-group-toggle::before {\n  top: 0.46153846em;\n  left: 0;\n  border-top-color: var(--VC-FG-1);\n  border-left-color: transparent;\n}\n.vc-log-time {\n  width: 6.15384615em;\n  color: #777;\n}\n.vc-log-repeat i {\n  margin-right: 0.30769231em;\n  padding: 0 6.5px;\n  color: #D7E0EF;\n  background-color: #42597F;\n  border-radius: 8.66666667px;\n}\n.vc-log-error .vc-log-repeat i {\n  color: #901818;\n  background-color: var(--VC-RED);\n}\n.vc-log-warn .vc-log-repeat i {\n  color: #987D20;\n  background-color: #F4BD02;\n}\n.vc-log-content {\n  flex: 1;\n}\n.vc-log-input,\n.vc-log-output {\n  padding-left: 0.92307692em;\n}\n.vc-log-input:before,\n.vc-log-output:before {\n  content: "›";\n  position: absolute;\n  top: 0.15384615em;\n  left: 0;\n  font-size: 1.23076923em;\n  color: #6A5ACD;\n}\n.vc-log-output:before {\n  content: "‹";\n}\n',""]),e.Z=a},1237:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,'.vc-log-tree {\n  display: block;\n  overflow: auto;\n  position: relative;\n  -webkit-overflow-scrolling: touch;\n}\n.vc-log-tree-node {\n  display: block;\n  font-style: italic;\n  padding-left: 0.76923077em;\n  position: relative;\n}\n.vc-log-tree.vc-is-tree > .vc-log-tree-node:active {\n  background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-log-tree.vc-is-tree > .vc-log-tree-node::before {\n  content: "";\n  position: absolute;\n  top: 0.30769231em;\n  left: 0.15384615em;\n  width: 0;\n  height: 0;\n  border: transparent solid 0.30769231em;\n  border-left-color: var(--VC-FG-1);\n}\n.vc-log-tree.vc-is-tree.vc-toggle > .vc-log-tree-node::before {\n  top: 0.46153846em;\n  left: 0;\n  border-top-color: var(--VC-FG-1);\n  border-left-color: transparent;\n}\n.vc-log-tree-child {\n  margin-left: 0.76923077em;\n}\n.vc-log-tree-loadmore {\n  text-decoration: underline;\n  padding-left: 1.84615385em;\n  position: relative;\n  color: var(--VC-CODE-FUNC-FG);\n}\n.vc-log-tree-loadmore::before {\n  content: "››";\n  position: absolute;\n  top: -0.15384615em;\n  left: 0.76923077em;\n  font-size: 1.23076923em;\n  color: var(--VC-CODE-FUNC-FG);\n}\n.vc-log-tree-loadmore:active {\n  background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n',""]),e.Z=a},845:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,".vc-log-key {\n  color: var(--VC-CODE-KEY-FG);\n}\n.vc-log-key-private {\n  color: var(--VC-CODE-PRIVATE-KEY-FG);\n}\n.vc-log-val {\n  white-space: pre-line;\n}\n.vc-log-val-function {\n  color: var(--VC-CODE-FUNC-FG);\n  font-style: italic !important;\n}\n.vc-log-val-bigint {\n  color: var(--VC-CODE-FUNC-FG);\n}\n.vc-log-val-number,\n.vc-log-val-boolean {\n  color: var(--VC-CODE-NUMBER-FG);\n}\n.vc-log-val-string {\n  white-space: pre-wrap;\n}\n.vc-log-val-string.vc-log-val-haskey {\n  color: var(--VC-CODE-STR-FG);\n  white-space: normal;\n}\n.vc-log-val-null,\n.vc-log-val-undefined,\n.vc-log-val-uninvocatable {\n  color: var(--VC-CODE-NULL-FG);\n}\n.vc-log-val-symbol {\n  color: var(--VC-CODE-STR-FG);\n}\n",""]),e.Z=a},8747:function(t,e,n){"use strict";var i=n(6738),r=n.n(i),o=n(7705),a=n.n(o)()(r());a.push([t.id,".vc-group .vc-group-preview {\n  -webkit-touch-callout: none;\n}\n.vc-group .vc-group-preview:active {\n  background-color: var(--VC-BG-COLOR-ACTIVE);\n}\n.vc-group .vc-group-detail {\n  display: none;\n  padding: 0 0 0.76923077em 1.53846154em;\n  border-bottom: 1px solid var(--VC-FG-3);\n}\n.vc-group.vc-actived .vc-group-detail {\n  display: block;\n  background-color: var(--VC-BG-1);\n}\n.vc-group.vc-actived .vc-table-row {\n  background-color: var(--VC-BG-2);\n}\n.vc-group.vc-actived .vc-group-preview {\n  background-color: var(--VC-BG-1);\n}\n",""]),e.Z=a},3411:function(t,e,n){"use strict";var i=n(3379),r=n.n(i),o=n(7795),a=n.n(o),s=n(569),c=n.n(s),l=n(3565),u=n.n(l),h=n(9216),d=n.n(h),f=n(4589),p=n.n(f),m=n(1130),v={};m.Z&&m.Z.locals&&(v.locals=m.Z.locals);var g,y=0,b={};b.styleTagTransform=p(),b.setAttributes=u(),b.insert=c().bind(null,"head"),b.domAPI=a(),b.insertStyleElement=d(),v.use=function(t){return b.options=t||{},y++||(g=r()(m.Z,b)),v},v.unuse=function(){y>0&&!--y&&(g(),g=null)},e.Z=v},3379:function(t){"use strict";var e=[];function n(t){for(var n=-1,i=0;i<e.length;i++)if(e[i].identifier===t){n=i;break}return n}function i(t,i){for(var o={},a=[],s=0;s<t.length;s++){var c=t[s],l=i.base?c[0]+i.base:c[0],u=o[l]||0,h="".concat(l," ").concat(u);o[l]=u+1;var d=n(h),f={css:c[1],media:c[2],sourceMap:c[3],supports:c[4],layer:c[5]};if(-1!==d)e[d].references++,e[d].updater(f);else{var p=r(f,i);i.byIndex=s,e.splice(s,0,{identifier:h,updater:p,references:1})}a.push(h)}return a}function r(t,e){var n=e.domAPI(e);return n.update(t),function(e){if(e){if(e.css===t.css&&e.media===t.media&&e.sourceMap===t.sourceMap&&e.supports===t.supports&&e.layer===t.layer)return;n.update(t=e)}else n.remove()}}t.exports=function(t,r){var o=i(t=t||[],r=r||{});return function(t){t=t||[];for(var a=0;a<o.length;a++){var s=n(o[a]);e[s].references--}for(var c=i(t,r),l=0;l<o.length;l++){var u=n(o[l]);0===e[u].references&&(e[u].updater(),e.splice(u,1))}o=c}}},569:function(t){"use strict";var e={};t.exports=function(t,n){var i=function(t){if(void 0===e[t]){var n=document.querySelector(t);if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(t){n=null}e[t]=n}return e[t]}(t);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:function(t){"use strict";t.exports=function(t){var e=document.createElement("style");return t.setAttributes(e,t.attributes),t.insert(e,t.options),e}},3565:function(t,e,n){"use strict";t.exports=function(t){var e=n.nc;e&&t.setAttribute("nonce",e)}},7795:function(t){"use strict";t.exports=function(t){var e=t.insertStyleElement(t);return{update:function(n){!function(t,e,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var o=n.sourceMap;o&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(o))))," */")),e.styleTagTransform(i,t,e.options)}(e,t,n)},remove:function(){!function(t){if(null===t.parentNode)return!1;t.parentNode.removeChild(t)}(e)}}}},4589:function(t){"use strict";t.exports=function(t,e){if(e.styleSheet)e.styleSheet.cssText=t;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(t))}}},6464:function(t,e,n){"use strict";function i(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}n.d(e,{Z:function(){return i}})},4296:function(t,e,n){"use strict";function i(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}function r(t,e,n){return e&&i(t.prototype,e),n&&i(t,n),Object.defineProperty(t,"prototype",{writable:!1}),t}n.d(e,{Z:function(){return r}})},8270:function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,{Z:function(){return i}})},6881:function(t,e,n){"use strict";n.d(e,{Z:function(){return r}});var i=n(2717);function r(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,(0,i.Z)(t,e)}},2717:function(t,e,n){"use strict";function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}n.d(e,{Z:function(){return i}})},7003:function(t,e,n){"use strict";n.d(e,{H3:function(){return i.H3E},ev:function(){return i.evW},x:function(){return i.xa3}});var i=n(2942)},2942:function(t,e,n){"use strict";n.d(e,{f_C:function(){return gt},hjT:function(){return Z},R3I:function(){return _},Ljt:function(){return I},akz:function(){return ht},VnY:function(){return H},cKT:function(){return G},gbL:function(){return ot},FIv:function(){return f},XGm:function(){return b},xa3:function(){return U},YCL:function(){return dt},nuO:function(){return p},vpE:function(){return pt},RMB:function(){return T},ogt:function(){return S},bGB:function(){return E},cSb:function(){return O},yl1:function(){return tt},VOJ:function(){return y},u2N:function(){return v},$XI:function(){return d},lig:function(){return ct},dvw:function(){return rt},S1n:function(){return vt},$Tr:function(){return w},sBU:function(){return c},oLt:function(){return k},yef:function(){return ft},ZTd:function(){return r},AqN:function(){return u},evW:function(){return V},H3E:function(){return F},cly:function(){return lt},AT7:function(){return P},j7q:function(){return s},N8:function(){return l},rTO:function(){return D},BmG:function(){return R},fxP:function(){return x},czc:function(){return B},DhX:function(){return L},XET:function(){return A},LdU:function(){return h},bi5:function(){return M},fLW:function(){return C},VHj:function(){return N},Ui:function(){return at},etI:function(){return st},GQg:function(){return ut},kmG:function(){return g}});n(2717);var i;n(6881);function r(){}function o(t){return t()}function a(){return Object.create(null)}function s(t){t.forEach(o)}function c(t){return"function"==typeof t}function l(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function u(t,e){return t!=t?e==e:t!==e}function h(t){if(null==t)return r;for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];var o=t.subscribe.apply(t,n);return o.unsubscribe?function(){return o.unsubscribe()}:o}function d(t){var e;return h(t,function(t){return e=t})(),e}function f(t,e,n){t.$$.on_destroy.push(h(e,n))}function p(t,e,n,i){if(t){var r=m(t,e,n,i);return t[0](r)}}function m(t,e,n,i){return t[1]&&i?function(t,e){for(var n in e)t[n]=e[n];return t}(n.ctx.slice(),t[1](i(e))):n.ctx}function v(t,e,n,i){if(t[2]&&i){var r=t[2](i(n));if(void 0===e.dirty)return r;if("object"==typeof r){for(var o=[],a=Math.max(e.dirty.length,r.length),s=0;s<a;s+=1)o[s]=e.dirty[s]|r[s];return o}return e.dirty|r}return e.dirty}function g(t,e,n,i,r,o){if(r){var a=m(e,n,i,o);t.p(a,r)}}function y(t){if(t.ctx.length>32){for(var e=[],n=t.ctx.length/32,i=0;i<n;i++)e[i]=-1;return e}return-1}function b(t){var e={};for(var n in t)e[n]=!0;return e}function x(t,e,n){return t.set(n),e}function _(t,e){t.appendChild(e)}function w(t,e,n){t.insertBefore(e,n||null)}function S(t){t.parentNode.removeChild(t)}function T(t,e){for(var n=0;n<t.length;n+=1)t[n]&&t[n].d(e)}function E(t){return document.createElement(t)}function M(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function C(t){return document.createTextNode(t)}function L(){return C(" ")}function O(){return C("")}function k(t,e,n,i){return t.addEventListener(e,n,i),function(){return t.removeEventListener(e,n,i)}}function P(t){return function(e){return e.preventDefault(),t.call(this,e)}}function A(t){return function(e){return e.stopPropagation(),t.call(this,e)}}function I(t,e,n){null==n?t.removeAttribute(e):t.getAttribute(e)!==n&&t.setAttribute(e,n)}function D(t,e){e=""+e,t.wholeText!==e&&(t.data=e)}function R(t,e){t.value=null==e?"":e}function B(t,e,n,i){null===n?t.style.removeProperty(e):t.style.setProperty(e,n,i?"important":"")}function N(t,e,n){t.classList[n?"add":"remove"](e)}function j(t){i=t}function z(){if(!i)throw new Error("Function called outside component initialization");return i}function F(t){z().$$.on_mount.push(t)}function V(t){z().$$.on_destroy.push(t)}function U(){var t=z();return function(e,n){var i=t.$$.callbacks[e];if(i){var r=function(t,e,n){void 0===n&&(n=!1);var i=document.createEvent("CustomEvent");return i.initCustomEvent(t,n,!1,e),i}(e,n);i.slice().forEach(function(e){e.call(t,r)})}}}function G(t,e){var n=this,i=t.$$.callbacks[e.type];i&&i.slice().forEach(function(t){return t.call(n,e)})}new Set,new Map;var $=[],H=[],W=[],q=[],X=Promise.resolve(),Y=!1;function K(t){W.push(t)}function Z(t){q.push(t)}var J=new Set,Q=0;function tt(){var t=i;do{for(;Q<$.length;){var e=$[Q];Q++,j(e),et(e.$$)}for(j(null),$.length=0,Q=0;H.length;)H.pop()();for(var n=0;n<W.length;n+=1){var r=W[n];J.has(r)||(J.add(r),r())}W.length=0}while($.length);for(;q.length;)q.pop()();Y=!1,J.clear(),j(t)}function et(t){if(null!==t.fragment){t.update(),s(t.before_update);var e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(K)}}var nt,it=new Set;function rt(){nt={r:0,c:[],p:nt}}function ot(){nt.r||s(nt.c),nt=nt.p}function at(t,e){t&&t.i&&(it.delete(t),t.i(e))}function st(t,e,n,i){if(t&&t.o){if(it.has(t))return;it.add(t),nt.c.push(function(){it.delete(t),i&&(n&&t.d(1),i())}),t.o(e)}}var ct="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function lt(t,e){st(t,1,1,function(){e.delete(t.key)})}function ut(t,e,n,i,r,o,a,s,c,l,u,h){for(var d=t.length,f=o.length,p=d,m={};p--;)m[t[p].key]=p;var v=[],g=new Map,y=new Map;for(p=f;p--;){var b=h(r,o,p),x=n(b),_=a.get(x);_?i&&_.p(b,e):(_=l(x,b)).c(),g.set(x,v[p]=_),x in m&&y.set(x,Math.abs(p-m[x]))}var w=new Set,S=new Set;function T(t){at(t,1),t.m(s,u),a.set(t.key,t),u=t.first,f--}for(;d&&f;){var E=v[f-1],M=t[d-1],C=E.key,L=M.key;E===M?(u=E.first,d--,f--):g.has(L)?!a.has(C)||w.has(C)?T(E):S.has(L)?d--:y.get(C)>y.get(L)?(S.add(C),T(E)):(w.add(L),d--):(c(M,a),d--)}for(;d--;){var O=t[d];g.has(O.key)||c(O,a)}for(;f;)T(v[f-1]);return v}function ht(t,e,n){var i=t.$$.props[e];void 0!==i&&(t.$$.bound[i]=n,n(t.$$.ctx[i]))}function dt(t){t&&t.c()}function ft(t,e,n,i){var r=t.$$,a=r.fragment,l=r.on_mount,u=r.on_destroy,h=r.after_update;a&&a.m(e,n),i||K(function(){var e=l.map(o).filter(c);u?u.push.apply(u,e):s(e),t.$$.on_mount=[]}),h.forEach(K)}function pt(t,e){var n=t.$$;null!==n.fragment&&(s(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function mt(t,e){-1===t.$$.dirty[0]&&($.push(t),Y||(Y=!0,X.then(tt)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function vt(t,e,n,o,c,l,u,h){void 0===h&&(h=[-1]);var d=i;j(t);var f=t.$$={fragment:null,ctx:null,props:l,update:r,not_equal:c,bound:a(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(d?d.$$.context:[])),callbacks:a(),dirty:h,skip_bound:!1,root:e.target||d.$$.root};u&&u(f.root);var p,m=!1;if(f.ctx=n?n(t,e.props||{},function(e,n){var i=!(arguments.length<=2)&&arguments.length-2?arguments.length<=2?void 0:arguments[2]:n;return f.ctx&&c(f.ctx[e],f.ctx[e]=i)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](i),m&&mt(t,e)),n}):[],f.update(),m=!0,s(f.before_update),f.fragment=!!o&&o(f.ctx),e.target){if(e.hydrate){var v=(p=e.target,Array.from(p.childNodes));f.fragment&&f.fragment.l(v),v.forEach(S)}else f.fragment&&f.fragment.c();e.intro&&at(t.$$.fragment),ft(t,e.target,e.anchor,e.customElement),tt()}j(d)}new Set(["allowfullscreen","allowpaymentrequest","async","autofocus","autoplay","checked","controls","default","defer","disabled","formnovalidate","hidden","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","selected"]),"function"==typeof HTMLElement&&HTMLElement;var gt=function(){function t(){}var e=t.prototype;return e.$destroy=function(){pt(this,1),this.$destroy=r},e.$on=function(t,e){var n=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return n.push(e),function(){var t=n.indexOf(e);-1!==t&&n.splice(t,1)}},e.$set=function(t){this.$$set&&!function(t){return 0===Object.keys(t).length}(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)},t}()},3313:function(t,e,n){"use strict";n.d(e,{U2:function(){return i.$XI},fZ:function(){return s}});var i=n(2942);function r(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return o(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function o(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var a=[];function s(t,e){var n;void 0===e&&(e=i.ZTd);var o=new Set;function s(e){if((0,i.N8)(t,e)&&(t=e,n)){for(var s,c=!a.length,l=r(o);!(s=l()).done;){var u=s.value;u[1](),a.push(u,t)}if(c){for(var h=0;h<a.length;h+=2)a[h][0](a[h+1]);a.length=0}}}return{set:s,update:function(e){s(e(t))},subscribe:function(r,a){void 0===a&&(a=i.ZTd);var c=[r,a];return o.add(c),1===o.size&&(n=e(s)||i.ZTd),r(t),function(){o.delete(c),0===o.size&&(n(),n=null)}}}}}},__webpack_module_cache__={};function __webpack_require__(t){var e=__webpack_module_cache__[t];if(void 0!==e)return e.exports;var n=__webpack_module_cache__[t]={id:t,exports:{}};return __webpack_modules__[t](n,n.exports,__webpack_require__),n.exports}__webpack_require__.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return __webpack_require__.d(e,{a:e}),e},__webpack_require__.d=function(t,e){for(var n in e)__webpack_require__.o(e,n)&&!__webpack_require__.o(t,n)&&Object.defineProperty(t,n,{enumerable:!0,get:e[n]})},__webpack_require__.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)};var __webpack_exports__={};return function(){"use strict";__webpack_require__.d(__webpack_exports__,{default:function(){return _r}}),__webpack_require__(5441),__webpack_require__(8765);var t=__webpack_require__(4296),e=__webpack_require__(5103),n={one:function(t,e){void 0===e&&(e=document);try{return e.querySelector(t)||void 0}catch(t){return}},all:function(t,e){void 0===e&&(e=document);try{var n=e.querySelectorAll(t);return[].slice.call(n)}catch(t){return[]}},addClass:function(t,n){if(t)for(var i=(0,e.kJ)(t)?t:[t],r=0;r<i.length;r++){var o=(i[r].className||"").split(" ");o.indexOf(n)>-1||(o.push(n),i[r].className=o.join(" "))}},removeClass:function(t,n){if(t)for(var i=(0,e.kJ)(t)?t:[t],r=0;r<i.length;r++){for(var o=i[r].className.split(" "),a=0;a<o.length;a++)o[a]==n&&(o[a]="");i[r].className=o.join(" ").trim()}},hasClass:function(t,e){return!(!t||!t.classList)&&t.classList.contains(e)},bind:function(t,n,i,r){void 0===r&&(r=!1),t&&((0,e.kJ)(t)?t:[t]).forEach(function(t){t.addEventListener(n,i,!!r)})},delegate:function(t,e,i,r){t&&t.addEventListener(e,function(e){var o=n.all(i,t);if(o)t:for(var a=0;a<o.length;a++)for(var s=e.target;s;){if(s==o[a]){r.call(s,e,s);break t}if((s=s.parentNode)==t)break}},!1)},removeChildren:function(t){for(;t.firstChild;)t.removeChild(t.lastChild);return t}},i=n,r=__webpack_require__(6464),o=__webpack_require__(6881),a=__webpack_require__(2942),s=__webpack_require__(7003),c=__webpack_require__(3379),l=__webpack_require__.n(c),u=__webpack_require__(7795),h=__webpack_require__.n(u),d=__webpack_require__(569),f=__webpack_require__.n(d),p=__webpack_require__(3565),m=__webpack_require__.n(p),v=__webpack_require__(9216),g=__webpack_require__.n(v),y=__webpack_require__(4589),b=__webpack_require__.n(y),x=__webpack_require__(7558),_={};x.Z&&x.Z.locals&&(_.locals=x.Z.locals);var w,S=0,T={};T.styleTagTransform=b(),T.setAttributes=m(),T.insert=f().bind(null,"head"),T.domAPI=h(),T.insertStyleElement=g(),_.use=function(t){return T.options=t||{},S++||(w=l()(x.Z,T)),_},_.unuse=function(){S>0&&!--S&&(w(),w=null)};var E=_;function M(t){var e,n,i,r;return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)("vConsole"),(0,a.Ljt)(e,"class","vc-switch"),(0,a.czc)(e,"right",t[2].x+"px"),(0,a.czc)(e,"bottom",t[2].y+"px"),(0,a.czc)(e,"display",t[0]?"block":"none")},m:function(o,s){(0,a.$Tr)(o,e,s),(0,a.R3I)(e,n),t[8](e),i||(r=[(0,a.oLt)(e,"touchstart",t[3],{passive:!1}),(0,a.oLt)(e,"touchend",t[4],{passive:!1}),(0,a.oLt)(e,"touchmove",t[5],{passive:!1}),(0,a.oLt)(e,"click",t[7])],i=!0)},p:function(t,n){var i=n[0];4&i&&(0,a.czc)(e,"right",t[2].x+"px"),4&i&&(0,a.czc)(e,"bottom",t[2].y+"px"),1&i&&(0,a.czc)(e,"display",t[0]?"block":"none")},i:a.ZTd,o:a.ZTd,d:function(n){n&&(0,a.ogt)(e),t[8](null),i=!1,(0,a.j7q)(r)}}}function C(t,n,i){var r,o=n.show,c=void 0===o||o,l=n.position,u=void 0===l?{x:0,y:0}:l,h={hasMoved:!1,x:0,y:0,startX:0,startY:0,endX:0,endY:0},d={x:0,y:0};(0,s.H3)(function(){E.use()}),(0,s.ev)(function(){E.unuse()});var f=function(t,n){var r=p(t,n);t=r[0],n=r[1],h.x=t,h.y=n,i(2,d.x=t,d),i(2,d.y=n,d),e.po("switch_x",t+""),e.po("switch_y",n+"")},p=function(t,e){var n=Math.max(document.documentElement.offsetWidth,window.innerWidth),i=Math.max(document.documentElement.offsetHeight,window.innerHeight);return t+r.offsetWidth>n&&(t=n-r.offsetWidth),e+r.offsetHeight>i&&(e=i-r.offsetHeight),t<0&&(t=0),e<20&&(e=20),[t,e]};return t.$$set=function(t){"show"in t&&i(0,c=t.show),"position"in t&&i(6,u=t.position)},t.$$.update=function(){66&t.$$.dirty&&r&&f(u.x,u.y)},[c,r,d,function(t){h.startX=t.touches[0].pageX,h.startY=t.touches[0].pageY,h.hasMoved=!1},function(t){h.hasMoved&&(h.startX=0,h.startY=0,h.hasMoved=!1,f(h.endX,h.endY))},function(t){if(!(t.touches.length<=0)){var e=t.touches[0].pageX-h.startX,n=t.touches[0].pageY-h.startY,r=Math.floor(h.x-e),o=Math.floor(h.y-n),a=p(r,o);r=a[0],o=a[1],i(2,d.x=r,d),i(2,d.y=o,d),h.endX=r,h.endY=o,h.hasMoved=!0,t.preventDefault()}},u,function(e){a.cKT.call(this,t,e)},function(t){a.VnY[t?"unshift":"push"](function(){i(1,r=t)})}]}var L=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,C,M,a.N8,{show:0,position:6}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"show",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({show:t}),(0,a.yl1)()}},{key:"position",get:function(){return this.$$.ctx[6]},set:function(t){this.$$set({position:t}),(0,a.yl1)()}}]),n}(a.f_C);function O(t){var e,n;return{c:function(){e=(0,a.bGB)("div"),(0,a.Ljt)(e,"id",n="__vc_plug_"+t[0]),(0,a.Ljt)(e,"class","vc-plugin-box"),(0,a.VHj)(e,"vc-fixed-height",t[1]),(0,a.VHj)(e,"vc-actived",t[2])},m:function(n,i){(0,a.$Tr)(n,e,i),t[6](e)},p:function(t,i){var r=i[0];1&r&&n!==(n="__vc_plug_"+t[0])&&(0,a.Ljt)(e,"id",n),2&r&&(0,a.VHj)(e,"vc-fixed-height",t[1]),4&r&&(0,a.VHj)(e,"vc-actived",t[2])},i:a.ZTd,o:a.ZTd,d:function(n){n&&(0,a.ogt)(e),t[6](null)}}}function k(t,n,i){var r=n.pluginId,o=void 0===r?"":r,s=n.fixedHeight,c=void 0!==s&&s,l=n.actived,u=void 0!==l&&l,h=n.content,d=void 0===h?void 0:h,f=void 0,p=void 0;return t.$$set=function(t){"pluginId"in t&&i(0,o=t.pluginId),"fixedHeight"in t&&i(1,c=t.fixedHeight),"actived"in t&&i(2,u=t.actived),"content"in t&&i(4,d=t.content)},t.$$.update=function(){57&t.$$.dirty&&p!==o&&d&&f&&(i(5,p=o),i(3,f.innerHTML="",f),(0,e.HD)(d)?i(3,f.innerHTML=d,f):(0,e.kK)(d)&&f.appendChild(d))},[o,c,u,f,d,p,function(t){a.VnY[t?"unshift":"push"](function(){i(3,f=t),i(5,p),i(0,o),i(4,d)})}]}var P=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,k,O,a.N8,{pluginId:0,fixedHeight:1,actived:2,content:4}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"pluginId",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({pluginId:t}),(0,a.yl1)()}},{key:"fixedHeight",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({fixedHeight:t}),(0,a.yl1)()}},{key:"actived",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({actived:t}),(0,a.yl1)()}},{key:"content",get:function(){return this.$$.ctx[4]},set:function(t){this.$$set({content:t}),(0,a.yl1)()}}]),n}(a.f_C),A=__webpack_require__(4687),I=__webpack_require__(3283),D={};I.Z&&I.Z.locals&&(D.locals=I.Z.locals);var R,B=0,N={};N.styleTagTransform=b(),N.setAttributes=m(),N.insert=f().bind(null,"head"),N.domAPI=h(),N.insertStyleElement=g(),D.use=function(t){return N.options=t||{},B++||(R=l()(I.Z,N)),D},D.unuse=function(){B>0&&!--B&&(R(),R=null)};var j=D;function z(t,e,n){var i=t.slice();return i[39]=e[n][0],i[40]=e[n][1],i}function F(t,e,n){var i=t.slice();return i[43]=e[n],i[45]=n,i}function V(t,e,n){var i=t.slice();return i[39]=e[n][0],i[40]=e[n][1],i}function U(t,e,n){var i=t.slice();return i[39]=e[n][0],i[40]=e[n][1],i}function G(t,e,n){var i=t.slice();return i[43]=e[n],i[45]=n,i}function $(t,e,n){var i=t.slice();return i[39]=e[n][0],i[40]=e[n][1],i}function H(t){var e,n,i,r,o,s=t[40].name+"";function c(){return t[25](t[40])}return{c:function(){e=(0,a.bGB)("a"),n=(0,a.fLW)(s),(0,a.Ljt)(e,"class","vc-tab"),(0,a.Ljt)(e,"id",i="__vc_tab_"+t[40].id),(0,a.VHj)(e,"vc-actived",t[40].id===t[2])},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n),r||(o=(0,a.oLt)(e,"click",c),r=!0)},p:function(r,o){t=r,8&o[0]&&s!==(s=t[40].name+"")&&(0,a.rTO)(n,s),8&o[0]&&i!==(i="__vc_tab_"+t[40].id)&&(0,a.Ljt)(e,"id",i),12&o[0]&&(0,a.VHj)(e,"vc-actived",t[40].id===t[2])},d:function(t){t&&(0,a.ogt)(e),r=!1,o()}}}function W(t){var e,n=t[40].hasTabPanel&&H(t);return{c:function(){n&&n.c(),e=(0,a.cSb)()},m:function(t,i){n&&n.m(t,i),(0,a.$Tr)(t,e,i)},p:function(t,i){t[40].hasTabPanel?n?n.p(t,i):((n=H(t)).c(),n.m(e.parentNode,e)):n&&(n.d(1),n=null)},d:function(t){n&&n.d(t),t&&(0,a.ogt)(e)}}}function q(t){var e,n,i,r,o,s=t[43].name+"";function c(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(e=t)[26].apply(e,[t[40],t[45]].concat(i))}return{c:function(){e=(0,a.bGB)("i"),n=(0,a.fLW)(s),(0,a.Ljt)(e,"class",i="vc-toptab vc-topbar-"+t[40].id+" "+t[43].className),(0,a.VHj)(e,"vc-toggle",t[40].id===t[2]),(0,a.VHj)(e,"vc-actived",t[43].actived)},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n),r||(o=(0,a.oLt)(e,"click",c),r=!0)},p:function(r,o){t=r,8&o[0]&&s!==(s=t[43].name+"")&&(0,a.rTO)(n,s),8&o[0]&&i!==(i="vc-toptab vc-topbar-"+t[40].id+" "+t[43].className)&&(0,a.Ljt)(e,"class",i),12&o[0]&&(0,a.VHj)(e,"vc-toggle",t[40].id===t[2]),8&o[0]&&(0,a.VHj)(e,"vc-actived",t[43].actived)},d:function(t){t&&(0,a.ogt)(e),r=!1,o()}}}function X(t){for(var e,n=t[40].topbarList,i=[],r=0;r<n.length;r+=1)i[r]=q(G(t,n,r));return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=(0,a.cSb)()},m:function(t,n){for(var r=0;r<i.length;r+=1)i[r].m(t,n);(0,a.$Tr)(t,e,n)},p:function(t,r){if(8204&r[0]){var o;for(n=t[40].topbarList,o=0;o<n.length;o+=1){var a=G(t,n,o);i[o]?i[o].p(a,r):(i[o]=q(a),i[o].c(),i[o].m(e.parentNode,e))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d:function(t){(0,a.RMB)(i,t),t&&(0,a.ogt)(e)}}}function Y(t){var e,n,i,r=P;function o(t){var e;return{props:{pluginId:t[40].id,fixedHeight:null==(e=t[40].tabOptions)?void 0:e.fixedHeight,actived:t[40].id===t[2],content:t[40].content}}}return r&&(e=new r(o(t))),{c:function(){e&&(0,a.YCL)(e.$$.fragment),n=(0,a.cSb)()},m:function(t,r){e&&(0,a.yef)(e,t,r),(0,a.$Tr)(t,n,r),i=!0},p:function(t,i){var s,c={};if(8&i[0]&&(c.pluginId=t[40].id),8&i[0]&&(c.fixedHeight=null==(s=t[40].tabOptions)?void 0:s.fixedHeight),12&i[0]&&(c.actived=t[40].id===t[2]),8&i[0]&&(c.content=t[40].content),r!==(r=P)){if(e){(0,a.dvw)();var l=e;(0,a.etI)(l.$$.fragment,1,0,function(){(0,a.vpE)(l,1)}),(0,a.gbL)()}r?(e=new r(o(t)),(0,a.YCL)(e.$$.fragment),(0,a.Ui)(e.$$.fragment,1),(0,a.yef)(e,n.parentNode,n)):e=null}else r&&e.$set(c)},i:function(t){i||(e&&(0,a.Ui)(e.$$.fragment,t),i=!0)},o:function(t){e&&(0,a.etI)(e.$$.fragment,t),i=!1},d:function(t){t&&(0,a.ogt)(n),e&&(0,a.vpE)(e,t)}}}function K(t){var e,n,i,r,o,s=t[43].name+"";function c(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(e=t)[28].apply(e,[t[40],t[45]].concat(i))}return{c:function(){e=(0,a.bGB)("i"),n=(0,a.fLW)(s),(0,a.Ljt)(e,"class",i="vc-tool vc-tool-"+t[40].id),(0,a.VHj)(e,"vc-global-tool",t[43].global),(0,a.VHj)(e,"vc-toggle",t[40].id===t[2])},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n),r||(o=(0,a.oLt)(e,"click",c),r=!0)},p:function(r,o){t=r,8&o[0]&&s!==(s=t[43].name+"")&&(0,a.rTO)(n,s),8&o[0]&&i!==(i="vc-tool vc-tool-"+t[40].id)&&(0,a.Ljt)(e,"class",i),8&o[0]&&(0,a.VHj)(e,"vc-global-tool",t[43].global),12&o[0]&&(0,a.VHj)(e,"vc-toggle",t[40].id===t[2])},d:function(t){t&&(0,a.ogt)(e),r=!1,o()}}}function Z(t){for(var e,n=t[40].toolbarList,i=[],r=0;r<n.length;r+=1)i[r]=K(F(t,n,r));return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=(0,a.cSb)()},m:function(t,n){for(var r=0;r<i.length;r+=1)i[r].m(t,n);(0,a.$Tr)(t,e,n)},p:function(t,r){if(16396&r[0]){var o;for(n=t[40].toolbarList,o=0;o<n.length;o+=1){var a=F(t,n,o);i[o]?i[o].p(a,r):(i[o]=K(a),i[o].c(),i[o].m(e.parentNode,e))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d:function(t){(0,a.RMB)(i,t),t&&(0,a.ogt)(e)}}}function J(t){var e,n,i,r,o,s,c,l,u,h,d,f,p,m,v,g,y,b,x,_,w;function S(e){t[23](e)}function T(e){t[24](e)}var E={};void 0!==t[0]&&(E.show=t[0]),void 0!==t[1]&&(E.position=t[1]),n=new L({props:E}),a.VnY.push(function(){return(0,a.akz)(n,"show",S)}),a.VnY.push(function(){return(0,a.akz)(n,"position",T)}),n.$on("click",t[10]);for(var M=Object.entries(t[3]),C=[],O=0;O<M.length;O+=1)C[O]=W($(t,M,O));for(var k=Object.entries(t[3]),P=[],A=0;A<k.length;A+=1)P[A]=X(U(t,k,A));for(var I=Object.entries(t[3]),D=[],R=0;R<I.length;R+=1)D[R]=Y(V(t,I,R));for(var B=function(t){return(0,a.etI)(D[t],1,1,function(){D[t]=null})},N=Object.entries(t[3]),j=[],F=0;F<N.length;F+=1)j[F]=Z(z(t,N,F));return{c:function(){var i,r;e=(0,a.bGB)("div"),(0,a.YCL)(n.$$.fragment),o=(0,a.DhX)(),s=(0,a.bGB)("div"),c=(0,a.DhX)(),l=(0,a.bGB)("div"),u=(0,a.bGB)("div");for(var x=0;x<C.length;x+=1)C[x].c();h=(0,a.DhX)(),d=(0,a.bGB)("div");for(var _=0;_<P.length;_+=1)P[_].c();f=(0,a.DhX)(),p=(0,a.bGB)("div");for(var w=0;w<D.length;w+=1)D[w].c();m=(0,a.DhX)(),v=(0,a.bGB)("div");for(var S=0;S<j.length;S+=1)j[S].c();g=(0,a.DhX)(),(y=(0,a.bGB)("i")).textContent="Hide",(0,a.Ljt)(s,"class","vc-mask"),(0,a.czc)(s,"display",t[8]?"block":"none"),(0,a.Ljt)(u,"class","vc-tabbar"),(0,a.Ljt)(d,"class","vc-topbar"),(0,a.Ljt)(p,"class","vc-content"),(0,a.VHj)(p,"vc-has-topbar",(null==(i=t[3][t[2]])||null==(r=i.topbarList)?void 0:r.length)>0),(0,a.Ljt)(y,"class","vc-tool vc-global-tool vc-tool-last vc-hide"),(0,a.Ljt)(v,"class","vc-toolbar"),(0,a.Ljt)(l,"class","vc-panel"),(0,a.czc)(l,"display",t[7]?"block":"none"),(0,a.Ljt)(e,"id","__vconsole"),(0,a.Ljt)(e,"style",b=t[5]?"font-size:"+t[5]+";":""),(0,a.Ljt)(e,"data-theme",t[4]),(0,a.VHj)(e,"vc-toggle",t[6])},m:function(i,r){(0,a.$Tr)(i,e,r),(0,a.yef)(n,e,null),(0,a.R3I)(e,o),(0,a.R3I)(e,s),(0,a.R3I)(e,c),(0,a.R3I)(e,l),(0,a.R3I)(l,u);for(var b=0;b<C.length;b+=1)C[b].m(u,null);(0,a.R3I)(l,h),(0,a.R3I)(l,d);for(var S=0;S<P.length;S+=1)P[S].m(d,null);(0,a.R3I)(l,f),(0,a.R3I)(l,p);for(var T=0;T<D.length;T+=1)D[T].m(p,null);t[27](p),(0,a.R3I)(l,m),(0,a.R3I)(l,v);for(var E=0;E<j.length;E+=1)j[E].m(v,null);(0,a.R3I)(v,g),(0,a.R3I)(v,y),x=!0,_||(w=[(0,a.oLt)(s,"click",t[11]),(0,a.oLt)(p,"touchstart",t[15]),(0,a.oLt)(p,"touchmove",t[16]),(0,a.oLt)(p,"touchend",t[17]),(0,a.oLt)(p,"scroll",t[18]),(0,a.oLt)(y,"click",t[11]),(0,a.oLt)(e,"touchstart",t[19].touchStart,{passive:!1,capture:!0}),(0,a.oLt)(e,"touchmove",t[19].touchMove,{passive:!1,capture:!0}),(0,a.oLt)(e,"touchend",t[19].touchEnd,{passive:!1,capture:!0})],_=!0)},p:function(t,o){var c,h,f={};if(!i&&1&o[0]&&(i=!0,f.show=t[0],(0,a.hjT)(function(){return i=!1})),!r&&2&o[0]&&(r=!0,f.position=t[1],(0,a.hjT)(function(){return r=!1})),n.$set(f),(!x||256&o[0])&&(0,a.czc)(s,"display",t[8]?"block":"none"),4108&o[0]){var m;for(M=Object.entries(t[3]),m=0;m<M.length;m+=1){var y=$(t,M,m);C[m]?C[m].p(y,o):(C[m]=W(y),C[m].c(),C[m].m(u,null))}for(;m<C.length;m+=1)C[m].d(1);C.length=M.length}if(8204&o[0]){var _;for(k=Object.entries(t[3]),_=0;_<k.length;_+=1){var w=U(t,k,_);P[_]?P[_].p(w,o):(P[_]=X(w),P[_].c(),P[_].m(d,null))}for(;_<P.length;_+=1)P[_].d(1);P.length=k.length}if(12&o[0]){var S;for(I=Object.entries(t[3]),S=0;S<I.length;S+=1){var T=V(t,I,S);D[S]?(D[S].p(T,o),(0,a.Ui)(D[S],1)):(D[S]=Y(T),D[S].c(),(0,a.Ui)(D[S],1),D[S].m(p,null))}for((0,a.dvw)(),S=I.length;S<D.length;S+=1)B(S);(0,a.gbL)()}if(12&o[0]&&(0,a.VHj)(p,"vc-has-topbar",(null==(c=t[3][t[2]])||null==(h=c.topbarList)?void 0:h.length)>0),16396&o[0]){var E;for(N=Object.entries(t[3]),E=0;E<N.length;E+=1){var L=z(t,N,E);j[E]?j[E].p(L,o):(j[E]=Z(L),j[E].c(),j[E].m(v,g))}for(;E<j.length;E+=1)j[E].d(1);j.length=N.length}(!x||128&o[0])&&(0,a.czc)(l,"display",t[7]?"block":"none"),(!x||32&o[0]&&b!==(b=t[5]?"font-size:"+t[5]+";":""))&&(0,a.Ljt)(e,"style",b),(!x||16&o[0])&&(0,a.Ljt)(e,"data-theme",t[4]),64&o[0]&&(0,a.VHj)(e,"vc-toggle",t[6])},i:function(t){if(!x){(0,a.Ui)(n.$$.fragment,t);for(var e=0;e<I.length;e+=1)(0,a.Ui)(D[e]);x=!0}},o:function(t){(0,a.etI)(n.$$.fragment,t),D=D.filter(Boolean);for(var e=0;e<D.length;e+=1)(0,a.etI)(D[e]);x=!1},d:function(i){i&&(0,a.ogt)(e),(0,a.vpE)(n),(0,a.RMB)(C,i),(0,a.RMB)(P,i),(0,a.RMB)(D,i),t[27](null),(0,a.RMB)(j,i),_=!1,(0,a.j7q)(w)}}}function Q(t,n,i){var r,o,c=n.theme,l=void 0===c?"":c,u=n.disableScrolling,h=void 0!==u&&u,d=n.show,f=void 0!==d&&d,p=n.showSwitchButton,m=void 0===p||p,v=n.switchButtonPosition,g=void 0===v?{x:0,y:0}:v,y=n.activedPluginId,b=void 0===y?"":y,x=n.pluginList,_=void 0===x?{}:x,w=(0,s.x)(),S=!1,T="",E=!1,M=!1,C=!1,L=!0,O=0,k=null,P={};(0,s.H3)(function(){var t=document.querySelectorAll('[name="viewport"]');if(t&&t[0]){var e=(t[t.length-1].getAttribute("content")||"").match(/initial\-scale\=\d+(\.\d+)?/),n=e?parseFloat(e[0].split("=")[1]):1;1!==n&&i(5,T=Math.floor(1/n*13)+"px")}j.use&&j.use(),r=A.x.subscribe(function(t){f&&O!==t.updateTime&&(O=t.updateTime,I())})}),(0,s.ev)(function(){j.unuse&&j.unuse(),r&&r()});var I=function(){!h&&L&&o&&i(9,o.scrollTop=o.scrollHeight-o.offsetHeight,o)},D=function(t){t!==b&&(i(2,b=t),w("changePanel",{pluginId:t}),setTimeout(function(){o&&i(9,o.scrollTop=P[b]||0,o)},0))},R=function(t,n,r){var o=_[n].topbarList[r],a=!0;if(e.mf(o.onClick)&&(a=o.onClick.call(t.target,t,o.data)),!1===a);else{for(var s=0;s<_[n].topbarList.length;s++)i(3,_[n].topbarList[s].actived=r===s,_);i(3,_)}},B=function(t,n,i){var r=_[n].toolbarList[i];e.mf(r.onClick)&&r.onClick.call(t.target,t,r.data)},N={tapTime:700,tapBoundary:10,lastTouchStartTime:0,touchstartX:0,touchstartY:0,touchHasMoved:!1,targetElem:null},z={touchStart:function(t){if(0===N.lastTouchStartTime){var e=t.targetTouches[0];N.touchstartX=e.pageX,N.touchstartY=e.pageY,N.lastTouchStartTime=t.timeStamp,N.targetElem=t.target.nodeType===Node.TEXT_NODE?t.target.parentNode:t.target}},touchMove:function(t){var e=t.changedTouches[0];(Math.abs(e.pageX-N.touchstartX)>N.tapBoundary||Math.abs(e.pageY-N.touchstartY)>N.tapBoundary)&&(N.touchHasMoved=!0)},touchEnd:function(t){if(!1===N.touchHasMoved&&t.timeStamp-N.lastTouchStartTime<N.tapTime&&null!=N.targetElem){var e=!1;switch(N.targetElem.tagName.toLowerCase()){case"textarea":e=!0;break;case"select":e=!N.targetElem.disabled&&!N.targetElem.readOnly;break;case"input":switch(N.targetElem.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":e=!1;break;default:e=!N.targetElem.disabled&&!N.targetElem.readOnly}}e?N.targetElem.focus():t.preventDefault();var n=t.changedTouches[0],i=new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window,screenX:n.screenX,screenY:n.screenY,clientX:n.clientX,clientY:n.clientY});N.targetElem.dispatchEvent(i)}N.lastTouchStartTime=0,N.touchHasMoved=!1,N.targetElem=null}};return t.$$set=function(t){"theme"in t&&i(4,l=t.theme),"disableScrolling"in t&&i(20,h=t.disableScrolling),"show"in t&&i(21,f=t.show),"showSwitchButton"in t&&i(0,m=t.showSwitchButton),"switchButtonPosition"in t&&i(1,g=t.switchButtonPosition),"activedPluginId"in t&&i(2,b=t.activedPluginId),"pluginList"in t&&i(3,_=t.pluginList)},t.$$.update=function(){6291456&t.$$.dirty[0]&&(!0===f?(i(7,M=!0),i(8,C=!0),k&&clearTimeout(k),i(22,k=setTimeout(function(){i(6,E=!0),I()},10))):(i(6,E=!1),k&&clearTimeout(k),i(22,k=setTimeout(function(){i(7,M=!1),i(8,C=!1)},330))))},[m,g,b,_,l,T,E,M,C,o,function(t){w("show",{show:!0})},function(t){w("show",{show:!1})},D,R,B,function(t){if("INPUT"!==t.target.tagName&&"TEXTAREA"!==t.target.tagName){var e=!1;if("function"==typeof window.getComputedStyle){var n=window.getComputedStyle(t.target);"auto"!==n.overflow&&"initial"!==n.overflow&&"scroll"!==n.overflow||(e=!0)}if(!e){var r=o.scrollTop,a=o.scrollHeight,s=r+o.offsetHeight;0===r?(i(9,o.scrollTop=1,o),0===o.scrollTop&&(S=!0)):s===a&&(i(9,o.scrollTop=r-1,o),o.scrollTop===r&&(S=!0))}}},function(t){S&&t.preventDefault()},function(t){S=!1},function(t){f&&(L=o.scrollTop+o.offsetHeight>=o.scrollHeight-50,P[b]=o.scrollTop)},z,h,f,k,function(t){i(0,m=t)},function(t){i(1,g=t)},function(t){return D(t.id)},function(t,e,n){return R(n,t.id,e)},function(t){a.VnY[t?"unshift":"push"](function(){i(9,o=t)})},function(t,e,n){return B(n,t.id,e)}]}var tt=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,Q,J,a.N8,{theme:4,disableScrolling:20,show:21,showSwitchButton:0,switchButtonPosition:1,activedPluginId:2,pluginList:3},null,[-1,-1]),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"theme",get:function(){return this.$$.ctx[4]},set:function(t){this.$$set({theme:t}),(0,a.yl1)()}},{key:"disableScrolling",get:function(){return this.$$.ctx[20]},set:function(t){this.$$set({disableScrolling:t}),(0,a.yl1)()}},{key:"show",get:function(){return this.$$.ctx[21]},set:function(t){this.$$set({show:t}),(0,a.yl1)()}},{key:"showSwitchButton",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({showSwitchButton:t}),(0,a.yl1)()}},{key:"switchButtonPosition",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({switchButtonPosition:t}),(0,a.yl1)()}},{key:"activedPluginId",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({activedPluginId:t}),(0,a.yl1)()}},{key:"pluginList",get:function(){return this.$$.ctx[3]},set:function(t){this.$$set({pluginList:t}),(0,a.yl1)()}}]),n}(a.f_C),et=function(){function n(t,e){void 0===e&&(e="newPlugin"),this.isReady=!1,this.eventMap=new Map,this.exporter=void 0,this._id=void 0,this._name=void 0,this._vConsole=void 0,this.id=t,this.name=e,this.isReady=!1}var i=n.prototype;return i.on=function(t,e){return this.eventMap.set(t,e),this},i.onRemove=function(){this.unbindExporter()},i.trigger=function(t,e){var n=this.eventMap.get(t);if("function"==typeof n)n.call(this,e);else{var i="on"+t.charAt(0).toUpperCase()+t.slice(1);"function"==typeof this[i]&&this[i].call(this,e)}return this},i.bindExporter=function(){if(this._vConsole&&this.exporter){var t="default"===this.id?"log":this.id;this._vConsole[t]=this.exporter}},i.unbindExporter=function(){var t="default"===this.id?"log":this.id;this._vConsole&&this._vConsole[t]&&(this._vConsole[t]=void 0)},i.getUniqueID=function(t){return void 0===t&&(t=""),(0,e.QI)(t)},(0,t.Z)(n,[{key:"id",get:function(){return this._id},set:function(t){if("string"!=typeof t)throw"[vConsole] Plugin ID must be a string.";if(!t)throw"[vConsole] Plugin ID cannot be empty.";this._id=t.toLowerCase()}},{key:"name",get:function(){return this._name},set:function(t){if("string"!=typeof t)throw"[vConsole] Plugin name must be a string.";if(!t)throw"[vConsole] Plugin name cannot be empty.";this._name=t}},{key:"vConsole",get:function(){return this._vConsole||void 0},set:function(t){if(!t)throw"[vConsole] vConsole cannot be empty";this._vConsole=t,this.bindExporter()}}]),n}(),nt=function(t){function e(e,n,i,r){var o;return(o=t.call(this,e,n)||this).CompClass=void 0,o.compInstance=void 0,o.initialProps=void 0,o.CompClass=i,o.initialProps=r,o}(0,o.Z)(e,t);var n=e.prototype;return n.onReady=function(){this.isReady=!0},n.onRenderTab=function(t){var e=document.createElement("div"),n=this.compInstance=new this.CompClass({target:e,props:this.initialProps});t(e.firstElementChild,n.options)},n.onRemove=function(){t.prototype.onRemove&&t.prototype.onRemove.call(this),this.compInstance&&this.compInstance.$destroy()},e}(et),it=__webpack_require__(8665),rt=__webpack_require__(9923),ot=__webpack_require__(8702);function at(t){var e,n;return(e=new ot.Z({props:{name:t[0]?"success":"copy"}})).$on("click",t[1]),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,i){(0,a.yef)(e,t,i),n=!0},p:function(t,n){var i={};1&n[0]&&(i.name=t[0]?"success":"copy"),e.$set(i)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function st(t,n,i){var r=n.content,o=void 0===r?"":r,a=n.handler,s=void 0===a?void 0:a,c={target:document.documentElement},l=!1;return t.$$set=function(t){"content"in t&&i(2,o=t.content),"handler"in t&&i(3,s=t.handler)},[l,function(t){(function(t,e){var n=(void 0===e?{}:e).target,i=void 0===n?document.body:n,r=document.createElement("textarea"),o=document.activeElement;r.value=t,r.setAttribute("readonly",""),r.style.contain="strict",r.style.position="absolute",r.style.left="-9999px",r.style.fontSize="12pt";var a=document.getSelection(),s=!1;a.rangeCount>0&&(s=a.getRangeAt(0)),i.append(r),r.select(),r.selectionStart=0,r.selectionEnd=t.length;try{document.execCommand("copy")}catch(t){}r.remove(),s&&(a.removeAllRanges(),a.addRange(s)),o&&o.focus()})(e.mf(s)?s(o)||"":e.Kn(o)||e.kJ(o)?e.hZ(o,{maxDepth:10,keyMaxLen:1e4,pretty:!1,standardJSON:!0}):o,c),i(0,l=!0),setTimeout(function(){i(0,l=!1)},600)},o,s]}var ct=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,st,at,a.N8,{content:2,handler:3}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"content",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({content:t}),(0,a.yl1)()}},{key:"handler",get:function(){return this.$$.ctx[3]},set:function(t){this.$$set({handler:t}),(0,a.yl1)()}}]),n}(a.f_C),lt=__webpack_require__(845),ut={};lt.Z&&lt.Z.locals&&(ut.locals=lt.Z.locals);var ht,dt=0,ft={};ft.styleTagTransform=b(),ft.setAttributes=m(),ft.insert=f().bind(null,"head"),ft.domAPI=h(),ft.insertStyleElement=g(),ut.use=function(t){return ft.options=t||{},dt++||(ht=l()(lt.Z,ft)),ut},ut.unuse=function(){dt>0&&!--dt&&(ht(),ht=null)};var pt=ut;function mt(t){var n,i,r,o=e.rE(t[1])+"";return{c:function(){n=(0,a.bGB)("i"),i=(0,a.fLW)(o),r=(0,a.fLW)(":"),(0,a.Ljt)(n,"class","vc-log-key"),(0,a.VHj)(n,"vc-log-key-symbol","symbol"===t[2]),(0,a.VHj)(n,"vc-log-key-private","private"===t[2])},m:function(t,e){(0,a.$Tr)(t,n,e),(0,a.R3I)(n,i),(0,a.$Tr)(t,r,e)},p:function(t,r){2&r&&o!==(o=e.rE(t[1])+"")&&(0,a.rTO)(i,o),4&r&&(0,a.VHj)(n,"vc-log-key-symbol","symbol"===t[2]),4&r&&(0,a.VHj)(n,"vc-log-key-private","private"===t[2])},d:function(t){t&&(0,a.ogt)(n),t&&(0,a.ogt)(r)}}}function vt(t){var e,n,i,r,o=void 0!==t[1]&&mt(t);return{c:function(){o&&o.c(),e=(0,a.DhX)(),n=(0,a.bGB)("i"),i=(0,a.fLW)(t[3]),(0,a.Ljt)(n,"class",r="vc-log-val vc-log-val-"+t[4]),(0,a.Ljt)(n,"style",t[0]),(0,a.VHj)(n,"vc-log-val-haskey",void 0!==t[1])},m:function(t,r){o&&o.m(t,r),(0,a.$Tr)(t,e,r),(0,a.$Tr)(t,n,r),(0,a.R3I)(n,i)},p:function(t,s){var c=s[0];void 0!==t[1]?o?o.p(t,c):((o=mt(t)).c(),o.m(e.parentNode,e)):o&&(o.d(1),o=null),8&c&&(0,a.rTO)(i,t[3]),16&c&&r!==(r="vc-log-val vc-log-val-"+t[4])&&(0,a.Ljt)(n,"class",r),1&c&&(0,a.Ljt)(n,"style",t[0]),18&c&&(0,a.VHj)(n,"vc-log-val-haskey",void 0!==t[1])},i:a.ZTd,o:a.ZTd,d:function(t){o&&o.d(t),t&&(0,a.ogt)(e),t&&(0,a.ogt)(n)}}}function gt(t,e,n){var i=e.origData,r=e.style,o=void 0===r?"":r,a=e.dataKey,c=void 0===a?void 0:a,l=e.keyType,u=void 0===l?"":l,h="",d="",f=!1;return(0,s.H3)(function(){pt.use()}),(0,s.ev)(function(){pt.unuse()}),t.$$set=function(t){"origData"in t&&n(5,i=t.origData),"style"in t&&n(0,o=t.style),"dataKey"in t&&n(1,c=t.dataKey),"keyType"in t&&n(2,u=t.keyType)},t.$$.update=function(){if(122&t.$$.dirty){n(6,f=void 0!==c);var e=(0,it.LH)(i,f);n(4,d=e.valueType),n(3,h=e.text),f||"string"!==d||n(3,h=h.replace(/\\n/g,"\n").replace(/\\t/g,"    "))}},[o,c,u,h,d,i,f]}var yt=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,gt,vt,a.AqN,{origData:5,style:0,dataKey:1,keyType:2}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"origData",get:function(){return this.$$.ctx[5]},set:function(t){this.$$set({origData:t}),(0,a.yl1)()}},{key:"style",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({style:t}),(0,a.yl1)()}},{key:"dataKey",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({dataKey:t}),(0,a.yl1)()}},{key:"keyType",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({keyType:t}),(0,a.yl1)()}}]),n}(a.f_C),bt=__webpack_require__(1237),xt={};bt.Z&&bt.Z.locals&&(xt.locals=bt.Z.locals);var _t,wt=0,St={};St.styleTagTransform=b(),St.setAttributes=m(),St.insert=f().bind(null,"head"),St.domAPI=h(),St.insertStyleElement=g(),xt.use=function(t){return St.options=t||{},wt++||(_t=l()(bt.Z,St)),xt},xt.unuse=function(){wt>0&&!--wt&&(_t(),_t=null)};var Tt=xt;function Et(t,e,n){var i=t.slice();return i[19]=e[n],i[21]=n,i}function Mt(t,e,n){var i=t.slice();return i[19]=e[n],i}function Ct(t,e,n){var i=t.slice();return i[19]=e[n],i[21]=n,i}function Lt(t){for(var e,n,i,r,o,s,c,l=[],u=new Map,h=[],d=new Map,f=[],p=new Map,m=t[7],v=function(t){return t[19]},g=0;g<m.length;g+=1){var y=Ct(t,m,g),b=v(y);u.set(b,l[g]=kt(b,y))}for(var x=t[11]<t[7].length&&Pt(t),_=t[9],w=function(t){return t[19]},S=0;S<_.length;S+=1){var T=Mt(t,_,S),E=w(T);d.set(E,h[S]=At(E,T))}for(var M=t[8],C=function(t){return t[19]},L=0;L<M.length;L+=1){var O=Et(t,M,L),k=C(O);p.set(k,f[L]=Dt(k,O))}var P=t[12]<t[8].length&&Rt(t),A=t[10]&&Bt(t);return{c:function(){e=(0,a.bGB)("div");for(var t=0;t<l.length;t+=1)l[t].c();n=(0,a.DhX)(),x&&x.c(),i=(0,a.DhX)();for(var c=0;c<h.length;c+=1)h[c].c();r=(0,a.DhX)();for(var u=0;u<f.length;u+=1)f[u].c();o=(0,a.DhX)(),P&&P.c(),s=(0,a.DhX)(),A&&A.c(),(0,a.Ljt)(e,"class","vc-log-tree-child")},m:function(t,u){(0,a.$Tr)(t,e,u);for(var d=0;d<l.length;d+=1)l[d].m(e,null);(0,a.R3I)(e,n),x&&x.m(e,null),(0,a.R3I)(e,i);for(var p=0;p<h.length;p+=1)h[p].m(e,null);(0,a.R3I)(e,r);for(var m=0;m<f.length;m+=1)f[m].m(e,null);(0,a.R3I)(e,o),P&&P.m(e,null),(0,a.R3I)(e,s),A&&A.m(e,null),c=!0},p:function(t,c){67721&c&&(m=t[7],(0,a.dvw)(),l=(0,a.GQg)(l,c,v,1,t,m,u,e,a.cly,kt,n,Ct),(0,a.gbL)()),t[11]<t[7].length?x?x.p(t,c):((x=Pt(t)).c(),x.m(e,i)):x&&(x.d(1),x=null),66057&c&&(_=t[9],(0,a.dvw)(),h=(0,a.GQg)(h,c,w,1,t,_,d,e,a.cly,At,r,Mt),(0,a.gbL)()),69897&c&&(M=t[8],(0,a.dvw)(),f=(0,a.GQg)(f,c,C,1,t,M,p,e,a.cly,Dt,o,Et),(0,a.gbL)()),t[12]<t[8].length?P?P.p(t,c):((P=Rt(t)).c(),P.m(e,s)):P&&(P.d(1),P=null),t[10]?A?(A.p(t,c),1024&c&&(0,a.Ui)(A,1)):((A=Bt(t)).c(),(0,a.Ui)(A,1),A.m(e,null)):A&&((0,a.dvw)(),(0,a.etI)(A,1,1,function(){A=null}),(0,a.gbL)())},i:function(t){if(!c){for(var e=0;e<m.length;e+=1)(0,a.Ui)(l[e]);for(var n=0;n<_.length;n+=1)(0,a.Ui)(h[n]);for(var i=0;i<M.length;i+=1)(0,a.Ui)(f[i]);(0,a.Ui)(A),c=!0}},o:function(t){for(var e=0;e<l.length;e+=1)(0,a.etI)(l[e]);for(var n=0;n<h.length;n+=1)(0,a.etI)(h[n]);for(var i=0;i<f.length;i+=1)(0,a.etI)(f[i]);(0,a.etI)(A),c=!1},d:function(t){t&&(0,a.ogt)(e);for(var n=0;n<l.length;n+=1)l[n].d();x&&x.d();for(var i=0;i<h.length;i+=1)h[i].d();for(var r=0;r<f.length;r+=1)f[r].d();P&&P.d(),A&&A.d()}}}function Ot(t){var e,n;return e=new zt({props:{origData:t[16](t[19]),dataKey:t[19],keyPath:t[3]+"."+t[19],toggle:t[0]}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,i){(0,a.yef)(e,t,i),n=!0},p:function(t,n){var i={};128&n&&(i.origData=t[16](t[19])),128&n&&(i.dataKey=t[19]),136&n&&(i.keyPath=t[3]+"."+t[19]),1&n&&(i.toggle=t[0]),e.$set(i)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function kt(t,e){var n,i,r,o=e[21]<e[11]&&Ot(e);return{key:t,first:null,c:function(){n=(0,a.cSb)(),o&&o.c(),i=(0,a.cSb)(),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),o&&o.m(t,e),(0,a.$Tr)(t,i,e),r=!0},p:function(t,n){(e=t)[21]<e[11]?o?(o.p(e,n),2176&n&&(0,a.Ui)(o,1)):((o=Ot(e)).c(),(0,a.Ui)(o,1),o.m(i.parentNode,i)):o&&((0,a.dvw)(),(0,a.etI)(o,1,1,function(){o=null}),(0,a.gbL)())},i:function(t){r||((0,a.Ui)(o),r=!0)},o:function(t){(0,a.etI)(o),r=!1},d:function(t){t&&(0,a.ogt)(n),o&&o.d(t),t&&(0,a.ogt)(i)}}}function Pt(t){var e,n,i,r,o=t[14](t[7].length-t[11])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)(o),(0,a.Ljt)(e,"class","vc-log-tree-loadmore")},m:function(o,s){(0,a.$Tr)(o,e,s),(0,a.R3I)(e,n),i||(r=(0,a.oLt)(e,"click",t[17]),i=!0)},p:function(t,e){2176&e&&o!==(o=t[14](t[7].length-t[11])+"")&&(0,a.rTO)(n,o)},d:function(t){t&&(0,a.ogt)(e),i=!1,r()}}}function At(t,e){var n,i,r;return i=new zt({props:{origData:e[16](e[19]),dataKey:String(e[19]),keyType:"symbol",keyPath:e[3]+"["+String(e[19])+"]",toggle:e[0]}}),{key:t,first:null,c:function(){n=(0,a.cSb)(),(0,a.YCL)(i.$$.fragment),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),(0,a.yef)(i,t,e),r=!0},p:function(t,n){e=t;var r={};512&n&&(r.origData=e[16](e[19])),512&n&&(r.dataKey=String(e[19])),520&n&&(r.keyPath=e[3]+"["+String(e[19])+"]"),1&n&&(r.toggle=e[0]),i.$set(r)},i:function(t){r||((0,a.Ui)(i.$$.fragment,t),r=!0)},o:function(t){(0,a.etI)(i.$$.fragment,t),r=!1},d:function(t){t&&(0,a.ogt)(n),(0,a.vpE)(i,t)}}}function It(t){var e,n;return e=new zt({props:{origData:t[16](t[19]),dataKey:t[19],keyType:"private",keyPath:t[3]+"."+t[19],toggle:t[0]}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,i){(0,a.yef)(e,t,i),n=!0},p:function(t,n){var i={};256&n&&(i.origData=t[16](t[19])),256&n&&(i.dataKey=t[19]),264&n&&(i.keyPath=t[3]+"."+t[19]),1&n&&(i.toggle=t[0]),e.$set(i)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function Dt(t,e){var n,i,r,o=e[21]<e[12]&&It(e);return{key:t,first:null,c:function(){n=(0,a.cSb)(),o&&o.c(),i=(0,a.cSb)(),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),o&&o.m(t,e),(0,a.$Tr)(t,i,e),r=!0},p:function(t,n){(e=t)[21]<e[12]?o?(o.p(e,n),4352&n&&(0,a.Ui)(o,1)):((o=It(e)).c(),(0,a.Ui)(o,1),o.m(i.parentNode,i)):o&&((0,a.dvw)(),(0,a.etI)(o,1,1,function(){o=null}),(0,a.gbL)())},i:function(t){r||((0,a.Ui)(o),r=!0)},o:function(t){(0,a.etI)(o),r=!1},d:function(t){t&&(0,a.ogt)(n),o&&o.d(t),t&&(0,a.ogt)(i)}}}function Rt(t){var e,n,i,r,o=t[14](t[8].length-t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)(o),(0,a.Ljt)(e,"class","vc-log-tree-loadmore")},m:function(o,s){(0,a.$Tr)(o,e,s),(0,a.R3I)(e,n),i||(r=(0,a.oLt)(e,"click",t[18]),i=!0)},p:function(t,e){4352&e&&o!==(o=t[14](t[8].length-t[12])+"")&&(0,a.rTO)(n,o)},d:function(t){t&&(0,a.ogt)(e),i=!1,r()}}}function Bt(t){var e,n;return e=new zt({props:{origData:t[16]("__proto__"),dataKey:"__proto__",keyType:"private",keyPath:t[3]+".__proto__",toggle:t[0]}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,i){(0,a.yef)(e,t,i),n=!0},p:function(t,n){var i={};8&n&&(i.keyPath=t[3]+".__proto__"),1&n&&(i.toggle=t[0]),e.$set(i)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function Nt(t){var e,n,i,r,o,s,c;i=new yt({props:{origData:t[1],dataKey:t[2],keyType:t[4]}});var l=t[6]&&t[5]&&Lt(t);return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),(0,a.YCL)(i.$$.fragment),r=(0,a.DhX)(),l&&l.c(),(0,a.Ljt)(n,"class","vc-log-tree-node"),(0,a.Ljt)(e,"class","vc-log-tree"),(0,a.Ljt)(e,"data-keypath",t[3]),(0,a.VHj)(e,"vc-toggle",t[5]),(0,a.VHj)(e,"vc-is-tree",t[6])},m:function(u,h){(0,a.$Tr)(u,e,h),(0,a.R3I)(e,n),(0,a.yef)(i,n,null),(0,a.R3I)(e,r),l&&l.m(e,null),o=!0,s||(c=(0,a.oLt)(n,"click",(0,a.XET)(t[15])),s=!0)},p:function(t,n){var r=n[0],s={};2&r&&(s.origData=t[1]),4&r&&(s.dataKey=t[2]),16&r&&(s.keyType=t[4]),i.$set(s),t[6]&&t[5]?l?(l.p(t,r),96&r&&(0,a.Ui)(l,1)):((l=Lt(t)).c(),(0,a.Ui)(l,1),l.m(e,null)):l&&((0,a.dvw)(),(0,a.etI)(l,1,1,function(){l=null}),(0,a.gbL)()),(!o||8&r)&&(0,a.Ljt)(e,"data-keypath",t[3]),32&r&&(0,a.VHj)(e,"vc-toggle",t[5]),64&r&&(0,a.VHj)(e,"vc-is-tree",t[6])},i:function(t){o||((0,a.Ui)(i.$$.fragment,t),(0,a.Ui)(l),o=!0)},o:function(t){(0,a.etI)(i.$$.fragment,t),(0,a.etI)(l),o=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(i),l&&l.d(),s=!1,c()}}}function jt(t,n,i){var r,o,a,c=n.origData,l=n.dataKey,u=void 0===l?void 0:l,h=n.keyPath,d=void 0===h?"":h,f=n.keyType,p=void 0===f?"":f,m=n.toggle,v=void 0===m?{}:m,g=!1,y=!1,b=!1,x=50,_=50;(0,s.H3)(function(){Tt.use()}),(0,s.ev)(function(){Tt.unuse()});var w=function(t){"enum"===t?i(11,x+=50):"nonEnum"===t&&i(12,_+=50)};return t.$$set=function(t){"origData"in t&&i(1,c=t.origData),"dataKey"in t&&i(2,u=t.dataKey),"keyPath"in t&&i(3,d=t.keyPath),"keyType"in t&&i(4,p=t.keyType),"toggle"in t&&i(0,v=t.toggle)},t.$$.update=function(){1003&t.$$.dirty&&(i(5,g=v[d]||!1),i(6,y=!(c instanceof it.Tg)&&(e.kJ(c)||e.Kn(c))),y&&g&&(i(7,r=r||e.qr(e.MH(c))),i(8,o=o||e.qr(e.QK(c))),i(9,a=a||e._D(c)),i(10,b=e.Kn(c)&&-1===o.indexOf("__proto__"))))},[v,c,u,d,p,g,y,r,o,a,b,x,_,w,function(t){return"(..."+t+" Key"+(t>1?"s":"")+" Left)"},function(){i(5,g=!g),i(0,v[d]=g,v)},function(t){try{return c[t]}catch(t){return new it.Tg}},function(){return w("enum")},function(){return w("nonEnum")}]}var zt=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,jt,Nt,a.AqN,{origData:1,dataKey:2,keyPath:3,keyType:4,toggle:0}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"origData",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({origData:t}),(0,a.yl1)()}},{key:"dataKey",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({dataKey:t}),(0,a.yl1)()}},{key:"keyPath",get:function(){return this.$$.ctx[3]},set:function(t){this.$$set({keyPath:t}),(0,a.yl1)()}},{key:"keyType",get:function(){return this.$$.ctx[4]},set:function(t){this.$$set({keyType:t}),(0,a.yl1)()}},{key:"toggle",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({toggle:t}),(0,a.yl1)()}}]),n}(a.f_C),Ft=zt,Vt=__webpack_require__(7147),Ut={};Vt.Z&&Vt.Z.locals&&(Ut.locals=Vt.Z.locals);var Gt,$t=0,Ht={};Ht.styleTagTransform=b(),Ht.setAttributes=m(),Ht.insert=f().bind(null,"head"),Ht.domAPI=h(),Ht.insertStyleElement=g(),Ut.use=function(t){return Ht.options=t||{},$t++||(Gt=l()(Vt.Z,Ht)),Ut},Ut.unuse=function(){$t>0&&!--$t&&(Gt(),Gt=null)};var Wt=Ut;function qt(t,e,n){var i=t.slice();return i[9]=e[n],i[11]=n,i}function Xt(t,e,n){var i=t.slice();return i[12]=e[n],i}function Yt(t){for(var e,n,i,r,o,s,c,l,u,h,d,f,p,m=[],v=new Map,g=t[0].groupLevel&&Kt(t),y=t[2]>0&&Jt(t),b=t[1]&&Qt(t),x=t[0].repeated&&te(t),_=t[0].data,w=function(t){return t[11]},S=0;S<_.length;S+=1){var T=qt(t,_,S),E=w(T);v.set(E,m[S]=ie(E,T))}return u=new ct({props:{handler:t[6]}}),{c:function(){e=(0,a.bGB)("div"),g&&g.c(),n=(0,a.DhX)(),y&&y.c(),i=(0,a.DhX)(),b&&b.c(),r=(0,a.DhX)(),x&&x.c(),o=(0,a.DhX)(),s=(0,a.bGB)("div");for(var d=0;d<m.length;d+=1)m[d].c();c=(0,a.DhX)(),l=(0,a.bGB)("div"),(0,a.YCL)(u.$$.fragment),(0,a.Ljt)(s,"class","vc-log-content"),(0,a.Ljt)(l,"class","vc-logrow-icon"),(0,a.Ljt)(e,"class",h="vc-log-row vc-log-"+t[0].type),(0,a.VHj)(e,"vc-log-input","input"===t[0].cmdType),(0,a.VHj)(e,"vc-log-output","output"===t[0].cmdType),(0,a.VHj)(e,"vc-log-group",t[2]>0),(0,a.VHj)(e,"vc-toggle",1===t[2])},m:function(h,v){(0,a.$Tr)(h,e,v),g&&g.m(e,null),(0,a.R3I)(e,n),y&&y.m(e,null),(0,a.R3I)(e,i),b&&b.m(e,null),(0,a.R3I)(e,r),x&&x.m(e,null),(0,a.R3I)(e,o),(0,a.R3I)(e,s);for(var _=0;_<m.length;_+=1)m[_].m(s,null);(0,a.R3I)(e,c),(0,a.R3I)(e,l),(0,a.yef)(u,l,null),d=!0,f||(p=(0,a.oLt)(e,"click",t[5]),f=!0)},p:function(t,c){t[0].groupLevel?g?g.p(t,c):((g=Kt(t)).c(),g.m(e,n)):g&&(g.d(1),g=null),t[2]>0?y||((y=Jt(t)).c(),y.m(e,i)):y&&(y.d(1),y=null),t[1]?b?b.p(t,c):((b=Qt(t)).c(),b.m(e,r)):b&&(b.d(1),b=null),t[0].repeated?x?x.p(t,c):((x=te(t)).c(),x.m(e,o)):x&&(x.d(1),x=null),17&c&&(_=t[0].data,(0,a.dvw)(),m=(0,a.GQg)(m,c,w,1,t,_,v,s,a.cly,ie,null,qt),(0,a.gbL)()),(!d||1&c&&h!==(h="vc-log-row vc-log-"+t[0].type))&&(0,a.Ljt)(e,"class",h),1&c&&(0,a.VHj)(e,"vc-log-input","input"===t[0].cmdType),1&c&&(0,a.VHj)(e,"vc-log-output","output"===t[0].cmdType),5&c&&(0,a.VHj)(e,"vc-log-group",t[2]>0),5&c&&(0,a.VHj)(e,"vc-toggle",1===t[2])},i:function(t){if(!d){for(var e=0;e<_.length;e+=1)(0,a.Ui)(m[e]);(0,a.Ui)(u.$$.fragment,t),d=!0}},o:function(t){for(var e=0;e<m.length;e+=1)(0,a.etI)(m[e]);(0,a.etI)(u.$$.fragment,t),d=!1},d:function(t){t&&(0,a.ogt)(e),g&&g.d(),y&&y.d(),b&&b.d(),x&&x.d();for(var n=0;n<m.length;n+=1)m[n].d();(0,a.vpE)(u),f=!1,p()}}}function Kt(t){for(var e,n=new Array(t[0].groupLevel),i=[],r=0;r<n.length;r+=1)i[r]=Zt(Xt(t,n,r));return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=(0,a.cSb)()},m:function(t,n){for(var r=0;r<i.length;r+=1)i[r].m(t,n);(0,a.$Tr)(t,e,n)},p:function(t,r){if(1&r){var o;for(n=new Array(t[0].groupLevel),o=0;o<n.length;o+=1){var a=Xt(t,n,o);i[o]?i[o].p(a,r):(i[o]=Zt(a),i[o].c(),i[o].m(e.parentNode,e))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d:function(t){(0,a.RMB)(i,t),t&&(0,a.ogt)(e)}}}function Zt(t){var e;return{c:function(){e=(0,a.bGB)("i"),(0,a.Ljt)(e,"class","vc-log-padding")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function Jt(t){var e;return{c:function(){e=(0,a.bGB)("div"),(0,a.Ljt)(e,"class","vc-log-group-toggle")},m:function(t,n){(0,a.$Tr)(t,e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function Qt(t){var e,n;return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)(t[3]),(0,a.Ljt)(e,"class","vc-log-time")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n)},p:function(t,e){8&e&&(0,a.rTO)(n,t[3])},d:function(t){t&&(0,a.ogt)(e)}}}function te(t){var e,n,i,r=t[0].repeated+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("i"),i=(0,a.fLW)(r),(0,a.Ljt)(e,"class","vc-log-repeat")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n),(0,a.R3I)(n,i)},p:function(t,e){1&e&&r!==(r=t[0].repeated+"")&&(0,a.rTO)(i,r)},d:function(t){t&&(0,a.ogt)(e)}}}function ee(t){var e,n;return e=new yt({props:{origData:t[9].origData,style:t[9].style}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,i){(0,a.yef)(e,t,i),n=!0},p:function(t,n){var i={};1&n&&(i.origData=t[9].origData),1&n&&(i.style=t[9].style),e.$set(i)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function ne(t){var e,n;return e=new Ft({props:{origData:t[9].origData,keyPath:String(t[11]),toggle:t[0].toggle}}),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,i){(0,a.yef)(e,t,i),n=!0},p:function(t,n){var i={};1&n&&(i.origData=t[9].origData),1&n&&(i.keyPath=String(t[11])),1&n&&(i.toggle=t[0].toggle),e.$set(i)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function ie(t,e){var n,i,r,o,s,c,l=[ne,ee],u=[];function h(t,e){return 1&e&&(i=null),null==i&&(i=!!t[4](t[9].origData)),i?0:1}return r=h(e,-1),o=u[r]=l[r](e),{key:t,first:null,c:function(){n=(0,a.cSb)(),o.c(),s=(0,a.cSb)(),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),u[r].m(t,e),(0,a.$Tr)(t,s,e),c=!0},p:function(t,n){var i=r;(r=h(e=t,n))===i?u[r].p(e,n):((0,a.dvw)(),(0,a.etI)(u[i],1,1,function(){u[i]=null}),(0,a.gbL)(),(o=u[r])?o.p(e,n):(o=u[r]=l[r](e)).c(),(0,a.Ui)(o,1),o.m(s.parentNode,s))},i:function(t){c||((0,a.Ui)(o),c=!0)},o:function(t){(0,a.etI)(o),c=!1},d:function(t){t&&(0,a.ogt)(n),u[r].d(t),t&&(0,a.ogt)(s)}}}function re(t){var e,n,i=t[0]&&Yt(t);return{c:function(){i&&i.c(),e=(0,a.cSb)()},m:function(t,r){i&&i.m(t,r),(0,a.$Tr)(t,e,r),n=!0},p:function(t,n){var r=n[0];t[0]?i?(i.p(t,r),1&r&&(0,a.Ui)(i,1)):((i=Yt(t)).c(),(0,a.Ui)(i,1),i.m(e.parentNode,e)):i&&((0,a.dvw)(),(0,a.etI)(i,1,1,function(){i=null}),(0,a.gbL)())},i:function(t){n||((0,a.Ui)(i),n=!0)},o:function(t){(0,a.etI)(i),n=!1},d:function(t){i&&i.d(t),t&&(0,a.ogt)(e)}}}function oe(t,n,i){var r=n.log,o=n.showTimestamps,a=void 0!==o&&o,c=n.groupHeader,l=void 0===c?0:c,u=(0,s.x)(),h="",d=function(t,e){var n="000"+t;return n.substring(n.length-e)};return(0,s.H3)(function(){Wt.use()}),(0,s.ev)(function(){Wt.unuse()}),t.$$set=function(t){"log"in t&&i(0,r=t.log),"showTimestamps"in t&&i(1,a=t.showTimestamps),"groupHeader"in t&&i(2,l=t.groupHeader)},t.$$.update=function(){if(3&t.$$.dirty&&a){var e=new Date(r.date);i(3,h=d(e.getHours(),2)+":"+d(e.getMinutes(),2)+":"+d(e.getSeconds(),2)+":"+d(e.getMilliseconds(),3))}},[r,a,l,h,function(t){return!(t instanceof it.Tg)&&(e.kJ(t)||e.Kn(t))},function(){l>0&&u("groupCollapsed",{groupLabel:r.groupLabel,groupHeader:1===l?2:1,isGroupCollapsed:1===l})},function(){var t=[];try{for(var n=0;n<r.data.length;n++)e.HD(r.data[n].origData)||e.hj(r.data[n].origData)?t.push(r.data[n].origData):t.push(e.hZ(r.data[n].origData,{maxDepth:10,keyMaxLen:1e4,pretty:!1,standardJSON:!0}))}catch(t){}return t.join(" ")}]}var ae=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,oe,re,a.AqN,{log:0,showTimestamps:1,groupHeader:2}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"log",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({log:t}),(0,a.yl1)()}},{key:"showTimestamps",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({showTimestamps:t}),(0,a.yl1)()}},{key:"groupHeader",get:function(){return this.$$.ctx[2]},set:function(t){this.$$set({groupHeader:t}),(0,a.yl1)()}}]),n}(a.f_C),se=__webpack_require__(3903),ce=__webpack_require__(3327),le={};ce.Z&&ce.Z.locals&&(le.locals=ce.Z.locals);var ue,he=0,de={};de.styleTagTransform=b(),de.setAttributes=m(),de.insert=f().bind(null,"head"),de.domAPI=h(),de.insertStyleElement=g(),le.use=function(t){return de.options=t||{},he++||(ue=l()(ce.Z,de)),le},le.unuse=function(){he>0&&!--he&&(ue(),ue=null)};var fe=le,pe=__webpack_require__(4264),me=__webpack_require__.n(pe),ve=function(){function t(t){console.debug("[vConsole] `ResizeObserver` is not supported in the browser, vConsole cannot render correctly."),t([{contentRect:{height:30}}],this)}var e=t.prototype;return e.disconnect=function(){},e.observe=function(t,e){},e.unobserve=function(t){},t}(),ge=function(){return"function"==typeof window.ResizeObserver},ye=function(){return window.ResizeObserver||ve};function be(t){var e,n,i=t[6].default,r=(0,a.nuO)(i,t,t[5],null);return{c:function(){e=(0,a.bGB)("div"),r&&r.c(),(0,a.Ljt)(e,"class","vc-scroller-item"),(0,a.czc)(e,"display",t[0]?"block":"none",!1),(0,a.czc)(e,"top",t[3]?t[1]+"px":"auto",!1)},m:function(i,o){(0,a.$Tr)(i,e,o),r&&r.m(e,null),t[7](e),n=!0},p:function(t,o){var s=o[0];r&&r.p&&(!n||32&s)&&(0,a.kmG)(r,i,t,t[5],n?(0,a.u2N)(i,t[5],s,null):(0,a.VOJ)(t[5]),null),1&s&&(0,a.czc)(e,"display",t[0]?"block":"none",!1),2&s&&(0,a.czc)(e,"top",t[3]?t[1]+"px":"auto",!1)},i:function(t){n||((0,a.Ui)(r,t),n=!0)},o:function(t){(0,a.etI)(r,t),n=!1},d:function(n){n&&(0,a.ogt)(e),r&&r.d(n),t[7](null)}}}function xe(t,e,n){var i,r=e.$$slots,o=void 0===r?{}:r,c=e.$$scope,l=e.show,u=void 0===l?!ge():l,h=e.top,d=e.onResize,f=void 0===d?function(){}:d,p=null,m=ge();return(0,s.H3)(function(){if(u&&f(i.getBoundingClientRect().height),m){var t=ye();(p=new t(function(t){var e=t[0];u&&f(e.contentRect.height)})).observe(i)}}),(0,s.ev)(function(){m&&p.disconnect()}),t.$$set=function(t){"show"in t&&n(0,u=t.show),"top"in t&&n(1,h=t.top),"onResize"in t&&n(4,f=t.onResize),"$$scope"in t&&n(5,c=t.$$scope)},[u,h,i,m,f,c,o,function(t){a.VnY[t?"unshift":"push"](function(){n(2,i=t)})}]}var _e=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,xe,be,a.N8,{show:0,top:1,onResize:4}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"show",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({show:t}),(0,a.yl1)()}},{key:"top",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({top:t}),(0,a.yl1)()}},{key:"onResize",get:function(){return this.$$.ctx[4]},set:function(t){this.$$set({onResize:t}),(0,a.yl1)()}}]),n}(a.f_C),we=function(){function t(){this._x=0,this._endX=0,this._v=0,this._startTime=0,this._endTime=0}var e=t.prototype;return e.set=function(t,e,n,i){this._x=t,this._endX=e,this._v=(e-t)/n,this._startTime=i||Date.now(),this._endTime=this._startTime+n},e.x=function(t){if(this.done(t))return this._endX;var e=t-this._startTime;return this._x+this._v*e},e.dx=function(t){return this.done(t)?0:this._v},e.done=function(t){return t>=this._endTime},t}(),Se=function(){function t(t){this._drag=void 0,this._dragLog=void 0,this._x=0,this._v=0,this._startTime=0,this._drag=t,this._dragLog=Math.log(t)}var e=t.prototype;return e.set=function(t,e,n){this._x=t,this._v=e,this._startTime=n||Date.now()},e.x=function(t){var e=(t-this._startTime)/1e3;return this._x+this._v*Math.pow(this._drag,e)/this._dragLog-this._v/this._dragLog},e.dx=function(t){var e=(t-this._startTime)/1e3;return this._v*Math.pow(this._drag,e)},e.done=function(t){return Math.abs(this.dx(t))<3},t}(),Te=function(t,e){return t>e-.1&&t<e+.1},Ee=function(t){return Te(t,0)},Me=function(){function t(t,e,n){this._solver=void 0,this._solution=void 0,this._endPosition=void 0,this._startTime=void 0,this._solver=function(t,e,n){var i=n,r=t,o=e,a=i*i-4*r*o;if(0==a){var s=-i/(2*r);return function(t,e){var n=t,i=e/(s*t);return{x:function(t){return(n+i*t)*Math.pow(Math.E,s*t)},dx:function(t){return(s*(n+i*t)+i)*Math.pow(Math.E,s*t)}}}}if(a>0){var c=(-i-Math.sqrt(a))/(2*r),l=(-i+Math.sqrt(a))/(2*r);return function(t,e){var n=(e-c*t)/(l-c),i=t-n;return{x:function(t){return i*Math.pow(Math.E,c*t)+n*Math.pow(Math.E,l*t)},dx:function(t){return i*c*Math.pow(Math.E,c*t)+n*l*Math.pow(Math.E,l*t)}}}}var u=Math.sqrt(4*r*o-i*i)/(2*r),h=-i/2*r;return function(t,e){var n=t,i=(e-h*t)/u;return{x:function(t){return Math.pow(Math.E,h*t)*(n*Math.cos(u*t)+i*Math.sin(u*t))},dx:function(t){var e=Math.pow(Math.E,h*t),r=Math.cos(u*t),o=Math.sin(u*t);return e*(i*u*r-n*u*o)+h*e*(i*o+n*r)}}}}(t,e,n),this._solution=null,this._endPosition=0,this._startTime=0}var e=t.prototype;return e.x=function(t){if(!this._solution)return 0;var e=(t-this._startTime)/1e3;return this._endPosition+this._solution.x(e)},e.dx=function(t){if(!this._solution)return 0;var e=(t-this._startTime)/1e3;return this._solution.dx(e)},e.set=function(t,e,n,i){i||(i=Date.now()),this._endPosition=t,e==t&&Ee(n)||(this._solution=this._solver(e-t,n),this._startTime=i)},e.done=function(t){return t||(t=Date.now()),Te(this.x(t),this._endPosition)&&Ee(this.dx(t))},t}(),Ce=function(){function t(t,e){this._enableSpring=e,this._getExtend=void 0,this._friction=new Se(.05),this._spring=new Me(1,90,20),this._toEdge=!1,this._getExtend=t}var e=t.prototype;return e.set=function(t,e,n){if(void 0===n&&(n=Date.now()),this._friction.set(t,e,n),t>0&&e>=0)this._toEdge=!0,this._enableSpring&&this._spring.set(0,t,e,n);else{var i=this._getExtend();t<-i&&e<=0?(this._toEdge=!0,this._enableSpring&&this._spring.set(-i,t,e,n)):this._toEdge=!1}},e.x=function(t){if(this._enableSpring&&this._toEdge)return this._spring.x(t);var e=this._friction.x(t),n=this._friction.dx(t);if(e>0&&n>=0){if(this._toEdge=!0,!this._enableSpring)return 0;this._spring.set(0,e,n,t)}else{var i=this._getExtend();if(e<-i&&n<=0){if(this._toEdge=!0,!this._enableSpring)return-i;this._spring.set(-i,e,n,t)}}return e},e.dx=function(t){return this._toEdge?this._enableSpring?this._spring.dx(t):0:this._friction.dx(t)},e.done=function(t){return this._toEdge?!this._enableSpring||this._spring.done(t):this._friction.done(t)},t}();function Le(t,e){var n,i;return function r(){if(!i){var o=Date.now();e(o),t.done(o)||(n=requestAnimationFrame(r))}}(),{cancel:function(){cancelAnimationFrame(n),i=!0}}}var Oe=function(){function t(t,e){this._updatePosition=e,this._scrollModel=void 0,this._linearModel=void 0,this._startPosition=0,this._position=0,this._animate=null,this._getExtent=void 0,this._getExtent=t,this._scrollModel=new Ce(t,!1),this._linearModel=new we}var e=t.prototype;return e.onTouchStart=function(){var t=this._position;if(t>0)t*=0;else{var e=this._getExtent();t<-e&&(t=0*(t+e)-e)}this._startPosition=this._position=t,this._animate&&(this._animate.cancel(),this._animate=null),this._updatePosition(-t)},e.onTouchMove=function(t,e){var n=e+this._startPosition;if(n>0)n*=0;else{var i=this._getExtent();n<-i&&(n=0*(n+i)-i)}this._position=n,this._updatePosition(-n)},e.onTouchEnd=function(t,e,n,i){var r=this,o=e+this._startPosition;if(o>0)o*=0;else{var a=this._getExtent();o<-a&&(o=0*(o+a)-a)}if(this._position=o,this._updatePosition(-o),!(Math.abs(e)<=.1&&Math.abs(i)<=.1)){var s=this._scrollModel;s.set(o,i),this._animate=Le(s,function(t){var e=r._position=s.x(t);r._updatePosition(-e)})}},e.onTouchCancel=function(){var t=this,e=this._position;if(e>0)e*=0;else{var n=this._getExtent();e<-n&&(e=0*(e+n)-n)}this._position=e;var i=this._scrollModel;i.set(e,0),this._animate=Le(i,function(e){var n=t._position=i.x(e);t._updatePosition(-n)})},e.onWheel=function(t,e){var n=this._position-e;if(this._animate&&(this._animate.cancel(),this._animate=null),n>0)n=0;else{var i=this._getExtent();n<-i&&(n=-i)}this._position=n,this._updatePosition(-n)},e.getPosition=function(){return-this._position},e.updatePosition=function(t){var e=-t-this._position;this._startPosition+=e,this._position+=e;var n=this._position;this._updatePosition(-n);var i=this._scrollModel,r=Date.now();if(!i.done(r)){var o=i.dx(r);i.set(n,o,r)}},e.scrollTo=function(t,e){var n=this;if(this._animate&&(this._animate.cancel(),this._animate=null),e>0){var i=this._linearModel;i.set(this._position,-t,e),this._animate=Le(this._linearModel,function(t){var e=n._position=i.x(t);n._updatePosition(-e)})}else this._updatePosition(t)},t}();function ke(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Pe=function(t){var e=null,n=!1;return{trigger:function(){null===e?function i(){n=!1,t(),e=requestAnimationFrame(function(){e=null,n&&i()})}():n=!0},cancel:function(){e&&(cancelAnimationFrame(e),n=!1,e=null)}}},Ae=function(){function t(t){var e=this;this._handler=t,this._touchId=null,this._startX=0,this._startY=0,this._historyX=[],this._historyY=[],this._historyTime=[],this._wheelDeltaX=0,this._wheelDeltaY=0,this._onTouchMove=function(){var t=e._historyX[e._historyX.length-1],n=e._historyY[e._historyY.length-1];e._handler.onTouchMove(t,n)},this._onWheel=Pe(function(){var t=e._wheelDeltaX,n=e._wheelDeltaY;e._wheelDeltaX=0,e._wheelDeltaY=0,e._handler.onWheel(t,n)}),this.handleTouchStart=function(t){var n;if("1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)){t.preventDefault();var i=t.touches[0];e._touchId=i.identifier,e._startX=i.pageX,e._startY=i.pageY,e._historyX=[0],e._historyY=[0],e._historyTime=[Date.now()],e._handler.onTouchStart()}},this.handleTouchMove=function(t){var n;if("1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)){t.preventDefault();var i=e._getTouchDelta(t);null!==i&&(e._historyX.push(i.x),e._historyY.push(i.y),e._historyTime.push(Date.now()),e._onTouchMove())}},this.handleTouchEnd=function(t){var n;if("1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)){t.preventDefault();var i=e._getTouchDelta(t);if(null!==i){for(var r=0,o=0,a=Date.now(),s=i.y,c=i.x,l=e._historyTime,u=l.length-1;u>0;u-=1){var h=a-l[u];if(h>30){r=1e3*(c-e._historyX[u])/h,o=1e3*(s-e._historyY[u])/h;break}}e._touchId=null,e._handler.onTouchEnd(i.x,i.y,r,o)}}},this.handleTouchCancel=function(t){var n;"1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)&&(t.preventDefault(),null!==e._getTouchDelta(t)&&(e._touchId=null,e._handler.onTouchCancel()))},this.handleWheel=function(t){var n;"1"!==(null==(n=t.target.dataset)?void 0:n.scrollable)&&(t.preventDefault(),e._wheelDeltaX+=t.deltaX,e._wheelDeltaY+=t.deltaY,e._onWheel.trigger())}}return t.prototype._getTouchDelta=function(t){if(null===this._touchId)return null;for(var e,n=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return ke(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?ke(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(t.changedTouches);!(e=n()).done;){var i=e.value;if(i.identifier===this._touchId)return{x:i.pageX-this._startX,y:i.pageY-this._startY}}return null},t}(),Ie=__webpack_require__(1142),De={};Ie.Z&&Ie.Z.locals&&(De.locals=Ie.Z.locals);var Re,Be=0,Ne={};Ne.styleTagTransform=b(),Ne.setAttributes=m(),Ne.insert=f().bind(null,"head"),Ne.domAPI=h(),Ne.insertStyleElement=g(),De.use=function(t){return Ne.options=t||{},Be++||(Re=l()(Ie.Z,Ne)),De},De.unuse=function(){Be>0&&!--Be&&(Re(),Re=null)};var je=De,ze=function(){var t=[],e=[],n=0,i=0,r=0,o=0,a=0;return function(s,c,l){if(r===s&&o===c&&a===l)return t;var u=e.length,h=c<=i?Math.max(0,Math.min(c,Math.max(n,Math.min(i-1,l-u)))):c,d=n<=l?Math.max(l,Math.min(s,Math.max(n+1,Math.min(i,h+u)))):l;if(0===u||d-h<u){for(var f=t.length=e.length=l-c,p=0;p<f;p+=1)e[p]=p,t[p]={key:p,index:p+c,show:!0};return n=c,i=l,r=s,o=c,a=l,t}var m=0,v=0,g=0,y=0;i<h||d<n?(g=h,y=h+u):n<h?(v=h-n,g=h,y=h+u):d<i?(v=u-(i-d),g=d-u,y=d):h<=n&&i<=d&&(g=n,y=i);for(var b=h;b<c;b+=1,m+=1){var x=e[(v+m)%u],_=t[b-h];_.key=x,_.index=b,_.show=!1}for(var w=c,S=0;w<l;w+=1){var T=void 0;g<=w&&w<y?(T=e[(v+m)%u],m+=1):(T=u+S,S+=1);var E=w-h;if(E<t.length){var M=t[E];M.key=T,M.index=w,M.show=!0}else t.push({key:T,index:w,show:!0})}for(var C=l;C<d;C+=1,m+=1){var L=e[(v+m)%u],O=t[C-h];O.key=L,O.index=C,O.show=!1}for(var k=0;k<t.length;k+=1)e[k]=t[k].key;return t.sort(function(t,e){return t.key-e.key}),n=h,i=d,r=s,o=c,a=l,t}},Fe=a.lig.Map,Ve=function(t){return{}},Ue=function(t){return{}},Ge=function(t){return{}},$e=function(t){return{}};function He(t,e,n){var i=t.slice();return i[53]=e[n],i[55]=n,i}var We=function(t){return{item:1025&t[0]}},qe=function(t){return{item:t[0][t[53].index]}},Xe=function(t){return{}},Ye=function(t){return{}};function Ke(t){var e,n,i=t[24].header,r=(0,a.nuO)(i,t,t[31],Ye);return{c:function(){e=(0,a.bGB)("div"),r&&r.c(),(0,a.Ljt)(e,"class","vc-scroller-header")},m:function(i,o){(0,a.$Tr)(i,e,o),r&&r.m(e,null),t[25](e),n=!0},p:function(t,e){r&&r.p&&(!n||1&e[1])&&(0,a.kmG)(r,i,t,t[31],n?(0,a.u2N)(i,t[31],e,Xe):(0,a.VOJ)(t[31]),Ye)},i:function(t){n||((0,a.Ui)(r,t),n=!0)},o:function(t){(0,a.etI)(r,t),n=!1},d:function(n){n&&(0,a.ogt)(e),r&&r.d(n),t[25](null)}}}function Ze(t){var e,n=t[24].empty,i=(0,a.nuO)(n,t,t[31],$e);return{c:function(){i&&i.c()},m:function(t,n){i&&i.m(t,n),e=!0},p:function(t,r){i&&i.p&&(!e||1&r[1])&&(0,a.kmG)(i,n,t,t[31],e?(0,a.u2N)(n,t[31],r,Ge):(0,a.VOJ)(t[31]),$e)},i:function(t){e||((0,a.Ui)(i,t),e=!0)},o:function(t){(0,a.etI)(i,t),e=!1},d:function(t){i&&i.d(t)}}}function Je(t){for(var e,n,i=[],r=new Fe,o=t[10],s=function(t){return t[53].key},c=0;c<o.length;c+=1){var l=He(t,o,c),u=s(l);r.set(u,i[c]=tn(u,l))}return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=(0,a.cSb)()},m:function(t,r){for(var o=0;o<i.length;o+=1)i[o].m(t,r);(0,a.$Tr)(t,e,r),n=!0},p:function(t,n){17921&n[0]|1&n[1]&&(o=t[10],(0,a.dvw)(),i=(0,a.GQg)(i,n,s,1,t,o,r,e.parentNode,a.cly,tn,e,He),(0,a.gbL)())},i:function(t){if(!n){for(var e=0;e<o.length;e+=1)(0,a.Ui)(i[e]);n=!0}},o:function(t){for(var e=0;e<i.length;e+=1)(0,a.etI)(i[e]);n=!1},d:function(t){for(var n=0;n<i.length;n+=1)i[n].d(t);t&&(0,a.ogt)(e)}}}function Qe(t){var e,n,i=t[24].item,r=(0,a.nuO)(i,t,t[31],qe),o=r||function(t){var e;return{c:function(){e=(0,a.fLW)("Missing template")},m:function(t,n){(0,a.$Tr)(t,e,n)},d:function(t){t&&(0,a.ogt)(e)}}}();return{c:function(){o&&o.c(),e=(0,a.DhX)()},m:function(t,i){o&&o.m(t,i),(0,a.$Tr)(t,e,i),n=!0},p:function(t,e){r&&r.p&&(!n||1025&e[0]|1&e[1])&&(0,a.kmG)(r,i,t,t[31],n?(0,a.u2N)(i,t[31],e,We):(0,a.VOJ)(t[31]),qe)},i:function(t){n||((0,a.Ui)(o,t),n=!0)},o:function(t){(0,a.etI)(o,t),n=!1},d:function(t){o&&o.d(t),t&&(0,a.ogt)(e)}}}function tn(t,e){var n,i,r;function o(){for(var t,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(t=e)[26].apply(t,[e[53]].concat(i))}return i=new _e({props:{show:e[53].show,top:e[9][e[53].index],onResize:o,$$slots:{default:[Qe]},$$scope:{ctx:e}}}),{key:t,first:null,c:function(){n=(0,a.cSb)(),(0,a.YCL)(i.$$.fragment),this.first=n},m:function(t,e){(0,a.$Tr)(t,n,e),(0,a.yef)(i,t,e),r=!0},p:function(t,n){e=t;var r={};1024&n[0]&&(r.show=e[53].show),1536&n[0]&&(r.top=e[9][e[53].index]),1024&n[0]&&(r.onResize=o),1025&n[0]|1&n[1]&&(r.$$scope={dirty:n,ctx:e}),i.$set(r)},i:function(t){r||((0,a.Ui)(i.$$.fragment,t),r=!0)},o:function(t){(0,a.etI)(i.$$.fragment,t),r=!1},d:function(t){t&&(0,a.ogt)(n),(0,a.vpE)(i,t)}}}function en(t){var e,n,i=t[24].footer,r=(0,a.nuO)(i,t,t[31],Ue);return{c:function(){e=(0,a.bGB)("div"),r&&r.c(),(0,a.Ljt)(e,"class","vc-scroller-footer")},m:function(i,o){(0,a.$Tr)(i,e,o),r&&r.m(e,null),t[28](e),n=!0},p:function(t,e){r&&r.p&&(!n||1&e[1])&&(0,a.kmG)(r,i,t,t[31],n?(0,a.u2N)(i,t[31],e,Ve):(0,a.VOJ)(t[31]),Ue)},i:function(t){n||((0,a.Ui)(r,t),n=!0)},o:function(t){(0,a.etI)(r,t),n=!1},d:function(n){n&&(0,a.ogt)(e),r&&r.d(n),t[28](null)}}}function nn(t){var e,n,i=t[7]+"%",r=t[8]+"%";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),(0,a.Ljt)(n,"class","vc-scroller-scrollbar-thumb"),(0,a.czc)(n,"height",i,!1),(0,a.czc)(n,"top",r,!1),(0,a.Ljt)(e,"class","vc-scroller-scrollbar-track"),(0,a.czc)(e,"display",t[7]<100?"block":"none",!1)},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n)},p:function(t,o){128&o[0]&&i!==(i=t[7]+"%")&&(0,a.czc)(n,"height",i,!1),256&o[0]&&r!==(r=t[8]+"%")&&(0,a.czc)(n,"top",r,!1),128&o[0]&&(0,a.czc)(e,"display",t[7]<100?"block":"none",!1)},d:function(t){t&&(0,a.ogt)(e)}}}function rn(t){var e,n,i,r,o,s,c,l,u,h,d,f=t[15].header&&Ke(t),p=[Je,Ze],m=[];function v(t,e){return t[0].length?0:1}o=v(t),s=m[o]=p[o](t);var g=t[15].footer&&en(t),y=t[1]&&nn(t);return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),f&&f.c(),i=(0,a.DhX)(),r=(0,a.bGB)("div"),s.c(),c=(0,a.DhX)(),g&&g.c(),l=(0,a.DhX)(),y&&y.c(),(0,a.Ljt)(r,"class","vc-scroller-items"),(0,a.Ljt)(n,"class","vc-scroller-contents"),(0,a.Ljt)(e,"class","vc-scroller-viewport"),(0,a.VHj)(e,"static",!t[13])},m:function(s,p){(0,a.$Tr)(s,e,p),(0,a.R3I)(e,n),f&&f.m(n,null),(0,a.R3I)(n,i),(0,a.R3I)(n,r),m[o].m(r,null),t[27](r),(0,a.R3I)(n,c),g&&g.m(n,null),t[29](n),(0,a.R3I)(e,l),y&&y.m(e,null),t[30](e),u=!0,h||(d=[(0,a.oLt)(e,"touchstart",function(){(0,a.sBU)(t[13]?t[11].handleTouchStart:t[12])&&(t[13]?t[11].handleTouchStart:t[12]).apply(this,arguments)}),(0,a.oLt)(e,"touchmove",function(){(0,a.sBU)(t[13]?t[11].handleTouchMove:t[12])&&(t[13]?t[11].handleTouchMove:t[12]).apply(this,arguments)}),(0,a.oLt)(e,"touchend",function(){(0,a.sBU)(t[13]?t[11].handleTouchEnd:t[12])&&(t[13]?t[11].handleTouchEnd:t[12]).apply(this,arguments)}),(0,a.oLt)(e,"touchcancel",function(){(0,a.sBU)(t[13]?t[11].handleTouchCancel:t[12])&&(t[13]?t[11].handleTouchCancel:t[12]).apply(this,arguments)}),(0,a.oLt)(e,"wheel",function(){(0,a.sBU)(t[13]?t[11].handleWheel:t[12])&&(t[13]?t[11].handleWheel:t[12]).apply(this,arguments)})],h=!0)},p:function(c,l){(t=c)[15].header?f?(f.p(t,l),32768&l[0]&&(0,a.Ui)(f,1)):((f=Ke(t)).c(),(0,a.Ui)(f,1),f.m(n,i)):f&&((0,a.dvw)(),(0,a.etI)(f,1,1,function(){f=null}),(0,a.gbL)());var u=o;(o=v(t))===u?m[o].p(t,l):((0,a.dvw)(),(0,a.etI)(m[u],1,1,function(){m[u]=null}),(0,a.gbL)(),(s=m[o])?s.p(t,l):(s=m[o]=p[o](t)).c(),(0,a.Ui)(s,1),s.m(r,null)),t[15].footer?g?(g.p(t,l),32768&l[0]&&(0,a.Ui)(g,1)):((g=en(t)).c(),(0,a.Ui)(g,1),g.m(n,null)):g&&((0,a.dvw)(),(0,a.etI)(g,1,1,function(){g=null}),(0,a.gbL)()),t[1]?y?y.p(t,l):((y=nn(t)).c(),y.m(e,null)):y&&(y.d(1),y=null)},i:function(t){u||((0,a.Ui)(f),(0,a.Ui)(s),(0,a.Ui)(g),u=!0)},o:function(t){(0,a.etI)(f),(0,a.etI)(s),(0,a.etI)(g),u=!1},d:function(n){n&&(0,a.ogt)(e),f&&f.d(),m[o].d(),t[27](null),g&&g.d(),t[29](null),y&&y.d(),t[30](null),h=!1,(0,a.j7q)(d)}}}function on(t,e,n){var i,r,o,c,l,u,h,d=e.$$slots,f=void 0===d?{}:d,p=e.$$scope,m=(0,a.XGm)(f),v=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{c(i.next(t))}catch(t){o(t)}}function s(t){try{c(i.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}c((i=i.apply(t,e||[])).next())})},g=e.items,y=e.itemKey,b=void 0===y?void 0:y,x=e.itemHeight,_=void 0===x?void 0:x,w=e.buffer,S=void 0===w?200:w,T=e.stickToBottom,E=void 0!==T&&T,M=e.scrollbar,C=void 0!==M&&M,L=e.start,O=void 0===L?0:L,k=e.end,P=void 0===k?0:k,A=0,I=0,D=0,R=0,B=100,N=0,j=[],z=[],F=[],V=ze(),U=function(){return Math.max(0,R+A+I-D)},G=!0,$=!1,H=[],W=!1,q=!1,X=ge(),Y=function(t,e){var n;(0,s.H3)(function(){var i=t();if(i){e(i.getBoundingClientRect().height),n&&n.disconnect();var r=ye();(n=new r(function(t){var n=t[0];e(n.contentRect.height)})).observe(i)}else e(0),n&&(n.disconnect(),n=null)}),(0,s.ev)(function(){n&&(n.disconnect(),n=null)})},K=function(){var t=u.getPosition(),e=100/(R+A+I);n(8,N=t*e),n(7,B=D*e)},Z=function(t){var e=U();(t||u.getPosition()>e)&&u.updatePosition(e)},J=function(t){!function(t,e,i){for(var r=new Map,o=0;o<H.length;o+=1){var a=H[o],s=void 0===b?a:a[b];r.set(s,j[o])}n(9,z.length=j.length=t.length,z);for(var c=0,h=0;h<t.length;h+=1){var d=t[h],f=void 0===b?d:d[b];r.has(f)?j[h]=r.get(f):j[h]=i,n(9,z[h]=c,z),c+=j[h]}R=Math.max(c,e-A-I),H=t,X?(Q(t,u.getPosition(),e),n(6,l.style.height=R+"px",l),Z(G&&E),K()):Q(t,0,9e6)}(t,D,_)};function Q(t,e,i){for(var r=0,o=0;r<t.length&&o+j[r]<e-S;)o+=j[r],r+=1;for(n(16,O=r);r<t.length&&i&&o<e+i+S;)o+=j[r],r+=1;n(17,P=r),n(10,F=V(t.length,O,P))}var tt=function(t,e){return v(void 0,void 0,void 0,me().mark(function i(){var r,o,a,s;return me().wrap(function(i){for(;;)switch(i.prev=i.next){case 0:if(j[t]!==e&&0!==D){i.next=2;break}return i.abrupt("return");case 2:for(r=j[t],j[t]=e,o=g.length,a=t;a<o-1;a+=1)n(9,z[a+1]=z[a]+j[a],z);return R=Math.max(z[o-1]+j[o-1],D-A-I),s=u.getPosition(),$=!0,z[t]+r<s?u.updatePosition(s+e-r):Z(G&&E),i.next=12,new Promise(function(t){return setTimeout(t,0)});case 12:Q(g,u.getPosition(),D),n(6,l.style.height=R+"px",l),K();case 15:case"end":return i.stop()}},i)}))};(0,s.H3)(function(){n(23,W=!0),je.use()}),(0,s.ev)(function(){je.unuse()}),X&&(X&&(u=u||new Oe(U,function(t){return v(void 0,void 0,void 0,me().mark(function e(){var i;return me().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(i=U(),G=Math.abs(t-i)<=1,n(5,c.style.transform="translateY("+-t+"px) translateZ(0)",c),K(),!$){e.next=8;break}$=!1,e.next=11;break;case 8:return e.next=10,new Promise(function(t){return setTimeout(t,0)});case 10:Q(g,t,D);case 11:case"end":return e.stop()}},e)}))}),n(11,h=h||new Ae(u))),!q&&X&&(Y(function(){return o},function(t){return v(void 0,void 0,void 0,me().mark(function e(){var i,r;return me().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(D!==t){e.next=2;break}return e.abrupt("return");case 2:for(D=t,i=0,r=0;r<g.length;r+=1)i+=j[r];return R=Math.max(i,D-I),n(6,l.style.height=R+"px",l),e.next=9,new Promise(function(t){return setTimeout(t,0)});case 9:J(g),Q(g,u.getPosition(),D),0!==D&&Z(G&&E),K();case 13:case"end":return e.stop()}},e)}))}),Y(function(){return r},function(t){if(I!==t){I=t;for(var e=0,i=0;i<g.length;i+=1)e+=j[i];R=Math.max(e,D-A-I),n(6,l.style.height=R+"px",l),0!==D&&Z(G&&E),K()}}),Y(function(){return i},function(t){A!==t&&(A=t,J(g),K())})));var et={scrollTo:function(t){if(X){var e=z[Math.max(0,Math.min(g.length-1,t))],n=Math.min(U(),e),i=Math.min(Math.floor(500*Math.abs(u.getPosition()-n)/2e3),500);u.scrollTo(n,i)}}};return t.$$set=function(t){"items"in t&&n(0,g=t.items),"itemKey"in t&&n(18,b=t.itemKey),"itemHeight"in t&&n(19,_=t.itemHeight),"buffer"in t&&n(20,S=t.buffer),"stickToBottom"in t&&n(21,E=t.stickToBottom),"scrollbar"in t&&n(1,C=t.scrollbar),"start"in t&&n(16,O=t.start),"end"in t&&n(17,P=t.end),"$$scope"in t&&n(31,p=t.$$scope)},t.$$.update=function(){8388609&t.$$.dirty[0]&&W&&(X||n(4,o.parentElement.style.height="auto",o),J(g),q=!0)},[g,C,i,r,o,c,l,B,N,z,F,h,function(){},X,tt,m,O,P,b,_,S,E,et,W,f,function(t){a.VnY[t?"unshift":"push"](function(){n(2,i=t)})},function(t,e){return tt(t.index,e)},function(t){a.VnY[t?"unshift":"push"](function(){n(6,l=t)})},function(t){a.VnY[t?"unshift":"push"](function(){n(3,r=t)})},function(t){a.VnY[t?"unshift":"push"](function(){n(5,c=t)})},function(t){a.VnY[t?"unshift":"push"](function(){n(4,o=t),n(23,W),n(13,X),n(0,g)})},p]}var an=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,on,rn,a.N8,{items:0,itemKey:18,itemHeight:19,buffer:20,stickToBottom:21,scrollbar:1,start:16,end:17,handler:22},null,[-1,-1]),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"items",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({items:t}),(0,a.yl1)()}},{key:"itemKey",get:function(){return this.$$.ctx[18]},set:function(t){this.$$set({itemKey:t}),(0,a.yl1)()}},{key:"itemHeight",get:function(){return this.$$.ctx[19]},set:function(t){this.$$set({itemHeight:t}),(0,a.yl1)()}},{key:"buffer",get:function(){return this.$$.ctx[20]},set:function(t){this.$$set({buffer:t}),(0,a.yl1)()}},{key:"stickToBottom",get:function(){return this.$$.ctx[21]},set:function(t){this.$$set({stickToBottom:t}),(0,a.yl1)()}},{key:"scrollbar",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({scrollbar:t}),(0,a.yl1)()}},{key:"start",get:function(){return this.$$.ctx[16]},set:function(t){this.$$set({start:t}),(0,a.yl1)()}},{key:"end",get:function(){return this.$$.ctx[17]},set:function(t){this.$$set({end:t}),(0,a.yl1)()}},{key:"handler",get:function(){return this.$$.ctx[22]}}]),n}(a.f_C);function sn(t){var e;return{c:function(){(e=(0,a.bGB)("div")).textContent="Empty",(0,a.Ljt)(e,"slot","empty"),(0,a.Ljt)(e,"class","vc-plugin-empty")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function cn(t){var e,n;return(e=new ae({props:{slot:"item",log:t[16],showTimestamps:t[1],groupHeader:t[16].groupHeader}})).$on("groupCollapsed",t[6]),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,i){(0,a.yef)(e,t,i),n=!0},p:function(t,n){var i={};65536&n&&(i.log=t[16]),2&n&&(i.showTimestamps=t[1]),65536&n&&(i.groupHeader=t[16].groupHeader),e.$set(i)},i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function ln(t){var e,n;return(e=new se.Z({})).$on("filterText",t[5]),{c:function(){(0,a.YCL)(e.$$.fragment)},m:function(t,i){(0,a.yef)(e,t,i),n=!0},p:a.ZTd,i:function(t){n||((0,a.Ui)(e.$$.fragment,t),n=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),n=!1},d:function(t){(0,a.vpE)(e,t)}}}function un(t){var e,n,i=t[0]&&ln(t);return{c:function(){i&&i.c(),e=(0,a.cSb)()},m:function(t,r){i&&i.m(t,r),(0,a.$Tr)(t,e,r),n=!0},p:function(t,n){t[0]?i?(i.p(t,n),1&n&&(0,a.Ui)(i,1)):((i=ln(t)).c(),(0,a.Ui)(i,1),i.m(e.parentNode,e)):i&&((0,a.dvw)(),(0,a.etI)(i,1,1,function(){i=null}),(0,a.gbL)())},i:function(t){n||((0,a.Ui)(i),n=!0)},o:function(t){(0,a.etI)(i),n=!1},d:function(t){i&&i.d(t),t&&(0,a.ogt)(e)}}}function hn(t){var e,n,i,r;function o(e){t[15](e)}var s={items:t[4],itemKey:"_id",itemHeight:30,buffer:100,stickToBottom:!0,scrollbar:!0,$$slots:{footer:[un],item:[cn,function(t){return{16:t.item}},function(t){return t.item?65536:0}],empty:[sn]},$$scope:{ctx:t}};return void 0!==t[3]&&(s.handler=t[3]),n=new an({props:s}),a.VnY.push(function(){return(0,a.akz)(n,"handler",o)}),{c:function(){e=(0,a.bGB)("div"),(0,a.YCL)(n.$$.fragment),(0,a.Ljt)(e,"class","vc-plugin-content"),(0,a.VHj)(e,"vc-logs-has-cmd",t[0])},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.yef)(n,e,null),r=!0},p:function(t,r){var o=r[0],s={};16&o&&(s.items=t[4]),196611&o&&(s.$$scope={dirty:o,ctx:t}),!i&&8&o&&(i=!0,s.handler=t[3],(0,a.hjT)(function(){return i=!1})),n.$set(s),1&o&&(0,a.VHj)(e,"vc-logs-has-cmd",t[0])},i:function(t){r||((0,a.Ui)(n.$$.fragment,t),r=!0)},o:function(t){(0,a.etI)(n.$$.fragment,t),r=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(n)}}}function dn(t,e,n){var i,r=a.ZTd;t.$$.on_destroy.push(function(){return r()});var o,c,l=e.pluginId,u=void 0===l?"default":l,h=e.showCmd,d=void 0!==h&&h,f=e.filterType,p=void 0===f?"all":f,m=e.showTimestamps,v=void 0!==m&&m,g=!1,y="",b=[];return(0,s.H3)(function(){fe.use()}),(0,s.ev)(function(){fe.unuse()}),t.$$set=function(t){"pluginId"in t&&n(7,u=t.pluginId),"showCmd"in t&&n(0,d=t.showCmd),"filterType"in t&&n(8,p=t.filterType),"showTimestamps"in t&&n(1,v=t.showTimestamps)},t.$$.update=function(){29056&t.$$.dirty&&(g||(n(2,o=rt.O.get(u)),r(),r=(0,a.LdU)(o,function(t){return n(14,i=t)}),n(12,g=!0)),n(4,b=i.logList.filter(function(t){return("all"===p||p===t.type)&&(""===y||(0,it.HX)(t,y))&&!t.groupCollapsed})))},[d,v,o,c,b,function(t){n(13,y=t.detail.filterText||"")},function(t){var e=t.detail.groupLabel,n=t.detail.groupHeader,i=t.detail.isGroupCollapsed;o.update(function(t){return t.logList.forEach(function(t){t.groupLabel===e&&(t.groupHeader>0?t.groupHeader=n:t.groupCollapsed=i)}),t})},u,p,function(){c.scrollTo(0)},function(){c.scrollTo(b.length-1)},{fixedHeight:!0},g,y,i,function(t){n(3,c=t)}]}var fn=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,dn,hn,a.N8,{pluginId:7,showCmd:0,filterType:8,showTimestamps:1,scrollToTop:9,scrollToBottom:10,options:11}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"pluginId",get:function(){return this.$$.ctx[7]},set:function(t){this.$$set({pluginId:t}),(0,a.yl1)()}},{key:"showCmd",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({showCmd:t}),(0,a.yl1)()}},{key:"filterType",get:function(){return this.$$.ctx[8]},set:function(t){this.$$set({filterType:t}),(0,a.yl1)()}},{key:"showTimestamps",get:function(){return this.$$.ctx[1]},set:function(t){this.$$set({showTimestamps:t}),(0,a.yl1)()}},{key:"scrollToTop",get:function(){return this.$$.ctx[9]}},{key:"scrollToBottom",get:function(){return this.$$.ctx[10]}},{key:"options",get:function(){return this.$$.ctx[11]}}]),n}(a.f_C),pn=__webpack_require__(5629),mn=function(){function t(t){this.model=void 0,this.pluginId=void 0,this.pluginId=t}return t.prototype.destroy=function(){this.model=void 0},t}(),vn=function(t){function e(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(e=t.call.apply(t,[this].concat(i))||this).model=pn.W.getSingleton(pn.W,"VConsoleLogModel"),e}(0,o.Z)(e,t);var n=e.prototype;return n.log=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["log"].concat(e))},n.info=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["info"].concat(e))},n.debug=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["debug"].concat(e))},n.warn=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["warn"].concat(e))},n.error=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];this.addLog.apply(this,["error"].concat(e))},n.clear=function(){this.model&&this.model.clearPluginLog(this.pluginId)},n.addLog=function(t){if(this.model){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i<e;i++)n[i-1]=arguments[i];n.unshift("["+this.pluginId+"]"),this.model.addLog({type:t,origData:n},{noOrig:!0})}},e}(mn),gn=function(t){function e(e,n){var i;return(i=t.call(this,e,n,fn,{pluginId:e,filterType:"all"})||this).model=pn.W.getSingleton(pn.W,"VConsoleLogModel"),i.isReady=!1,i.isShow=!1,i.isInBottom=!0,i.model.bindPlugin(e),i.exporter=new vn(e),i}(0,o.Z)(e,t);var n=e.prototype;return n.onReady=function(){var e,n;t.prototype.onReady.call(this),this.model.maxLogNumber=Number(null==(e=this.vConsole.option.log)?void 0:e.maxLogNumber)||1e3,this.compInstance.showTimestamps=!(null==(n=this.vConsole.option.log)||!n.showTimestamps)},n.onRemove=function(){t.prototype.onRemove.call(this),this.model.unbindPlugin(this.id)},n.onAddTopBar=function(t){for(var e=this,n=["All","Log","Info","Warn","Error"],i=[],r=0;r<n.length;r++)i.push({name:n[r],data:{type:n[r].toLowerCase()},actived:0===r,className:"",onClick:function(t,n){if(n.type===e.compInstance.filterType)return!1;e.compInstance.filterType=n.type}});i[0].className="vc-actived",t(i)},n.onAddTool=function(t){var e=this;t([{name:"Clear",global:!1,onClick:function(t){e.model.clearPluginLog(e.id),e.vConsole.triggerEvent("clearLog")}},{name:"Top",global:!1,onClick:function(t){e.compInstance.scrollToTop()}},{name:"Bottom",global:!1,onClick:function(t){e.compInstance.scrollToBottom()}}])},n.onUpdateOption=function(){var t,e,n,i;(null==(t=this.vConsole.option.log)?void 0:t.maxLogNumber)!==this.model.maxLogNumber&&(this.model.maxLogNumber=Number(null==(n=this.vConsole.option.log)?void 0:n.maxLogNumber)||1e3),!(null==(e=this.vConsole.option.log)||!e.showTimestamps)!==this.compInstance.showTimestamps&&(this.compInstance.showTimestamps=!(null==(i=this.vConsole.option.log)||!i.showTimestamps))},e}(nt),yn=function(t){function n(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(e=t.call.apply(t,[this].concat(i))||this).onErrorHandler=void 0,e.resourceErrorHandler=void 0,e.rejectionHandler=void 0,e}(0,o.Z)(n,t);var i=n.prototype;return i.onReady=function(){t.prototype.onReady.call(this),this.bindErrors(),this.compInstance.showCmd=!0},i.onRemove=function(){t.prototype.onRemove.call(this),this.unbindErrors()},i.bindErrors=function(){e.FJ(window)&&e.mf(window.addEventListener)&&(this.catchWindowOnError(),this.catchResourceError(),this.catchUnhandledRejection())},i.unbindErrors=function(){e.FJ(window)&&e.mf(window.addEventListener)&&(window.removeEventListener("error",this.onErrorHandler),window.removeEventListener("error",this.resourceErrorHandler),window.removeEventListener("unhandledrejection",this.rejectionHandler))},i.catchWindowOnError=function(){var t=this;this.onErrorHandler=this.onErrorHandler?this.onErrorHandler:function(e){var n=e.message;e.filename&&(n+="\\n\\t"+e.filename.replace(location.origin,""),(e.lineno||e.colno)&&(n+=":"+e.lineno+":"+e.colno)),n+="\\n"+(!!e.error&&!!e.error.stack&&e.error.stack.toString()||""),t.model.addLog({type:"error",origData:[n]},{noOrig:!0})},window.removeEventListener("error",this.onErrorHandler),window.addEventListener("error",this.onErrorHandler)},i.catchResourceError=function(){var t=this;this.resourceErrorHandler=this.resourceErrorHandler?this.resourceErrorHandler:function(e){var n=e.target;if(["link","video","script","img","audio"].indexOf(n.localName)>-1){var i=n.href||n.src||n.currentSrc;t.model.addLog({type:"error",origData:["GET <"+n.localName+"> error: "+i]},{noOrig:!0})}},window.removeEventListener("error",this.resourceErrorHandler),window.addEventListener("error",this.resourceErrorHandler,!0)},i.catchUnhandledRejection=function(){var t=this;this.rejectionHandler=this.rejectionHandler?this.rejectionHandler:function(e){var n=e&&e.reason,i="Uncaught (in promise) ",r=[i,n];n instanceof Error&&(r=[i,{name:n.name,message:n.message,stack:n.stack}]),t.model.addLog({type:"error",origData:r},{noOrig:!0})},window.removeEventListener("unhandledrejection",this.rejectionHandler),window.addEventListener("unhandledrejection",this.rejectionHandler)},n}(gn),bn=function(t){function e(){return t.apply(this,arguments)||this}(0,o.Z)(e,t);var n=e.prototype;return n.onReady=function(){t.prototype.onReady.call(this),this.printSystemInfo()},n.printSystemInfo=function(){var t=navigator.userAgent,e=[],n=t.match(/MicroMessenger\/([\d\.]+)/i),i=n&&n[1]?n[1]:null;"servicewechat.com"===location.host||console.info("[system]","Location:",location.href);var r=t.match(/(ipod).*\s([\d_]+)/i),o=t.match(/(ipad).*\s([\d_]+)/i),a=t.match(/(iphone)\sos\s([\d_]+)/i),s=t.match(/(android)\s([\d\.]+)/i),c=t.match(/(Mac OS X)\s([\d_]+)/i);e=[],s?e.push("Android "+s[2]):a?e.push("iPhone, iOS "+a[2].replace(/_/g,".")):o?e.push("iPad, iOS "+o[2].replace(/_/g,".")):r?e.push("iPod, iOS "+r[2].replace(/_/g,".")):c&&e.push("Mac, MacOS "+c[2].replace(/_/g,".")),i&&e.push("WeChat "+i),console.info("[system]","Client:",e.length?e.join(", "):"Unknown");var l=t.toLowerCase().match(/ nettype\/([^ ]+)/g);l&&l[0]&&(e=[(l=l[0].split("/"))[1]],console.info("[system]","Network:",e.length?e.join(", "):"Unknown")),console.info("[system]","UA:",t),setTimeout(function(){var t=window.performance||window.msPerformance||window.webkitPerformance;if(t&&t.timing){var e=t.timing;e.navigationStart&&console.info("[system]","navigationStart:",e.navigationStart),e.navigationStart&&e.domainLookupStart&&console.info("[system]","navigation:",e.domainLookupStart-e.navigationStart+"ms"),e.domainLookupEnd&&e.domainLookupStart&&console.info("[system]","dns:",e.domainLookupEnd-e.domainLookupStart+"ms"),e.connectEnd&&e.connectStart&&(e.connectEnd&&e.secureConnectionStart?console.info("[system]","tcp (ssl):",e.connectEnd-e.connectStart+"ms ("+(e.connectEnd-e.secureConnectionStart)+"ms)"):console.info("[system]","tcp:",e.connectEnd-e.connectStart+"ms")),e.responseStart&&e.requestStart&&console.info("[system]","request:",e.responseStart-e.requestStart+"ms"),e.responseEnd&&e.responseStart&&console.info("[system]","response:",e.responseEnd-e.responseStart+"ms"),e.domComplete&&e.domLoading&&(e.domContentLoadedEventStart&&e.domLoading?console.info("[system]","domComplete (domLoaded):",e.domComplete-e.domLoading+"ms ("+(e.domContentLoadedEventStart-e.domLoading)+"ms)"):console.info("[system]","domComplete:",e.domComplete-e.domLoading+"ms")),e.loadEventEnd&&e.loadEventStart&&console.info("[system]","loadEvent:",e.loadEventEnd-e.loadEventStart+"ms"),e.navigationStart&&e.loadEventEnd&&console.info("[system]","total (DOM):",e.loadEventEnd-e.navigationStart+"ms ("+(e.domComplete-e.navigationStart)+"ms)")}},0)},e}(gn),xn=__webpack_require__(3313),_n=__webpack_require__(643);function wn(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Sn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Sn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Sn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var Tn=function(t,n){void 0===n&&(n={}),e.Kn(n)||(n={});var i=t?t.split("?"):[];if(i.shift(),i.length>0)for(var r,o=wn(i=i.join("?").split("&"));!(r=o()).done;){var a=r.value.split("=");try{n[a[0]]=decodeURIComponent(a[1])}catch(t){n[a[0]]=a[1]}}return n},En=function(t,n){var i="";switch(t){case"":case"text":case"json":if(e.HD(n))try{i=JSON.parse(n),i=e.hZ(i,{maxDepth:10,keyMaxLen:1e4,pretty:!0,standardJSON:!0})}catch(t){i=e.id(String(n),1e4)}else e.Kn(n)||e.kJ(n)?i=e.hZ(n,{maxDepth:10,keyMaxLen:1e4,pretty:!0,standardJSON:!0}):void 0!==n&&(i=Object.prototype.toString.call(n));break;default:void 0!==n&&(i=Object.prototype.toString.call(n))}return i},Mn=function(t){if(!t)return null;var n=null;if("string"==typeof t)try{n=JSON.parse(t)}catch(e){var i=t.split("&");if(1===i.length)n=t;else{n={};for(var r,o=wn(i);!(r=o()).done;){var a=r.value.split("=");n[a[0]]=void 0===a[1]?"undefined":a[1]}}}else if(e.TW(t)){n={};for(var s,c=wn(t);!(s=c()).done;){var l=s.value,u=l[0],h=l[1];n[u]="string"==typeof h?h:"[object Object]"}}else n=e.PO(t)?t:"[object "+e.zl(t)+"]";return n},Cn=function(t){return void 0===t&&(t=""),t.startsWith("//")&&(t=""+new URL(window.location.href).protocol+t),t.startsWith("http")?new URL(t):new URL(t,window.location.href)},Ln=function(){this.id="",this.name="",this.method="",this.url="",this.status=0,this.statusText="",this.cancelState=0,this.readyState=0,this.header=null,this.responseType="",this.requestType=void 0,this.requestHeader=null,this.response=void 0,this.responseSize=0,this.responseSizeText="",this.startTime=0,this.startTimeText="",this.endTime=0,this.costTime=0,this.getData=null,this.postData=null,this.actived=!1,this.noVConsole=!1,this.id=(0,e.QI)()},On=function(t){function e(n){var i;return(i=t.call(this)||this)._response=void 0,new Proxy(n,e.Handler)||(0,r.Z)(i)}return(0,o.Z)(e,t),e}(Ln);On.Handler={get:function(t,e){return"response"===e?t._response:Reflect.get(t,e)},set:function(t,e,n){var i;switch(e){case"response":return t._response=En(t.responseType,n),!0;case"url":var r=(null==(i=n=String(n))?void 0:i.replace(new RegExp("[/]*$"),"").split("/").pop())||"Unknown";Reflect.set(t,"name",r);var o=Tn(n,t.getData);Reflect.set(t,"getData",o);break;case"status":var a=String(n)||"Unknown";Reflect.set(t,"statusText",a);break;case"startTime":if(n&&t.endTime){var s=t.endTime-n;Reflect.set(t,"costTime",s)}break;case"endTime":if(n&&t.startTime){var c=n-t.startTime;Reflect.set(t,"costTime",c)}}return Reflect.set(t,e,n)}};var kn=function(){function t(t,e){var n=this;this.XMLReq=void 0,this.item=void 0,this.onUpdateCallback=void 0,this.XMLReq=t,this.XMLReq.onreadystatechange=function(){n.onReadyStateChange()},this.XMLReq.onabort=function(){n.onAbort()},this.XMLReq.ontimeout=function(){n.onTimeout()},this.item=new Ln,this.item.requestType="xhr",this.onUpdateCallback=e}var n=t.prototype;return n.get=function(t,e){switch(e){case"_noVConsole":return this.item.noVConsole;case"open":return this.getOpen(t);case"send":return this.getSend(t);case"setRequestHeader":return this.getSetRequestHeader(t);default:var n=Reflect.get(t,e);return"function"==typeof n?n.bind(t):n}},n.set=function(t,e,n){switch(e){case"_noVConsole":return void(this.item.noVConsole=!!n);case"onreadystatechange":return this.setOnReadyStateChange(t,e,n);case"onabort":return this.setOnAbort(t,e,n);case"ontimeout":return this.setOnTimeout(t,e,n)}return Reflect.set(t,e,n)},n.onReadyStateChange=function(){this.item.readyState=this.XMLReq.readyState,this.item.responseType=this.XMLReq.responseType,this.item.endTime=Date.now(),this.item.costTime=this.item.endTime-this.item.startTime,this.updateItemByReadyState(),this.item.response=En(this.item.responseType,this.item.response),this.triggerUpdate()},n.onAbort=function(){this.item.cancelState=1,this.item.statusText="Abort",this.triggerUpdate()},n.onTimeout=function(){this.item.cancelState=3,this.item.statusText="Timeout",this.triggerUpdate()},n.triggerUpdate=function(){this.item.noVConsole||this.onUpdateCallback(this.item)},n.getOpen=function(t){var e=this,n=Reflect.get(t,"open");return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];var a=r[0],s=r[1];return e.item.method=a?a.toUpperCase():"GET",e.item.url=s||"",e.item.name=e.item.url.replace(new RegExp("[/]*$"),"").split("/").pop()||"",e.item.getData=Tn(e.item.url,{}),e.triggerUpdate(),n.apply(t,r)}},n.getSend=function(t){var e=this,n=Reflect.get(t,"send");return function(){for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];var a=r[0];return e.item.postData=Mn(a),e.triggerUpdate(),n.apply(t,r)}},n.getSetRequestHeader=function(t){var e=this,n=Reflect.get(t,"setRequestHeader");return function(){e.item.requestHeader||(e.item.requestHeader={});for(var i=arguments.length,r=new Array(i),o=0;o<i;o++)r[o]=arguments[o];return e.item.requestHeader[r[0]]=r[1],e.triggerUpdate(),n.apply(t,r)}},n.setOnReadyStateChange=function(t,e,n){var i=this;return Reflect.set(t,e,function(){i.onReadyStateChange();for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];n.apply(t,r)})},n.setOnAbort=function(t,e,n){var i=this;return Reflect.set(t,e,function(){i.onAbort();for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];n.apply(t,r)})},n.setOnTimeout=function(t,e,n){var i=this;return Reflect.set(t,e,function(){i.onTimeout();for(var e=arguments.length,r=new Array(e),o=0;o<e;o++)r[o]=arguments[o];n.apply(t,r)})},n.updateItemByReadyState=function(){switch(this.XMLReq.readyState){case 0:case 1:if(this.item.status=0,this.item.statusText="Pending",!this.item.startTime){this.item.startTime=Date.now();var t=(0,e._3)(this.item.startTime);this.item.startTimeText=t.year+"-"+t.month+"-"+t.day+" "+t.hour+":"+t.minute+":"+t.second+"."+t.millisecond}break;case 2:this.item.status=this.XMLReq.status,this.item.statusText="Loading",this.item.header={};for(var n=(this.XMLReq.getAllResponseHeaders()||"").split("\n"),i=0;i<n.length;i++){var r=n[i];if(r){var o=r.split(": "),a=o[0],s=o.slice(1).join(": ");this.item.header[a]=s}}break;case 3:this.item.status=this.XMLReq.status,this.item.statusText="Loading",this.XMLReq.response&&this.XMLReq.response.length&&(this.item.responseSize=this.XMLReq.response.length,this.item.responseSizeText=(0,e.KL)(this.item.responseSize));break;case 4:this.item.status=this.XMLReq.status||this.item.status||0,this.item.statusText=String(this.item.status),this.item.endTime=Date.now(),this.item.costTime=this.item.endTime-(this.item.startTime||this.item.endTime),this.item.response=this.XMLReq.response,this.XMLReq.response&&this.XMLReq.response.length&&(this.item.responseSize=this.XMLReq.response.length,this.item.responseSizeText=(0,e.KL)(this.item.responseSize));break;default:this.item.status=this.XMLReq.status,this.item.statusText="Unknown"}},t}(),Pn=function(){function t(){}return t.create=function(t){return new Proxy(XMLHttpRequest,{construct:function(e){var n=new e;return new Proxy(n,new kn(n,t))}})},t}();function An(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return In(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?In(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function In(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}Pn.origXMLHttpRequest=XMLHttpRequest;var Dn=function(){function t(t,e,n){this.resp=void 0,this.item=void 0,this.onUpdateCallback=void 0,this.resp=t,this.item=e,this.onUpdateCallback=n,this.mockReader()}var n=t.prototype;return n.set=function(t,e,n){return Reflect.set(t,e,n)},n.get=function(t,e){var n=this,i=Reflect.get(t,e);switch(e){case"arrayBuffer":case"blob":case"formData":case"json":case"text":return function(){return n.item.responseType=e.toLowerCase(),i.apply(t).then(function(t){return n.item.response=En(n.item.responseType,t),n.onUpdateCallback(n.item),t})}}return"function"==typeof i?i.bind(t):i},n.mockReader=function(){var t,n=this;if(this.resp.body&&"function"==typeof this.resp.body.getReader){var i=this.resp.body.getReader;this.resp.body.getReader=function(){var r=i.apply(n.resp.body);if(4===n.item.readyState)return r;var o=r.read,a=r.cancel;return n.item.responseType="arraybuffer",r.read=function(){return o.apply(r).then(function(i){if(t){var r=new Uint8Array(t.length+i.value.length);r.set(t),r.set(i.value,t.length),t=r}else t=new Uint8Array(i.value);return n.item.endTime=Date.now(),n.item.costTime=n.item.endTime-(n.item.startTime||n.item.endTime),n.item.readyState=i.done?4:3,n.item.statusText=i.done?String(n.item.status):"Loading",n.item.responseSize=t.length,n.item.responseSizeText=e.KL(n.item.responseSize),i.done&&(n.item.response=En(n.item.responseType,t)),n.onUpdateCallback(n.item),i})},r.cancel=function(){n.item.cancelState=2,n.item.statusText="Cancel",n.item.endTime=Date.now(),n.item.costTime=n.item.endTime-(n.item.startTime||n.item.endTime),n.item.response=En(n.item.responseType,t),n.onUpdateCallback(n.item);for(var e=arguments.length,i=new Array(e),o=0;o<e;o++)i[o]=arguments[o];return a.apply(r,i)},r}}},t}(),Rn=function(){function t(t){this.onUpdateCallback=void 0,this.onUpdateCallback=t}var n=t.prototype;return n.apply=function(t,e,n){var i=this,r=n[0],o=n[1],a=new Ln;return this.beforeFetch(a,r,o),t.apply(window,n).then(this.afterFetch(a)).catch(function(t){throw a.endTime=Date.now(),a.costTime=a.endTime-(a.startTime||a.endTime),i.onUpdateCallback(a),t})},n.beforeFetch=function(t,n,i){var r,o="GET",a=null;if(e.HD(n)?(o=(null==i?void 0:i.method)||"GET",r=Cn(n),a=(null==i?void 0:i.headers)||null):(o=n.method||"GET",r=Cn(n.url),a=n.headers),t.method=o,t.requestType="fetch",t.requestHeader=a,t.url=r.toString(),t.name=(r.pathname.split("/").pop()||"")+r.search,t.status=0,t.statusText="Pending",t.readyState=1,!t.startTime){t.startTime=Date.now();var s=e._3(t.startTime);t.startTimeText=s.year+"-"+s.month+"-"+s.day+" "+s.hour+":"+s.minute+":"+s.second+"."+s.millisecond}if("[object Headers]"===Object.prototype.toString.call(a)){t.requestHeader={};for(var c,l=An(a);!(c=l()).done;){var u=c.value,h=u[0],d=u[1];t.requestHeader[h]=d}}else t.requestHeader=a;if(r.search&&r.searchParams){t.getData={};for(var f,p=An(r.searchParams);!(f=p()).done;){var m=f.value,v=m[0],g=m[1];t.getData[v]=g}}null!=i&&i.body&&(t.postData=Mn(i.body)),this.onUpdateCallback(t)},n.afterFetch=function(t){var n=this;return function(i){t.endTime=Date.now(),t.costTime=t.endTime-(t.startTime||t.endTime),t.status=i.status,t.statusText=String(i.status);var r=!1;t.header={};for(var o,a=An(i.headers);!(o=a()).done;){var s=o.value,c=s[0],l=s[1];t.header[c]=l,r=l.toLowerCase().indexOf("chunked")>-1||r}return r?t.readyState=3:(t.readyState=4,n.handleResponseBody(i.clone(),t).then(function(i){t.responseSize="string"==typeof i?i.length:i.byteLength,t.responseSizeText=e.KL(t.responseSize),t.response=En(t.responseType,i),n.onUpdateCallback(t)})),n.onUpdateCallback(t),new Proxy(i,new Dn(i,t,n.onUpdateCallback))}},n.handleResponseBody=function(t,e){var n=t.headers.get("content-type");return n&&n.includes("application/json")?(e.responseType="json",t.text()):n&&(n.includes("text/html")||n.includes("text/plain"))?(e.responseType="text",t.text()):(e.responseType="arraybuffer",t.arrayBuffer())},t}(),Bn=function(){function t(){}return t.create=function(t){return new Proxy(fetch,new Rn(t))},t}();function Nn(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}Bn.origFetch=fetch;var jn=function(){function t(t){this.onUpdateCallback=void 0,this.onUpdateCallback=t}return t.prototype.apply=function(t,e,n){var i=n[0],r=n[1],o=new Ln,a=Cn(i);if(o.method="POST",o.url=i,o.name=(a.pathname.split("/").pop()||"")+a.search,o.requestType="ping",o.requestHeader={"Content-Type":function(t){return t instanceof Blob?t.type:t instanceof FormData?"multipart/form-data":t instanceof URLSearchParams?"application/x-www-form-urlencoded;charset=UTF-8":"text/plain;charset=UTF-8"}(r)},o.status=0,o.statusText="Pending",a.search&&a.searchParams){o.getData={};for(var s,c=function(t,e){var n="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(n)return(n=n.call(t)).next.bind(n);if(Array.isArray(t)||(n=function(t,e){if(t){if("string"==typeof t)return Nn(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?Nn(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){n&&(t=n);var i=0;return function(){return i>=t.length?{done:!0}:{done:!1,value:t[i++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}(a.searchParams);!(s=c()).done;){var l=s.value,u=l[0],h=l[1];o.getData[u]=h}}o.postData=Mn(r),o.startTime||(o.startTime=Date.now()),this.onUpdateCallback(o);var d=t.apply(e,n);return d?(o.endTime=Date.now(),o.costTime=o.endTime-(o.startTime||o.endTime),o.status=0,o.statusText="Sent",o.readyState=4):(o.status=500,o.statusText="Unknown"),this.onUpdateCallback(o),d},t}(),zn=function(){function t(){}return t.create=function(t){return new Proxy(navigator.sendBeacon,new jn(t))},t}();zn.origSendBeacon=navigator.sendBeacon;var Fn=(0,xn.fZ)({}),Vn=function(t){function e(){var e;return(e=t.call(this)||this).maxNetworkNumber=1e3,e.ignoreUrlRegExp=void 0,e.itemCounter=0,e.mockXHR(),e.mockFetch(),e.mockSendBeacon(),e}(0,o.Z)(e,t);var n=e.prototype;return n.unMock=function(){window.hasOwnProperty("XMLHttpRequest")&&(window.XMLHttpRequest=Pn.origXMLHttpRequest),window.hasOwnProperty("fetch")&&(window.fetch=Bn.origFetch),window.navigator.sendBeacon&&(window.navigator.sendBeacon=zn.origSendBeacon)},n.clearLog=function(){Fn.set({})},n.updateRequest=function(t,e){var n,i=e.url;if(!i||null==(n=this.ignoreUrlRegExp)||!n.test(i)){var r=(0,xn.U2)(Fn),o=!!r[t];if(o){var a=r[t];for(var s in e)a[s]=e[s];e=a}Fn.update(function(n){return n[t]=e,n}),o||(A.x.updateTime(),this.limitListLength())}},n.mockXHR=function(){var t=this;window.hasOwnProperty("XMLHttpRequest")&&(window.XMLHttpRequest=Pn.create(function(e){t.updateRequest(e.id,e)}))},n.mockFetch=function(){var t=this;window.hasOwnProperty("fetch")&&(window.fetch=Bn.create(function(e){t.updateRequest(e.id,e)}))},n.mockSendBeacon=function(){var t,e,n=this;null!=(t=window)&&null!=(e=t.navigator)&&e.sendBeacon&&(window.navigator.sendBeacon=zn.create(function(t){n.updateRequest(t.id,t)}))},n.limitListLength=function(){var t=this;if(this.itemCounter++,this.itemCounter%10==0){this.itemCounter=0;var e=(0,xn.U2)(Fn),n=Object.keys(e);n.length>this.maxNetworkNumber-10&&Fn.update(function(e){for(var i=n.splice(0,n.length-t.maxNetworkNumber+10),r=0;r<i.length;r++)e[i[r]]=void 0,delete e[i[r]];return e})}},e}(_n.N),Un=__webpack_require__(8747),Gn={};Un.Z&&Un.Z.locals&&(Gn.locals=Un.Z.locals);var $n,Hn=0,Wn={};Wn.styleTagTransform=b(),Wn.setAttributes=m(),Wn.insert=f().bind(null,"head"),Wn.domAPI=h(),Wn.insertStyleElement=g(),Gn.use=function(t){return Wn.options=t||{},Hn++||($n=l()(Un.Z,Wn)),Gn},Gn.unuse=function(){Hn>0&&!--Hn&&($n(),$n=null)};var qn=Gn;function Xn(t,e,n){var i=t.slice();return i[11]=e[n][0],i[12]=e[n][1],i}function Yn(t,e,n){var i=t.slice();return i[11]=e[n][0],i[12]=e[n][1],i}function Kn(t,e,n){var i=t.slice();return i[11]=e[n][0],i[12]=e[n][1],i}function Zn(t,e,n){var i=t.slice();return i[11]=e[n][0],i[12]=e[n][1],i}function Jn(t){var e,n,i;return{c:function(){e=(0,a.fLW)("("),n=(0,a.fLW)(t[0]),i=(0,a.fLW)(")")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.$Tr)(t,n,r),(0,a.$Tr)(t,i,r)},p:function(t,e){1&e&&(0,a.rTO)(n,t[0])},d:function(t){t&&(0,a.ogt)(e),t&&(0,a.ogt)(n),t&&(0,a.ogt)(i)}}}function Qn(t){var e,n,i,r,o,s,c=t[0]>0&&Jn(t);return{c:function(){e=(0,a.bGB)("dl"),n=(0,a.bGB)("dd"),i=(0,a.fLW)("Name "),c&&c.c(),(r=(0,a.bGB)("dd")).textContent="Method",(o=(0,a.bGB)("dd")).textContent="Status",(s=(0,a.bGB)("dd")).textContent="Time",(0,a.Ljt)(n,"class","vc-table-col vc-table-col-4"),(0,a.Ljt)(r,"class","vc-table-col"),(0,a.Ljt)(o,"class","vc-table-col"),(0,a.Ljt)(s,"class","vc-table-col"),(0,a.Ljt)(e,"class","vc-table-row")},m:function(t,l){(0,a.$Tr)(t,e,l),(0,a.R3I)(e,n),(0,a.R3I)(n,i),c&&c.m(n,null),(0,a.R3I)(e,r),(0,a.R3I)(e,o),(0,a.R3I)(e,s)},p:function(t,e){t[0]>0?c?c.p(t,e):((c=Jn(t)).c(),c.m(n,null)):c&&(c.d(1),c=null)},d:function(t){t&&(0,a.ogt)(e),c&&c.d()}}}function ti(t){var e;return{c:function(){(e=(0,a.bGB)("div")).textContent="Empty",(0,a.Ljt)(e,"slot","empty"),(0,a.Ljt)(e,"class","vc-plugin-empty")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function ei(t){var e,n,i,r,o,s,c,l;s=new ct({props:{content:t[10].requestHeader}});for(var u=Object.entries(t[10].requestHeader),h=[],d=0;d<u.length;d+=1)h[d]=ni(Zn(t,u,d));return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),i=(0,a.bGB)("dt"),r=(0,a.fLW)("Request Headers\n                "),o=(0,a.bGB)("i"),(0,a.YCL)(s.$$.fragment),c=(0,a.DhX)();for(var t=0;t<h.length;t+=1)h[t].c();(0,a.Ljt)(o,"class","vc-table-row-icon"),(0,a.Ljt)(i,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(n,"class","vc-table-row vc-left-border")},m:function(t,u){(0,a.$Tr)(t,e,u),(0,a.R3I)(e,n),(0,a.R3I)(n,i),(0,a.R3I)(i,r),(0,a.R3I)(i,o),(0,a.yef)(s,o,null),(0,a.R3I)(e,c);for(var d=0;d<h.length;d+=1)h[d].m(e,null);l=!0},p:function(t,n){var i={};if(1024&n&&(i.content=t[10].requestHeader),s.$set(i),1040&n){var r;for(u=Object.entries(t[10].requestHeader),r=0;r<u.length;r+=1){var o=Zn(t,u,r);h[r]?h[r].p(o,n):(h[r]=ni(o),h[r].c(),h[r].m(e,null))}for(;r<h.length;r+=1)h[r].d(1);h.length=u.length}},i:function(t){l||((0,a.Ui)(s.$$.fragment,t),l=!0)},o:function(t){(0,a.etI)(s.$$.fragment,t),l=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(s),(0,a.RMB)(h,t)}}}function ni(t){var e,n,i,r,o,s,c,l=t[11]+"",u=t[4](t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),i=(0,a.fLW)(l),r=(0,a.DhX)(),o=(0,a.bGB)("div"),s=(0,a.fLW)(u),c=(0,a.DhX)(),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(o,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,l){(0,a.$Tr)(t,e,l),(0,a.R3I)(e,n),(0,a.R3I)(n,i),(0,a.R3I)(e,r),(0,a.R3I)(e,o),(0,a.R3I)(o,s),(0,a.R3I)(e,c)},p:function(t,e){1024&e&&l!==(l=t[11]+"")&&(0,a.rTO)(i,l),1024&e&&u!==(u=t[4](t[12])+"")&&(0,a.rTO)(s,u)},d:function(t){t&&(0,a.ogt)(e)}}}function ii(t){var e,n,i,r,o,s,c,l;s=new ct({props:{content:t[10].getData}});for(var u=Object.entries(t[10].getData),h=[],d=0;d<u.length;d+=1)h[d]=ri(Kn(t,u,d));return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),i=(0,a.bGB)("dt"),r=(0,a.fLW)("Query String Parameters\n                "),o=(0,a.bGB)("i"),(0,a.YCL)(s.$$.fragment),c=(0,a.DhX)();for(var t=0;t<h.length;t+=1)h[t].c();(0,a.Ljt)(o,"class","vc-table-row-icon"),(0,a.Ljt)(i,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(n,"class","vc-table-row vc-left-border")},m:function(t,u){(0,a.$Tr)(t,e,u),(0,a.R3I)(e,n),(0,a.R3I)(n,i),(0,a.R3I)(i,r),(0,a.R3I)(i,o),(0,a.yef)(s,o,null),(0,a.R3I)(e,c);for(var d=0;d<h.length;d+=1)h[d].m(e,null);l=!0},p:function(t,n){var i={};if(1024&n&&(i.content=t[10].getData),s.$set(i),1040&n){var r;for(u=Object.entries(t[10].getData),r=0;r<u.length;r+=1){var o=Kn(t,u,r);h[r]?h[r].p(o,n):(h[r]=ri(o),h[r].c(),h[r].m(e,null))}for(;r<h.length;r+=1)h[r].d(1);h.length=u.length}},i:function(t){l||((0,a.Ui)(s.$$.fragment,t),l=!0)},o:function(t){(0,a.etI)(s.$$.fragment,t),l=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(s),(0,a.RMB)(h,t)}}}function ri(t){var e,n,i,r,o,s,c,l=t[11]+"",u=t[4](t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),i=(0,a.fLW)(l),r=(0,a.DhX)(),o=(0,a.bGB)("div"),s=(0,a.fLW)(u),c=(0,a.DhX)(),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(o,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,l){(0,a.$Tr)(t,e,l),(0,a.R3I)(e,n),(0,a.R3I)(n,i),(0,a.R3I)(e,r),(0,a.R3I)(e,o),(0,a.R3I)(o,s),(0,a.R3I)(e,c)},p:function(t,e){1024&e&&l!==(l=t[11]+"")&&(0,a.rTO)(i,l),1024&e&&u!==(u=t[4](t[12])+"")&&(0,a.rTO)(s,u)},d:function(t){t&&(0,a.ogt)(e)}}}function oi(t){var e,n,i,r,o,s,c,l;function u(t,e){return"string"==typeof t[10].postData?si:ai}s=new ct({props:{content:t[10].postData}});var h=u(t),d=h(t);return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),i=(0,a.bGB)("dt"),r=(0,a.fLW)("Request Payload\n                "),o=(0,a.bGB)("i"),(0,a.YCL)(s.$$.fragment),c=(0,a.DhX)(),d.c(),(0,a.Ljt)(o,"class","vc-table-row-icon"),(0,a.Ljt)(i,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(n,"class","vc-table-row vc-left-border")},m:function(t,u){(0,a.$Tr)(t,e,u),(0,a.R3I)(e,n),(0,a.R3I)(n,i),(0,a.R3I)(i,r),(0,a.R3I)(i,o),(0,a.yef)(s,o,null),(0,a.R3I)(e,c),d.m(e,null),l=!0},p:function(t,n){var i={};1024&n&&(i.content=t[10].postData),s.$set(i),h===(h=u(t))&&d?d.p(t,n):(d.d(1),(d=h(t))&&(d.c(),d.m(e,null)))},i:function(t){l||((0,a.Ui)(s.$$.fragment,t),l=!0)},o:function(t){(0,a.etI)(s.$$.fragment,t),l=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(s),d.d()}}}function ai(t){for(var e,n=Object.entries(t[10].postData),i=[],r=0;r<n.length;r+=1)i[r]=ci(Yn(t,n,r));return{c:function(){for(var t=0;t<i.length;t+=1)i[t].c();e=(0,a.cSb)()},m:function(t,n){for(var r=0;r<i.length;r+=1)i[r].m(t,n);(0,a.$Tr)(t,e,n)},p:function(t,r){if(1040&r){var o;for(n=Object.entries(t[10].postData),o=0;o<n.length;o+=1){var a=Yn(t,n,o);i[o]?i[o].p(a,r):(i[o]=ci(a),i[o].c(),i[o].m(e.parentNode,e))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d:function(t){(0,a.RMB)(i,t),t&&(0,a.ogt)(e)}}}function si(t){var e,n,i,r=t[10].postData+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("pre"),i=(0,a.fLW)(r),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-value vc-max-height-line"),(0,a.Ljt)(n,"data-scrollable","1"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.R3I)(e,n),(0,a.R3I)(n,i)},p:function(t,e){1024&e&&r!==(r=t[10].postData+"")&&(0,a.rTO)(i,r)},d:function(t){t&&(0,a.ogt)(e)}}}function ci(t){var e,n,i,r,o,s,c,l=t[11]+"",u=t[4](t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),i=(0,a.fLW)(l),r=(0,a.DhX)(),o=(0,a.bGB)("div"),s=(0,a.fLW)(u),c=(0,a.DhX)(),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(o,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(o,"data-scrollable","1"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,l){(0,a.$Tr)(t,e,l),(0,a.R3I)(e,n),(0,a.R3I)(n,i),(0,a.R3I)(e,r),(0,a.R3I)(e,o),(0,a.R3I)(o,s),(0,a.R3I)(e,c)},p:function(t,e){1024&e&&l!==(l=t[11]+"")&&(0,a.rTO)(i,l),1024&e&&u!==(u=t[4](t[12])+"")&&(0,a.rTO)(s,u)},d:function(t){t&&(0,a.ogt)(e)}}}function li(t){var e,n,i,r,o,s,c,l;s=new ct({props:{content:t[10].header}});for(var u=Object.entries(t[10].header),h=[],d=0;d<u.length;d+=1)h[d]=ui(Xn(t,u,d));return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),i=(0,a.bGB)("dt"),r=(0,a.fLW)("Response Headers\n                "),o=(0,a.bGB)("i"),(0,a.YCL)(s.$$.fragment),c=(0,a.DhX)();for(var t=0;t<h.length;t+=1)h[t].c();(0,a.Ljt)(o,"class","vc-table-row-icon"),(0,a.Ljt)(i,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(n,"class","vc-table-row vc-left-border")},m:function(t,u){(0,a.$Tr)(t,e,u),(0,a.R3I)(e,n),(0,a.R3I)(n,i),(0,a.R3I)(i,r),(0,a.R3I)(i,o),(0,a.yef)(s,o,null),(0,a.R3I)(e,c);for(var d=0;d<h.length;d+=1)h[d].m(e,null);l=!0},p:function(t,n){var i={};if(1024&n&&(i.content=t[10].header),s.$set(i),1040&n){var r;for(u=Object.entries(t[10].header),r=0;r<u.length;r+=1){var o=Xn(t,u,r);h[r]?h[r].p(o,n):(h[r]=ui(o),h[r].c(),h[r].m(e,null))}for(;r<h.length;r+=1)h[r].d(1);h.length=u.length}},i:function(t){l||((0,a.Ui)(s.$$.fragment,t),l=!0)},o:function(t){(0,a.etI)(s.$$.fragment,t),l=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(s),(0,a.RMB)(h,t)}}}function ui(t){var e,n,i,r,o,s,c,l=t[11]+"",u=t[4](t[12])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),i=(0,a.fLW)(l),r=(0,a.DhX)(),o=(0,a.bGB)("div"),s=(0,a.fLW)(u),c=(0,a.DhX)(),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(o,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,l){(0,a.$Tr)(t,e,l),(0,a.R3I)(e,n),(0,a.R3I)(n,i),(0,a.R3I)(e,r),(0,a.R3I)(e,o),(0,a.R3I)(o,s),(0,a.R3I)(e,c)},p:function(t,e){1024&e&&l!==(l=t[11]+"")&&(0,a.rTO)(i,l),1024&e&&u!==(u=t[4](t[12])+"")&&(0,a.rTO)(s,u)},d:function(t){t&&(0,a.ogt)(e)}}}function hi(t){var e,n,i,r,o,s=t[10].responseSizeText+"";return{c:function(){e=(0,a.bGB)("div"),(n=(0,a.bGB)("div")).textContent="Size",i=(0,a.DhX)(),r=(0,a.bGB)("div"),o=(0,a.fLW)(s),(0,a.Ljt)(n,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(r,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(e,"class","vc-table-row vc-left-border vc-small")},m:function(t,s){(0,a.$Tr)(t,e,s),(0,a.R3I)(e,n),(0,a.R3I)(e,i),(0,a.R3I)(e,r),(0,a.R3I)(r,o)},p:function(t,e){1024&e&&s!==(s=t[10].responseSizeText+"")&&(0,a.rTO)(o,s)},d:function(t){t&&(0,a.ogt)(e)}}}function di(t){var e,n,i,r,o,s,c,l,u,h,d,f,p,m,v,g,y,b,x,_,w,S,T,E,M,C,L,O,k,P,A,I,D,R,B,N,j,z,F,V,U,G,$,H,W,q,X,Y,K,Z,J,Q,tt,et,nt,it,rt,ot,at,st,lt,ut,ht,dt,ft,pt,mt,vt,gt=t[10].name+"",yt=t[10].method+"",bt=t[10].statusText+"",xt=t[10].costTime+"",_t=t[10].url+"",wt=t[10].method+"",St=t[10].requestType+"",Tt=t[10].status+"",Et=t[10].startTimeText+"",Mt=(t[10].response||"")+"";function Ct(){return t[7](t[10])}b=new ct({props:{handler:t[3],content:t[10]}});var Lt=null!==t[10].requestHeader&&ei(t),Ot=null!==t[10].getData&&ii(t),kt=null!==t[10].postData&&oi(t),Pt=null!==t[10].header&&li(t);at=new ct({props:{content:t[10].response}});var At=t[10].responseSize>0&&hi(t);return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("dl"),i=(0,a.bGB)("dd"),r=(0,a.fLW)(gt),o=(0,a.bGB)("dd"),s=(0,a.fLW)(yt),c=(0,a.bGB)("dd"),l=(0,a.fLW)(bt),u=(0,a.bGB)("dd"),h=(0,a.fLW)(xt),d=(0,a.DhX)(),f=(0,a.bGB)("div"),p=(0,a.bGB)("div"),m=(0,a.bGB)("dl"),v=(0,a.bGB)("dt"),g=(0,a.fLW)("General\n                "),y=(0,a.bGB)("i"),(0,a.YCL)(b.$$.fragment),x=(0,a.DhX)(),_=(0,a.bGB)("div"),(w=(0,a.bGB)("div")).textContent="URL",S=(0,a.DhX)(),T=(0,a.bGB)("div"),E=(0,a.fLW)(_t),M=(0,a.DhX)(),C=(0,a.bGB)("div"),(L=(0,a.bGB)("div")).textContent="Method",O=(0,a.DhX)(),k=(0,a.bGB)("div"),P=(0,a.fLW)(wt),A=(0,a.DhX)(),I=(0,a.bGB)("div"),(D=(0,a.bGB)("div")).textContent="Request Type",R=(0,a.DhX)(),B=(0,a.bGB)("div"),N=(0,a.fLW)(St),j=(0,a.DhX)(),z=(0,a.bGB)("div"),(F=(0,a.bGB)("div")).textContent="HTTP Status",V=(0,a.DhX)(),U=(0,a.bGB)("div"),G=(0,a.fLW)(Tt),$=(0,a.DhX)(),H=(0,a.bGB)("div"),(W=(0,a.bGB)("div")).textContent="Start Time",q=(0,a.DhX)(),X=(0,a.bGB)("div"),Y=(0,a.fLW)(Et),K=(0,a.DhX)(),Lt&&Lt.c(),Z=(0,a.DhX)(),Ot&&Ot.c(),J=(0,a.DhX)(),kt&&kt.c(),Q=(0,a.DhX)(),Pt&&Pt.c(),tt=(0,a.DhX)(),et=(0,a.bGB)("div"),nt=(0,a.bGB)("dl"),it=(0,a.bGB)("dt"),rt=(0,a.fLW)("Response\n                "),ot=(0,a.bGB)("i"),(0,a.YCL)(at.$$.fragment),st=(0,a.DhX)(),At&&At.c(),lt=(0,a.DhX)(),ut=(0,a.bGB)("div"),ht=(0,a.bGB)("pre"),dt=(0,a.fLW)(Mt),(0,a.Ljt)(i,"class","vc-table-col vc-table-col-4"),(0,a.Ljt)(o,"class","vc-table-col"),(0,a.Ljt)(c,"class","vc-table-col"),(0,a.Ljt)(u,"class","vc-table-col"),(0,a.Ljt)(n,"class","vc-table-row vc-group-preview"),(0,a.VHj)(n,"vc-table-row-error",t[10].status>=400),(0,a.Ljt)(y,"class","vc-table-row-icon"),(0,a.Ljt)(v,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(m,"class","vc-table-row vc-left-border"),(0,a.Ljt)(w,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(T,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(_,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(L,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(k,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(C,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(D,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(B,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(I,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(F,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(U,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(z,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(W,"class","vc-table-col vc-table-col-2"),(0,a.Ljt)(X,"class","vc-table-col vc-table-col-4 vc-table-col-value vc-max-height-line"),(0,a.Ljt)(H,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(ot,"class","vc-table-row-icon"),(0,a.Ljt)(it,"class","vc-table-col vc-table-col-title"),(0,a.Ljt)(nt,"class","vc-table-row vc-left-border"),(0,a.Ljt)(ht,"class","vc-table-col vc-max-height vc-min-height"),(0,a.Ljt)(ht,"data-scrollable","1"),(0,a.Ljt)(ut,"class","vc-table-row vc-left-border vc-small"),(0,a.Ljt)(f,"class","vc-group-detail"),(0,a.Ljt)(e,"slot","item"),(0,a.Ljt)(e,"class","vc-group"),(0,a.Ljt)(e,"id",ft=t[10].id),(0,a.VHj)(e,"vc-actived",t[10].actived)},m:function(t,ct){(0,a.$Tr)(t,e,ct),(0,a.R3I)(e,n),(0,a.R3I)(n,i),(0,a.R3I)(i,r),(0,a.R3I)(n,o),(0,a.R3I)(o,s),(0,a.R3I)(n,c),(0,a.R3I)(c,l),(0,a.R3I)(n,u),(0,a.R3I)(u,h),(0,a.R3I)(e,d),(0,a.R3I)(e,f),(0,a.R3I)(f,p),(0,a.R3I)(p,m),(0,a.R3I)(m,v),(0,a.R3I)(v,g),(0,a.R3I)(v,y),(0,a.yef)(b,y,null),(0,a.R3I)(p,x),(0,a.R3I)(p,_),(0,a.R3I)(_,w),(0,a.R3I)(_,S),(0,a.R3I)(_,T),(0,a.R3I)(T,E),(0,a.R3I)(p,M),(0,a.R3I)(p,C),(0,a.R3I)(C,L),(0,a.R3I)(C,O),(0,a.R3I)(C,k),(0,a.R3I)(k,P),(0,a.R3I)(p,A),(0,a.R3I)(p,I),(0,a.R3I)(I,D),(0,a.R3I)(I,R),(0,a.R3I)(I,B),(0,a.R3I)(B,N),(0,a.R3I)(p,j),(0,a.R3I)(p,z),(0,a.R3I)(z,F),(0,a.R3I)(z,V),(0,a.R3I)(z,U),(0,a.R3I)(U,G),(0,a.R3I)(p,$),(0,a.R3I)(p,H),(0,a.R3I)(H,W),(0,a.R3I)(H,q),(0,a.R3I)(H,X),(0,a.R3I)(X,Y),(0,a.R3I)(f,K),Lt&&Lt.m(f,null),(0,a.R3I)(f,Z),Ot&&Ot.m(f,null),(0,a.R3I)(f,J),kt&&kt.m(f,null),(0,a.R3I)(f,Q),Pt&&Pt.m(f,null),(0,a.R3I)(f,tt),(0,a.R3I)(f,et),(0,a.R3I)(et,nt),(0,a.R3I)(nt,it),(0,a.R3I)(it,rt),(0,a.R3I)(it,ot),(0,a.yef)(at,ot,null),(0,a.R3I)(et,st),At&&At.m(et,null),(0,a.R3I)(et,lt),(0,a.R3I)(et,ut),(0,a.R3I)(ut,ht),(0,a.R3I)(ht,dt),pt=!0,mt||(vt=(0,a.oLt)(n,"click",Ct),mt=!0)},p:function(i,o){t=i,(!pt||1024&o)&&gt!==(gt=t[10].name+"")&&(0,a.rTO)(r,gt),(!pt||1024&o)&&yt!==(yt=t[10].method+"")&&(0,a.rTO)(s,yt),(!pt||1024&o)&&bt!==(bt=t[10].statusText+"")&&(0,a.rTO)(l,bt),(!pt||1024&o)&&xt!==(xt=t[10].costTime+"")&&(0,a.rTO)(h,xt),1024&o&&(0,a.VHj)(n,"vc-table-row-error",t[10].status>=400);var c={};1024&o&&(c.content=t[10]),b.$set(c),(!pt||1024&o)&&_t!==(_t=t[10].url+"")&&(0,a.rTO)(E,_t),(!pt||1024&o)&&wt!==(wt=t[10].method+"")&&(0,a.rTO)(P,wt),(!pt||1024&o)&&St!==(St=t[10].requestType+"")&&(0,a.rTO)(N,St),(!pt||1024&o)&&Tt!==(Tt=t[10].status+"")&&(0,a.rTO)(G,Tt),(!pt||1024&o)&&Et!==(Et=t[10].startTimeText+"")&&(0,a.rTO)(Y,Et),null!==t[10].requestHeader?Lt?(Lt.p(t,o),1024&o&&(0,a.Ui)(Lt,1)):((Lt=ei(t)).c(),(0,a.Ui)(Lt,1),Lt.m(f,Z)):Lt&&((0,a.dvw)(),(0,a.etI)(Lt,1,1,function(){Lt=null}),(0,a.gbL)()),null!==t[10].getData?Ot?(Ot.p(t,o),1024&o&&(0,a.Ui)(Ot,1)):((Ot=ii(t)).c(),(0,a.Ui)(Ot,1),Ot.m(f,J)):Ot&&((0,a.dvw)(),(0,a.etI)(Ot,1,1,function(){Ot=null}),(0,a.gbL)()),null!==t[10].postData?kt?(kt.p(t,o),1024&o&&(0,a.Ui)(kt,1)):((kt=oi(t)).c(),(0,a.Ui)(kt,1),kt.m(f,Q)):kt&&((0,a.dvw)(),(0,a.etI)(kt,1,1,function(){kt=null}),(0,a.gbL)()),null!==t[10].header?Pt?(Pt.p(t,o),1024&o&&(0,a.Ui)(Pt,1)):((Pt=li(t)).c(),(0,a.Ui)(Pt,1),Pt.m(f,tt)):Pt&&((0,a.dvw)(),(0,a.etI)(Pt,1,1,function(){Pt=null}),(0,a.gbL)());var u={};1024&o&&(u.content=t[10].response),at.$set(u),t[10].responseSize>0?At?At.p(t,o):((At=hi(t)).c(),At.m(et,lt)):At&&(At.d(1),At=null),(!pt||1024&o)&&Mt!==(Mt=(t[10].response||"")+"")&&(0,a.rTO)(dt,Mt),(!pt||1024&o&&ft!==(ft=t[10].id))&&(0,a.Ljt)(e,"id",ft),1024&o&&(0,a.VHj)(e,"vc-actived",t[10].actived)},i:function(t){pt||((0,a.Ui)(b.$$.fragment,t),(0,a.Ui)(Lt),(0,a.Ui)(Ot),(0,a.Ui)(kt),(0,a.Ui)(Pt),(0,a.Ui)(at.$$.fragment,t),pt=!0)},o:function(t){(0,a.etI)(b.$$.fragment,t),(0,a.etI)(Lt),(0,a.etI)(Ot),(0,a.etI)(kt),(0,a.etI)(Pt),(0,a.etI)(at.$$.fragment,t),pt=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(b),Lt&&Lt.d(),Ot&&Ot.d(),kt&&kt.d(),Pt&&Pt.d(),(0,a.vpE)(at),At&&At.d(),mt=!1,vt()}}}function fi(t){var e,n,i,r;return i=new an({props:{items:t[1],itemKey:"id",itemHeight:30,buffer:100,stickToBottom:!0,scrollbar:!0,$$slots:{item:[di,function(t){return{10:t.item}},function(t){return t.item?1024:0}],empty:[ti],header:[Qn]},$$scope:{ctx:t}}}),{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("div"),(0,a.YCL)(i.$$.fragment),(0,a.Ljt)(n,"class","vc-plugin-content"),(0,a.Ljt)(e,"class","vc-table")},m:function(t,o){(0,a.$Tr)(t,e,o),(0,a.R3I)(e,n),(0,a.yef)(i,n,null),r=!0},p:function(t,e){var n=e[0],r={};2&n&&(r.items=t[1]),2098177&n&&(r.$$scope={dirty:n,ctx:t}),i.$set(r)},i:function(t){r||((0,a.Ui)(i.$$.fragment,t),r=!0)},o:function(t){(0,a.etI)(i.$$.fragment,t),r=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(i)}}}function pi(t,n,i){var r;(0,a.FIv)(t,Fn,function(t){return i(6,r=t)});var o=0,c=function(t){i(0,o=Object.keys(t).length)},l=Fn.subscribe(c);c(r);var u=[],h=function(t){(0,a.fxP)(Fn,r[t].actived=!r[t].actived,r)};return(0,s.H3)(function(){qn.use()}),(0,s.ev)(function(){l(),qn.unuse()}),t.$$.update=function(){64&t.$$.dirty&&i(1,u=Object.values(r))},[o,u,h,function(t){var n="curl -X "+t.method;return"string"==typeof t.postData?n+=" -d '"+t.postData+"'":"object"==typeof t.postData&&null!==t.postData&&(n+=" -d '"+e.hZ(t.postData)+"'"),n+" '"+t.url+"'"},function(t){return e.Kn(t)||e.kJ(t)?e.hZ(t,{maxDepth:10,keyMaxLen:1e4,pretty:!0}):t},{fixedHeight:!0},r,function(t){return h(t.id)}]}var mi=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,pi,fi,a.N8,{options:5}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"options",get:function(){return this.$$.ctx[5]}}]),n}(a.f_C),vi=function(t){function e(){for(var e,n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];return(e=t.call.apply(t,[this].concat(i))||this).model=Vn.getSingleton(Vn,"VConsoleNetworkModel"),e}(0,o.Z)(e,t);var n=e.prototype;return n.add=function(t){var e=new On(new Ln);for(var n in t)e[n]=t[n];return e.startTime=e.startTime||Date.now(),e.requestType=e.requestType||"custom",this.model.updateRequest(e.id,e),e},n.update=function(t,e){this.model.updateRequest(t,e)},n.clear=function(){this.model.clearLog()},e}(mn),gi=function(t){function e(e,n,i){var r;return void 0===i&&(i={}),(r=t.call(this,e,n,mi,i)||this).model=Vn.getSingleton(Vn,"VConsoleNetworkModel"),r.exporter=void 0,r.exporter=new vi(e),r}(0,o.Z)(e,t);var n=e.prototype;return n.onReady=function(){t.prototype.onReady.call(this),this.onUpdateOption()},n.onAddTool=function(t){var e=this;t([{name:"Clear",global:!1,onClick:function(t){e.model.clearLog()}}])},n.onRemove=function(){t.prototype.onRemove.call(this),this.model&&this.model.unMock()},n.onUpdateOption=function(){var t,e,n;(null==(t=this.vConsole.option.network)?void 0:t.maxNetworkNumber)!==this.model.maxNetworkNumber&&(this.model.maxNetworkNumber=Number(null==(n=this.vConsole.option.network)?void 0:n.maxNetworkNumber)||1e3),null!=(e=this.vConsole.option.network)&&e.ignoreUrlRegExp&&(this.model.ignoreUrlRegExp=this.vConsole.option.network.ignoreUrlRegExp)},e}(nt),yi=__webpack_require__(8679),bi=__webpack_require__.n(yi),xi=(0,xn.fZ)(),_i=(0,xn.fZ)(),wi=__webpack_require__(5670),Si={};wi.Z&&wi.Z.locals&&(Si.locals=wi.Z.locals);var Ti,Ei=0,Mi={};Mi.styleTagTransform=b(),Mi.setAttributes=m(),Mi.insert=f().bind(null,"head"),Mi.domAPI=h(),Mi.insertStyleElement=g(),Si.use=function(t){return Mi.options=t||{},Ei++||(Ti=l()(wi.Z,Mi)),Si},Si.unuse=function(){Ei>0&&!--Ei&&(Ti(),Ti=null)};var Ci=Si;function Li(t,e,n){var i=t.slice();return i[8]=e[n],i}function Oi(t,e,n){var i=t.slice();return i[11]=e[n],i}function ki(t){var e,n,i,r=t[0].nodeType===Node.ELEMENT_NODE&&Pi(t),o=t[0].nodeType===Node.TEXT_NODE&&Ui(t);return{c:function(){e=(0,a.bGB)("div"),r&&r.c(),n=(0,a.DhX)(),o&&o.c(),(0,a.Ljt)(e,"class","vcelm-l"),(0,a.VHj)(e,"vc-actived",t[0]._isActived),(0,a.VHj)(e,"vc-toggle",t[0]._isExpand),(0,a.VHj)(e,"vcelm-noc",t[0]._isSingleLine)},m:function(t,s){(0,a.$Tr)(t,e,s),r&&r.m(e,null),(0,a.R3I)(e,n),o&&o.m(e,null),i=!0},p:function(t,i){t[0].nodeType===Node.ELEMENT_NODE?r?(r.p(t,i),1&i&&(0,a.Ui)(r,1)):((r=Pi(t)).c(),(0,a.Ui)(r,1),r.m(e,n)):r&&((0,a.dvw)(),(0,a.etI)(r,1,1,function(){r=null}),(0,a.gbL)()),t[0].nodeType===Node.TEXT_NODE?o?o.p(t,i):((o=Ui(t)).c(),o.m(e,null)):o&&(o.d(1),o=null),1&i&&(0,a.VHj)(e,"vc-actived",t[0]._isActived),1&i&&(0,a.VHj)(e,"vc-toggle",t[0]._isExpand),1&i&&(0,a.VHj)(e,"vcelm-noc",t[0]._isSingleLine)},i:function(t){i||((0,a.Ui)(r),i=!0)},o:function(t){(0,a.etI)(r),i=!1},d:function(t){t&&(0,a.ogt)(e),r&&r.d(),o&&o.d()}}}function Pi(t){var e,n,i,r,o,s,c,l,u,h,d=t[0].nodeName+"",f=(t[0].className||t[0].attributes.length)&&Ai(t),p=t[0]._isNullEndTag&&Bi(t),m=t[0].childNodes.length>0&&Ni(t),v=!t[0]._isNullEndTag&&Vi(t);return{c:function(){e=(0,a.bGB)("span"),n=(0,a.fLW)("<"),i=(0,a.fLW)(d),f&&f.c(),r=(0,a.cSb)(),p&&p.c(),o=(0,a.fLW)(">"),m&&m.c(),s=(0,a.cSb)(),v&&v.c(),c=(0,a.cSb)(),(0,a.Ljt)(e,"class","vcelm-node")},m:function(d,g){(0,a.$Tr)(d,e,g),(0,a.R3I)(e,n),(0,a.R3I)(e,i),f&&f.m(e,null),(0,a.R3I)(e,r),p&&p.m(e,null),(0,a.R3I)(e,o),m&&m.m(d,g),(0,a.$Tr)(d,s,g),v&&v.m(d,g),(0,a.$Tr)(d,c,g),l=!0,u||(h=(0,a.oLt)(e,"click",t[2]),u=!0)},p:function(t,n){(!l||1&n)&&d!==(d=t[0].nodeName+"")&&(0,a.rTO)(i,d),t[0].className||t[0].attributes.length?f?f.p(t,n):((f=Ai(t)).c(),f.m(e,r)):f&&(f.d(1),f=null),t[0]._isNullEndTag?p||((p=Bi(t)).c(),p.m(e,o)):p&&(p.d(1),p=null),t[0].childNodes.length>0?m?(m.p(t,n),1&n&&(0,a.Ui)(m,1)):((m=Ni(t)).c(),(0,a.Ui)(m,1),m.m(s.parentNode,s)):m&&((0,a.dvw)(),(0,a.etI)(m,1,1,function(){m=null}),(0,a.gbL)()),t[0]._isNullEndTag?v&&(v.d(1),v=null):v?v.p(t,n):((v=Vi(t)).c(),v.m(c.parentNode,c))},i:function(t){l||((0,a.Ui)(m),l=!0)},o:function(t){(0,a.etI)(m),l=!1},d:function(t){t&&(0,a.ogt)(e),f&&f.d(),p&&p.d(),m&&m.d(t),t&&(0,a.ogt)(s),v&&v.d(t),t&&(0,a.ogt)(c),u=!1,h()}}}function Ai(t){for(var e,n=t[0].attributes,i=[],r=0;r<n.length;r+=1)i[r]=Ri(Oi(t,n,r));return{c:function(){e=(0,a.bGB)("i");for(var t=0;t<i.length;t+=1)i[t].c();(0,a.Ljt)(e,"class","vcelm-k")},m:function(t,n){(0,a.$Tr)(t,e,n);for(var r=0;r<i.length;r+=1)i[r].m(e,null)},p:function(t,r){if(1&r){var o;for(n=t[0].attributes,o=0;o<n.length;o+=1){var a=Oi(t,n,o);i[o]?i[o].p(a,r):(i[o]=Ri(a),i[o].c(),i[o].m(e,null))}for(;o<i.length;o+=1)i[o].d(1);i.length=n.length}},d:function(t){t&&(0,a.ogt)(e),(0,a.RMB)(i,t)}}}function Ii(t){var e,n=t[11].name+"";return{c:function(){e=(0,a.fLW)(n)},m:function(t,n){(0,a.$Tr)(t,e,n)},p:function(t,i){1&i&&n!==(n=t[11].name+"")&&(0,a.rTO)(e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function Di(t){var e,n,i,r,o,s=t[11].name+"",c=t[11].value+"";return{c:function(){e=(0,a.fLW)(s),n=(0,a.fLW)('="'),i=(0,a.bGB)("i"),r=(0,a.fLW)(c),o=(0,a.fLW)('"'),(0,a.Ljt)(i,"class","vcelm-v")},m:function(t,s){(0,a.$Tr)(t,e,s),(0,a.$Tr)(t,n,s),(0,a.$Tr)(t,i,s),(0,a.R3I)(i,r),(0,a.$Tr)(t,o,s)},p:function(t,n){1&n&&s!==(s=t[11].name+"")&&(0,a.rTO)(e,s),1&n&&c!==(c=t[11].value+"")&&(0,a.rTO)(r,c)},d:function(t){t&&(0,a.ogt)(e),t&&(0,a.ogt)(n),t&&(0,a.ogt)(i),t&&(0,a.ogt)(o)}}}function Ri(t){var e,n;function i(t,e){return""!==t[11].value?Di:Ii}var r=i(t),o=r(t);return{c:function(){e=(0,a.fLW)(" \n            "),o.c(),n=(0,a.cSb)()},m:function(t,i){(0,a.$Tr)(t,e,i),o.m(t,i),(0,a.$Tr)(t,n,i)},p:function(t,e){r===(r=i(t))&&o?o.p(t,e):(o.d(1),(o=r(t))&&(o.c(),o.m(n.parentNode,n)))},d:function(t){t&&(0,a.ogt)(e),o.d(t),t&&(0,a.ogt)(n)}}}function Bi(t){var e;return{c:function(){e=(0,a.fLW)("/")},m:function(t,n){(0,a.$Tr)(t,e,n)},d:function(t){t&&(0,a.ogt)(e)}}}function Ni(t){var e,n,i,r,o=[zi,ji],s=[];function c(t,e){return t[0]._isExpand?1:0}return e=c(t),n=s[e]=o[e](t),{c:function(){n.c(),i=(0,a.cSb)()},m:function(t,n){s[e].m(t,n),(0,a.$Tr)(t,i,n),r=!0},p:function(t,r){var l=e;(e=c(t))===l?s[e].p(t,r):((0,a.dvw)(),(0,a.etI)(s[l],1,1,function(){s[l]=null}),(0,a.gbL)(),(n=s[e])?n.p(t,r):(n=s[e]=o[e](t)).c(),(0,a.Ui)(n,1),n.m(i.parentNode,i))},i:function(t){r||((0,a.Ui)(n),r=!0)},o:function(t){(0,a.etI)(n),r=!1},d:function(t){s[e].d(t),t&&(0,a.ogt)(i)}}}function ji(t){for(var e,n,i=t[0].childNodes,r=[],o=0;o<i.length;o+=1)r[o]=Fi(Li(t,i,o));var s=function(t){return(0,a.etI)(r[t],1,1,function(){r[t]=null})};return{c:function(){for(var t=0;t<r.length;t+=1)r[t].c();e=(0,a.cSb)()},m:function(t,i){for(var o=0;o<r.length;o+=1)r[o].m(t,i);(0,a.$Tr)(t,e,i),n=!0},p:function(t,n){if(1&n){var o;for(i=t[0].childNodes,o=0;o<i.length;o+=1){var c=Li(t,i,o);r[o]?(r[o].p(c,n),(0,a.Ui)(r[o],1)):(r[o]=Fi(c),r[o].c(),(0,a.Ui)(r[o],1),r[o].m(e.parentNode,e))}for((0,a.dvw)(),o=i.length;o<r.length;o+=1)s(o);(0,a.gbL)()}},i:function(t){if(!n){for(var e=0;e<i.length;e+=1)(0,a.Ui)(r[e]);n=!0}},o:function(t){r=r.filter(Boolean);for(var e=0;e<r.length;e+=1)(0,a.etI)(r[e]);n=!1},d:function(t){(0,a.RMB)(r,t),t&&(0,a.ogt)(e)}}}function zi(t){var e;return{c:function(){e=(0,a.fLW)("...")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,i:a.ZTd,o:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function Fi(t){var e,n,i;return(e=new Hi({props:{node:t[8]}})).$on("toggleNode",t[4]),{c:function(){(0,a.YCL)(e.$$.fragment),n=(0,a.DhX)()},m:function(t,r){(0,a.yef)(e,t,r),(0,a.$Tr)(t,n,r),i=!0},p:function(t,n){var i={};1&n&&(i.node=t[8]),e.$set(i)},i:function(t){i||((0,a.Ui)(e.$$.fragment,t),i=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),i=!1},d:function(t){(0,a.vpE)(e,t),t&&(0,a.ogt)(n)}}}function Vi(t){var e,n,i,r,o=t[0].nodeName+"";return{c:function(){e=(0,a.bGB)("span"),n=(0,a.fLW)("</"),i=(0,a.fLW)(o),r=(0,a.fLW)(">"),(0,a.Ljt)(e,"class","vcelm-node")},m:function(t,o){(0,a.$Tr)(t,e,o),(0,a.R3I)(e,n),(0,a.R3I)(e,i),(0,a.R3I)(e,r)},p:function(t,e){1&e&&o!==(o=t[0].nodeName+"")&&(0,a.rTO)(i,o)},d:function(t){t&&(0,a.ogt)(e)}}}function Ui(t){var e,n,i=t[1](t[0].textContent)+"";return{c:function(){e=(0,a.bGB)("span"),n=(0,a.fLW)(i),(0,a.Ljt)(e,"class","vcelm-t vcelm-noc")},m:function(t,i){(0,a.$Tr)(t,e,i),(0,a.R3I)(e,n)},p:function(t,e){1&e&&i!==(i=t[1](t[0].textContent)+"")&&(0,a.rTO)(n,i)},d:function(t){t&&(0,a.ogt)(e)}}}function Gi(t){var e,n,i=t[0]&&ki(t);return{c:function(){i&&i.c(),e=(0,a.cSb)()},m:function(t,r){i&&i.m(t,r),(0,a.$Tr)(t,e,r),n=!0},p:function(t,n){var r=n[0];t[0]?i?(i.p(t,r),1&r&&(0,a.Ui)(i,1)):((i=ki(t)).c(),(0,a.Ui)(i,1),i.m(e.parentNode,e)):i&&((0,a.dvw)(),(0,a.etI)(i,1,1,function(){i=null}),(0,a.gbL)())},i:function(t){n||((0,a.Ui)(i),n=!0)},o:function(t){(0,a.etI)(i),n=!1},d:function(t){i&&i.d(t),t&&(0,a.ogt)(e)}}}function $i(t,e,n){var i;(0,a.FIv)(t,_i,function(t){return n(3,i=t)});var r=e.node,o=(0,s.x)(),c=["br","hr","img","input","link","meta"];return(0,s.H3)(function(){Ci.use()}),(0,s.ev)(function(){Ci.unuse()}),t.$$set=function(t){"node"in t&&n(0,r=t.node)},t.$$.update=function(){9&t.$$.dirty&&r&&(n(0,r._isActived=r===i,r),n(0,r._isNullEndTag=function(t){return c.indexOf(t.nodeName)>-1}(r),r),n(0,r._isSingleLine=0===r.childNodes.length||r._isNullEndTag,r))},[r,function(t){return t.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")},function(){r._isNullEndTag||(n(0,r._isExpand=!r._isExpand,r),o("toggleNode",{node:r}))},i,function(e){a.cKT.call(this,t,e)}]}var Hi=function(e){function n(t){var n;return n=e.call(this)||this,(0,a.S1n)((0,r.Z)(n),t,$i,Gi,a.N8,{node:0}),n}return(0,o.Z)(n,e),(0,t.Z)(n,[{key:"node",get:function(){return this.$$.ctx[0]},set:function(t){this.$$set({node:t}),(0,a.yl1)()}}]),n}(a.f_C),Wi=Hi;function qi(t){var e,n,i;return(n=new Wi({props:{node:t[0]}})).$on("toggleNode",t[1]),{c:function(){e=(0,a.bGB)("div"),(0,a.YCL)(n.$$.fragment),(0,a.Ljt)(e,"class","vc-plugin-content")},m:function(t,r){(0,a.$Tr)(t,e,r),(0,a.yef)(n,e,null),i=!0},p:function(t,e){var i={};1&e[0]&&(i.node=t[0]),n.$set(i)},i:function(t){i||((0,a.Ui)(n.$$.fragment,t),i=!0)},o:function(t){(0,a.etI)(n.$$.fragment,t),i=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.vpE)(n)}}}function Xi(t,e,n){var i;return(0,a.FIv)(t,xi,function(t){return n(0,i=t)}),[i,function(e){a.cKT.call(this,t,e)}]}var Yi=function(t){function e(e){var n;return n=t.call(this)||this,(0,a.S1n)((0,r.Z)(n),e,Xi,qi,a.N8,{}),n}return(0,o.Z)(e,t),e}(a.f_C),Ki=function(t){function e(e,n,i){var r;return void 0===i&&(i={}),(r=t.call(this,e,n,Yi,i)||this).isInited=!1,r.observer=void 0,r.nodeMap=void 0,r}(0,o.Z)(e,t);var n=e.prototype;return n.onShow=function(){this.isInited||this._init()},n.onRemove=function(){t.prototype.onRemove.call(this),this.isInited&&(this.observer.disconnect(),this.isInited=!1,this.nodeMap=void 0,xi.set(void 0))},n.onAddTool=function(t){var e=this;t([{name:"Expand",global:!1,onClick:function(t){e._expandActivedNode()}},{name:"Collapse",global:!1,onClick:function(t){e._collapseActivedNode()}}])},n._init=function(){var t=this;this.isInited=!0,this.nodeMap=new WeakMap;var e=this._generateVNode(document.documentElement);e._isExpand=!0,_i.set(e),xi.set(e),this.compInstance.$on("toggleNode",function(t){_i.set(t.detail.node)}),this.observer=new(bi())(function(e){for(var n=0;n<e.length;n++){var i=e[n];t._isInVConsole(i.target)||t._handleMutation(i)}}),this.observer.observe(document.documentElement,{attributes:!0,childList:!0,characterData:!0,subtree:!0})},n._handleMutation=function(t){switch(t.type){case"childList":t.removedNodes.length>0&&this._onChildRemove(t),t.addedNodes.length>0&&this._onChildAdd(t);break;case"attributes":this._onAttributesChange(t);break;case"characterData":this._onCharacterDataChange(t)}},n._onChildRemove=function(t){var e=this.nodeMap.get(t.target);if(e){for(var n=0;n<t.removedNodes.length;n++){var i=this.nodeMap.get(t.removedNodes[n]);if(i){for(var r=0;r<e.childNodes.length;r++)if(e.childNodes[r]===i){e.childNodes.splice(r,1);break}this.nodeMap.delete(t.removedNodes[n])}}this._refreshStore()}},n._onChildAdd=function(t){var e=this.nodeMap.get(t.target);if(e){for(var n=0;n<t.addedNodes.length;n++){var i=t.addedNodes[n],r=this._generateVNode(i);if(r){var o=void 0,a=i;do{if(null===a.nextSibling)break;a.nodeType===Node.ELEMENT_NODE&&(o=this.nodeMap.get(a.nextSibling)||void 0),a=a.nextSibling}while(void 0===o);if(void 0===o)e.childNodes.push(r);else for(var s=0;s<e.childNodes.length;s++)if(e.childNodes[s]===o){e.childNodes.splice(s,0,r);break}}}this._refreshStore()}},n._onAttributesChange=function(t){this._updateVNodeAttributes(t.target),this._refreshStore()},n._onCharacterDataChange=function(t){var e=this.nodeMap.get(t.target);e&&(e.textContent=t.target.textContent,this._refreshStore())},n._generateVNode=function(t){if(!this._isIgnoredNode(t)){var e={nodeType:t.nodeType,nodeName:t.nodeName.toLowerCase(),textContent:"",id:"",className:"",attributes:[],childNodes:[]};if(this.nodeMap.set(t,e),e.nodeType!=t.TEXT_NODE&&e.nodeType!=t.DOCUMENT_TYPE_NODE||(e.textContent=t.textContent),t.childNodes.length>0){e.childNodes=[];for(var n=0;n<t.childNodes.length;n++){var i=this._generateVNode(t.childNodes[n]);i&&e.childNodes.push(i)}}return this._updateVNodeAttributes(t),e}},n._updateVNodeAttributes=function(t){var e=this.nodeMap.get(t);if(e&&t instanceof Element&&(e.id=t.id||"",e.className=t.className||"",t.hasAttributes&&t.hasAttributes())){e.attributes=[];for(var n=0;n<t.attributes.length;n++)e.attributes.push({name:t.attributes[n].name,value:t.attributes[n].value||""})}},n._expandActivedNode=function(){var t=(0,xn.U2)(_i);if(t._isExpand)for(var e=0;e<t.childNodes.length;e++)t.childNodes[e]._isExpand=!0;else t._isExpand=!0;this._refreshStore()},n._collapseActivedNode=function(){var t=(0,xn.U2)(_i);if(t._isExpand){for(var e=!1,n=0;n<t.childNodes.length;n++)t.childNodes[n]._isExpand&&(e=!0,t.childNodes[n]._isExpand=!1);e||(t._isExpand=!1),this._refreshStore()}},n._isIgnoredNode=function(t){if(t.nodeType===t.TEXT_NODE){if(""===t.textContent.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$|\n+/g,""))return!0}else if(t.nodeType===t.COMMENT_NODE)return!0;return!1},n._isInVConsole=function(t){for(var e=t;void 0!==e;){if("__vconsole"==e.id)return!0;e=e.parentElement||void 0}return!1},n._refreshStore=function(){xi.update(function(t){return t})},e}(nt);function Zi(t,e,n,i,r,o,a){try{var s=t[o](a),c=s.value}catch(t){return void n(t)}s.done?e(c):Promise.resolve(c).then(i,r)}function Ji(t){return function(){var e=this,n=arguments;return new Promise(function(i,r){var o=t.apply(e,n);function a(t){Zi(o,i,r,a,s,"next",t)}function s(t){Zi(o,i,r,a,s,"throw",t)}a(void 0)})}}var Qi=__webpack_require__(8270);function tr(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function er(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?tr(Object(n),!0).forEach(function(e){(0,Qi.Z)(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):tr(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}var nr=function(t){if(!t||0===t.length)return{};for(var e={},n=t.split(";"),i=0;i<n.length;i++){var r=n[i].indexOf("=");if(!(r<0)){var o=n[i].substring(0,r).replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,""),a=n[i].substring(r+1,n[i].length);try{o=decodeURIComponent(o)}catch(t){}try{a=decodeURIComponent(a)}catch(t){}e[o]=a}}return e},ir=function(t,e,n){"undefined"!=typeof document&&void 0!==document.cookie&&(document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)+function(t){void 0===t&&(t={});var e=t,n=e.path,i=e.domain,r=e.expires,o=e.secure,a=e.sameSite,s=["none","lax","strict"].indexOf((a||"").toLowerCase())>-1?a:null;return[null==n?"":";path="+n,null==i?"":";domain="+i,null==r?"":";expires="+r.toUTCString(),void 0===o||!1===o?"":";secure",null===s?"":";SameSite="+s].join("")}(n))},rr=function(){return"undefined"==typeof document||void 0===document.cookie?"":document.cookie},or=function(){function e(){}var n=e.prototype;return n.key=function(t){return t<this.keys.length?this.keys[t]:null},n.setItem=function(t,e,n){ir(t,e,n)},n.getItem=function(t){var e=nr(rr());return Object.prototype.hasOwnProperty.call(e,t)?e[t]:null},n.removeItem=function(t,e){for(var n,i,r=["","/"],o=(null==(n=location)||null==(i=n.hostname)?void 0:i.split("."))||[];o.length>1;)r.push(o.join(".")),o.shift();for(var a=0;a<r.length;a++)for(var s,c,l=(null==(s=location)||null==(c=s.pathname)?void 0:c.split("/"))||[],u="";l.length>0;){u+=("/"===u?"":"/")+l.shift();var h=er(er({},e),{},{path:u,domain:r[a],expires:new Date(0)});ir(t,"",h)}},n.clear=function(){for(var t=[].concat(this.keys),e=0;e<t.length;e++)this.removeItem(t[e])},(0,t.Z)(e,[{key:"length",get:function(){return this.keys.length}},{key:"keys",get:function(){var t=nr(rr());return Object.keys(t).sort()}}]),e}(),ar=function(){function n(){this.keys=[],this.currentSize=0,this.limitSize=0}var i=n.prototype;return i.key=function(t){return t<this.keys.length?this.keys[t]:null},i.prepare=function(){var t=Ji(me().mark(function t(){var n=this;return me().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.abrupt("return",new Promise(function(t,i){(0,e.qt)("getStorageInfo",{success:function(e){n.keys=e?e.keys.sort():[],n.currentSize=e?e.currentSize:0,n.limitSize=e?e.limitSize:0,t(!0)},fail:function(){i(!1)}})}));case 1:case"end":return t.stop()}},t)}));return function(){return t.apply(this,arguments)}}(),i.getItem=function(t){return new Promise(function(n,i){(0,e.qt)("getStorage",{key:t,success:function(t){var e=t.data;if("object"==typeof t.data)try{e=JSON.stringify(t.data)}catch(t){}n(e)},fail:function(t){i(t)}})})},i.setItem=function(t,n){return new Promise(function(i,r){(0,e.qt)("setStorage",{key:t,data:n,success:function(t){i(t)},fail:function(t){r(t)}})})},i.removeItem=function(t){return new Promise(function(n,i){(0,e.qt)("removeStorage",{key:t,success:function(t){n(t)},fail:function(t){i(t)}})})},i.clear=function(){return new Promise(function(t,n){(0,e.qt)("clearStorage",{success:function(e){t(e)},fail:function(t){n(t)}})})},(0,t.Z)(n,[{key:"length",get:function(){return this.keys.length}}]),n}(),sr={updateTime:(0,xn.fZ)(0),activedName:(0,xn.fZ)(null),defaultStorages:(0,xn.fZ)(["cookies","localStorage","sessionStorage"])},cr=function(n){function i(){var t;return(t=n.call(this)||this).storage=new Map,sr.activedName.subscribe(function(t){var e=(0,xn.U2)(sr.defaultStorages);e.length>0&&-1===e.indexOf(t)&&sr.activedName.set(e[0])}),sr.defaultStorages.subscribe(function(e){-1===e.indexOf((0,xn.U2)(sr.activedName))&&sr.activedName.set(e[0]),t.updateEnabledStorages()}),t}(0,o.Z)(i,n);var r=i.prototype;return r.getItem=function(){var t=Ji(me().mark(function t(e){return me().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.activedStorage){t.next=2;break}return t.abrupt("return","");case 2:return t.next=4,this.promisify(this.activedStorage.getItem(e));case 4:return t.abrupt("return",t.sent);case 5:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),r.setItem=function(){var t=Ji(me().mark(function t(e,n){var i;return me().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.activedStorage){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.promisify(this.activedStorage.setItem(e,n));case 4:return i=t.sent,this.refresh(),t.abrupt("return",i);case 7:case"end":return t.stop()}},t,this)}));return function(e,n){return t.apply(this,arguments)}}(),r.removeItem=function(){var t=Ji(me().mark(function t(e){var n;return me().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.activedStorage){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.promisify(this.activedStorage.removeItem(e));case 4:return n=t.sent,this.refresh(),t.abrupt("return",n);case 7:case"end":return t.stop()}},t,this)}));return function(e){return t.apply(this,arguments)}}(),r.clear=function(){var t=Ji(me().mark(function t(){var e;return me().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(this.activedStorage){t.next=2;break}return t.abrupt("return");case 2:return t.next=4,this.promisify(this.activedStorage.clear());case 4:return e=t.sent,this.refresh(),t.abrupt("return",e);case 7:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),r.refresh=function(){sr.updateTime.set(Date.now())},r.getEntries=function(){var t=Ji(me().mark(function t(){var e,n,i,r,o;return me().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:if(e=this.activedStorage){t.next=3;break}return t.abrupt("return",[]);case 3:if("function"!=typeof e.prepare){t.next=6;break}return t.next=6,e.prepare();case 6:n=[],i=0;case 8:if(!(i<e.length)){t.next=17;break}return r=e.key(i),t.next=12,this.getItem(r);case 12:o=t.sent,n.push([r,o]);case 14:i++,t.next=8;break;case 17:return t.abrupt("return",n);case 18:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),r.updateEnabledStorages=function(){var t=(0,xn.U2)(sr.defaultStorages);t.indexOf("cookies")>-1?void 0!==document.cookie&&this.storage.set("cookies",new or):this.deleteStorage("cookies"),t.indexOf("localStorage")>-1?window.localStorage&&this.storage.set("localStorage",window.localStorage):this.deleteStorage("localStorage"),t.indexOf("sessionStorage")>-1?window.sessionStorage&&this.storage.set("sessionStorage",window.sessionStorage):this.deleteStorage("sessionStorage"),t.indexOf("wxStorage")>-1?(0,e.H_)()&&this.storage.set("wxStorage",new ar):this.deleteStorage("wxStorage")},r.promisify=function(t){return"string"==typeof t||null==t?Promise.resolve(t):t},r.deleteStorage=function(t){this.storage.has(t)&&this.storage.delete(t)},(0,t.Z)(i,[{key:"activedStorage",get:function(){return this.storage.get((0,xn.U2)(sr.activedName))}}]),i}(_n.N);function lr(t,e,n){var i=t.slice();return i[20]=e[n][0],i[21]=e[n][1],i[23]=n,i}function ur(t){var e;return{c:function(){(e=(0,a.bGB)("div")).textContent="Empty",(0,a.Ljt)(e,"class","vc-plugin-empty")},m:function(t,n){(0,a.$Tr)(t,e,n)},p:a.ZTd,d:function(t){t&&(0,a.ogt)(e)}}}function hr(t){var e,n,i,r,o,s=t[20]+"",c=t[5](t[21])+"";return{c:function(){e=(0,a.bGB)("div"),n=(0,a.fLW)(s),i=(0,a.DhX)(),r=(0,a.bGB)("div"),o=(0,a.fLW)(c),(0,a.Ljt)(e,"class","vc-table-col"),(0,a.Ljt)(r,"class","vc-table-col vc-table-col-2")},m:function(t,s){(0,a.$Tr)(t,e,s),(0,a.R3I)(e,n),(0,a.$Tr)(t,i,s),(0,a.$Tr)(t,r,s),(0,a.R3I)(r,o)},p:function(t,e){1&e&&s!==(s=t[20]+"")&&(0,a.rTO)(n,s),1&e&&c!==(c=t[5](t[21])+"")&&(0,a.rTO)(o,c)},d:function(t){t&&(0,a.ogt)(e),t&&(0,a.ogt)(i),t&&(0,a.ogt)(r)}}}function dr(t){var e,n,i,r,o,s,c;return{c:function(){e=(0,a.bGB)("div"),n=(0,a.bGB)("textarea"),i=(0,a.DhX)(),r=(0,a.bGB)("div"),o=(0,a.bGB)("textarea"),(0,a.Ljt)(n,"class","vc-table-input"),(0,a.Ljt)(e,"class","vc-table-col"),(0,a.Ljt)(o,"class","vc-table-input"),(0,a.Ljt)(r,"class","vc-table-col vc-table-col-2")},m:function(l,u){(0,a.$Tr)(l,e,u),(0,a.R3I)(e,n),(0,a.BmG)(n,t[2]),(0,a.$Tr)(l,i,u),(0,a.$Tr)(l,r,u),(0,a.R3I)(r,o),(0,a.BmG)(o,t[3]),s||(c=[(0,a.oLt)(n,"input",t[11]),(0,a.oLt)(o,"input",t[12])],s=!0)},p:function(t,e){4&e&&(0,a.BmG)(n,t[2]),8&e&&(0,a.BmG)(o,t[3])},d:function(t){t&&(0,a.ogt)(e),t&&(0,a.ogt)(i),t&&(0,a.ogt)(r),s=!1,(0,a.j7q)(c)}}}function fr(t){var e,n,i,r,o,s;return(e=new ot.Z({props:{name:"delete"}})).$on("click",function(){return t[14](t[20])}),i=new ct({props:{content:[t[20],t[21]].join("=")}}),(o=new ot.Z({props:{name:"edit"}})).$on("click",function(){return t[15](t[20],t[21],t[23])}),{c:function(){(0,a.YCL)(e.$$.fragment),n=(0,a.DhX)(),(0,a.YCL)(i.$$.fragment),r=(0,a.DhX)(),(0,a.YCL)(o.$$.fragment)},m:function(t,c){(0,a.yef)(e,t,c),(0,a.$Tr)(t,n,c),(0,a.yef)(i,t,c),(0,a.$Tr)(t,r,c),(0,a.yef)(o,t,c),s=!0},p:function(e,n){t=e;var r={};1&n&&(r.content=[t[20],t[21]].join("=")),i.$set(r)},i:function(t){s||((0,a.Ui)(e.$$.fragment,t),(0,a.Ui)(i.$$.fragment,t),(0,a.Ui)(o.$$.fragment,t),s=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),(0,a.etI)(i.$$.fragment,t),(0,a.etI)(o.$$.fragment,t),s=!1},d:function(t){(0,a.vpE)(e,t),t&&(0,a.ogt)(n),(0,a.vpE)(i,t),t&&(0,a.ogt)(r),(0,a.vpE)(o,t)}}}function pr(t){var e,n,i,r;return(e=new ot.Z({props:{name:"cancel"}})).$on("click",t[9]),(i=new ot.Z({props:{name:"done"}})).$on("click",function(){return t[13](t[20])}),{c:function(){(0,a.YCL)(e.$$.fragment),n=(0,a.DhX)(),(0,a.YCL)(i.$$.fragment)},m:function(t,o){(0,a.yef)(e,t,o),(0,a.$Tr)(t,n,o),(0,a.yef)(i,t,o),r=!0},p:function(e,n){t=e},i:function(t){r||((0,a.Ui)(e.$$.fragment,t),(0,a.Ui)(i.$$.fragment,t),r=!0)},o:function(t){(0,a.etI)(e.$$.fragment,t),(0,a.etI)(i.$$.fragment,t),r=!1},d:function(t){(0,a.vpE)(e,t),t&&(0,a.ogt)(n),(0,a.vpE)(i,t)}}}function mr(t){var e,n,i,r,o,s,c;function l(t,e){return t[1]===t[23]?dr:hr}var u=l(t),h=u(t),d=[pr,fr],f=[];function p(t,e){return t[1]===t[23]?0:1}return r=p(t),o=f[r]=d[r](t),{c:function(){e=(0,a.bGB)("div"),h.c(),n=(0,a.DhX)(),i=(0,a.bGB)("div"),o.c(),s=(0,a.DhX)(),(0,a.Ljt)(i,"class","vc-table-col vc-table-col-1 vc-table-action"),(0,a.Ljt)(e,"class","vc-table-row")},m:function(t,o){(0,a.$Tr)(t,e,o),h.m(e,null),(0,a.R3I)(e,n),(0,a.R3I)(e,i),f[r].m(i,null),(0,a.R3I)(e,s),c=!0},p:function(t,s){u===(u=l(t))&&h?h.p(t,s):(h.d(1),(h=u(t))&&(h.c(),h.m(e,n)));var c=r;(r=p(t))===c?f[r].p(t,s):((0,a.dvw)(),(0,a.etI)(f[c],1,1,function(){f[c]=null}),(0,a.gbL)(),(o=f[r])?o.p(t,s):(o=f[r]=d[r](t)).c(),(0,a.Ui)(o,1),o.m(i,null))},i:function(t){c||((0,a.Ui)(o),c=!0)},o:function(t){(0,a.etI)(o),c=!1},d:function(t){t&&(0,a.ogt)(e),h.d(),f[r].d()}}}function vr(t){for(var e,n,i,r,o=t[0],s=[],c=0;c<o.length;c+=1)s[c]=mr(lr(t,o,c));var l=function(t){return(0,a.etI)(s[t],1,1,function(){s[t]=null})},u=null;return o.length||(u=ur()),{c:function(){e=(0,a.bGB)("div"),(n=(0,a.bGB)("div")).innerHTML='<div class="vc-table-col">Key</div> \n    <div class="vc-table-col vc-table-col-2">Value</div> \n    <div class="vc-table-col vc-table-col-1 vc-table-action"></div>',i=(0,a.DhX)();for(var t=0;t<s.length;t+=1)s[t].c();u&&u.c(),(0,a.Ljt)(n,"class","vc-table-row"),(0,a.Ljt)(e,"class","vc-table")},m:function(t,o){(0,a.$Tr)(t,e,o),(0,a.R3I)(e,n),(0,a.R3I)(e,i);for(var c=0;c<s.length;c+=1)s[c].m(e,null);u&&u.m(e,null),r=!0},p:function(t,n){var i=n[0];if(1007&i){var r;for(o=t[0],r=0;r<o.length;r+=1){var c=lr(t,o,r);s[r]?(s[r].p(c,i),(0,a.Ui)(s[r],1)):(s[r]=mr(c),s[r].c(),(0,a.Ui)(s[r],1),s[r].m(e,null))}for((0,a.dvw)(),r=o.length;r<s.length;r+=1)l(r);(0,a.gbL)(),!o.length&&u?u.p(t,i):o.length?u&&(u.d(1),u=null):((u=ur()).c(),u.m(e,null))}},i:function(t){if(!r){for(var e=0;e<o.length;e+=1)(0,a.Ui)(s[e]);r=!0}},o:function(t){s=s.filter(Boolean);for(var e=0;e<s.length;e+=1)(0,a.etI)(s[e]);r=!1},d:function(t){t&&(0,a.ogt)(e),(0,a.RMB)(s,t),u&&u.d()}}}function gr(t,n,i){var r,o=this&&this.__awaiter||function(t,e,n,i){return new(n||(n=Promise))(function(r,o){function a(t){try{c(i.next(t))}catch(t){o(t)}}function s(t){try{c(i.throw(t))}catch(t){o(t)}}function c(t){var e;t.done?r(t.value):(e=t.value,e instanceof n?e:new n(function(t){t(e)})).then(a,s)}c((i=i.apply(t,e||[])).next())})},s=cr.getSingleton(cr,"VConsoleStorageModel"),c=sr.updateTime;(0,a.FIv)(t,c,function(t){return i(10,r=t)});var l=[],u=-1,h="",d="",f=function(){i(1,u=-1),i(2,h=""),i(3,d="")},p=function(t){return o(void 0,void 0,void 0,me().mark(function e(){return me().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,s.removeItem(t);case 2:case"end":return e.stop()}},e)}))},m=function(t){return o(void 0,void 0,void 0,me().mark(function e(){return me().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(h===t){e.next=3;break}return e.next=3,s.removeItem(t);case 3:s.setItem(h,d),f();case 5:case"end":return e.stop()}},e)}))},v=function(t,e,n){return o(void 0,void 0,void 0,me().mark(function r(){return me().wrap(function(r){for(;;)switch(r.prev=r.next){case 0:i(2,h=t),i(3,d=e),i(1,u=n);case 3:case"end":return r.stop()}},r)}))};return t.$$.update=function(){1024&t.$$.dirty&&r&&o(void 0,void 0,void 0,me().mark(function t(){return me().wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return f(),t.t0=i,t.next=4,s.getEntries();case 4:t.t1=l=t.sent,(0,t.t0)(0,t.t1);case 6:case"end":return t.stop()}},t)}))},[l,u,h,d,c,function(t){return(0,e.id)(t,1024)},p,m,v,function(){f()},r,function(){h=this.value,i(2,h)},function(){d=this.value,i(3,d)},function(t){return m(t)},function(t){return p(t)},function(t,e,n){return v(t,e,n)}]}var yr=function(t){function e(e){var n;return n=t.call(this)||this,(0,a.S1n)((0,r.Z)(n),e,gr,vr,a.N8,{}),n}return(0,o.Z)(e,t),e}(a.f_C),br=function(t){function n(e,n,i){var r;return void 0===i&&(i={}),(r=t.call(this,e,n,yr,i)||this).model=cr.getSingleton(cr,"VConsoleStorageModel"),r.onAddTopBarCallback=void 0,r}(0,o.Z)(n,t);var i=n.prototype;return i.onReady=function(){t.prototype.onReady.call(this),this.onUpdateOption()},i.onShow=function(){this.model.refresh()},i.onAddTopBar=function(t){this.onAddTopBarCallback=t,this.updateTopBar()},i.onAddTool=function(t){var e=this;t([{name:"Add",global:!1,onClick:function(){e.model.setItem("new_"+Date.now(),"new_value")}},{name:"Refresh",global:!1,onClick:function(){e.model.refresh()}},{name:"Clear",global:!1,onClick:function(){e.model.clear()}}])},i.onUpdateOption=function(){var t,n=null==(t=this.vConsole.option.storage)?void 0:t.defaultStorages;(0,e.kJ)(n)&&(n=n.length>0?n:["cookies"])!==(0,xn.U2)(sr.defaultStorages)&&(sr.defaultStorages.set(n),sr.activedName.set(n[0]),this.updateTopBar())},i.updateTopBar=function(){var t=this;if("function"==typeof this.onAddTopBarCallback){for(var e=(0,xn.U2)(sr.defaultStorages),n=[],i=0;i<e.length;i++){var r=e[i];n.push({name:r[0].toUpperCase()+r.substring(1),data:{name:r},actived:r===(0,xn.U2)(sr.activedName),onClick:function(e,n){var i=(0,xn.U2)(sr.activedName);if(n.name===i)return!1;sr.activedName.set(n.name),t.model.refresh()}})}this.onAddTopBarCallback(n)}},n}(nt),xr=function(){function n(t){var r=this;if(this.version="3.15.1",this.isInited=!1,this.option={},this.compInstance=void 0,this.pluginList={},this.log=void 0,this.system=void 0,this.network=void 0,n.instance&&n.instance instanceof n)return console.debug("[vConsole] vConsole is already exists."),n.instance;if(n.instance=this,this.isInited=!1,this.option={defaultPlugins:["system","network","element","storage"],log:{},network:{},storage:{}},e.Kn(t))for(var o in t)this.option[o]=t[o];void 0!==this.option.maxLogNumber&&(this.option.log.maxLogNumber=this.option.maxLogNumber,console.debug("[vConsole] Deprecated option: `maxLogNumber`, use `log.maxLogNumber` instead.")),void 0!==this.option.onClearLog&&console.debug("[vConsole] Deprecated option: `onClearLog`."),void 0!==this.option.maxNetworkNumber&&(this.option.network.maxNetworkNumber=this.option.maxNetworkNumber,console.debug("[vConsole] Deprecated option: `maxNetworkNumber`, use `network.maxNetworkNumber` instead.")),this._addBuiltInPlugins();var a,s=function(){r.isInited||(r._initComponent(),r._autoRun())};void 0!==document?"loading"===document.readyState?i.bind(window,"DOMContentLoaded",s):s():a=setTimeout(function t(){document&&"complete"==document.readyState?(a&&clearTimeout(a),s()):a=setTimeout(t,1)},1)}var r=n.prototype;return r._addBuiltInPlugins=function(){this.addPlugin(new yn("default","Log"));var t=this.option.defaultPlugins,n={system:{proto:bn,name:"System"}};if(n.network={proto:gi,name:"Network"},n.element={proto:Ki,name:"Element"},n.storage={proto:br,name:"Storage"},t&&e.kJ(t))for(var i=0;i<t.length;i++){var r=n[t[i]];r?this.addPlugin(new r.proto(t[i],r.name)):console.debug("[vConsole] Unrecognized default plugin ID:",t[i])}},r._initComponent=function(){var t=this;if(!i.one("#__vconsole")){var n,r=1*e.cF("switch_x"),o=1*e.cF("switch_y");"string"==typeof this.option.target?n=document.querySelector(this.option.target):this.option.target instanceof HTMLElement&&(n=this.option.target),n instanceof HTMLElement||(n=document.documentElement),this.compInstance=new tt({target:n,props:{switchButtonPosition:{x:r,y:o}}}),this.compInstance.$on("show",function(e){e.detail.show?t.show():t.hide()}),this.compInstance.$on("changePanel",function(e){var n=e.detail.pluginId;t.showPlugin(n)})}this._updateComponentByOptions()},r._updateComponentByOptions=function(){if(this.compInstance){if(this.compInstance.theme!==this.option.theme){var t=this.option.theme;t="light"!==t&&"dark"!==t?"":t,this.compInstance.theme=t}this.compInstance.disableScrolling!==this.option.disableLogScrolling&&(this.compInstance.disableScrolling=!!this.option.disableLogScrolling)}},r.setSwitchPosition=function(t,e){this.compInstance.switchButtonPosition={x:t,y:e}},r._autoRun=function(){for(var t in this.isInited=!0,this.pluginList)this._initPlugin(this.pluginList[t]);this._showFirstPluginWhenEmpty(),this.triggerEvent("ready")},r._showFirstPluginWhenEmpty=function(){var t=Object.keys(this.pluginList);""===this.compInstance.activedPluginId&&t.length>0&&this.showPlugin(t[0])},r.triggerEvent=function(t,n){var i=this;t="on"+t.charAt(0).toUpperCase()+t.slice(1),e.mf(this.option[t])&&setTimeout(function(){i.option[t].apply(i,n)},0)},r._initPlugin=function(t){var e=this;t.vConsole=this,this.compInstance.pluginList[t.id]={id:t.id,name:t.name,hasTabPanel:!1,tabOptions:void 0,topbarList:[],toolbarList:[],content:void 0,contentContainer:void 0},this.compInstance.pluginList=this._reorderPluginList(this.compInstance.pluginList),t.trigger("init"),t.trigger("renderTab",function(n,i){void 0===i&&(i={});var r=e.compInstance.pluginList[t.id];r.hasTabPanel=!0,r.tabOptions=i,n&&(e.compInstance.pluginList[t.id].content=n),e.compInstance.pluginList=e.compInstance.pluginList}),t.trigger("addTopBar",function(n){if(n){for(var i=[],r=0;r<n.length;r++){var o=n[r];i.push({name:o.name||"Undefined",className:o.className||"",actived:!!o.actived,data:o.data,onClick:o.onClick})}e.compInstance.pluginList[t.id].topbarList=i,e.compInstance.pluginList=e.compInstance.pluginList}}),t.trigger("addTool",function(n){if(n){for(var i=[],r=0;r<n.length;r++){var o=n[r];i.push({name:o.name||"Undefined",global:!!o.global,data:o.data,onClick:o.onClick})}e.compInstance.pluginList[t.id].toolbarList=i,e.compInstance.pluginList=e.compInstance.pluginList}}),t.isReady=!0,t.trigger("ready")},r._triggerPluginsEvent=function(t){for(var e in this.pluginList)this.pluginList[e].isReady&&this.pluginList[e].trigger(t)},r._triggerPluginEvent=function(t,e){var n=this.pluginList[t];n&&n.isReady&&n.trigger(e)},r._reorderPluginList=function(t){var n=this;if(!e.kJ(this.option.pluginOrder))return t;for(var i=Object.keys(t).sort(function(t,e){var i=n.option.pluginOrder.indexOf(t),r=n.option.pluginOrder.indexOf(e);return i===r?0:-1===i?1:-1===r?-1:i-r}),r={},o=0;o<i.length;o++)r[i[o]]=t[i[o]];return r},r.addPlugin=function(t){return void 0!==this.pluginList[t.id]?(console.debug("[vConsole] Plugin `"+t.id+"` has already been added."),!1):(this.pluginList[t.id]=t,this.isInited&&(this._initPlugin(t),this._showFirstPluginWhenEmpty()),!0)},r.removePlugin=function(t){t=(t+"").toLowerCase();var e=this.pluginList[t];if(void 0===e)return console.debug("[vConsole] Plugin `"+t+"` does not exist."),!1;e.trigger("remove");try{delete this.pluginList[t],delete this.compInstance.pluginList[t]}catch(e){this.pluginList[t]=void 0,this.compInstance.pluginList[t]=void 0}return this.compInstance.pluginList=this.compInstance.pluginList,this.compInstance.activedPluginId==t&&(this.compInstance.activedPluginId="",this._showFirstPluginWhenEmpty()),!0},r.show=function(){this.isInited&&(this.compInstance.show=!0,this._triggerPluginsEvent("showConsole"))},r.hide=function(){this.isInited&&(this.compInstance.show=!1,this._triggerPluginsEvent("hideConsole"))},r.showSwitch=function(){this.isInited&&(this.compInstance.showSwitchButton=!0)},r.hideSwitch=function(){this.isInited&&(this.compInstance.showSwitchButton=!1)},r.showPlugin=function(t){this.isInited&&(this.pluginList[t]||console.debug("[vConsole] Plugin `"+t+"` does not exist."),this.compInstance.activedPluginId&&this._triggerPluginEvent(this.compInstance.activedPluginId,"hide"),this.compInstance.activedPluginId=t,this._triggerPluginEvent(this.compInstance.activedPluginId,"show"))},r.setOption=function(t,n){if("string"==typeof t){for(var i=t.split("."),r=this.option,o=0;o<i.length;o++){if("__proto__"===i[o]||"constructor"===i[o]||"prototype"===i[o])return void console.debug("[vConsole] Cannot set `"+i[o]+"` in `vConsole.setOption()`.");void 0===r[i[o]]&&(r[i[o]]={}),o===i.length-1&&(r[i[o]]=n),r=r[i[o]]}this._triggerPluginsEvent("updateOption"),this._updateComponentByOptions()}else if(e.Kn(t)){for(var a in t)"__proto__"!==a&&"constructor"!==a&&"prototype"!==a?this.option[a]=t[a]:console.debug("[vConsole] Cannot set `"+a+"` in `vConsole.setOption()`.");this._triggerPluginsEvent("updateOption"),this._updateComponentByOptions()}else console.debug("[vConsole] The first parameter of `vConsole.setOption()` must be a string or an object.")},r.destroy=function(){if(this.isInited){this.isInited=!1,n.instance=void 0;for(var t=Object.keys(this.pluginList),e=t.length-1;e>=0;e--)this.removePlugin(t[e]);this.compInstance.$destroy()}},(0,t.Z)(n,null,[{key:"instance",get:function(){return window.__VCONSOLE_INSTANCE},set:function(t){void 0===t||t instanceof n?window.__VCONSOLE_INSTANCE=t:console.debug("[vConsole] Cannot set `VConsole.instance` because the value is not the instance of VConsole.")}}]),n}();xr.VConsolePlugin=void 0,xr.VConsoleLogPlugin=void 0,xr.VConsoleDefaultPlugin=void 0,xr.VConsoleSystemPlugin=void 0,xr.VConsoleNetworkPlugin=void 0,xr.VConsoleElementPlugin=void 0,xr.VConsoleStoragePlugin=void 0,xr.VConsolePlugin=et,xr.VConsoleLogPlugin=gn,xr.VConsoleDefaultPlugin=yn,xr.VConsoleSystemPlugin=bn,xr.VConsoleNetworkPlugin=gi,xr.VConsoleElementPlugin=Ki,xr.VConsoleStoragePlugin=br;var _r=xr}(),__webpack_exports__=__webpack_exports__.default,__webpack_exports__}()},module.exports=n()}).call(exports,__webpack_require__("DuR2"))},M6a0:function(t,e){},M8WE:function(t,e,n){e.f=n("kkCw")},MU5D:function(t,e,n){var i=n("R9M2");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},MfeA:function(t,e,n){"use strict";var i=n("DIVP"),r=n("BbyF"),o=n("TwzQ"),a=n("9Dx1");n("Vg1y")("match",1,function(t,e,n,s){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=s(n,t,this);if(e.done)return e.value;var c=i(t),l=String(this);if(!c.global)return a(c,l);var u=c.unicode;c.lastIndex=0;for(var h,d=[],f=0;null!==(h=a(c,l));){var p=String(h[0]);d[f]=p,""===p&&(c.lastIndex=o(l,r(c.lastIndex),u)),f++}return 0===f?null:d}]})},Mhyx:function(t,e,n){var i=n("/bQp"),r=n("dSzd")("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(i.Array===t||o[r]===t)}},MjHD:function(t,e,n){var i=n("Ds5P"),r=n("x78i"),o=Math.exp;i(i.S+i.F*n("zgIt")(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(r(t)-r(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},"Ml+6":function(t,e,n){"use strict";function i(){}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"WebGLMultisampleRenderTarget",function(){return pn}),n.d(e,"WebGLRenderTargetCube",function(){return mn}),n.d(e,"WebGLRenderTarget",function(){return fn}),n.d(e,"WebGLRenderer",function(){return co}),n.d(e,"ShaderLib",function(){return An}),n.d(e,"UniformsLib",function(){return Pn}),n.d(e,"UniformsUtils",function(){return Cn}),n.d(e,"ShaderChunk",function(){return _n}),n.d(e,"FogExp2",function(){return lo}),n.d(e,"Fog",function(){return uo}),n.d(e,"Scene",function(){return ho}),n.d(e,"Sprite",function(){return vo}),n.d(e,"LOD",function(){return go}),n.d(e,"SkinnedMesh",function(){return yo}),n.d(e,"Skeleton",function(){return bo}),n.d(e,"Bone",function(){return xo}),n.d(e,"Mesh",function(){return Ai}),n.d(e,"LineSegments",function(){return So}),n.d(e,"LineLoop",function(){return To}),n.d(e,"Line",function(){return wo}),n.d(e,"Points",function(){return Mo}),n.d(e,"Group",function(){return Xr}),n.d(e,"VideoTexture",function(){return Co}),n.d(e,"DataTexture",function(){return vn}),n.d(e,"DataTexture3D",function(){return Ri}),n.d(e,"CompressedTexture",function(){return Lo}),n.d(e,"CubeTexture",function(){return Di}),n.d(e,"CanvasTexture",function(){return Oo}),n.d(e,"DepthTexture",function(){return ko}),n.d(e,"Texture",function(){return hn}),n.d(e,"AnimationLoader",function(){return _s}),n.d(e,"CompressedTextureLoader",function(){return ws}),n.d(e,"DataTextureLoader",function(){return Ss}),n.d(e,"CubeTextureLoader",function(){return Es}),n.d(e,"TextureLoader",function(){return Ms}),n.d(e,"ObjectLoader",function(){return hc}),n.d(e,"MaterialLoader",function(){return sc}),n.d(e,"BufferGeometryLoader",function(){return lc}),n.d(e,"DefaultLoadingManager",function(){return ys}),n.d(e,"LoadingManager",function(){return gs}),n.d(e,"ImageLoader",function(){return Ts}),n.d(e,"ImageBitmapLoader",function(){return xc}),n.d(e,"FontLoader",function(){return Tc}),n.d(e,"FileLoader",function(){return xs}),n.d(e,"Loader",function(){return Ec}),n.d(e,"LoaderUtils",function(){return cc}),n.d(e,"Cache",function(){return vs}),n.d(e,"AudioLoader",function(){return Nc}),n.d(e,"SpotLightShadow",function(){return Qs}),n.d(e,"SpotLight",function(){return tc}),n.d(e,"PointLight",function(){return ec}),n.d(e,"RectAreaLight",function(){return ac}),n.d(e,"HemisphereLight",function(){return Zs}),n.d(e,"DirectionalLightShadow",function(){return ic}),n.d(e,"DirectionalLight",function(){return rc}),n.d(e,"AmbientLight",function(){return oc}),n.d(e,"LightShadow",function(){return Js}),n.d(e,"Light",function(){return Ks}),n.d(e,"StereoCamera",function(){return jc}),n.d(e,"PerspectiveCamera",function(){return Kr}),n.d(e,"OrthographicCamera",function(){return nc}),n.d(e,"CubeCamera",function(){return zc}),n.d(e,"ArrayCamera",function(){return Zr}),n.d(e,"Camera",function(){return Yr}),n.d(e,"AudioListener",function(){return Vc}),n.d(e,"PositionalAudio",function(){return Gc}),n.d(e,"AudioContext",function(){return Bc}),n.d(e,"AudioAnalyser",function(){return $c}),n.d(e,"Audio",function(){return Uc}),n.d(e,"VectorKeyframeTrack",function(){return fs}),n.d(e,"StringKeyframeTrack",function(){return ds}),n.d(e,"QuaternionKeyframeTrack",function(){return hs}),n.d(e,"NumberKeyframeTrack",function(){return ls}),n.d(e,"ColorKeyframeTrack",function(){return cs}),n.d(e,"BooleanKeyframeTrack",function(){return ss}),n.d(e,"PropertyMixer",function(){return Hc}),n.d(e,"PropertyBinding",function(){return cl}),n.d(e,"KeyframeTrack",function(){return as}),n.d(e,"AnimationUtils",function(){return es}),n.d(e,"AnimationObjectGroup",function(){return ll}),n.d(e,"AnimationMixer",function(){return hl}),n.d(e,"AnimationClip",function(){return ps}),n.d(e,"Uniform",function(){return dl}),n.d(e,"InstancedBufferGeometry",function(){return fl}),n.d(e,"BufferGeometry",function(){return si}),n.d(e,"Geometry",function(){return qn}),n.d(e,"InterleavedBufferAttribute",function(){return po}),n.d(e,"InstancedInterleavedBuffer",function(){return pl}),n.d(e,"InterleavedBuffer",function(){return fo}),n.d(e,"InstancedBufferAttribute",function(){return ml}),n.d(e,"Face3",function(){return Rn}),n.d(e,"Object3D",function(){return Gn}),n.d(e,"Raycaster",function(){return vl}),n.d(e,"Layers",function(){return Nn}),n.d(e,"EventDispatcher",function(){return i}),n.d(e,"Clock",function(){return Fc}),n.d(e,"QuaternionLinearInterpolant",function(){return us}),n.d(e,"LinearInterpolant",function(){return rs}),n.d(e,"DiscreteInterpolant",function(){return os}),n.d(e,"CubicInterpolant",function(){return is}),n.d(e,"Interpolant",function(){return ns}),n.d(e,"Triangle",function(){return ki}),n.d(e,"Math",function(){return Ze}),n.d(e,"Spherical",function(){return bl}),n.d(e,"Cylindrical",function(){return xl}),n.d(e,"Plane",function(){return bn}),n.d(e,"Frustum",function(){return xn}),n.d(e,"Sphere",function(){return yn}),n.d(e,"Ray",function(){return Oi}),n.d(e,"Matrix4",function(){return Qe}),n.d(e,"Matrix3",function(){return nn}),n.d(e,"Box3",function(){return gn}),n.d(e,"Box2",function(){return _l}),n.d(e,"Line3",function(){return wl}),n.d(e,"Euler",function(){return Bn}),n.d(e,"Vector4",function(){return dn}),n.d(e,"Vector3",function(){return en}),n.d(e,"Vector2",function(){return Je}),n.d(e,"Quaternion",function(){return tn}),n.d(e,"Color",function(){return On}),n.d(e,"ImmediateRenderObject",function(){return Sl}),n.d(e,"VertexNormalsHelper",function(){return Tl}),n.d(e,"SpotLightHelper",function(){return El}),n.d(e,"SkeletonHelper",function(){return Ml}),n.d(e,"PointLightHelper",function(){return Cl}),n.d(e,"RectAreaLightHelper",function(){return Ll}),n.d(e,"HemisphereLightHelper",function(){return Ol}),n.d(e,"GridHelper",function(){return kl}),n.d(e,"PolarGridHelper",function(){return Pl}),n.d(e,"PositionalAudioHelper",function(){return Al}),n.d(e,"FaceNormalsHelper",function(){return Il}),n.d(e,"DirectionalLightHelper",function(){return Dl}),n.d(e,"CameraHelper",function(){return Rl}),n.d(e,"BoxHelper",function(){return Bl}),n.d(e,"Box3Helper",function(){return Nl}),n.d(e,"PlaneHelper",function(){return jl}),n.d(e,"ArrowHelper",function(){return zl}),n.d(e,"AxesHelper",function(){return Fl}),n.d(e,"Shape",function(){return Ys}),n.d(e,"Path",function(){return Xs}),n.d(e,"ShapePath",function(){return _c}),n.d(e,"Font",function(){return wc}),n.d(e,"CurvePath",function(){return qs}),n.d(e,"Curve",function(){return Cs}),n.d(e,"ImageUtils",function(){return ln}),n.d(e,"ShapeUtils",function(){return ya}),n.d(e,"WebGLUtils",function(){return qr}),n.d(e,"WireframeGeometry",function(){return Po}),n.d(e,"ParametricGeometry",function(){return Ao}),n.d(e,"ParametricBufferGeometry",function(){return Io}),n.d(e,"TetrahedronGeometry",function(){return Bo}),n.d(e,"TetrahedronBufferGeometry",function(){return No}),n.d(e,"OctahedronGeometry",function(){return jo}),n.d(e,"OctahedronBufferGeometry",function(){return zo}),n.d(e,"IcosahedronGeometry",function(){return Fo}),n.d(e,"IcosahedronBufferGeometry",function(){return Vo}),n.d(e,"DodecahedronGeometry",function(){return Uo}),n.d(e,"DodecahedronBufferGeometry",function(){return Go}),n.d(e,"PolyhedronGeometry",function(){return Do}),n.d(e,"PolyhedronBufferGeometry",function(){return Ro}),n.d(e,"TubeGeometry",function(){return $o}),n.d(e,"TubeBufferGeometry",function(){return Ho}),n.d(e,"TorusKnotGeometry",function(){return Wo}),n.d(e,"TorusKnotBufferGeometry",function(){return qo}),n.d(e,"TorusGeometry",function(){return Xo}),n.d(e,"TorusBufferGeometry",function(){return Yo}),n.d(e,"TextGeometry",function(){return Ea}),n.d(e,"TextBufferGeometry",function(){return Ma}),n.d(e,"SphereGeometry",function(){return Ca}),n.d(e,"SphereBufferGeometry",function(){return La}),n.d(e,"RingGeometry",function(){return Oa}),n.d(e,"RingBufferGeometry",function(){return ka}),n.d(e,"PlaneGeometry",function(){return ui}),n.d(e,"PlaneBufferGeometry",function(){return hi}),n.d(e,"LatheGeometry",function(){return Pa}),n.d(e,"LatheBufferGeometry",function(){return Aa}),n.d(e,"ShapeGeometry",function(){return Ia}),n.d(e,"ShapeBufferGeometry",function(){return Da}),n.d(e,"ExtrudeGeometry",function(){return _a}),n.d(e,"ExtrudeBufferGeometry",function(){return wa}),n.d(e,"EdgesGeometry",function(){return Ba}),n.d(e,"ConeGeometry",function(){return za}),n.d(e,"ConeBufferGeometry",function(){return Fa}),n.d(e,"CylinderGeometry",function(){return Na}),n.d(e,"CylinderBufferGeometry",function(){return ja}),n.d(e,"CircleGeometry",function(){return Va}),n.d(e,"CircleBufferGeometry",function(){return Ua}),n.d(e,"BoxGeometry",function(){return ci}),n.d(e,"CubeGeometry",function(){return ci}),n.d(e,"BoxBufferGeometry",function(){return li}),n.d(e,"ShadowMaterial",function(){return $a}),n.d(e,"SpriteMaterial",function(){return mo}),n.d(e,"RawShaderMaterial",function(){return Ha}),n.d(e,"ShaderMaterial",function(){return Li}),n.d(e,"PointsMaterial",function(){return Eo}),n.d(e,"MeshPhysicalMaterial",function(){return qa}),n.d(e,"MeshStandardMaterial",function(){return Wa}),n.d(e,"MeshPhongMaterial",function(){return Xa}),n.d(e,"MeshToonMaterial",function(){return Ya}),n.d(e,"MeshNormalMaterial",function(){return Ka}),n.d(e,"MeshLambertMaterial",function(){return Za}),n.d(e,"MeshDepthMaterial",function(){return Gr}),n.d(e,"MeshDistanceMaterial",function(){return $r}),n.d(e,"MeshBasicMaterial",function(){return Pi}),n.d(e,"MeshMatcapMaterial",function(){return Ja}),n.d(e,"LineDashedMaterial",function(){return Qa}),n.d(e,"LineBasicMaterial",function(){return _o}),n.d(e,"Material",function(){return fi}),n.d(e,"Float64BufferAttribute",function(){return ii}),n.d(e,"Float32BufferAttribute",function(){return ni}),n.d(e,"Uint32BufferAttribute",function(){return ei}),n.d(e,"Int32BufferAttribute",function(){return ti}),n.d(e,"Uint16BufferAttribute",function(){return Qn}),n.d(e,"Int16BufferAttribute",function(){return Jn}),n.d(e,"Uint8ClampedBufferAttribute",function(){return Zn}),n.d(e,"Uint8BufferAttribute",function(){return Kn}),n.d(e,"Int8BufferAttribute",function(){return Yn}),n.d(e,"BufferAttribute",function(){return Xn}),n.d(e,"ArcCurve",function(){return Os}),n.d(e,"CatmullRomCurve3",function(){return Rs}),n.d(e,"CubicBezierCurve",function(){return zs}),n.d(e,"CubicBezierCurve3",function(){return Fs}),n.d(e,"EllipseCurve",function(){return Ls}),n.d(e,"LineCurve",function(){return Vs}),n.d(e,"LineCurve3",function(){return Us}),n.d(e,"QuadraticBezierCurve",function(){return Gs}),n.d(e,"QuadraticBezierCurve3",function(){return $s}),n.d(e,"SplineCurve",function(){return Hs}),n.d(e,"REVISION",function(){return v}),n.d(e,"MOUSE",function(){return g}),n.d(e,"CullFaceNone",function(){return y}),n.d(e,"CullFaceBack",function(){return b}),n.d(e,"CullFaceFront",function(){return x}),n.d(e,"CullFaceFrontBack",function(){return _}),n.d(e,"FrontFaceDirectionCW",function(){return w}),n.d(e,"FrontFaceDirectionCCW",function(){return S}),n.d(e,"BasicShadowMap",function(){return T}),n.d(e,"PCFShadowMap",function(){return E}),n.d(e,"PCFSoftShadowMap",function(){return M}),n.d(e,"FrontSide",function(){return C}),n.d(e,"BackSide",function(){return L}),n.d(e,"DoubleSide",function(){return O}),n.d(e,"FlatShading",function(){return k}),n.d(e,"SmoothShading",function(){return P}),n.d(e,"NoColors",function(){return A}),n.d(e,"FaceColors",function(){return I}),n.d(e,"VertexColors",function(){return D}),n.d(e,"NoBlending",function(){return R}),n.d(e,"NormalBlending",function(){return B}),n.d(e,"AdditiveBlending",function(){return N}),n.d(e,"SubtractiveBlending",function(){return j}),n.d(e,"MultiplyBlending",function(){return z}),n.d(e,"CustomBlending",function(){return F}),n.d(e,"AddEquation",function(){return V}),n.d(e,"SubtractEquation",function(){return U}),n.d(e,"ReverseSubtractEquation",function(){return G}),n.d(e,"MinEquation",function(){return $}),n.d(e,"MaxEquation",function(){return H}),n.d(e,"ZeroFactor",function(){return W}),n.d(e,"OneFactor",function(){return q}),n.d(e,"SrcColorFactor",function(){return X}),n.d(e,"OneMinusSrcColorFactor",function(){return Y}),n.d(e,"SrcAlphaFactor",function(){return K}),n.d(e,"OneMinusSrcAlphaFactor",function(){return Z}),n.d(e,"DstAlphaFactor",function(){return J}),n.d(e,"OneMinusDstAlphaFactor",function(){return Q}),n.d(e,"DstColorFactor",function(){return tt}),n.d(e,"OneMinusDstColorFactor",function(){return et}),n.d(e,"SrcAlphaSaturateFactor",function(){return nt}),n.d(e,"NeverDepth",function(){return it}),n.d(e,"AlwaysDepth",function(){return rt}),n.d(e,"LessDepth",function(){return ot}),n.d(e,"LessEqualDepth",function(){return at}),n.d(e,"EqualDepth",function(){return st}),n.d(e,"GreaterEqualDepth",function(){return ct}),n.d(e,"GreaterDepth",function(){return lt}),n.d(e,"NotEqualDepth",function(){return ut}),n.d(e,"MultiplyOperation",function(){return ht}),n.d(e,"MixOperation",function(){return dt}),n.d(e,"AddOperation",function(){return ft}),n.d(e,"NoToneMapping",function(){return pt}),n.d(e,"LinearToneMapping",function(){return mt}),n.d(e,"ReinhardToneMapping",function(){return vt}),n.d(e,"Uncharted2ToneMapping",function(){return gt}),n.d(e,"CineonToneMapping",function(){return yt}),n.d(e,"ACESFilmicToneMapping",function(){return bt}),n.d(e,"UVMapping",function(){return xt}),n.d(e,"CubeReflectionMapping",function(){return _t}),n.d(e,"CubeRefractionMapping",function(){return wt}),n.d(e,"EquirectangularReflectionMapping",function(){return St}),n.d(e,"EquirectangularRefractionMapping",function(){return Tt}),n.d(e,"SphericalReflectionMapping",function(){return Et}),n.d(e,"CubeUVReflectionMapping",function(){return Mt}),n.d(e,"CubeUVRefractionMapping",function(){return Ct}),n.d(e,"RepeatWrapping",function(){return Lt}),n.d(e,"ClampToEdgeWrapping",function(){return Ot}),n.d(e,"MirroredRepeatWrapping",function(){return kt}),n.d(e,"NearestFilter",function(){return Pt}),n.d(e,"NearestMipMapNearestFilter",function(){return At}),n.d(e,"NearestMipMapLinearFilter",function(){return It}),n.d(e,"LinearFilter",function(){return Dt}),n.d(e,"LinearMipMapNearestFilter",function(){return Rt}),n.d(e,"LinearMipMapLinearFilter",function(){return Bt}),n.d(e,"UnsignedByteType",function(){return Nt}),n.d(e,"ByteType",function(){return jt}),n.d(e,"ShortType",function(){return zt}),n.d(e,"UnsignedShortType",function(){return Ft}),n.d(e,"IntType",function(){return Vt}),n.d(e,"UnsignedIntType",function(){return Ut}),n.d(e,"FloatType",function(){return Gt}),n.d(e,"HalfFloatType",function(){return $t}),n.d(e,"UnsignedShort4444Type",function(){return Ht}),n.d(e,"UnsignedShort5551Type",function(){return Wt}),n.d(e,"UnsignedShort565Type",function(){return qt}),n.d(e,"UnsignedInt248Type",function(){return Xt}),n.d(e,"AlphaFormat",function(){return Yt}),n.d(e,"RGBFormat",function(){return Kt}),n.d(e,"RGBAFormat",function(){return Zt}),n.d(e,"LuminanceFormat",function(){return Jt}),n.d(e,"LuminanceAlphaFormat",function(){return Qt}),n.d(e,"RGBEFormat",function(){return te}),n.d(e,"DepthFormat",function(){return ee}),n.d(e,"DepthStencilFormat",function(){return ne}),n.d(e,"RedFormat",function(){return ie}),n.d(e,"RGB_S3TC_DXT1_Format",function(){return re}),n.d(e,"RGBA_S3TC_DXT1_Format",function(){return oe}),n.d(e,"RGBA_S3TC_DXT3_Format",function(){return ae}),n.d(e,"RGBA_S3TC_DXT5_Format",function(){return se}),n.d(e,"RGB_PVRTC_4BPPV1_Format",function(){return ce}),n.d(e,"RGB_PVRTC_2BPPV1_Format",function(){return le}),n.d(e,"RGBA_PVRTC_4BPPV1_Format",function(){return ue}),n.d(e,"RGBA_PVRTC_2BPPV1_Format",function(){return he}),n.d(e,"RGB_ETC1_Format",function(){return de}),n.d(e,"RGBA_ASTC_4x4_Format",function(){return fe}),n.d(e,"RGBA_ASTC_5x4_Format",function(){return pe}),n.d(e,"RGBA_ASTC_5x5_Format",function(){return me}),n.d(e,"RGBA_ASTC_6x5_Format",function(){return ve}),n.d(e,"RGBA_ASTC_6x6_Format",function(){return ge}),n.d(e,"RGBA_ASTC_8x5_Format",function(){return ye}),n.d(e,"RGBA_ASTC_8x6_Format",function(){return be}),n.d(e,"RGBA_ASTC_8x8_Format",function(){return xe}),n.d(e,"RGBA_ASTC_10x5_Format",function(){return _e}),n.d(e,"RGBA_ASTC_10x6_Format",function(){return we}),n.d(e,"RGBA_ASTC_10x8_Format",function(){return Se}),n.d(e,"RGBA_ASTC_10x10_Format",function(){return Te}),n.d(e,"RGBA_ASTC_12x10_Format",function(){return Ee}),n.d(e,"RGBA_ASTC_12x12_Format",function(){return Me}),n.d(e,"LoopOnce",function(){return Ce}),n.d(e,"LoopRepeat",function(){return Le}),n.d(e,"LoopPingPong",function(){return Oe}),n.d(e,"InterpolateDiscrete",function(){return ke}),n.d(e,"InterpolateLinear",function(){return Pe}),n.d(e,"InterpolateSmooth",function(){return Ae}),n.d(e,"ZeroCurvatureEnding",function(){return Ie}),n.d(e,"ZeroSlopeEnding",function(){return De}),n.d(e,"WrapAroundEnding",function(){return Re}),n.d(e,"TrianglesDrawMode",function(){return Be}),n.d(e,"TriangleStripDrawMode",function(){return Ne}),n.d(e,"TriangleFanDrawMode",function(){return je}),n.d(e,"LinearEncoding",function(){return ze}),n.d(e,"sRGBEncoding",function(){return Fe}),n.d(e,"GammaEncoding",function(){return Ve}),n.d(e,"RGBEEncoding",function(){return Ue}),n.d(e,"LogLuvEncoding",function(){return Ge}),n.d(e,"RGBM7Encoding",function(){return $e}),n.d(e,"RGBM16Encoding",function(){return He}),n.d(e,"RGBDEncoding",function(){return We}),n.d(e,"BasicDepthPacking",function(){return qe}),n.d(e,"RGBADepthPacking",function(){return Xe}),n.d(e,"TangentSpaceNormalMap",function(){return Ye}),n.d(e,"ObjectSpaceNormalMap",function(){return Ke}),n.d(e,"Face4",function(){return Vl}),n.d(e,"LineStrip",function(){return Ul}),n.d(e,"LinePieces",function(){return Gl}),n.d(e,"MeshFaceMaterial",function(){return $l}),n.d(e,"MultiMaterial",function(){return Hl}),n.d(e,"PointCloud",function(){return Wl}),n.d(e,"Particle",function(){return ql}),n.d(e,"ParticleSystem",function(){return Xl}),n.d(e,"PointCloudMaterial",function(){return Yl}),n.d(e,"ParticleBasicMaterial",function(){return Kl}),n.d(e,"ParticleSystemMaterial",function(){return Zl}),n.d(e,"Vertex",function(){return Jl}),n.d(e,"DynamicBufferAttribute",function(){return Ql}),n.d(e,"Int8Attribute",function(){return tu}),n.d(e,"Uint8Attribute",function(){return eu}),n.d(e,"Uint8ClampedAttribute",function(){return nu}),n.d(e,"Int16Attribute",function(){return iu}),n.d(e,"Uint16Attribute",function(){return ru}),n.d(e,"Int32Attribute",function(){return ou}),n.d(e,"Uint32Attribute",function(){return au}),n.d(e,"Float32Attribute",function(){return su}),n.d(e,"Float64Attribute",function(){return cu}),n.d(e,"ClosedSplineCurve3",function(){return lu}),n.d(e,"SplineCurve3",function(){return uu}),n.d(e,"Spline",function(){return hu}),n.d(e,"AxisHelper",function(){return du}),n.d(e,"BoundingBoxHelper",function(){return fu}),n.d(e,"EdgesHelper",function(){return pu}),n.d(e,"WireframeHelper",function(){return mu}),n.d(e,"XHRLoader",function(){return vu}),n.d(e,"BinaryTextureLoader",function(){return gu}),n.d(e,"GeometryUtils",function(){return yu}),n.d(e,"Projector",function(){return bu}),n.d(e,"CanvasRenderer",function(){return xu}),n.d(e,"JSONLoader",function(){return _u}),n.d(e,"SceneUtils",function(){return wu}),n.d(e,"LensFlare",function(){return Su}),void 0===Number.EPSILON&&(Number.EPSILON=Math.pow(2,-52)),void 0===Number.isInteger&&(Number.isInteger=function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t}),void 0===Math.sign&&(Math.sign=function(t){return t<0?-1:t>0?1:+t}),"name"in Function.prototype==!1&&Object.defineProperty(Function.prototype,"name",{get:function(){return this.toString().match(/^\s*function\s*([^\(\s]*)/)[1]}}),void 0===Object.assign&&(Object.assign=function(t){if(void 0===t||null===t)throw new TypeError("Cannot convert undefined or null to object");for(var e=Object(t),n=1;n<arguments.length;n++){var i=arguments[n];if(void 0!==i&&null!==i)for(var r in i)Object.prototype.hasOwnProperty.call(i,r)&&(e[r]=i[r])}return e}),Object.assign(i.prototype,{addEventListener:function(t,e){void 0===this._listeners&&(this._listeners={});var n=this._listeners;void 0===n[t]&&(n[t]=[]),-1===n[t].indexOf(e)&&n[t].push(e)},hasEventListener:function(t,e){if(void 0===this._listeners)return!1;var n=this._listeners;return void 0!==n[t]&&-1!==n[t].indexOf(e)},removeEventListener:function(t,e){if(void 0!==this._listeners){var n=this._listeners[t];if(void 0!==n){var i=n.indexOf(e);-1!==i&&n.splice(i,1)}}},dispatchEvent:function(t){if(void 0!==this._listeners){var e=this._listeners[t.type];if(void 0!==e){t.target=this;for(var n=e.slice(0),i=0,r=n.length;i<r;i++)n[i].call(this,t)}}}});var r,o,a,s,c,l,u,h,d,f,p,m,v="102",g={LEFT:0,MIDDLE:1,RIGHT:2},y=0,b=1,x=2,_=3,w=0,S=1,T=0,E=1,M=2,C=0,L=1,O=2,k=1,P=2,A=0,I=1,D=2,R=0,B=1,N=2,j=3,z=4,F=5,V=100,U=101,G=102,$=103,H=104,W=200,q=201,X=202,Y=203,K=204,Z=205,J=206,Q=207,tt=208,et=209,nt=210,it=0,rt=1,ot=2,at=3,st=4,ct=5,lt=6,ut=7,ht=0,dt=1,ft=2,pt=0,mt=1,vt=2,gt=3,yt=4,bt=5,xt=300,_t=301,wt=302,St=303,Tt=304,Et=305,Mt=306,Ct=307,Lt=1e3,Ot=1001,kt=1002,Pt=1003,At=1004,It=1005,Dt=1006,Rt=1007,Bt=1008,Nt=1009,jt=1010,zt=1011,Ft=1012,Vt=1013,Ut=1014,Gt=1015,$t=1016,Ht=1017,Wt=1018,qt=1019,Xt=1020,Yt=1021,Kt=1022,Zt=1023,Jt=1024,Qt=1025,te=Zt,ee=1026,ne=1027,ie=1028,re=33776,oe=33777,ae=33778,se=33779,ce=35840,le=35841,ue=35842,he=35843,de=36196,fe=37808,pe=37809,me=37810,ve=37811,ge=37812,ye=37813,be=37814,xe=37815,_e=37816,we=37817,Se=37818,Te=37819,Ee=37820,Me=37821,Ce=2200,Le=2201,Oe=2202,ke=2300,Pe=2301,Ae=2302,Ie=2400,De=2401,Re=2402,Be=0,Ne=1,je=2,ze=3e3,Fe=3001,Ve=3007,Ue=3002,Ge=3003,$e=3004,He=3005,We=3006,qe=3200,Xe=3201,Ye=0,Ke=1,Ze={DEG2RAD:Math.PI/180,RAD2DEG:180/Math.PI,generateUUID:function(){for(var t=[],e=0;e<256;e++)t[e]=(e<16?"0":"")+e.toString(16);return function(){var e=4294967295*Math.random()|0,n=4294967295*Math.random()|0,i=4294967295*Math.random()|0,r=4294967295*Math.random()|0;return(t[255&e]+t[e>>8&255]+t[e>>16&255]+t[e>>24&255]+"-"+t[255&n]+t[n>>8&255]+"-"+t[n>>16&15|64]+t[n>>24&255]+"-"+t[63&i|128]+t[i>>8&255]+"-"+t[i>>16&255]+t[i>>24&255]+t[255&r]+t[r>>8&255]+t[r>>16&255]+t[r>>24&255]).toUpperCase()}}(),clamp:function(t,e,n){return Math.max(e,Math.min(n,t))},euclideanModulo:function(t,e){return(t%e+e)%e},mapLinear:function(t,e,n,i,r){return i+(t-e)*(r-i)/(n-e)},lerp:function(t,e,n){return(1-n)*t+n*e},smoothstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*(3-2*t)},smootherstep:function(t,e,n){return t<=e?0:t>=n?1:(t=(t-e)/(n-e))*t*t*(t*(6*t-15)+10)},randInt:function(t,e){return t+Math.floor(Math.random()*(e-t+1))},randFloat:function(t,e){return t+Math.random()*(e-t)},randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*Ze.DEG2RAD},radToDeg:function(t){return t*Ze.RAD2DEG},isPowerOfTwo:function(t){return 0==(t&t-1)&&0!==t},ceilPowerOfTwo:function(t){return Math.pow(2,Math.ceil(Math.log(t)/Math.LN2))},floorPowerOfTwo:function(t){return Math.pow(2,Math.floor(Math.log(t)/Math.LN2))}};function Je(t,e){this.x=t||0,this.y=e||0}function Qe(){this.elements=[1,0,0,0,0,1,0,0,0,0,1,0,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix4: the constructor no longer reads arguments. use .set() instead.")}function tn(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==i?i:1}function en(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}function nn(){this.elements=[1,0,0,0,1,0,0,0,1],arguments.length>0&&console.error("THREE.Matrix3: the constructor no longer reads arguments. use .set() instead.")}Object.defineProperties(Je.prototype,{width:{get:function(){return this.x},set:function(t){this.x=t}},height:{get:function(){return this.y},set:function(t){this.y=t}}}),Object.assign(Je.prototype,{isVector2:!0,set:function(t,e){return this.x=t,this.y=e,this},setScalar:function(t){return this.x=t,this.y=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y)},copy:function(t){return this.x=t.x,this.y=t.y,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this)},addScalar:function(t){return this.x+=t,this.y+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector2: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this)},subScalar:function(t){return this.x-=t,this.y-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this},multiply:function(t){return this.x*=t.x,this.y*=t.y,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this},divide:function(t){return this.x/=t.x,this.y/=t.y,this},divideScalar:function(t){return this.multiplyScalar(1/t)},applyMatrix3:function(t){var e=this.x,n=this.y,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6],this.y=i[1]*e+i[4]*n+i[7],this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this},clampScalar:(r=new Je,o=new Je,function(t,e){return r.set(t,t),o.set(e,e),this.clamp(r,o)}),clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},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=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this},negate:function(){return this.x=-this.x,this.y=-this.y,this},dot:function(t){return this.x*t.x+this.y*t.y},cross:function(t){return this.x*t.y-this.y*t.x},lengthSq:function(){return this.x*this.x+this.y*this.y},length:function(){return Math.sqrt(this.x*this.x+this.y*this.y)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)},normalize:function(){return this.divideScalar(this.length()||1)},angle:function(){var t=Math.atan2(this.y,this.x);return t<0&&(t+=2*Math.PI),t},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y;return e*e+n*n},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector2: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this},rotateAround:function(t,e){var n=Math.cos(e),i=Math.sin(e),r=this.x-t.x,o=this.y-t.y;return this.x=r*n-o*i+t.x,this.y=r*i+o*n+t.y,this}}),Object.assign(Qe.prototype,{isMatrix4:!0,set:function(t,e,n,i,r,o,a,s,c,l,u,h,d,f,p,m){var v=this.elements;return v[0]=t,v[4]=e,v[8]=n,v[12]=i,v[1]=r,v[5]=o,v[9]=a,v[13]=s,v[2]=c,v[6]=l,v[10]=u,v[14]=h,v[3]=d,v[7]=f,v[11]=p,v[15]=m,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 Qe).fromArray(this.elements)},copy:function(t){var e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],e[9]=n[9],e[10]=n[10],e[11]=n[11],e[12]=n[12],e[13]=n[13],e[14]=n[14],e[15]=n[15],this},copyPosition:function(t){var e=this.elements,n=t.elements;return e[12]=n[12],e[13]=n[13],e[14]=n[14],this},extractBasis:function(t,e,n){return t.setFromMatrixColumn(this,0),e.setFromMatrixColumn(this,1),n.setFromMatrixColumn(this,2),this},makeBasis:function(t,e,n){return this.set(t.x,e.x,n.x,0,t.y,e.y,n.y,0,t.z,e.z,n.z,0,0,0,0,1),this},extractRotation:(f=new en,function(t){var e=this.elements,n=t.elements,i=1/f.setFromMatrixColumn(t,0).length(),r=1/f.setFromMatrixColumn(t,1).length(),o=1/f.setFromMatrixColumn(t,2).length();return e[0]=n[0]*i,e[1]=n[1]*i,e[2]=n[2]*i,e[3]=0,e[4]=n[4]*r,e[5]=n[5]*r,e[6]=n[6]*r,e[7]=0,e[8]=n[8]*o,e[9]=n[9]*o,e[10]=n[10]*o,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this}),makeRotationFromEuler:function(t){t&&t.isEuler||console.error("THREE.Matrix4: .makeRotationFromEuler() now expects a Euler rotation rather than a Vector3 and order.");var e=this.elements,n=t.x,i=t.y,r=t.z,o=Math.cos(n),a=Math.sin(n),s=Math.cos(i),c=Math.sin(i),l=Math.cos(r),u=Math.sin(r);if("XYZ"===t.order){var h=o*l,d=o*u,f=a*l,p=a*u;e[0]=s*l,e[4]=-s*u,e[8]=c,e[1]=d+f*c,e[5]=h-p*c,e[9]=-a*s,e[2]=p-h*c,e[6]=f+d*c,e[10]=o*s}else if("YXZ"===t.order){var m=s*l,v=s*u,g=c*l,y=c*u;e[0]=m+y*a,e[4]=g*a-v,e[8]=o*c,e[1]=o*u,e[5]=o*l,e[9]=-a,e[2]=v*a-g,e[6]=y+m*a,e[10]=o*s}else if("ZXY"===t.order){m=s*l,v=s*u,g=c*l,y=c*u;e[0]=m-y*a,e[4]=-o*u,e[8]=g+v*a,e[1]=v+g*a,e[5]=o*l,e[9]=y-m*a,e[2]=-o*c,e[6]=a,e[10]=o*s}else if("ZYX"===t.order){h=o*l,d=o*u,f=a*l,p=a*u;e[0]=s*l,e[4]=f*c-d,e[8]=h*c+p,e[1]=s*u,e[5]=p*c+h,e[9]=d*c-f,e[2]=-c,e[6]=a*s,e[10]=o*s}else if("YZX"===t.order){var b=o*s,x=o*c,_=a*s,w=a*c;e[0]=s*l,e[4]=w-b*u,e[8]=_*u+x,e[1]=u,e[5]=o*l,e[9]=-a*l,e[2]=-c*l,e[6]=x*u+_,e[10]=b-w*u}else if("XZY"===t.order){b=o*s,x=o*c,_=a*s,w=a*c;e[0]=s*l,e[4]=-u,e[8]=c*l,e[1]=b*u+w,e[5]=o*l,e[9]=x*u-_,e[2]=_*u-x,e[6]=a*l,e[10]=w*u+b}return e[3]=0,e[7]=0,e[11]=0,e[12]=0,e[13]=0,e[14]=0,e[15]=1,this},makeRotationFromQuaternion:(h=new en(0,0,0),d=new en(1,1,1),function(t){return this.compose(h,t,d)}),lookAt:(c=new en,l=new en,u=new en,function(t,e,n){var i=this.elements;return u.subVectors(t,e),0===u.lengthSq()&&(u.z=1),u.normalize(),c.crossVectors(n,u),0===c.lengthSq()&&(1===Math.abs(n.z)?u.x+=1e-4:u.z+=1e-4,u.normalize(),c.crossVectors(n,u)),c.normalize(),l.crossVectors(u,c),i[0]=c.x,i[4]=l.x,i[8]=u.x,i[1]=c.y,i[5]=l.y,i[9]=u.y,i[2]=c.z,i[6]=l.z,i[10]=u.z,this}),multiply:function(t,e){return void 0!==e?(console.warn("THREE.Matrix4: .multiply() now only accepts one argument. Use .multiplyMatrices( a, b ) instead."),this.multiplyMatrices(t,e)):this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,i=e.elements,r=this.elements,o=n[0],a=n[4],s=n[8],c=n[12],l=n[1],u=n[5],h=n[9],d=n[13],f=n[2],p=n[6],m=n[10],v=n[14],g=n[3],y=n[7],b=n[11],x=n[15],_=i[0],w=i[4],S=i[8],T=i[12],E=i[1],M=i[5],C=i[9],L=i[13],O=i[2],k=i[6],P=i[10],A=i[14],I=i[3],D=i[7],R=i[11],B=i[15];return r[0]=o*_+a*E+s*O+c*I,r[4]=o*w+a*M+s*k+c*D,r[8]=o*S+a*C+s*P+c*R,r[12]=o*T+a*L+s*A+c*B,r[1]=l*_+u*E+h*O+d*I,r[5]=l*w+u*M+h*k+d*D,r[9]=l*S+u*C+h*P+d*R,r[13]=l*T+u*L+h*A+d*B,r[2]=f*_+p*E+m*O+v*I,r[6]=f*w+p*M+m*k+v*D,r[10]=f*S+p*C+m*P+v*R,r[14]=f*T+p*L+m*A+v*B,r[3]=g*_+y*E+b*O+x*I,r[7]=g*w+y*M+b*k+x*D,r[11]=g*S+y*C+b*P+x*R,r[15]=g*T+y*L+b*A+x*B,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[4]*=t,e[8]*=t,e[12]*=t,e[1]*=t,e[5]*=t,e[9]*=t,e[13]*=t,e[2]*=t,e[6]*=t,e[10]*=t,e[14]*=t,e[3]*=t,e[7]*=t,e[11]*=t,e[15]*=t,this},applyToBufferAttribute:function(){var t=new en;return function(e){for(var n=0,i=e.count;n<i;n++)t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.applyMatrix4(this),e.setXYZ(n,t.x,t.y,t.z);return e}}(),determinant:function(){var t=this.elements,e=t[0],n=t[4],i=t[8],r=t[12],o=t[1],a=t[5],s=t[9],c=t[13],l=t[2],u=t[6],h=t[10],d=t[14];return t[3]*(+r*s*u-i*c*u-r*a*h+n*c*h+i*a*d-n*s*d)+t[7]*(+e*s*d-e*c*h+r*o*h-i*o*d+i*c*l-r*s*l)+t[11]*(+e*c*u-e*a*d-r*o*u+n*o*d+r*a*l-n*c*l)+t[15]*(-i*a*l-e*s*u+e*a*h+i*o*u-n*o*h+n*s*l)},transpose:function(){var t,e=this.elements;return t=e[1],e[1]=e[4],e[4]=t,t=e[2],e[2]=e[8],e[8]=t,t=e[6],e[6]=e[9],e[9]=t,t=e[3],e[3]=e[12],e[12]=t,t=e[7],e[7]=e[13],e[13]=t,t=e[11],e[11]=e[14],e[14]=t,this},setPosition:function(t){var e=this.elements;return e[12]=t.x,e[13]=t.y,e[14]=t.z,this},getInverse:function(t,e){var n=this.elements,i=t.elements,r=i[0],o=i[1],a=i[2],s=i[3],c=i[4],l=i[5],u=i[6],h=i[7],d=i[8],f=i[9],p=i[10],m=i[11],v=i[12],g=i[13],y=i[14],b=i[15],x=f*y*h-g*p*h+g*u*m-l*y*m-f*u*b+l*p*b,_=v*p*h-d*y*h-v*u*m+c*y*m+d*u*b-c*p*b,w=d*g*h-v*f*h+v*l*m-c*g*m-d*l*b+c*f*b,S=v*f*u-d*g*u-v*l*p+c*g*p+d*l*y-c*f*y,T=r*x+o*_+a*w+s*S;if(0===T){var E="THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0";if(!0===e)throw new Error(E);return console.warn(E),this.identity()}var M=1/T;return n[0]=x*M,n[1]=(g*p*s-f*y*s-g*a*m+o*y*m+f*a*b-o*p*b)*M,n[2]=(l*y*s-g*u*s+g*a*h-o*y*h-l*a*b+o*u*b)*M,n[3]=(f*u*s-l*p*s-f*a*h+o*p*h+l*a*m-o*u*m)*M,n[4]=_*M,n[5]=(d*y*s-v*p*s+v*a*m-r*y*m-d*a*b+r*p*b)*M,n[6]=(v*u*s-c*y*s-v*a*h+r*y*h+c*a*b-r*u*b)*M,n[7]=(c*p*s-d*u*s+d*a*h-r*p*h-c*a*m+r*u*m)*M,n[8]=w*M,n[9]=(v*f*s-d*g*s-v*o*m+r*g*m+d*o*b-r*f*b)*M,n[10]=(c*g*s-v*l*s+v*o*h-r*g*h-c*o*b+r*l*b)*M,n[11]=(d*l*s-c*f*s-d*o*h+r*f*h+c*o*m-r*l*m)*M,n[12]=S*M,n[13]=(d*g*a-v*f*a+v*o*p-r*g*p-d*o*y+r*f*y)*M,n[14]=(v*l*a-c*g*a-v*o*u+r*g*u+c*o*y-r*l*y)*M,n[15]=(c*f*a-d*l*a+d*o*u-r*f*u-c*o*p+r*l*p)*M,this},scale:function(t){var e=this.elements,n=t.x,i=t.y,r=t.z;return e[0]*=n,e[4]*=i,e[8]*=r,e[1]*=n,e[5]*=i,e[9]*=r,e[2]*=n,e[6]*=i,e[10]*=r,e[3]*=n,e[7]*=i,e[11]*=r,this},getMaxScaleOnAxis:function(){var t=this.elements,e=t[0]*t[0]+t[1]*t[1]+t[2]*t[2],n=t[4]*t[4]+t[5]*t[5]+t[6]*t[6],i=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,i))},makeTranslation:function(t,e,n){return this.set(1,0,0,t,0,1,0,e,0,0,1,n,0,0,0,1),this},makeRotationX:function(t){var e=Math.cos(t),n=Math.sin(t);return this.set(1,0,0,0,0,e,-n,0,0,n,e,0,0,0,0,1),this},makeRotationY:function(t){var e=Math.cos(t),n=Math.sin(t);return this.set(e,0,n,0,0,1,0,0,-n,0,e,0,0,0,0,1),this},makeRotationZ:function(t){var e=Math.cos(t),n=Math.sin(t);return this.set(e,-n,0,0,n,e,0,0,0,0,1,0,0,0,0,1),this},makeRotationAxis:function(t,e){var n=Math.cos(e),i=Math.sin(e),r=1-n,o=t.x,a=t.y,s=t.z,c=r*o,l=r*a;return this.set(c*o+n,c*a-i*s,c*s+i*a,0,c*a+i*s,l*a+n,l*s-i*o,0,c*s-i*a,l*s+i*o,r*s*s+n,0,0,0,0,1),this},makeScale:function(t,e,n){return this.set(t,0,0,0,0,e,0,0,0,0,n,0,0,0,0,1),this},makeShear:function(t,e,n){return this.set(1,e,n,0,t,1,n,0,t,e,1,0,0,0,0,1),this},compose:function(t,e,n){var i=this.elements,r=e._x,o=e._y,a=e._z,s=e._w,c=r+r,l=o+o,u=a+a,h=r*c,d=r*l,f=r*u,p=o*l,m=o*u,v=a*u,g=s*c,y=s*l,b=s*u,x=n.x,_=n.y,w=n.z;return i[0]=(1-(p+v))*x,i[1]=(d+b)*x,i[2]=(f-y)*x,i[3]=0,i[4]=(d-b)*_,i[5]=(1-(h+v))*_,i[6]=(m+g)*_,i[7]=0,i[8]=(f+y)*w,i[9]=(m-g)*w,i[10]=(1-(h+p))*w,i[11]=0,i[12]=t.x,i[13]=t.y,i[14]=t.z,i[15]=1,this},decompose:(a=new en,s=new Qe,function(t,e,n){var i=this.elements,r=a.set(i[0],i[1],i[2]).length(),o=a.set(i[4],i[5],i[6]).length(),c=a.set(i[8],i[9],i[10]).length();this.determinant()<0&&(r=-r),t.x=i[12],t.y=i[13],t.z=i[14],s.copy(this);var l=1/r,u=1/o,h=1/c;return s.elements[0]*=l,s.elements[1]*=l,s.elements[2]*=l,s.elements[4]*=u,s.elements[5]*=u,s.elements[6]*=u,s.elements[8]*=h,s.elements[9]*=h,s.elements[10]*=h,e.setFromRotationMatrix(s),n.x=r,n.y=o,n.z=c,this}),makePerspective:function(t,e,n,i,r,o){void 0===o&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var a=this.elements,s=2*r/(e-t),c=2*r/(n-i),l=(e+t)/(e-t),u=(n+i)/(n-i),h=-(o+r)/(o-r),d=-2*o*r/(o-r);return a[0]=s,a[4]=0,a[8]=l,a[12]=0,a[1]=0,a[5]=c,a[9]=u,a[13]=0,a[2]=0,a[6]=0,a[10]=h,a[14]=d,a[3]=0,a[7]=0,a[11]=-1,a[15]=0,this},makeOrthographic:function(t,e,n,i,r,o){var a=this.elements,s=1/(e-t),c=1/(n-i),l=1/(o-r),u=(e+t)*s,h=(n+i)*c,d=(o+r)*l;return a[0]=2*s,a[4]=0,a[8]=0,a[12]=-u,a[1]=0,a[5]=2*c,a[9]=0,a[13]=-h,a[2]=0,a[6]=0,a[10]=-2*l,a[14]=-d,a[3]=0,a[7]=0,a[11]=0,a[15]=1,this},equals:function(t){for(var e=this.elements,n=t.elements,i=0;i<16;i++)if(e[i]!==n[i])return!1;return!0},fromArray:function(t,e){void 0===e&&(e=0);for(var n=0;n<16;n++)this.elements[n]=t[n+e];return this},toArray:function(t,e){void 0===t&&(t=[]),void 0===e&&(e=0);var n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t[e+9]=n[9],t[e+10]=n[10],t[e+11]=n[11],t[e+12]=n[12],t[e+13]=n[13],t[e+14]=n[14],t[e+15]=n[15],t}}),Object.assign(tn,{slerp:function(t,e,n,i){return n.copy(t).slerp(e,i)},slerpFlat:function(t,e,n,i,r,o,a){var s=n[i+0],c=n[i+1],l=n[i+2],u=n[i+3],h=r[o+0],d=r[o+1],f=r[o+2],p=r[o+3];if(u!==p||s!==h||c!==d||l!==f){var m=1-a,v=s*h+c*d+l*f+u*p,g=v>=0?1:-1,y=1-v*v;if(y>Number.EPSILON){var b=Math.sqrt(y),x=Math.atan2(b,v*g);m=Math.sin(m*x)/b,a=Math.sin(a*x)/b}var _=a*g;if(s=s*m+h*_,c=c*m+d*_,l=l*m+f*_,u=u*m+p*_,m===1-a){var w=1/Math.sqrt(s*s+c*c+l*l+u*u);s*=w,c*=w,l*=w,u*=w}}t[e]=s,t[e+1]=c,t[e+2]=l,t[e+3]=u}}),Object.defineProperties(tn.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},w:{get:function(){return this._w},set:function(t){this._w=t,this.onChangeCallback()}}}),Object.assign(tn.prototype,{isQuaternion:!0,set:function(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._w=i,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._w)},copy:function(t){return this._x=t.x,this._y=t.y,this._z=t.z,this._w=t.w,this.onChangeCallback(),this},setFromEuler:function(t,e){if(!t||!t.isEuler)throw new Error("THREE.Quaternion: .setFromEuler() now expects an Euler rotation rather than a Vector3 and order.");var n=t._x,i=t._y,r=t._z,o=t.order,a=Math.cos,s=Math.sin,c=a(n/2),l=a(i/2),u=a(r/2),h=s(n/2),d=s(i/2),f=s(r/2);return"XYZ"===o?(this._x=h*l*u+c*d*f,this._y=c*d*u-h*l*f,this._z=c*l*f+h*d*u,this._w=c*l*u-h*d*f):"YXZ"===o?(this._x=h*l*u+c*d*f,this._y=c*d*u-h*l*f,this._z=c*l*f-h*d*u,this._w=c*l*u+h*d*f):"ZXY"===o?(this._x=h*l*u-c*d*f,this._y=c*d*u+h*l*f,this._z=c*l*f+h*d*u,this._w=c*l*u-h*d*f):"ZYX"===o?(this._x=h*l*u-c*d*f,this._y=c*d*u+h*l*f,this._z=c*l*f-h*d*u,this._w=c*l*u+h*d*f):"YZX"===o?(this._x=h*l*u+c*d*f,this._y=c*d*u+h*l*f,this._z=c*l*f-h*d*u,this._w=c*l*u-h*d*f):"XZY"===o&&(this._x=h*l*u-c*d*f,this._y=c*d*u-h*l*f,this._z=c*l*f+h*d*u,this._w=c*l*u+h*d*f),!1!==e&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){var n=e/2,i=Math.sin(n);return this._x=t.x*i,this._y=t.y*i,this._z=t.z*i,this._w=Math.cos(n),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e,n=t.elements,i=n[0],r=n[4],o=n[8],a=n[1],s=n[5],c=n[9],l=n[2],u=n[6],h=n[10],d=i+s+h;return d>0?(e=.5/Math.sqrt(d+1),this._w=.25/e,this._x=(u-c)*e,this._y=(o-l)*e,this._z=(a-r)*e):i>s&&i>h?(e=2*Math.sqrt(1+i-s-h),this._w=(u-c)/e,this._x=.25*e,this._y=(r+a)/e,this._z=(o+l)/e):s>h?(e=2*Math.sqrt(1+s-i-h),this._w=(o-l)/e,this._x=(r+a)/e,this._y=.25*e,this._z=(c+u)/e):(e=2*Math.sqrt(1+h-i-s),this._w=(a-r)/e,this._x=(o+l)/e,this._y=(c+u)/e,this._z=.25*e),this.onChangeCallback(),this},setFromUnitVectors:function(){var t,e=new en;return function(n,i){return void 0===e&&(e=new en),(t=n.dot(i)+1)<1e-6?(t=0,Math.abs(n.x)>Math.abs(n.z)?e.set(-n.y,n.x,0):e.set(0,-n.z,n.y)):e.crossVectors(n,i),this._x=e.x,this._y=e.y,this._z=e.z,this._w=t,this.normalize()}}(),angleTo:function(t){return 2*Math.acos(Math.abs(Ze.clamp(this.dot(t),-1,1)))},rotateTowards:function(t,e){var n=this.angleTo(t);if(0===n)return this;var i=Math.min(1,e/n);return this.slerp(t,i),this},inverse:function(){return this.conjugate()},conjugate:function(){return this._x*=-1,this._y*=-1,this._z*=-1,this.onChangeCallback(),this},dot:function(t){return this._x*t._x+this._y*t._y+this._z*t._z+this._w*t._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 t=this.length();return 0===t?(this._x=0,this._y=0,this._z=0,this._w=1):(t=1/t,this._x=this._x*t,this._y=this._y*t,this._z=this._z*t,this._w=this._w*t),this.onChangeCallback(),this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Quaternion: .multiply() now only accepts one argument. Use .multiplyQuaternions( a, b ) instead."),this.multiplyQuaternions(t,e)):this.multiplyQuaternions(this,t)},premultiply:function(t){return this.multiplyQuaternions(t,this)},multiplyQuaternions:function(t,e){var n=t._x,i=t._y,r=t._z,o=t._w,a=e._x,s=e._y,c=e._z,l=e._w;return this._x=n*l+o*a+i*c-r*s,this._y=i*l+o*s+r*a-n*c,this._z=r*l+o*c+n*s-i*a,this._w=o*l-n*a-i*s-r*c,this.onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var n=this._x,i=this._y,r=this._z,o=this._w,a=o*t._w+n*t._x+i*t._y+r*t._z;if(a<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,a=-a):this.copy(t),a>=1)return this._w=o,this._x=n,this._y=i,this._z=r,this;var s=1-a*a;if(s<=Number.EPSILON){var c=1-e;return this._w=c*o+e*this._w,this._x=c*n+e*this._x,this._y=c*i+e*this._y,this._z=c*r+e*this._z,this.normalize()}var l=Math.sqrt(s),u=Math.atan2(l,a),h=Math.sin((1-e)*u)/l,d=Math.sin(e*u)/l;return this._w=o*h+this._w*d,this._x=n*h+this._x*d,this._y=i*h+this._y*d,this._z=r*h+this._z*d,this.onChangeCallback(),this},equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._w===this._w},fromArray:function(t,e){return void 0===e&&(e=0),this._x=t[e],this._y=t[e+1],this._z=t[e+2],this._w=t[e+3],this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._w,t},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(en.prototype,{isVector3:!0,set:function(t,e,n){return this.x=t,this.y=e,this.z=n,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this},multiply:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .multiply() now only accepts one argument. Use .multiplyVectors( a, b ) instead."),this.multiplyVectors(t,e)):(this.x*=t.x,this.y*=t.y,this.z*=t.z,this)},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this},multiplyVectors:function(t,e){return this.x=t.x*e.x,this.y=t.y*e.y,this.z=t.z*e.z,this},applyEuler:(p=new tn,function(t){return t&&t.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(p.setFromEuler(t))}),applyAxisAngle:function(){var t=new tn;return function(e,n){return this.applyQuaternion(t.setFromAxisAngle(e,n))}}(),applyMatrix3:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6]*i,this.y=r[1]*e+r[4]*n+r[7]*i,this.z=r[2]*e+r[5]*n+r[8]*i,this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements,o=1/(r[3]*e+r[7]*n+r[11]*i+r[15]);return this.x=(r[0]*e+r[4]*n+r[8]*i+r[12])*o,this.y=(r[1]*e+r[5]*n+r[9]*i+r[13])*o,this.z=(r[2]*e+r[6]*n+r[10]*i+r[14])*o,this},applyQuaternion:function(t){var e=this.x,n=this.y,i=this.z,r=t.x,o=t.y,a=t.z,s=t.w,c=s*e+o*i-a*n,l=s*n+a*e-r*i,u=s*i+r*n-o*e,h=-r*e-o*n-a*i;return this.x=c*s+h*-r+l*-a-u*-o,this.y=l*s+h*-o+u*-r-c*-a,this.z=u*s+h*-a+c*-o-l*-r,this},project:function(t){return this.applyMatrix4(t.matrixWorldInverse).applyMatrix4(t.projectionMatrix)},unproject:function(){var t=new Qe;return function(e){return this.applyMatrix4(t.getInverse(e.projectionMatrix)).applyMatrix4(e.matrixWorld)}}(),transformDirection:function(t){var e=this.x,n=this.y,i=this.z,r=t.elements;return this.x=r[0]*e+r[4]*n+r[8]*i,this.y=r[1]*e+r[5]*n+r[9]*i,this.z=r[2]*e+r[6]*n+r[10]*i,this.normalize()},divide:function(t){return this.x/=t.x,this.y/=t.y,this.z/=t.z,this},divideScalar:function(t){return this.multiplyScalar(1/t)},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this},clampScalar:function(){var t=new en,e=new en;return function(n,i){return t.set(n,n,n),e.set(i,i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},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=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?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(t){return this.x*t.x+this.y*t.y+this.z*t.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)},manhattanLength:function(){return Math.abs(this.x)+Math.abs(this.y)+Math.abs(this.z)},normalize:function(){return this.divideScalar(this.length()||1)},setLength:function(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},cross:function(t,e){return void 0!==e?(console.warn("THREE.Vector3: .cross() now only accepts one argument. Use .crossVectors( a, b ) instead."),this.crossVectors(t,e)):this.crossVectors(this,t)},crossVectors:function(t,e){var n=t.x,i=t.y,r=t.z,o=e.x,a=e.y,s=e.z;return this.x=i*s-r*a,this.y=r*o-n*s,this.z=n*a-i*o,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t=new en;return function(e){return t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t=new en;return function(e){return this.sub(t.copy(e).multiplyScalar(2*this.dot(e)))}}(),angleTo:function(t){var e=this.dot(t)/Math.sqrt(this.lengthSq()*t.lengthSq());return Math.acos(Ze.clamp(e,-1,1))},distanceTo:function(t){return Math.sqrt(this.distanceToSquared(t))},distanceToSquared:function(t){var e=this.x-t.x,n=this.y-t.y,i=this.z-t.z;return e*e+n*n+i*i},manhattanDistanceTo:function(t){return Math.abs(this.x-t.x)+Math.abs(this.y-t.y)+Math.abs(this.z-t.z)},setFromSpherical:function(t){return this.setFromSphericalCoords(t.radius,t.phi,t.theta)},setFromSphericalCoords:function(t,e,n){var i=Math.sin(e)*t;return this.x=i*Math.sin(n),this.y=Math.cos(e)*t,this.z=i*Math.cos(n),this},setFromCylindrical:function(t){return this.setFromCylindricalCoords(t.radius,t.theta,t.y)},setFromCylindricalCoords:function(t,e,n){return this.x=t*Math.sin(e),this.y=n,this.z=t*Math.cos(e),this},setFromMatrixPosition:function(t){var e=t.elements;return this.x=e[12],this.y=e[13],this.z=e[14],this},setFromMatrixScale:function(t){var e=this.setFromMatrixColumn(t,0).length(),n=this.setFromMatrixColumn(t,1).length(),i=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=i,this},setFromMatrixColumn:function(t,e){return this.fromArray(t.elements,4*e)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector3: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this}}),Object.assign(nn.prototype,{isMatrix3:!0,set:function(t,e,n,i,r,o,a,s,c){var l=this.elements;return l[0]=t,l[1]=i,l[2]=a,l[3]=e,l[4]=r,l[5]=s,l[6]=n,l[7]=o,l[8]=c,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(t){var e=this.elements,n=t.elements;return e[0]=n[0],e[1]=n[1],e[2]=n[2],e[3]=n[3],e[4]=n[4],e[5]=n[5],e[6]=n[6],e[7]=n[7],e[8]=n[8],this},setFromMatrix4:function(t){var e=t.elements;return this.set(e[0],e[4],e[8],e[1],e[5],e[9],e[2],e[6],e[10]),this},applyToBufferAttribute:function(){var t=new en;return function(e){for(var n=0,i=e.count;n<i;n++)t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.applyMatrix3(this),e.setXYZ(n,t.x,t.y,t.z);return e}}(),multiply:function(t){return this.multiplyMatrices(this,t)},premultiply:function(t){return this.multiplyMatrices(t,this)},multiplyMatrices:function(t,e){var n=t.elements,i=e.elements,r=this.elements,o=n[0],a=n[3],s=n[6],c=n[1],l=n[4],u=n[7],h=n[2],d=n[5],f=n[8],p=i[0],m=i[3],v=i[6],g=i[1],y=i[4],b=i[7],x=i[2],_=i[5],w=i[8];return r[0]=o*p+a*g+s*x,r[3]=o*m+a*y+s*_,r[6]=o*v+a*b+s*w,r[1]=c*p+l*g+u*x,r[4]=c*m+l*y+u*_,r[7]=c*v+l*b+u*w,r[2]=h*p+d*g+f*x,r[5]=h*m+d*y+f*_,r[8]=h*v+d*b+f*w,this},multiplyScalar:function(t){var e=this.elements;return e[0]*=t,e[3]*=t,e[6]*=t,e[1]*=t,e[4]*=t,e[7]*=t,e[2]*=t,e[5]*=t,e[8]*=t,this},determinant:function(){var t=this.elements,e=t[0],n=t[1],i=t[2],r=t[3],o=t[4],a=t[5],s=t[6],c=t[7],l=t[8];return e*o*l-e*a*c-n*r*l+n*a*s+i*r*c-i*o*s},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var n=t.elements,i=this.elements,r=n[0],o=n[1],a=n[2],s=n[3],c=n[4],l=n[5],u=n[6],h=n[7],d=n[8],f=d*c-l*h,p=l*u-d*s,m=h*s-c*u,v=r*f+o*p+a*m;if(0===v){var g="THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";if(!0===e)throw new Error(g);return console.warn(g),this.identity()}var y=1/v;return i[0]=f*y,i[1]=(a*h-d*o)*y,i[2]=(l*o-a*c)*y,i[3]=p*y,i[4]=(d*r-a*u)*y,i[5]=(a*s-l*r)*y,i[6]=m*y,i[7]=(o*u-h*r)*y,i[8]=(c*r-o*s)*y,this},transpose:function(){var t,e=this.elements;return t=e[1],e[1]=e[3],e[3]=t,t=e[2],e[2]=e[6],e[6]=t,t=e[5],e[5]=e[7],e[7]=t,this},getNormalMatrix:function(t){return this.setFromMatrix4(t).getInverse(this).transpose()},transposeIntoArray:function(t){var e=this.elements;return t[0]=e[0],t[1]=e[3],t[2]=e[6],t[3]=e[1],t[4]=e[4],t[5]=e[7],t[6]=e[2],t[7]=e[5],t[8]=e[8],this},setUvTransform:function(t,e,n,i,r,o,a){var s=Math.cos(r),c=Math.sin(r);this.set(n*s,n*c,-n*(s*o+c*a)+o+t,-i*c,i*s,-i*(-c*o+s*a)+a+e,0,0,1)},scale:function(t,e){var n=this.elements;return n[0]*=t,n[3]*=t,n[6]*=t,n[1]*=e,n[4]*=e,n[7]*=e,this},rotate:function(t){var e=Math.cos(t),n=Math.sin(t),i=this.elements,r=i[0],o=i[3],a=i[6],s=i[1],c=i[4],l=i[7];return i[0]=e*r+n*s,i[3]=e*o+n*c,i[6]=e*a+n*l,i[1]=-n*r+e*s,i[4]=-n*o+e*c,i[7]=-n*a+e*l,this},translate:function(t,e){var n=this.elements;return n[0]+=t*n[2],n[3]+=t*n[5],n[6]+=t*n[8],n[1]+=e*n[2],n[4]+=e*n[5],n[7]+=e*n[8],this},equals:function(t){for(var e=this.elements,n=t.elements,i=0;i<9;i++)if(e[i]!==n[i])return!1;return!0},fromArray:function(t,e){void 0===e&&(e=0);for(var n=0;n<9;n++)this.elements[n]=t[n+e];return this},toArray:function(t,e){void 0===t&&(t=[]),void 0===e&&(e=0);var n=this.elements;return t[e]=n[0],t[e+1]=n[1],t[e+2]=n[2],t[e+3]=n[3],t[e+4]=n[4],t[e+5]=n[5],t[e+6]=n[6],t[e+7]=n[7],t[e+8]=n[8],t}});var rn,on,an,sn,cn,ln={getDataURL:function(t){var e;if("undefined"==typeof HTMLCanvasElement)return t.src;if(t instanceof HTMLCanvasElement)e=t;else{void 0===m&&(m=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),m.width=t.width,m.height=t.height;var n=m.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height),e=m}return e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}},un=0;function hn(t,e,n,i,r,o,a,s,c,l){Object.defineProperty(this,"id",{value:un++}),this.uuid=Ze.generateUUID(),this.name="",this.image=void 0!==t?t:hn.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:hn.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:Ot,this.wrapT=void 0!==i?i:Ot,this.magFilter=void 0!==r?r:Dt,this.minFilter=void 0!==o?o:Bt,this.anisotropy=void 0!==c?c:1,this.format=void 0!==a?a:Zt,this.type=void 0!==s?s:Nt,this.offset=new Je(0,0),this.repeat=new Je(1,1),this.center=new Je(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new nn,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==l?l:ze,this.version=0,this.onUpdate=null}function dn(t,e,n,i){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==i?i:1}function fn(t,e,n){this.width=t,this.height=e,this.scissor=new dn(0,0,t,e),this.scissorTest=!1,this.viewport=new dn(0,0,t,e),n=n||{},this.texture=new hn(void 0,void 0,n.wrapS,n.wrapT,n.magFilter,n.minFilter,n.format,n.type,n.anisotropy,n.encoding),this.texture.generateMipmaps=void 0!==n.generateMipmaps&&n.generateMipmaps,this.texture.minFilter=void 0!==n.minFilter?n.minFilter:Dt,this.depthBuffer=void 0===n.depthBuffer||n.depthBuffer,this.stencilBuffer=void 0===n.stencilBuffer||n.stencilBuffer,this.depthTexture=void 0!==n.depthTexture?n.depthTexture:null}function pn(t,e,n){fn.call(this,t,e,n),this.samples=4}function mn(t,e,n){fn.call(this,t,e,n)}function vn(t,e,n,i,r,o,a,s,c,l,u,h){hn.call(this,null,o,a,s,c,l,i,r,u,h),this.image={data:t,width:e,height:n},this.magFilter=void 0!==c?c:Pt,this.minFilter=void 0!==l?l:Pt,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}function gn(t,e){this.min=void 0!==t?t:new en(1/0,1/0,1/0),this.max=void 0!==e?e:new en(-1/0,-1/0,-1/0)}function yn(t,e){this.center=void 0!==t?t:new en,this.radius=void 0!==e?e:0}function bn(t,e){this.normal=void 0!==t?t:new en(1,0,0),this.constant=void 0!==e?e:0}function xn(t,e,n,i,r,o){this.planes=[void 0!==t?t:new bn,void 0!==e?e:new bn,void 0!==n?n:new bn,void 0!==i?i:new bn,void 0!==r?r:new bn,void 0!==o?o:new bn]}hn.DEFAULT_IMAGE=void 0,hn.DEFAULT_MAPPING=xt,hn.prototype=Object.assign(Object.create(i.prototype),{constructor:hn,isTexture:!0,updateMatrix:function(){this.matrix.setUvTransform(this.offset.x,this.offset.y,this.repeat.x,this.repeat.y,this.rotation,this.center.x,this.center.y)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.name=t.name,this.image=t.image,this.mipmaps=t.mipmaps.slice(0),this.mapping=t.mapping,this.wrapS=t.wrapS,this.wrapT=t.wrapT,this.magFilter=t.magFilter,this.minFilter=t.minFilter,this.anisotropy=t.anisotropy,this.format=t.format,this.type=t.type,this.offset.copy(t.offset),this.repeat.copy(t.repeat),this.center.copy(t.center),this.rotation=t.rotation,this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrix.copy(t.matrix),this.generateMipmaps=t.generateMipmaps,this.premultiplyAlpha=t.premultiplyAlpha,this.flipY=t.flipY,this.unpackAlignment=t.unpackAlignment,this.encoding=t.encoding,this},toJSON:function(t){var e=void 0===t||"string"==typeof t;if(!e&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];var n={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],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,type:this.type,encoding:this.encoding,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY,premultiplyAlpha:this.premultiplyAlpha,unpackAlignment:this.unpackAlignment};if(void 0!==this.image){var i=this.image;if(void 0===i.uuid&&(i.uuid=Ze.generateUUID()),!e&&void 0===t.images[i.uuid]){var r;if(Array.isArray(i)){r=[];for(var o=0,a=i.length;o<a;o++)r.push(ln.getDataURL(i[o]))}else r=ln.getDataURL(i);t.images[i.uuid]={uuid:i.uuid,url:r}}n.image=i.uuid}return e||(t.textures[this.uuid]=n),n},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping!==xt)return t;if(t.applyMatrix3(this.matrix),t.x<0||t.x>1)switch(this.wrapS){case Lt:t.x=t.x-Math.floor(t.x);break;case Ot:t.x=t.x<0?0:1;break;case kt:1===Math.abs(Math.floor(t.x)%2)?t.x=Math.ceil(t.x)-t.x:t.x=t.x-Math.floor(t.x)}if(t.y<0||t.y>1)switch(this.wrapT){case Lt:t.y=t.y-Math.floor(t.y);break;case Ot:t.y=t.y<0?0:1;break;case kt:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}return this.flipY&&(t.y=1-t.y),t}}),Object.defineProperty(hn.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(dn.prototype,{isVector4:!0,set:function(t,e,n,i){return this.x=t,this.y=e,this.z=n,this.w=i,this},setScalar:function(t){return this.x=t,this.y=t,this.z=t,this.w=t,this},setX:function(t){return this.x=t,this},setY:function(t){return this.y=t,this},setZ:function(t){return this.z=t,this},setW:function(t){return this.w=t,this},setComponent:function(t,e){switch(t){case 0:this.x=e;break;case 1:this.y=e;break;case 2:this.z=e;break;case 3:this.w=e;break;default:throw new Error("index is out of range: "+t)}return this},getComponent:function(t){switch(t){case 0:return this.x;case 1:return this.y;case 2:return this.z;case 3:return this.w;default:throw new Error("index is out of range: "+t)}},clone:function(){return new this.constructor(this.x,this.y,this.z,this.w)},copy:function(t){return this.x=t.x,this.y=t.y,this.z=t.z,this.w=void 0!==t.w?t.w:1,this},add:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .add() now only accepts one argument. Use .addVectors( a, b ) instead."),this.addVectors(t,e)):(this.x+=t.x,this.y+=t.y,this.z+=t.z,this.w+=t.w,this)},addScalar:function(t){return this.x+=t,this.y+=t,this.z+=t,this.w+=t,this},addVectors:function(t,e){return this.x=t.x+e.x,this.y=t.y+e.y,this.z=t.z+e.z,this.w=t.w+e.w,this},addScaledVector:function(t,e){return this.x+=t.x*e,this.y+=t.y*e,this.z+=t.z*e,this.w+=t.w*e,this},sub:function(t,e){return void 0!==e?(console.warn("THREE.Vector4: .sub() now only accepts one argument. Use .subVectors( a, b ) instead."),this.subVectors(t,e)):(this.x-=t.x,this.y-=t.y,this.z-=t.z,this.w-=t.w,this)},subScalar:function(t){return this.x-=t,this.y-=t,this.z-=t,this.w-=t,this},subVectors:function(t,e){return this.x=t.x-e.x,this.y=t.y-e.y,this.z=t.z-e.z,this.w=t.w-e.w,this},multiplyScalar:function(t){return this.x*=t,this.y*=t,this.z*=t,this.w*=t,this},applyMatrix4:function(t){var e=this.x,n=this.y,i=this.z,r=this.w,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*i+o[12]*r,this.y=o[1]*e+o[5]*n+o[9]*i+o[13]*r,this.z=o[2]*e+o[6]*n+o[10]*i+o[14]*r,this.w=o[3]*e+o[7]*n+o[11]*i+o[15]*r,this},divideScalar:function(t){return this.multiplyScalar(1/t)},setAxisAngleFromQuaternion:function(t){this.w=2*Math.acos(t.w);var e=Math.sqrt(1-t.w*t.w);return e<1e-4?(this.x=1,this.y=0,this.z=0):(this.x=t.x/e,this.y=t.y/e,this.z=t.z/e),this},setAxisAngleFromRotationMatrix:function(t){var e,n,i,r,o=t.elements,a=o[0],s=o[4],c=o[8],l=o[1],u=o[5],h=o[9],d=o[2],f=o[6],p=o[10];if(Math.abs(s-l)<.01&&Math.abs(c-d)<.01&&Math.abs(h-f)<.01){if(Math.abs(s+l)<.1&&Math.abs(c+d)<.1&&Math.abs(h+f)<.1&&Math.abs(a+u+p-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;var m=(a+1)/2,v=(u+1)/2,g=(p+1)/2,y=(s+l)/4,b=(c+d)/4,x=(h+f)/4;return m>v&&m>g?m<.01?(n=0,i=.707106781,r=.707106781):(i=y/(n=Math.sqrt(m)),r=b/n):v>g?v<.01?(n=.707106781,i=0,r=.707106781):(n=y/(i=Math.sqrt(v)),r=x/i):g<.01?(n=.707106781,i=.707106781,r=0):(n=b/(r=Math.sqrt(g)),i=x/r),this.set(n,i,r,e),this}var _=Math.sqrt((f-h)*(f-h)+(c-d)*(c-d)+(l-s)*(l-s));return Math.abs(_)<.001&&(_=1),this.x=(f-h)/_,this.y=(c-d)/_,this.z=(l-s)/_,this.w=Math.acos((a+u+p-1)/2),this},min:function(t){return this.x=Math.min(this.x,t.x),this.y=Math.min(this.y,t.y),this.z=Math.min(this.z,t.z),this.w=Math.min(this.w,t.w),this},max:function(t){return this.x=Math.max(this.x,t.x),this.y=Math.max(this.y,t.y),this.z=Math.max(this.z,t.z),this.w=Math.max(this.w,t.w),this},clamp:function(t,e){return this.x=Math.max(t.x,Math.min(e.x,this.x)),this.y=Math.max(t.y,Math.min(e.y,this.y)),this.z=Math.max(t.z,Math.min(e.z,this.z)),this.w=Math.max(t.w,Math.min(e.w,this.w)),this},clampScalar:function(){var t,e;return function(n,i){return void 0===t&&(t=new dn,e=new dn),t.set(n,n,n,n),e.set(i,i,i,i),this.clamp(t,e)}}(),clampLength:function(t,e){var n=this.length();return this.divideScalar(n||1).multiplyScalar(Math.max(t,Math.min(e,n)))},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=this.x<0?Math.ceil(this.x):Math.floor(this.x),this.y=this.y<0?Math.ceil(this.y):Math.floor(this.y),this.z=this.z<0?Math.ceil(this.z):Math.floor(this.z),this.w=this.w<0?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(t){return this.x*t.x+this.y*t.y+this.z*t.z+this.w*t.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)},manhattanLength: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(t){return this.normalize().multiplyScalar(t)},lerp:function(t,e){return this.x+=(t.x-this.x)*e,this.y+=(t.y-this.y)*e,this.z+=(t.z-this.z)*e,this.w+=(t.w-this.w)*e,this},lerpVectors:function(t,e,n){return this.subVectors(e,t).multiplyScalar(n).add(t)},equals:function(t){return t.x===this.x&&t.y===this.y&&t.z===this.z&&t.w===this.w},fromArray:function(t,e){return void 0===e&&(e=0),this.x=t[e],this.y=t[e+1],this.z=t[e+2],this.w=t[e+3],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.x,t[e+1]=this.y,t[e+2]=this.z,t[e+3]=this.w,t},fromBufferAttribute:function(t,e,n){return void 0!==n&&console.warn("THREE.Vector4: offset has been removed from .fromBufferAttribute()."),this.x=t.getX(e),this.y=t.getY(e),this.z=t.getZ(e),this.w=t.getW(e),this}}),fn.prototype=Object.assign(Object.create(i.prototype),{constructor:fn,isWebGLRenderTarget:!0,setSize:function(t,e){this.width===t&&this.height===e||(this.width=t,this.height=e,this.dispose()),this.viewport.set(0,0,t,e),this.scissor.set(0,0,t,e)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.width=t.width,this.height=t.height,this.viewport.copy(t.viewport),this.texture=t.texture.clone(),this.depthBuffer=t.depthBuffer,this.stencilBuffer=t.stencilBuffer,this.depthTexture=t.depthTexture,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),pn.prototype=Object.assign(Object.create(fn.prototype),{constructor:pn,isWebGLMultisampleRenderTarget:!0,copy:function(t){return fn.prototype.copy.call(this,t),this.samples=t.samples,this}}),mn.prototype=Object.create(fn.prototype),mn.prototype.constructor=mn,mn.prototype.isWebGLRenderTargetCube=!0,vn.prototype=Object.create(hn.prototype),vn.prototype.constructor=vn,vn.prototype.isDataTexture=!0,Object.assign(gn.prototype,{isBox3:!0,set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromArray:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,o=-1/0,a=-1/0,s=0,c=t.length;s<c;s+=3){var l=t[s],u=t[s+1],h=t[s+2];l<e&&(e=l),u<n&&(n=u),h<i&&(i=h),l>r&&(r=l),u>o&&(o=u),h>a&&(a=h)}return this.min.set(e,n,i),this.max.set(r,o,a),this},setFromBufferAttribute:function(t){for(var e=1/0,n=1/0,i=1/0,r=-1/0,o=-1/0,a=-1/0,s=0,c=t.count;s<c;s++){var l=t.getX(s),u=t.getY(s),h=t.getZ(s);l<e&&(e=l),u<n&&(n=u),h<i&&(i=h),l>r&&(r=l),u>o&&(o=u),h>a&&(a=h)}return this.min.set(e,n,i),this.max.set(r,o,a),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new en;return function(e,n){var i=t.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),setFromObject:function(t){return this.makeEmpty(),this.expandByObject(t)},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=this.min.z=1/0,this.max.x=this.max.y=this.max.z=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y||this.max.z<this.min.z},getCenter:function(t){return void 0===t&&(console.warn("THREE.Box3: .getCenter() target is now required"),t=new en),this.isEmpty()?t.set(0,0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return void 0===t&&(console.warn("THREE.Box3: .getSize() target is now required"),t=new en),this.isEmpty()?t.set(0,0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},expandByObject:function(){var t,e,n,i=new en;function r(r){var o=r.geometry;if(void 0!==o)if(o.isGeometry){var a=o.vertices;for(e=0,n=a.length;e<n;e++)i.copy(a[e]),i.applyMatrix4(r.matrixWorld),t.expandByPoint(i)}else if(o.isBufferGeometry){var s=o.attributes.position;if(void 0!==s)for(e=0,n=s.count;e<n;e++)i.fromBufferAttribute(s,e).applyMatrix4(r.matrixWorld),t.expandByPoint(i)}}return function(e){return t=this,e.updateMatrixWorld(!0),e.traverse(r),this}}(),containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y||t.z<this.min.z||t.z>this.max.z)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y&&this.min.z<=t.min.z&&t.max.z<=this.max.z},getParameter:function(t,e){return void 0===e&&(console.warn("THREE.Box3: .getParameter() target is now required"),e=new en),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y),(t.z-this.min.z)/(this.max.z-this.min.z))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y||t.max.z<this.min.z||t.min.z>this.max.z)},intersectsSphere:(on=new en,function(t){return this.clampPoint(t.center,on),on.distanceToSquared(t.center)<=t.radius*t.radius}),intersectsPlane:function(t){var e,n;return t.normal.x>0?(e=t.normal.x*this.min.x,n=t.normal.x*this.max.x):(e=t.normal.x*this.max.x,n=t.normal.x*this.min.x),t.normal.y>0?(e+=t.normal.y*this.min.y,n+=t.normal.y*this.max.y):(e+=t.normal.y*this.max.y,n+=t.normal.y*this.min.y),t.normal.z>0?(e+=t.normal.z*this.min.z,n+=t.normal.z*this.max.z):(e+=t.normal.z*this.max.z,n+=t.normal.z*this.min.z),e<=-t.constant&&n>=-t.constant},intersectsTriangle:function(){var t=new en,e=new en,n=new en,i=new en,r=new en,o=new en,a=new en,s=new en,c=new en,l=new en;function u(i){var r,o;for(r=0,o=i.length-3;r<=o;r+=3){a.fromArray(i,r);var s=c.x*Math.abs(a.x)+c.y*Math.abs(a.y)+c.z*Math.abs(a.z),l=t.dot(a),u=e.dot(a),h=n.dot(a);if(Math.max(-Math.max(l,u,h),Math.min(l,u,h))>s)return!1}return!0}return function(a){if(this.isEmpty())return!1;this.getCenter(s),c.subVectors(this.max,s),t.subVectors(a.a,s),e.subVectors(a.b,s),n.subVectors(a.c,s),i.subVectors(e,t),r.subVectors(n,e),o.subVectors(t,n);var h=[0,-i.z,i.y,0,-r.z,r.y,0,-o.z,o.y,i.z,0,-i.x,r.z,0,-r.x,o.z,0,-o.x,-i.y,i.x,0,-r.y,r.x,0,-o.y,o.x,0];return!!u(h)&&(!!u(h=[1,0,0,0,1,0,0,0,1])&&(l.crossVectors(i,r),u(h=[l.x,l.y,l.z])))}}(),clampPoint:function(t,e){return void 0===e&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new en),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new en;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new en;return function(e){return void 0===e&&(console.warn("THREE.Box3: .getBoundingSphere() target is now required"),e=new yn),this.getCenter(e.center),e.radius=.5*this.getSize(t).length(),e}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this.isEmpty()&&this.makeEmpty(),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},applyMatrix4:(rn=[new en,new en,new en,new en,new en,new en,new en,new en],function(t){return this.isEmpty()?this:(rn[0].set(this.min.x,this.min.y,this.min.z).applyMatrix4(t),rn[1].set(this.min.x,this.min.y,this.max.z).applyMatrix4(t),rn[2].set(this.min.x,this.max.y,this.min.z).applyMatrix4(t),rn[3].set(this.min.x,this.max.y,this.max.z).applyMatrix4(t),rn[4].set(this.max.x,this.min.y,this.min.z).applyMatrix4(t),rn[5].set(this.max.x,this.min.y,this.max.z).applyMatrix4(t),rn[6].set(this.max.x,this.max.y,this.min.z).applyMatrix4(t),rn[7].set(this.max.x,this.max.y,this.max.z).applyMatrix4(t),this.setFromPoints(rn),this)}),translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(yn.prototype,{set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:(an=new gn,function(t,e){var n=this.center;void 0!==e?n.copy(e):an.setFromPoints(t).getCenter(n);for(var i=0,r=0,o=t.length;r<o;r++)i=Math.max(i,n.distanceToSquared(t[r]));return this.radius=Math.sqrt(i),this}),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.center.copy(t.center),this.radius=t.radius,this},empty:function(){return this.radius<=0},containsPoint:function(t){return t.distanceToSquared(this.center)<=this.radius*this.radius},distanceToPoint:function(t){return t.distanceTo(this.center)-this.radius},intersectsSphere:function(t){var e=this.radius+t.radius;return t.center.distanceToSquared(this.center)<=e*e},intersectsBox:function(t){return t.intersectsSphere(this)},intersectsPlane:function(t){return Math.abs(t.distanceToPoint(this.center))<=this.radius},clampPoint:function(t,e){var n=this.center.distanceToSquared(t);return void 0===e&&(console.warn("THREE.Sphere: .clampPoint() target is now required"),e=new en),e.copy(t),n>this.radius*this.radius&&(e.sub(this.center).normalize(),e.multiplyScalar(this.radius).add(this.center)),e},getBoundingBox:function(t){return void 0===t&&(console.warn("THREE.Sphere: .getBoundingBox() target is now required"),t=new gn),t.set(this.center,this.center),t.expandByScalar(this.radius),t},applyMatrix4:function(t){return this.center.applyMatrix4(t),this.radius=this.radius*t.getMaxScaleOnAxis(),this},translate:function(t){return this.center.add(t),this},equals:function(t){return t.center.equals(this.center)&&t.radius===this.radius}}),Object.assign(bn.prototype,{set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,n,i){return this.normal.set(t,e,n),this.constant=i,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:function(){var t=new en,e=new en;return function(n,i,r){var o=t.subVectors(r,i).cross(e.subVectors(n,i)).normalize();return this.setFromNormalAndCoplanarPoint(o,n),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.normal.copy(t.normal),this.constant=t.constant,this},normalize:function(){var t=1/this.normal.length();return this.normal.multiplyScalar(t),this.constant*=t,this},negate:function(){return this.constant*=-1,this.normal.negate(),this},distanceToPoint:function(t){return this.normal.dot(t)+this.constant},distanceToSphere:function(t){return this.distanceToPoint(t.center)-t.radius},projectPoint:function(t,e){return void 0===e&&(console.warn("THREE.Plane: .projectPoint() target is now required"),e=new en),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)},intersectLine:function(){var t=new en;return function(e,n){void 0===n&&(console.warn("THREE.Plane: .intersectLine() target is now required"),n=new en);var i=e.delta(t),r=this.normal.dot(i);if(0===r)return 0===this.distanceToPoint(e.start)?n.copy(e.start):void 0;var o=-(e.start.dot(this.normal)+this.constant)/r;return o<0||o>1?void 0:n.copy(i).multiplyScalar(o).add(e.start)}}(),intersectsLine:function(t){var e=this.distanceToPoint(t.start),n=this.distanceToPoint(t.end);return e<0&&n>0||n<0&&e>0},intersectsBox:function(t){return t.intersectsPlane(this)},intersectsSphere:function(t){return t.intersectsPlane(this)},coplanarPoint:function(t){return void 0===t&&(console.warn("THREE.Plane: .coplanarPoint() target is now required"),t=new en),t.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new en,e=new nn;return function(n,i){var r=i||e.getNormalMatrix(n),o=this.coplanarPoint(t).applyMatrix4(n),a=this.normal.applyMatrix3(r).normalize();return this.constant=-o.dot(a),this}}(),translate:function(t){return this.constant-=t.dot(this.normal),this},equals:function(t){return t.normal.equals(this.normal)&&t.constant===this.constant}}),Object.assign(xn.prototype,{set:function(t,e,n,i,r,o){var a=this.planes;return a[0].copy(t),a[1].copy(e),a[2].copy(n),a[3].copy(i),a[4].copy(r),a[5].copy(o),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){for(var e=this.planes,n=0;n<6;n++)e[n].copy(t.planes[n]);return this},setFromMatrix:function(t){var e=this.planes,n=t.elements,i=n[0],r=n[1],o=n[2],a=n[3],s=n[4],c=n[5],l=n[6],u=n[7],h=n[8],d=n[9],f=n[10],p=n[11],m=n[12],v=n[13],g=n[14],y=n[15];return e[0].setComponents(a-i,u-s,p-h,y-m).normalize(),e[1].setComponents(a+i,u+s,p+h,y+m).normalize(),e[2].setComponents(a+r,u+c,p+d,y+v).normalize(),e[3].setComponents(a-r,u-c,p-d,y-v).normalize(),e[4].setComponents(a-o,u-l,p-f,y-g).normalize(),e[5].setComponents(a+o,u+l,p+f,y+g).normalize(),this},intersectsObject:(cn=new yn,function(t){var e=t.geometry;return null===e.boundingSphere&&e.computeBoundingSphere(),cn.copy(e.boundingSphere).applyMatrix4(t.matrixWorld),this.intersectsSphere(cn)}),intersectsSprite:function(){var t=new yn;return function(e){return t.center.set(0,0,0),t.radius=.7071067811865476,t.applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSphere:function(t){for(var e=this.planes,n=t.center,i=-t.radius,r=0;r<6;r++){if(e[r].distanceToPoint(n)<i)return!1}return!0},intersectsBox:(sn=new en,function(t){for(var e=this.planes,n=0;n<6;n++){var i=e[n];if(sn.x=i.normal.x>0?t.max.x:t.min.x,sn.y=i.normal.y>0?t.max.y:t.min.y,sn.z=i.normal.z>0?t.max.z:t.min.z,i.distanceToPoint(sn)<0)return!1}return!0}),containsPoint:function(t){for(var e=this.planes,n=0;n<6;n++)if(e[n].distanceToPoint(t)<0)return!1;return!0}});var _n={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif",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",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"vec3 transformed = vec3( position );",beginnormal_vertex:"vec3 objectNormal = vec3( normal );\n#ifdef USE_TANGENT\n\tvec3 objectTangent = vec3( tangent.xyz );\n#endif",bsdfs:"vec2 integrateSpecularBRDF( const in float dotNV, const in float roughness ) {\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\treturn vec2( -1.04, 1.04 ) * a004 + r.zw;\n}\nfloat punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\tif( cutoffDistance > 0.0 ) {\n\t\tdistanceFalloff *= pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t}\n\treturn distanceFalloff;\n#else\n\tif( cutoffDistance > 0.0 && decayExponent > 0.0 ) {\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n\t}\n\treturn 1.0;\n#endif\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 dotNV = saturate( dot( N, V ) );\n\tvec2 uv = vec2( roughness, sqrt( 1.0 - dotNV ) );\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.8543985 + ( 0.4965155 + 0.0145206 * y ) * y;\n\tfloat b = 3.4175940 + ( 4.1616724 + y ) * y;\n\tfloat v = a / b;\n\tfloat theta_sintheta = ( x > 0.0 ) ? v : 0.5 * inversesqrt( max( 1.0 - x * x, 1e-7 ) ) - 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 * transposeMat3( 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\tfloat result = LTC_ClippedSphereFormFactor( vectorFormFactor );\n\treturn vec3( 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\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\treturn specularColor * brdf.x + brdf.y;\n}\nvoid BRDF_Specular_Multiscattering_Environment( const in GeometricContext geometry, const in vec3 specularColor, const in float roughness, inout vec3 singleScatter, inout vec3 multiScatter ) {\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tvec3 F = F_Schlick( specularColor, dotNV );\n\tvec2 brdf = integrateSpecularBRDF( dotNV, roughness );\n\tvec3 FssEss = F * brdf.x + brdf.y;\n\tfloat Ess = brdf.x + brdf.y;\n\tfloat Ems = 1.0 - Ess;\n\tvec3 Favg = specularColor + ( 1.0 - specularColor ) * 0.047619;\tvec3 Fms = FssEss * Favg / ( 1.0 - Ems * Favg );\n\tsingleScatter += FssEss;\n\tmultiScatter += Fms * Ems;\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}",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\tfDet *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\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",clipping_planes_fragment:"#if NUM_CLIPPING_PLANES > 0\n\tvec4 plane;\n\t#pragma unroll_loop\n\tfor ( int i = 0; i < UNION_CLIPPING_PLANES; i ++ ) {\n\t\tplane = clippingPlanes[ i ];\n\t\tif ( dot( vViewPosition, plane.xyz ) > plane.w ) discard;\n\t}\n\t#if UNION_CLIPPING_PLANES < NUM_CLIPPING_PLANES\n\t\tbool clipped = true;\n\t\t#pragma unroll_loop\n\t\tfor ( int i = UNION_CLIPPING_PLANES; i < NUM_CLIPPING_PLANES; i ++ ) {\n\t\t\tplane = clippingPlanes[ i ];\n\t\t\tclipped = ( dot( vViewPosition, plane.xyz ) > plane.w ) && clipped;\n\t\t}\n\t\tif ( clipped ) discard;\n\t#endif\n#endif",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\t#if ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP )\n\t\tvarying vec3 vViewPosition;\n\t#endif\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP )\n\tvarying vec3 vViewPosition;\n#endif",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG ) && ! defined( MATCAP )\n\tvViewPosition = - mvPosition.xyz;\n#endif",color_fragment:"#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif",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 transposeMat3( const in mat3 m ) {\n\tmat3 tmp;\n\ttmp[ 0 ] = vec3( m[ 0 ].x, m[ 1 ].x, m[ 2 ].x );\n\ttmp[ 1 ] = vec3( m[ 0 ].y, m[ 1 ].y, m[ 2 ].y );\n\ttmp[ 2 ] = vec3( m[ 0 ].z, m[ 1 ].z, m[ 2 ].z );\n\treturn tmp;\n}\nfloat linearToRelativeLuminance( const in vec3 color ) {\n\tvec3 weights = vec3( 0.2126, 0.7152, 0.0722 );\n\treturn dot( weights, color.rgb );\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( sampler2D envMap, 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",defaultnormal_vertex:"vec3 transformedNormal = normalMatrix * objectNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n#ifdef USE_TANGENT\n\tvec3 transformedTangent = normalMatrix * objectTangent;\n\t#ifdef FLIP_SIDED\n\t\ttransformedTangent = - transformedTangent;\n\t#endif\n#endif",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );\n#endif",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif",encodings_fragment:"gl_FragColor = linearToOutputTexel( gl_FragColor );",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.rgb, vec3( gammaFactor ) ), value.a );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.rgb, vec3( 1.0 / gammaFactor ) ), value.a );\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.a );\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.a );\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.rgb * value.a * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.r, 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.r, 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 = cLogLuvM * value.rgb;\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 = cLogLuvInverseM * Xp_Y_XYZp.rgb;\n\treturn vec4( max( vRGB, 0.0 ), 1.0 );\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",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\tuniform int maxMipLevel;\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",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",envmap_physical_pars_fragment:"#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( envMap, 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( envMap, 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",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",fog_vertex:"#ifdef USE_FOG\n\tfogDepth = -mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n\tvarying float fogDepth;\n#endif",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",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",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",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\treflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n#endif",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 );\nvIndirectFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n\tvIndirectBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\n#if NUM_POINT_LIGHTS > 0\n\t#pragma unroll_loop\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\t#pragma unroll_loop\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\t#pragma unroll_loop\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\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_HEMI_LIGHTS; i ++ ) {\n\t\tvIndirectFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvIndirectBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n#endif",lights_pars_begin:"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 ltc_1;\tuniform sampler2D ltc_2;\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",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;",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)",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",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\tvec4 t1 = texture2D( ltc_1, uv );\n\t\tvec4 t2 = texture2D( ltc_2, uv );\n\t\tmat3 mInv = mat3(\n\t\t\tvec3( t1.x, 0, t1.y ),\n\t\t\tvec3(    0, 1,    0 ),\n\t\t\tvec3( t1.z, 0, t1.w )\n\t\t);\n\t\tvec3 fresnel = ( material.specularColor * t2.x + ( vec3( 1.0 ) - material.specularColor ) * t2.y );\n\t\treflectedLight.directSpecular += lightColor * fresnel * LTC_Evaluate( normal, viewDir, position, mInv, rectCoords );\n\t\treflectedLight.directDiffuse += lightColor * material.diffuseColor * LTC_Evaluate( normal, viewDir, position, mat3( 1.0 ), 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\t#ifndef ENVMAP_TYPE_CUBE_UV\n\t\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\t#endif\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 irradiance, 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\tfloat clearCoatInv = 1.0 - clearCoatDHR;\n\t#if defined( ENVMAP_TYPE_CUBE_UV )\n\t\tvec3 singleScattering = vec3( 0.0 );\n\t\tvec3 multiScattering = vec3( 0.0 );\n\t\tvec3 cosineWeightedIrradiance = irradiance * RECIPROCAL_PI;\n\t\tBRDF_Specular_Multiscattering_Environment( geometry, material.specularColor, material.specularRoughness, singleScattering, multiScattering );\n\t\tvec3 diffuse = material.diffuseColor;\n\t\treflectedLight.indirectSpecular += clearCoatInv * radiance * singleScattering;\n\t\treflectedLight.indirectDiffuse += multiScattering * cosineWeightedIrradiance;\n\t\treflectedLight.indirectDiffuse += diffuse * cosineWeightedIrradiance;\n\t#else\n\t\treflectedLight.indirectSpecular += clearCoatInv * radiance * BRDF_Specular_GGX_Environment( geometry, material.specularColor, material.specularRoughness );\n\t#endif\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}",lights_fragment_begin:"\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\t#pragma unroll_loop\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\t#pragma unroll_loop\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\t#pragma unroll_loop\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\t#pragma unroll_loop\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#if ( NUM_HEMI_LIGHTS > 0 )\n\t\t#pragma unroll_loop\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#endif\n#if defined( RE_IndirectSpecular )\n\tvec3 radiance = vec3( 0.0 );\n\tvec3 clearCoatRadiance = vec3( 0.0 );\n#endif",lights_fragment_maps:"#if defined( RE_IndirectDiffuse )\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 defined( USE_ENVMAP ) && defined( PHYSICAL ) && defined( ENVMAP_TYPE_CUBE_UV )\n\t\tirradiance += getLightProbeIndirectIrradiance( geometry, maxMipLevel );\n\t#endif\n#endif\n#if defined( USE_ENVMAP ) && defined( RE_IndirectSpecular )\n\tradiance += getLightProbeIndirectRadiance( geometry, Material_BlinnShininessExponent( material ), maxMipLevel );\n\t#ifndef STANDARD\n\t\tclearCoatRadiance += getLightProbeIndirectRadiance( geometry, Material_ClearCoat_BlinnShininessExponent( material ), maxMipLevel );\n\t#endif\n#endif",lights_fragment_end:"#if defined( RE_IndirectDiffuse )\n\tRE_IndirectDiffuse( irradiance, geometry, material, reflectedLight );\n#endif\n#if defined( RE_IndirectSpecular )\n\tRE_IndirectSpecular( radiance, irradiance, clearCoatRadiance, geometry, material, reflectedLight );\n#endif",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tuniform float logDepthBufFC;\n\tvarying float vFragDepth;\n#endif",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#else\n\t\tuniform float logDepthBufFC;\n\t#endif\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvFragDepth = 1.0 + gl_Position.w;\n\t#else\n\t\tgl_Position.z = log2( max( EPSILON, gl_Position.w + 1.0 ) ) * logDepthBufFC - 1.0;\n\t\tgl_Position.z *= gl_Position.w;\n\t#endif\n#endif",map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif",map_particle_fragment:"#ifdef USE_MAP\n\tvec2 uv = ( uvTransform * vec3( gl_PointCoord.x, 1.0 - gl_PointCoord.y, 1 ) ).xy;\n\tvec4 mapTexel = texture2D( map, uv );\n\tdiffuseColor *= mapTexelToLinear( mapTexel );\n#endif",map_particle_pars_fragment:"#ifdef USE_MAP\n\tuniform mat3 uvTransform;\n\tuniform sampler2D map;\n#endif",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif",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",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",normal_fragment_begin:"#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\t#ifdef USE_TANGENT\n\t\tvec3 tangent = normalize( vTangent );\n\t\tvec3 bitangent = normalize( vBitangent );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\ttangent = tangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t\tbitangent = bitangent * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#endif\n\t#endif\n#endif",normal_fragment_maps:"#ifdef USE_NORMALMAP\n\t#ifdef OBJECTSPACE_NORMALMAP\n\t\tnormal = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\t#ifdef FLIP_SIDED\n\t\t\tnormal = - normal;\n\t\t#endif\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tnormal = normal * ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t#endif\n\t\tnormal = normalize( normalMatrix * normal );\n\t#else\n\t\t#ifdef USE_TANGENT\n\t\t\tmat3 vTBN = mat3( tangent, bitangent, normal );\n\t\t\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\t\tmapN.xy = normalScale * mapN.xy;\n\t\t\tnormal = normalize( vTBN * mapN );\n\t\t#else\n\t\t\tnormal = perturbNormal2Arb( -vViewPosition, normal );\n\t\t#endif\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n\t#ifdef OBJECTSPACE_NORMALMAP\n\t\tuniform mat3 normalMatrix;\n\t#else\n\t\tvec3 perturbNormal2Arb( vec3 eye_pos, vec3 surf_norm ) {\n\t\t\tvec3 q0 = vec3( dFdx( eye_pos.x ), dFdx( eye_pos.y ), dFdx( eye_pos.z ) );\n\t\t\tvec3 q1 = vec3( dFdy( eye_pos.x ), dFdy( eye_pos.y ), dFdy( eye_pos.z ) );\n\t\t\tvec2 st0 = dFdx( vUv.st );\n\t\t\tvec2 st1 = dFdy( vUv.st );\n\t\t\tfloat scale = sign( st1.t * st0.s - st0.t * st1.s );\n\t\t\tvec3 S = normalize( ( q0 * st1.t - q1 * st0.t ) * scale );\n\t\t\tvec3 T = normalize( ( - q0 * st1.s + q1 * st0.s ) * scale );\n\t\t\tvec3 N = normalize( surf_norm );\n\t\t\tmat3 tsn = mat3( S, T, N );\n\t\t\tvec3 mapN = texture2D( normalMap, vUv ).xyz * 2.0 - 1.0;\n\t\t\tmapN.xy *= normalScale;\n\t\t\tmapN.xy *= ( float( gl_FrontFacing ) * 2.0 - 1.0 );\n\t\t\treturn normalize( tsn * mapN );\n\t\t}\n\t#endif\n#endif",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 2.0 * rgb.xyz - 1.0;\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}",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif",project_vertex:"vec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\ngl_Position = projectionMatrix * mvPosition;",dithering_fragment:"#if defined( DITHERING )\n\tgl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif",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",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif",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",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",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t#pragma unroll_loop\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\t#pragma unroll_loop\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\t#pragma unroll_loop\n\tfor ( int i = 0; i < NUM_POINT_LIGHTS; i ++ ) {\n\t\tvPointShadowCoord[ i ] = pointShadowMatrix[ i ] * worldPosition;\n\t}\n\t#endif\n#endif",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\t#pragma unroll_loop\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\t#pragma unroll_loop\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\t#pragma unroll_loop\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}",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",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",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\t#ifdef USE_TANGENT\n\t\tobjectTangent = vec4( skinMatrix * vec4( objectTangent, 0.0 ) ).xyz;\n\t#endif\n#endif",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\tgl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif",tonemapping_pars_fragment:"#ifndef saturate\n\t#define saturate(a) clamp( a, 0.0, 1.0 )\n#endif\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}\nvec3 ACESFilmicToneMapping( vec3 color ) {\n\tcolor *= toneMappingExposure;\n\treturn saturate( ( color * ( 2.51 * color + 0.03 ) ) / ( color * ( 2.43 * color + 0.59 ) + 0.14 ) );\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 mat3 uvTransform;\n#endif",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 = ( uvTransform * vec3( uv, 1 ) ).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( DISTANCE ) || defined ( USE_SHADOWMAP )\n\tvec4 worldPosition = modelMatrix * vec4( transformed, 1.0 );\n#endif",background_frag:"uniform sampler2D t2D;\nvarying vec2 vUv;\nvoid main() {\n\tvec4 texColor = texture2D( t2D, vUv );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",background_vert:"varying vec2 vUv;\nuniform mat3 uvTransform;\nvoid main() {\n\tvUv = ( uvTransform * vec3( uv, 1 ) ).xy;\n\tgl_Position = vec4( position.xy, 1.0, 1.0 );\n}",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldDirection;\nvoid main() {\n\tvec4 texColor = textureCube( tCube, vec3( tFlip * vWorldDirection.x, vWorldDirection.yz ) );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\tgl_FragColor.a *= opacity;\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",cube_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\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( 1.0 - gl_FragCoord.z ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( gl_FragCoord.z );\n\t#endif\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}",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}",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}",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldDirection );\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\tvec4 texColor = texture2D( tEquirect, sampleUV );\n\tgl_FragColor = mapTexelToLinear( texColor );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n}",equirect_vert:"varying vec3 vWorldDirection;\n#include <common>\nvoid main() {\n\tvWorldDirection = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\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}",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}",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}",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}",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\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_begin>\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#ifdef DOUBLE_SIDED\n\t\treflectedLight.indirectDiffuse += ( gl_FrontFacing ) ? vIndirectFront : vIndirectBack;\n\t#else\n\t\treflectedLight.indirectDiffuse += vIndirectFront;\n\t#endif\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}",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\nvarying vec3 vIndirectFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n\tvarying vec3 vIndirectBack;\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_begin>\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}",meshmatcap_frag:"#define MATCAP\nuniform vec3 diffuse;\nuniform float opacity;\nuniform sampler2D matcap;\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_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 <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tvec3 viewDir = normalize( vViewPosition );\n\tvec3 x = normalize( vec3( viewDir.z, 0.0, - viewDir.x ) );\n\tvec3 y = cross( viewDir, x );\n\tvec2 uv = vec2( dot( x, normal ), dot( y, normal ) ) * 0.495 + 0.5;\n\t#ifdef USE_MATCAP\n\t\tvec4 matcapColor = texture2D( matcap, uv );\n\t\tmatcapColor = matcapTexelToLinear( matcapColor );\n\t#else\n\t\tvec4 matcapColor = vec4( 1.0 );\n\t#endif\n\tvec3 outgoingLight = diffuseColor.rgb * matcapColor.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}",meshmatcap_vert:"#define MATCAP\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_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 <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#ifndef FLAT_SHADED\n\t\tvNormal = normalize( transformedNormal );\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\t#include <fog_vertex>\n\tvViewPosition = - mvPosition.xyz;\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_begin>\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_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_phong_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\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}",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}",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\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\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 <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <envmap_pars_fragment>\n#include <envmap_physical_pars_fragment>\n#include <fog_pars_fragment>\n#include <lights_pars_begin>\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_begin>\n\t#include <normal_fragment_maps>\n\t#include <emissivemap_fragment>\n\t#include <lights_physical_fragment>\n\t#include <lights_fragment_begin>\n\t#include <lights_fragment_maps>\n\t#include <lights_fragment_end>\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}",meshphysical_vert:"#define PHYSICAL\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\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\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\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}",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\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_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}",normal_vert:"#define NORMAL\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n\t#ifdef USE_TANGENT\n\t\tvarying vec3 vTangent;\n\t\tvarying vec3 vBitangent;\n\t#endif\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\t#ifdef USE_TANGENT\n\t\tvTangent = normalize( transformedTangent );\n\t\tvBitangent = normalize( cross( vNormal, vTangent ) * tangent.w );\n\t#endif\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 ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <color_pars_fragment>\n#include <map_particle_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\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}",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_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 <morphtarget_vertex>\n\t#include <project_vertex>\n\tgl_PointSize = size;\n\t#ifdef USE_SIZEATTENUATION\n\t\tbool isPerspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 );\n\t\tif ( isPerspective ) gl_PointSize *= ( scale / - mvPosition.z );\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}",shadow_frag:"uniform vec3 color;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_begin>\n#include <shadowmap_pars_fragment>\n#include <shadowmask_pars_fragment>\nvoid main() {\n\tgl_FragColor = vec4( color, opacity * ( 1.0 - getShadowMask() ) );\n\t#include <fog_fragment>\n}",shadow_vert:"#include <fog_pars_vertex>\n#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\t#include <fog_vertex>\n}",sprite_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <uv_pars_fragment>\n#include <map_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\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}",sprite_vert:"uniform float rotation;\nuniform vec2 center;\n#include <common>\n#include <uv_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\tvec4 mvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );\n\tvec2 scale;\n\tscale.x = length( vec3( modelMatrix[ 0 ].x, modelMatrix[ 0 ].y, modelMatrix[ 0 ].z ) );\n\tscale.y = length( vec3( modelMatrix[ 1 ].x, modelMatrix[ 1 ].y, modelMatrix[ 1 ].z ) );\n\t#ifndef USE_SIZEATTENUATION\n\t\tbool isPerspective = ( projectionMatrix[ 2 ][ 3 ] == - 1.0 );\n\t\tif ( isPerspective ) scale *= - mvPosition.z;\n\t#endif\n\tvec2 alignedPosition = ( position.xy - ( center - vec2( 0.5 ) ) ) * scale;\n\tvec2 rotatedPosition;\n\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;\n\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;\n\tmvPosition.xy += rotatedPosition;\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}"};function wn(t){var e={};for(var n in t)for(var i in e[n]={},t[n]){var r=t[n][i];r&&(r.isColor||r.isMatrix3||r.isMatrix4||r.isVector2||r.isVector3||r.isVector4||r.isTexture)?e[n][i]=r.clone():Array.isArray(r)?e[n][i]=r.slice():e[n][i]=r}return e}function Sn(t){for(var e={},n=0;n<t.length;n++){var i=wn(t[n]);for(var r in i)e[r]=i[r]}return e}var Tn,En,Mn,Cn={clone:wn,merge:Sn},Ln={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,rebeccapurple:6697881,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};function On(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}Object.assign(On.prototype,{isColor:!0,r:1,g:1,b:1,set:function(t){return t&&t.isColor?this.copy(t):"number"==typeof t?this.setHex(t):"string"==typeof t&&this.setStyle(t),this},setScalar:function(t){return this.r=t,this.g=t,this.b=t,this},setHex:function(t){return t=Math.floor(t),this.r=(t>>16&255)/255,this.g=(t>>8&255)/255,this.b=(255&t)/255,this},setRGB:function(t,e,n){return this.r=t,this.g=e,this.b=n,this},setHSL:function(){function t(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+6*(e-t)*(2/3-n):t}return function(e,n,i){if(e=Ze.euclideanModulo(e,1),n=Ze.clamp(n,0,1),i=Ze.clamp(i,0,1),0===n)this.r=this.g=this.b=i;else{var r=i<=.5?i*(1+n):i+n-i*n,o=2*i-r;this.r=t(o,r,e+1/3),this.g=t(o,r,e),this.b=t(o,r,e-1/3)}return this}}(),setStyle:function(t){function e(e){void 0!==e&&parseFloat(e)<1&&console.warn("THREE.Color: Alpha component of "+t+" will be ignored.")}var n;if(n=/^((?:rgb|hsl)a?)\(\s*([^\)]*)\)/.exec(t)){var i,r=n[1],o=n[2];switch(r){case"rgb":case"rgba":if(i=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(o))return this.r=Math.min(255,parseInt(i[1],10))/255,this.g=Math.min(255,parseInt(i[2],10))/255,this.b=Math.min(255,parseInt(i[3],10))/255,e(i[5]),this;if(i=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(o))return this.r=Math.min(100,parseInt(i[1],10))/100,this.g=Math.min(100,parseInt(i[2],10))/100,this.b=Math.min(100,parseInt(i[3],10))/100,e(i[5]),this;break;case"hsl":case"hsla":if(i=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(o)){var a=parseFloat(i[1])/360,s=parseInt(i[2],10)/100,c=parseInt(i[3],10)/100;return e(i[5]),this.setHSL(a,s,c)}}}else if(n=/^\#([A-Fa-f0-9]+)$/.exec(t)){var l,u=(l=n[1]).length;if(3===u)return this.r=parseInt(l.charAt(0)+l.charAt(0),16)/255,this.g=parseInt(l.charAt(1)+l.charAt(1),16)/255,this.b=parseInt(l.charAt(2)+l.charAt(2),16)/255,this;if(6===u)return this.r=parseInt(l.charAt(0)+l.charAt(1),16)/255,this.g=parseInt(l.charAt(2)+l.charAt(3),16)/255,this.b=parseInt(l.charAt(4)+l.charAt(5),16)/255,this}t&&t.length>0&&(void 0!==(l=Ln[t])?this.setHex(l):console.warn("THREE.Color: Unknown color "+t));return this},clone:function(){return new this.constructor(this.r,this.g,this.b)},copy:function(t){return this.r=t.r,this.g=t.g,this.b=t.b,this},copyGammaToLinear:function(t,e){return void 0===e&&(e=2),this.r=Math.pow(t.r,e),this.g=Math.pow(t.g,e),this.b=Math.pow(t.b,e),this},copyLinearToGamma:function(t,e){void 0===e&&(e=2);var n=e>0?1/e:1;return this.r=Math.pow(t.r,n),this.g=Math.pow(t.g,n),this.b=Math.pow(t.b,n),this},convertGammaToLinear:function(t){return this.copyGammaToLinear(this,t),this},convertLinearToGamma:function(t){return this.copyLinearToGamma(this,t),this},copySRGBToLinear:function(){function t(t){return t<.04045?.0773993808*t:Math.pow(.9478672986*t+.0521327014,2.4)}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),copyLinearToSRGB:function(){function t(t){return t<.0031308?12.92*t:1.055*Math.pow(t,.41666)-.055}return function(e){return this.r=t(e.r),this.g=t(e.g),this.b=t(e.b),this}}(),convertSRGBToLinear:function(){return this.copySRGBToLinear(this),this},convertLinearToSRGB:function(){return this.copyLinearToSRGB(this),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(t){void 0===t&&(console.warn("THREE.Color: .getHSL() target is now required"),t={h:0,s:0,l:0});var e,n,i=this.r,r=this.g,o=this.b,a=Math.max(i,r,o),s=Math.min(i,r,o),c=(s+a)/2;if(s===a)e=0,n=0;else{var l=a-s;switch(n=c<=.5?l/(a+s):l/(2-a-s),a){case i:e=(r-o)/l+(r<o?6:0);break;case r:e=(o-i)/l+2;break;case o:e=(i-r)/l+4}e/=6}return t.h=e,t.s=n,t.l=c,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:(Mn={},function(t,e,n){return this.getHSL(Mn),Mn.h+=t,Mn.s+=e,Mn.l+=n,this.setHSL(Mn.h,Mn.s,Mn.l),this}),add:function(t){return this.r+=t.r,this.g+=t.g,this.b+=t.b,this},addColors:function(t,e){return this.r=t.r+e.r,this.g=t.g+e.g,this.b=t.b+e.b,this},addScalar:function(t){return this.r+=t,this.g+=t,this.b+=t,this},sub:function(t){return this.r=Math.max(0,this.r-t.r),this.g=Math.max(0,this.g-t.g),this.b=Math.max(0,this.b-t.b),this},multiply:function(t){return this.r*=t.r,this.g*=t.g,this.b*=t.b,this},multiplyScalar:function(t){return this.r*=t,this.g*=t,this.b*=t,this},lerp:function(t,e){return this.r+=(t.r-this.r)*e,this.g+=(t.g-this.g)*e,this.b+=(t.b-this.b)*e,this},lerpHSL:(Tn={h:0,s:0,l:0},En={h:0,s:0,l:0},function(t,e){this.getHSL(Tn),t.getHSL(En);var n=Ze.lerp(Tn.h,En.h,e),i=Ze.lerp(Tn.s,En.s,e),r=Ze.lerp(Tn.l,En.l,e);return this.setHSL(n,i,r),this}),equals:function(t){return t.r===this.r&&t.g===this.g&&t.b===this.b},fromArray:function(t,e){return void 0===e&&(e=0),this.r=t[e],this.g=t[e+1],this.b=t[e+2],this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this.r,t[e+1]=this.g,t[e+2]=this.b,t},toJSON:function(){return this.getHex()}});var kn,Pn={common:{diffuse:{value:new On(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new nn},alphaMap:{value:null}},specularmap:{specularMap:{value:null}},envmap:{envMap:{value:null},flipEnvMap:{value:-1},reflectivity:{value:1},refractionRatio:{value:.98},maxMipLevel:{value:0}},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 Je(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:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new On(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 On(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new nn}},sprite:{diffuse:{value:new On(15658734)},opacity:{value:1},center:{value:new Je(.5,.5)},rotation:{value:0},map:{value:null},uvTransform:{value:new nn}}},An={basic:{uniforms:Sn([Pn.common,Pn.specularmap,Pn.envmap,Pn.aomap,Pn.lightmap,Pn.fog]),vertexShader:_n.meshbasic_vert,fragmentShader:_n.meshbasic_frag},lambert:{uniforms:Sn([Pn.common,Pn.specularmap,Pn.envmap,Pn.aomap,Pn.lightmap,Pn.emissivemap,Pn.fog,Pn.lights,{emissive:{value:new On(0)}}]),vertexShader:_n.meshlambert_vert,fragmentShader:_n.meshlambert_frag},phong:{uniforms:Sn([Pn.common,Pn.specularmap,Pn.envmap,Pn.aomap,Pn.lightmap,Pn.emissivemap,Pn.bumpmap,Pn.normalmap,Pn.displacementmap,Pn.gradientmap,Pn.fog,Pn.lights,{emissive:{value:new On(0)},specular:{value:new On(1118481)},shininess:{value:30}}]),vertexShader:_n.meshphong_vert,fragmentShader:_n.meshphong_frag},standard:{uniforms:Sn([Pn.common,Pn.envmap,Pn.aomap,Pn.lightmap,Pn.emissivemap,Pn.bumpmap,Pn.normalmap,Pn.displacementmap,Pn.roughnessmap,Pn.metalnessmap,Pn.fog,Pn.lights,{emissive:{value:new On(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:_n.meshphysical_vert,fragmentShader:_n.meshphysical_frag},matcap:{uniforms:Sn([Pn.common,Pn.bumpmap,Pn.normalmap,Pn.displacementmap,Pn.fog,{matcap:{value:null}}]),vertexShader:_n.meshmatcap_vert,fragmentShader:_n.meshmatcap_frag},points:{uniforms:Sn([Pn.points,Pn.fog]),vertexShader:_n.points_vert,fragmentShader:_n.points_frag},dashed:{uniforms:Sn([Pn.common,Pn.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:_n.linedashed_vert,fragmentShader:_n.linedashed_frag},depth:{uniforms:Sn([Pn.common,Pn.displacementmap]),vertexShader:_n.depth_vert,fragmentShader:_n.depth_frag},normal:{uniforms:Sn([Pn.common,Pn.bumpmap,Pn.normalmap,Pn.displacementmap,{opacity:{value:1}}]),vertexShader:_n.normal_vert,fragmentShader:_n.normal_frag},sprite:{uniforms:Sn([Pn.sprite,Pn.fog]),vertexShader:_n.sprite_vert,fragmentShader:_n.sprite_frag},background:{uniforms:{uvTransform:{value:new nn},t2D:{value:null}},vertexShader:_n.background_vert,fragmentShader:_n.background_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:_n.cube_vert,fragmentShader:_n.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:_n.equirect_vert,fragmentShader:_n.equirect_frag},distanceRGBA:{uniforms:Sn([Pn.common,Pn.displacementmap,{referencePosition:{value:new en},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:_n.distanceRGBA_vert,fragmentShader:_n.distanceRGBA_frag},shadow:{uniforms:Sn([Pn.lights,Pn.fog,{color:{value:new On(0)},opacity:{value:1}}]),vertexShader:_n.shadow_vert,fragmentShader:_n.shadow_frag}};function In(){var t=null,e=!1,n=null;function i(r,o){!1!==e&&(n(r,o),t.requestAnimationFrame(i))}return{start:function(){!0!==e&&null!==n&&(t.requestAnimationFrame(i),e=!0)},stop:function(){e=!1},setAnimationLoop:function(t){n=t},setContext:function(e){t=e}}}function Dn(t){var e=new WeakMap;return{get:function(t){return t.isInterleavedBufferAttribute&&(t=t.data),e.get(t)},remove:function(n){n.isInterleavedBufferAttribute&&(n=n.data);var i=e.get(n);i&&(t.deleteBuffer(i.buffer),e.delete(n))},update:function(n,i){n.isInterleavedBufferAttribute&&(n=n.data);var r=e.get(n);void 0===r?e.set(n,function(e,n){var i=e.array,r=e.dynamic?35048:35044,o=t.createBuffer();t.bindBuffer(n,o),t.bufferData(n,i,r),e.onUploadCallback();var a=5126;return i instanceof Float32Array?a=5126:i instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):i instanceof Uint16Array?a=5123:i instanceof Int16Array?a=5122:i instanceof Uint32Array?a=5125:i instanceof Int32Array?a=5124:i instanceof Int8Array?a=5120:i instanceof Uint8Array&&(a=5121),{buffer:o,type:a,bytesPerElement:i.BYTES_PER_ELEMENT,version:e.version}}(n,i)):r.version<n.version&&(function(e,n,i){var r=n.array,o=n.updateRange;t.bindBuffer(i,e),!1===n.dynamic?t.bufferData(i,r,35044):-1===o.count?t.bufferSubData(i,0,r):0===o.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."):(t.bufferSubData(i,o.offset*r.BYTES_PER_ELEMENT,r.subarray(o.offset,o.offset+o.count)),o.count=-1)}(r.buffer,n,i),r.version=n.version)}}}function Rn(t,e,n,i,r,o){this.a=t,this.b=e,this.c=n,this.normal=i&&i.isVector3?i:new en,this.vertexNormals=Array.isArray(i)?i:[],this.color=r&&r.isColor?r:new On,this.vertexColors=Array.isArray(r)?r:[],this.materialIndex=void 0!==o?o:0}function Bn(t,e,n,i){this._x=t||0,this._y=e||0,this._z=n||0,this._order=i||Bn.DefaultOrder}function Nn(){this.mask=1}An.physical={uniforms:Sn([An.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:_n.meshphysical_vert,fragmentShader:_n.meshphysical_frag},Object.assign(Rn.prototype,{clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.a=t.a,this.b=t.b,this.c=t.c,this.normal.copy(t.normal),this.color.copy(t.color),this.materialIndex=t.materialIndex;for(var e=0,n=t.vertexNormals.length;e<n;e++)this.vertexNormals[e]=t.vertexNormals[e].clone();for(e=0,n=t.vertexColors.length;e<n;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}}),Bn.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"],Bn.DefaultOrder="XYZ",Object.defineProperties(Bn.prototype,{x:{get:function(){return this._x},set:function(t){this._x=t,this.onChangeCallback()}},y:{get:function(){return this._y},set:function(t){this._y=t,this.onChangeCallback()}},z:{get:function(){return this._z},set:function(t){this._z=t,this.onChangeCallback()}},order:{get:function(){return this._order},set:function(t){this._order=t,this.onChangeCallback()}}}),Object.assign(Bn.prototype,{isEuler:!0,set:function(t,e,n,i){return this._x=t,this._y=e,this._z=n,this._order=i||this._order,this.onChangeCallback(),this},clone:function(){return new this.constructor(this._x,this._y,this._z,this._order)},copy:function(t){return this._x=t._x,this._y=t._y,this._z=t._z,this._order=t._order,this.onChangeCallback(),this},setFromRotationMatrix:function(t,e,n){var i=Ze.clamp,r=t.elements,o=r[0],a=r[4],s=r[8],c=r[1],l=r[5],u=r[9],h=r[2],d=r[6],f=r[10];return"XYZ"===(e=e||this._order)?(this._y=Math.asin(i(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(-u,f),this._z=Math.atan2(-a,o)):(this._x=Math.atan2(d,l),this._z=0)):"YXZ"===e?(this._x=Math.asin(-i(u,-1,1)),Math.abs(u)<.99999?(this._y=Math.atan2(s,f),this._z=Math.atan2(c,l)):(this._y=Math.atan2(-h,o),this._z=0)):"ZXY"===e?(this._x=Math.asin(i(d,-1,1)),Math.abs(d)<.99999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-a,l)):(this._y=0,this._z=Math.atan2(c,o))):"ZYX"===e?(this._y=Math.asin(-i(h,-1,1)),Math.abs(h)<.99999?(this._x=Math.atan2(d,f),this._z=Math.atan2(c,o)):(this._x=0,this._z=Math.atan2(-a,l))):"YZX"===e?(this._z=Math.asin(i(c,-1,1)),Math.abs(c)<.99999?(this._x=Math.atan2(-u,l),this._y=Math.atan2(-h,o)):(this._x=0,this._y=Math.atan2(s,f))):"XZY"===e?(this._z=Math.asin(-i(a,-1,1)),Math.abs(a)<.99999?(this._x=Math.atan2(d,l),this._y=Math.atan2(s,o)):(this._x=Math.atan2(-u,f),this._y=0)):console.warn("THREE.Euler: .setFromRotationMatrix() given unsupported order: "+e),this._order=e,!1!==n&&this.onChangeCallback(),this},setFromQuaternion:function(){var t=new Qe;return function(e,n,i){return t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,n,i)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:(kn=new tn,function(t){return kn.setFromEuler(this),this.setFromQuaternion(kn,t)}),equals:function(t){return t._x===this._x&&t._y===this._y&&t._z===this._z&&t._order===this._order},fromArray:function(t){return this._x=t[0],this._y=t[1],this._z=t[2],void 0!==t[3]&&(this._order=t[3]),this.onChangeCallback(),this},toArray:function(t,e){return void 0===t&&(t=[]),void 0===e&&(e=0),t[e]=this._x,t[e+1]=this._y,t[e+2]=this._z,t[e+3]=this._order,t},toVector3:function(t){return t?t.set(this._x,this._y,this._z):new en(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(Nn.prototype,{set:function(t){this.mask=1<<t|0},enable:function(t){this.mask|=1<<t|0},toggle:function(t){this.mask^=1<<t|0},disable:function(t){this.mask&=~(1<<t|0)},test:function(t){return 0!=(this.mask&t.mask)}});var jn,zn,Fn,Vn,Un=0;function Gn(){Object.defineProperty(this,"id",{value:Un++}),this.uuid=Ze.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=Gn.DefaultUp.clone();var t=new en,e=new Bn,n=new tn,i=new en(1,1,1);e.onChange(function(){n.setFromEuler(e,!1)}),n.onChange(function(){e.setFromQuaternion(n,void 0,!1)}),Object.defineProperties(this,{position:{configurable:!0,enumerable:!0,value:t},rotation:{configurable:!0,enumerable:!0,value:e},quaternion:{configurable:!0,enumerable:!0,value:n},scale:{configurable:!0,enumerable:!0,value:i},modelViewMatrix:{value:new Qe},normalMatrix:{value:new nn}}),this.matrix=new Qe,this.matrixWorld=new Qe,this.matrixAutoUpdate=Gn.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new Nn,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}Gn.DefaultUp=new en(0,1,0),Gn.DefaultMatrixAutoUpdate=!0,Gn.prototype=Object.assign(Object.create(i.prototype),{constructor:Gn,isObject3D:!0,onBeforeRender:function(){},onAfterRender:function(){},applyMatrix:function(t){this.matrix.multiplyMatrices(t,this.matrix),this.matrix.decompose(this.position,this.quaternion,this.scale)},applyQuaternion:function(t){return this.quaternion.premultiply(t),this},setRotationFromAxisAngle:function(t,e){this.quaternion.setFromAxisAngle(t,e)},setRotationFromEuler:function(t){this.quaternion.setFromEuler(t,!0)},setRotationFromMatrix:function(t){this.quaternion.setFromRotationMatrix(t)},setRotationFromQuaternion:function(t){this.quaternion.copy(t)},rotateOnAxis:(Vn=new tn,function(t,e){return Vn.setFromAxisAngle(t,e),this.quaternion.multiply(Vn),this}),rotateOnWorldAxis:function(){var t=new tn;return function(e,n){return t.setFromAxisAngle(e,n),this.quaternion.premultiply(t),this}}(),rotateX:function(){var t=new en(1,0,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateY:function(){var t=new en(0,1,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateZ:function(){var t=new en(0,0,1);return function(e){return this.rotateOnAxis(t,e)}}(),translateOnAxis:function(){var t=new en;return function(e,n){return t.copy(e).applyQuaternion(this.quaternion),this.position.add(t.multiplyScalar(n)),this}}(),translateX:function(){var t=new en(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new en(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new en(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:(Fn=new Qe,function(t){return t.applyMatrix4(Fn.getInverse(this.matrixWorld))}),lookAt:function(){var t=new tn,e=new Qe,n=new en,i=new en;return function(r,o,a){r.isVector3?n.copy(r):n.set(r,o,a);var s=this.parent;this.updateWorldMatrix(!0,!1),i.setFromMatrixPosition(this.matrixWorld),this.isCamera||this.isLight?e.lookAt(i,n,this.up):e.lookAt(n,i,this.up),this.quaternion.setFromRotationMatrix(e),s&&(e.extractRotation(s.matrixWorld),t.setFromRotationMatrix(e),this.quaternion.premultiply(t.inverse()))}}(),add:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.add(arguments[e]);return this}return t===this?(console.error("THREE.Object3D.add: object can't be added as a child of itself.",t),this):(t&&t.isObject3D?(null!==t.parent&&t.parent.remove(t),t.parent=this,t.dispatchEvent({type:"added"}),this.children.push(t)):console.error("THREE.Object3D.add: object not an instance of THREE.Object3D.",t),this)},remove:function(t){if(arguments.length>1){for(var e=0;e<arguments.length;e++)this.remove(arguments[e]);return this}var n=this.children.indexOf(t);return-1!==n&&(t.parent=null,t.dispatchEvent({type:"removed"}),this.children.splice(n,1)),this},getObjectById:function(t){return this.getObjectByProperty("id",t)},getObjectByName:function(t){return this.getObjectByProperty("name",t)},getObjectByProperty:function(t,e){if(this[t]===e)return this;for(var n=0,i=this.children.length;n<i;n++){var r=this.children[n].getObjectByProperty(t,e);if(void 0!==r)return r}},getWorldPosition:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new en),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:(jn=new en,zn=new en,function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),t=new tn),this.updateMatrixWorld(!0),this.matrixWorld.decompose(jn,t,zn),t}),getWorldScale:function(){var t=new en,e=new tn;return function(n){return void 0===n&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),n=new en),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,e,n),n}}(),getWorldDirection:function(t){void 0===t&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),t=new en),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(e[8],e[9],e[10]).normalize()},raycast:function(){},traverse:function(t){t(this);for(var e=this.children,n=0,i=e.length;n<i;n++)e[n].traverse(t)},traverseVisible:function(t){if(!1!==this.visible){t(this);for(var e=this.children,n=0,i=e.length;n<i;n++)e[n].traverseVisible(t)}},traverseAncestors:function(t){var e=this.parent;null!==e&&(t(e),e.traverseAncestors(t))},updateMatrix:function(){this.matrix.compose(this.position,this.quaternion,this.scale),this.matrixWorldNeedsUpdate=!0},updateMatrixWorld:function(t){this.matrixAutoUpdate&&this.updateMatrix(),(this.matrixWorldNeedsUpdate||t)&&(null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),this.matrixWorldNeedsUpdate=!1,t=!0);for(var e=this.children,n=0,i=e.length;n<i;n++)e[n].updateMatrixWorld(t)},updateWorldMatrix:function(t,e){var n=this.parent;if(!0===t&&null!==n&&n.updateWorldMatrix(!0,!1),this.matrixAutoUpdate&&this.updateMatrix(),null===this.parent?this.matrixWorld.copy(this.matrix):this.matrixWorld.multiplyMatrices(this.parent.matrixWorld,this.matrix),!0===e)for(var i=this.children,r=0,o=i.length;r<o;r++)i[r].updateWorldMatrix(!1,!0)},toJSON:function(t){var e=void 0===t||"string"==typeof t,n={};e&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},n.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var i={};function r(e,n){return void 0===e[n.uuid]&&(e[n.uuid]=n.toJSON(t)),n.uuid}if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),!0===this.castShadow&&(i.castShadow=!0),!0===this.receiveShadow&&(i.receiveShadow=!0),!1===this.visible&&(i.visible=!1),!1===this.frustumCulled&&(i.frustumCulled=!1),0!==this.renderOrder&&(i.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(i.userData=this.userData),i.layers=this.layers.mask,i.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(i.matrixAutoUpdate=!1),this.isMesh&&this.drawMode!==Be&&(i.drawMode=this.drawMode),this.isMesh||this.isLine||this.isPoints){i.geometry=r(t.geometries,this.geometry);var o=this.geometry.parameters;if(void 0!==o&&void 0!==o.shapes){var a=o.shapes;if(Array.isArray(a))for(var s=0,c=a.length;s<c;s++){var l=a[s];r(t.shapes,l)}else r(t.shapes,a)}}if(void 0!==this.material)if(Array.isArray(this.material)){var u=[];for(s=0,c=this.material.length;s<c;s++)u.push(r(t.materials,this.material[s]));i.material=u}else i.material=r(t.materials,this.material);if(this.children.length>0){i.children=[];for(s=0;s<this.children.length;s++)i.children.push(this.children[s].toJSON(t).object)}if(e){var h=m(t.geometries),d=m(t.materials),f=m(t.textures),p=m(t.images);a=m(t.shapes);h.length>0&&(n.geometries=h),d.length>0&&(n.materials=d),f.length>0&&(n.textures=f),p.length>0&&(n.images=p),a.length>0&&(n.shapes=a)}return n.object=i,n;function m(t){var e=[];for(var n in t){var i=t[n];delete i.metadata,e.push(i)}return e}},clone:function(t){return(new this.constructor).copy(this,t)},copy:function(t,e){if(void 0===e&&(e=!0),this.name=t.name,this.up.copy(t.up),this.position.copy(t.position),this.quaternion.copy(t.quaternion),this.scale.copy(t.scale),this.matrix.copy(t.matrix),this.matrixWorld.copy(t.matrixWorld),this.matrixAutoUpdate=t.matrixAutoUpdate,this.matrixWorldNeedsUpdate=t.matrixWorldNeedsUpdate,this.layers.mask=t.layers.mask,this.visible=t.visible,this.castShadow=t.castShadow,this.receiveShadow=t.receiveShadow,this.frustumCulled=t.frustumCulled,this.renderOrder=t.renderOrder,this.userData=JSON.parse(JSON.stringify(t.userData)),!0===e)for(var n=0;n<t.children.length;n++){var i=t.children[n];this.add(i.clone())}return this}});var $n,Hn,Wn=0;function qn(){Object.defineProperty(this,"id",{value:Wn+=2}),this.uuid=Ze.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.boundingBox=null,this.boundingSphere=null,this.elementsNeedUpdate=!1,this.verticesNeedUpdate=!1,this.uvsNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.lineDistancesNeedUpdate=!1,this.groupsNeedUpdate=!1}function Xn(t,e,n){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");this.name="",this.array=t,this.itemSize=e,this.count=void 0!==t?t.length/e:0,this.normalized=!0===n,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function Yn(t,e,n){Xn.call(this,new Int8Array(t),e,n)}function Kn(t,e,n){Xn.call(this,new Uint8Array(t),e,n)}function Zn(t,e,n){Xn.call(this,new Uint8ClampedArray(t),e,n)}function Jn(t,e,n){Xn.call(this,new Int16Array(t),e,n)}function Qn(t,e,n){Xn.call(this,new Uint16Array(t),e,n)}function ti(t,e,n){Xn.call(this,new Int32Array(t),e,n)}function ei(t,e,n){Xn.call(this,new Uint32Array(t),e,n)}function ni(t,e,n){Xn.call(this,new Float32Array(t),e,n)}function ii(t,e,n){Xn.call(this,new Float64Array(t),e,n)}function ri(){this.vertices=[],this.normals=[],this.colors=[],this.uvs=[],this.uvs2=[],this.groups=[],this.morphTargets={},this.skinWeights=[],this.skinIndices=[],this.boundingBox=null,this.boundingSphere=null,this.verticesNeedUpdate=!1,this.normalsNeedUpdate=!1,this.colorsNeedUpdate=!1,this.uvsNeedUpdate=!1,this.groupsNeedUpdate=!1}function oi(t){if(0===t.length)return-1/0;for(var e=t[0],n=1,i=t.length;n<i;++n)t[n]>e&&(e=t[n]);return e}qn.prototype=Object.assign(Object.create(i.prototype),{constructor:qn,isGeometry:!0,applyMatrix:function(t){for(var e=(new nn).getNormalMatrix(t),n=0,i=this.vertices.length;n<i;n++){this.vertices[n].applyMatrix4(t)}for(n=0,i=this.faces.length;n<i;n++){var r=this.faces[n];r.normal.applyMatrix3(e).normalize();for(var o=0,a=r.vertexNormals.length;o<a;o++)r.vertexNormals[o].applyMatrix3(e).normalize()}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this.verticesNeedUpdate=!0,this.normalsNeedUpdate=!0,this},rotateX:function(){var t=new Qe;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new Qe;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new Qe;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new Qe;return function(e,n,i){return t.makeTranslation(e,n,i),this.applyMatrix(t),this}}(),scale:function(){var t=new Qe;return function(e,n,i){return t.makeScale(e,n,i),this.applyMatrix(t),this}}(),lookAt:(Hn=new Gn,function(t){Hn.lookAt(t),Hn.updateMatrix(),this.applyMatrix(Hn.matrix)}),fromBufferGeometry:function(t){var e=this,n=null!==t.index?t.index.array:void 0,i=t.attributes,r=i.position.array,o=void 0!==i.normal?i.normal.array:void 0,a=void 0!==i.color?i.color.array:void 0,s=void 0!==i.uv?i.uv.array:void 0,c=void 0!==i.uv2?i.uv2.array:void 0;void 0!==c&&(this.faceVertexUvs[1]=[]);for(var l=0,u=0;l<r.length;l+=3,u+=2)e.vertices.push((new en).fromArray(r,l)),void 0!==a&&e.colors.push((new On).fromArray(a,l));function h(t,n,i,r){var l=void 0===a?[]:[e.colors[t].clone(),e.colors[n].clone(),e.colors[i].clone()],u=new Rn(t,n,i,void 0===o?[]:[(new en).fromArray(o,3*t),(new en).fromArray(o,3*n),(new en).fromArray(o,3*i)],l,r);e.faces.push(u),void 0!==s&&e.faceVertexUvs[0].push([(new Je).fromArray(s,2*t),(new Je).fromArray(s,2*n),(new Je).fromArray(s,2*i)]),void 0!==c&&e.faceVertexUvs[1].push([(new Je).fromArray(c,2*t),(new Je).fromArray(c,2*n),(new Je).fromArray(c,2*i)])}var d=t.groups;if(d.length>0)for(l=0;l<d.length;l++)for(var f=d[l],p=f.start,m=(u=p,p+f.count);u<m;u+=3)void 0!==n?h(n[u],n[u+1],n[u+2],f.materialIndex):h(u,u+1,u+2,f.materialIndex);else if(void 0!==n)for(l=0;l<n.length;l+=3)h(n[l],n[l+1],n[l+2]);else for(l=0;l<r.length/3;l+=3)h(l,l+1,l+2);return this.computeFaceNormals(),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),this},center:($n=new en,function(){return this.computeBoundingBox(),this.boundingBox.getCenter($n).negate(),this.translate($n.x,$n.y,$n.z),this}),normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius,n=0===e?1:1/e,i=new Qe;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 t=new en,e=new en,n=0,i=this.faces.length;n<i;n++){var r=this.faces[n],o=this.vertices[r.a],a=this.vertices[r.b],s=this.vertices[r.c];t.subVectors(s,a),e.subVectors(o,a),t.cross(e),t.normalize(),r.normal.copy(t)}},computeVertexNormals:function(t){var e,n,i,r,o,a;for(void 0===t&&(t=!0),a=new Array(this.vertices.length),e=0,n=this.vertices.length;e<n;e++)a[e]=new en;if(t){var s,c,l,u=new en,h=new en;for(i=0,r=this.faces.length;i<r;i++)o=this.faces[i],s=this.vertices[o.a],c=this.vertices[o.b],l=this.vertices[o.c],u.subVectors(l,c),h.subVectors(s,c),u.cross(h),a[o.a].add(u),a[o.b].add(u),a[o.c].add(u)}else for(this.computeFaceNormals(),i=0,r=this.faces.length;i<r;i++)a[(o=this.faces[i]).a].add(o.normal),a[o.b].add(o.normal),a[o.c].add(o.normal);for(e=0,n=this.vertices.length;e<n;e++)a[e].normalize();for(i=0,r=this.faces.length;i<r;i++){var d=(o=this.faces[i]).vertexNormals;3===d.length?(d[0].copy(a[o.a]),d[1].copy(a[o.b]),d[2].copy(a[o.c])):(d[0]=a[o.a].clone(),d[1]=a[o.b].clone(),d[2]=a[o.c].clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeFlatVertexNormals:function(){var t,e,n;for(this.computeFaceNormals(),t=0,e=this.faces.length;t<e;t++){var i=(n=this.faces[t]).vertexNormals;3===i.length?(i[0].copy(n.normal),i[1].copy(n.normal),i[2].copy(n.normal)):(i[0]=n.normal.clone(),i[1]=n.normal.clone(),i[2]=n.normal.clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n,i,r;for(n=0,i=this.faces.length;n<i;n++)for((r=this.faces[n]).__originalFaceNormal?r.__originalFaceNormal.copy(r.normal):r.__originalFaceNormal=r.normal.clone(),r.__originalVertexNormals||(r.__originalVertexNormals=[]),t=0,e=r.vertexNormals.length;t<e;t++)r.__originalVertexNormals[t]?r.__originalVertexNormals[t].copy(r.vertexNormals[t]):r.__originalVertexNormals[t]=r.vertexNormals[t].clone();var o=new qn;for(o.faces=this.faces,t=0,e=this.morphTargets.length;t<e;t++){if(!this.morphNormals[t]){this.morphNormals[t]={},this.morphNormals[t].faceNormals=[],this.morphNormals[t].vertexNormals=[];var a=this.morphNormals[t].faceNormals,s=this.morphNormals[t].vertexNormals;for(n=0,i=this.faces.length;n<i;n++)c=new en,l={a:new en,b:new en,c:new en},a.push(c),s.push(l)}var c,l,u=this.morphNormals[t];for(o.vertices=this.morphTargets[t].vertices,o.computeFaceNormals(),o.computeVertexNormals(),n=0,i=this.faces.length;n<i;n++)r=this.faces[n],c=u.faceNormals[n],l=u.vertexNormals[n],c.copy(r.normal),l.a.copy(r.vertexNormals[0]),l.b.copy(r.vertexNormals[1]),l.c.copy(r.vertexNormals[2])}for(n=0,i=this.faces.length;n<i;n++)(r=this.faces[n]).normal=r.__originalFaceNormal,r.vertexNormals=r.__originalVertexNormals},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new gn),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new yn),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(t&&t.isGeometry){var i,r=this.vertices.length,o=this.vertices,a=t.vertices,s=this.faces,c=t.faces,l=this.faceVertexUvs[0],u=t.faceVertexUvs[0],h=this.colors,d=t.colors;void 0===n&&(n=0),void 0!==e&&(i=(new nn).getNormalMatrix(e));for(var f=0,p=a.length;f<p;f++){var m=a[f].clone();void 0!==e&&m.applyMatrix4(e),o.push(m)}for(f=0,p=d.length;f<p;f++)h.push(d[f].clone());for(f=0,p=c.length;f<p;f++){var v,g,y,b=c[f],x=b.vertexNormals,_=b.vertexColors;(v=new Rn(b.a+r,b.b+r,b.c+r)).normal.copy(b.normal),void 0!==i&&v.normal.applyMatrix3(i).normalize();for(var w=0,S=x.length;w<S;w++)g=x[w].clone(),void 0!==i&&g.applyMatrix3(i).normalize(),v.vertexNormals.push(g);v.color.copy(b.color);for(w=0,S=_.length;w<S;w++)y=_[w],v.vertexColors.push(y.clone());v.materialIndex=b.materialIndex+n,s.push(v)}for(f=0,p=u.length;f<p;f++){var T=u[f],E=[];if(void 0!==T){for(w=0,S=T.length;w<S;w++)E.push(T[w].clone());l.push(E)}}}else console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t)},mergeMesh:function(t){t&&t.isMesh?(t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)):console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t)},mergeVertices:function(){var t,e,n,i,r,o,a,s,c={},l=[],u=[],h=Math.pow(10,4);for(n=0,i=this.vertices.length;n<i;n++)t=this.vertices[n],void 0===c[e=Math.round(t.x*h)+"_"+Math.round(t.y*h)+"_"+Math.round(t.z*h)]?(c[e]=n,l.push(this.vertices[n]),u[n]=l.length-1):u[n]=u[c[e]];var d=[];for(n=0,i=this.faces.length;n<i;n++){(r=this.faces[n]).a=u[r.a],r.b=u[r.b],r.c=u[r.c],o=[r.a,r.b,r.c];for(var f=0;f<3;f++)if(o[f]===o[(f+1)%3]){d.push(n);break}}for(n=d.length-1;n>=0;n--){var p=d[n];for(this.faces.splice(p,1),a=0,s=this.faceVertexUvs.length;a<s;a++)this.faceVertexUvs[a].splice(p,1)}var m=this.vertices.length-l.length;return this.vertices=l,m},setFromPoints:function(t){this.vertices=[];for(var e=0,n=t.length;e<n;e++){var i=t[e];this.vertices.push(new en(i.x,i.y,i.z||0))}return this},sortFacesByMaterialIndex:function(){for(var t=this.faces,e=t.length,n=0;n<e;n++)t[n]._id=n;t.sort(function(t,e){return t.materialIndex-e.materialIndex});var i,r,o=this.faceVertexUvs[0],a=this.faceVertexUvs[1];o&&o.length===e&&(i=[]),a&&a.length===e&&(r=[]);for(n=0;n<e;n++){var s=t[n]._id;i&&i.push(o[s]),r&&r.push(a[s])}i&&(this.faceVertexUvs[0]=i),r&&(this.faceVertexUvs[1]=r)},toJSON:function(){var t={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),void 0!==this.parameters){var e=this.parameters;for(var n in e)void 0!==e[n]&&(t[n]=e[n]);return t}for(var i=[],r=0;r<this.vertices.length;r++){var o=this.vertices[r];i.push(o.x,o.y,o.z)}var a=[],s=[],c={},l=[],u={},h=[],d={};for(r=0;r<this.faces.length;r++){var f=this.faces[r],p=void 0!==this.faceVertexUvs[0][r],m=f.normal.length()>0,v=f.vertexNormals.length>0,g=1!==f.color.r||1!==f.color.g||1!==f.color.b,y=f.vertexColors.length>0,b=0;if(b=S(b=S(b=S(b=S(b=S(b=S(b=S(b=S(b,0,0),1,!0),2,!1),3,p),4,m),5,v),6,g),7,y),a.push(b),a.push(f.a,f.b,f.c),a.push(f.materialIndex),p){var x=this.faceVertexUvs[0][r];a.push(M(x[0]),M(x[1]),M(x[2]))}if(m&&a.push(T(f.normal)),v){var _=f.vertexNormals;a.push(T(_[0]),T(_[1]),T(_[2]))}if(g&&a.push(E(f.color)),y){var w=f.vertexColors;a.push(E(w[0]),E(w[1]),E(w[2]))}}function S(t,e,n){return n?t|1<<e:t&~(1<<e)}function T(t){var e=t.x.toString()+t.y.toString()+t.z.toString();return void 0!==c[e]?c[e]:(c[e]=s.length/3,s.push(t.x,t.y,t.z),c[e])}function E(t){var e=t.r.toString()+t.g.toString()+t.b.toString();return void 0!==u[e]?u[e]:(u[e]=l.length,l.push(t.getHex()),u[e])}function M(t){var e=t.x.toString()+t.y.toString();return void 0!==d[e]?d[e]:(d[e]=h.length/2,h.push(t.x,t.y),d[e])}return t.data={},t.data.vertices=i,t.data.normals=s,l.length>0&&(t.data.colors=l),h.length>0&&(t.data.uvs=[h]),t.data.faces=a,t},clone:function(){return(new qn).copy(this)},copy:function(t){var e,n,i,r,o,a;this.vertices=[],this.colors=[],this.faces=[],this.faceVertexUvs=[[]],this.morphTargets=[],this.morphNormals=[],this.skinWeights=[],this.skinIndices=[],this.lineDistances=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var s=t.vertices;for(e=0,n=s.length;e<n;e++)this.vertices.push(s[e].clone());var c=t.colors;for(e=0,n=c.length;e<n;e++)this.colors.push(c[e].clone());var l=t.faces;for(e=0,n=l.length;e<n;e++)this.faces.push(l[e].clone());for(e=0,n=t.faceVertexUvs.length;e<n;e++){var u=t.faceVertexUvs[e];for(void 0===this.faceVertexUvs[e]&&(this.faceVertexUvs[e]=[]),i=0,r=u.length;i<r;i++){var h=u[i],d=[];for(o=0,a=h.length;o<a;o++){var f=h[o];d.push(f.clone())}this.faceVertexUvs[e].push(d)}}var p=t.morphTargets;for(e=0,n=p.length;e<n;e++){var m={};if(m.name=p[e].name,void 0!==p[e].vertices)for(m.vertices=[],i=0,r=p[e].vertices.length;i<r;i++)m.vertices.push(p[e].vertices[i].clone());if(void 0!==p[e].normals)for(m.normals=[],i=0,r=p[e].normals.length;i<r;i++)m.normals.push(p[e].normals[i].clone());this.morphTargets.push(m)}var v=t.morphNormals;for(e=0,n=v.length;e<n;e++){var g={};if(void 0!==v[e].vertexNormals)for(g.vertexNormals=[],i=0,r=v[e].vertexNormals.length;i<r;i++){var y=v[e].vertexNormals[i],b={};b.a=y.a.clone(),b.b=y.b.clone(),b.c=y.c.clone(),g.vertexNormals.push(b)}if(void 0!==v[e].faceNormals)for(g.faceNormals=[],i=0,r=v[e].faceNormals.length;i<r;i++)g.faceNormals.push(v[e].faceNormals[i].clone());this.morphNormals.push(g)}var x=t.skinWeights;for(e=0,n=x.length;e<n;e++)this.skinWeights.push(x[e].clone());var _=t.skinIndices;for(e=0,n=_.length;e<n;e++)this.skinIndices.push(_[e].clone());var w=t.lineDistances;for(e=0,n=w.length;e<n;e++)this.lineDistances.push(w[e]);var S=t.boundingBox;null!==S&&(this.boundingBox=S.clone());var T=t.boundingSphere;return null!==T&&(this.boundingSphere=T.clone()),this.elementsNeedUpdate=t.elementsNeedUpdate,this.verticesNeedUpdate=t.verticesNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.lineDistancesNeedUpdate=t.lineDistancesNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(Xn.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(Xn.prototype,{isBufferAttribute:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=void 0!==t?t.length/this.itemSize:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.name=t.name,this.array=new t.array.constructor(t.array),this.itemSize=t.itemSize,this.count=t.count,this.normalized=t.normalized,this.dynamic=t.dynamic,this},copyAt:function(t,e,n){t*=this.itemSize,n*=e.itemSize;for(var i=0,r=this.itemSize;i<r;i++)this.array[t+i]=e.array[n+i];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];void 0===o&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",i),o=new On),e[n++]=o.r,e[n++]=o.g,e[n++]=o.b}return this},copyVector2sArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",i),o=new Je),e[n++]=o.x,e[n++]=o.y}return this},copyVector3sArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",i),o=new en),e[n++]=o.x,e[n++]=o.y,e[n++]=o.z}return this},copyVector4sArray:function(t){for(var e=this.array,n=0,i=0,r=t.length;i<r;i++){var o=t[i];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",i),o=new dn),e[n++]=o.x,e[n++]=o.y,e[n++]=o.z,e[n++]=o.w}return this},set:function(t,e){return void 0===e&&(e=0),this.array.set(t,e),this},getX:function(t){return this.array[t*this.itemSize]},setX:function(t,e){return this.array[t*this.itemSize]=e,this},getY:function(t){return this.array[t*this.itemSize+1]},setY:function(t,e){return this.array[t*this.itemSize+1]=e,this},getZ:function(t){return this.array[t*this.itemSize+2]},setZ:function(t,e){return this.array[t*this.itemSize+2]=e,this},getW:function(t){return this.array[t*this.itemSize+3]},setW:function(t,e){return this.array[t*this.itemSize+3]=e,this},setXY:function(t,e,n){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this},setXYZ:function(t,e,n,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this},setXYZW:function(t,e,n,i,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=i,this.array[t+3]=r,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),Yn.prototype=Object.create(Xn.prototype),Yn.prototype.constructor=Yn,Kn.prototype=Object.create(Xn.prototype),Kn.prototype.constructor=Kn,Zn.prototype=Object.create(Xn.prototype),Zn.prototype.constructor=Zn,Jn.prototype=Object.create(Xn.prototype),Jn.prototype.constructor=Jn,Qn.prototype=Object.create(Xn.prototype),Qn.prototype.constructor=Qn,ti.prototype=Object.create(Xn.prototype),ti.prototype.constructor=ti,ei.prototype=Object.create(Xn.prototype),ei.prototype.constructor=ei,ni.prototype=Object.create(Xn.prototype),ni.prototype.constructor=ni,ii.prototype=Object.create(Xn.prototype),ii.prototype.constructor=ii,Object.assign(ri.prototype,{computeGroups:function(t){for(var e,n=[],i=void 0,r=t.faces,o=0;o<r.length;o++){var a=r[o];a.materialIndex!==i&&(i=a.materialIndex,void 0!==e&&(e.count=3*o-e.start,n.push(e)),e={start:3*o,materialIndex:i})}void 0!==e&&(e.count=3*o-e.start,n.push(e)),this.groups=n},fromGeometry:function(t){var e,n=t.faces,i=t.vertices,r=t.faceVertexUvs,o=r[0]&&r[0].length>0,a=r[1]&&r[1].length>0,s=t.morphTargets,c=s.length;if(c>0){e=[];for(var l=0;l<c;l++)e[l]={name:s[l].name,data:[]};this.morphTargets.position=e}var u,h=t.morphNormals,d=h.length;if(d>0){u=[];for(l=0;l<d;l++)u[l]={name:h[l].name,data:[]};this.morphTargets.normal=u}var f=t.skinIndices,p=t.skinWeights,m=f.length===i.length,v=p.length===i.length;i.length>0&&0===n.length&&console.error("THREE.DirectGeometry: Faceless geometries are not supported.");for(l=0;l<n.length;l++){var g=n[l];this.vertices.push(i[g.a],i[g.b],i[g.c]);var y=g.vertexNormals;if(3===y.length)this.normals.push(y[0],y[1],y[2]);else{var b=g.normal;this.normals.push(b,b,b)}var x,_=g.vertexColors;if(3===_.length)this.colors.push(_[0],_[1],_[2]);else{var w=g.color;this.colors.push(w,w,w)}if(!0===o)void 0!==(x=r[0][l])?this.uvs.push(x[0],x[1],x[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",l),this.uvs.push(new Je,new Je,new Je));if(!0===a)void 0!==(x=r[1][l])?this.uvs2.push(x[0],x[1],x[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",l),this.uvs2.push(new Je,new Je,new Je));for(var S=0;S<c;S++){var T=s[S].vertices;e[S].data.push(T[g.a],T[g.b],T[g.c])}for(S=0;S<d;S++){var E=h[S].vertexNormals[l];u[S].data.push(E.a,E.b,E.c)}m&&this.skinIndices.push(f[g.a],f[g.b],f[g.c]),v&&this.skinWeights.push(p[g.a],p[g.b],p[g.c])}return this.computeGroups(t),this.verticesNeedUpdate=t.verticesNeedUpdate,this.normalsNeedUpdate=t.normalsNeedUpdate,this.colorsNeedUpdate=t.colorsNeedUpdate,this.uvsNeedUpdate=t.uvsNeedUpdate,this.groupsNeedUpdate=t.groupsNeedUpdate,this}});var ai=1;function si(){Object.defineProperty(this,"id",{value:ai+=2}),this.uuid=Ze.generateUUID(),this.name="",this.type="BufferGeometry",this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.drawRange={start:0,count:1/0},this.userData={}}function ci(t,e,n,i,r,o){qn.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:o},this.fromBufferGeometry(new li(t,e,n,i,r,o)),this.mergeVertices()}function li(t,e,n,i,r,o){si.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:i,heightSegments:r,depthSegments:o};var a=this;t=t||1,e=e||1,n=n||1,i=Math.floor(i)||1,r=Math.floor(r)||1;var s=[],c=[],l=[],u=[],h=0,d=0;function f(t,e,n,i,r,o,f,p,m,v,g){var y,b,x=o/m,_=f/v,w=o/2,S=f/2,T=p/2,E=m+1,M=v+1,C=0,L=0,O=new en;for(b=0;b<M;b++){var k=b*_-S;for(y=0;y<E;y++){var P=y*x-w;O[t]=P*i,O[e]=k*r,O[n]=T,c.push(O.x,O.y,O.z),O[t]=0,O[e]=0,O[n]=p>0?1:-1,l.push(O.x,O.y,O.z),u.push(y/m),u.push(1-b/v),C+=1}}for(b=0;b<v;b++)for(y=0;y<m;y++){var A=h+y+E*b,I=h+y+E*(b+1),D=h+(y+1)+E*(b+1),R=h+(y+1)+E*b;s.push(A,I,R),s.push(I,D,R),L+=6}a.addGroup(d,L,g),d+=L,h+=C}f("z","y","x",-1,-1,n,e,t,o=Math.floor(o)||1,r,0),f("z","y","x",1,-1,n,e,-t,o,r,1),f("x","z","y",1,1,t,n,e,i,o,2),f("x","z","y",1,-1,t,n,-e,i,o,3),f("x","y","z",1,-1,t,e,n,i,r,4),f("x","y","z",-1,-1,t,e,-n,i,r,5),this.setIndex(s),this.addAttribute("position",new ni(c,3)),this.addAttribute("normal",new ni(l,3)),this.addAttribute("uv",new ni(u,2))}function ui(t,e,n,i){qn.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i},this.fromBufferGeometry(new hi(t,e,n,i)),this.mergeVertices()}function hi(t,e,n,i){si.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:i};var r,o,a=(t=t||1)/2,s=(e=e||1)/2,c=Math.floor(n)||1,l=Math.floor(i)||1,u=c+1,h=l+1,d=t/c,f=e/l,p=[],m=[],v=[],g=[];for(o=0;o<h;o++){var y=o*f-s;for(r=0;r<u;r++){var b=r*d-a;m.push(b,-y,0),v.push(0,0,1),g.push(r/c),g.push(1-o/l)}}for(o=0;o<l;o++)for(r=0;r<c;r++){var x=r+u*o,_=r+u*(o+1),w=r+1+u*(o+1),S=r+1+u*o;p.push(x,_,S),p.push(_,w,S)}this.setIndex(p),this.addAttribute("position",new ni(m,3)),this.addAttribute("normal",new ni(v,3)),this.addAttribute("uv",new ni(g,2))}si.prototype=Object.assign(Object.create(i.prototype),{constructor:si,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(oi(t)>65535?ei:Qn)(t,1):this.index=t},addAttribute:function(t,e){return e&&e.isBufferAttribute||e&&e.isInterleavedBufferAttribute?"index"===t?(console.warn("THREE.BufferGeometry.addAttribute: Use .setIndex() for index attribute."),this.setIndex(e),this):(this.attributes[t]=e,this):(console.warn("THREE.BufferGeometry: .addAttribute() now expects ( name, attribute )."),this.addAttribute(t,new Xn(arguments[1],arguments[2])))},getAttribute:function(t){return this.attributes[t]},removeAttribute:function(t){return delete this.attributes[t],this},addGroup:function(t,e,n){this.groups.push({start:t,count:e,materialIndex:void 0!==n?n:0})},clearGroups:function(){this.groups=[]},setDrawRange:function(t,e){this.drawRange.start=t,this.drawRange.count=e},applyMatrix:function(t){var e=this.attributes.position;void 0!==e&&(t.applyToBufferAttribute(e),e.needsUpdate=!0);var n=this.attributes.normal;void 0!==n&&((new nn).getNormalMatrix(t).applyToBufferAttribute(n),n.needsUpdate=!0);var i=this.attributes.tangent;void 0!==i&&((new nn).getNormalMatrix(t).applyToBufferAttribute(i),i.needsUpdate=!0);return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var t=new Qe;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new Qe;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new Qe;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new Qe;return function(e,n,i){return t.makeTranslation(e,n,i),this.applyMatrix(t),this}}(),scale:function(){var t=new Qe;return function(e,n,i){return t.makeScale(e,n,i),this.applyMatrix(t),this}}(),lookAt:function(){var t=new Gn;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){var t=new en;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),setFromObject:function(t){var e=t.geometry;if(t.isPoints||t.isLine){var n=new ni(3*e.vertices.length,3),i=new ni(3*e.colors.length,3);if(this.addAttribute("position",n.copyVector3sArray(e.vertices)),this.addAttribute("color",i.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length){var r=new ni(e.lineDistances.length,1);this.addAttribute("lineDistance",r.copyArray(e.lineDistances))}null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],n=0,i=t.length;n<i;n++){var r=t[n];e.push(r.x,r.y,r.z||0)}return this.addAttribute("position",new ni(e,3)),this},updateFromObject:function(t){var e,n=t.geometry;if(t.isMesh){var i=n.__directGeometry;if(!0===n.elementsNeedUpdate&&(i=void 0,n.elementsNeedUpdate=!1),void 0===i)return this.fromGeometry(n);i.verticesNeedUpdate=n.verticesNeedUpdate,i.normalsNeedUpdate=n.normalsNeedUpdate,i.colorsNeedUpdate=n.colorsNeedUpdate,i.uvsNeedUpdate=n.uvsNeedUpdate,i.groupsNeedUpdate=n.groupsNeedUpdate,n.verticesNeedUpdate=!1,n.normalsNeedUpdate=!1,n.colorsNeedUpdate=!1,n.uvsNeedUpdate=!1,n.groupsNeedUpdate=!1,n=i}return!0===n.verticesNeedUpdate&&(void 0!==(e=this.attributes.position)&&(e.copyVector3sArray(n.vertices),e.needsUpdate=!0),n.verticesNeedUpdate=!1),!0===n.normalsNeedUpdate&&(void 0!==(e=this.attributes.normal)&&(e.copyVector3sArray(n.normals),e.needsUpdate=!0),n.normalsNeedUpdate=!1),!0===n.colorsNeedUpdate&&(void 0!==(e=this.attributes.color)&&(e.copyColorsArray(n.colors),e.needsUpdate=!0),n.colorsNeedUpdate=!1),n.uvsNeedUpdate&&(void 0!==(e=this.attributes.uv)&&(e.copyVector2sArray(n.uvs),e.needsUpdate=!0),n.uvsNeedUpdate=!1),n.lineDistancesNeedUpdate&&(void 0!==(e=this.attributes.lineDistance)&&(e.copyArray(n.lineDistances),e.needsUpdate=!0),n.lineDistancesNeedUpdate=!1),n.groupsNeedUpdate&&(n.computeGroups(t.geometry),this.groups=n.groups,n.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=(new ri).fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);if(this.addAttribute("position",new Xn(e,3).copyVector3sArray(t.vertices)),t.normals.length>0){var n=new Float32Array(3*t.normals.length);this.addAttribute("normal",new Xn(n,3).copyVector3sArray(t.normals))}if(t.colors.length>0){var i=new Float32Array(3*t.colors.length);this.addAttribute("color",new Xn(i,3).copyColorsArray(t.colors))}if(t.uvs.length>0){var r=new Float32Array(2*t.uvs.length);this.addAttribute("uv",new Xn(r,2).copyVector2sArray(t.uvs))}if(t.uvs2.length>0){var o=new Float32Array(2*t.uvs2.length);this.addAttribute("uv2",new Xn(o,2).copyVector2sArray(t.uvs2))}for(var a in this.groups=t.groups,t.morphTargets){for(var s=[],c=t.morphTargets[a],l=0,u=c.length;l<u;l++){var h=c[l],d=new ni(3*h.data.length,3);d.name=h.name,s.push(d.copyVector3sArray(h.data))}this.morphAttributes[a]=s}if(t.skinIndices.length>0){var f=new ni(4*t.skinIndices.length,4);this.addAttribute("skinIndex",f.copyVector4sArray(t.skinIndices))}if(t.skinWeights.length>0){var p=new ni(4*t.skinWeights.length,4);this.addAttribute("skinWeight",p.copyVector4sArray(t.skinWeights))}return null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),this},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new gn);var t=this.attributes.position;void 0!==t?this.boundingBox.setFromBufferAttribute(t):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 t=new gn,e=new en;return function(){null===this.boundingSphere&&(this.boundingSphere=new yn);var n=this.attributes.position;if(n){var i=this.boundingSphere.center;t.setFromBufferAttribute(n),t.getCenter(i);for(var r=0,o=0,a=n.count;o<a;o++)e.x=n.getX(o),e.y=n.getY(o),e.z=n.getZ(o),r=Math.max(r,i.distanceToSquared(e));this.boundingSphere.radius=Math.sqrt(r),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 t=this.index,e=this.attributes;if(e.position){var n=e.position.array;if(void 0===e.normal)this.addAttribute("normal",new Xn(new Float32Array(n.length),3));else for(var i=e.normal.array,r=0,o=i.length;r<o;r++)i[r]=0;var a,s,c,l=e.normal.array,u=new en,h=new en,d=new en,f=new en,p=new en;if(t){var m=t.array;for(r=0,o=t.count;r<o;r+=3)a=3*m[r+0],s=3*m[r+1],c=3*m[r+2],u.fromArray(n,a),h.fromArray(n,s),d.fromArray(n,c),f.subVectors(d,h),p.subVectors(u,h),f.cross(p),l[a]+=f.x,l[a+1]+=f.y,l[a+2]+=f.z,l[s]+=f.x,l[s+1]+=f.y,l[s+2]+=f.z,l[c]+=f.x,l[c+1]+=f.y,l[c+2]+=f.z}else for(r=0,o=n.length;r<o;r+=9)u.fromArray(n,r),h.fromArray(n,r+3),d.fromArray(n,r+6),f.subVectors(d,h),p.subVectors(u,h),f.cross(p),l[r]=f.x,l[r+1]=f.y,l[r+2]=f.z,l[r+3]=f.x,l[r+4]=f.y,l[r+5]=f.z,l[r+6]=f.x,l[r+7]=f.y,l[r+8]=f.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(t&&t.isBufferGeometry){void 0===e&&(e=0,console.warn("THREE.BufferGeometry.merge(): Overwriting original geometry, starting at offset=0. Use BufferGeometryUtils.mergeBufferGeometries() for lossless merge."));var n=this.attributes;for(var i in n)if(void 0!==t.attributes[i])for(var r=n[i].array,o=t.attributes[i],a=o.array,s=0,c=o.itemSize*e;s<a.length;s++,c++)r[c]=a[s];return this}console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t)},normalizeNormals:function(){var t=new en;return function(){for(var e=this.attributes.normal,n=0,i=e.count;n<i;n++)t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.normalize(),e.setXYZ(n,t.x,t.y,t.z)}}(),toNonIndexed:function(){function t(t,e){for(var n=t.array,i=t.itemSize,r=new n.constructor(e.length*i),o=0,a=0,s=0,c=e.length;s<c;s++){o=e[s]*i;for(var l=0;l<i;l++)r[a++]=n[o++]}return new Xn(r,i)}if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var e=new si,n=this.index.array,i=this.attributes;for(var r in i){var o=t(i[r],n);e.addAttribute(r,o)}var a=this.morphAttributes;for(r in a){for(var s=[],c=a[r],l=0,u=c.length;l<u;l++){o=t(c[l],n);s.push(o)}e.morphAttributes[r]=s}for(var h=this.groups,d=(l=0,h.length);l<d;l++){var f=h[l];e.addGroup(f.start,f.count,f.materialIndex)}return e},toJSON:function(){var t={metadata:{version:4.5,type:"BufferGeometry",generator:"BufferGeometry.toJSON"}};if(t.uuid=this.uuid,t.type=this.type,""!==this.name&&(t.name=this.name),Object.keys(this.userData).length>0&&(t.userData=this.userData),void 0!==this.parameters){var e=this.parameters;for(var n in e)void 0!==e[n]&&(t[n]=e[n]);return t}t.data={attributes:{}};var i=this.index;null!==i&&(t.data.index={type:i.array.constructor.name,array:Array.prototype.slice.call(i.array)});var r=this.attributes;for(var n in r){var o={itemSize:(d=r[n]).itemSize,type:d.array.constructor.name,array:Array.prototype.slice.call(d.array),normalized:d.normalized};""!==d.name&&(o.name=d.name),t.data.attributes[n]=o}var a={},s=!1;for(var n in this.morphAttributes){for(var c=this.morphAttributes[n],l=[],u=0,h=c.length;u<h;u++){var d;o={itemSize:(d=c[u]).itemSize,type:d.array.constructor.name,array:Array.prototype.slice.call(d.array),normalized:d.normalized};""!==d.name&&(o.name=d.name),l.push(o)}l.length>0&&(a[n]=l,s=!0)}s&&(t.data.morphAttributes=a);var f=this.groups;f.length>0&&(t.data.groups=JSON.parse(JSON.stringify(f)));var p=this.boundingSphere;return null!==p&&(t.data.boundingSphere={center:p.center.toArray(),radius:p.radius}),t},clone:function(){return(new si).copy(this)},copy:function(t){var e,n,i;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var r=t.index;null!==r&&this.setIndex(r.clone());var o=t.attributes;for(e in o){var a=o[e];this.addAttribute(e,a.clone())}var s=t.morphAttributes;for(e in s){var c=[],l=s[e];for(n=0,i=l.length;n<i;n++)c.push(l[n].clone());this.morphAttributes[e]=c}var u=t.groups;for(n=0,i=u.length;n<i;n++){var h=u[n];this.addGroup(h.start,h.count,h.materialIndex)}var d=t.boundingBox;null!==d&&(this.boundingBox=d.clone());var f=t.boundingSphere;return null!==f&&(this.boundingSphere=f.clone()),this.drawRange.start=t.drawRange.start,this.drawRange.count=t.drawRange.count,this.userData=t.userData,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),ci.prototype=Object.create(qn.prototype),ci.prototype.constructor=ci,li.prototype=Object.create(si.prototype),li.prototype.constructor=li,ui.prototype=Object.create(qn.prototype),ui.prototype.constructor=ui,hi.prototype=Object.create(si.prototype),hi.prototype.constructor=hi;var di=0;function fi(){Object.defineProperty(this,"id",{value:di++}),this.uuid=Ze.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.lights=!0,this.blending=B,this.side=C,this.flatShading=!1,this.vertexTangents=!1,this.vertexColors=A,this.opacity=1,this.transparent=!1,this.blendSrc=K,this.blendDst=Z,this.blendEquation=V,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=at,this.depthTest=!0,this.depthWrite=!0,this.clippingPlanes=null,this.clipIntersection=!1,this.clipShadows=!1,this.shadowSide=null,this.colorWrite=!0,this.precision=null,this.polygonOffset=!1,this.polygonOffsetFactor=0,this.polygonOffsetUnits=0,this.dithering=!1,this.alphaTest=0,this.premultipliedAlpha=!1,this.visible=!0,this.userData={},this.needsUpdate=!0}fi.prototype=Object.assign(Object.create(i.prototype),{constructor:fi,isMaterial:!0,onBeforeCompile:function(){},setValues:function(t){if(void 0!==t)for(var e in t){var n=t[e];if(void 0!==n)if("shading"!==e){var i=this[e];void 0!==i?i&&i.isColor?i.set(n):i&&i.isVector3&&n&&n.isVector3?i.copy(n):this[e]=n:console.warn("THREE."+this.type+": '"+e+"' is not a property of this material.")}else console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=n===k;else console.warn("THREE.Material: '"+e+"' parameter is undefined.")}},toJSON:function(t){var e=void 0===t||"string"==typeof t;e&&(t={textures:{},images:{}});var n={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};function i(t){var e=[];for(var n in t){var i=t[n];delete i.metadata,e.push(i)}return e}if(n.uuid=this.uuid,n.type=this.type,""!==this.name&&(n.name=this.name),this.color&&this.color.isColor&&(n.color=this.color.getHex()),void 0!==this.roughness&&(n.roughness=this.roughness),void 0!==this.metalness&&(n.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(n.emissive=this.emissive.getHex()),1!==this.emissiveIntensity&&(n.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(n.specular=this.specular.getHex()),void 0!==this.shininess&&(n.shininess=this.shininess),void 0!==this.clearCoat&&(n.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(n.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(n.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(n.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(n.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(n.aoMap=this.aoMap.toJSON(t).uuid,n.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(n.bumpMap=this.bumpMap.toJSON(t).uuid,n.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(n.normalMap=this.normalMap.toJSON(t).uuid,n.normalMapType=this.normalMapType,n.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(n.displacementMap=this.displacementMap.toJSON(t).uuid,n.displacementScale=this.displacementScale,n.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(n.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(n.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(n.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(n.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(n.envMap=this.envMap.toJSON(t).uuid,n.reflectivity=this.reflectivity,void 0!==this.combine&&(n.combine=this.combine),void 0!==this.envMapIntensity&&(n.envMapIntensity=this.envMapIntensity)),this.gradientMap&&this.gradientMap.isTexture&&(n.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(n.size=this.size),void 0!==this.sizeAttenuation&&(n.sizeAttenuation=this.sizeAttenuation),this.blending!==B&&(n.blending=this.blending),!0===this.flatShading&&(n.flatShading=this.flatShading),this.side!==C&&(n.side=this.side),this.vertexColors!==A&&(n.vertexColors=this.vertexColors),this.opacity<1&&(n.opacity=this.opacity),!0===this.transparent&&(n.transparent=this.transparent),n.depthFunc=this.depthFunc,n.depthTest=this.depthTest,n.depthWrite=this.depthWrite,0!==this.rotation&&(n.rotation=this.rotation),!0===this.polygonOffset&&(n.polygonOffset=!0),0!==this.polygonOffsetFactor&&(n.polygonOffsetFactor=this.polygonOffsetFactor),0!==this.polygonOffsetUnits&&(n.polygonOffsetUnits=this.polygonOffsetUnits),1!==this.linewidth&&(n.linewidth=this.linewidth),void 0!==this.dashSize&&(n.dashSize=this.dashSize),void 0!==this.gapSize&&(n.gapSize=this.gapSize),void 0!==this.scale&&(n.scale=this.scale),!0===this.dithering&&(n.dithering=!0),this.alphaTest>0&&(n.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(n.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(n.wireframe=this.wireframe),this.wireframeLinewidth>1&&(n.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(n.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(n.wireframeLinejoin=this.wireframeLinejoin),!0===this.morphTargets&&(n.morphTargets=!0),!0===this.skinning&&(n.skinning=!0),!1===this.visible&&(n.visible=!1),"{}"!==JSON.stringify(this.userData)&&(n.userData=this.userData),e){var r=i(t.textures),o=i(t.images);r.length>0&&(n.textures=r),o.length>0&&(n.images=o)}return n},clone:function(){return(new this.constructor).copy(this)},copy:function(t){this.name=t.name,this.fog=t.fog,this.lights=t.lights,this.blending=t.blending,this.side=t.side,this.flatShading=t.flatShading,this.vertexColors=t.vertexColors,this.opacity=t.opacity,this.transparent=t.transparent,this.blendSrc=t.blendSrc,this.blendDst=t.blendDst,this.blendEquation=t.blendEquation,this.blendSrcAlpha=t.blendSrcAlpha,this.blendDstAlpha=t.blendDstAlpha,this.blendEquationAlpha=t.blendEquationAlpha,this.depthFunc=t.depthFunc,this.depthTest=t.depthTest,this.depthWrite=t.depthWrite,this.colorWrite=t.colorWrite,this.precision=t.precision,this.polygonOffset=t.polygonOffset,this.polygonOffsetFactor=t.polygonOffsetFactor,this.polygonOffsetUnits=t.polygonOffsetUnits,this.dithering=t.dithering,this.alphaTest=t.alphaTest,this.premultipliedAlpha=t.premultipliedAlpha,this.visible=t.visible,this.userData=JSON.parse(JSON.stringify(t.userData)),this.clipShadows=t.clipShadows,this.clipIntersection=t.clipIntersection;var e=t.clippingPlanes,n=null;if(null!==e){var i=e.length;n=new Array(i);for(var r=0;r!==i;++r)n[r]=e[r].clone()}return this.clippingPlanes=n,this.shadowSide=t.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}});var pi,mi,vi,gi,yi,bi,xi,_i,wi,Si,Ti,Ei,Mi="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",Ci="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}";function Li(t){fi.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader=Mi,this.fragmentShader=Ci,this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.clipping=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!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,this.uniformsNeedUpdate=!1,void 0!==t&&(void 0!==t.attributes&&console.error("THREE.ShaderMaterial: attributes should now be defined in THREE.BufferGeometry instead."),this.setValues(t))}function Oi(t,e){this.origin=void 0!==t?t:new en,this.direction=void 0!==e?e:new en}function ki(t,e,n){this.a=void 0!==t?t:new en,this.b=void 0!==e?e:new en,this.c=void 0!==n?n:new en}function Pi(t){fi.call(this),this.type="MeshBasicMaterial",this.color=new On(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ht,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.lights=!1,this.setValues(t)}function Ai(t,e){Gn.call(this),this.type="Mesh",this.geometry=void 0!==t?t:new si,this.material=void 0!==e?e:new Pi({color:16777215*Math.random()}),this.drawMode=Be,this.updateMorphTargets()}function Ii(t,e){return Math.abs(e[1])-Math.abs(t[1])}function Di(t,e,n,i,r,o,a,s,c,l){t=void 0!==t?t:[],e=void 0!==e?e:_t,a=void 0!==a?a:Kt,hn.call(this,t,e,n,i,r,o,a,s,c,l),this.flipY=!1}function Ri(t,e,n,i){hn.call(this,null),this.image={data:t,width:e,height:n,depth:i},this.magFilter=Pt,this.minFilter=Pt,this.wrapR=Ot,this.generateMipmaps=!1,this.flipY=!1}Li.prototype=Object.create(fi.prototype),Li.prototype.constructor=Li,Li.prototype.isShaderMaterial=!0,Li.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=wn(t.uniforms),this.defines=Object.assign({},t.defines),this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.lights=t.lights,this.clipping=t.clipping,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this.extensions=t.extensions,this},Li.prototype.toJSON=function(t){var e=fi.prototype.toJSON.call(this,t);for(var n in e.uniforms={},this.uniforms){var i=this.uniforms[n].value;i&&i.isTexture?e.uniforms[n]={type:"t",value:i.toJSON(t).uuid}:i&&i.isColor?e.uniforms[n]={type:"c",value:i.getHex()}:i&&i.isVector2?e.uniforms[n]={type:"v2",value:i.toArray()}:i&&i.isVector3?e.uniforms[n]={type:"v3",value:i.toArray()}:i&&i.isVector4?e.uniforms[n]={type:"v4",value:i.toArray()}:i&&i.isMatrix3?e.uniforms[n]={type:"m3",value:i.toArray()}:i&&i.isMatrix4?e.uniforms[n]={type:"m4",value:i.toArray()}:e.uniforms[n]={value:i}}Object.keys(this.defines).length>0&&(e.defines=this.defines),e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader;var r={};for(var o in this.extensions)!0===this.extensions[o]&&(r[o]=!0);return Object.keys(r).length>0&&(e.extensions=r),e},Object.assign(Oi.prototype,{set:function(t,e){return this.origin.copy(t),this.direction.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.origin.copy(t.origin),this.direction.copy(t.direction),this},at:function(t,e){return void 0===e&&(console.warn("THREE.Ray: .at() target is now required"),e=new en),e.copy(this.direction).multiplyScalar(t).add(this.origin)},lookAt:function(t){return this.direction.copy(t).sub(this.origin).normalize(),this},recast:function(){var t=new en;return function(e){return this.origin.copy(this.at(e,t)),this}}(),closestPointToPoint:function(t,e){void 0===e&&(console.warn("THREE.Ray: .closestPointToPoint() target is now required"),e=new en),e.subVectors(t,this.origin);var n=e.dot(this.direction);return n<0?e.copy(this.origin):e.copy(this.direction).multiplyScalar(n).add(this.origin)},distanceToPoint:function(t){return Math.sqrt(this.distanceSqToPoint(t))},distanceSqToPoint:function(){var t=new en;return function(e){var n=t.subVectors(e,this.origin).dot(this.direction);return n<0?this.origin.distanceToSquared(e):(t.copy(this.direction).multiplyScalar(n).add(this.origin),t.distanceToSquared(e))}}(),distanceSqToSegment:(mi=new en,vi=new en,gi=new en,function(t,e,n,i){mi.copy(t).add(e).multiplyScalar(.5),vi.copy(e).sub(t).normalize(),gi.copy(this.origin).sub(mi);var r,o,a,s,c=.5*t.distanceTo(e),l=-this.direction.dot(vi),u=gi.dot(this.direction),h=-gi.dot(vi),d=gi.lengthSq(),f=Math.abs(1-l*l);if(f>0)if(o=l*u-h,s=c*f,(r=l*h-u)>=0)if(o>=-s)if(o<=s){var p=1/f;a=(r*=p)*(r+l*(o*=p)+2*u)+o*(l*r+o+2*h)+d}else o=c,a=-(r=Math.max(0,-(l*o+u)))*r+o*(o+2*h)+d;else o=-c,a=-(r=Math.max(0,-(l*o+u)))*r+o*(o+2*h)+d;else o<=-s?a=-(r=Math.max(0,-(-l*c+u)))*r+(o=r>0?-c:Math.min(Math.max(-c,-h),c))*(o+2*h)+d:o<=s?(r=0,a=(o=Math.min(Math.max(-c,-h),c))*(o+2*h)+d):a=-(r=Math.max(0,-(l*c+u)))*r+(o=r>0?c:Math.min(Math.max(-c,-h),c))*(o+2*h)+d;else o=l>0?-c:c,a=-(r=Math.max(0,-(l*o+u)))*r+o*(o+2*h)+d;return n&&n.copy(this.direction).multiplyScalar(r).add(this.origin),i&&i.copy(vi).multiplyScalar(o).add(mi),a}),intersectSphere:function(){var t=new en;return function(e,n){t.subVectors(e.center,this.origin);var i=t.dot(this.direction),r=t.dot(t)-i*i,o=e.radius*e.radius;if(r>o)return null;var a=Math.sqrt(o-r),s=i-a,c=i+a;return s<0&&c<0?null:s<0?this.at(c,n):this.at(s,n)}}(),intersectsSphere:function(t){return this.distanceSqToPoint(t.center)<=t.radius*t.radius},distanceToPlane:function(t){var e=t.normal.dot(this.direction);if(0===e)return 0===t.distanceToPoint(this.origin)?0:null;var n=-(this.origin.dot(t.normal)+t.constant)/e;return n>=0?n:null},intersectPlane:function(t,e){var n=this.distanceToPlane(t);return null===n?null:this.at(n,e)},intersectsPlane:function(t){var e=t.distanceToPoint(this.origin);return 0===e||t.normal.dot(this.direction)*e<0},intersectBox:function(t,e){var n,i,r,o,a,s,c=1/this.direction.x,l=1/this.direction.y,u=1/this.direction.z,h=this.origin;return c>=0?(n=(t.min.x-h.x)*c,i=(t.max.x-h.x)*c):(n=(t.max.x-h.x)*c,i=(t.min.x-h.x)*c),l>=0?(r=(t.min.y-h.y)*l,o=(t.max.y-h.y)*l):(r=(t.max.y-h.y)*l,o=(t.min.y-h.y)*l),n>o||r>i?null:((r>n||n!=n)&&(n=r),(o<i||i!=i)&&(i=o),u>=0?(a=(t.min.z-h.z)*u,s=(t.max.z-h.z)*u):(a=(t.max.z-h.z)*u,s=(t.min.z-h.z)*u),n>s||a>i?null:((a>n||n!=n)&&(n=a),(s<i||i!=i)&&(i=s),i<0?null:this.at(n>=0?n:i,e)))},intersectsBox:(pi=new en,function(t){return null!==this.intersectBox(t,pi)}),intersectTriangle:function(){var t=new en,e=new en,n=new en,i=new en;return function(r,o,a,s,c){e.subVectors(o,r),n.subVectors(a,r),i.crossVectors(e,n);var l,u=this.direction.dot(i);if(u>0){if(s)return null;l=1}else{if(!(u<0))return null;l=-1,u=-u}t.subVectors(this.origin,r);var h=l*this.direction.dot(n.crossVectors(t,n));if(h<0)return null;var d=l*this.direction.dot(e.cross(t));if(d<0)return null;if(h+d>u)return null;var f=-l*t.dot(i);return f<0?null:this.at(f/u,c)}}(),applyMatrix4:function(t){return this.origin.applyMatrix4(t),this.direction.transformDirection(t),this},equals:function(t){return t.origin.equals(this.origin)&&t.direction.equals(this.direction)}}),Object.assign(ki,{getNormal:(bi=new en,function(t,e,n,i){void 0===i&&(console.warn("THREE.Triangle: .getNormal() target is now required"),i=new en),i.subVectors(n,e),bi.subVectors(t,e),i.cross(bi);var r=i.lengthSq();return r>0?i.multiplyScalar(1/Math.sqrt(r)):i.set(0,0,0)}),getBarycoord:function(){var t=new en,e=new en,n=new en;return function(i,r,o,a,s){t.subVectors(a,r),e.subVectors(o,r),n.subVectors(i,r);var c=t.dot(t),l=t.dot(e),u=t.dot(n),h=e.dot(e),d=e.dot(n),f=c*h-l*l;if(void 0===s&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),s=new en),0===f)return s.set(-2,-1,-1);var p=1/f,m=(h*u-l*d)*p,v=(c*d-l*u)*p;return s.set(1-m-v,v,m)}}(),containsPoint:function(){var t=new en;return function(e,n,i,r){return ki.getBarycoord(e,n,i,r,t),t.x>=0&&t.y>=0&&t.x+t.y<=1}}(),getUV:(yi=new en,function(t,e,n,i,r,o,a,s){return this.getBarycoord(t,e,n,i,yi),s.set(0,0),s.addScaledVector(r,yi.x),s.addScaledVector(o,yi.y),s.addScaledVector(a,yi.z),s})}),Object.assign(ki.prototype,{set:function(t,e,n){return this.a.copy(t),this.b.copy(e),this.c.copy(n),this},setFromPointsAndIndices:function(t,e,n,i){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[i]),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.a.copy(t.a),this.b.copy(t.b),this.c.copy(t.c),this},getArea:function(){var t=new en,e=new en;return function(){return t.subVectors(this.c,this.b),e.subVectors(this.a,this.b),.5*t.cross(e).length()}}(),getMidpoint:function(t){return void 0===t&&(console.warn("THREE.Triangle: .getMidpoint() target is now required"),t=new en),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return ki.getNormal(this.a,this.b,this.c,t)},getPlane:function(t){return void 0===t&&(console.warn("THREE.Triangle: .getPlane() target is now required"),t=new en),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return ki.getBarycoord(t,this.a,this.b,this.c,e)},containsPoint:function(t){return ki.containsPoint(t,this.a,this.b,this.c)},getUV:function(t,e,n,i,r){return ki.getUV(t,this.a,this.b,this.c,e,n,i,r)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:(xi=new en,_i=new en,wi=new en,Si=new en,Ti=new en,Ei=new en,function(t,e){void 0===e&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),e=new en);var n,i,r=this.a,o=this.b,a=this.c;xi.subVectors(o,r),_i.subVectors(a,r),Si.subVectors(t,r);var s=xi.dot(Si),c=_i.dot(Si);if(s<=0&&c<=0)return e.copy(r);Ti.subVectors(t,o);var l=xi.dot(Ti),u=_i.dot(Ti);if(l>=0&&u<=l)return e.copy(o);var h=s*u-l*c;if(h<=0&&s>=0&&l<=0)return n=s/(s-l),e.copy(r).addScaledVector(xi,n);Ei.subVectors(t,a);var d=xi.dot(Ei),f=_i.dot(Ei);if(f>=0&&d<=f)return e.copy(a);var p=d*c-s*f;if(p<=0&&c>=0&&f<=0)return i=c/(c-f),e.copy(r).addScaledVector(_i,i);var m=l*f-d*u;if(m<=0&&u-l>=0&&d-f>=0)return wi.subVectors(a,o),i=(u-l)/(u-l+(d-f)),e.copy(o).addScaledVector(wi,i);var v=1/(m+p+h);return n=p*v,i=h*v,e.copy(r).addScaledVector(xi,n).addScaledVector(_i,i)}),equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}),Pi.prototype=Object.create(fi.prototype),Pi.prototype.constructor=Pi,Pi.prototype.isMeshBasicMaterial=!0,Pi.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this},Ai.prototype=Object.assign(Object.create(Gn.prototype),{constructor:Ai,isMesh:!0,setDrawMode:function(t){this.drawMode=t},copy:function(t){return Gn.prototype.copy.call(this,t),this.drawMode=t.drawMode,void 0!==t.morphTargetInfluences&&(this.morphTargetInfluences=t.morphTargetInfluences.slice()),void 0!==t.morphTargetDictionary&&(this.morphTargetDictionary=Object.assign({},t.morphTargetDictionary)),this},updateMorphTargets:function(){var t,e,n,i=this.geometry;if(i.isBufferGeometry){var r=i.morphAttributes,o=Object.keys(r);if(o.length>0){var a=r[o[0]];if(void 0!==a)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=a.length;t<e;t++)n=a[t].name||String(t),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}else{var s=i.morphTargets;void 0!==s&&s.length>0&&console.error("THREE.Mesh.updateMorphTargets() no longer supports THREE.Geometry. Use THREE.BufferGeometry instead.")}},raycast:function(){var t=new Qe,e=new Oi,n=new yn,i=new en,r=new en,o=new en,a=new en,s=new en,c=new en,l=new Je,u=new Je,h=new Je,d=new en,f=new en;function p(t,e,n,i,r,o,a,s){if(null===(e.side===L?i.intersectTriangle(a,o,r,!0,s):i.intersectTriangle(r,o,a,e.side!==O,s)))return null;f.copy(s),f.applyMatrix4(t.matrixWorld);var c=n.ray.origin.distanceTo(f);return c<n.near||c>n.far?null:{distance:c,point:f.clone(),object:t}}function m(t,e,n,a,s,c,f,m,v){i.fromBufferAttribute(s,f),r.fromBufferAttribute(s,m),o.fromBufferAttribute(s,v);var g=p(t,e,n,a,i,r,o,d);if(g){c&&(l.fromBufferAttribute(c,f),u.fromBufferAttribute(c,m),h.fromBufferAttribute(c,v),g.uv=ki.getUV(d,i,r,o,l,u,h,new Je));var y=new Rn(f,m,v);ki.getNormal(i,r,o,y.normal),g.face=y}return g}return function(f,v){var g,y=this.geometry,b=this.material,x=this.matrixWorld;if(void 0!==b&&(null===y.boundingSphere&&y.computeBoundingSphere(),n.copy(y.boundingSphere),n.applyMatrix4(x),!1!==f.ray.intersectsSphere(n)&&(t.getInverse(x),e.copy(f.ray).applyMatrix4(t),null===y.boundingBox||!1!==e.intersectsBox(y.boundingBox))))if(y.isBufferGeometry){var _,w,S,T,E,M,C,L,O,k=y.index,P=y.attributes.position,A=y.attributes.uv,I=y.groups,D=y.drawRange;if(null!==k)if(Array.isArray(b))for(T=0,M=I.length;T<M;T++)for(O=b[(L=I[T]).materialIndex],E=Math.max(L.start,D.start),C=Math.min(L.start+L.count,D.start+D.count);E<C;E+=3)_=k.getX(E),w=k.getX(E+1),S=k.getX(E+2),(g=m(this,O,f,e,P,A,_,w,S))&&(g.faceIndex=Math.floor(E/3),g.face.materialIndex=L.materialIndex,v.push(g));else for(T=Math.max(0,D.start),M=Math.min(k.count,D.start+D.count);T<M;T+=3)_=k.getX(T),w=k.getX(T+1),S=k.getX(T+2),(g=m(this,b,f,e,P,A,_,w,S))&&(g.faceIndex=Math.floor(T/3),v.push(g));else if(void 0!==P)if(Array.isArray(b))for(T=0,M=I.length;T<M;T++)for(O=b[(L=I[T]).materialIndex],E=Math.max(L.start,D.start),C=Math.min(L.start+L.count,D.start+D.count);E<C;E+=3)(g=m(this,O,f,e,P,A,_=E,w=E+1,S=E+2))&&(g.faceIndex=Math.floor(E/3),g.face.materialIndex=L.materialIndex,v.push(g));else for(T=Math.max(0,D.start),M=Math.min(P.count,D.start+D.count);T<M;T+=3)(g=m(this,b,f,e,P,A,_=T,w=T+1,S=T+2))&&(g.faceIndex=Math.floor(T/3),v.push(g))}else if(y.isGeometry){var R,B,N,j,z=Array.isArray(b),F=y.vertices,V=y.faces,U=y.faceVertexUvs[0];U.length>0&&(j=U);for(var G=0,$=V.length;G<$;G++){var H=V[G],W=z?b[H.materialIndex]:b;if(void 0!==W){if(R=F[H.a],B=F[H.b],N=F[H.c],!0===W.morphTargets){var q=y.morphTargets,X=this.morphTargetInfluences;i.set(0,0,0),r.set(0,0,0),o.set(0,0,0);for(var Y=0,K=q.length;Y<K;Y++){var Z=X[Y];if(0!==Z){var J=q[Y].vertices;i.addScaledVector(a.subVectors(J[H.a],R),Z),r.addScaledVector(s.subVectors(J[H.b],B),Z),o.addScaledVector(c.subVectors(J[H.c],N),Z)}}i.add(R),r.add(B),o.add(N),R=i,B=r,N=o}if(g=p(this,W,f,e,R,B,N,d)){if(j&&j[G]){var Q=j[G];l.copy(Q[0]),u.copy(Q[1]),h.copy(Q[2]),g.uv=ki.getUV(d,R,B,N,l,u,h,new Je)}g.face=H,g.faceIndex=G,v.push(g)}}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Di.prototype=Object.create(hn.prototype),Di.prototype.constructor=Di,Di.prototype.isCubeTexture=!0,Object.defineProperty(Di.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}}),Ri.prototype=Object.create(hn.prototype),Ri.prototype.constructor=Ri,Ri.prototype.isDataTexture3D=!0;var Bi=new hn,Ni=new Ri,ji=new Di;function zi(){this.seq=[],this.map={}}var Fi=[],Vi=[],Ui=new Float32Array(16),Gi=new Float32Array(9),$i=new Float32Array(4);function Hi(t,e,n){var i=t[0];if(i<=0||i>0)return t;var r=e*n,o=Fi[r];if(void 0===o&&(o=new Float32Array(r),Fi[r]=o),0!==e){i.toArray(o,0);for(var a=1,s=0;a!==e;++a)s+=n,t[a].toArray(o,s)}return o}function Wi(t,e){if(t.length!==e.length)return!1;for(var n=0,i=t.length;n<i;n++)if(t[n]!==e[n])return!1;return!0}function qi(t,e){for(var n=0,i=e.length;n<i;n++)t[n]=e[n]}function Xi(t,e){var n=Vi[e];void 0===n&&(n=new Int32Array(e),Vi[e]=n);for(var i=0;i!==e;++i)n[i]=t.allocTextureUnit();return n}function Yi(t,e){var n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function Ki(t,e){var n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function Zi(t,e){var n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y||(t.uniform2f(this.addr,e.x,e.y),n[0]=e.x,n[1]=e.y);else{if(Wi(n,e))return;t.uniform2fv(this.addr,e),qi(n,e)}}function Ji(t,e){var n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z||(t.uniform3f(this.addr,e.x,e.y,e.z),n[0]=e.x,n[1]=e.y,n[2]=e.z);else if(void 0!==e.r)n[0]===e.r&&n[1]===e.g&&n[2]===e.b||(t.uniform3f(this.addr,e.r,e.g,e.b),n[0]=e.r,n[1]=e.g,n[2]=e.b);else{if(Wi(n,e))return;t.uniform3fv(this.addr,e),qi(n,e)}}function Qi(t,e){var n=this.cache;if(void 0!==e.x)n[0]===e.x&&n[1]===e.y&&n[2]===e.z&&n[3]===e.w||(t.uniform4f(this.addr,e.x,e.y,e.z,e.w),n[0]=e.x,n[1]=e.y,n[2]=e.z,n[3]=e.w);else{if(Wi(n,e))return;t.uniform4fv(this.addr,e),qi(n,e)}}function tr(t,e){var n=this.cache,i=e.elements;if(void 0===i){if(Wi(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),qi(n,e)}else{if(Wi(n,i))return;$i.set(i),t.uniformMatrix2fv(this.addr,!1,$i),qi(n,i)}}function er(t,e){var n=this.cache,i=e.elements;if(void 0===i){if(Wi(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),qi(n,e)}else{if(Wi(n,i))return;Gi.set(i),t.uniformMatrix3fv(this.addr,!1,Gi),qi(n,i)}}function nr(t,e){var n=this.cache,i=e.elements;if(void 0===i){if(Wi(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),qi(n,e)}else{if(Wi(n,i))return;Ui.set(i),t.uniformMatrix4fv(this.addr,!1,Ui),qi(n,i)}}function ir(t,e,n){var i=this.cache,r=n.allocTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture2D(e||Bi,r)}function rr(t,e,n){var i=this.cache,r=n.allocTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTexture3D(e||Ni,r)}function or(t,e,n){var i=this.cache,r=n.allocTextureUnit();i[0]!==r&&(t.uniform1i(this.addr,r),i[0]=r),n.setTextureCube(e||ji,r)}function ar(t,e){var n=this.cache;Wi(n,e)||(t.uniform2iv(this.addr,e),qi(n,e))}function sr(t,e){var n=this.cache;Wi(n,e)||(t.uniform3iv(this.addr,e),qi(n,e))}function cr(t,e){var n=this.cache;Wi(n,e)||(t.uniform4iv(this.addr,e),qi(n,e))}function lr(t,e){var n=this.cache;Wi(n,e)||(t.uniform1fv(this.addr,e),qi(n,e))}function ur(t,e){var n=this.cache;Wi(n,e)||(t.uniform1iv(this.addr,e),qi(n,e))}function hr(t,e){var n=this.cache,i=Hi(e,this.size,2);Wi(n,i)||(t.uniform2fv(this.addr,i),this.updateCache(i))}function dr(t,e){var n=this.cache,i=Hi(e,this.size,3);Wi(n,i)||(t.uniform3fv(this.addr,i),this.updateCache(i))}function fr(t,e){var n=this.cache,i=Hi(e,this.size,4);Wi(n,i)||(t.uniform4fv(this.addr,i),this.updateCache(i))}function pr(t,e){var n=this.cache,i=Hi(e,this.size,4);Wi(n,i)||(t.uniformMatrix2fv(this.addr,!1,i),this.updateCache(i))}function mr(t,e){var n=this.cache,i=Hi(e,this.size,9);Wi(n,i)||(t.uniformMatrix3fv(this.addr,!1,i),this.updateCache(i))}function vr(t,e){var n=this.cache,i=Hi(e,this.size,16);Wi(n,i)||(t.uniformMatrix4fv(this.addr,!1,i),this.updateCache(i))}function gr(t,e,n){var i=this.cache,r=e.length,o=Xi(n,r);!1===Wi(i,o)&&(t.uniform1iv(this.addr,o),qi(i,o));for(var a=0;a!==r;++a)n.setTexture2D(e[a]||Bi,o[a])}function yr(t,e,n){var i=this.cache,r=e.length,o=Xi(n,r);!1===Wi(i,o)&&(t.uniform1iv(this.addr,o),qi(i,o));for(var a=0;a!==r;++a)n.setTextureCube(e[a]||ji,o[a])}function br(t,e,n){this.id=t,this.addr=n,this.cache=[],this.setValue=function(t){switch(t){case 5126:return Yi;case 35664:return Zi;case 35665:return Ji;case 35666:return Qi;case 35674:return tr;case 35675:return er;case 35676:return nr;case 35678:case 36198:return ir;case 35679:return rr;case 35680:return or;case 5124:case 35670:return Ki;case 35667:case 35671:return ar;case 35668:case 35672:return sr;case 35669:case 35673:return cr}}(e.type)}function xr(t,e,n){this.id=t,this.addr=n,this.cache=[],this.size=e.size,this.setValue=function(t){switch(t){case 5126:return lr;case 35664:return hr;case 35665:return dr;case 35666:return fr;case 35674:return pr;case 35675:return mr;case 35676:return vr;case 35678:return gr;case 35680:return yr;case 5124:case 35670:return ur;case 35667:case 35671:return ar;case 35668:case 35672:return sr;case 35669:case 35673:return cr}}(e.type)}function _r(t){this.id=t,zi.call(this)}xr.prototype.updateCache=function(t){var e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),qi(e,t)},_r.prototype.setValue=function(t,e,n){for(var i=this.seq,r=0,o=i.length;r!==o;++r){var a=i[r];a.setValue(t,e[a.id],n)}};var wr=/([\w\d_]+)(\])?(\[|\.)?/g;function Sr(t,e){t.seq.push(e),t.map[e.id]=e}function Tr(t,e,n){var i=t.name,r=i.length;for(wr.lastIndex=0;;){var o=wr.exec(i),a=wr.lastIndex,s=o[1],c="]"===o[2],l=o[3];if(c&&(s|=0),void 0===l||"["===l&&a+2===r){Sr(n,void 0===l?new br(s,t,e):new xr(s,t,e));break}var u=n.map[s];void 0===u&&Sr(n,u=new _r(s)),n=u}}function Er(t,e,n){zi.call(this),this.renderer=n;for(var i=t.getProgramParameter(e,35718),r=0;r<i;++r){var o=t.getActiveUniform(e,r);Tr(o,t.getUniformLocation(e,o.name),this)}}function Mr(t,e,n){var i=t.createShader(e);return t.shaderSource(i,n),t.compileShader(i),!1===t.getShaderParameter(i,35713)&&console.error("THREE.WebGLShader: Shader couldn't compile."),""!==t.getShaderInfoLog(i)&&console.warn("THREE.WebGLShader: gl.getShaderInfoLog()",35633===e?"vertex":"fragment",t.getShaderInfoLog(i),function(t){for(var e=t.split("\n"),n=0;n<e.length;n++)e[n]=n+1+": "+e[n];return e.join("\n")}(n)),i}Er.prototype.setValue=function(t,e,n){var i=this.map[e];void 0!==i&&i.setValue(t,n,this.renderer)},Er.prototype.setOptional=function(t,e,n){var i=e[n];void 0!==i&&this.setValue(t,n,i)},Er.upload=function(t,e,n,i){for(var r=0,o=e.length;r!==o;++r){var a=e[r],s=n[a.id];!1!==s.needsUpdate&&a.setValue(t,s.value,i)}},Er.seqWithValue=function(t,e){for(var n=[],i=0,r=t.length;i!==r;++i){var o=t[i];o.id in e&&n.push(o)}return n};var Cr=0;function Lr(t){switch(t){case ze:return["Linear","( value )"];case Fe:return["sRGB","( value )"];case Ue:return["RGBE","( value )"];case $e:return["RGBM","( value, 7.0 )"];case He:return["RGBM","( value, 16.0 )"];case We:return["RGBD","( value, 256.0 )"];case Ve:return["Gamma","( value, float( GAMMA_FACTOR ) )"];default:throw new Error("unsupported encoding: "+t)}}function Or(t,e){var n=Lr(e);return"vec4 "+t+"( vec4 value ) { return "+n[0]+"ToLinear"+n[1]+"; }"}function kr(t){return""!==t}function Pr(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_LIGHTS/g,e.numSpotLights).replace(/NUM_RECT_AREA_LIGHTS/g,e.numRectAreaLights).replace(/NUM_POINT_LIGHTS/g,e.numPointLights).replace(/NUM_HEMI_LIGHTS/g,e.numHemiLights)}function Ar(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}function Ir(t){return t.replace(/^[ \t]*#include +<([\w\d./]+)>/gm,function(t,e){var n=_n[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return Ir(n)})}function Dr(t){return t.replace(/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g,function(t,e,n,i){for(var r="",o=parseInt(e);o<parseInt(n);o++)r+=i.replace(/\[ i \]/g,"[ "+o+" ]");return r})}function Rr(t,e,n,i,r,o,a){var s=t.context,c=i.defines,l=r.vertexShader,u=r.fragmentShader,h="SHADOWMAP_TYPE_BASIC";o.shadowMapType===E?h="SHADOWMAP_TYPE_PCF":o.shadowMapType===M&&(h="SHADOWMAP_TYPE_PCF_SOFT");var d="ENVMAP_TYPE_CUBE",f="ENVMAP_MODE_REFLECTION",p="ENVMAP_BLENDING_MULTIPLY";if(o.envMap){switch(i.envMap.mapping){case _t:case wt:d="ENVMAP_TYPE_CUBE";break;case Mt:case Ct:d="ENVMAP_TYPE_CUBE_UV";break;case St:case Tt:d="ENVMAP_TYPE_EQUIREC";break;case Et:d="ENVMAP_TYPE_SPHERE"}switch(i.envMap.mapping){case wt:case Tt:f="ENVMAP_MODE_REFRACTION"}switch(i.combine){case ht:p="ENVMAP_BLENDING_MULTIPLY";break;case dt:p="ENVMAP_BLENDING_MIX";break;case ft:p="ENVMAP_BLENDING_ADD"}}var m,v,g,y,b,x=t.gammaFactor>0?t.gammaFactor:1,_=a.isWebGL2?"":function(t,e,n){return[(t=t||{}).derivatives||e.envMapCubeUV||e.bumpMap||e.normalMap&&!e.objectSpaceNormalMap||e.flatShading?"#extension GL_OES_standard_derivatives : enable":"",(t.fragDepth||e.logarithmicDepthBuffer)&&n.get("EXT_frag_depth")?"#extension GL_EXT_frag_depth : enable":"",t.drawBuffers&&n.get("WEBGL_draw_buffers")?"#extension GL_EXT_draw_buffers : require":"",(t.shaderTextureLOD||e.envMap)&&n.get("EXT_shader_texture_lod")?"#extension GL_EXT_shader_texture_lod : enable":""].filter(kr).join("\n")}(i.extensions,o,e),w=function(t){var e=[];for(var n in t){var i=t[n];!1!==i&&e.push("#define "+n+" "+i)}return e.join("\n")}(c),S=s.createProgram();if(i.isRawShaderMaterial?((m=[w].filter(kr).join("\n")).length>0&&(m+="\n"),(v=[_,w].filter(kr).join("\n")).length>0&&(v+="\n")):(m=["precision "+o.precision+" float;","precision "+o.precision+" int;","#define SHADER_NAME "+r.name,w,o.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+x,"#define MAX_BONES "+o.maxBones,o.useFog&&o.fog?"#define USE_FOG":"",o.useFog&&o.fogExp?"#define FOG_EXP2":"",o.map?"#define USE_MAP":"",o.envMap?"#define USE_ENVMAP":"",o.envMap?"#define "+f:"",o.lightMap?"#define USE_LIGHTMAP":"",o.aoMap?"#define USE_AOMAP":"",o.emissiveMap?"#define USE_EMISSIVEMAP":"",o.bumpMap?"#define USE_BUMPMAP":"",o.normalMap?"#define USE_NORMALMAP":"",o.normalMap&&o.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",o.displacementMap&&o.supportsVertexTextures?"#define USE_DISPLACEMENTMAP":"",o.specularMap?"#define USE_SPECULARMAP":"",o.roughnessMap?"#define USE_ROUGHNESSMAP":"",o.metalnessMap?"#define USE_METALNESSMAP":"",o.alphaMap?"#define USE_ALPHAMAP":"",o.vertexTangents?"#define USE_TANGENT":"",o.vertexColors?"#define USE_COLOR":"",o.flatShading?"#define FLAT_SHADED":"",o.skinning?"#define USE_SKINNING":"",o.useVertexTexture?"#define BONE_TEXTURE":"",o.morphTargets?"#define USE_MORPHTARGETS":"",o.morphNormals&&!1===o.flatShading?"#define USE_MORPHNORMALS":"",o.doubleSided?"#define DOUBLE_SIDED":"",o.flipSided?"#define FLIP_SIDED":"",o.shadowMapEnabled?"#define USE_SHADOWMAP":"",o.shadowMapEnabled?"#define "+h:"",o.sizeAttenuation?"#define USE_SIZEATTENUATION":"",o.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",o.logarithmicDepthBuffer&&(a.isWebGL2||e.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_TANGENT","\tattribute vec4 tangent;","#endif","#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(kr).join("\n"),v=[_,"precision "+o.precision+" float;","precision "+o.precision+" int;","#define SHADER_NAME "+r.name,w,o.alphaTest?"#define ALPHATEST "+o.alphaTest+(o.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+x,o.useFog&&o.fog?"#define USE_FOG":"",o.useFog&&o.fogExp?"#define FOG_EXP2":"",o.map?"#define USE_MAP":"",o.matcap?"#define USE_MATCAP":"",o.envMap?"#define USE_ENVMAP":"",o.envMap?"#define "+d:"",o.envMap?"#define "+f:"",o.envMap?"#define "+p:"",o.lightMap?"#define USE_LIGHTMAP":"",o.aoMap?"#define USE_AOMAP":"",o.emissiveMap?"#define USE_EMISSIVEMAP":"",o.bumpMap?"#define USE_BUMPMAP":"",o.normalMap?"#define USE_NORMALMAP":"",o.normalMap&&o.objectSpaceNormalMap?"#define OBJECTSPACE_NORMALMAP":"",o.specularMap?"#define USE_SPECULARMAP":"",o.roughnessMap?"#define USE_ROUGHNESSMAP":"",o.metalnessMap?"#define USE_METALNESSMAP":"",o.alphaMap?"#define USE_ALPHAMAP":"",o.vertexTangents?"#define USE_TANGENT":"",o.vertexColors?"#define USE_COLOR":"",o.gradientMap?"#define USE_GRADIENTMAP":"",o.flatShading?"#define FLAT_SHADED":"",o.doubleSided?"#define DOUBLE_SIDED":"",o.flipSided?"#define FLIP_SIDED":"",o.shadowMapEnabled?"#define USE_SHADOWMAP":"",o.shadowMapEnabled?"#define "+h:"",o.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",o.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",o.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",o.logarithmicDepthBuffer&&(a.isWebGL2||e.get("EXT_frag_depth"))?"#define USE_LOGDEPTHBUF_EXT":"",o.envMap&&(a.isWebGL2||e.get("EXT_shader_texture_lod"))?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",o.toneMapping!==pt?"#define TONE_MAPPING":"",o.toneMapping!==pt?_n.tonemapping_pars_fragment:"",o.toneMapping!==pt?function(t,e){var n;switch(e){case mt:n="Linear";break;case vt:n="Reinhard";break;case gt:n="Uncharted2";break;case yt:n="OptimizedCineon";break;case bt:n="ACESFilmic";break;default:throw new Error("unsupported toneMapping: "+e)}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}("toneMapping",o.toneMapping):"",o.dithering?"#define DITHERING":"",o.outputEncoding||o.mapEncoding||o.matcapEncoding||o.envMapEncoding||o.emissiveMapEncoding?_n.encodings_pars_fragment:"",o.mapEncoding?Or("mapTexelToLinear",o.mapEncoding):"",o.matcapEncoding?Or("matcapTexelToLinear",o.matcapEncoding):"",o.envMapEncoding?Or("envMapTexelToLinear",o.envMapEncoding):"",o.emissiveMapEncoding?Or("emissiveMapTexelToLinear",o.emissiveMapEncoding):"",o.outputEncoding?(g="linearToOutputTexel",y=o.outputEncoding,b=Lr(y),"vec4 "+g+"( vec4 value ) { return LinearTo"+b[0]+b[1]+"; }"):"",o.depthPacking?"#define DEPTH_PACKING "+i.depthPacking:"","\n"].filter(kr).join("\n")),l=Ar(l=Pr(l=Ir(l),o),o),u=Ar(u=Pr(u=Ir(u),o),o),l=Dr(l),u=Dr(u),a.isWebGL2&&!i.isRawShaderMaterial){var T=!1,C=/^\s*#version\s+300\s+es\s*\n/;i.isShaderMaterial&&null!==l.match(C)&&null!==u.match(C)&&(T=!0,l=l.replace(C,""),u=u.replace(C,"")),m=["#version 300 es\n","#define attribute in","#define varying out","#define texture2D texture"].join("\n")+"\n"+m,v=["#version 300 es\n","#define varying in",T?"":"out highp vec4 pc_fragColor;",T?"":"#define gl_FragColor pc_fragColor","#define gl_FragDepthEXT gl_FragDepth","#define texture2D texture","#define textureCube texture","#define texture2DProj textureProj","#define texture2DLodEXT textureLod","#define texture2DProjLodEXT textureProjLod","#define textureCubeLodEXT textureLod","#define texture2DGradEXT textureGrad","#define texture2DProjGradEXT textureProjGrad","#define textureCubeGradEXT textureGrad"].join("\n")+"\n"+v}var L=v+u,O=Mr(s,35633,m+l),k=Mr(s,35632,L);s.attachShader(S,O),s.attachShader(S,k),void 0!==i.index0AttributeName?s.bindAttribLocation(S,0,i.index0AttributeName):!0===o.morphTargets&&s.bindAttribLocation(S,0,"position"),s.linkProgram(S);var P,A,I=s.getProgramInfoLog(S).trim(),D=s.getShaderInfoLog(O).trim(),R=s.getShaderInfoLog(k).trim(),B=!0,N=!0;return!1===s.getProgramParameter(S,35714)?(B=!1,console.error("THREE.WebGLProgram: shader error: ",s.getError(),"35715",s.getProgramParameter(S,35715),"gl.getProgramInfoLog",I,D,R)):""!==I?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",I):""!==D&&""!==R||(N=!1),N&&(this.diagnostics={runnable:B,material:i,programLog:I,vertexShader:{log:D,prefix:m},fragmentShader:{log:R,prefix:v}}),s.deleteShader(O),s.deleteShader(k),this.getUniforms=function(){return void 0===P&&(P=new Er(s,S,t)),P},this.getAttributes=function(){return void 0===A&&(A=function(t,e){for(var n={},i=t.getProgramParameter(e,35721),r=0;r<i;r++){var o=t.getActiveAttrib(e,r).name;n[o]=t.getAttribLocation(e,o)}return n}(s,S)),A},this.destroy=function(){s.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.name=r.name,this.id=Cr++,this.code=n,this.usedTimes=1,this.program=S,this.vertexShader=O,this.fragmentShader=k,this}function Br(t,e,n){var i=[],r={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"phong",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",MeshMatcapMaterial:"matcap",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow",SpriteMaterial:"sprite"},o=["precision","supportsVertexTextures","map","mapEncoding","matcap","matcapEncoding","envMap","envMapMode","envMapEncoding","lightMap","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","displacementMap","specularMap","roughnessMap","metalnessMap","gradientMap","alphaMap","combine","vertexColors","vertexTangents","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"];function a(t,e){var n;return t?t.isTexture?n=t.encoding:t.isWebGLRenderTarget&&(console.warn("THREE.WebGLPrograms.getTextureEncodingFromMap: don't use render targets as textures. Use their .texture property instead."),n=t.texture.encoding):n=ze,n===ze&&e&&(n=Ve),n}this.getParameters=function(e,i,o,s,c,l,u){var h=r[e.type],d=u.isSkinnedMesh?function(t){var e=t.skeleton.bones;if(n.floatVertexTextures)return 1024;var i=n.maxVertexUniforms,r=Math.floor((i-20)/4),o=Math.min(r,e.length);return o<e.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+e.length+" bones. This GPU supports "+o+"."),0):o}(u):0,f=n.precision;null!==e.precision&&(f=n.getMaxPrecision(e.precision))!==e.precision&&console.warn("THREE.WebGLProgram.getParameters:",e.precision,"not supported, using",f,"instead.");var p=t.getRenderTarget();return{shaderID:h,precision:f,supportsVertexTextures:n.vertexTextures,outputEncoding:a(p?p.texture:null,t.gammaOutput),map:!!e.map,mapEncoding:a(e.map,t.gammaInput),matcap:!!e.matcap,matcapEncoding:a(e.matcap,t.gammaInput),envMap:!!e.envMap,envMapMode:e.envMap&&e.envMap.mapping,envMapEncoding:a(e.envMap,t.gammaInput),envMapCubeUV:!!e.envMap&&(e.envMap.mapping===Mt||e.envMap.mapping===Ct),lightMap:!!e.lightMap,aoMap:!!e.aoMap,emissiveMap:!!e.emissiveMap,emissiveMapEncoding:a(e.emissiveMap,t.gammaInput),bumpMap:!!e.bumpMap,normalMap:!!e.normalMap,objectSpaceNormalMap:e.normalMapType===Ke,displacementMap:!!e.displacementMap,roughnessMap:!!e.roughnessMap,metalnessMap:!!e.metalnessMap,specularMap:!!e.specularMap,alphaMap:!!e.alphaMap,gradientMap:!!e.gradientMap,combine:e.combine,vertexTangents:e.normalMap&&e.vertexTangents,vertexColors:e.vertexColors,fog:!!s,useFog:e.fog,fogExp:s&&s.isFogExp2,flatShading:e.flatShading,sizeAttenuation:e.sizeAttenuation,logarithmicDepthBuffer:n.logarithmicDepthBuffer,skinning:e.skinning&&d>0,maxBones:d,useVertexTexture:n.floatVertexTextures,morphTargets:e.morphTargets,morphNormals:e.morphNormals,maxMorphTargets:t.maxMorphTargets,maxMorphNormals:t.maxMorphNormals,numDirLights:i.directional.length,numPointLights:i.point.length,numSpotLights:i.spot.length,numRectAreaLights:i.rectArea.length,numHemiLights:i.hemi.length,numClippingPlanes:c,numClipIntersection:l,dithering:e.dithering,shadowMapEnabled:t.shadowMap.enabled&&u.receiveShadow&&o.length>0,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:e.premultipliedAlpha,alphaTest:e.alphaTest,doubleSided:e.side===O,flipSided:e.side===L,depthPacking:void 0!==e.depthPacking&&e.depthPacking}},this.getProgramCode=function(e,n){var i=[];if(n.shaderID?i.push(n.shaderID):(i.push(e.fragmentShader),i.push(e.vertexShader)),void 0!==e.defines)for(var r in e.defines)i.push(r),i.push(e.defines[r]);for(var a=0;a<o.length;a++)i.push(n[o[a]]);return i.push(e.onBeforeCompile.toString()),i.push(t.gammaOutput),i.push(t.gammaFactor),i.join()},this.acquireProgram=function(r,o,a,s){for(var c,l=0,u=i.length;l<u;l++){var h=i[l];if(h.code===s){++(c=h).usedTimes;break}}return void 0===c&&(c=new Rr(t,e,s,r,o,a,n),i.push(c)),c},this.releaseProgram=function(t){if(0==--t.usedTimes){var e=i.indexOf(t);i[e]=i[i.length-1],i.pop(),t.destroy()}},this.programs=i}function Nr(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.program&&e.program&&t.program!==e.program?t.program.id-e.program.id:t.material.id!==e.material.id?t.material.id-e.material.id:t.z!==e.z?t.z-e.z:t.id-e.id}function jr(t,e){return t.groupOrder!==e.groupOrder?t.groupOrder-e.groupOrder:t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function zr(){var t=[],e=0,n=[],i=[];function r(n,i,r,o,a,s){var c=t[e];return void 0===c?(c={id:n.id,object:n,geometry:i,material:r,program:r.program,groupOrder:o,renderOrder:n.renderOrder,z:a,group:s},t[e]=c):(c.id=n.id,c.object=n,c.geometry=i,c.material=r,c.program=r.program,c.groupOrder=o,c.renderOrder=n.renderOrder,c.z=a,c.group=s),e++,c}return{opaque:n,transparent:i,init:function(){e=0,n.length=0,i.length=0},push:function(t,e,o,a,s,c){var l=r(t,e,o,a,s,c);(!0===o.transparent?i:n).push(l)},unshift:function(t,e,o,a,s,c){var l=r(t,e,o,a,s,c);(!0===o.transparent?i:n).unshift(l)},sort:function(){n.length>1&&n.sort(Nr),i.length>1&&i.sort(jr)}}}var Fr=0;function Vr(){var t=new function(){var t={};return{get:function(e){if(void 0!==t[e.id])return t[e.id];var n;switch(e.type){case"DirectionalLight":n={direction:new en,color:new On,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new Je};break;case"SpotLight":n={position:new en,direction:new en,color:new On,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new Je};break;case"PointLight":n={position:new en,color:new On,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new Je,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":n={direction:new en,skyColor:new On,groundColor:new On};break;case"RectAreaLight":n={color:new On,position:new en,halfWidth:new en,halfHeight:new en}}return t[e.id]=n,n}}},e={id:Fr++,hash:{stateID:-1,directionalLength:-1,pointLength:-1,spotLength:-1,rectAreaLength:-1,hemiLength:-1,shadowsLength:-1},ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},n=new en,i=new Qe,r=new Qe;return{setup:function(o,a,s){for(var c=0,l=0,u=0,h=0,d=0,f=0,p=0,m=0,v=s.matrixWorldInverse,g=0,y=o.length;g<y;g++){var b=o[g],x=b.color,_=b.intensity,w=b.distance,S=b.shadow&&b.shadow.map?b.shadow.map.texture:null;if(b.isAmbientLight)c+=x.r*_,l+=x.g*_,u+=x.b*_;else if(b.isDirectionalLight){if((E=t.get(b)).color.copy(b.color).multiplyScalar(b.intensity),E.direction.setFromMatrixPosition(b.matrixWorld),n.setFromMatrixPosition(b.target.matrixWorld),E.direction.sub(n),E.direction.transformDirection(v),E.shadow=b.castShadow,b.castShadow){var T=b.shadow;E.shadowBias=T.bias,E.shadowRadius=T.radius,E.shadowMapSize=T.mapSize}e.directionalShadowMap[h]=S,e.directionalShadowMatrix[h]=b.shadow.matrix,e.directional[h]=E,h++}else if(b.isSpotLight)(E=t.get(b)).position.setFromMatrixPosition(b.matrixWorld),E.position.applyMatrix4(v),E.color.copy(x).multiplyScalar(_),E.distance=w,E.direction.setFromMatrixPosition(b.matrixWorld),n.setFromMatrixPosition(b.target.matrixWorld),E.direction.sub(n),E.direction.transformDirection(v),E.coneCos=Math.cos(b.angle),E.penumbraCos=Math.cos(b.angle*(1-b.penumbra)),E.decay=b.decay,E.shadow=b.castShadow,b.castShadow&&(T=b.shadow,E.shadowBias=T.bias,E.shadowRadius=T.radius,E.shadowMapSize=T.mapSize),e.spotShadowMap[f]=S,e.spotShadowMatrix[f]=b.shadow.matrix,e.spot[f]=E,f++;else if(b.isRectAreaLight)(E=t.get(b)).color.copy(x).multiplyScalar(_),E.position.setFromMatrixPosition(b.matrixWorld),E.position.applyMatrix4(v),r.identity(),i.copy(b.matrixWorld),i.premultiply(v),r.extractRotation(i),E.halfWidth.set(.5*b.width,0,0),E.halfHeight.set(0,.5*b.height,0),E.halfWidth.applyMatrix4(r),E.halfHeight.applyMatrix4(r),e.rectArea[p]=E,p++;else if(b.isPointLight)(E=t.get(b)).position.setFromMatrixPosition(b.matrixWorld),E.position.applyMatrix4(v),E.color.copy(b.color).multiplyScalar(b.intensity),E.distance=b.distance,E.decay=b.decay,E.shadow=b.castShadow,b.castShadow&&(T=b.shadow,E.shadowBias=T.bias,E.shadowRadius=T.radius,E.shadowMapSize=T.mapSize,E.shadowCameraNear=T.camera.near,E.shadowCameraFar=T.camera.far),e.pointShadowMap[d]=S,e.pointShadowMatrix[d]=b.shadow.matrix,e.point[d]=E,d++;else if(b.isHemisphereLight){var E;(E=t.get(b)).direction.setFromMatrixPosition(b.matrixWorld),E.direction.transformDirection(v),E.direction.normalize(),E.skyColor.copy(b.color).multiplyScalar(_),E.groundColor.copy(b.groundColor).multiplyScalar(_),e.hemi[m]=E,m++}}e.ambient[0]=c,e.ambient[1]=l,e.ambient[2]=u,e.directional.length=h,e.spot.length=f,e.rectArea.length=p,e.point.length=d,e.hemi.length=m,e.hash.stateID=e.id,e.hash.directionalLength=h,e.hash.pointLength=d,e.hash.spotLength=f,e.hash.rectAreaLength=p,e.hash.hemiLength=m,e.hash.shadowsLength=a.length},state:e}}function Ur(){var t=new Vr,e=[],n=[];return{init:function(){e.length=0,n.length=0},state:{lightsArray:e,shadowsArray:n,lights:t},setupLights:function(i){t.setup(e,n,i)},pushLight:function(t){e.push(t)},pushShadow:function(t){n.push(t)}}}function Gr(t){fi.call(this),this.type="MeshDepthMaterial",this.depthPacking=qe,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.setValues(t)}function $r(t){fi.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new en,this.nearDistance=1,this.farDistance=1e3,this.skinning=!1,this.morphTargets=!1,this.map=null,this.alphaMap=null,this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.fog=!1,this.lights=!1,this.setValues(t)}function Hr(t,e,n){for(var i=new xn,r=new Qe,o=new Je,a=new Je(n,n),s=new en,c=new en,l=1,u=2,h=1+(l|u),d=new Array(h),f=new Array(h),p={},m={0:L,1:C,2:O},v=[new en(1,0,0),new en(-1,0,0),new en(0,0,1),new en(0,0,-1),new en(0,1,0),new en(0,-1,0)],g=[new en(0,1,0),new en(0,1,0),new en(0,1,0),new en(0,1,0),new en(0,0,1),new en(0,0,-1)],y=[new dn,new dn,new dn,new dn,new dn,new dn],b=0;b!==h;++b){var x=0!=(b&l),_=0!=(b&u),w=new Gr({depthPacking:Xe,morphTargets:x,skinning:_});d[b]=w;var S=new $r({morphTargets:x,skinning:_});f[b]=S}var T=this;function M(e,n,i,r,o,a){var s=e.geometry,c=null,h=d,v=e.customDepthMaterial;if(i&&(h=f,v=e.customDistanceMaterial),v)c=v;else{var g=!1;n.morphTargets&&(s&&s.isBufferGeometry?g=s.morphAttributes&&s.morphAttributes.position&&s.morphAttributes.position.length>0:s&&s.isGeometry&&(g=s.morphTargets&&s.morphTargets.length>0)),e.isSkinnedMesh&&!1===n.skinning&&console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",e);var y=e.isSkinnedMesh&&n.skinning,b=0;g&&(b|=l),y&&(b|=u),c=h[b]}if(t.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){var x=c.uuid,_=n.uuid,w=p[x];void 0===w&&(w={},p[x]=w);var S=w[_];void 0===S&&(S=c.clone(),w[_]=S),c=S}return c.visible=n.visible,c.wireframe=n.wireframe,c.side=null!=n.shadowSide?n.shadowSide:m[n.side],c.clipShadows=n.clipShadows,c.clippingPlanes=n.clippingPlanes,c.clipIntersection=n.clipIntersection,c.wireframeLinewidth=n.wireframeLinewidth,c.linewidth=n.linewidth,i&&c.isMeshDistanceMaterial&&(c.referencePosition.copy(r),c.nearDistance=o,c.farDistance=a),c}function k(n,r,o,a){if(!1!==n.visible){if(n.layers.test(r.layers)&&(n.isMesh||n.isLine||n.isPoints)&&n.castShadow&&(!n.frustumCulled||i.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);var s=e.update(n),l=n.material;if(Array.isArray(l))for(var u=s.groups,h=0,d=u.length;h<d;h++){var f=u[h],p=l[f.materialIndex];if(p&&p.visible){var m=M(n,p,a,c,o.near,o.far);t.renderBufferDirect(o,null,s,m,n,f)}}else if(l.visible){m=M(n,l,a,c,o.near,o.far);t.renderBufferDirect(o,null,s,m,n,null)}}for(var v=n.children,g=0,y=v.length;g<y;g++)k(v[g],r,o,a)}}this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=E,this.render=function(e,n,l){if(!1!==T.enabled&&(!1!==T.autoUpdate||!1!==T.needsUpdate)&&0!==e.length){var u,h=t.getRenderTarget(),d=t.state;d.setBlending(R),d.buffers.color.setClear(1,1,1,1),d.buffers.depth.setTest(!0),d.setScissorTest(!1);for(var f=0,p=e.length;f<p;f++){var m=e[f],b=m.shadow,x=m&&m.isPointLight;if(void 0!==b){var _=b.camera;if(o.copy(b.mapSize),o.min(a),x){var w=o.x,S=o.y;y[0].set(2*w,S,w,S),y[1].set(0,S,w,S),y[2].set(3*w,S,w,S),y[3].set(w,S,w,S),y[4].set(3*w,0,w,S),y[5].set(w,0,w,S),o.x*=4,o.y*=2}if(null===b.map){var E={minFilter:Pt,magFilter:Pt,format:Zt};b.map=new fn(o.x,o.y,E),b.map.texture.name=m.name+".shadowMap",_.updateProjectionMatrix()}b.isSpotLightShadow&&b.update(m);var M=b.map,C=b.matrix;c.setFromMatrixPosition(m.matrixWorld),_.position.copy(c),x?(u=6,C.makeTranslation(-c.x,-c.y,-c.z)):(u=1,s.setFromMatrixPosition(m.target.matrixWorld),_.lookAt(s),_.updateMatrixWorld(),C.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),C.multiply(_.projectionMatrix),C.multiply(_.matrixWorldInverse)),t.setRenderTarget(M),t.clear();for(var L=0;L<u;L++){if(x){s.copy(_.position),s.add(v[L]),_.up.copy(g[L]),_.lookAt(s),_.updateMatrixWorld();var O=y[L];d.viewport(O)}r.multiplyMatrices(_.projectionMatrix,_.matrixWorldInverse),i.setFromMatrix(r),k(n,l,_,x)}}else console.warn("THREE.WebGLShadowMap:",m,"has no shadow.")}T.needsUpdate=!1,t.setRenderTarget(h)}}}function Wr(t,e,n,i,r,o,a){var s,c={},l="undefined"!=typeof OffscreenCanvas;function u(t,e){return l?new OffscreenCanvas(t,e):document.createElementNS("http://www.w3.org/1999/xhtml","canvas")}function h(t,e,n,i){var r=1;if((t.width>i||t.height>i)&&(r=i/Math.max(t.width,t.height)),r<1||!0===e){if(t instanceof ImageBitmap||t instanceof HTMLImageElement||t instanceof HTMLCanvasElement){var o=e?Ze.floorPowerOfTwo:Math.floor,a=o(r*t.width),c=o(r*t.height);void 0===s&&(s=u(a,c));var h=n?u(a,c):s;return h.width=a,h.height=c,h.getContext("2d").drawImage(t,0,0,a,c),console.warn("THREE.WebGLRenderer: Texture has been resized from ("+t.width+"x"+t.height+") to ("+a+"x"+c+")."),l?h.transferToImageBitmap():h}return"data"in t&&console.warn("THREE.WebGLRenderer: Image in DataTexture is too big ("+t.width+"x"+t.height+")."),t}return t}function d(t){return Ze.isPowerOfTwo(t.width)&&Ze.isPowerOfTwo(t.height)}function f(t,e){return t.generateMipmaps&&e&&t.minFilter!==Pt&&t.minFilter!==Dt}function p(e,n,r,o){t.generateMipmap(e),i.get(n).__maxMipLevel=Math.log(Math.max(r,o))*Math.LOG2E}function m(t,n){if(!r.isWebGL2)return t;var i=t;return 6403===t&&(5126===n&&(i=33326),5131===n&&(i=33325),5121===n&&(i=33321)),6407===t&&(5126===n&&(i=34837),5131===n&&(i=34843),5121===n&&(i=32849)),6408===t&&(5126===n&&(i=34836),5131===n&&(i=34842),5121===n&&(i=32856)),33325===i||33326===i||34842===i||34836===i?e.get("EXT_color_buffer_float"):34843!==i&&34837!==i||console.warn("THREE.WebGLRenderer: Floating point textures with RGB format not supported. Please use RGBA instead."),i}function v(t){return t===Pt||t===At||t===It?9728:9729}function g(e){var n=e.target;n.removeEventListener("dispose",g),function(e){var n=i.get(e);if(void 0===n.__webglInit)return;t.deleteTexture(n.__webglTexture),i.remove(e)}(n),n.isVideoTexture&&delete c[n.id],a.memory.textures--}function y(e){var n=e.target;n.removeEventListener("dispose",y),function(e){var n=i.get(e),r=i.get(e.texture);if(!e)return;void 0!==r.__webglTexture&&t.deleteTexture(r.__webglTexture);e.depthTexture&&e.depthTexture.dispose();if(e.isWebGLRenderTargetCube)for(var o=0;o<6;o++)t.deleteFramebuffer(n.__webglFramebuffer[o]),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer[o]);else t.deleteFramebuffer(n.__webglFramebuffer),n.__webglDepthbuffer&&t.deleteRenderbuffer(n.__webglDepthbuffer);i.remove(e.texture),i.remove(e)}(n),a.memory.textures--}function b(t,e){var r=i.get(t);if(t.isVideoTexture&&function(t){var e=t.id,n=a.render.frame;c[e]!==n&&(c[e]=n,t.update())}(t),t.version>0&&r.__version!==t.version){var o=t.image;if(void 0===o)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined");else{if(!1!==o.complete)return void w(r,t,e);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete")}}n.activeTexture(33984+e),n.bindTexture(3553,r.__webglTexture)}function x(n,a,s){var c;if(s?(t.texParameteri(n,10242,o.convert(a.wrapS)),t.texParameteri(n,10243,o.convert(a.wrapT)),32879===n&&t.texParameteri(n,32882,o.convert(a.wrapR)),t.texParameteri(n,10240,o.convert(a.magFilter)),t.texParameteri(n,10241,o.convert(a.minFilter))):(t.texParameteri(n,10242,33071),t.texParameteri(n,10243,33071),32879===n&&t.texParameteri(n,32882,33071),a.wrapS===Ot&&a.wrapT===Ot||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping."),t.texParameteri(n,10240,v(a.magFilter)),t.texParameteri(n,10241,v(a.minFilter)),a.minFilter!==Pt&&a.minFilter!==Dt&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.")),c=e.get("EXT_texture_filter_anisotropic")){if(a.type===Gt&&null===e.get("OES_texture_float_linear"))return;if(a.type===$t&&null===(r.isWebGL2||e.get("OES_texture_half_float_linear")))return;(a.anisotropy>1||i.get(a).__currentAnisotropy)&&(t.texParameterf(n,c.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(a.anisotropy,r.getMaxAnisotropy())),i.get(a).__currentAnisotropy=a.anisotropy)}}function _(e,n){void 0===e.__webglInit&&(e.__webglInit=!0,n.addEventListener("dispose",g),e.__webglTexture=t.createTexture(),a.memory.textures++)}function w(e,i,a){var s=i.isDataTexture3D?32879:3553;_(e,i),n.activeTexture(33984+a),n.bindTexture(s,e.__webglTexture),t.pixelStorei(37440,i.flipY),t.pixelStorei(37441,i.premultiplyAlpha),t.pixelStorei(3317,i.unpackAlignment);var c=function(t){return!r.isWebGL2&&(t.wrapS!==Ot||t.wrapT!==Ot||t.minFilter!==Pt&&t.minFilter!==Dt)}(i)&&!1===d(i.image),l=h(i.image,c,!1,r.maxTextureSize),u=d(l)||r.isWebGL2,v=o.convert(i.format),g=o.convert(i.type),y=m(v,g);x(s,i,u);var b,w=i.mipmaps;if(i.isDepthTexture){if(y=6402,i.type===Gt){if(!r.isWebGL2)throw new Error("Float Depth Texture only supported in WebGL2.0");y=36012}else r.isWebGL2&&(y=33189);i.format===ee&&6402===y&&i.type!==Ft&&i.type!==Ut&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),i.type=Ft,g=o.convert(i.type)),i.format===ne&&(y=34041,i.type!==Xt&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),i.type=Xt,g=o.convert(i.type))),n.texImage2D(3553,0,y,l.width,l.height,0,v,g,null)}else if(i.isDataTexture)if(w.length>0&&u){for(var S=0,T=w.length;S<T;S++)b=w[S],n.texImage2D(3553,S,y,b.width,b.height,0,v,g,b.data);i.generateMipmaps=!1,e.__maxMipLevel=w.length-1}else n.texImage2D(3553,0,y,l.width,l.height,0,v,g,l.data),e.__maxMipLevel=0;else if(i.isCompressedTexture){for(S=0,T=w.length;S<T;S++)b=w[S],i.format!==Zt&&i.format!==Kt?n.getCompressedTextureFormats().indexOf(v)>-1?n.compressedTexImage2D(3553,S,y,b.width,b.height,0,b.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(3553,S,y,b.width,b.height,0,v,g,b.data);e.__maxMipLevel=w.length-1}else if(i.isDataTexture3D)n.texImage3D(32879,0,y,l.width,l.height,l.depth,0,v,g,l.data),e.__maxMipLevel=0;else if(w.length>0&&u){for(S=0,T=w.length;S<T;S++)b=w[S],n.texImage2D(3553,S,y,v,g,b);i.generateMipmaps=!1,e.__maxMipLevel=w.length-1}else n.texImage2D(3553,0,y,v,g,l),e.__maxMipLevel=0;f(i,u)&&p(3553,i,l.width,l.height),e.__version=i.version,i.onUpdate&&i.onUpdate(i)}function S(e,r,a,s){var c=o.convert(r.texture.format),l=o.convert(r.texture.type),u=m(c,l);n.texImage2D(s,0,u,r.width,r.height,0,c,l,null),t.bindFramebuffer(36160,e),t.framebufferTexture2D(36160,a,s,i.get(r.texture).__webglTexture,0),t.bindFramebuffer(36160,null)}function T(e,n,i){if(t.bindRenderbuffer(36161,e),n.depthBuffer&&!n.stencilBuffer){if(i){var r=M(n);t.renderbufferStorageMultisample(36161,r,33189,n.width,n.height)}else t.renderbufferStorage(36161,33189,n.width,n.height);t.framebufferRenderbuffer(36160,36096,36161,e)}else if(n.depthBuffer&&n.stencilBuffer){if(i){r=M(n);t.renderbufferStorageMultisample(36161,r,34041,n.width,n.height)}else t.renderbufferStorage(36161,34041,n.width,n.height);t.framebufferRenderbuffer(36160,33306,36161,e)}else{var a=m(o.convert(n.texture.format),o.convert(n.texture.type));if(i){r=M(n);t.renderbufferStorageMultisample(36161,r,a,n.width,n.height)}else t.renderbufferStorage(36161,a,n.width,n.height)}t.bindRenderbuffer(36161,null)}function E(e){var n=i.get(e),r=!0===e.isWebGLRenderTargetCube;if(e.depthTexture){if(r)throw new Error("target.depthTexture not supported in Cube render targets");!function(e,n){if(n&&n.isWebGLRenderTargetCube)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(36160,e),!n.depthTexture||!n.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");i.get(n.depthTexture).__webglTexture&&n.depthTexture.image.width===n.width&&n.depthTexture.image.height===n.height||(n.depthTexture.image.width=n.width,n.depthTexture.image.height=n.height,n.depthTexture.needsUpdate=!0),b(n.depthTexture,0);var r=i.get(n.depthTexture).__webglTexture;if(n.depthTexture.format===ee)t.framebufferTexture2D(36160,36096,3553,r,0);else{if(n.depthTexture.format!==ne)throw new Error("Unknown depthTexture format");t.framebufferTexture2D(36160,33306,3553,r,0)}}(n.__webglFramebuffer,e)}else if(r){n.__webglDepthbuffer=[];for(var o=0;o<6;o++)t.bindFramebuffer(36160,n.__webglFramebuffer[o]),n.__webglDepthbuffer[o]=t.createRenderbuffer(),T(n.__webglDepthbuffer[o],e)}else t.bindFramebuffer(36160,n.__webglFramebuffer),n.__webglDepthbuffer=t.createRenderbuffer(),T(n.__webglDepthbuffer,e);t.bindFramebuffer(36160,null)}function M(t){return r.isWebGL2&&t.isWebGLMultisampleRenderTarget?Math.min(r.maxSamples,t.samples):0}this.setTexture2D=b,this.setTexture3D=function(t,e){var r=i.get(t);t.version>0&&r.__version!==t.version?w(r,t,e):(n.activeTexture(33984+e),n.bindTexture(32879,r.__webglTexture))},this.setTextureCube=function(e,a){var s=i.get(e);if(6===e.image.length)if(e.version>0&&s.__version!==e.version){_(s,e),n.activeTexture(33984+a),n.bindTexture(34067,s.__webglTexture),t.pixelStorei(37440,e.flipY);for(var c=e&&e.isCompressedTexture,l=e.image[0]&&e.image[0].isDataTexture,u=[],v=0;v<6;v++)u[v]=c||l?l?e.image[v].image:e.image[v]:h(e.image[v],!1,!0,r.maxCubemapSize);var g=u[0],y=d(g)||r.isWebGL2,b=o.convert(e.format),w=o.convert(e.type),S=m(b,w);for(x(34067,e,y),v=0;v<6;v++)if(c)for(var T,E=u[v].mipmaps,M=0,C=E.length;M<C;M++)T=E[M],e.format!==Zt&&e.format!==Kt?n.getCompressedTextureFormats().indexOf(b)>-1?n.compressedTexImage2D(34069+v,M,S,T.width,T.height,0,T.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(34069+v,M,S,T.width,T.height,0,b,w,T.data);else l?n.texImage2D(34069+v,0,S,u[v].width,u[v].height,0,b,w,u[v].data):n.texImage2D(34069+v,0,S,b,w,u[v]);s.__maxMipLevel=c?E.length-1:0,f(e,y)&&p(34067,e,g.width,g.height),s.__version=e.version,e.onUpdate&&e.onUpdate(e)}else n.activeTexture(33984+a),n.bindTexture(34067,s.__webglTexture)},this.setTextureCubeDynamic=function(t,e){n.activeTexture(33984+e),n.bindTexture(34067,i.get(t).__webglTexture)},this.setupRenderTarget=function(e){var s=i.get(e),c=i.get(e.texture);e.addEventListener("dispose",y),c.__webglTexture=t.createTexture(),a.memory.textures++;var l=!0===e.isWebGLRenderTargetCube,u=!0===e.isWebGLMultisampleRenderTarget,h=d(e)||r.isWebGL2;if(l){s.__webglFramebuffer=[];for(var v=0;v<6;v++)s.__webglFramebuffer[v]=t.createFramebuffer()}else if(s.__webglFramebuffer=t.createFramebuffer(),u)if(r.isWebGL2){s.__webglMultisampledFramebuffer=t.createFramebuffer(),s.__webglColorRenderbuffer=t.createRenderbuffer(),t.bindRenderbuffer(36161,s.__webglColorRenderbuffer);var g=m(o.convert(e.texture.format),o.convert(e.texture.type)),b=M(e);t.renderbufferStorageMultisample(36161,b,g,e.width,e.height),t.bindFramebuffer(36160,s.__webglMultisampledFramebuffer),t.framebufferRenderbuffer(36160,36064,36161,s.__webglColorRenderbuffer),t.bindRenderbuffer(36161,null),e.depthBuffer&&(s.__webglDepthRenderbuffer=t.createRenderbuffer(),T(s.__webglDepthRenderbuffer,e,!0)),t.bindFramebuffer(36160,null)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.");if(l){for(n.bindTexture(34067,c.__webglTexture),x(34067,e.texture,h),v=0;v<6;v++)S(s.__webglFramebuffer[v],e,36064,34069+v);f(e.texture,h)&&p(34067,e.texture,e.width,e.height),n.bindTexture(34067,null)}else n.bindTexture(3553,c.__webglTexture),x(3553,e.texture,h),S(s.__webglFramebuffer,e,36064,3553),f(e.texture,h)&&p(3553,e.texture,e.width,e.height),n.bindTexture(3553,null);e.depthBuffer&&E(e)},this.updateRenderTargetMipmap=function(t){var e=t.texture;if(f(e,d(t)||r.isWebGL2)){var o=t.isWebGLRenderTargetCube?34067:3553,a=i.get(e).__webglTexture;n.bindTexture(o,a),p(o,e,t.width,t.height),n.bindTexture(o,null)}},this.updateMultisampleRenderTarget=function(e){if(e.isWebGLMultisampleRenderTarget)if(r.isWebGL2){var n=i.get(e);t.bindFramebuffer(36008,n.__webglMultisampledFramebuffer),t.bindFramebuffer(36009,n.__webglFramebuffer);var o=e.width,a=e.height,s=16384;e.depthBuffer&&(s|=256),e.stencilBuffer&&(s|=1024),t.blitFramebuffer(0,0,o,a,0,0,o,a,s,9728)}else console.warn("THREE.WebGLRenderer: WebGLMultisampleRenderTarget can only be used with WebGL2.")}}function qr(t,e,n){return{convert:function(t){var i;if(t===Lt)return 10497;if(t===Ot)return 33071;if(t===kt)return 33648;if(t===Pt)return 9728;if(t===At)return 9984;if(t===It)return 9986;if(t===Dt)return 9729;if(t===Rt)return 9985;if(t===Bt)return 9987;if(t===Nt)return 5121;if(t===Ht)return 32819;if(t===Wt)return 32820;if(t===qt)return 33635;if(t===jt)return 5120;if(t===zt)return 5122;if(t===Ft)return 5123;if(t===Vt)return 5124;if(t===Ut)return 5125;if(t===Gt)return 5126;if(t===$t){if(n.isWebGL2)return 5131;if(null!==(i=e.get("OES_texture_half_float")))return i.HALF_FLOAT_OES}if(t===Yt)return 6406;if(t===Kt)return 6407;if(t===Zt)return 6408;if(t===Jt)return 6409;if(t===Qt)return 6410;if(t===ee)return 6402;if(t===ne)return 34041;if(t===ie)return 6403;if(t===V)return 32774;if(t===U)return 32778;if(t===G)return 32779;if(t===W)return 0;if(t===q)return 1;if(t===X)return 768;if(t===Y)return 769;if(t===K)return 770;if(t===Z)return 771;if(t===J)return 772;if(t===Q)return 773;if(t===tt)return 774;if(t===et)return 775;if(t===nt)return 776;if((t===re||t===oe||t===ae||t===se)&&null!==(i=e.get("WEBGL_compressed_texture_s3tc"))){if(t===re)return i.COMPRESSED_RGB_S3TC_DXT1_EXT;if(t===oe)return i.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(t===ae)return i.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(t===se)return i.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((t===ce||t===le||t===ue||t===he)&&null!==(i=e.get("WEBGL_compressed_texture_pvrtc"))){if(t===ce)return i.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(t===le)return i.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(t===ue)return i.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(t===he)return i.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(t===de&&null!==(i=e.get("WEBGL_compressed_texture_etc1")))return i.COMPRESSED_RGB_ETC1_WEBGL;if((t===fe||t===pe||t===me||t===ve||t===ge||t===ye||t===be||t===xe||t===_e||t===we||t===Se||t===Te||t===Ee||t===Me)&&null!==(i=e.get("WEBGL_compressed_texture_astc")))return t;if(t===$||t===H){if(n.isWebGL2){if(t===$)return 32775;if(t===H)return 32776}if(null!==(i=e.get("EXT_blend_minmax"))){if(t===$)return i.MIN_EXT;if(t===H)return i.MAX_EXT}}if(t===Xt){if(n.isWebGL2)return 34042;if(null!==(i=e.get("WEBGL_depth_texture")))return i.UNSIGNED_INT_24_8_WEBGL}return 0}}}function Xr(){Gn.call(this),this.type="Group"}function Yr(){Gn.call(this),this.type="Camera",this.matrixWorldInverse=new Qe,this.projectionMatrix=new Qe,this.projectionMatrixInverse=new Qe}function Kr(t,e,n,i){Yr.call(this),this.type="PerspectiveCamera",this.fov=void 0!==t?t:50,this.zoom=1,this.near=void 0!==n?n:.1,this.far=void 0!==i?i:2e3,this.focus=10,this.aspect=void 0!==e?e:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}function Zr(t){Kr.call(this),this.cameras=t||[]}Gr.prototype=Object.create(fi.prototype),Gr.prototype.constructor=Gr,Gr.prototype.isMeshDepthMaterial=!0,Gr.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.depthPacking=t.depthPacking,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this},$r.prototype=Object.create(fi.prototype),$r.prototype.constructor=$r,$r.prototype.isMeshDistanceMaterial=!0,$r.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.referencePosition.copy(t.referencePosition),this.nearDistance=t.nearDistance,this.farDistance=t.farDistance,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.map=t.map,this.alphaMap=t.alphaMap,this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this},Xr.prototype=Object.assign(Object.create(Gn.prototype),{constructor:Xr,isGroup:!0}),Yr.prototype=Object.assign(Object.create(Gn.prototype),{constructor:Yr,isCamera:!0,copy:function(t,e){return Gn.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this.projectionMatrixInverse.copy(t.projectionMatrixInverse),this},getWorldDirection:function(t){void 0===t&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),t=new en),this.updateMatrixWorld(!0);var e=this.matrixWorld.elements;return t.set(-e[8],-e[9],-e[10]).normalize()},updateMatrixWorld:function(t){Gn.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return(new this.constructor).copy(this)}}),Kr.prototype=Object.assign(Object.create(Yr.prototype),{constructor:Kr,isPerspectiveCamera:!0,copy:function(t,e){return Yr.prototype.copy.call(this,t,e),this.fov=t.fov,this.zoom=t.zoom,this.near=t.near,this.far=t.far,this.focus=t.focus,this.aspect=t.aspect,this.view=null===t.view?null:Object.assign({},t.view),this.filmGauge=t.filmGauge,this.filmOffset=t.filmOffset,this},setFocalLength:function(t){var e=.5*this.getFilmHeight()/t;this.fov=2*Ze.RAD2DEG*Math.atan(e),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*Ze.DEG2RAD*this.fov);return.5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*Ze.RAD2DEG*Math.atan(Math.tan(.5*Ze.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(t,e,n,i,r,o){this.aspect=t/e,null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=this.near,e=t*Math.tan(.5*Ze.DEG2RAD*this.fov)/this.zoom,n=2*e,i=this.aspect*n,r=-.5*i,o=this.view;if(null!==this.view&&this.view.enabled){var a=o.fullWidth,s=o.fullHeight;r+=o.offsetX*i/a,e-=o.offsetY*n/s,i*=o.width/a,n*=o.height/s}var c=this.filmOffset;0!==c&&(r+=t*c/this.getFilmWidth()),this.projectionMatrix.makePerspective(r,r+i,e,e-n,t,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){var e=Gn.prototype.toJSON.call(this,t);return e.object.fov=this.fov,e.object.zoom=this.zoom,e.object.near=this.near,e.object.far=this.far,e.object.focus=this.focus,e.object.aspect=this.aspect,null!==this.view&&(e.object.view=Object.assign({},this.view)),e.object.filmGauge=this.filmGauge,e.object.filmOffset=this.filmOffset,e}}),Zr.prototype=Object.assign(Object.create(Kr.prototype),{constructor:Zr,isArrayCamera:!0});var Jr,Qr,to,eo,no,io,ro=new en,oo=new en;function ao(t,e,n){ro.setFromMatrixPosition(e.matrixWorld),oo.setFromMatrixPosition(n.matrixWorld);var i=ro.distanceTo(oo),r=e.projectionMatrix.elements,o=n.projectionMatrix.elements,a=r[14]/(r[10]-1),s=r[14]/(r[10]+1),c=(r[9]+1)/r[5],l=(r[9]-1)/r[5],u=(r[8]-1)/r[0],h=(o[8]+1)/o[0],d=a*u,f=a*h,p=i/(-u+h),m=p*-u;e.matrixWorld.decompose(t.position,t.quaternion,t.scale),t.translateX(m),t.translateZ(p),t.matrixWorld.compose(t.position,t.quaternion,t.scale),t.matrixWorldInverse.getInverse(t.matrixWorld);var v=a+p,g=s+p,y=d-m,b=f+(i-m),x=c*s/g*v,_=l*s/g*v;t.projectionMatrix.makePerspective(y,b,x,_,v,g)}function so(t){var e=this,n=null,i=null,r=null,o=[],a=new Qe,s=new Qe,c=1,l="stage";"undefined"!=typeof window&&"VRFrameData"in window&&(i=new window.VRFrameData,window.addEventListener("vrdisplaypresentchange",b,!1));var u=new Qe,h=new tn,d=new en,f=new Kr;f.bounds=new dn(0,0,.5,1),f.layers.enable(1);var p=new Kr;p.bounds=new dn(.5,0,.5,1),p.layers.enable(2);var m=new Zr([f,p]);function v(){return null!==n&&!0===n.isPresenting}m.layers.enable(1),m.layers.enable(2);var g,y=new Je;function b(){if(v()){var i=n.getEyeParameters("left"),r=i.renderWidth*c,o=i.renderHeight*c;g=t.getPixelRatio(),t.getSize(y),t.setDrawingBufferSize(2*r,o,1),w.start()}else e.enabled&&t.setDrawingBufferSize(y.width,y.height,g),w.stop()}var x=[];function _(t){for(var e=navigator.getGamepads&&navigator.getGamepads(),n=0,i=0,r=e.length;n<r;n++){var o=e[n];if(o&&("Daydream Controller"===o.id||"Gear VR Controller"===o.id||"Oculus Go Controller"===o.id||"OpenVR Gamepad"===o.id||o.id.startsWith("Oculus Touch")||o.id.startsWith("Spatial Controller"))){if(i===t)return o;i++}}}this.enabled=!1,this.getController=function(t){var e=o[t];return void 0===e&&((e=new Xr).matrixAutoUpdate=!1,e.visible=!1,o[t]=e),e},this.getDevice=function(){return n},this.setDevice=function(t){void 0!==t&&(n=t),w.setContext(t)},this.setFramebufferScaleFactor=function(t){c=t},this.setFrameOfReferenceType=function(t){l=t},this.setPoseTarget=function(t){void 0!==t&&(r=t)},this.getCamera=function(t){var e="stage"===l?1.6:0;if(!1===v())return t.position.set(0,e,0),t.rotation.set(0,0,0),t;if(n.depthNear=t.near,n.depthFar=t.far,n.getFrameData(i),"stage"===l){var c=n.stageParameters;c?a.fromArray(c.sittingToStandingTransform):a.makeTranslation(0,e,0)}var g=i.pose,y=null!==r?r:t;y.matrix.copy(a),y.matrix.decompose(y.position,y.quaternion,y.scale),null!==g.orientation&&(h.fromArray(g.orientation),y.quaternion.multiply(h)),null!==g.position&&(h.setFromRotationMatrix(a),d.fromArray(g.position),d.applyQuaternion(h),y.position.add(d)),y.updateMatrixWorld(),f.near=t.near,p.near=t.near,f.far=t.far,p.far=t.far,f.matrixWorldInverse.fromArray(i.leftViewMatrix),p.matrixWorldInverse.fromArray(i.rightViewMatrix),s.getInverse(a),"stage"===l&&(f.matrixWorldInverse.multiply(s),p.matrixWorldInverse.multiply(s));var b=y.parent;null!==b&&(u.getInverse(b.matrixWorld),f.matrixWorldInverse.multiply(u),p.matrixWorldInverse.multiply(u)),f.matrixWorld.getInverse(f.matrixWorldInverse),p.matrixWorld.getInverse(p.matrixWorldInverse),f.projectionMatrix.fromArray(i.leftProjectionMatrix),p.projectionMatrix.fromArray(i.rightProjectionMatrix),ao(m,f,p);var w=n.getLayers();if(w.length){var S=w[0];null!==S.leftBounds&&4===S.leftBounds.length&&f.bounds.fromArray(S.leftBounds),null!==S.rightBounds&&4===S.rightBounds.length&&p.bounds.fromArray(S.rightBounds)}return function(){for(var t=0;t<o.length;t++){var e=o[t],n=_(t);if(void 0!==n&&void 0!==n.pose){if(null===n.pose)return;var i=n.pose;!1===i.hasPosition&&e.position.set(.2,-.6,-.05),null!==i.position&&e.position.fromArray(i.position),null!==i.orientation&&e.quaternion.fromArray(i.orientation),e.matrix.compose(e.position,e.quaternion,e.scale),e.matrix.premultiply(a),e.matrix.decompose(e.position,e.quaternion,e.scale),e.matrixWorldNeedsUpdate=!0,e.visible=!0;var r="Daydream Controller"===n.id?0:1;x[t]!==n.buttons[r].pressed&&(x[t]=n.buttons[r].pressed,!0===x[t]?e.dispatchEvent({type:"selectstart"}):(e.dispatchEvent({type:"selectend"}),e.dispatchEvent({type:"select"})))}else e.visible=!1}}(),m},this.getStandingMatrix=function(){return a},this.isPresenting=v;var w=new In;this.setAnimationLoop=function(t){w.setAnimationLoop(t)},this.submitFrame=function(){v()&&n.submitFrame()},this.dispose=function(){"undefined"!=typeof window&&window.removeEventListener("vrdisplaypresentchange",b)}}function co(t){console.log("THREE.WebGLRenderer",v);var e=void 0!==(t=t||{}).canvas?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),n=void 0!==t.context?t.context:null,i=void 0!==t.alpha&&t.alpha,r=void 0===t.depth||t.depth,o=void 0===t.stencil||t.stencil,a=void 0!==t.antialias&&t.antialias,s=void 0===t.premultipliedAlpha||t.premultipliedAlpha,c=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,l=void 0!==t.powerPreference?t.powerPreference:"default",u=null,h=null;this.domElement=e,this.context=null,this.autoClear=!0,this.autoClearColor=!0,this.autoClearDepth=!0,this.autoClearStencil=!0,this.sortObjects=!0,this.clippingPlanes=[],this.localClippingEnabled=!1,this.gammaFactor=2,this.gammaInput=!1,this.gammaOutput=!1,this.physicallyCorrectLights=!1,this.toneMapping=mt,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var d,f,p,m,g,_,w,S,T,E,M,k,P,A,I,D,U,G,$=this,H=!1,W=null,q=null,X=null,Y=-1,K={geometry:null,program:null,wireframe:!1},Z=null,J=null,Q=new dn,tt=new dn,et=null,nt=0,ht=e.width,dt=e.height,ft=1,pt=new dn(0,0,ht,dt),vt=new dn(0,0,ht,dt),gt=!1,yt=new xn,bt=new function(){var t=this,e=null,n=0,i=!1,r=!1,o=new bn,a=new nn,s={value:null,needsUpdate:!1};function c(){s.value!==e&&(s.value=e,s.needsUpdate=n>0),t.numPlanes=n,t.numIntersection=0}function l(e,n,i,r){var c=null!==e?e.length:0,l=null;if(0!==c){if(l=s.value,!0!==r||null===l){var u=i+4*c,h=n.matrixWorldInverse;a.getNormalMatrix(h),(null===l||l.length<u)&&(l=new Float32Array(u));for(var d=0,f=i;d!==c;++d,f+=4)o.copy(e[d]).applyMatrix4(h,a),o.normal.toArray(l,f),l[f+3]=o.constant}s.value=l,s.needsUpdate=!0}return t.numPlanes=c,l}this.uniform=s,this.numPlanes=0,this.numIntersection=0,this.init=function(t,r,o){var a=0!==t.length||r||0!==n||i;return i=r,e=l(t,o,0),n=t.length,a},this.beginShadows=function(){r=!0,l(null)},this.endShadows=function(){r=!1,c()},this.setState=function(t,o,a,u,h,d){if(!i||null===t||0===t.length||r&&!a)r?l(null):c();else{var f=r?0:n,p=4*f,m=h.clippingState||null;s.value=m,m=l(t,u,p,d);for(var v=0;v!==p;++v)m[v]=e[v];h.clippingState=m,this.numIntersection=o?this.numPlanes:0,this.numPlanes+=f}}},xt=!1,_t=!1,wt=new Qe,St=new en;function Tt(){return null===q?ft:1}try{var Et={alpha:i,depth:r,stencil:o,antialias:a,premultipliedAlpha:s,preserveDrawingBuffer:c,powerPreference:l};if(e.addEventListener("webglcontextlost",Ot,!1),e.addEventListener("webglcontextrestored",kt,!1),null===(d=n||e.getContext("webgl",Et)||e.getContext("experimental-webgl",Et)))throw null!==e.getContext("webgl")?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.");void 0===d.getShaderPrecisionFormat&&(d.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(t){throw console.error("THREE.WebGLRenderer: "+t.message),t}function Mt(){f=new function(t){var e={};return{get:function(n){if(void 0!==e[n])return e[n];var i;switch(n){case"WEBGL_depth_texture":i=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":i=t.getExtension("EXT_texture_filter_anisotropic")||t.getExtension("MOZ_EXT_texture_filter_anisotropic")||t.getExtension("WEBKIT_EXT_texture_filter_anisotropic");break;case"WEBGL_compressed_texture_s3tc":i=t.getExtension("WEBGL_compressed_texture_s3tc")||t.getExtension("MOZ_WEBGL_compressed_texture_s3tc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_s3tc");break;case"WEBGL_compressed_texture_pvrtc":i=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:i=t.getExtension(n)}return null===i&&console.warn("THREE.WebGLRenderer: "+n+" extension not supported."),e[n]=i,i}}}(d),(p=new function(t,e,n){var i;function r(e){if("highp"===e){if(t.getShaderPrecisionFormat(35633,36338).precision>0&&t.getShaderPrecisionFormat(35632,36338).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(35633,36337).precision>0&&t.getShaderPrecisionFormat(35632,36337).precision>0?"mediump":"lowp"}var o="undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext,a=void 0!==n.precision?n.precision:"highp",s=r(a);s!==a&&(console.warn("THREE.WebGLRenderer:",a,"not supported, using",s,"instead."),a=s);var c=!0===n.logarithmicDepthBuffer,l=t.getParameter(34930),u=t.getParameter(35660),h=t.getParameter(3379),d=t.getParameter(34076),f=t.getParameter(34921),p=t.getParameter(36347),m=t.getParameter(36348),v=t.getParameter(36349),g=u>0,y=o||!!e.get("OES_texture_float");return{isWebGL2:o,getMaxAnisotropy:function(){if(void 0!==i)return i;var n=e.get("EXT_texture_filter_anisotropic");return i=null!==n?t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0},getMaxPrecision:r,precision:a,logarithmicDepthBuffer:c,maxTextures:l,maxVertexTextures:u,maxTextureSize:h,maxCubemapSize:d,maxAttributes:f,maxVertexUniforms:p,maxVaryings:m,maxFragmentUniforms:v,vertexTextures:g,floatFragmentTextures:y,floatVertexTextures:g&&y,maxSamples:o?t.getParameter(36183):0}}(d,f,t)).isWebGL2||(f.get("WEBGL_depth_texture"),f.get("OES_texture_float"),f.get("OES_texture_half_float"),f.get("OES_texture_half_float_linear"),f.get("OES_standard_derivatives"),f.get("OES_element_index_uint"),f.get("ANGLE_instanced_arrays")),f.get("OES_texture_float_linear"),G=new qr(d,f,p),(m=new function(t,e,n,i){var r=new function(){var e=!1,n=new dn,i=null,r=new dn(0,0,0,0);return{setMask:function(n){i===n||e||(t.colorMask(n,n,n,n),i=n)},setLocked:function(t){e=t},setClear:function(e,i,o,a,s){!0===s&&(e*=a,i*=a,o*=a),n.set(e,i,o,a),!1===r.equals(n)&&(t.clearColor(e,i,o,a),r.copy(n))},reset:function(){e=!1,i=null,r.set(-1,0,0,0)}}},o=new function(){var e=!1,n=null,i=null,r=null;return{setTest:function(t){t?Z(2929):J(2929)},setMask:function(i){n===i||e||(t.depthMask(i),n=i)},setFunc:function(e){if(i!==e){if(e)switch(e){case it:t.depthFunc(512);break;case rt:t.depthFunc(519);break;case ot:t.depthFunc(513);break;case at:t.depthFunc(515);break;case st:t.depthFunc(514);break;case ct:t.depthFunc(518);break;case lt:t.depthFunc(516);break;case ut:t.depthFunc(517);break;default:t.depthFunc(515)}else t.depthFunc(515);i=e}},setLocked:function(t){e=t},setClear:function(e){r!==e&&(t.clearDepth(e),r=e)},reset:function(){e=!1,n=null,i=null,r=null}}},a=new function(){var e=!1,n=null,i=null,r=null,o=null,a=null,s=null,c=null,l=null;return{setTest:function(t){t?Z(2960):J(2960)},setMask:function(i){n===i||e||(t.stencilMask(i),n=i)},setFunc:function(e,n,a){i===e&&r===n&&o===a||(t.stencilFunc(e,n,a),i=e,r=n,o=a)},setOp:function(e,n,i){a===e&&s===n&&c===i||(t.stencilOp(e,n,i),a=e,s=n,c=i)},setLocked:function(t){e=t},setClear:function(e){l!==e&&(t.clearStencil(e),l=e)},reset:function(){e=!1,n=null,i=null,r=null,o=null,a=null,s=null,c=null,l=null}}},s=t.getParameter(34921),c=new Uint8Array(s),l=new Uint8Array(s),u=new Uint8Array(s),h={},d=null,f=null,p=null,m=null,v=null,g=null,_=null,w=null,S=null,T=null,E=!1,M=null,C=null,k=null,P=null,A=null,I=t.getParameter(35661),D=!1,U=0,G=t.getParameter(7938);-1!==G.indexOf("WebGL")?(U=parseFloat(/^WebGL\ ([0-9])/.exec(G)[1]),D=U>=1):-1!==G.indexOf("OpenGL ES")&&(U=parseFloat(/^OpenGL\ ES\ ([0-9])/.exec(G)[1]),D=U>=2);var $=null,H={},W=new dn,q=new dn;function X(e,n,i){var r=new Uint8Array(4),o=t.createTexture();t.bindTexture(e,o),t.texParameteri(e,10241,9728),t.texParameteri(e,10240,9728);for(var a=0;a<i;a++)t.texImage2D(n+a,0,6408,1,1,0,6408,5121,r);return o}var Y={};function K(n,r){c[n]=1,0===l[n]&&(t.enableVertexAttribArray(n),l[n]=1),u[n]!==r&&((i.isWebGL2?t:e.get("ANGLE_instanced_arrays"))[i.isWebGL2?"vertexAttribDivisor":"vertexAttribDivisorANGLE"](n,r),u[n]=r)}function Z(e){!0!==h[e]&&(t.enable(e),h[e]=!0)}function J(e){!1!==h[e]&&(t.disable(e),h[e]=!1)}function Q(e,i,r,o,a,s,c,l){if(e!==R){if(p||(Z(3042),p=!0),e===F)a=a||i,s=s||r,c=c||o,i===v&&a===w||(t.blendEquationSeparate(n.convert(i),n.convert(a)),v=i,w=a),r===g&&o===_&&s===S&&c===T||(t.blendFuncSeparate(n.convert(r),n.convert(o),n.convert(s),n.convert(c)),g=r,_=o,S=s,T=c),m=e,E=null;else if(e!==m||l!==E){if(v===V&&w===V||(t.blendEquation(32774),v=V,w=V),l)switch(e){case B:t.blendFuncSeparate(1,771,1,771);break;case N:t.blendFunc(1,1);break;case j:t.blendFuncSeparate(0,0,769,771);break;case z:t.blendFuncSeparate(0,768,0,770);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}else switch(e){case B:t.blendFuncSeparate(770,771,1,771);break;case N:t.blendFunc(770,1);break;case j:t.blendFunc(0,769);break;case z:t.blendFunc(0,768);break;default:console.error("THREE.WebGLState: Invalid blending: ",e)}g=null,_=null,S=null,T=null,m=e,E=l}}else p&&(J(3042),p=!1)}function tt(e){M!==e&&(e?t.frontFace(2304):t.frontFace(2305),M=e)}function et(e){e!==y?(Z(2884),e!==C&&(e===b?t.cullFace(1029):e===x?t.cullFace(1028):t.cullFace(1032))):J(2884),C=e}function nt(e,n,i){e?(Z(32823),P===n&&A===i||(t.polygonOffset(n,i),P=n,A=i)):J(32823)}function ht(e){void 0===e&&(e=33984+I-1),$!==e&&(t.activeTexture(e),$=e)}return Y[3553]=X(3553,3553,1),Y[34067]=X(34067,34069,6),r.setClear(0,0,0,1),o.setClear(1),a.setClear(0),Z(2929),o.setFunc(at),tt(!1),et(b),Z(2884),Q(R),{buffers:{color:r,depth:o,stencil:a},initAttributes:function(){for(var t=0,e=c.length;t<e;t++)c[t]=0},enableAttribute:function(t){K(t,0)},enableAttributeAndDivisor:K,disableUnusedAttributes:function(){for(var e=0,n=l.length;e!==n;++e)l[e]!==c[e]&&(t.disableVertexAttribArray(e),l[e]=0)},enable:Z,disable:J,getCompressedTextureFormats:function(){if(null===d&&(d=[],e.get("WEBGL_compressed_texture_pvrtc")||e.get("WEBGL_compressed_texture_s3tc")||e.get("WEBGL_compressed_texture_etc1")||e.get("WEBGL_compressed_texture_astc")))for(var n=t.getParameter(34467),i=0;i<n.length;i++)d.push(n[i]);return d},useProgram:function(e){return f!==e&&(t.useProgram(e),f=e,!0)},setBlending:Q,setMaterial:function(t,e){t.side===O?J(2884):Z(2884);var n=t.side===L;e&&(n=!n),tt(n),t.blending===B&&!1===t.transparent?Q(R):Q(t.blending,t.blendEquation,t.blendSrc,t.blendDst,t.blendEquationAlpha,t.blendSrcAlpha,t.blendDstAlpha,t.premultipliedAlpha),o.setFunc(t.depthFunc),o.setTest(t.depthTest),o.setMask(t.depthWrite),r.setMask(t.colorWrite),nt(t.polygonOffset,t.polygonOffsetFactor,t.polygonOffsetUnits)},setFlipSided:tt,setCullFace:et,setLineWidth:function(e){e!==k&&(D&&t.lineWidth(e),k=e)},setPolygonOffset:nt,setScissorTest:function(t){t?Z(3089):J(3089)},activeTexture:ht,bindTexture:function(e,n){null===$&&ht();var i=H[$];void 0===i&&(i={type:void 0,texture:void 0},H[$]=i),i.type===e&&i.texture===n||(t.bindTexture(e,n||Y[e]),i.type=e,i.texture=n)},compressedTexImage2D:function(){try{t.compressedTexImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage2D:function(){try{t.texImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},texImage3D:function(){try{t.texImage3D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}},scissor:function(e){!1===W.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),W.copy(e))},viewport:function(e){!1===q.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),q.copy(e))},reset:function(){for(var e=0;e<l.length;e++)1===l[e]&&(t.disableVertexAttribArray(e),l[e]=0);h={},d=null,$=null,H={},f=null,m=null,M=null,C=null,r.reset(),o.reset(),a.reset()}}}(d,f,G,p)).scissor(tt.copy(vt).multiplyScalar(ft)),m.viewport(Q.copy(pt).multiplyScalar(ft)),g=new function(t){var e={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:{geometries:0,textures:0},render:e,programs:null,autoReset:!0,reset:function(){e.frame++,e.calls=0,e.triangles=0,e.points=0,e.lines=0},update:function(t,n,i){switch(i=i||1,e.calls++,n){case 4:e.triangles+=i*(t/3);break;case 5:case 6:e.triangles+=i*(t-2);break;case 1:e.lines+=i*(t/2);break;case 3:e.lines+=i*(t-1);break;case 2:e.lines+=i*t;break;case 0:e.points+=i*t;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}}}(d),_=new function(){var t=new WeakMap;return{get:function(e){var n=t.get(e);return void 0===n&&(n={},t.set(e,n)),n},remove:function(e){t.delete(e)},update:function(e,n,i){t.get(e)[n]=i},dispose:function(){t=new WeakMap}}},w=new Wr(d,f,m,_,p,G,g),S=new Dn(d),T=new function(t,e,n){var i={},r={};function o(t){var a=t.target,s=i[a.id];for(var c in null!==s.index&&e.remove(s.index),s.attributes)e.remove(s.attributes[c]);a.removeEventListener("dispose",o),delete i[a.id];var l=r[s.id];l&&(e.remove(l),delete r[s.id]),n.memory.geometries--}return{get:function(t,e){var r=i[e.id];return r||(e.addEventListener("dispose",o),e.isBufferGeometry?r=e:e.isGeometry&&(void 0===e._bufferGeometry&&(e._bufferGeometry=(new si).setFromObject(t)),r=e._bufferGeometry),i[e.id]=r,n.memory.geometries++,r)},update:function(t){var n=t.index,i=t.attributes;for(var r in null!==n&&e.update(n,34963),i)e.update(i[r],34962);var o=t.morphAttributes;for(var r in o)for(var a=o[r],s=0,c=a.length;s<c;s++)e.update(a[s],34962)},getWireframeAttribute:function(t){var n=r[t.id];if(n)return n;var i,o=[],a=t.index,s=t.attributes;if(null!==a)for(var c=0,l=(i=a.array).length;c<l;c+=3){var u=i[c+0],h=i[c+1],d=i[c+2];o.push(u,h,h,d,d,u)}else for(c=0,l=(i=s.position.array).length/3-1;c<l;c+=3)u=c+0,h=c+1,d=c+2,o.push(u,h,h,d,d,u);return n=new(oi(o)>65535?ei:Qn)(o,1),e.update(n,34963),r[t.id]=n,n}}}(d,S,g),E=new function(t,e){var n={};return{update:function(i){var r=e.render.frame,o=i.geometry,a=t.get(i,o);return n[a.id]!==r&&(o.isGeometry&&a.updateFromObject(i),t.update(a),n[a.id]=r),a},dispose:function(){n={}}}}(T,g),I=new function(t){var e={},n=new Float32Array(8);return{update:function(i,r,o,a){var s=i.morphTargetInfluences,c=s.length,l=e[r.id];if(void 0===l){l=[];for(var u=0;u<c;u++)l[u]=[u,0];e[r.id]=l}var h=o.morphTargets&&r.morphAttributes.position,d=o.morphNormals&&r.morphAttributes.normal;for(u=0;u<c;u++)0!==(f=l[u])[1]&&(h&&r.removeAttribute("morphTarget"+u),d&&r.removeAttribute("morphNormal"+u));for(u=0;u<c;u++)(f=l[u])[0]=u,f[1]=s[u];for(l.sort(Ii),u=0;u<8;u++){var f;if(f=l[u]){var p=f[0],m=f[1];if(m){h&&r.addAttribute("morphTarget"+u,h[p]),d&&r.addAttribute("morphNormal"+u,d[p]),n[u]=m;continue}}n[u]=0}a.getUniforms().setValue(t,"morphTargetInfluences",n)}}}(d),M=new Br($,f,p),k=new function(){var t={};function e(n){var i=n.target;i.removeEventListener("dispose",e),delete t[i.id]}return{get:function(n,i){var r,o=t[n.id];return void 0===o?(r=new zr,t[n.id]={},t[n.id][i.id]=r,n.addEventListener("dispose",e)):void 0===(r=o[i.id])&&(r=new zr,o[i.id]=r),r},dispose:function(){t={}}}},P=new function(){var t={};function e(n){var i=n.target;i.removeEventListener("dispose",e),delete t[i.id]}return{get:function(n,i){var r;return void 0===t[n.id]?(r=new Ur,t[n.id]={},t[n.id][i.id]=r,n.addEventListener("dispose",e)):void 0===t[n.id][i.id]?(r=new Ur,t[n.id][i.id]=r):r=t[n.id][i.id],r},dispose:function(){t={}}}},A=new function(t,e,n,i){var r,o,a=new On(0),s=0,c=null,l=0;function u(t,n){e.buffers.color.setClear(t.r,t.g,t.b,n,i)}return{getClearColor:function(){return a},setClearColor:function(t,e){a.set(t),u(a,s=void 0!==e?e:1)},getClearAlpha:function(){return s},setClearAlpha:function(t){u(a,s=t)},render:function(e,i,h,d){var f=i.background;if(null===f?(u(a,s),c=null,l=0):f&&f.isColor&&(u(f,1),d=!0,c=null,l=0),(t.autoClear||d)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),f&&(f.isCubeTexture||f.isWebGLRenderTargetCube)){void 0===o&&((o=new Ai(new li(1,1,1),new Li({type:"BackgroundCubeMaterial",uniforms:wn(An.cube.uniforms),vertexShader:An.cube.vertexShader,fragmentShader:An.cube.fragmentShader,side:L,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.removeAttribute("normal"),o.geometry.removeAttribute("uv"),o.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},Object.defineProperty(o.material,"map",{get:function(){return this.uniforms.tCube.value}}),n.update(o));var p=f.isWebGLRenderTargetCube?f.texture:f;o.material.uniforms.tCube.value=p,o.material.uniforms.tFlip.value=f.isWebGLRenderTargetCube?1:-1,c===f&&l===p.version||(o.material.needsUpdate=!0,c=f,l=p.version),e.unshift(o,o.geometry,o.material,0,0,null)}else f&&f.isTexture&&(void 0===r&&((r=new Ai(new hi(2,2),new Li({type:"BackgroundMaterial",uniforms:wn(An.background.uniforms),vertexShader:An.background.vertexShader,fragmentShader:An.background.fragmentShader,side:C,depthTest:!1,depthWrite:!1,fog:!1}))).geometry.removeAttribute("normal"),Object.defineProperty(r.material,"map",{get:function(){return this.uniforms.t2D.value}}),n.update(r)),r.material.uniforms.t2D.value=f,!0===f.matrixAutoUpdate&&f.updateMatrix(),r.material.uniforms.uvTransform.value.copy(f.matrix),c===f&&l===f.version||(r.material.needsUpdate=!0,c=f,l=f.version),e.unshift(r,r.geometry,r.material,0,0,null))}}}($,m,E,s),D=new function(t,e,n,i){var r;this.setMode=function(t){r=t},this.render=function(e,i){t.drawArrays(r,e,i),n.update(i,r)},this.renderInstances=function(o,a,s){var c;if(i.isWebGL2)c=t;else if(null===(c=e.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");c[i.isWebGL2?"drawArraysInstanced":"drawArraysInstancedANGLE"](r,a,s,o.maxInstancedCount),n.update(s,r,o.maxInstancedCount)}}(d,f,g,p),U=new function(t,e,n,i){var r,o,a;this.setMode=function(t){r=t},this.setIndex=function(t){o=t.type,a=t.bytesPerElement},this.render=function(e,i){t.drawElements(r,i,o,e*a),n.update(i,r)},this.renderInstances=function(s,c,l){var u;if(i.isWebGL2)u=t;else if(null===(u=e.get("ANGLE_instanced_arrays")))return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");u[i.isWebGL2?"drawElementsInstanced":"drawElementsInstancedANGLE"](r,l,o,c*a,s.maxInstancedCount),n.update(l,r,s.maxInstancedCount)}}(d,f,g,p),g.programs=M.programs,$.context=d,$.capabilities=p,$.extensions=f,$.properties=_,$.renderLists=k,$.state=m,$.info=g}Mt();var Ct=null;"undefined"!=typeof navigator&&(Ct="xr"in navigator?new function(t){var e=t.context,n=null,i=null,r=1,o=null,a="stage",s=null,c=[],l=[];function u(){return null!==i&&null!==o}var h=new Kr;h.layers.enable(1),h.viewport=new dn;var d=new Kr;d.layers.enable(2),d.viewport=new dn;var f=new Zr([h,d]);function p(t){var e=c[l.indexOf(t.inputSource)];e&&e.dispatchEvent({type:t.type})}function m(){t.setFramebuffer(null),t.setRenderTarget(t.getRenderTarget()),y.stop()}function v(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.getInverse(t.matrixWorld)}f.layers.enable(1),f.layers.enable(2),this.enabled=!1,this.getController=function(t){var e=c[t];return void 0===e&&((e=new Xr).matrixAutoUpdate=!1,e.visible=!1,c[t]=e),e},this.getDevice=function(){return n},this.setDevice=function(t){void 0!==t&&(n=t),t instanceof XRDevice&&e.setCompatibleXRDevice(t)},this.setFramebufferScaleFactor=function(t){r=t},this.setFrameOfReferenceType=function(t){a=t},this.setSession=function(n){null!==(i=n)&&(i.addEventListener("select",p),i.addEventListener("selectstart",p),i.addEventListener("selectend",p),i.addEventListener("end",m),i.baseLayer=new XRWebGLLayer(i,e,{framebufferScaleFactor:r}),i.requestFrameOfReference(a).then(function(e){o=e,t.setFramebuffer(i.baseLayer.framebuffer),y.setContext(i),y.start()}),l=i.getInputSources(),i.addEventListener("inputsourceschange",function(){l=i.getInputSources(),console.log(l);for(var t=0;t<c.length;t++)c[t].userData.inputSource=l[t]}))},this.getCamera=function(t){if(u()){var e=t.parent,n=f.cameras;v(f,e);for(var i=0;i<n.length;i++)v(n[i],e);t.matrixWorld.copy(f.matrixWorld);for(var r=t.children,o=(i=0,r.length);i<o;i++)r[i].updateMatrixWorld(!0);return ao(f,h,d),f}return t},this.isPresenting=u;var g=null,y=new In;y.setAnimationLoop(function(t,e){if(null!==(s=e.getDevicePose(o)))for(var n=i.baseLayer,r=e.views,a=0;a<r.length;a++){var u=r[a],h=n.getViewport(u),d=s.getViewMatrix(u),p=f.cameras[a];p.matrix.fromArray(d).getInverse(p.matrix),p.projectionMatrix.fromArray(u.projectionMatrix),p.viewport.set(h.x,h.y,h.width,h.height),0===a&&f.matrix.copy(p.matrix)}for(a=0;a<c.length;a++){var m=c[a],v=l[a];if(v){var y=e.getInputPose(v,o);if(null!==y){"targetRay"in y?m.matrix.elements=y.targetRay.transformMatrix:"pointerMatrix"in y&&(m.matrix.elements=y.pointerMatrix),m.matrix.decompose(m.position,m.rotation,m.scale),m.visible=!0;continue}}m.visible=!1}g&&g(t)}),this.setAnimationLoop=function(t){g=t},this.dispose=function(){},this.getStandingMatrix=function(){return console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed."),new Qe},this.submitFrame=function(){}}($):new so($)),this.vr=Ct;var Lt=new Hr($,E,p.maxTextureSize);function Ot(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),H=!0}function kt(){console.log("THREE.WebGLRenderer: Context Restored."),H=!1,Mt()}function Pt(t){var e=t.target;e.removeEventListener("dispose",Pt),function(t){At(t),_.remove(t)}(e)}function At(t){var e=_.get(t).program;t.program=void 0,void 0!==e&&M.releaseProgram(e)}this.shadowMap=Lt,this.getContext=function(){return d},this.getContextAttributes=function(){return d.getContextAttributes()},this.forceContextLoss=function(){var t=f.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){var t=f.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return ft},this.setPixelRatio=function(t){void 0!==t&&(ft=t,this.setSize(ht,dt,!1))},this.getSize=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getsize() now requires a Vector2 as an argument"),t=new Je),t.set(ht,dt)},this.setSize=function(t,n,i){Ct.isPresenting()?console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting."):(ht=t,dt=n,e.width=t*ft,e.height=n*ft,!1!==i&&(e.style.width=t+"px",e.style.height=n+"px"),this.setViewport(0,0,t,n))},this.getDrawingBufferSize=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getdrawingBufferSize() now requires a Vector2 as an argument"),t=new Je),t.set(ht*ft,dt*ft)},this.setDrawingBufferSize=function(t,n,i){ht=t,dt=n,ft=i,e.width=t*i,e.height=n*i,this.setViewport(0,0,t,n)},this.getCurrentViewport=function(t){return void 0===t&&(console.warn("WebGLRenderer: .getCurrentViewport() now requires a Vector4 as an argument"),t=new dn),t.copy(Q)},this.getViewport=function(t){return t.copy(pt)},this.setViewport=function(t,e,n,i){t.isVector4?pt.set(t.x,t.y,t.z,t.w):pt.set(t,e,n,i),m.viewport(Q.copy(pt).multiplyScalar(ft))},this.getScissor=function(t){return t.copy(vt)},this.setScissor=function(t,e,n,i){t.isVector4?vt.set(t.x,t.y,t.z,t.w):vt.set(t,e,n,i),m.scissor(tt.copy(vt).multiplyScalar(ft))},this.getScissorTest=function(){return gt},this.setScissorTest=function(t){m.setScissorTest(gt=t)},this.getClearColor=function(){return A.getClearColor()},this.setClearColor=function(){A.setClearColor.apply(A,arguments)},this.getClearAlpha=function(){return A.getClearAlpha()},this.setClearAlpha=function(){A.setClearAlpha.apply(A,arguments)},this.clear=function(t,e,n){var i=0;(void 0===t||t)&&(i|=16384),(void 0===e||e)&&(i|=256),(void 0===n||n)&&(i|=1024),d.clear(i)},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.dispose=function(){e.removeEventListener("webglcontextlost",Ot,!1),e.removeEventListener("webglcontextrestored",kt,!1),k.dispose(),P.dispose(),_.dispose(),E.dispose(),Ct.dispose(),Rt.stop()},this.renderBufferImmediate=function(t,e){m.initAttributes();var n=_.get(t);t.hasPositions&&!n.position&&(n.position=d.createBuffer()),t.hasNormals&&!n.normal&&(n.normal=d.createBuffer()),t.hasUvs&&!n.uv&&(n.uv=d.createBuffer()),t.hasColors&&!n.color&&(n.color=d.createBuffer());var i=e.getAttributes();t.hasPositions&&(d.bindBuffer(34962,n.position),d.bufferData(34962,t.positionArray,35048),m.enableAttribute(i.position),d.vertexAttribPointer(i.position,3,5126,!1,0,0)),t.hasNormals&&(d.bindBuffer(34962,n.normal),d.bufferData(34962,t.normalArray,35048),m.enableAttribute(i.normal),d.vertexAttribPointer(i.normal,3,5126,!1,0,0)),t.hasUvs&&(d.bindBuffer(34962,n.uv),d.bufferData(34962,t.uvArray,35048),m.enableAttribute(i.uv),d.vertexAttribPointer(i.uv,2,5126,!1,0,0)),t.hasColors&&(d.bindBuffer(34962,n.color),d.bufferData(34962,t.colorArray,35048),m.enableAttribute(i.color),d.vertexAttribPointer(i.color,3,5126,!1,0,0)),m.disableUnusedAttributes(),d.drawArrays(4,0,t.count),t.count=0},this.renderBufferDirect=function(t,e,n,i,r,o){var a=r.isMesh&&r.matrixWorld.determinant()<0;m.setMaterial(i,a);var s=Ft(t,e,i,r),c=!1;K.geometry===n.id&&K.program===s.id&&K.wireframe===(!0===i.wireframe)||(K.geometry=n.id,K.program=s.id,K.wireframe=!0===i.wireframe,c=!0),r.morphTargetInfluences&&(I.update(r,n,i,s),c=!0);var l,u=n.index,h=n.attributes.position,v=1;!0===i.wireframe&&(u=T.getWireframeAttribute(n),v=2);var g=D;null!==u&&(l=S.get(u),(g=U).setIndex(l)),c&&(!function(t,e,n){if(n&&n.isInstancedBufferGeometry&&!p.isWebGL2&&null===f.get("ANGLE_instanced_arrays"))return void console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");m.initAttributes();var i=n.attributes,r=e.getAttributes(),o=t.defaultAttributeValues;for(var a in r){var s=r[a];if(s>=0){var c=i[a];if(void 0!==c){var l=c.normalized,u=c.itemSize,h=S.get(c);if(void 0===h)continue;var v=h.buffer,g=h.type,y=h.bytesPerElement;if(c.isInterleavedBufferAttribute){var b=c.data,x=b.stride,_=c.offset;b&&b.isInstancedInterleavedBuffer?(m.enableAttributeAndDivisor(s,b.meshPerAttribute),void 0===n.maxInstancedCount&&(n.maxInstancedCount=b.meshPerAttribute*b.count)):m.enableAttribute(s),d.bindBuffer(34962,v),d.vertexAttribPointer(s,u,g,l,x*y,_*y)}else c.isInstancedBufferAttribute?(m.enableAttributeAndDivisor(s,c.meshPerAttribute),void 0===n.maxInstancedCount&&(n.maxInstancedCount=c.meshPerAttribute*c.count)):m.enableAttribute(s),d.bindBuffer(34962,v),d.vertexAttribPointer(s,u,g,l,0,0)}else if(void 0!==o){var w=o[a];if(void 0!==w)switch(w.length){case 2:d.vertexAttrib2fv(s,w);break;case 3:d.vertexAttrib3fv(s,w);break;case 4:d.vertexAttrib4fv(s,w);break;default:d.vertexAttrib1fv(s,w)}}}}m.disableUnusedAttributes()}(i,s,n),null!==u&&d.bindBuffer(34963,l.buffer));var y=1/0;null!==u?y=u.count:void 0!==h&&(y=h.count);var b=n.drawRange.start*v,x=n.drawRange.count*v,_=null!==o?o.start*v:0,w=null!==o?o.count*v:1/0,E=Math.max(b,_),M=Math.min(y,b+x,_+w)-1,C=Math.max(0,M-E+1);if(0!==C){if(r.isMesh)if(!0===i.wireframe)m.setLineWidth(i.wireframeLinewidth*Tt()),g.setMode(1);else switch(r.drawMode){case Be:g.setMode(4);break;case Ne:g.setMode(5);break;case je:g.setMode(6)}else if(r.isLine){var L=i.linewidth;void 0===L&&(L=1),m.setLineWidth(L*Tt()),r.isLineSegments?g.setMode(1):r.isLineLoop?g.setMode(2):g.setMode(3)}else r.isPoints?g.setMode(0):r.isSprite&&g.setMode(4);n&&n.isInstancedBufferGeometry?n.maxInstancedCount>0&&g.renderInstances(n,E,C):g.render(E,C)}},this.compile=function(t,e){(h=P.get(t,e)).init(),t.traverse(function(t){t.isLight&&(h.pushLight(t),t.castShadow&&h.pushShadow(t))}),h.setupLights(e),t.traverse(function(e){if(e.material)if(Array.isArray(e.material))for(var n=0;n<e.material.length;n++)zt(e.material[n],t.fog,e);else zt(e.material,t.fog,e)})};var It=null;var Dt,Rt=new In;function Bt(t,e,n,i){for(var r=0,o=t.length;r<o;r++){var a=t[r],s=a.object,c=a.geometry,l=void 0===i?a.material:i,u=a.group;if(n.isArrayCamera){J=n;for(var d=n.cameras,f=0,p=d.length;f<p;f++){var v=d[f];if(s.layers.test(v.layers)){if("viewport"in v)m.viewport(Q.copy(v.viewport));else{var g=v.bounds,y=g.x*ht,b=g.y*dt,x=g.z*ht,_=g.w*dt;m.viewport(Q.set(y,b,x,_).multiplyScalar(ft))}h.setupLights(v),jt(s,e,v,c,l,u)}}}else J=null,jt(s,e,n,c,l,u)}}function jt(t,e,n,i,r,o){if(t.onBeforeRender($,e,n,i,r,o),h=P.get(e,J||n),t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),t.isImmediateRenderObject){m.setMaterial(r);var a=Ft(n,e.fog,r,t);K.geometry=null,K.program=null,K.wireframe=!1,function(t,e){t.render(function(t){$.renderBufferImmediate(t,e)})}(t,a)}else $.renderBufferDirect(n,e.fog,i,r,t,o);t.onAfterRender($,e,n,i,r,o),h=P.get(e,J||n)}function zt(t,e,n){var i=_.get(t),r=h.state.lights,o=h.state.shadowsArray,a=i.lightsHash,s=r.state.hash,c=M.getParameters(t,r.state,o,e,bt.numPlanes,bt.numIntersection,n),l=M.getProgramCode(t,c),u=i.program,d=!0;if(void 0===u)t.addEventListener("dispose",Pt);else if(u.code!==l)At(t);else if(a.stateID!==s.stateID||a.directionalLength!==s.directionalLength||a.pointLength!==s.pointLength||a.spotLength!==s.spotLength||a.rectAreaLength!==s.rectAreaLength||a.hemiLength!==s.hemiLength||a.shadowsLength!==s.shadowsLength)a.stateID=s.stateID,a.directionalLength=s.directionalLength,a.pointLength=s.pointLength,a.spotLength=s.spotLength,a.rectAreaLength=s.rectAreaLength,a.hemiLength=s.hemiLength,a.shadowsLength=s.shadowsLength,d=!1;else{if(void 0!==c.shaderID)return;d=!1}if(d){if(c.shaderID){var f=An[c.shaderID];i.shader={name:t.type,uniforms:wn(f.uniforms),vertexShader:f.vertexShader,fragmentShader:f.fragmentShader}}else i.shader={name:t.type,uniforms:t.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader};t.onBeforeCompile(i.shader,$),l=M.getProgramCode(t,c),u=M.acquireProgram(t,i.shader,c,l),i.program=u,t.program=u}var p=u.getAttributes();if(t.morphTargets){t.numSupportedMorphTargets=0;for(var m=0;m<$.maxMorphTargets;m++)p["morphTarget"+m]>=0&&t.numSupportedMorphTargets++}if(t.morphNormals){t.numSupportedMorphNormals=0;for(m=0;m<$.maxMorphNormals;m++)p["morphNormal"+m]>=0&&t.numSupportedMorphNormals++}var v=i.shader.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(i.numClippingPlanes=bt.numPlanes,i.numIntersection=bt.numIntersection,v.clippingPlanes=bt.uniform),i.fog=e,void 0===a&&(i.lightsHash=a={}),a.stateID=s.stateID,a.directionalLength=s.directionalLength,a.pointLength=s.pointLength,a.spotLength=s.spotLength,a.rectAreaLength=s.rectAreaLength,a.hemiLength=s.hemiLength,a.shadowsLength=s.shadowsLength,t.lights&&(v.ambientLightColor.value=r.state.ambient,v.directionalLights.value=r.state.directional,v.spotLights.value=r.state.spot,v.rectAreaLights.value=r.state.rectArea,v.pointLights.value=r.state.point,v.hemisphereLights.value=r.state.hemi,v.directionalShadowMap.value=r.state.directionalShadowMap,v.directionalShadowMatrix.value=r.state.directionalShadowMatrix,v.spotShadowMap.value=r.state.spotShadowMap,v.spotShadowMatrix.value=r.state.spotShadowMatrix,v.pointShadowMap.value=r.state.pointShadowMap,v.pointShadowMatrix.value=r.state.pointShadowMatrix);var g=i.program.getUniforms(),y=Er.seqWithValue(g.seq,v);i.uniformsList=y}function Ft(t,e,n,i){nt=0;var r=_.get(n),o=h.state.lights,a=r.lightsHash,s=o.state.hash;if(xt&&(_t||t!==Z)){var c=t===Z&&n.id===Y;bt.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,t,r,c)}!1===n.needsUpdate&&(void 0===r.program?n.needsUpdate=!0:n.fog&&r.fog!==e?n.needsUpdate=!0:(!n.lights||a.stateID===s.stateID&&a.directionalLength===s.directionalLength&&a.pointLength===s.pointLength&&a.spotLength===s.spotLength&&a.rectAreaLength===s.rectAreaLength&&a.hemiLength===s.hemiLength&&a.shadowsLength===s.shadowsLength)&&(void 0===r.numClippingPlanes||r.numClippingPlanes===bt.numPlanes&&r.numIntersection===bt.numIntersection)||(n.needsUpdate=!0)),n.needsUpdate&&(zt(n,e,i),n.needsUpdate=!1);var l,u,f=!1,v=!1,g=!1,y=r.program,b=y.getUniforms(),x=r.shader.uniforms;if(m.useProgram(y.program)&&(f=!0,v=!0,g=!0),n.id!==Y&&(Y=n.id,v=!0),f||Z!==t){if(b.setValue(d,"projectionMatrix",t.projectionMatrix),p.logarithmicDepthBuffer&&b.setValue(d,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),Z!==t&&(Z=t,v=!0,g=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap){var w=b.map.cameraPosition;void 0!==w&&w.setValue(d,St.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&b.setValue(d,"viewMatrix",t.matrixWorldInverse)}if(n.skinning){b.setOptional(d,i,"bindMatrix"),b.setOptional(d,i,"bindMatrixInverse");var S=i.skeleton;if(S){var T=S.bones;if(p.floatVertexTextures){if(void 0===S.boneTexture){var E=Math.sqrt(4*T.length);E=Ze.ceilPowerOfTwo(E),E=Math.max(E,4);var M=new Float32Array(E*E*4);M.set(S.boneMatrices);var C=new vn(M,E,E,Zt,Gt);C.needsUpdate=!0,S.boneMatrices=M,S.boneTexture=C,S.boneTextureSize=E}b.setValue(d,"boneTexture",S.boneTexture),b.setValue(d,"boneTextureSize",S.boneTextureSize)}else b.setOptional(d,S,"boneMatrices")}}return v&&(b.setValue(d,"toneMappingExposure",$.toneMappingExposure),b.setValue(d,"toneMappingWhitePoint",$.toneMappingWhitePoint),n.lights&&(u=g,(l=x).ambientLightColor.needsUpdate=u,l.directionalLights.needsUpdate=u,l.pointLights.needsUpdate=u,l.spotLights.needsUpdate=u,l.rectAreaLights.needsUpdate=u,l.hemisphereLights.needsUpdate=u),e&&n.fog&&function(t,e){t.fogColor.value=e.color,e.isFog?(t.fogNear.value=e.near,t.fogFar.value=e.far):e.isFogExp2&&(t.fogDensity.value=e.density)}(x,e),n.isMeshBasicMaterial?Vt(x,n):n.isMeshLambertMaterial?(Vt(x,n),function(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}(x,n)):n.isMeshPhongMaterial?(Vt(x,n),n.isMeshToonMaterial?function(t,e){Ut(t,e),e.gradientMap&&(t.gradientMap.value=e.gradientMap)}(x,n):Ut(x,n)):n.isMeshStandardMaterial?(Vt(x,n),n.isMeshPhysicalMaterial?function(t,e){Ht(t,e),t.reflectivity.value=e.reflectivity,t.clearCoat.value=e.clearCoat,t.clearCoatRoughness.value=e.clearCoatRoughness}(x,n):Ht(x,n)):n.isMeshMatcapMaterial?(Vt(x,n),function(t,e){e.matcap&&(t.matcap.value=e.matcap);e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===L&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===L&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(x,n)):n.isMeshDepthMaterial?(Vt(x,n),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(x,n)):n.isMeshDistanceMaterial?(Vt(x,n),function(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias);t.referencePosition.value.copy(e.referencePosition),t.nearDistance.value=e.nearDistance,t.farDistance.value=e.farDistance}(x,n)):n.isMeshNormalMaterial?(Vt(x,n),function(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===L&&(t.bumpScale.value*=-1));e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===L&&t.normalScale.value.negate());e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}(x,n)):n.isLineBasicMaterial?(function(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity}(x,n),n.isLineDashedMaterial&&function(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}(x,n)):n.isPointsMaterial?function(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity,t.size.value=e.size*ft,t.scale.value=.5*dt,t.map.value=e.map,null!==e.map&&(!0===e.map.matrixAutoUpdate&&e.map.updateMatrix(),t.uvTransform.value.copy(e.map.matrix))}(x,n):n.isSpriteMaterial?function(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity,t.rotation.value=e.rotation,t.map.value=e.map,null!==e.map&&(!0===e.map.matrixAutoUpdate&&e.map.updateMatrix(),t.uvTransform.value.copy(e.map.matrix))}(x,n):n.isShadowMaterial&&(x.color.value=n.color,x.opacity.value=n.opacity),void 0!==x.ltc_1&&(x.ltc_1.value=Pn.LTC_1),void 0!==x.ltc_2&&(x.ltc_2.value=Pn.LTC_2),Er.upload(d,r.uniformsList,x,$)),n.isShaderMaterial&&!0===n.uniformsNeedUpdate&&(Er.upload(d,r.uniformsList,x,$),n.uniformsNeedUpdate=!1),n.isSpriteMaterial&&b.setValue(d,"center",i.center),b.setValue(d,"modelViewMatrix",i.modelViewMatrix),b.setValue(d,"normalMatrix",i.normalMatrix),b.setValue(d,"modelMatrix",i.matrixWorld),y}function Vt(t,e){var n;t.opacity.value=e.opacity,e.color&&(t.diffuse.value=e.color),e.emissive&&t.emissive.value.copy(e.emissive).multiplyScalar(e.emissiveIntensity),e.map&&(t.map.value=e.map),e.alphaMap&&(t.alphaMap.value=e.alphaMap),e.specularMap&&(t.specularMap.value=e.specularMap),e.envMap&&(t.envMap.value=e.envMap,t.flipEnvMap.value=e.envMap.isCubeTexture?-1:1,t.reflectivity.value=e.reflectivity,t.refractionRatio.value=e.refractionRatio,t.maxMipLevel.value=_.get(e.envMap).__maxMipLevel),e.lightMap&&(t.lightMap.value=e.lightMap,t.lightMapIntensity.value=e.lightMapIntensity),e.aoMap&&(t.aoMap.value=e.aoMap,t.aoMapIntensity.value=e.aoMapIntensity),e.map?n=e.map:e.specularMap?n=e.specularMap:e.displacementMap?n=e.displacementMap:e.normalMap?n=e.normalMap:e.bumpMap?n=e.bumpMap:e.roughnessMap?n=e.roughnessMap:e.metalnessMap?n=e.metalnessMap:e.alphaMap?n=e.alphaMap:e.emissiveMap&&(n=e.emissiveMap),void 0!==n&&(n.isWebGLRenderTarget&&(n=n.texture),!0===n.matrixAutoUpdate&&n.updateMatrix(),t.uvTransform.value.copy(n.matrix))}function Ut(t,e){t.specular.value=e.specular,t.shininess.value=Math.max(e.shininess,1e-4),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===L&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===L&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function Ht(t,e){t.roughness.value=e.roughness,t.metalness.value=e.metalness,e.roughnessMap&&(t.roughnessMap.value=e.roughnessMap),e.metalnessMap&&(t.metalnessMap.value=e.metalnessMap),e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap),e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===L&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===L&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias),e.envMap&&(t.envMapIntensity.value=e.envMapIntensity)}Rt.setAnimationLoop(function(t){Ct.isPresenting()||It&&It(t)}),"undefined"!=typeof window&&Rt.setContext(window),this.setAnimationLoop=function(t){It=t,Ct.setAnimationLoop(t),Rt.start()},this.render=function(t,e){var n,i;if(void 0!==arguments[2]&&(console.warn("THREE.WebGLRenderer.render(): the renderTarget argument has been removed. Use .setRenderTarget() instead."),n=arguments[2]),void 0!==arguments[3]&&(console.warn("THREE.WebGLRenderer.render(): the forceClear argument has been removed. Use .clear() instead."),i=arguments[3]),e&&e.isCamera){if(!H){K.geometry=null,K.program=null,K.wireframe=!1,Y=-1,Z=null,!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),Ct.enabled&&(e=Ct.getCamera(e)),(h=P.get(t,e)).init(),t.onBeforeRender($,t,e,n||q),wt.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),yt.setFromMatrix(wt),_t=this.localClippingEnabled,xt=bt.init(this.clippingPlanes,_t,e),(u=k.get(t,e)).init(),function t(e,n,i,r){if(!1===e.visible)return;var o=e.layers.test(n.layers);if(o)if(e.isGroup)i=e.renderOrder;else if(e.isLight)h.pushLight(e),e.castShadow&&h.pushShadow(e);else if(e.isSprite){if(!e.frustumCulled||yt.intersectsSprite(e)){r&&St.setFromMatrixPosition(e.matrixWorld).applyMatrix4(wt);var a=E.update(e),s=e.material;u.push(e,a,s,i,St.z,null)}}else if(e.isImmediateRenderObject)r&&St.setFromMatrixPosition(e.matrixWorld).applyMatrix4(wt),u.push(e,null,e.material,i,St.z,null);else if((e.isMesh||e.isLine||e.isPoints)&&(e.isSkinnedMesh&&e.skeleton.update(),!e.frustumCulled||yt.intersectsObject(e))){r&&St.setFromMatrixPosition(e.matrixWorld).applyMatrix4(wt);var a=E.update(e),s=e.material;if(Array.isArray(s))for(var c=a.groups,l=0,d=c.length;l<d;l++){var f=c[l],p=s[f.materialIndex];p&&p.visible&&u.push(e,a,p,i,St.z,f)}else s.visible&&u.push(e,a,s,i,St.z,null)}var m=e.children;for(var l=0,d=m.length;l<d;l++)t(m[l],n,i,r)}(t,e,0,$.sortObjects),!0===$.sortObjects&&u.sort(),xt&&bt.beginShadows();var r=h.state.shadowsArray;Lt.render(r,t,e),h.setupLights(e),xt&&bt.endShadows(),this.info.autoReset&&this.info.reset(),void 0!==n&&this.setRenderTarget(n),A.render(u,t,e,i);var o=u.opaque,a=u.transparent;if(t.overrideMaterial){var s=t.overrideMaterial;o.length&&Bt(o,t,e,s),a.length&&Bt(a,t,e,s)}else o.length&&Bt(o,t,e),a.length&&Bt(a,t,e);null!==q&&(w.updateRenderTargetMipmap(q),w.updateMultisampleRenderTarget(q)),m.buffers.depth.setTest(!0),m.buffers.depth.setMask(!0),m.buffers.color.setMask(!0),m.setPolygonOffset(!1),t.onAfterRender($,t,e),Ct.enabled&&Ct.submitFrame(),u=null,h=null}}else console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.")},this.allocTextureUnit=function(){var t=nt;return t>=p.maxTextures&&console.warn("THREE.WebGLRenderer: Trying to use "+t+" texture units while this GPU supports only "+p.maxTextures),nt+=1,t},this.setTexture2D=(Dt=!1,function(t,e){t&&t.isWebGLRenderTarget&&(Dt||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),Dt=!0),t=t.texture),w.setTexture2D(t,e)}),this.setTexture3D=function(t,e){w.setTexture3D(t,e)},this.setTexture=function(){var t=!1;return function(e,n){t||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),t=!0),w.setTexture2D(e,n)}}(),this.setTextureCube=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTargetCube&&(t||(console.warn("THREE.WebGLRenderer.setTextureCube: don't use cube render targets as textures. Use their .texture property instead."),t=!0),e=e.texture),e&&e.isCubeTexture||Array.isArray(e.image)&&6===e.image.length?w.setTextureCube(e,n):w.setTextureCubeDynamic(e,n)}}(),this.setFramebuffer=function(t){W=t},this.getRenderTarget=function(){return q},this.setRenderTarget=function(t,e,n){q=t,t&&void 0===_.get(t).__webglFramebuffer&&w.setupRenderTarget(t);var i=W,r=!1;if(t){var o=_.get(t).__webglFramebuffer;t.isWebGLRenderTargetCube?(i=o[e||0],r=!0):i=t.isWebGLMultisampleRenderTarget?_.get(t).__webglMultisampledFramebuffer:o,Q.copy(t.viewport),tt.copy(t.scissor),et=t.scissorTest}else Q.copy(pt).multiplyScalar(ft),tt.copy(vt).multiplyScalar(ft),et=gt;if(X!==i&&(d.bindFramebuffer(36160,i),X=i),m.viewport(Q),m.scissor(tt),m.setScissorTest(et),r){var a=_.get(t.texture);d.framebufferTexture2D(36160,36064,34069+e||0,a.__webglTexture,n||0)}},this.readRenderTargetPixels=function(t,e,n,i,r,o){if(t&&t.isWebGLRenderTarget){var a=_.get(t).__webglFramebuffer;if(a){var s=!1;a!==X&&(d.bindFramebuffer(36160,a),s=!0);try{var c=t.texture,l=c.format,u=c.type;if(l!==Zt&&G.convert(l)!==d.getParameter(35739))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!(u===Nt||G.convert(u)===d.getParameter(35738)||u===Gt&&(p.isWebGL2||f.get("OES_texture_float")||f.get("WEBGL_color_buffer_float"))||u===$t&&(p.isWebGL2?f.get("EXT_color_buffer_float"):f.get("EXT_color_buffer_half_float"))))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");36053===d.checkFramebufferStatus(36160)?e>=0&&e<=t.width-i&&n>=0&&n<=t.height-r&&d.readPixels(e,n,i,r,G.convert(l),G.convert(u),o):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{s&&d.bindFramebuffer(36160,X)}}}else console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.")},this.copyFramebufferToTexture=function(t,e,n){var i=e.image.width,r=e.image.height,o=G.convert(e.format);this.setTexture2D(e,0),d.copyTexImage2D(3553,n||0,o,t.x,t.y,i,r,0)},this.copyTextureToTexture=function(t,e,n,i){var r=e.image.width,o=e.image.height,a=G.convert(n.format),s=G.convert(n.type);this.setTexture2D(n,0),e.isDataTexture?d.texSubImage2D(3553,i||0,t.x,t.y,r,o,a,s,e.image.data):d.texSubImage2D(3553,i||0,t.x,t.y,a,s,e.image)}}function lo(t,e){this.name="",this.color=new On(t),this.density=void 0!==e?e:25e-5}function uo(t,e,n){this.name="",this.color=new On(t),this.near=void 0!==e?e:1,this.far=void 0!==n?n:1e3}function ho(){Gn.call(this),this.type="Scene",this.background=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0}function fo(t,e){this.array=t,this.stride=e,this.count=void 0!==t?t.length/e:0,this.dynamic=!1,this.updateRange={offset:0,count:-1},this.version=0}function po(t,e,n,i){this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===i}function mo(t){fi.call(this),this.type="SpriteMaterial",this.color=new On(16777215),this.map=null,this.rotation=0,this.sizeAttenuation=!0,this.lights=!1,this.transparent=!0,this.setValues(t)}function vo(t){if(Gn.call(this),this.type="Sprite",void 0===Jr){Jr=new si;var e=new fo(new Float32Array([-.5,-.5,0,0,0,.5,-.5,0,1,0,.5,.5,0,1,1,-.5,.5,0,0,1]),5);Jr.setIndex([0,1,2,0,2,3]),Jr.addAttribute("position",new po(e,3,0,!1)),Jr.addAttribute("uv",new po(e,2,3,!1))}this.geometry=Jr,this.material=void 0!==t?t:new mo,this.center=new Je(.5,.5)}function go(){Gn.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function yo(t,e){t&&t.isGeometry&&console.error("THREE.SkinnedMesh no longer supports THREE.Geometry. Use THREE.BufferGeometry instead."),Ai.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new Qe,this.bindMatrixInverse=new Qe}function bo(t,e){if(t=t||[],this.bones=t.slice(0),this.boneMatrices=new Float32Array(16*this.bones.length),void 0===e)this.calculateInverses();else if(this.bones.length===e.length)this.boneInverses=e.slice(0);else{console.warn("THREE.Skeleton boneInverses is the wrong length."),this.boneInverses=[];for(var n=0,i=this.bones.length;n<i;n++)this.boneInverses.push(new Qe)}}function xo(){Gn.call(this),this.type="Bone"}function _o(t){fi.call(this),this.type="LineBasicMaterial",this.color=new On(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.lights=!1,this.setValues(t)}function wo(t,e,n){1===n&&console.error("THREE.Line: parameter THREE.LinePieces no longer supported. Use THREE.LineSegments instead."),Gn.call(this),this.type="Line",this.geometry=void 0!==t?t:new si,this.material=void 0!==e?e:new _o({color:16777215*Math.random()})}function So(t,e){wo.call(this,t,e),this.type="LineSegments"}function To(t,e){wo.call(this,t,e),this.type="LineLoop"}function Eo(t){fi.call(this),this.type="PointsMaterial",this.color=new On(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.morphTargets=!1,this.lights=!1,this.setValues(t)}function Mo(t,e){Gn.call(this),this.type="Points",this.geometry=void 0!==t?t:new si,this.material=void 0!==e?e:new Eo({color:16777215*Math.random()})}function Co(t,e,n,i,r,o,a,s,c){hn.call(this,t,e,n,i,r,o,a,s,c),this.format=void 0!==a?a:Kt,this.minFilter=void 0!==o?o:Dt,this.magFilter=void 0!==r?r:Dt,this.generateMipmaps=!1}function Lo(t,e,n,i,r,o,a,s,c,l,u,h){hn.call(this,null,o,a,s,c,l,i,r,u,h),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}function Oo(t,e,n,i,r,o,a,s,c){hn.call(this,t,e,n,i,r,o,a,s,c),this.needsUpdate=!0}function ko(t,e,n,i,r,o,a,s,c,l){if((l=void 0!==l?l:ee)!==ee&&l!==ne)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&l===ee&&(n=Ft),void 0===n&&l===ne&&(n=Xt),hn.call(this,null,i,r,o,a,s,l,n,c),this.image={width:t,height:e},this.magFilter=void 0!==a?a:Pt,this.minFilter=void 0!==s?s:Pt,this.flipY=!1,this.generateMipmaps=!1}function Po(t){si.call(this),this.type="WireframeGeometry";var e,n,i,r,o,a,s,c,l,u,h=[],d=[0,0],f={},p=["a","b","c"];if(t&&t.isGeometry){var m=t.faces;for(e=0,i=m.length;e<i;e++){var v=m[e];for(n=0;n<3;n++)s=v[p[n]],c=v[p[(n+1)%3]],d[0]=Math.min(s,c),d[1]=Math.max(s,c),void 0===f[l=d[0]+","+d[1]]&&(f[l]={index1:d[0],index2:d[1]})}for(l in f)a=f[l],u=t.vertices[a.index1],h.push(u.x,u.y,u.z),u=t.vertices[a.index2],h.push(u.x,u.y,u.z)}else if(t&&t.isBufferGeometry){var g,y,b,x,_,w,S;if(u=new en,null!==t.index){for(g=t.attributes.position,y=t.index,0===(b=t.groups).length&&(b=[{start:0,count:y.count,materialIndex:0}]),r=0,o=b.length;r<o;++r)for(e=_=(x=b[r]).start,i=_+x.count;e<i;e+=3)for(n=0;n<3;n++)s=y.getX(e+n),c=y.getX(e+(n+1)%3),d[0]=Math.min(s,c),d[1]=Math.max(s,c),void 0===f[l=d[0]+","+d[1]]&&(f[l]={index1:d[0],index2:d[1]});for(l in f)a=f[l],u.fromBufferAttribute(g,a.index1),h.push(u.x,u.y,u.z),u.fromBufferAttribute(g,a.index2),h.push(u.x,u.y,u.z)}else for(e=0,i=(g=t.attributes.position).count/3;e<i;e++)for(n=0;n<3;n++)w=3*e+n,u.fromBufferAttribute(g,w),h.push(u.x,u.y,u.z),S=3*e+(n+1)%3,u.fromBufferAttribute(g,S),h.push(u.x,u.y,u.z)}this.addAttribute("position",new ni(h,3))}function Ao(t,e,n){qn.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:n},this.fromBufferGeometry(new Io(t,e,n)),this.mergeVertices()}function Io(t,e,n){si.call(this),this.type="ParametricBufferGeometry",this.parameters={func:t,slices:e,stacks:n};var i,r,o=[],a=[],s=[],c=[],l=new en,u=new en,h=new en,d=new en,f=new en;t.length<3&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");var p=e+1;for(i=0;i<=n;i++){var m=i/n;for(r=0;r<=e;r++){var v=r/e;t(v,m,u),a.push(u.x,u.y,u.z),v-1e-5>=0?(t(v-1e-5,m,h),d.subVectors(u,h)):(t(v+1e-5,m,h),d.subVectors(h,u)),m-1e-5>=0?(t(v,m-1e-5,h),f.subVectors(u,h)):(t(v,m+1e-5,h),f.subVectors(h,u)),l.crossVectors(d,f).normalize(),s.push(l.x,l.y,l.z),c.push(v,m)}}for(i=0;i<n;i++)for(r=0;r<e;r++){var g=i*p+r,y=i*p+r+1,b=(i+1)*p+r+1,x=(i+1)*p+r;o.push(g,y,x),o.push(y,b,x)}this.setIndex(o),this.addAttribute("position",new ni(a,3)),this.addAttribute("normal",new ni(s,3)),this.addAttribute("uv",new ni(c,2))}function Do(t,e,n,i){qn.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:i},this.fromBufferGeometry(new Ro(t,e,n,i)),this.mergeVertices()}function Ro(t,e,n,i){si.call(this),this.type="PolyhedronBufferGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:i},n=n||1;var r=[],o=[];function a(t,e,n,i){var r,o,a=Math.pow(2,i),c=[];for(r=0;r<=a;r++){c[r]=[];var l=t.clone().lerp(n,r/a),u=e.clone().lerp(n,r/a),h=a-r;for(o=0;o<=h;o++)c[r][o]=0===o&&r===a?l:l.clone().lerp(u,o/h)}for(r=0;r<a;r++)for(o=0;o<2*(a-r)-1;o++){var d=Math.floor(o/2);o%2==0?(s(c[r][d+1]),s(c[r+1][d]),s(c[r][d])):(s(c[r][d+1]),s(c[r+1][d+1]),s(c[r+1][d]))}}function s(t){r.push(t.x,t.y,t.z)}function c(e,n){var i=3*e;n.x=t[i+0],n.y=t[i+1],n.z=t[i+2]}function l(t,e,n,i){i<0&&1===t.x&&(o[e]=t.x-1),0===n.x&&0===n.z&&(o[e]=i/2/Math.PI+.5)}function u(t){return Math.atan2(t.z,-t.x)}!function(t){for(var n=new en,i=new en,r=new en,o=0;o<e.length;o+=3)c(e[o+0],n),c(e[o+1],i),c(e[o+2],r),a(n,i,r,t)}(i=i||0),function(t){for(var e=new en,n=0;n<r.length;n+=3)e.x=r[n+0],e.y=r[n+1],e.z=r[n+2],e.normalize().multiplyScalar(t),r[n+0]=e.x,r[n+1]=e.y,r[n+2]=e.z}(n),function(){for(var t=new en,e=0;e<r.length;e+=3){t.x=r[e+0],t.y=r[e+1],t.z=r[e+2];var n=u(t)/2/Math.PI+.5,i=(a=t,Math.atan2(-a.y,Math.sqrt(a.x*a.x+a.z*a.z))/Math.PI+.5);o.push(n,1-i)}var a;(function(){for(var t=new en,e=new en,n=new en,i=new en,a=new Je,s=new Je,c=new Je,h=0,d=0;h<r.length;h+=9,d+=6){t.set(r[h+0],r[h+1],r[h+2]),e.set(r[h+3],r[h+4],r[h+5]),n.set(r[h+6],r[h+7],r[h+8]),a.set(o[d+0],o[d+1]),s.set(o[d+2],o[d+3]),c.set(o[d+4],o[d+5]),i.copy(t).add(e).add(n).divideScalar(3);var f=u(i);l(a,d+0,t,f),l(s,d+2,e,f),l(c,d+4,n,f)}})(),function(){for(var t=0;t<o.length;t+=6){var e=o[t+0],n=o[t+2],i=o[t+4],r=Math.max(e,n,i),a=Math.min(e,n,i);r>.9&&a<.1&&(e<.2&&(o[t+0]+=1),n<.2&&(o[t+2]+=1),i<.2&&(o[t+4]+=1))}}()}(),this.addAttribute("position",new ni(r,3)),this.addAttribute("normal",new ni(r.slice(),3)),this.addAttribute("uv",new ni(o,2)),0===i?this.computeVertexNormals():this.normalizeNormals()}function Bo(t,e){qn.call(this),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new No(t,e)),this.mergeVertices()}function No(t,e){Ro.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],t,e),this.type="TetrahedronBufferGeometry",this.parameters={radius:t,detail:e}}function jo(t,e){qn.call(this),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new zo(t,e)),this.mergeVertices()}function zo(t,e){Ro.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],t,e),this.type="OctahedronBufferGeometry",this.parameters={radius:t,detail:e}}function Fo(t,e){qn.call(this),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new Vo(t,e)),this.mergeVertices()}function Vo(t,e){var n=(1+Math.sqrt(5))/2,i=[-1,n,0,1,n,0,-1,-n,0,1,-n,0,0,-1,n,0,1,n,0,-1,-n,0,1,-n,n,0,-1,n,0,1,-n,0,-1,-n,0,1];Ro.call(this,i,[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],t,e),this.type="IcosahedronBufferGeometry",this.parameters={radius:t,detail:e}}function Uo(t,e){qn.call(this),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new Go(t,e)),this.mergeVertices()}function Go(t,e){var n=(1+Math.sqrt(5))/2,i=1/n,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,-i,-n,0,-i,n,0,i,-n,0,i,n,-i,-n,0,-i,n,0,i,-n,0,i,n,0,-n,0,-i,n,0,-i,-n,0,i,n,0,i];Ro.call(this,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],t,e),this.type="DodecahedronBufferGeometry",this.parameters={radius:t,detail:e}}function $o(t,e,n,i,r,o){qn.call(this),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:i,closed:r},void 0!==o&&console.warn("THREE.TubeGeometry: taper has been removed.");var a=new Ho(t,e,n,i,r);this.tangents=a.tangents,this.normals=a.normals,this.binormals=a.binormals,this.fromBufferGeometry(a),this.mergeVertices()}function Ho(t,e,n,i,r){si.call(this),this.type="TubeBufferGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:i,closed:r},e=e||64,n=n||1,i=i||8,r=r||!1;var o=t.computeFrenetFrames(e,r);this.tangents=o.tangents,this.normals=o.normals,this.binormals=o.binormals;var a,s,c=new en,l=new en,u=new Je,h=new en,d=[],f=[],p=[],m=[];function v(r){h=t.getPointAt(r/e,h);var a=o.normals[r],u=o.binormals[r];for(s=0;s<=i;s++){var p=s/i*Math.PI*2,m=Math.sin(p),v=-Math.cos(p);l.x=v*a.x+m*u.x,l.y=v*a.y+m*u.y,l.z=v*a.z+m*u.z,l.normalize(),f.push(l.x,l.y,l.z),c.x=h.x+n*l.x,c.y=h.y+n*l.y,c.z=h.z+n*l.z,d.push(c.x,c.y,c.z)}}!function(){for(a=0;a<e;a++)v(a);v(!1===r?e:0),function(){for(a=0;a<=e;a++)for(s=0;s<=i;s++)u.x=a/e,u.y=s/i,p.push(u.x,u.y)}(),function(){for(s=1;s<=e;s++)for(a=1;a<=i;a++){var t=(i+1)*(s-1)+(a-1),n=(i+1)*s+(a-1),r=(i+1)*s+a,o=(i+1)*(s-1)+a;m.push(t,n,o),m.push(n,r,o)}}()}(),this.setIndex(m),this.addAttribute("position",new ni(d,3)),this.addAttribute("normal",new ni(f,3)),this.addAttribute("uv",new ni(p,2))}function Wo(t,e,n,i,r,o,a){qn.call(this),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:i,p:r,q:o},void 0!==a&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new qo(t,e,n,i,r,o)),this.mergeVertices()}function qo(t,e,n,i,r,o){si.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:i,p:r,q:o},t=t||1,e=e||.4,n=Math.floor(n)||64,i=Math.floor(i)||8,r=r||2,o=o||3;var a,s,c=[],l=[],u=[],h=[],d=new en,f=new en,p=new en,m=new en,v=new en,g=new en,y=new en;for(a=0;a<=n;++a){var b=a/n*r*Math.PI*2;for(C(b,r,o,t,p),C(b+.01,r,o,t,m),g.subVectors(m,p),y.addVectors(m,p),v.crossVectors(g,y),y.crossVectors(v,g),v.normalize(),y.normalize(),s=0;s<=i;++s){var x=s/i*Math.PI*2,_=-e*Math.cos(x),w=e*Math.sin(x);d.x=p.x+(_*y.x+w*v.x),d.y=p.y+(_*y.y+w*v.y),d.z=p.z+(_*y.z+w*v.z),l.push(d.x,d.y,d.z),f.subVectors(d,p).normalize(),u.push(f.x,f.y,f.z),h.push(a/n),h.push(s/i)}}for(s=1;s<=n;s++)for(a=1;a<=i;a++){var S=(i+1)*(s-1)+(a-1),T=(i+1)*s+(a-1),E=(i+1)*s+a,M=(i+1)*(s-1)+a;c.push(S,T,M),c.push(T,E,M)}function C(t,e,n,i,r){var o=Math.cos(t),a=Math.sin(t),s=n/e*t,c=Math.cos(s);r.x=i*(2+c)*.5*o,r.y=i*(2+c)*a*.5,r.z=i*Math.sin(s)*.5}this.setIndex(c),this.addAttribute("position",new ni(l,3)),this.addAttribute("normal",new ni(u,3)),this.addAttribute("uv",new ni(h,2))}function Xo(t,e,n,i,r){qn.call(this),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:i,arc:r},this.fromBufferGeometry(new Yo(t,e,n,i,r)),this.mergeVertices()}function Yo(t,e,n,i,r){si.call(this),this.type="TorusBufferGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:i,arc:r},t=t||1,e=e||.4,n=Math.floor(n)||8,i=Math.floor(i)||6,r=r||2*Math.PI;var o,a,s=[],c=[],l=[],u=[],h=new en,d=new en,f=new en;for(o=0;o<=n;o++)for(a=0;a<=i;a++){var p=a/i*r,m=o/n*Math.PI*2;d.x=(t+e*Math.cos(m))*Math.cos(p),d.y=(t+e*Math.cos(m))*Math.sin(p),d.z=e*Math.sin(m),c.push(d.x,d.y,d.z),h.x=t*Math.cos(p),h.y=t*Math.sin(p),f.subVectors(d,h).normalize(),l.push(f.x,f.y,f.z),u.push(a/i),u.push(o/n)}for(o=1;o<=n;o++)for(a=1;a<=i;a++){var v=(i+1)*o+a-1,g=(i+1)*(o-1)+a-1,y=(i+1)*(o-1)+a,b=(i+1)*o+a;s.push(v,g,b),s.push(g,y,b)}this.setIndex(s),this.addAttribute("position",new ni(c,3)),this.addAttribute("normal",new ni(l,3)),this.addAttribute("uv",new ni(u,2))}Object.assign(lo.prototype,{isFogExp2:!0,clone:function(){return new lo(this.color,this.density)},toJSON:function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}}}),Object.assign(uo.prototype,{isFog:!0,clone:function(){return new uo(this.color,this.near,this.far)},toJSON:function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}}}),ho.prototype=Object.assign(Object.create(Gn.prototype),{constructor:ho,isScene:!0,copy:function(t,e){return Gn.prototype.copy.call(this,t,e),null!==t.background&&(this.background=t.background.clone()),null!==t.fog&&(this.fog=t.fog.clone()),null!==t.overrideMaterial&&(this.overrideMaterial=t.overrideMaterial.clone()),this.autoUpdate=t.autoUpdate,this.matrixAutoUpdate=t.matrixAutoUpdate,this},toJSON:function(t){var e=Gn.prototype.toJSON.call(this,t);return null!==this.background&&(e.object.background=this.background.toJSON(t)),null!==this.fog&&(e.object.fog=this.fog.toJSON()),e},dispose:function(){this.dispatchEvent({type:"dispose"})}}),Object.defineProperty(fo.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(fo.prototype,{isInterleavedBuffer:!0,onUploadCallback:function(){},setArray:function(t){if(Array.isArray(t))throw new TypeError("THREE.BufferAttribute: array should be a Typed Array.");return this.count=void 0!==t?t.length/this.stride:0,this.array=t,this},setDynamic:function(t){return this.dynamic=t,this},copy:function(t){return this.array=new t.array.constructor(t.array),this.count=t.count,this.stride=t.stride,this.dynamic=t.dynamic,this},copyAt:function(t,e,n){t*=this.stride,n*=e.stride;for(var i=0,r=this.stride;i<r;i++)this.array[t+i]=e.array[n+i];return this},set:function(t,e){return void 0===e&&(e=0),this.array.set(t,e),this},clone:function(){return(new this.constructor).copy(this)},onUpload:function(t){return this.onUploadCallback=t,this}}),Object.defineProperties(po.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(po.prototype,{isInterleavedBufferAttribute:!0,setX:function(t,e){return this.data.array[t*this.data.stride+this.offset]=e,this},setY:function(t,e){return this.data.array[t*this.data.stride+this.offset+1]=e,this},setZ:function(t,e){return this.data.array[t*this.data.stride+this.offset+2]=e,this},setW:function(t,e){return this.data.array[t*this.data.stride+this.offset+3]=e,this},getX:function(t){return this.data.array[t*this.data.stride+this.offset]},getY:function(t){return this.data.array[t*this.data.stride+this.offset+1]},getZ:function(t){return this.data.array[t*this.data.stride+this.offset+2]},getW:function(t){return this.data.array[t*this.data.stride+this.offset+3]},setXY:function(t,e,n){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this},setXYZ:function(t,e,n,i){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this},setXYZW:function(t,e,n,i,r){return t=t*this.data.stride+this.offset,this.data.array[t+0]=e,this.data.array[t+1]=n,this.data.array[t+2]=i,this.data.array[t+3]=r,this}}),mo.prototype=Object.create(fi.prototype),mo.prototype.constructor=mo,mo.prototype.isSpriteMaterial=!0,mo.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this.sizeAttenuation=t.sizeAttenuation,this},vo.prototype=Object.assign(Object.create(Gn.prototype),{constructor:vo,isSprite:!0,raycast:function(){var t=new en,e=new en,n=new en,i=new Je,r=new Je,o=new Qe,a=new en,s=new en,c=new en,l=new Je,u=new Je,h=new Je;function d(t,e,n,a,s,c){i.subVectors(t,n).addScalar(.5).multiply(a),void 0!==s?(r.x=c*i.x-s*i.y,r.y=s*i.x+c*i.y):r.copy(i),t.copy(e),t.x+=r.x,t.y+=r.y,t.applyMatrix4(o)}return function(i,r){e.setFromMatrixScale(this.matrixWorld),o.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),n.setFromMatrixPosition(this.modelViewMatrix);var f,p,m=this.material.rotation;0!==m&&(p=Math.cos(m),f=Math.sin(m));var v=this.center;d(a.set(-.5,-.5,0),n,v,e,f,p),d(s.set(.5,-.5,0),n,v,e,f,p),d(c.set(.5,.5,0),n,v,e,f,p),l.set(0,0),u.set(1,0),h.set(1,1);var g=i.ray.intersectTriangle(a,s,c,!1,t);if(null!==g||(d(s.set(-.5,.5,0),n,v,e,f,p),u.set(0,1),null!==(g=i.ray.intersectTriangle(a,c,s,!1,t)))){var y=i.ray.origin.distanceTo(t);y<i.near||y>i.far||r.push({distance:y,point:t.clone(),uv:ki.getUV(t,a,s,c,l,u,h,new Je),face:null,object:this})}}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(t){return Gn.prototype.copy.call(this,t),void 0!==t.center&&this.center.copy(t.center),this}}),go.prototype=Object.assign(Object.create(Gn.prototype),{constructor:go,copy:function(t){Gn.prototype.copy.call(this,t,!1);for(var e=t.levels,n=0,i=e.length;n<i;n++){var r=e[n];this.addLevel(r.object.clone(),r.distance)}return this},addLevel:function(t,e){void 0===e&&(e=0),e=Math.abs(e);for(var n=this.levels,i=0;i<n.length&&!(e<n[i].distance);i++);n.splice(i,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,n=1,i=e.length;n<i&&!(t<e[n].distance);n++);return e[n-1].object},raycast:(Qr=new en,function(t,e){Qr.setFromMatrixPosition(this.matrixWorld);var n=t.ray.origin.distanceTo(Qr);this.getObjectForDistance(n).raycast(t,e)}),update:function(){var t=new en,e=new en;return function(n){var i=this.levels;if(i.length>1){t.setFromMatrixPosition(n.matrixWorld),e.setFromMatrixPosition(this.matrixWorld);var r=t.distanceTo(e);i[0].object.visible=!0;for(var o=1,a=i.length;o<a&&r>=i[o].distance;o++)i[o-1].object.visible=!1,i[o].object.visible=!0;for(;o<a;o++)i[o].object.visible=!1}}}(),toJSON:function(t){var e=Gn.prototype.toJSON.call(this,t);e.object.levels=[];for(var n=this.levels,i=0,r=n.length;i<r;i++){var o=n[i];e.object.levels.push({object:o.object.uuid,distance:o.distance})}return e}}),yo.prototype=Object.assign(Object.create(Ai.prototype),{constructor:yo,isSkinnedMesh:!0,bind:function(t,e){this.skeleton=t,void 0===e&&(this.updateMatrixWorld(!0),this.skeleton.calculateInverses(),e=this.matrixWorld),this.bindMatrix.copy(e),this.bindMatrixInverse.getInverse(e)},pose:function(){this.skeleton.pose()},normalizeSkinWeights:function(){for(var t=new dn,e=this.geometry.attributes.skinWeight,n=0,i=e.count;n<i;n++){t.x=e.getX(n),t.y=e.getY(n),t.z=e.getZ(n),t.w=e.getW(n);var r=1/t.manhattanLength();r!==1/0?t.multiplyScalar(r):t.set(1,0,0,0),e.setXYZW(n,t.x,t.y,t.z,t.w)}},updateMatrixWorld:function(t){Ai.prototype.updateMatrixWorld.call(this,t),"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)}}),Object.assign(bo.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var n=new Qe;this.bones[t]&&n.getInverse(this.bones[t].matrixWorld),this.boneInverses.push(n)}},pose:function(){var t,e,n;for(e=0,n=this.bones.length;e<n;e++)(t=this.bones[e])&&t.matrixWorld.getInverse(this.boneInverses[e]);for(e=0,n=this.bones.length;e<n;e++)(t=this.bones[e])&&(t.parent&&t.parent.isBone?(t.matrix.getInverse(t.parent.matrixWorld),t.matrix.multiply(t.matrixWorld)):t.matrix.copy(t.matrixWorld),t.matrix.decompose(t.position,t.quaternion,t.scale))},update:(to=new Qe,eo=new Qe,function(){for(var t=this.bones,e=this.boneInverses,n=this.boneMatrices,i=this.boneTexture,r=0,o=t.length;r<o;r++){var a=t[r]?t[r].matrixWorld:eo;to.multiplyMatrices(a,e[r]),to.toArray(n,16*r)}void 0!==i&&(i.needsUpdate=!0)}),clone:function(){return new bo(this.bones,this.boneInverses)},getBoneByName:function(t){for(var e=0,n=this.bones.length;e<n;e++){var i=this.bones[e];if(i.name===t)return i}}}),xo.prototype=Object.assign(Object.create(Gn.prototype),{constructor:xo,isBone:!0}),_o.prototype=Object.create(fi.prototype),_o.prototype.constructor=_o,_o.prototype.isLineBasicMaterial=!0,_o.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},wo.prototype=Object.assign(Object.create(Gn.prototype),{constructor:wo,isLine:!0,computeLineDistances:(no=new en,io=new en,function(){var t=this.geometry;if(t.isBufferGeometry)if(null===t.index){for(var e=t.attributes.position,n=[0],i=1,r=e.count;i<r;i++)no.fromBufferAttribute(e,i-1),io.fromBufferAttribute(e,i),n[i]=n[i-1],n[i]+=no.distanceTo(io);t.addAttribute("lineDistance",new ni(n,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(t.isGeometry){var o=t.vertices;for((n=t.lineDistances)[0]=0,i=1,r=o.length;i<r;i++)n[i]=n[i-1],n[i]+=o[i-1].distanceTo(o[i])}return this}),raycast:function(){var t=new Qe,e=new Oi,n=new yn;return function(i,r){var o=i.linePrecision,a=this.geometry,s=this.matrixWorld;if(null===a.boundingSphere&&a.computeBoundingSphere(),n.copy(a.boundingSphere),n.applyMatrix4(s),n.radius+=o,!1!==i.ray.intersectsSphere(n)){t.getInverse(s),e.copy(i.ray).applyMatrix4(t);var c=o/((this.scale.x+this.scale.y+this.scale.z)/3),l=c*c,u=new en,h=new en,d=new en,f=new en,p=this&&this.isLineSegments?2:1;if(a.isBufferGeometry){var m=a.index,v=a.attributes.position.array;if(null!==m)for(var g=m.array,y=0,b=g.length-1;y<b;y+=p){var x=g[y],_=g[y+1];if(u.fromArray(v,3*x),h.fromArray(v,3*_),!(e.distanceSqToSegment(u,h,f,d)>l))f.applyMatrix4(this.matrixWorld),(T=i.ray.origin.distanceTo(f))<i.near||T>i.far||r.push({distance:T,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}else for(y=0,b=v.length/3-1;y<b;y+=p){if(u.fromArray(v,3*y),h.fromArray(v,3*y+3),!(e.distanceSqToSegment(u,h,f,d)>l))f.applyMatrix4(this.matrixWorld),(T=i.ray.origin.distanceTo(f))<i.near||T>i.far||r.push({distance:T,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}else if(a.isGeometry){var w=a.vertices,S=w.length;for(y=0;y<S-1;y+=p){var T;if(!(e.distanceSqToSegment(w[y],w[y+1],f,d)>l))f.applyMatrix4(this.matrixWorld),(T=i.ray.origin.distanceTo(f))<i.near||T>i.far||r.push({distance:T,point:d.clone().applyMatrix4(this.matrixWorld),index:y,face:null,faceIndex:null,object:this})}}}}}(),copy:function(t){return Gn.prototype.copy.call(this,t),this.geometry.copy(t.geometry),this.material.copy(t.material),this},clone:function(){return(new this.constructor).copy(this)}}),So.prototype=Object.assign(Object.create(wo.prototype),{constructor:So,isLineSegments:!0,computeLineDistances:function(){var t=new en,e=new en;return function(){var n=this.geometry;if(n.isBufferGeometry)if(null===n.index){for(var i=n.attributes.position,r=[],o=0,a=i.count;o<a;o+=2)t.fromBufferAttribute(i,o),e.fromBufferAttribute(i,o+1),r[o]=0===o?0:r[o-1],r[o+1]=r[o]+t.distanceTo(e);n.addAttribute("lineDistance",new ni(r,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(n.isGeometry){var s=n.vertices;for(r=n.lineDistances,o=0,a=s.length;o<a;o+=2)t.copy(s[o]),e.copy(s[o+1]),r[o]=0===o?0:r[o-1],r[o+1]=r[o]+t.distanceTo(e)}return this}}()}),To.prototype=Object.assign(Object.create(wo.prototype),{constructor:To,isLineLoop:!0}),Eo.prototype=Object.create(fi.prototype),Eo.prototype.constructor=Eo,Eo.prototype.isPointsMaterial=!0,Eo.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.size=t.size,this.sizeAttenuation=t.sizeAttenuation,this.morphTargets=t.morphTargets,this},Mo.prototype=Object.assign(Object.create(Gn.prototype),{constructor:Mo,isPoints:!0,raycast:function(){var t=new Qe,e=new Oi,n=new yn;return function(i,r){var o=this,a=this.geometry,s=this.matrixWorld,c=i.params.Points.threshold;if(null===a.boundingSphere&&a.computeBoundingSphere(),n.copy(a.boundingSphere),n.applyMatrix4(s),n.radius+=c,!1!==i.ray.intersectsSphere(n)){t.getInverse(s),e.copy(i.ray).applyMatrix4(t);var l=c/((this.scale.x+this.scale.y+this.scale.z)/3),u=l*l,h=new en,d=new en;if(a.isBufferGeometry){var f=a.index,p=a.attributes.position.array;if(null!==f)for(var m=f.array,v=0,g=m.length;v<g;v++){var y=m[v];h.fromArray(p,3*y),_(h,y)}else{v=0;for(var b=p.length/3;v<b;v++)h.fromArray(p,3*v),_(h,v)}}else{var x=a.vertices;for(v=0,b=x.length;v<b;v++)_(x[v],v)}}function _(t,n){var a=e.distanceSqToPoint(t);if(a<u){e.closestPointToPoint(t,d),d.applyMatrix4(s);var c=i.ray.origin.distanceTo(d);if(c<i.near||c>i.far)return;r.push({distance:c,distanceToRay:Math.sqrt(a),point:d.clone(),index:n,face:null,object:o})}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Co.prototype=Object.assign(Object.create(hn.prototype),{constructor:Co,isVideoTexture:!0,update:function(){var t=this.image;t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),Lo.prototype=Object.create(hn.prototype),Lo.prototype.constructor=Lo,Lo.prototype.isCompressedTexture=!0,Oo.prototype=Object.create(hn.prototype),Oo.prototype.constructor=Oo,Oo.prototype.isCanvasTexture=!0,ko.prototype=Object.create(hn.prototype),ko.prototype.constructor=ko,ko.prototype.isDepthTexture=!0,Po.prototype=Object.create(si.prototype),Po.prototype.constructor=Po,Ao.prototype=Object.create(qn.prototype),Ao.prototype.constructor=Ao,Io.prototype=Object.create(si.prototype),Io.prototype.constructor=Io,Do.prototype=Object.create(qn.prototype),Do.prototype.constructor=Do,Ro.prototype=Object.create(si.prototype),Ro.prototype.constructor=Ro,Bo.prototype=Object.create(qn.prototype),Bo.prototype.constructor=Bo,No.prototype=Object.create(Ro.prototype),No.prototype.constructor=No,jo.prototype=Object.create(qn.prototype),jo.prototype.constructor=jo,zo.prototype=Object.create(Ro.prototype),zo.prototype.constructor=zo,Fo.prototype=Object.create(qn.prototype),Fo.prototype.constructor=Fo,Vo.prototype=Object.create(Ro.prototype),Vo.prototype.constructor=Vo,Uo.prototype=Object.create(qn.prototype),Uo.prototype.constructor=Uo,Go.prototype=Object.create(Ro.prototype),Go.prototype.constructor=Go,$o.prototype=Object.create(qn.prototype),$o.prototype.constructor=$o,Ho.prototype=Object.create(si.prototype),Ho.prototype.constructor=Ho,Ho.prototype.toJSON=function(){var t=si.prototype.toJSON.call(this);return t.path=this.parameters.path.toJSON(),t},Wo.prototype=Object.create(qn.prototype),Wo.prototype.constructor=Wo,qo.prototype=Object.create(si.prototype),qo.prototype.constructor=qo,Xo.prototype=Object.create(qn.prototype),Xo.prototype.constructor=Xo,Yo.prototype=Object.create(si.prototype),Yo.prototype.constructor=Yo;var Ko=function(t,e,n){n=n||2;var i,r,o,a,s,c,l,u=e&&e.length,h=u?e[0]*n:t.length,d=Zo(t,0,h,n,!0),f=[];if(!d)return f;if(u&&(d=function(t,e,n,i){var r,o,a,s,c,l=[];for(r=0,o=e.length;r<o;r++)a=e[r]*i,s=r<o-1?e[r+1]*i:t.length,(c=Zo(t,a,s,i,!1))===c.next&&(c.steiner=!0),l.push(sa(c));for(l.sort(ra),r=0;r<l.length;r++)oa(l[r],n),n=Jo(n,n.next);return n}(t,e,d,n)),t.length>80*n){i=o=t[0],r=a=t[1];for(var p=n;p<h;p+=n)s=t[p],c=t[p+1],s<i&&(i=s),c<r&&(r=c),s>o&&(o=s),c>a&&(a=c);l=0!==(l=Math.max(o-i,a-r))?1/l:0}return Qo(d,f,n,i,r,l),f};function Zo(t,e,n,i,r){var o,a;if(r===function(t,e,n,i){for(var r=0,o=e,a=n-i;o<n;o+=i)r+=(t[a]-t[o])*(t[o+1]+t[a+1]),a=o;return r}(t,e,n,i)>0)for(o=e;o<n;o+=i)a=ma(o,t[o],t[o+1],a);else for(o=n-i;o>=e;o-=i)a=ma(o,t[o],t[o+1],a);return a&&ha(a,a.next)&&(va(a),a=a.next),a}function Jo(t,e){if(!t)return t;e||(e=t);var n,i=t;do{if(n=!1,i.steiner||!ha(i,i.next)&&0!==ua(i.prev,i,i.next))i=i.next;else{if(va(i),(i=e=i.prev)===i.next)break;n=!0}}while(n||i!==e);return e}function Qo(t,e,n,i,r,o,a){if(t){!a&&o&&function(t,e,n,i){var r=t;do{null===r.z&&(r.z=aa(r.x,r.y,e,n,i)),r.prevZ=r.prev,r.nextZ=r.next,r=r.next}while(r!==t);r.prevZ.nextZ=null,r.prevZ=null,function(t){var e,n,i,r,o,a,s,c,l=1;do{for(n=t,t=null,o=null,a=0;n;){for(a++,i=n,s=0,e=0;e<l&&(s++,i=i.nextZ);e++);for(c=l;s>0||c>0&&i;)0!==s&&(0===c||!i||n.z<=i.z)?(r=n,n=n.nextZ,s--):(r=i,i=i.nextZ,c--),o?o.nextZ=r:t=r,r.prevZ=o,o=r;n=i}o.nextZ=null,l*=2}while(a>1)}(r)}(t,i,r,o);for(var s,c,l=t;t.prev!==t.next;)if(s=t.prev,c=t.next,o?ea(t,i,r,o):ta(t))e.push(s.i/n),e.push(t.i/n),e.push(c.i/n),va(t),t=c.next,l=c.next;else if((t=c)===l){a?1===a?Qo(t=na(t,e,n),e,n,i,r,o,2):2===a&&ia(t,e,n,i,r,o):Qo(Jo(t),e,n,i,r,o,1);break}}}function ta(t){var e=t.prev,n=t,i=t.next;if(ua(e,n,i)>=0)return!1;for(var r=t.next.next;r!==t.prev;){if(ca(e.x,e.y,n.x,n.y,i.x,i.y,r.x,r.y)&&ua(r.prev,r,r.next)>=0)return!1;r=r.next}return!0}function ea(t,e,n,i){var r=t.prev,o=t,a=t.next;if(ua(r,o,a)>=0)return!1;for(var s=r.x<o.x?r.x<a.x?r.x:a.x:o.x<a.x?o.x:a.x,c=r.y<o.y?r.y<a.y?r.y:a.y:o.y<a.y?o.y:a.y,l=r.x>o.x?r.x>a.x?r.x:a.x:o.x>a.x?o.x:a.x,u=r.y>o.y?r.y>a.y?r.y:a.y:o.y>a.y?o.y:a.y,h=aa(s,c,e,n,i),d=aa(l,u,e,n,i),f=t.nextZ;f&&f.z<=d;){if(f!==t.prev&&f!==t.next&&ca(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&ua(f.prev,f,f.next)>=0)return!1;f=f.nextZ}for(f=t.prevZ;f&&f.z>=h;){if(f!==t.prev&&f!==t.next&&ca(r.x,r.y,o.x,o.y,a.x,a.y,f.x,f.y)&&ua(f.prev,f,f.next)>=0)return!1;f=f.prevZ}return!0}function na(t,e,n){var i=t;do{var r=i.prev,o=i.next.next;!ha(r,o)&&da(r,i,i.next,o)&&fa(r,o)&&fa(o,r)&&(e.push(r.i/n),e.push(i.i/n),e.push(o.i/n),va(i),va(i.next),i=t=o),i=i.next}while(i!==t);return i}function ia(t,e,n,i,r,o){var a=t;do{for(var s=a.next.next;s!==a.prev;){if(a.i!==s.i&&la(a,s)){var c=pa(a,s);return a=Jo(a,a.next),c=Jo(c,c.next),Qo(a,e,n,i,r,o),void Qo(c,e,n,i,r,o)}s=s.next}a=a.next}while(a!==t)}function ra(t,e){return t.x-e.x}function oa(t,e){if(e=function(t,e){var n,i=e,r=t.x,o=t.y,a=-1/0;do{if(o<=i.y&&o>=i.next.y&&i.next.y!==i.y){var s=i.x+(o-i.y)*(i.next.x-i.x)/(i.next.y-i.y);if(s<=r&&s>a){if(a=s,s===r){if(o===i.y)return i;if(o===i.next.y)return i.next}n=i.x<i.next.x?i:i.next}}i=i.next}while(i!==e);if(!n)return null;if(r===a)return n.prev;var c,l=n,u=n.x,h=n.y,d=1/0;i=n.next;for(;i!==l;)r>=i.x&&i.x>=u&&r!==i.x&&ca(o<h?r:a,o,u,h,o<h?a:r,o,i.x,i.y)&&((c=Math.abs(o-i.y)/(r-i.x))<d||c===d&&i.x>n.x)&&fa(i,t)&&(n=i,d=c),i=i.next;return n}(t,e)){var n=pa(e,t);Jo(n,n.next)}}function aa(t,e,n,i,r){return(t=1431655765&((t=858993459&((t=252645135&((t=16711935&((t=32767*(t-n)*r)|t<<8))|t<<4))|t<<2))|t<<1))|(e=1431655765&((e=858993459&((e=252645135&((e=16711935&((e=32767*(e-i)*r)|e<<8))|e<<4))|e<<2))|e<<1))<<1}function sa(t){var e=t,n=t;do{e.x<n.x&&(n=e),e=e.next}while(e!==t);return n}function ca(t,e,n,i,r,o,a,s){return(r-a)*(e-s)-(t-a)*(o-s)>=0&&(t-a)*(i-s)-(n-a)*(e-s)>=0&&(n-a)*(o-s)-(r-a)*(i-s)>=0}function la(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!function(t,e){var n=t;do{if(n.i!==t.i&&n.next.i!==t.i&&n.i!==e.i&&n.next.i!==e.i&&da(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}(t,e)&&fa(t,e)&&fa(e,t)&&function(t,e){var n=t,i=!1,r=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&r<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(i=!i),n=n.next}while(n!==t);return i}(t,e)}function ua(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function ha(t,e){return t.x===e.x&&t.y===e.y}function da(t,e,n,i){return!!(ha(t,e)&&ha(n,i)||ha(t,i)&&ha(n,e))||ua(t,e,n)>0!=ua(t,e,i)>0&&ua(n,i,t)>0!=ua(n,i,e)>0}function fa(t,e){return ua(t.prev,t,t.next)<0?ua(t,e,t.next)>=0&&ua(t,t.prev,e)>=0:ua(t,e,t.prev)<0||ua(t,t.next,e)<0}function pa(t,e){var n=new ga(t.i,t.x,t.y),i=new ga(e.i,e.x,e.y),r=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=r,r.prev=n,i.next=n,n.prev=i,o.next=i,i.prev=o,i}function ma(t,e,n,i){var r=new ga(t,e,n);return i?(r.next=i.next,r.prev=i,i.next.prev=r,i.next=r):(r.prev=r,r.next=r),r}function va(t){t.next.prev=t.prev,t.prev.next=t.next,t.prevZ&&(t.prevZ.nextZ=t.nextZ),t.nextZ&&(t.nextZ.prevZ=t.prevZ)}function ga(t,e,n){this.i=t,this.x=e,this.y=n,this.prev=null,this.next=null,this.z=null,this.prevZ=null,this.nextZ=null,this.steiner=!1}var ya={area:function(t){for(var e=t.length,n=0,i=e-1,r=0;r<e;i=r++)n+=t[i].x*t[r].y-t[r].x*t[i].y;return.5*n},isClockWise:function(t){return ya.area(t)<0},triangulateShape:function(t,e){var n=[],i=[],r=[];ba(t),xa(n,t);var o=t.length;e.forEach(ba);for(var a=0;a<e.length;a++)i.push(o),o+=e[a].length,xa(n,e[a]);var s=Ko(n,i);for(a=0;a<s.length;a+=3)r.push(s.slice(a,a+3));return r}};function ba(t){var e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function xa(t,e){for(var n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}function _a(t,e){qn.call(this),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},this.fromBufferGeometry(new wa(t,e)),this.mergeVertices()}function wa(t,e){si.call(this),this.type="ExtrudeBufferGeometry",this.parameters={shapes:t,options:e};for(var n=this,i=[],r=[],o=0,a=(t=Array.isArray(t)?t:[t]).length;o<a;o++){s(t[o])}function s(t){var o=[],a=void 0!==e.curveSegments?e.curveSegments:12,s=void 0!==e.steps?e.steps:1,c=void 0!==e.depth?e.depth:100,l=void 0===e.bevelEnabled||e.bevelEnabled,u=void 0!==e.bevelThickness?e.bevelThickness:6,h=void 0!==e.bevelSize?e.bevelSize:u-2,d=void 0!==e.bevelSegments?e.bevelSegments:3,f=e.extrudePath,p=void 0!==e.UVGenerator?e.UVGenerator:Sa;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),c=e.amount);var m,v,g,y,b,x,_,w,S=!1;f&&(m=f.getSpacedPoints(s),S=!0,l=!1,v=f.computeFrenetFrames(s,!1),g=new en,y=new en,b=new en),l||(d=0,u=0,h=0);var T=t.extractPoints(a),E=T.shape,M=T.holes;if(!ya.isClockWise(E))for(E=E.reverse(),_=0,w=M.length;_<w;_++)x=M[_],ya.isClockWise(x)&&(M[_]=x.reverse());var C=ya.triangulateShape(E,M),L=E;for(_=0,w=M.length;_<w;_++)x=M[_],E=E.concat(x);function O(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}var k,P,A,I,D,R,B=E.length,N=C.length;function j(t,e,n){var i,r,o,a=t.x-e.x,s=t.y-e.y,c=n.x-t.x,l=n.y-t.y,u=a*a+s*s,h=a*l-s*c;if(Math.abs(h)>Number.EPSILON){var d=Math.sqrt(u),f=Math.sqrt(c*c+l*l),p=e.x-s/d,m=e.y+a/d,v=((n.x-l/f-p)*l-(n.y+c/f-m)*c)/(a*l-s*c),g=(i=p+a*v-t.x)*i+(r=m+s*v-t.y)*r;if(g<=2)return new Je(i,r);o=Math.sqrt(g/2)}else{var y=!1;a>Number.EPSILON?c>Number.EPSILON&&(y=!0):a<-Number.EPSILON?c<-Number.EPSILON&&(y=!0):Math.sign(s)===Math.sign(l)&&(y=!0),y?(i=-s,r=a,o=Math.sqrt(u)):(i=a,r=s,o=Math.sqrt(u/2))}return new Je(i/o,r/o)}for(var z=[],F=0,V=L.length,U=V-1,G=F+1;F<V;F++,U++,G++)U===V&&(U=0),G===V&&(G=0),z[F]=j(L[F],L[U],L[G]);var $,H,W=[],q=z.concat();for(_=0,w=M.length;_<w;_++){for(x=M[_],$=[],F=0,U=(V=x.length)-1,G=F+1;F<V;F++,U++,G++)U===V&&(U=0),G===V&&(G=0),$[F]=j(x[F],x[U],x[G]);W.push($),q=q.concat($)}for(k=0;k<d;k++){for(A=k/d,I=u*Math.cos(A*Math.PI/2),P=h*Math.sin(A*Math.PI/2),F=0,V=L.length;F<V;F++)Y((D=O(L[F],z[F],P)).x,D.y,-I);for(_=0,w=M.length;_<w;_++)for(x=M[_],$=W[_],F=0,V=x.length;F<V;F++)Y((D=O(x[F],$[F],P)).x,D.y,-I)}for(P=h,F=0;F<B;F++)D=l?O(E[F],q[F],P):E[F],S?(y.copy(v.normals[0]).multiplyScalar(D.x),g.copy(v.binormals[0]).multiplyScalar(D.y),b.copy(m[0]).add(y).add(g),Y(b.x,b.y,b.z)):Y(D.x,D.y,0);for(H=1;H<=s;H++)for(F=0;F<B;F++)D=l?O(E[F],q[F],P):E[F],S?(y.copy(v.normals[H]).multiplyScalar(D.x),g.copy(v.binormals[H]).multiplyScalar(D.y),b.copy(m[H]).add(y).add(g),Y(b.x,b.y,b.z)):Y(D.x,D.y,c/s*H);for(k=d-1;k>=0;k--){for(A=k/d,I=u*Math.cos(A*Math.PI/2),P=h*Math.sin(A*Math.PI/2),F=0,V=L.length;F<V;F++)Y((D=O(L[F],z[F],P)).x,D.y,c+I);for(_=0,w=M.length;_<w;_++)for(x=M[_],$=W[_],F=0,V=x.length;F<V;F++)D=O(x[F],$[F],P),S?Y(D.x,D.y+m[s-1].y,m[s-1].x+I):Y(D.x,D.y,c+I)}function X(t,e){var n,i;for(F=t.length;--F>=0;){n=F,(i=F-1)<0&&(i=t.length-1);var r=0,o=s+2*d;for(r=0;r<o;r++){var a=B*r,c=B*(r+1);Z(e+n+a,e+i+a,e+i+c,e+n+c)}}}function Y(t,e,n){o.push(t),o.push(e),o.push(n)}function K(t,e,r){J(t),J(e),J(r);var o=i.length/3,a=p.generateTopUV(n,i,o-3,o-2,o-1);Q(a[0]),Q(a[1]),Q(a[2])}function Z(t,e,r,o){J(t),J(e),J(o),J(e),J(r),J(o);var a=i.length/3,s=p.generateSideWallUV(n,i,a-6,a-3,a-2,a-1);Q(s[0]),Q(s[1]),Q(s[3]),Q(s[1]),Q(s[2]),Q(s[3])}function J(t){i.push(o[3*t+0]),i.push(o[3*t+1]),i.push(o[3*t+2])}function Q(t){r.push(t.x),r.push(t.y)}!function(){var t=i.length/3;if(l){var e=0,r=B*e;for(F=0;F<N;F++)K((R=C[F])[2]+r,R[1]+r,R[0]+r);for(r=B*(e=s+2*d),F=0;F<N;F++)K((R=C[F])[0]+r,R[1]+r,R[2]+r)}else{for(F=0;F<N;F++)K((R=C[F])[2],R[1],R[0]);for(F=0;F<N;F++)K((R=C[F])[0]+B*s,R[1]+B*s,R[2]+B*s)}n.addGroup(t,i.length/3-t,0)}(),function(){var t=i.length/3,e=0;for(X(L,e),e+=L.length,_=0,w=M.length;_<w;_++)X(x=M[_],e),e+=x.length;n.addGroup(t,i.length/3-t,1)}()}this.addAttribute("position",new ni(i,3)),this.addAttribute("uv",new ni(r,2)),this.computeVertexNormals()}_a.prototype=Object.create(qn.prototype),_a.prototype.constructor=_a,_a.prototype.toJSON=function(){var t=qn.prototype.toJSON.call(this);return Ta(this.parameters.shapes,this.parameters.options,t)},wa.prototype=Object.create(si.prototype),wa.prototype.constructor=wa,wa.prototype.toJSON=function(){var t=si.prototype.toJSON.call(this);return Ta(this.parameters.shapes,this.parameters.options,t)};var Sa={generateTopUV:function(t,e,n,i,r){var o=e[3*n],a=e[3*n+1],s=e[3*i],c=e[3*i+1],l=e[3*r],u=e[3*r+1];return[new Je(o,a),new Je(s,c),new Je(l,u)]},generateSideWallUV:function(t,e,n,i,r,o){var a=e[3*n],s=e[3*n+1],c=e[3*n+2],l=e[3*i],u=e[3*i+1],h=e[3*i+2],d=e[3*r],f=e[3*r+1],p=e[3*r+2],m=e[3*o],v=e[3*o+1],g=e[3*o+2];return Math.abs(s-u)<.01?[new Je(a,1-c),new Je(l,1-h),new Je(d,1-p),new Je(m,1-g)]:[new Je(s,1-c),new Je(u,1-h),new Je(f,1-p),new Je(v,1-g)]}};function Ta(t,e,n){if(n.shapes=[],Array.isArray(t))for(var i=0,r=t.length;i<r;i++){var o=t[i];n.shapes.push(o.uuid)}else n.shapes.push(t.uuid);return void 0!==e.extrudePath&&(n.options.extrudePath=e.extrudePath.toJSON()),n}function Ea(t,e){qn.call(this),this.type="TextGeometry",this.parameters={text:t,parameters:e},this.fromBufferGeometry(new Ma(t,e)),this.mergeVertices()}function Ma(t,e){var n=(e=e||{}).font;if(!n||!n.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new qn;var i=n.generateShapes(t,e.size);e.depth=void 0!==e.height?e.height:50,void 0===e.bevelThickness&&(e.bevelThickness=10),void 0===e.bevelSize&&(e.bevelSize=8),void 0===e.bevelEnabled&&(e.bevelEnabled=!1),wa.call(this,i,e),this.type="TextBufferGeometry"}function Ca(t,e,n,i,r,o,a){qn.call(this),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:o,thetaLength:a},this.fromBufferGeometry(new La(t,e,n,i,r,o,a)),this.mergeVertices()}function La(t,e,n,i,r,o,a){si.call(this),this.type="SphereBufferGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:i,phiLength:r,thetaStart:o,thetaLength:a},t=t||1,e=Math.max(3,Math.floor(e)||8),n=Math.max(2,Math.floor(n)||6),i=void 0!==i?i:0,r=void 0!==r?r:2*Math.PI;var s,c,l=(o=void 0!==o?o:0)+(a=void 0!==a?a:Math.PI),u=0,h=[],d=new en,f=new en,p=[],m=[],v=[],g=[];for(c=0;c<=n;c++){var y=[],b=c/n;for(s=0;s<=e;s++){var x=s/e;d.x=-t*Math.cos(i+x*r)*Math.sin(o+b*a),d.y=t*Math.cos(o+b*a),d.z=t*Math.sin(i+x*r)*Math.sin(o+b*a),m.push(d.x,d.y,d.z),f.set(d.x,d.y,d.z).normalize(),v.push(f.x,f.y,f.z),g.push(x,1-b),y.push(u++)}h.push(y)}for(c=0;c<n;c++)for(s=0;s<e;s++){var _=h[c][s+1],w=h[c][s],S=h[c+1][s],T=h[c+1][s+1];(0!==c||o>0)&&p.push(_,w,T),(c!==n-1||l<Math.PI)&&p.push(w,S,T)}this.setIndex(p),this.addAttribute("position",new ni(m,3)),this.addAttribute("normal",new ni(v,3)),this.addAttribute("uv",new ni(g,2))}function Oa(t,e,n,i,r,o){qn.call(this),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:i,thetaStart:r,thetaLength:o},this.fromBufferGeometry(new ka(t,e,n,i,r,o)),this.mergeVertices()}function ka(t,e,n,i,r,o){si.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:i,thetaStart:r,thetaLength:o},t=t||.5,e=e||1,r=void 0!==r?r:0,o=void 0!==o?o:2*Math.PI,n=void 0!==n?Math.max(3,n):8;var a,s,c,l=[],u=[],h=[],d=[],f=t,p=(e-t)/(i=void 0!==i?Math.max(1,i):1),m=new en,v=new Je;for(s=0;s<=i;s++){for(c=0;c<=n;c++)a=r+c/n*o,m.x=f*Math.cos(a),m.y=f*Math.sin(a),u.push(m.x,m.y,m.z),h.push(0,0,1),v.x=(m.x/e+1)/2,v.y=(m.y/e+1)/2,d.push(v.x,v.y);f+=p}for(s=0;s<i;s++){var g=s*(n+1);for(c=0;c<n;c++){var y=a=c+g,b=a+n+1,x=a+n+2,_=a+1;l.push(y,b,_),l.push(b,x,_)}}this.setIndex(l),this.addAttribute("position",new ni(u,3)),this.addAttribute("normal",new ni(h,3)),this.addAttribute("uv",new ni(d,2))}function Pa(t,e,n,i){qn.call(this),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:i},this.fromBufferGeometry(new Aa(t,e,n,i)),this.mergeVertices()}function Aa(t,e,n,i){si.call(this),this.type="LatheBufferGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:i},e=Math.floor(e)||12,n=n||0,i=i||2*Math.PI,i=Ze.clamp(i,0,2*Math.PI);var r,o,a,s=[],c=[],l=[],u=1/e,h=new en,d=new Je;for(o=0;o<=e;o++){var f=n+o*u*i,p=Math.sin(f),m=Math.cos(f);for(a=0;a<=t.length-1;a++)h.x=t[a].x*p,h.y=t[a].y,h.z=t[a].x*m,c.push(h.x,h.y,h.z),d.x=o/e,d.y=a/(t.length-1),l.push(d.x,d.y)}for(o=0;o<e;o++)for(a=0;a<t.length-1;a++){var v=r=a+o*t.length,g=r+t.length,y=r+t.length+1,b=r+1;s.push(v,g,b),s.push(g,y,b)}if(this.setIndex(s),this.addAttribute("position",new ni(c,3)),this.addAttribute("uv",new ni(l,2)),this.computeVertexNormals(),i===2*Math.PI){var x=this.attributes.normal.array,_=new en,w=new en,S=new en;for(r=e*t.length*3,o=0,a=0;o<t.length;o++,a+=3)_.x=x[a+0],_.y=x[a+1],_.z=x[a+2],w.x=x[r+a+0],w.y=x[r+a+1],w.z=x[r+a+2],S.addVectors(_,w).normalize(),x[a+0]=x[r+a+0]=S.x,x[a+1]=x[r+a+1]=S.y,x[a+2]=x[r+a+2]=S.z}}function Ia(t,e){qn.call(this),this.type="ShapeGeometry","object"==typeof e&&(console.warn("THREE.ShapeGeometry: Options parameter has been removed."),e=e.curveSegments),this.parameters={shapes:t,curveSegments:e},this.fromBufferGeometry(new Da(t,e)),this.mergeVertices()}function Da(t,e){si.call(this),this.type="ShapeBufferGeometry",this.parameters={shapes:t,curveSegments:e},e=e||12;var n=[],i=[],r=[],o=[],a=0,s=0;if(!1===Array.isArray(t))l(t);else for(var c=0;c<t.length;c++)l(t[c]),this.addGroup(a,s,c),a+=s,s=0;function l(t){var a,c,l,u=i.length/3,h=t.extractPoints(e),d=h.shape,f=h.holes;for(!1===ya.isClockWise(d)&&(d=d.reverse()),a=0,c=f.length;a<c;a++)l=f[a],!0===ya.isClockWise(l)&&(f[a]=l.reverse());var p=ya.triangulateShape(d,f);for(a=0,c=f.length;a<c;a++)l=f[a],d=d.concat(l);for(a=0,c=d.length;a<c;a++){var m=d[a];i.push(m.x,m.y,0),r.push(0,0,1),o.push(m.x,m.y)}for(a=0,c=p.length;a<c;a++){var v=p[a],g=v[0]+u,y=v[1]+u,b=v[2]+u;n.push(g,y,b),s+=3}}this.setIndex(n),this.addAttribute("position",new ni(i,3)),this.addAttribute("normal",new ni(r,3)),this.addAttribute("uv",new ni(o,2))}function Ra(t,e){if(e.shapes=[],Array.isArray(t))for(var n=0,i=t.length;n<i;n++){var r=t[n];e.shapes.push(r.uuid)}else e.shapes.push(t.uuid);return e}function Ba(t,e){si.call(this),this.type="EdgesGeometry",this.parameters={thresholdAngle:e},e=void 0!==e?e:1;var n,i,r,o,a=[],s=Math.cos(Ze.DEG2RAD*e),c=[0,0],l={},u=["a","b","c"];t.isBufferGeometry?(o=new qn).fromBufferGeometry(t):o=t.clone(),o.mergeVertices(),o.computeFaceNormals();for(var h=o.vertices,d=o.faces,f=0,p=d.length;f<p;f++)for(var m=d[f],v=0;v<3;v++)n=m[u[v]],i=m[u[(v+1)%3]],c[0]=Math.min(n,i),c[1]=Math.max(n,i),void 0===l[r=c[0]+","+c[1]]?l[r]={index1:c[0],index2:c[1],face1:f,face2:void 0}:l[r].face2=f;for(r in l){var g=l[r];if(void 0===g.face2||d[g.face1].normal.dot(d[g.face2].normal)<=s){var y=h[g.index1];a.push(y.x,y.y,y.z),y=h[g.index2],a.push(y.x,y.y,y.z)}}this.addAttribute("position",new ni(a,3))}function Na(t,e,n,i,r,o,a,s){qn.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:i,heightSegments:r,openEnded:o,thetaStart:a,thetaLength:s},this.fromBufferGeometry(new ja(t,e,n,i,r,o,a,s)),this.mergeVertices()}function ja(t,e,n,i,r,o,a,s){si.call(this),this.type="CylinderBufferGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:i,heightSegments:r,openEnded:o,thetaStart:a,thetaLength:s};var c=this;t=void 0!==t?t:1,e=void 0!==e?e:1,n=n||1,i=Math.floor(i)||8,r=Math.floor(r)||1,o=void 0!==o&&o,a=void 0!==a?a:0,s=void 0!==s?s:2*Math.PI;var l=[],u=[],h=[],d=[],f=0,p=[],m=n/2,v=0;function g(n){var r,o,p,g=new Je,y=new en,b=0,x=!0===n?t:e,_=!0===n?1:-1;for(o=f,r=1;r<=i;r++)u.push(0,m*_,0),h.push(0,_,0),d.push(.5,.5),f++;for(p=f,r=0;r<=i;r++){var w=r/i*s+a,S=Math.cos(w),T=Math.sin(w);y.x=x*T,y.y=m*_,y.z=x*S,u.push(y.x,y.y,y.z),h.push(0,_,0),g.x=.5*S+.5,g.y=.5*T*_+.5,d.push(g.x,g.y),f++}for(r=0;r<i;r++){var E=o+r,M=p+r;!0===n?l.push(M,M+1,E):l.push(M+1,M,E),b+=3}c.addGroup(v,b,!0===n?1:2),v+=b}!function(){var o,g,y=new en,b=new en,x=0,_=(e-t)/n;for(g=0;g<=r;g++){var w=[],S=g/r,T=S*(e-t)+t;for(o=0;o<=i;o++){var E=o/i,M=E*s+a,C=Math.sin(M),L=Math.cos(M);b.x=T*C,b.y=-S*n+m,b.z=T*L,u.push(b.x,b.y,b.z),y.set(C,_,L).normalize(),h.push(y.x,y.y,y.z),d.push(E,1-S),w.push(f++)}p.push(w)}for(o=0;o<i;o++)for(g=0;g<r;g++){var O=p[g][o],k=p[g+1][o],P=p[g+1][o+1],A=p[g][o+1];l.push(O,k,A),l.push(k,P,A),x+=6}c.addGroup(v,x,0),v+=x}(),!1===o&&(t>0&&g(!0),e>0&&g(!1)),this.setIndex(l),this.addAttribute("position",new ni(u,3)),this.addAttribute("normal",new ni(h,3)),this.addAttribute("uv",new ni(d,2))}function za(t,e,n,i,r,o,a){Na.call(this,0,t,e,n,i,r,o,a),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:o,thetaLength:a}}function Fa(t,e,n,i,r,o,a){ja.call(this,0,t,e,n,i,r,o,a),this.type="ConeBufferGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:i,openEnded:r,thetaStart:o,thetaLength:a}}function Va(t,e,n,i){qn.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},this.fromBufferGeometry(new Ua(t,e,n,i)),this.mergeVertices()}function Ua(t,e,n,i){si.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:i},t=t||1,e=void 0!==e?Math.max(3,e):8,n=void 0!==n?n:0,i=void 0!==i?i:2*Math.PI;var r,o,a=[],s=[],c=[],l=[],u=new en,h=new Je;for(s.push(0,0,0),c.push(0,0,1),l.push(.5,.5),o=0,r=3;o<=e;o++,r+=3){var d=n+o/e*i;u.x=t*Math.cos(d),u.y=t*Math.sin(d),s.push(u.x,u.y,u.z),c.push(0,0,1),h.x=(s[r]/t+1)/2,h.y=(s[r+1]/t+1)/2,l.push(h.x,h.y)}for(r=1;r<=e;r++)a.push(r,r+1,0);this.setIndex(a),this.addAttribute("position",new ni(s,3)),this.addAttribute("normal",new ni(c,3)),this.addAttribute("uv",new ni(l,2))}Ea.prototype=Object.create(qn.prototype),Ea.prototype.constructor=Ea,Ma.prototype=Object.create(wa.prototype),Ma.prototype.constructor=Ma,Ca.prototype=Object.create(qn.prototype),Ca.prototype.constructor=Ca,La.prototype=Object.create(si.prototype),La.prototype.constructor=La,Oa.prototype=Object.create(qn.prototype),Oa.prototype.constructor=Oa,ka.prototype=Object.create(si.prototype),ka.prototype.constructor=ka,Pa.prototype=Object.create(qn.prototype),Pa.prototype.constructor=Pa,Aa.prototype=Object.create(si.prototype),Aa.prototype.constructor=Aa,Ia.prototype=Object.create(qn.prototype),Ia.prototype.constructor=Ia,Ia.prototype.toJSON=function(){var t=qn.prototype.toJSON.call(this);return Ra(this.parameters.shapes,t)},Da.prototype=Object.create(si.prototype),Da.prototype.constructor=Da,Da.prototype.toJSON=function(){var t=si.prototype.toJSON.call(this);return Ra(this.parameters.shapes,t)},Ba.prototype=Object.create(si.prototype),Ba.prototype.constructor=Ba,Na.prototype=Object.create(qn.prototype),Na.prototype.constructor=Na,ja.prototype=Object.create(si.prototype),ja.prototype.constructor=ja,za.prototype=Object.create(Na.prototype),za.prototype.constructor=za,Fa.prototype=Object.create(ja.prototype),Fa.prototype.constructor=Fa,Va.prototype=Object.create(qn.prototype),Va.prototype.constructor=Va,Ua.prototype=Object.create(si.prototype),Ua.prototype.constructor=Ua;var Ga=Object.freeze({WireframeGeometry:Po,ParametricGeometry:Ao,ParametricBufferGeometry:Io,TetrahedronGeometry:Bo,TetrahedronBufferGeometry:No,OctahedronGeometry:jo,OctahedronBufferGeometry:zo,IcosahedronGeometry:Fo,IcosahedronBufferGeometry:Vo,DodecahedronGeometry:Uo,DodecahedronBufferGeometry:Go,PolyhedronGeometry:Do,PolyhedronBufferGeometry:Ro,TubeGeometry:$o,TubeBufferGeometry:Ho,TorusKnotGeometry:Wo,TorusKnotBufferGeometry:qo,TorusGeometry:Xo,TorusBufferGeometry:Yo,TextGeometry:Ea,TextBufferGeometry:Ma,SphereGeometry:Ca,SphereBufferGeometry:La,RingGeometry:Oa,RingBufferGeometry:ka,PlaneGeometry:ui,PlaneBufferGeometry:hi,LatheGeometry:Pa,LatheBufferGeometry:Aa,ShapeGeometry:Ia,ShapeBufferGeometry:Da,ExtrudeGeometry:_a,ExtrudeBufferGeometry:wa,EdgesGeometry:Ba,ConeGeometry:za,ConeBufferGeometry:Fa,CylinderGeometry:Na,CylinderBufferGeometry:ja,CircleGeometry:Va,CircleBufferGeometry:Ua,BoxGeometry:ci,BoxBufferGeometry:li});function $a(t){fi.call(this),this.type="ShadowMaterial",this.color=new On(0),this.transparent=!0,this.setValues(t)}function Ha(t){Li.call(this,t),this.type="RawShaderMaterial"}function Wa(t){fi.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new On(16777215),this.roughness=.5,this.metalness=.5,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new On(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ye,this.normalScale=new Je(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.roughnessMap=null,this.metalnessMap=null,this.alphaMap=null,this.envMap=null,this.envMapIntensity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}function qa(t){Wa.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoat=0,this.clearCoatRoughness=0,this.setValues(t)}function Xa(t){fi.call(this),this.type="MeshPhongMaterial",this.color=new On(16777215),this.specular=new On(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new On(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ye,this.normalScale=new Je(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ht,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}function Ya(t){Xa.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(t)}function Ka(t){fi.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ye,this.normalScale=new Je(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.wireframe=!1,this.wireframeLinewidth=1,this.fog=!1,this.lights=!1,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}function Za(t){fi.call(this),this.type="MeshLambertMaterial",this.color=new On(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new On(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=ht,this.reflectivity=1,this.refractionRatio=.98,this.wireframe=!1,this.wireframeLinewidth=1,this.wireframeLinecap="round",this.wireframeLinejoin="round",this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.setValues(t)}function Ja(t){fi.call(this),this.defines={MATCAP:""},this.type="MeshMatcapMaterial",this.color=new On(16777215),this.matcap=null,this.map=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Ye,this.normalScale=new Je(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.alphaMap=null,this.skinning=!1,this.morphTargets=!1,this.morphNormals=!1,this.lights=!1,this.setValues(t)}function Qa(t){_o.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}$a.prototype=Object.create(fi.prototype),$a.prototype.constructor=$a,$a.prototype.isShadowMaterial=!0,$a.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.color.copy(t.color),this},Ha.prototype=Object.create(Li.prototype),Ha.prototype.constructor=Ha,Ha.prototype.isRawShaderMaterial=!0,Wa.prototype=Object.create(fi.prototype),Wa.prototype.constructor=Wa,Wa.prototype.isMeshStandardMaterial=!0,Wa.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.defines={STANDARD:""},this.color.copy(t.color),this.roughness=t.roughness,this.metalness=t.metalness,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.roughnessMap=t.roughnessMap,this.metalnessMap=t.metalnessMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.envMapIntensity=t.envMapIntensity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},qa.prototype=Object.create(Wa.prototype),qa.prototype.constructor=qa,qa.prototype.isMeshPhysicalMaterial=!0,qa.prototype.copy=function(t){return Wa.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this.clearCoat=t.clearCoat,this.clearCoatRoughness=t.clearCoatRoughness,this},Xa.prototype=Object.create(fi.prototype),Xa.prototype.constructor=Xa,Xa.prototype.isMeshPhongMaterial=!0,Xa.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.color.copy(t.color),this.specular.copy(t.specular),this.shininess=t.shininess,this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ya.prototype=Object.create(Xa.prototype),Ya.prototype.constructor=Ya,Ya.prototype.isMeshToonMaterial=!0,Ya.prototype.copy=function(t){return Xa.prototype.copy.call(this,t),this.gradientMap=t.gradientMap,this},Ka.prototype=Object.create(fi.prototype),Ka.prototype.constructor=Ka,Ka.prototype.isMeshNormalMaterial=!0,Ka.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Za.prototype=Object.create(fi.prototype),Za.prototype.constructor=Za,Za.prototype.isMeshLambertMaterial=!0,Za.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.lightMap=t.lightMap,this.lightMapIntensity=t.lightMapIntensity,this.aoMap=t.aoMap,this.aoMapIntensity=t.aoMapIntensity,this.emissive.copy(t.emissive),this.emissiveMap=t.emissiveMap,this.emissiveIntensity=t.emissiveIntensity,this.specularMap=t.specularMap,this.alphaMap=t.alphaMap,this.envMap=t.envMap,this.combine=t.combine,this.reflectivity=t.reflectivity,this.refractionRatio=t.refractionRatio,this.wireframe=t.wireframe,this.wireframeLinewidth=t.wireframeLinewidth,this.wireframeLinecap=t.wireframeLinecap,this.wireframeLinejoin=t.wireframeLinejoin,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Ja.prototype=Object.create(fi.prototype),Ja.prototype.constructor=Ja,Ja.prototype.isMeshMatcapMaterial=!0,Ja.prototype.copy=function(t){return fi.prototype.copy.call(this,t),this.defines={MATCAP:""},this.color.copy(t.color),this.matcap=t.matcap,this.map=t.map,this.bumpMap=t.bumpMap,this.bumpScale=t.bumpScale,this.normalMap=t.normalMap,this.normalMapType=t.normalMapType,this.normalScale.copy(t.normalScale),this.displacementMap=t.displacementMap,this.displacementScale=t.displacementScale,this.displacementBias=t.displacementBias,this.alphaMap=t.alphaMap,this.skinning=t.skinning,this.morphTargets=t.morphTargets,this.morphNormals=t.morphNormals,this},Qa.prototype=Object.create(_o.prototype),Qa.prototype.constructor=Qa,Qa.prototype.isLineDashedMaterial=!0,Qa.prototype.copy=function(t){return _o.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var ts=Object.freeze({ShadowMaterial:$a,SpriteMaterial:mo,RawShaderMaterial:Ha,ShaderMaterial:Li,PointsMaterial:Eo,MeshPhysicalMaterial:qa,MeshStandardMaterial:Wa,MeshPhongMaterial:Xa,MeshToonMaterial:Ya,MeshNormalMaterial:Ka,MeshLambertMaterial:Za,MeshDepthMaterial:Gr,MeshDistanceMaterial:$r,MeshBasicMaterial:Pi,MeshMatcapMaterial:Ja,LineDashedMaterial:Qa,LineBasicMaterial:_o,Material:fi}),es={arraySlice:function(t,e,n){return es.isTypedArray(t)?new t.constructor(t.subarray(e,void 0!==n?n:t.length)):t.slice(e,n)},convertArray:function(t,e,n){return!t||!n&&t.constructor===e?t:"number"==typeof e.BYTES_PER_ELEMENT?new e(t):Array.prototype.slice.call(t)},isTypedArray:function(t){return ArrayBuffer.isView(t)&&!(t instanceof DataView)},getKeyframeOrder:function(t){for(var e=t.length,n=new Array(e),i=0;i!==e;++i)n[i]=i;return n.sort(function(e,n){return t[e]-t[n]}),n},sortedArray:function(t,e,n){for(var i=t.length,r=new t.constructor(i),o=0,a=0;a!==i;++o)for(var s=n[o]*e,c=0;c!==e;++c)r[a++]=t[s+c];return r},flattenJSON:function(t,e,n,i){for(var r=1,o=t[0];void 0!==o&&void 0===o[i];)o=t[r++];if(void 0!==o){var a=o[i];if(void 0!==a)if(Array.isArray(a))do{void 0!==(a=o[i])&&(e.push(o.time),n.push.apply(n,a)),o=t[r++]}while(void 0!==o);else if(void 0!==a.toArray)do{void 0!==(a=o[i])&&(e.push(o.time),a.toArray(n,n.length)),o=t[r++]}while(void 0!==o);else do{void 0!==(a=o[i])&&(e.push(o.time),n.push(a)),o=t[r++]}while(void 0!==o)}}};function ns(t,e,n,i){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==i?i:new e.constructor(n),this.sampleValues=e,this.valueSize=n}function is(t,e,n,i){ns.call(this,t,e,n,i),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function rs(t,e,n,i){ns.call(this,t,e,n,i)}function os(t,e,n,i){ns.call(this,t,e,n,i)}function as(t,e,n,i){if(void 0===t)throw new Error("THREE.KeyframeTrack: track name is undefined");if(void 0===e||0===e.length)throw new Error("THREE.KeyframeTrack: no keyframes in track named "+t);this.name=t,this.times=es.convertArray(e,this.TimeBufferType),this.values=es.convertArray(n,this.ValueBufferType),this.setInterpolation(i||this.DefaultInterpolation)}function ss(t,e,n){as.call(this,t,e,n)}function cs(t,e,n,i){as.call(this,t,e,n,i)}function ls(t,e,n,i){as.call(this,t,e,n,i)}function us(t,e,n,i){ns.call(this,t,e,n,i)}function hs(t,e,n,i){as.call(this,t,e,n,i)}function ds(t,e,n,i){as.call(this,t,e,n,i)}function fs(t,e,n,i){as.call(this,t,e,n,i)}function ps(t,e,n){this.name=t,this.tracks=n,this.duration=void 0!==e?e:-1,this.uuid=Ze.generateUUID(),this.duration<0&&this.resetDuration()}function ms(t){if(void 0===t.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");var e=function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return ls;case"vector":case"vector2":case"vector3":case"vector4":return fs;case"color":return cs;case"quaternion":return hs;case"bool":case"boolean":return ss;case"string":return ds}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}(t.type);if(void 0===t.times){var n=[],i=[];es.flattenJSON(t.keys,n,i,"value"),t.times=n,t.values=i}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)}Object.assign(ns.prototype,{evaluate:function(t){var e=this.parameterPositions,n=this._cachedIndex,i=e[n],r=e[n-1];t:{e:{var o;n:{i:if(!(t<i)){for(var a=n+2;;){if(void 0===i){if(t<r)break i;return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,t,r)}if(n===a)break;if(r=i,t<(i=e[++n]))break e}o=e.length;break n}if(t>=r)break t;var s=e[1];t<s&&(n=2,r=s);for(a=n-2;;){if(void 0===r)return this._cachedIndex=0,this.beforeStart_(0,t,i);if(n===a)break;if(i=r,t>=(r=e[--n-1]))break e}o=n,n=0}for(;n<o;){var c=n+o>>>1;t<e[c]?o=c:n=c+1}if(i=e[n],void 0===(r=e[n-1]))return this._cachedIndex=0,this.beforeStart_(0,t,i);if(void 0===i)return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,r,t)}this._cachedIndex=n,this.intervalChanged_(n,r,i)}return this.interpolate_(n,r,t,i)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){for(var e=this.resultBuffer,n=this.sampleValues,i=this.valueSize,r=t*i,o=0;o!==i;++o)e[o]=n[r+o];return e},interpolate_:function(){throw new Error("call to abstract method")},intervalChanged_:function(){}}),
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(ns.prototype,{beforeStart_:ns.prototype.copySampleValue_,afterEnd_:ns.prototype.copySampleValue_}),is.prototype=Object.assign(Object.create(ns.prototype),{constructor:is,DefaultSettings_:{endingStart:Ie,endingEnd:Ie},intervalChanged_:function(t,e,n){var i=this.parameterPositions,r=t-2,o=t+1,a=i[r],s=i[o];if(void 0===a)switch(this.getSettings_().endingStart){case De:r=t,a=2*e-n;break;case Re:a=e+i[r=i.length-2]-i[r+1];break;default:r=t,a=n}if(void 0===s)switch(this.getSettings_().endingEnd){case De:o=t,s=2*n-e;break;case Re:o=1,s=n+i[1]-i[0];break;default:o=t-1,s=e}var c=.5*(n-e),l=this.valueSize;this._weightPrev=c/(e-a),this._weightNext=c/(s-n),this._offsetPrev=r*l,this._offsetNext=o*l},interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,c=s-a,l=this._offsetPrev,u=this._offsetNext,h=this._weightPrev,d=this._weightNext,f=(n-e)/(i-e),p=f*f,m=p*f,v=-h*m+2*h*p-h*f,g=(1+h)*m+(-1.5-2*h)*p+(-.5+h)*f+1,y=(-1-d)*m+(1.5+d)*p+.5*f,b=d*m-d*p,x=0;x!==a;++x)r[x]=v*o[l+x]+g*o[c+x]+y*o[s+x]+b*o[u+x];return r}}),rs.prototype=Object.assign(Object.create(ns.prototype),{constructor:rs,interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,c=s-a,l=(n-e)/(i-e),u=1-l,h=0;h!==a;++h)r[h]=o[c+h]*u+o[s+h]*l;return r}}),os.prototype=Object.assign(Object.create(ns.prototype),{constructor:os,interpolate_:function(t){return this.copySampleValue_(t-1)}}),Object.assign(as,{toJSON:function(t){var e,n=t.constructor;if(void 0!==n.toJSON)e=n.toJSON(t);else{e={name:t.name,times:es.convertArray(t.times,Array),values:es.convertArray(t.values,Array)};var i=t.getInterpolation();i!==t.DefaultInterpolation&&(e.interpolation=i)}return e.type=t.ValueTypeName,e}}),Object.assign(as.prototype,{constructor:as,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:Pe,InterpolantFactoryMethodDiscrete:function(t){return new os(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new rs(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new is(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){var e;switch(t){case ke:e=this.InterpolantFactoryMethodDiscrete;break;case Pe:e=this.InterpolantFactoryMethodLinear;break;case Ae:e=this.InterpolantFactoryMethodSmooth}if(void 0===e){var n="unsupported interpolation for "+this.ValueTypeName+" keyframe track named "+this.name;if(void 0===this.createInterpolant){if(t===this.DefaultInterpolation)throw new Error(n);this.setInterpolation(this.DefaultInterpolation)}return console.warn("THREE.KeyframeTrack:",n),this}return this.createInterpolant=e,this},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return ke;case this.InterpolantFactoryMethodLinear:return Pe;case this.InterpolantFactoryMethodSmooth:return Ae}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(0!==t)for(var e=this.times,n=0,i=e.length;n!==i;++n)e[n]+=t;return this},scale:function(t){if(1!==t)for(var e=this.times,n=0,i=e.length;n!==i;++n)e[n]*=t;return this},trim:function(t,e){for(var n=this.times,i=n.length,r=0,o=i-1;r!==i&&n[r]<t;)++r;for(;-1!==o&&n[o]>e;)--o;if(++o,0!==r||o!==i){r>=o&&(r=(o=Math.max(o,1))-1);var a=this.getValueSize();this.times=es.arraySlice(n,r,o),this.values=es.arraySlice(this.values,r*a,o*a)}return this},validate:function(){var t=!0,e=this.getValueSize();e-Math.floor(e)!=0&&(console.error("THREE.KeyframeTrack: Invalid value size in track.",this),t=!1);var n=this.times,i=this.values,r=n.length;0===r&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var o=null,a=0;a!==r;a++){var s=n[a];if("number"==typeof s&&isNaN(s)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,a,s),t=!1;break}if(null!==o&&o>s){console.error("THREE.KeyframeTrack: Out of order keys.",this,a,s,o),t=!1;break}o=s}if(void 0!==i&&es.isTypedArray(i)){a=0;for(var c=i.length;a!==c;++a){var l=i[a];if(isNaN(l)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,a,l),t=!1;break}}}return t},optimize:function(){for(var t=this.times,e=this.values,n=this.getValueSize(),i=this.getInterpolation()===Ae,r=1,o=t.length-1,a=1;a<o;++a){var s=!1,c=t[a];if(c!==t[a+1]&&(1!==a||c!==c[0]))if(i)s=!0;else for(var l=a*n,u=l-n,h=l+n,d=0;d!==n;++d){var f=e[l+d];if(f!==e[u+d]||f!==e[h+d]){s=!0;break}}if(s){if(a!==r){t[r]=t[a];var p=a*n,m=r*n;for(d=0;d!==n;++d)e[m+d]=e[p+d]}++r}}if(o>0){t[r]=t[o];for(p=o*n,m=r*n,d=0;d!==n;++d)e[m+d]=e[p+d];++r}return r!==t.length&&(this.times=es.arraySlice(t,0,r),this.values=es.arraySlice(e,0,r*n)),this},clone:function(){var t=es.arraySlice(this.times,0),e=es.arraySlice(this.values,0),n=new(0,this.constructor)(this.name,t,e);return n.createInterpolant=this.createInterpolant,n}}),ss.prototype=Object.assign(Object.create(as.prototype),{constructor:ss,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:ke,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),cs.prototype=Object.assign(Object.create(as.prototype),{constructor:cs,ValueTypeName:"color"}),ls.prototype=Object.assign(Object.create(as.prototype),{constructor:ls,ValueTypeName:"number"}),us.prototype=Object.assign(Object.create(ns.prototype),{constructor:us,interpolate_:function(t,e,n,i){for(var r=this.resultBuffer,o=this.sampleValues,a=this.valueSize,s=t*a,c=(n-e)/(i-e),l=s+a;s!==l;s+=4)tn.slerpFlat(r,0,o,s-a,o,s,c);return r}}),hs.prototype=Object.assign(Object.create(as.prototype),{constructor:hs,ValueTypeName:"quaternion",DefaultInterpolation:Pe,InterpolantFactoryMethodLinear:function(t){return new us(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),ds.prototype=Object.assign(Object.create(as.prototype),{constructor:ds,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:ke,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),fs.prototype=Object.assign(Object.create(as.prototype),{constructor:fs,ValueTypeName:"vector"}),Object.assign(ps,{parse:function(t){for(var e=[],n=t.tracks,i=1/(t.fps||1),r=0,o=n.length;r!==o;++r)e.push(ms(n[r]).scale(i));return new ps(t.name,t.duration,e)},toJSON:function(t){for(var e=[],n=t.tracks,i={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid},r=0,o=n.length;r!==o;++r)e.push(as.toJSON(n[r]));return i},CreateFromMorphTargetSequence:function(t,e,n,i){for(var r=e.length,o=[],a=0;a<r;a++){var s=[],c=[];s.push((a+r-1)%r,a,(a+1)%r),c.push(0,1,0);var l=es.getKeyframeOrder(s);s=es.sortedArray(s,1,l),c=es.sortedArray(c,1,l),i||0!==s[0]||(s.push(r),c.push(c[0])),o.push(new ls(".morphTargetInfluences["+e[a].name+"]",s,c).scale(1/n))}return new ps(t,-1,o)},findByName:function(t,e){var n=t;if(!Array.isArray(t)){var i=t;n=i.geometry&&i.geometry.animations||i.animations}for(var r=0;r<n.length;r++)if(n[r].name===e)return n[r];return null},CreateClipsFromMorphTargetSequences:function(t,e,n){for(var i={},r=/^([\w-]*?)([\d]+)$/,o=0,a=t.length;o<a;o++){var s=t[o],c=s.name.match(r);if(c&&c.length>1){var l=i[h=c[1]];l||(i[h]=l=[]),l.push(s)}}var u=[];for(var h in i)u.push(ps.CreateFromMorphTargetSequence(h,i[h],e,n));return u},parseAnimation:function(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;for(var n=function(t,e,n,i,r){if(0!==n.length){var o=[],a=[];es.flattenJSON(n,o,a,i),0!==o.length&&r.push(new t(e,o,a))}},i=[],r=t.name||"default",o=t.length||-1,a=t.fps||30,s=t.hierarchy||[],c=0;c<s.length;c++){var l=s[c].keys;if(l&&0!==l.length)if(l[0].morphTargets){for(var u={},h=0;h<l.length;h++)if(l[h].morphTargets)for(var d=0;d<l[h].morphTargets.length;d++)u[l[h].morphTargets[d]]=-1;for(var f in u){var p=[],m=[];for(d=0;d!==l[h].morphTargets.length;++d){var v=l[h];p.push(v.time),m.push(v.morphTarget===f?1:0)}i.push(new ls(".morphTargetInfluence["+f+"]",p,m))}o=u.length*(a||1)}else{var g=".bones["+e[c].name+"]";n(fs,g+".position",l,"pos",i),n(hs,g+".quaternion",l,"rot",i),n(fs,g+".scale",l,"scl",i)}}return 0===i.length?null:new ps(r,o,i)}}),Object.assign(ps.prototype,{resetDuration:function(){for(var t=0,e=0,n=this.tracks.length;e!==n;++e){var i=this.tracks[e];t=Math.max(t,i.times[i.times.length-1])}return this.duration=t,this},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},validate:function(){for(var t=!0,e=0;e<this.tracks.length;e++)t=t&&this.tracks[e].validate();return t},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this},clone:function(){for(var t=[],e=0;e<this.tracks.length;e++)t.push(this.tracks[e].clone());return new ps(this.name,this.duration,t)}});var vs={enabled:!1,files:{},add:function(t,e){!1!==this.enabled&&(this.files[t]=e)},get:function(t){if(!1!==this.enabled)return this.files[t]},remove:function(t){delete this.files[t]},clear:function(){this.files={}}};function gs(t,e,n){var i=this,r=!1,o=0,a=0,s=void 0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){a++,!1===r&&void 0!==i.onStart&&i.onStart(t,o,a),r=!0},this.itemEnd=function(t){o++,void 0!==i.onProgress&&i.onProgress(t,o,a),o===a&&(r=!1,void 0!==i.onLoad&&i.onLoad())},this.itemError=function(t){void 0!==i.onError&&i.onError(t)},this.resolveURL=function(t){return s?s(t):t},this.setURLModifier=function(t){return s=t,this}}var ys=new gs,bs={};function xs(t){this.manager=void 0!==t?t:ys}function _s(t){this.manager=void 0!==t?t:ys}function ws(t){this.manager=void 0!==t?t:ys,this._parser=null}function Ss(t){this.manager=void 0!==t?t:ys,this._parser=null}function Ts(t){this.manager=void 0!==t?t:ys}function Es(t){this.manager=void 0!==t?t:ys}function Ms(t){this.manager=void 0!==t?t:ys}function Cs(){this.type="Curve",this.arcLengthDivisions=200}function Ls(t,e,n,i,r,o,a,s){Cs.call(this),this.type="EllipseCurve",this.aX=t||0,this.aY=e||0,this.xRadius=n||1,this.yRadius=i||1,this.aStartAngle=r||0,this.aEndAngle=o||2*Math.PI,this.aClockwise=a||!1,this.aRotation=s||0}function Os(t,e,n,i,r,o){Ls.call(this,t,e,n,n,i,r,o),this.type="ArcCurve"}function ks(){var t=0,e=0,n=0,i=0;function r(r,o,a,s){t=r,e=a,n=-3*r+3*o-2*a-s,i=2*r-2*o+a+s}return{initCatmullRom:function(t,e,n,i,o){r(e,n,o*(n-t),o*(i-e))},initNonuniformCatmullRom:function(t,e,n,i,o,a,s){var c=(e-t)/o-(n-t)/(o+a)+(n-e)/a,l=(n-e)/a-(i-e)/(a+s)+(i-n)/s;r(e,n,c*=a,l*=a)},calc:function(r){var o=r*r;return t+e*r+n*o+i*(o*r)}}}Object.assign(xs.prototype,{load:function(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var r=this,o=vs.get(t);if(void 0!==o)return r.manager.itemStart(t),setTimeout(function(){e&&e(o),r.manager.itemEnd(t)},0),o;if(void 0===bs[t]){var a=t.match(/^data:(.*?)(;base64)?,(.*)$/);if(a){var s=a[1],c=!!a[2],l=a[3];l=decodeURIComponent(l),c&&(l=atob(l));try{var u,h=(this.responseType||"").toLowerCase();switch(h){case"arraybuffer":case"blob":for(var d=new Uint8Array(l.length),f=0;f<l.length;f++)d[f]=l.charCodeAt(f);u="blob"===h?new Blob([d.buffer],{type:s}):d.buffer;break;case"document":var p=new DOMParser;u=p.parseFromString(l,s);break;case"json":u=JSON.parse(l);break;default:u=l}setTimeout(function(){e&&e(u),r.manager.itemEnd(t)},0)}catch(e){setTimeout(function(){i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)},0)}}else{bs[t]=[],bs[t].push({onLoad:e,onProgress:n,onError:i});var m=new XMLHttpRequest;for(var v in m.open("GET",t,!0),m.addEventListener("load",function(e){var n=this.response;vs.add(t,n);var i=bs[t];if(delete bs[t],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received.");for(var o=0,a=i.length;o<a;o++){(s=i[o]).onLoad&&s.onLoad(n)}r.manager.itemEnd(t)}else{for(o=0,a=i.length;o<a;o++){var s;(s=i[o]).onError&&s.onError(e)}r.manager.itemError(t),r.manager.itemEnd(t)}},!1),m.addEventListener("progress",function(e){for(var n=bs[t],i=0,r=n.length;i<r;i++){var o=n[i];o.onProgress&&o.onProgress(e)}},!1),m.addEventListener("error",function(e){var n=bs[t];delete bs[t];for(var i=0,o=n.length;i<o;i++){var a=n[i];a.onError&&a.onError(e)}r.manager.itemError(t),r.manager.itemEnd(t)},!1),m.addEventListener("abort",function(e){var n=bs[t];delete bs[t];for(var i=0,o=n.length;i<o;i++){var a=n[i];a.onError&&a.onError(e)}r.manager.itemError(t),r.manager.itemEnd(t)},!1),void 0!==this.responseType&&(m.responseType=this.responseType),void 0!==this.withCredentials&&(m.withCredentials=this.withCredentials),m.overrideMimeType&&m.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain"),this.requestHeader)m.setRequestHeader(v,this.requestHeader[v]);m.send(null)}return r.manager.itemStart(t),m}bs[t].push({onLoad:e,onProgress:n,onError:i})},setPath:function(t){return this.path=t,this},setResponseType:function(t){return this.responseType=t,this},setWithCredentials:function(t){return this.withCredentials=t,this},setMimeType:function(t){return this.mimeType=t,this},setRequestHeader:function(t){return this.requestHeader=t,this}}),Object.assign(_s.prototype,{load:function(t,e,n,i){var r=this,o=new xs(r.manager);o.setPath(r.path),o.load(t,function(t){e(r.parse(JSON.parse(t)))},n,i)},parse:function(t,e){for(var n=[],i=0;i<t.length;i++){var r=ps.parse(t[i]);n.push(r)}e(n)},setPath:function(t){return this.path=t,this}}),Object.assign(ws.prototype,{load:function(t,e,n,i){var r=this,o=[],a=new Lo;a.image=o;var s=new xs(this.manager);function c(c){s.load(t[c],function(t){var n=r._parser(t,!0);o[c]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},6===(l+=1)&&(1===n.mipmapCount&&(a.minFilter=Dt),a.format=n.format,a.needsUpdate=!0,e&&e(a))},n,i)}if(s.setPath(this.path),s.setResponseType("arraybuffer"),Array.isArray(t))for(var l=0,u=0,h=t.length;u<h;++u)c(u);else s.load(t,function(t){var n=r._parser(t,!0);if(n.isCubemap)for(var i=n.mipmaps.length/n.mipmapCount,s=0;s<i;s++){o[s]={mipmaps:[]};for(var c=0;c<n.mipmapCount;c++)o[s].mipmaps.push(n.mipmaps[s*n.mipmapCount+c]),o[s].format=n.format,o[s].width=n.width,o[s].height=n.height}else a.image.width=n.width,a.image.height=n.height,a.mipmaps=n.mipmaps;1===n.mipmapCount&&(a.minFilter=Dt),a.format=n.format,a.needsUpdate=!0,e&&e(a)},n,i);return a},setPath:function(t){return this.path=t,this}}),Object.assign(Ss.prototype,{load:function(t,e,n,i){var r=this,o=new vn,a=new xs(this.manager);return a.setResponseType("arraybuffer"),a.setPath(this.path),a.load(t,function(t){var n=r._parser(t);n&&(void 0!==n.image?o.image=n.image:void 0!==n.data&&(o.image.width=n.width,o.image.height=n.height,o.image.data=n.data),o.wrapS=void 0!==n.wrapS?n.wrapS:Ot,o.wrapT=void 0!==n.wrapT?n.wrapT:Ot,o.magFilter=void 0!==n.magFilter?n.magFilter:Dt,o.minFilter=void 0!==n.minFilter?n.minFilter:Bt,o.anisotropy=void 0!==n.anisotropy?n.anisotropy:1,void 0!==n.format&&(o.format=n.format),void 0!==n.type&&(o.type=n.type),void 0!==n.mipmaps&&(o.mipmaps=n.mipmaps),1===n.mipmapCount&&(o.minFilter=Dt),o.needsUpdate=!0,e&&e(o,n))},n,i),o},setPath:function(t){return this.path=t,this}}),Object.assign(Ts.prototype,{crossOrigin:"anonymous",load:function(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var r=this,o=vs.get(t);if(void 0!==o)return r.manager.itemStart(t),setTimeout(function(){e&&e(o),r.manager.itemEnd(t)},0),o;var a=document.createElementNS("http://www.w3.org/1999/xhtml","img");function s(){a.removeEventListener("load",s,!1),a.removeEventListener("error",c,!1),vs.add(t,this),e&&e(this),r.manager.itemEnd(t)}function c(e){a.removeEventListener("load",s,!1),a.removeEventListener("error",c,!1),i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)}return a.addEventListener("load",s,!1),a.addEventListener("error",c,!1),"data:"!==t.substr(0,5)&&void 0!==this.crossOrigin&&(a.crossOrigin=this.crossOrigin),r.manager.itemStart(t),a.src=t,a},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Es.prototype,{crossOrigin:"anonymous",load:function(t,e,n,i){var r=new Di,o=new Ts(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);var a=0;function s(n){o.load(t[n],function(t){r.images[n]=t,6===++a&&(r.needsUpdate=!0,e&&e(r))},void 0,i)}for(var c=0;c<t.length;++c)s(c);return r},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Ms.prototype,{crossOrigin:"anonymous",load:function(t,e,n,i){var r=new hn,o=new Ts(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,function(n){r.image=n;var i=t.search(/\.jpe?g($|\?)/i)>0||0===t.search(/^data\:image\/jpeg/);r.format=i?Kt:Zt,r.needsUpdate=!0,void 0!==e&&e(r)},n,i),r},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Cs.prototype,{getPoint:function(){return console.warn("THREE.Curve: .getPoint() not implemented."),null},getPointAt:function(t,e){var n=this.getUtoTmapping(t);return this.getPoint(n,e)},getPoints:function(t){void 0===t&&(t=5);for(var e=[],n=0;n<=t;n++)e.push(this.getPoint(n/t));return e},getSpacedPoints:function(t){void 0===t&&(t=5);for(var e=[],n=0;n<=t;n++)e.push(this.getPointAt(n/t));return e},getLength:function(){var t=this.getLengths();return t[t.length-1]},getLengths:function(t){if(void 0===t&&(t=this.arcLengthDivisions),this.cacheArcLengths&&this.cacheArcLengths.length===t+1&&!this.needsUpdate)return this.cacheArcLengths;this.needsUpdate=!1;var e,n,i=[],r=this.getPoint(0),o=0;for(i.push(0),n=1;n<=t;n++)o+=(e=this.getPoint(n/t)).distanceTo(r),i.push(o),r=e;return this.cacheArcLengths=i,i},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){var n,i=this.getLengths(),r=0,o=i.length;n=e||t*i[o-1];for(var a,s=0,c=o-1;s<=c;)if((a=i[r=Math.floor(s+(c-s)/2)]-n)<0)s=r+1;else{if(!(a>0)){c=r;break}c=r-1}if(i[r=c]===n)return r/(o-1);var l=i[r];return(r+(n-l)/(i[r+1]-l))/(o-1)},getTangent:function(t){var e=t-1e-4,n=t+1e-4;e<0&&(e=0),n>1&&(n=1);var i=this.getPoint(e);return this.getPoint(n).clone().sub(i).normalize()},getTangentAt:function(t){var e=this.getUtoTmapping(t);return this.getTangent(e)},computeFrenetFrames:function(t,e){var n,i,r,o=new en,a=[],s=[],c=[],l=new en,u=new Qe;for(n=0;n<=t;n++)i=n/t,a[n]=this.getTangentAt(i),a[n].normalize();s[0]=new en,c[0]=new en;var h=Number.MAX_VALUE,d=Math.abs(a[0].x),f=Math.abs(a[0].y),p=Math.abs(a[0].z);for(d<=h&&(h=d,o.set(1,0,0)),f<=h&&(h=f,o.set(0,1,0)),p<=h&&o.set(0,0,1),l.crossVectors(a[0],o).normalize(),s[0].crossVectors(a[0],l),c[0].crossVectors(a[0],s[0]),n=1;n<=t;n++)s[n]=s[n-1].clone(),c[n]=c[n-1].clone(),l.crossVectors(a[n-1],a[n]),l.length()>Number.EPSILON&&(l.normalize(),r=Math.acos(Ze.clamp(a[n-1].dot(a[n]),-1,1)),s[n].applyMatrix4(u.makeRotationAxis(l,r))),c[n].crossVectors(a[n],s[n]);if(!0===e)for(r=Math.acos(Ze.clamp(s[0].dot(s[t]),-1,1)),r/=t,a[0].dot(l.crossVectors(s[0],s[t]))>0&&(r=-r),n=1;n<=t;n++)s[n].applyMatrix4(u.makeRotationAxis(a[n],r*n)),c[n].crossVectors(a[n],s[n]);return{tangents:a,normals:s,binormals:c}},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this},toJSON:function(){var t={metadata:{version:4.5,type:"Curve",generator:"Curve.toJSON"}};return t.arcLengthDivisions=this.arcLengthDivisions,t.type=this.type,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),Ls.prototype=Object.create(Cs.prototype),Ls.prototype.constructor=Ls,Ls.prototype.isEllipseCurve=!0,Ls.prototype.getPoint=function(t,e){for(var n=e||new Je,i=2*Math.PI,r=this.aEndAngle-this.aStartAngle,o=Math.abs(r)<Number.EPSILON;r<0;)r+=i;for(;r>i;)r-=i;r<Number.EPSILON&&(r=o?0:i),!0!==this.aClockwise||o||(r===i?r=-i:r-=i);var a=this.aStartAngle+t*r,s=this.aX+this.xRadius*Math.cos(a),c=this.aY+this.yRadius*Math.sin(a);if(0!==this.aRotation){var l=Math.cos(this.aRotation),u=Math.sin(this.aRotation),h=s-this.aX,d=c-this.aY;s=h*l-d*u+this.aX,c=h*u+d*l+this.aY}return n.set(s,c)},Ls.prototype.copy=function(t){return Cs.prototype.copy.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Ls.prototype.toJSON=function(){var t=Cs.prototype.toJSON.call(this);return t.aX=this.aX,t.aY=this.aY,t.xRadius=this.xRadius,t.yRadius=this.yRadius,t.aStartAngle=this.aStartAngle,t.aEndAngle=this.aEndAngle,t.aClockwise=this.aClockwise,t.aRotation=this.aRotation,t},Ls.prototype.fromJSON=function(t){return Cs.prototype.fromJSON.call(this,t),this.aX=t.aX,this.aY=t.aY,this.xRadius=t.xRadius,this.yRadius=t.yRadius,this.aStartAngle=t.aStartAngle,this.aEndAngle=t.aEndAngle,this.aClockwise=t.aClockwise,this.aRotation=t.aRotation,this},Os.prototype=Object.create(Ls.prototype),Os.prototype.constructor=Os,Os.prototype.isArcCurve=!0;var Ps=new en,As=new ks,Is=new ks,Ds=new ks;function Rs(t,e,n,i){Cs.call(this),this.type="CatmullRomCurve3",this.points=t||[],this.closed=e||!1,this.curveType=n||"centripetal",this.tension=i||.5}function Bs(t,e,n,i,r){var o=.5*(i-e),a=.5*(r-n),s=t*t;return(2*n-2*i+o+a)*(t*s)+(-3*n+3*i-2*o-a)*s+o*t+n}function Ns(t,e,n,i){return function(t,e){var n=1-t;return n*n*e}(t,e)+function(t,e){return 2*(1-t)*t*e}(t,n)+function(t,e){return t*t*e}(t,i)}function js(t,e,n,i,r){return function(t,e){var n=1-t;return n*n*n*e}(t,e)+function(t,e){var n=1-t;return 3*n*n*t*e}(t,n)+function(t,e){return 3*(1-t)*t*t*e}(t,i)+function(t,e){return t*t*t*e}(t,r)}function zs(t,e,n,i){Cs.call(this),this.type="CubicBezierCurve",this.v0=t||new Je,this.v1=e||new Je,this.v2=n||new Je,this.v3=i||new Je}function Fs(t,e,n,i){Cs.call(this),this.type="CubicBezierCurve3",this.v0=t||new en,this.v1=e||new en,this.v2=n||new en,this.v3=i||new en}function Vs(t,e){Cs.call(this),this.type="LineCurve",this.v1=t||new Je,this.v2=e||new Je}function Us(t,e){Cs.call(this),this.type="LineCurve3",this.v1=t||new en,this.v2=e||new en}function Gs(t,e,n){Cs.call(this),this.type="QuadraticBezierCurve",this.v0=t||new Je,this.v1=e||new Je,this.v2=n||new Je}function $s(t,e,n){Cs.call(this),this.type="QuadraticBezierCurve3",this.v0=t||new en,this.v1=e||new en,this.v2=n||new en}function Hs(t){Cs.call(this),this.type="SplineCurve",this.points=t||[]}Rs.prototype=Object.create(Cs.prototype),Rs.prototype.constructor=Rs,Rs.prototype.isCatmullRomCurve3=!0,Rs.prototype.getPoint=function(t,e){var n,i,r,o,a=e||new en,s=this.points,c=s.length,l=(c-(this.closed?0:1))*t,u=Math.floor(l),h=l-u;if(this.closed?u+=u>0?0:(Math.floor(Math.abs(u)/c)+1)*c:0===h&&u===c-1&&(u=c-2,h=1),this.closed||u>0?n=s[(u-1)%c]:(Ps.subVectors(s[0],s[1]).add(s[0]),n=Ps),i=s[u%c],r=s[(u+1)%c],this.closed||u+2<c?o=s[(u+2)%c]:(Ps.subVectors(s[c-1],s[c-2]).add(s[c-1]),o=Ps),"centripetal"===this.curveType||"chordal"===this.curveType){var d="chordal"===this.curveType?.5:.25,f=Math.pow(n.distanceToSquared(i),d),p=Math.pow(i.distanceToSquared(r),d),m=Math.pow(r.distanceToSquared(o),d);p<1e-4&&(p=1),f<1e-4&&(f=p),m<1e-4&&(m=p),As.initNonuniformCatmullRom(n.x,i.x,r.x,o.x,f,p,m),Is.initNonuniformCatmullRom(n.y,i.y,r.y,o.y,f,p,m),Ds.initNonuniformCatmullRom(n.z,i.z,r.z,o.z,f,p,m)}else"catmullrom"===this.curveType&&(As.initCatmullRom(n.x,i.x,r.x,o.x,this.tension),Is.initCatmullRom(n.y,i.y,r.y,o.y,this.tension),Ds.initCatmullRom(n.z,i.z,r.z,o.z,this.tension));return a.set(As.calc(h),Is.calc(h),Ds.calc(h)),a},Rs.prototype.copy=function(t){Cs.prototype.copy.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++){var i=t.points[e];this.points.push(i.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},Rs.prototype.toJSON=function(){var t=Cs.prototype.toJSON.call(this);t.points=[];for(var e=0,n=this.points.length;e<n;e++){var i=this.points[e];t.points.push(i.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},Rs.prototype.fromJSON=function(t){Cs.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++){var i=t.points[e];this.points.push((new en).fromArray(i))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},zs.prototype=Object.create(Cs.prototype),zs.prototype.constructor=zs,zs.prototype.isCubicBezierCurve=!0,zs.prototype.getPoint=function(t,e){var n=e||new Je,i=this.v0,r=this.v1,o=this.v2,a=this.v3;return n.set(js(t,i.x,r.x,o.x,a.x),js(t,i.y,r.y,o.y,a.y)),n},zs.prototype.copy=function(t){return Cs.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},zs.prototype.toJSON=function(){var t=Cs.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},zs.prototype.fromJSON=function(t){return Cs.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Fs.prototype=Object.create(Cs.prototype),Fs.prototype.constructor=Fs,Fs.prototype.isCubicBezierCurve3=!0,Fs.prototype.getPoint=function(t,e){var n=e||new en,i=this.v0,r=this.v1,o=this.v2,a=this.v3;return n.set(js(t,i.x,r.x,o.x,a.x),js(t,i.y,r.y,o.y,a.y),js(t,i.z,r.z,o.z,a.z)),n},Fs.prototype.copy=function(t){return Cs.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this.v3.copy(t.v3),this},Fs.prototype.toJSON=function(){var t=Cs.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t.v3=this.v3.toArray(),t},Fs.prototype.fromJSON=function(t){return Cs.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this.v3.fromArray(t.v3),this},Vs.prototype=Object.create(Cs.prototype),Vs.prototype.constructor=Vs,Vs.prototype.isLineCurve=!0,Vs.prototype.getPoint=function(t,e){var n=e||new Je;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n},Vs.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},Vs.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},Vs.prototype.copy=function(t){return Cs.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Vs.prototype.toJSON=function(){var t=Cs.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Vs.prototype.fromJSON=function(t){return Cs.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Us.prototype=Object.create(Cs.prototype),Us.prototype.constructor=Us,Us.prototype.isLineCurve3=!0,Us.prototype.getPoint=function(t,e){var n=e||new en;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n},Us.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},Us.prototype.copy=function(t){return Cs.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Us.prototype.toJSON=function(){var t=Cs.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Us.prototype.fromJSON=function(t){return Cs.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Gs.prototype=Object.create(Cs.prototype),Gs.prototype.constructor=Gs,Gs.prototype.isQuadraticBezierCurve=!0,Gs.prototype.getPoint=function(t,e){var n=e||new Je,i=this.v0,r=this.v1,o=this.v2;return n.set(Ns(t,i.x,r.x,o.x),Ns(t,i.y,r.y,o.y)),n},Gs.prototype.copy=function(t){return Cs.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Gs.prototype.toJSON=function(){var t=Cs.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Gs.prototype.fromJSON=function(t){return Cs.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},$s.prototype=Object.create(Cs.prototype),$s.prototype.constructor=$s,$s.prototype.isQuadraticBezierCurve3=!0,$s.prototype.getPoint=function(t,e){var n=e||new en,i=this.v0,r=this.v1,o=this.v2;return n.set(Ns(t,i.x,r.x,o.x),Ns(t,i.y,r.y,o.y),Ns(t,i.z,r.z,o.z)),n},$s.prototype.copy=function(t){return Cs.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},$s.prototype.toJSON=function(){var t=Cs.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},$s.prototype.fromJSON=function(t){return Cs.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Hs.prototype=Object.create(Cs.prototype),Hs.prototype.constructor=Hs,Hs.prototype.isSplineCurve=!0,Hs.prototype.getPoint=function(t,e){var n=e||new Je,i=this.points,r=(i.length-1)*t,o=Math.floor(r),a=r-o,s=i[0===o?o:o-1],c=i[o],l=i[o>i.length-2?i.length-1:o+1],u=i[o>i.length-3?i.length-1:o+2];return n.set(Bs(a,s.x,c.x,l.x,u.x),Bs(a,s.y,c.y,l.y,u.y)),n},Hs.prototype.copy=function(t){Cs.prototype.copy.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++){var i=t.points[e];this.points.push(i.clone())}return this},Hs.prototype.toJSON=function(){var t=Cs.prototype.toJSON.call(this);t.points=[];for(var e=0,n=this.points.length;e<n;e++){var i=this.points[e];t.points.push(i.toArray())}return t},Hs.prototype.fromJSON=function(t){Cs.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++){var i=t.points[e];this.points.push((new Je).fromArray(i))}return this};var Ws=Object.freeze({ArcCurve:Os,CatmullRomCurve3:Rs,CubicBezierCurve:zs,CubicBezierCurve3:Fs,EllipseCurve:Ls,LineCurve:Vs,LineCurve3:Us,QuadraticBezierCurve:Gs,QuadraticBezierCurve3:$s,SplineCurve:Hs});function qs(){Cs.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function Xs(t){qs.call(this),this.type="Path",this.currentPoint=new Je,t&&this.setFromPoints(t)}function Ys(t){Xs.call(this,t),this.uuid=Ze.generateUUID(),this.type="Shape",this.holes=[]}function Ks(t,e){Gn.call(this),this.type="Light",this.color=new On(t),this.intensity=void 0!==e?e:1,this.receiveShadow=void 0}function Zs(t,e,n){Ks.call(this,t,n),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(Gn.DefaultUp),this.updateMatrix(),this.groundColor=new On(e)}function Js(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new Je(512,512),this.map=null,this.matrix=new Qe}function Qs(){Js.call(this,new Kr(50,1,.5,500))}function tc(t,e,n,i,r,o){Ks.call(this,t,e),this.type="SpotLight",this.position.copy(Gn.DefaultUp),this.updateMatrix(),this.target=new Gn,Object.defineProperty(this,"power",{get:function(){return this.intensity*Math.PI},set:function(t){this.intensity=t/Math.PI}}),this.distance=void 0!==n?n:0,this.angle=void 0!==i?i:Math.PI/3,this.penumbra=void 0!==r?r:0,this.decay=void 0!==o?o:1,this.shadow=new Qs}function ec(t,e,n,i){Ks.call(this,t,e),this.type="PointLight",Object.defineProperty(this,"power",{get:function(){return 4*this.intensity*Math.PI},set:function(t){this.intensity=t/(4*Math.PI)}}),this.distance=void 0!==n?n:0,this.decay=void 0!==i?i:1,this.shadow=new Js(new Kr(90,1,.5,500))}function nc(t,e,n,i,r,o){Yr.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=void 0!==t?t:-1,this.right=void 0!==e?e:1,this.top=void 0!==n?n:1,this.bottom=void 0!==i?i:-1,this.near=void 0!==r?r:.1,this.far=void 0!==o?o:2e3,this.updateProjectionMatrix()}function ic(){Js.call(this,new nc(-5,5,5,-5,.5,500))}function rc(t,e){Ks.call(this,t,e),this.type="DirectionalLight",this.position.copy(Gn.DefaultUp),this.updateMatrix(),this.target=new Gn,this.shadow=new ic}function oc(t,e){Ks.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0}function ac(t,e,n,i){Ks.call(this,t,e),this.type="RectAreaLight",this.width=void 0!==n?n:10,this.height=void 0!==i?i:10}function sc(t){this.manager=void 0!==t?t:ys,this.textures={}}qs.prototype=Object.assign(Object.create(Cs.prototype),{constructor:qs,add:function(t){this.curves.push(t)},closePath:function(){var t=this.curves[0].getPoint(0),e=this.curves[this.curves.length-1].getPoint(1);t.equals(e)||this.curves.push(new Vs(e,t))},getPoint:function(t){for(var e=t*this.getLength(),n=this.getCurveLengths(),i=0;i<n.length;){if(n[i]>=e){var r=n[i]-e,o=this.curves[i],a=o.getLength(),s=0===a?0:1-r/a;return o.getPointAt(s)}i++}return null},getLength:function(){var t=this.getCurveLengths();return t[t.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=[],e=0,n=0,i=this.curves.length;n<i;n++)e+=this.curves[n].getLength(),t.push(e);return this.cacheLengths=t,t},getSpacedPoints:function(t){void 0===t&&(t=40);for(var e=[],n=0;n<=t;n++)e.push(this.getPoint(n/t));return this.autoClose&&e.push(e[0]),e},getPoints:function(t){t=t||12;for(var e,n=[],i=0,r=this.curves;i<r.length;i++)for(var o=r[i],a=o&&o.isEllipseCurve?2*t:o&&(o.isLineCurve||o.isLineCurve3)?1:o&&o.isSplineCurve?t*o.points.length:t,s=o.getPoints(a),c=0;c<s.length;c++){var l=s[c];e&&e.equals(l)||(n.push(l),e=l)}return this.autoClose&&n.length>1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},copy:function(t){Cs.prototype.copy.call(this,t),this.curves=[];for(var e=0,n=t.curves.length;e<n;e++){var i=t.curves[e];this.curves.push(i.clone())}return this.autoClose=t.autoClose,this},toJSON:function(){var t=Cs.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(var e=0,n=this.curves.length;e<n;e++){var i=this.curves[e];t.curves.push(i.toJSON())}return t},fromJSON:function(t){Cs.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(var e=0,n=t.curves.length;e<n;e++){var i=t.curves[e];this.curves.push((new Ws[i.type]).fromJSON(i))}return this}}),Xs.prototype=Object.assign(Object.create(qs.prototype),{constructor:Xs,setFromPoints:function(t){this.moveTo(t[0].x,t[0].y);for(var e=1,n=t.length;e<n;e++)this.lineTo(t[e].x,t[e].y)},moveTo:function(t,e){this.currentPoint.set(t,e)},lineTo:function(t,e){var n=new Vs(this.currentPoint.clone(),new Je(t,e));this.curves.push(n),this.currentPoint.set(t,e)},quadraticCurveTo:function(t,e,n,i){var r=new Gs(this.currentPoint.clone(),new Je(t,e),new Je(n,i));this.curves.push(r),this.currentPoint.set(n,i)},bezierCurveTo:function(t,e,n,i,r,o){var a=new zs(this.currentPoint.clone(),new Je(t,e),new Je(n,i),new Je(r,o));this.curves.push(a),this.currentPoint.set(r,o)},splineThru:function(t){var e=new Hs([this.currentPoint.clone()].concat(t));this.curves.push(e),this.currentPoint.copy(t[t.length-1])},arc:function(t,e,n,i,r,o){var a=this.currentPoint.x,s=this.currentPoint.y;this.absarc(t+a,e+s,n,i,r,o)},absarc:function(t,e,n,i,r,o){this.absellipse(t,e,n,n,i,r,o)},ellipse:function(t,e,n,i,r,o,a,s){var c=this.currentPoint.x,l=this.currentPoint.y;this.absellipse(t+c,e+l,n,i,r,o,a,s)},absellipse:function(t,e,n,i,r,o,a,s){var c=new Ls(t,e,n,i,r,o,a,s);if(this.curves.length>0){var l=c.getPoint(0);l.equals(this.currentPoint)||this.lineTo(l.x,l.y)}this.curves.push(c);var u=c.getPoint(1);this.currentPoint.copy(u)},copy:function(t){return qs.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){var t=qs.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return qs.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),Ys.prototype=Object.assign(Object.create(Xs.prototype),{constructor:Ys,getPointsHoles:function(t){for(var e=[],n=0,i=this.holes.length;n<i;n++)e[n]=this.holes[n].getPoints(t);return e},extractPoints:function(t){return{shape:this.getPoints(t),holes:this.getPointsHoles(t)}},copy:function(t){Xs.prototype.copy.call(this,t),this.holes=[];for(var e=0,n=t.holes.length;e<n;e++){var i=t.holes[e];this.holes.push(i.clone())}return this},toJSON:function(){var t=Xs.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(var e=0,n=this.holes.length;e<n;e++){var i=this.holes[e];t.holes.push(i.toJSON())}return t},fromJSON:function(t){Xs.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(var e=0,n=t.holes.length;e<n;e++){var i=t.holes[e];this.holes.push((new Xs).fromJSON(i))}return this}}),Ks.prototype=Object.assign(Object.create(Gn.prototype),{constructor:Ks,isLight:!0,copy:function(t){return Gn.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){var e=Gn.prototype.toJSON.call(this,t);return e.object.color=this.color.getHex(),e.object.intensity=this.intensity,void 0!==this.groundColor&&(e.object.groundColor=this.groundColor.getHex()),void 0!==this.distance&&(e.object.distance=this.distance),void 0!==this.angle&&(e.object.angle=this.angle),void 0!==this.decay&&(e.object.decay=this.decay),void 0!==this.penumbra&&(e.object.penumbra=this.penumbra),void 0!==this.shadow&&(e.object.shadow=this.shadow.toJSON()),e}}),Zs.prototype=Object.assign(Object.create(Ks.prototype),{constructor:Zs,isHemisphereLight:!0,copy:function(t){return Ks.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(Js.prototype,{copy:function(t){return this.camera=t.camera.clone(),this.bias=t.bias,this.radius=t.radius,this.mapSize.copy(t.mapSize),this},clone:function(){return(new this.constructor).copy(this)},toJSON:function(){var t={};return 0!==this.bias&&(t.bias=this.bias),1!==this.radius&&(t.radius=this.radius),512===this.mapSize.x&&512===this.mapSize.y||(t.mapSize=this.mapSize.toArray()),t.camera=this.camera.toJSON(!1).object,delete t.camera.matrix,t}}),Qs.prototype=Object.assign(Object.create(Js.prototype),{constructor:Qs,isSpotLightShadow:!0,update:function(t){var e=this.camera,n=2*Ze.RAD2DEG*t.angle,i=this.mapSize.width/this.mapSize.height,r=t.distance||e.far;n===e.fov&&i===e.aspect&&r===e.far||(e.fov=n,e.aspect=i,e.far=r,e.updateProjectionMatrix())}}),tc.prototype=Object.assign(Object.create(Ks.prototype),{constructor:tc,isSpotLight:!0,copy:function(t){return Ks.prototype.copy.call(this,t),this.distance=t.distance,this.angle=t.angle,this.penumbra=t.penumbra,this.decay=t.decay,this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),ec.prototype=Object.assign(Object.create(Ks.prototype),{constructor:ec,isPointLight:!0,copy:function(t){return Ks.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),nc.prototype=Object.assign(Object.create(Yr.prototype),{constructor:nc,isOrthographicCamera:!0,copy:function(t,e){return Yr.prototype.copy.call(this,t,e),this.left=t.left,this.right=t.right,this.top=t.top,this.bottom=t.bottom,this.near=t.near,this.far=t.far,this.zoom=t.zoom,this.view=null===t.view?null:Object.assign({},t.view),this},setViewOffset:function(t,e,n,i,r,o){null===this.view&&(this.view={enabled:!0,fullWidth:1,fullHeight:1,offsetX:0,offsetY:0,width:1,height:1}),this.view.enabled=!0,this.view.fullWidth=t,this.view.fullHeight=e,this.view.offsetX=n,this.view.offsetY=i,this.view.width=r,this.view.height=o,this.updateProjectionMatrix()},clearViewOffset:function(){null!==this.view&&(this.view.enabled=!1),this.updateProjectionMatrix()},updateProjectionMatrix:function(){var t=(this.right-this.left)/(2*this.zoom),e=(this.top-this.bottom)/(2*this.zoom),n=(this.right+this.left)/2,i=(this.top+this.bottom)/2,r=n-t,o=n+t,a=i+e,s=i-e;if(null!==this.view&&this.view.enabled){var c=this.zoom/(this.view.width/this.view.fullWidth),l=this.zoom/(this.view.height/this.view.fullHeight),u=(this.right-this.left)/this.view.width,h=(this.top-this.bottom)/this.view.height;o=(r+=u*(this.view.offsetX/c))+u*(this.view.width/c),s=(a-=h*(this.view.offsetY/l))-h*(this.view.height/l)}this.projectionMatrix.makeOrthographic(r,o,a,s,this.near,this.far),this.projectionMatrixInverse.getInverse(this.projectionMatrix)},toJSON:function(t){var e=Gn.prototype.toJSON.call(this,t);return e.object.zoom=this.zoom,e.object.left=this.left,e.object.right=this.right,e.object.top=this.top,e.object.bottom=this.bottom,e.object.near=this.near,e.object.far=this.far,null!==this.view&&(e.object.view=Object.assign({},this.view)),e}}),ic.prototype=Object.assign(Object.create(Js.prototype),{constructor:ic}),rc.prototype=Object.assign(Object.create(Ks.prototype),{constructor:rc,isDirectionalLight:!0,copy:function(t){return Ks.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),oc.prototype=Object.assign(Object.create(Ks.prototype),{constructor:oc,isAmbientLight:!0}),ac.prototype=Object.assign(Object.create(Ks.prototype),{constructor:ac,isRectAreaLight:!0,copy:function(t){return Ks.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){var e=Ks.prototype.toJSON.call(this,t);return e.object.width=this.width,e.object.height=this.height,e}}),Object.assign(sc.prototype,{load:function(t,e,n,i){var r=this,o=new xs(r.manager);o.setPath(r.path),o.load(t,function(t){e(r.parse(JSON.parse(t)))},n,i)},parse:function(t){var e=this.textures;function n(t){return void 0===e[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),e[t]}var i=new ts[t.type];if(void 0!==t.uuid&&(i.uuid=t.uuid),void 0!==t.name&&(i.name=t.name),void 0!==t.color&&i.color.setHex(t.color),void 0!==t.roughness&&(i.roughness=t.roughness),void 0!==t.metalness&&(i.metalness=t.metalness),void 0!==t.emissive&&i.emissive.setHex(t.emissive),void 0!==t.specular&&i.specular.setHex(t.specular),void 0!==t.shininess&&(i.shininess=t.shininess),void 0!==t.clearCoat&&(i.clearCoat=t.clearCoat),void 0!==t.clearCoatRoughness&&(i.clearCoatRoughness=t.clearCoatRoughness),void 0!==t.vertexColors&&(i.vertexColors=t.vertexColors),void 0!==t.fog&&(i.fog=t.fog),void 0!==t.flatShading&&(i.flatShading=t.flatShading),void 0!==t.blending&&(i.blending=t.blending),void 0!==t.combine&&(i.combine=t.combine),void 0!==t.side&&(i.side=t.side),void 0!==t.opacity&&(i.opacity=t.opacity),void 0!==t.transparent&&(i.transparent=t.transparent),void 0!==t.alphaTest&&(i.alphaTest=t.alphaTest),void 0!==t.depthTest&&(i.depthTest=t.depthTest),void 0!==t.depthWrite&&(i.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(i.colorWrite=t.colorWrite),void 0!==t.wireframe&&(i.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(i.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.wireframeLinecap&&(i.wireframeLinecap=t.wireframeLinecap),void 0!==t.wireframeLinejoin&&(i.wireframeLinejoin=t.wireframeLinejoin),void 0!==t.rotation&&(i.rotation=t.rotation),1!==t.linewidth&&(i.linewidth=t.linewidth),void 0!==t.dashSize&&(i.dashSize=t.dashSize),void 0!==t.gapSize&&(i.gapSize=t.gapSize),void 0!==t.scale&&(i.scale=t.scale),void 0!==t.polygonOffset&&(i.polygonOffset=t.polygonOffset),void 0!==t.polygonOffsetFactor&&(i.polygonOffsetFactor=t.polygonOffsetFactor),void 0!==t.polygonOffsetUnits&&(i.polygonOffsetUnits=t.polygonOffsetUnits),void 0!==t.skinning&&(i.skinning=t.skinning),void 0!==t.morphTargets&&(i.morphTargets=t.morphTargets),void 0!==t.dithering&&(i.dithering=t.dithering),void 0!==t.visible&&(i.visible=t.visible),void 0!==t.userData&&(i.userData=t.userData),void 0!==t.uniforms)for(var r in t.uniforms){var o=t.uniforms[r];switch(i.uniforms[r]={},o.type){case"t":i.uniforms[r].value=n(o.value);break;case"c":i.uniforms[r].value=(new On).setHex(o.value);break;case"v2":i.uniforms[r].value=(new Je).fromArray(o.value);break;case"v3":i.uniforms[r].value=(new en).fromArray(o.value);break;case"v4":i.uniforms[r].value=(new dn).fromArray(o.value);break;case"m3":i.uniforms[r].value=(new nn).fromArray(o.value);case"m4":i.uniforms[r].value=(new Qe).fromArray(o.value);break;default:i.uniforms[r].value=o.value}}if(void 0!==t.defines&&(i.defines=t.defines),void 0!==t.vertexShader&&(i.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(i.fragmentShader=t.fragmentShader),void 0!==t.extensions)for(var a in t.extensions)i.extensions[a]=t.extensions[a];if(void 0!==t.shading&&(i.flatShading=1===t.shading),void 0!==t.size&&(i.size=t.size),void 0!==t.sizeAttenuation&&(i.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(i.map=n(t.map)),void 0!==t.alphaMap&&(i.alphaMap=n(t.alphaMap),i.transparent=!0),void 0!==t.bumpMap&&(i.bumpMap=n(t.bumpMap)),void 0!==t.bumpScale&&(i.bumpScale=t.bumpScale),void 0!==t.normalMap&&(i.normalMap=n(t.normalMap)),void 0!==t.normalMapType&&(i.normalMapType=t.normalMapType),void 0!==t.normalScale){var s=t.normalScale;!1===Array.isArray(s)&&(s=[s,s]),i.normalScale=(new Je).fromArray(s)}return void 0!==t.displacementMap&&(i.displacementMap=n(t.displacementMap)),void 0!==t.displacementScale&&(i.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(i.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(i.roughnessMap=n(t.roughnessMap)),void 0!==t.metalnessMap&&(i.metalnessMap=n(t.metalnessMap)),void 0!==t.emissiveMap&&(i.emissiveMap=n(t.emissiveMap)),void 0!==t.emissiveIntensity&&(i.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(i.specularMap=n(t.specularMap)),void 0!==t.envMap&&(i.envMap=n(t.envMap)),void 0!==t.envMapIntensity&&(i.envMapIntensity=t.envMapIntensity),void 0!==t.reflectivity&&(i.reflectivity=t.reflectivity),void 0!==t.lightMap&&(i.lightMap=n(t.lightMap)),void 0!==t.lightMapIntensity&&(i.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(i.aoMap=n(t.aoMap)),void 0!==t.aoMapIntensity&&(i.aoMapIntensity=t.aoMapIntensity),void 0!==t.gradientMap&&(i.gradientMap=n(t.gradientMap)),i},setPath:function(t){return this.path=t,this},setTextures:function(t){return this.textures=t,this}});var cc={decodeText:function(t){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);for(var e="",n=0,i=t.length;n<i;n++)e+=String.fromCharCode(t[n]);return decodeURIComponent(escape(e))},extractUrlBase:function(t){var e=t.lastIndexOf("/");return-1===e?"./":t.substr(0,e+1)}};function lc(t){this.manager=void 0!==t?t:ys}Object.assign(lc.prototype,{load:function(t,e,n,i){var r=this,o=new xs(r.manager);o.setPath(r.path),o.load(t,function(t){e(r.parse(JSON.parse(t)))},n,i)},parse:function(t){var e=new si,n=t.data.index;if(void 0!==n){var i=new uc[n.type](n.array);e.setIndex(new Xn(i,1))}var r=t.data.attributes;for(var o in r){var a=r[o],s=new Xn(i=new uc[a.type](a.array),a.itemSize,a.normalized);void 0!==a.name&&(s.name=a.name),e.addAttribute(o,s)}var c=t.data.morphAttributes;if(c)for(var o in c){for(var l=c[o],u=[],h=0,d=l.length;h<d;h++){a=l[h],s=new Xn(i=new uc[a.type](a.array),a.itemSize,a.normalized);void 0!==a.name&&(s.name=a.name),u.push(s)}e.morphAttributes[o]=u}var f=t.data.groups||t.data.drawcalls||t.data.offsets;if(void 0!==f){h=0;for(var p=f.length;h!==p;++h){var m=f[h];e.addGroup(m.start,m.count,m.materialIndex)}}var v=t.data.boundingSphere;if(void 0!==v){var g=new en;void 0!==v.center&&g.fromArray(v.center),e.boundingSphere=new yn(g,v.radius)}return t.name&&(e.name=t.name),t.userData&&(e.userData=t.userData),e},setPath:function(t){return this.path=t,this}});var uc={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:"undefined"!=typeof Uint8ClampedArray?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};function hc(t){this.manager=void 0!==t?t:ys,this.resourcePath=""}Object.assign(hc.prototype,{crossOrigin:"anonymous",load:function(t,e,n,i){var r=this,o=void 0===this.path?cc.extractUrlBase(t):this.path;this.resourcePath=this.resourcePath||o;var a=new xs(r.manager);a.setPath(this.path),a.load(t,function(n){var o=null;try{o=JSON.parse(n)}catch(e){return void 0!==i&&i(e),void console.error("THREE:ObjectLoader: Can't parse "+t+".",e.message)}var a=o.metadata;void 0!==a&&void 0!==a.type&&"geometry"!==a.type.toLowerCase()?r.parse(o,e):console.error("THREE.ObjectLoader: Can't load "+t)},n,i)},setPath:function(t){return this.path=t,this},setResourcePath:function(t){return this.resourcePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this},parse:function(t,e){var n=this.parseShape(t.shapes),i=this.parseGeometries(t.geometries,n),r=this.parseImages(t.images,function(){void 0!==e&&e(s)}),o=this.parseTextures(t.textures,r),a=this.parseMaterials(t.materials,o),s=this.parseObject(t.object,i,a);return t.animations&&(s.animations=this.parseAnimations(t.animations)),void 0!==t.images&&0!==t.images.length||void 0!==e&&e(s),s},parseShape:function(t){var e={};if(void 0!==t)for(var n=0,i=t.length;n<i;n++){var r=(new Ys).fromJSON(t[n]);e[r.uuid]=r}return e},parseGeometries:function(t,e){var n={};if(void 0!==t)for(var i=new lc,r=0,o=t.length;r<o;r++){var a,s=t[r];switch(s.type){case"PlaneGeometry":case"PlaneBufferGeometry":a=new Ga[s.type](s.width,s.height,s.widthSegments,s.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":a=new Ga[s.type](s.width,s.height,s.depth,s.widthSegments,s.heightSegments,s.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":a=new Ga[s.type](s.radius,s.segments,s.thetaStart,s.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":a=new Ga[s.type](s.radiusTop,s.radiusBottom,s.height,s.radialSegments,s.heightSegments,s.openEnded,s.thetaStart,s.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":a=new Ga[s.type](s.radius,s.height,s.radialSegments,s.heightSegments,s.openEnded,s.thetaStart,s.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":a=new Ga[s.type](s.radius,s.widthSegments,s.heightSegments,s.phiStart,s.phiLength,s.thetaStart,s.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":a=new Ga[s.type](s.radius,s.detail);break;case"RingGeometry":case"RingBufferGeometry":a=new Ga[s.type](s.innerRadius,s.outerRadius,s.thetaSegments,s.phiSegments,s.thetaStart,s.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":a=new Ga[s.type](s.radius,s.tube,s.radialSegments,s.tubularSegments,s.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":a=new Ga[s.type](s.radius,s.tube,s.tubularSegments,s.radialSegments,s.p,s.q);break;case"TubeGeometry":case"TubeBufferGeometry":a=new Ga[s.type]((new Ws[s.path.type]).fromJSON(s.path),s.tubularSegments,s.radius,s.radialSegments,s.closed);break;case"LatheGeometry":case"LatheBufferGeometry":a=new Ga[s.type](s.points,s.segments,s.phiStart,s.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":a=new Ga[s.type](s.vertices,s.indices,s.radius,s.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":for(var c=[],l=0,u=s.shapes.length;l<u;l++){var h=e[s.shapes[l]];c.push(h)}a=new Ga[s.type](c,s.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(c=[],l=0,u=s.shapes.length;l<u;l++){h=e[s.shapes[l]];c.push(h)}var d=s.options.extrudePath;void 0!==d&&(s.options.extrudePath=(new Ws[d.type]).fromJSON(d)),a=new Ga[s.type](c,s.options);break;case"BufferGeometry":a=i.parse(s);break;case"Geometry":if("THREE"in window&&"LegacyJSONLoader"in THREE)a=(new THREE.LegacyJSONLoader).parse(s,this.resourcePath).geometry;else console.error('THREE.ObjectLoader: You have to import LegacyJSONLoader in order load geometry data of type "Geometry".');break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+s.type+'"');continue}a.uuid=s.uuid,void 0!==s.name&&(a.name=s.name),!0===a.isBufferGeometry&&void 0!==s.userData&&(a.userData=s.userData),n[s.uuid]=a}return n},parseMaterials:function(t,e){var n={},i={};if(void 0!==t){var r=new sc;r.setTextures(e);for(var o=0,a=t.length;o<a;o++){var s=t[o];if("MultiMaterial"===s.type){for(var c=[],l=0;l<s.materials.length;l++){var u=s.materials[l];void 0===n[u.uuid]&&(n[u.uuid]=r.parse(u)),c.push(n[u.uuid])}i[s.uuid]=c}else void 0===n[s.uuid]&&(n[s.uuid]=r.parse(s)),i[s.uuid]=n[s.uuid]}}return i},parseAnimations:function(t){for(var e=[],n=0;n<t.length;n++){var i=t[n],r=ps.parse(i);void 0!==i.uuid&&(r.uuid=i.uuid),e.push(r)}return e},parseImages:function(t,e){var n=this,i={};function r(t){return n.manager.itemStart(t),o.load(t,function(){n.manager.itemEnd(t)},void 0,function(){n.manager.itemError(t),n.manager.itemEnd(t)})}if(void 0!==t&&t.length>0){var o=new Ts(new gs(e));o.setCrossOrigin(this.crossOrigin);for(var a=0,s=t.length;a<s;a++){var c=t[a],l=c.url;if(Array.isArray(l)){i[c.uuid]=[];for(var u=0,h=l.length;u<h;u++){var d=l[u],f=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(d)?d:n.resourcePath+d;i[c.uuid].push(r(f))}}else{f=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(c.url)?c.url:n.resourcePath+c.url;i[c.uuid]=r(f)}}}return i},parseTextures:function(t,e){function n(t,e){return"number"==typeof t?t:(console.warn("THREE.ObjectLoader.parseTexture: Constant should be in numeric form.",t),e[t])}var i={};if(void 0!==t)for(var r=0,o=t.length;r<o;r++){var a,s=t[r];void 0===s.image&&console.warn('THREE.ObjectLoader: No "image" specified for',s.uuid),void 0===e[s.image]&&console.warn("THREE.ObjectLoader: Undefined image",s.image),(a=Array.isArray(e[s.image])?new Di(e[s.image]):new hn(e[s.image])).needsUpdate=!0,a.uuid=s.uuid,void 0!==s.name&&(a.name=s.name),void 0!==s.mapping&&(a.mapping=n(s.mapping,gc)),void 0!==s.offset&&a.offset.fromArray(s.offset),void 0!==s.repeat&&a.repeat.fromArray(s.repeat),void 0!==s.center&&a.center.fromArray(s.center),void 0!==s.rotation&&(a.rotation=s.rotation),void 0!==s.wrap&&(a.wrapS=n(s.wrap[0],yc),a.wrapT=n(s.wrap[1],yc)),void 0!==s.format&&(a.format=s.format),void 0!==s.type&&(a.type=s.type),void 0!==s.encoding&&(a.encoding=s.encoding),void 0!==s.minFilter&&(a.minFilter=n(s.minFilter,bc)),void 0!==s.magFilter&&(a.magFilter=n(s.magFilter,bc)),void 0!==s.anisotropy&&(a.anisotropy=s.anisotropy),void 0!==s.flipY&&(a.flipY=s.flipY),void 0!==s.premultiplyAlpha&&(a.premultiplyAlpha=s.premultiplyAlpha),void 0!==s.unpackAlignment&&(a.unpackAlignment=s.unpackAlignment),i[s.uuid]=a}return i},parseObject:function(t,e,n){var i;function r(t){return void 0===e[t]&&console.warn("THREE.ObjectLoader: Undefined geometry",t),e[t]}function o(t){if(void 0!==t){if(Array.isArray(t)){for(var e=[],i=0,r=t.length;i<r;i++){var o=t[i];void 0===n[o]&&console.warn("THREE.ObjectLoader: Undefined material",o),e.push(n[o])}return e}return void 0===n[t]&&console.warn("THREE.ObjectLoader: Undefined material",t),n[t]}}switch(t.type){case"Scene":i=new ho,void 0!==t.background&&Number.isInteger(t.background)&&(i.background=new On(t.background)),void 0!==t.fog&&("Fog"===t.fog.type?i.fog=new uo(t.fog.color,t.fog.near,t.fog.far):"FogExp2"===t.fog.type&&(i.fog=new lo(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":i=new Kr(t.fov,t.aspect,t.near,t.far),void 0!==t.focus&&(i.focus=t.focus),void 0!==t.zoom&&(i.zoom=t.zoom),void 0!==t.filmGauge&&(i.filmGauge=t.filmGauge),void 0!==t.filmOffset&&(i.filmOffset=t.filmOffset),void 0!==t.view&&(i.view=Object.assign({},t.view));break;case"OrthographicCamera":i=new nc(t.left,t.right,t.top,t.bottom,t.near,t.far),void 0!==t.zoom&&(i.zoom=t.zoom),void 0!==t.view&&(i.view=Object.assign({},t.view));break;case"AmbientLight":i=new oc(t.color,t.intensity);break;case"DirectionalLight":i=new rc(t.color,t.intensity);break;case"PointLight":i=new ec(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":i=new ac(t.color,t.intensity,t.width,t.height);break;case"SpotLight":i=new tc(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":i=new Zs(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":var a=r(t.geometry),s=o(t.material);i=a.bones&&a.bones.length>0?new yo(a,s):new Ai(a,s),void 0!==t.drawMode&&i.setDrawMode(t.drawMode);break;case"LOD":i=new go;break;case"Line":i=new wo(r(t.geometry),o(t.material),t.mode);break;case"LineLoop":i=new To(r(t.geometry),o(t.material));break;case"LineSegments":i=new So(r(t.geometry),o(t.material));break;case"PointCloud":case"Points":i=new Mo(r(t.geometry),o(t.material));break;case"Sprite":i=new vo(o(t.material));break;case"Group":i=new Xr;break;default:i=new Gn}if(i.uuid=t.uuid,void 0!==t.name&&(i.name=t.name),void 0!==t.matrix?(i.matrix.fromArray(t.matrix),void 0!==t.matrixAutoUpdate&&(i.matrixAutoUpdate=t.matrixAutoUpdate),i.matrixAutoUpdate&&i.matrix.decompose(i.position,i.quaternion,i.scale)):(void 0!==t.position&&i.position.fromArray(t.position),void 0!==t.rotation&&i.rotation.fromArray(t.rotation),void 0!==t.quaternion&&i.quaternion.fromArray(t.quaternion),void 0!==t.scale&&i.scale.fromArray(t.scale)),void 0!==t.castShadow&&(i.castShadow=t.castShadow),void 0!==t.receiveShadow&&(i.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(i.shadow.bias=t.shadow.bias),void 0!==t.shadow.radius&&(i.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&i.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(i.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(i.visible=t.visible),void 0!==t.frustumCulled&&(i.frustumCulled=t.frustumCulled),void 0!==t.renderOrder&&(i.renderOrder=t.renderOrder),void 0!==t.userData&&(i.userData=t.userData),void 0!==t.layers&&(i.layers.mask=t.layers),void 0!==t.children)for(var c=t.children,l=0;l<c.length;l++)i.add(this.parseObject(c[l],e,n));if("LOD"===t.type)for(var u=t.levels,h=0;h<u.length;h++){var d=u[h],f=i.getObjectByProperty("uuid",d.object);void 0!==f&&i.addLevel(f,d.distance)}return i}});var dc,fc,pc,mc,vc,gc={UVMapping:xt,CubeReflectionMapping:_t,CubeRefractionMapping:wt,EquirectangularReflectionMapping:St,EquirectangularRefractionMapping:Tt,SphericalReflectionMapping:Et,CubeUVReflectionMapping:Mt,CubeUVRefractionMapping:Ct},yc={RepeatWrapping:Lt,ClampToEdgeWrapping:Ot,MirroredRepeatWrapping:kt},bc={NearestFilter:Pt,NearestMipMapNearestFilter:At,NearestMipMapLinearFilter:It,LinearFilter:Dt,LinearMipMapNearestFilter:Rt,LinearMipMapLinearFilter:Bt};function xc(t){"undefined"==typeof createImageBitmap&&console.warn("THREE.ImageBitmapLoader: createImageBitmap() not supported."),"undefined"==typeof fetch&&console.warn("THREE.ImageBitmapLoader: fetch() not supported."),this.manager=void 0!==t?t:ys,this.options=void 0}function _c(){this.type="ShapePath",this.color=new On,this.subPaths=[],this.currentPath=null}function wc(t){this.type="Font",this.data=t}function Sc(t,e,n,i,r){var o=r.glyphs[t]||r.glyphs["?"];if(o){var a,s,c,l,u,h,d,f,p=new _c;if(o.o)for(var m=o._cachedOutline||(o._cachedOutline=o.o.split(" ")),v=0,g=m.length;v<g;){switch(m[v++]){case"m":a=m[v++]*e+n,s=m[v++]*e+i,p.moveTo(a,s);break;case"l":a=m[v++]*e+n,s=m[v++]*e+i,p.lineTo(a,s);break;case"q":c=m[v++]*e+n,l=m[v++]*e+i,u=m[v++]*e+n,h=m[v++]*e+i,p.quadraticCurveTo(u,h,c,l);break;case"b":c=m[v++]*e+n,l=m[v++]*e+i,u=m[v++]*e+n,h=m[v++]*e+i,d=m[v++]*e+n,f=m[v++]*e+i,p.bezierCurveTo(u,h,d,f,c,l)}}return{offsetX:o.ha*e,path:p}}}function Tc(t){this.manager=void 0!==t?t:ys}function Ec(){}xc.prototype={constructor:xc,setOptions:function(t){return this.options=t,this},load:function(t,e,n,i){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var r=this,o=vs.get(t);if(void 0!==o)return r.manager.itemStart(t),setTimeout(function(){e&&e(o),r.manager.itemEnd(t)},0),o;fetch(t).then(function(t){return t.blob()}).then(function(t){return createImageBitmap(t,r.options)}).then(function(n){vs.add(t,n),e&&e(n),r.manager.itemEnd(t)}).catch(function(e){i&&i(e),r.manager.itemError(t),r.manager.itemEnd(t)}),r.manager.itemStart(t)},setCrossOrigin:function(){return this},setPath:function(t){return this.path=t,this}},Object.assign(_c.prototype,{moveTo:function(t,e){this.currentPath=new Xs,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e)},lineTo:function(t,e){this.currentPath.lineTo(t,e)},quadraticCurveTo:function(t,e,n,i){this.currentPath.quadraticCurveTo(t,e,n,i)},bezierCurveTo:function(t,e,n,i,r,o){this.currentPath.bezierCurveTo(t,e,n,i,r,o)},splineThru:function(t){this.currentPath.splineThru(t)},toShapes:function(t,e){function n(t){for(var e=[],n=0,i=t.length;n<i;n++){var r=t[n],o=new Ys;o.curves=r.curves,e.push(o)}return e}function i(t,e){for(var n=e.length,i=!1,r=n-1,o=0;o<n;r=o++){var a=e[r],s=e[o],c=s.x-a.x,l=s.y-a.y;if(Math.abs(l)>Number.EPSILON){if(l<0&&(a=e[o],c=-c,s=e[r],l=-l),t.y<a.y||t.y>s.y)continue;if(t.y===a.y){if(t.x===a.x)return!0}else{var u=l*(t.x-a.x)-c*(t.y-a.y);if(0===u)return!0;if(u<0)continue;i=!i}}else{if(t.y!==a.y)continue;if(s.x<=t.x&&t.x<=a.x||a.x<=t.x&&t.x<=s.x)return!0}}return i}var r=ya.isClockWise,o=this.subPaths;if(0===o.length)return[];if(!0===e)return n(o);var a,s,c,l=[];if(1===o.length)return s=o[0],(c=new Ys).curves=s.curves,l.push(c),l;var u=!r(o[0].getPoints());u=t?!u:u;var h,d,f=[],p=[],m=[],v=0;p[v]=void 0,m[v]=[];for(var g=0,y=o.length;g<y;g++)a=r(h=(s=o[g]).getPoints()),(a=t?!a:a)?(!u&&p[v]&&v++,p[v]={s:new Ys,p:h},p[v].s.curves=s.curves,u&&v++,m[v]=[]):m[v].push({h:s,p:h[0]});if(!p[0])return n(o);if(p.length>1){for(var b=!1,x=[],_=0,w=p.length;_<w;_++)f[_]=[];for(_=0,w=p.length;_<w;_++)for(var S=m[_],T=0;T<S.length;T++){for(var E=S[T],M=!0,C=0;C<p.length;C++)i(E.p,p[C].p)&&(_!==C&&x.push({froms:_,tos:C,hole:T}),M?(M=!1,f[C].push(E)):b=!0);M&&f[_].push(E)}x.length>0&&(b||(m=f))}g=0;for(var L=p.length;g<L;g++){c=p[g].s,l.push(c);for(var O=0,k=(d=m[g]).length;O<k;O++)c.holes.push(d[O].h)}return l}}),Object.assign(wc.prototype,{isFont:!0,generateShapes:function(t,e){void 0===e&&(e=100);for(var n=[],i=function(t,e,n){for(var i=Array.from?Array.from(t):String(t).split(""),r=e/n.resolution,o=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*r,a=[],s=0,c=0,l=0;l<i.length;l++){var u=i[l];if("\n"===u)s=0,c-=o;else{var h=Sc(u,r,s,c,n);s+=h.offsetX,a.push(h.path)}}return a}(t,e,this.data),r=0,o=i.length;r<o;r++)Array.prototype.push.apply(n,i[r].toShapes());return n}}),Object.assign(Tc.prototype,{load:function(t,e,n,i){var r=this,o=new xs(this.manager);o.setPath(this.path),o.load(t,function(t){var n;try{n=JSON.parse(t)}catch(e){console.warn("THREE.FontLoader: typeface.js support is being deprecated. Use typeface.json instead."),n=JSON.parse(t.substring(65,t.length-2))}var i=r.parse(n);e&&e(i)},n,i)},parse:function(t){return new wc(t)},setPath:function(t){return this.path=t,this}}),Ec.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,n=0,i=e.length;n<i;n+=2){var r=e[n],o=e[n+1];if(r.test(t))return o}return null}},Object.assign(Ec.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(t,e,n){for(var i=[],r=0;r<t.length;++r)i[r]=this.createMaterial(t[r],e,n);return i},createMaterial:(dc={NoBlending:R,NormalBlending:B,AdditiveBlending:N,SubtractiveBlending:j,MultiplyBlending:z,CustomBlending:F},fc=new On,pc=new Ms,mc=new sc,function(t,e,n){var i={};function r(t,r,o,a,s){var c,l=e+t,u=Ec.Handlers.get(l);null!==u?c=u.load(l):(pc.setCrossOrigin(n),c=pc.load(l)),void 0!==r&&(c.repeat.fromArray(r),1!==r[0]&&(c.wrapS=Lt),1!==r[1]&&(c.wrapT=Lt)),void 0!==o&&c.offset.fromArray(o),void 0!==a&&("repeat"===a[0]&&(c.wrapS=Lt),"mirror"===a[0]&&(c.wrapS=kt),"repeat"===a[1]&&(c.wrapT=Lt),"mirror"===a[1]&&(c.wrapT=kt)),void 0!==s&&(c.anisotropy=s);var h=Ze.generateUUID();return i[h]=c,h}var o={uuid:Ze.generateUUID(),type:"MeshLambertMaterial"};for(var a in t){var s=t[a];switch(a){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":o.name=s;break;case"blending":o.blending=dc[s];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",a,"is no longer supported.");break;case"colorDiffuse":o.color=fc.fromArray(s).getHex();break;case"colorSpecular":o.specular=fc.fromArray(s).getHex();break;case"colorEmissive":o.emissive=fc.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=r(s,t.mapDiffuseRepeat,t.mapDiffuseOffset,t.mapDiffuseWrap,t.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":o.emissiveMap=r(s,t.mapEmissiveRepeat,t.mapEmissiveOffset,t.mapEmissiveWrap,t.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":o.lightMap=r(s,t.mapLightRepeat,t.mapLightOffset,t.mapLightWrap,t.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":o.aoMap=r(s,t.mapAORepeat,t.mapAOOffset,t.mapAOWrap,t.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":o.bumpMap=r(s,t.mapBumpRepeat,t.mapBumpOffset,t.mapBumpWrap,t.mapBumpAnisotropy);break;case"mapBumpScale":o.bumpScale=s;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":o.normalMap=r(s,t.mapNormalRepeat,t.mapNormalOffset,t.mapNormalWrap,t.mapNormalAnisotropy);break;case"mapNormalFactor":o.normalScale=s;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":o.specularMap=r(s,t.mapSpecularRepeat,t.mapSpecularOffset,t.mapSpecularWrap,t.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":o.metalnessMap=r(s,t.mapMetalnessRepeat,t.mapMetalnessOffset,t.mapMetalnessWrap,t.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":o.roughnessMap=r(s,t.mapRoughnessRepeat,t.mapRoughnessOffset,t.mapRoughnessWrap,t.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;case"mapAlpha":o.alphaMap=r(s,t.mapAlphaRepeat,t.mapAlphaOffset,t.mapAlphaWrap,t.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":o.side=L;break;case"doubleSided":o.side=O;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[a]=s;break;case"vertexColors":!0===s&&(o.vertexColors=D),"face"===s&&(o.vertexColors=I);break;default:console.error("THREE.Loader.createMaterial: Unsupported",a,s)}}return"MeshBasicMaterial"===o.type&&delete o.emissive,"MeshPhongMaterial"!==o.type&&delete o.specular,o.opacity<1&&(o.transparent=!0),mc.setTextures(i),mc.parse(o)})});var Mc,Cc,Lc,Oc,kc,Pc,Ac,Ic,Dc,Rc,Bc={getContext:function(){return void 0===vc&&(vc=new(window.AudioContext||window.webkitAudioContext)),vc},setContext:function(t){vc=t}};function Nc(t){this.manager=void 0!==t?t:ys}function jc(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Kr,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Kr,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function zc(t,e,n,i){Gn.call(this),this.type="CubeCamera";var r=new Kr(90,1,t,e);r.up.set(0,-1,0),r.lookAt(new en(1,0,0)),this.add(r);var o=new Kr(90,1,t,e);o.up.set(0,-1,0),o.lookAt(new en(-1,0,0)),this.add(o);var a=new Kr(90,1,t,e);a.up.set(0,0,1),a.lookAt(new en(0,1,0)),this.add(a);var s=new Kr(90,1,t,e);s.up.set(0,0,-1),s.lookAt(new en(0,-1,0)),this.add(s);var c=new Kr(90,1,t,e);c.up.set(0,-1,0),c.lookAt(new en(0,0,1)),this.add(c);var l=new Kr(90,1,t,e);l.up.set(0,-1,0),l.lookAt(new en(0,0,-1)),this.add(l),i=i||{format:Kt,magFilter:Dt,minFilter:Dt},this.renderTarget=new mn(n,n,i),this.renderTarget.texture.name="CubeCamera",this.update=function(t,e){null===this.parent&&this.updateMatrixWorld();var n=t.getRenderTarget(),i=this.renderTarget,u=i.texture.generateMipmaps;i.texture.generateMipmaps=!1,t.setRenderTarget(i,0),t.render(e,r),t.setRenderTarget(i,1),t.render(e,o),t.setRenderTarget(i,2),t.render(e,a),t.setRenderTarget(i,3),t.render(e,s),t.setRenderTarget(i,4),t.render(e,c),i.texture.generateMipmaps=u,t.setRenderTarget(i,5),t.render(e,l),t.setRenderTarget(n)},this.clear=function(t,e,n,i){for(var r=t.getRenderTarget(),o=this.renderTarget,a=0;a<6;a++)t.setRenderTarget(o,a),t.clear(e,n,i);t.setRenderTarget(r)}}function Fc(t){this.autoStart=void 0===t||t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}function Vc(){Gn.call(this),this.type="AudioListener",this.context=Bc.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null,this.timeDelta=0}function Uc(t){Gn.call(this),this.type="Audio",this.listener=t,this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.detune=0,this.loop=!1,this.startTime=0,this.offset=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function Gc(t){Uc.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function $c(t,e){this.analyser=t.context.createAnalyser(),this.analyser.fftSize=void 0!==e?e:2048,this.data=new Uint8Array(this.analyser.frequencyBinCount),t.getOutput().connect(this.analyser)}function Hc(t,e,n){this.binding=t,this.valueSize=n;var i,r=Float64Array;switch(e){case"quaternion":i=this._slerp;break;case"string":case"bool":r=Array,i=this._select;break;default:i=this._lerp}this.buffer=new r(4*n),this._mixBufferRegion=i,this.cumulativeWeight=0,this.useCount=0,this.referenceCount=0}Object.assign(Nc.prototype,{load:function(t,e,n,i){var r=new xs(this.manager);r.setResponseType("arraybuffer"),r.setPath(this.path),r.load(t,function(t){var n=t.slice(0);Bc.getContext().decodeAudioData(n,function(t){e(t)})},n,i)},setPath:function(t){return this.path=t,this}}),Object.assign(jc.prototype,{update:(Dc=new Qe,Rc=new Qe,function(t){if(Mc!==this||Cc!==t.focus||Lc!==t.fov||Oc!==t.aspect*this.aspect||kc!==t.near||Pc!==t.far||Ac!==t.zoom||Ic!==this.eyeSep){Mc=this,Cc=t.focus,Lc=t.fov,Oc=t.aspect*this.aspect,kc=t.near,Pc=t.far,Ac=t.zoom;var e,n,i=t.projectionMatrix.clone(),r=(Ic=this.eyeSep/2)*kc/Cc,o=kc*Math.tan(Ze.DEG2RAD*Lc*.5)/Ac;Rc.elements[12]=-Ic,Dc.elements[12]=Ic,e=-o*Oc+r,n=o*Oc+r,i.elements[0]=2*kc/(n-e),i.elements[8]=(n+e)/(n-e),this.cameraL.projectionMatrix.copy(i),e=-o*Oc-r,n=o*Oc-r,i.elements[0]=2*kc/(n-e),i.elements[8]=(n+e)/(n-e),this.cameraR.projectionMatrix.copy(i)}this.cameraL.matrixWorld.copy(t.matrixWorld).multiply(Rc),this.cameraR.matrixWorld.copy(t.matrixWorld).multiply(Dc)})}),zc.prototype=Object.create(Gn.prototype),zc.prototype.constructor=zc,Object.assign(Fc.prototype,{start:function(){this.startTime=("undefined"==typeof performance?Date:performance).now(),this.oldTime=this.startTime,this.elapsedTime=0,this.running=!0},stop:function(){this.getElapsedTime(),this.running=!1,this.autoStart=!1},getElapsedTime:function(){return this.getDelta(),this.elapsedTime},getDelta:function(){var t=0;if(this.autoStart&&!this.running)return this.start(),0;if(this.running){var e=("undefined"==typeof performance?Date:performance).now();t=(e-this.oldTime)/1e3,this.oldTime=e,this.elapsedTime+=t}return t}}),Vc.prototype=Object.assign(Object.create(Gn.prototype),{constructor:Vc,getInput:function(){return this.gain},removeFilter:function(){return null!==this.filter&&(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination),this.gain.connect(this.context.destination),this.filter=null),this},getFilter:function(){return this.filter},setFilter:function(t){return null!==this.filter?(this.gain.disconnect(this.filter),this.filter.disconnect(this.context.destination)):this.gain.disconnect(this.context.destination),this.filter=t,this.gain.connect(this.filter),this.filter.connect(this.context.destination),this},getMasterVolume:function(){return this.gain.gain.value},setMasterVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this},updateMatrixWorld:function(){var t=new en,e=new tn,n=new en,i=new en,r=new Fc;return function(o){Gn.prototype.updateMatrixWorld.call(this,o);var a=this.context.listener,s=this.up;if(this.timeDelta=r.getDelta(),this.matrixWorld.decompose(t,e,n),i.set(0,0,-1).applyQuaternion(e),a.positionX){var c=this.context.currentTime+this.timeDelta;a.positionX.linearRampToValueAtTime(t.x,c),a.positionY.linearRampToValueAtTime(t.y,c),a.positionZ.linearRampToValueAtTime(t.z,c),a.forwardX.linearRampToValueAtTime(i.x,c),a.forwardY.linearRampToValueAtTime(i.y,c),a.forwardZ.linearRampToValueAtTime(i.z,c),a.upX.linearRampToValueAtTime(s.x,c),a.upY.linearRampToValueAtTime(s.y,c),a.upZ.linearRampToValueAtTime(s.z,c)}else a.setPosition(t.x,t.y,t.z),a.setOrientation(i.x,i.y,i.z,s.x,s.y,s.z)}}()}),Uc.prototype=Object.assign(Object.create(Gn.prototype),{constructor:Uc,getOutput:function(){return this.gain},setNodeSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="audioNode",this.source=t,this.connect(),this},setMediaElementSource:function(t){return this.hasPlaybackControl=!1,this.sourceType="mediaNode",this.source=this.context.createMediaElementSource(t),this.connect(),this},setBuffer:function(t){return this.buffer=t,this.sourceType="buffer",this.autoplay&&this.play(),this},play:function(){if(!0!==this.isPlaying){if(!1!==this.hasPlaybackControl){var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.onended=this.onEnded.bind(this),this.startTime=this.context.currentTime,t.start(this.startTime,this.offset),this.isPlaying=!0,this.source=t,this.setDetune(this.detune),this.setPlaybackRate(this.playbackRate),this.connect()}console.warn("THREE.Audio: this Audio has no playback control.")}else console.warn("THREE.Audio: Audio is already playing.")},pause:function(){if(!1!==this.hasPlaybackControl)return!0===this.isPlaying&&(this.source.stop(),this.source.onended=null,this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this;console.warn("THREE.Audio: this Audio has no playback control.")},stop:function(){if(!1!==this.hasPlaybackControl)return this.source.stop(),this.source.onended=null,this.offset=0,this.isPlaying=!1,this;console.warn("THREE.Audio: this Audio has no playback control.")},connect:function(){if(this.filters.length>0){this.source.connect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].connect(this.filters[t]);this.filters[this.filters.length-1].connect(this.getOutput())}else this.source.connect(this.getOutput());return this},disconnect:function(){if(this.filters.length>0){this.source.disconnect(this.filters[0]);for(var t=1,e=this.filters.length;t<e;t++)this.filters[t-1].disconnect(this.filters[t]);this.filters[this.filters.length-1].disconnect(this.getOutput())}else this.source.disconnect(this.getOutput());return this},getFilters:function(){return this.filters},setFilters:function(t){return t||(t=[]),!0===this.isPlaying?(this.disconnect(),this.filters=t,this.connect()):this.filters=t,this},setDetune:function(t){if(this.detune=t,void 0!==this.source.detune)return!0===this.isPlaying&&this.source.detune.setTargetAtTime(this.detune,this.context.currentTime,.01),this},getDetune:function(){return this.detune},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){if(!1!==this.hasPlaybackControl)return this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setTargetAtTime(this.playbackRate,this.context.currentTime,.01),this;console.warn("THREE.Audio: this Audio has no playback control.")},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(t){if(!1!==this.hasPlaybackControl)return this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this;console.warn("THREE.Audio: this Audio has no playback control.")},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}),Gc.prototype=Object.assign(Object.create(Uc.prototype),{constructor:Gc,getOutput:function(){return this.panner},getRefDistance:function(){return this.panner.refDistance},setRefDistance:function(t){return this.panner.refDistance=t,this},getRolloffFactor:function(){return this.panner.rolloffFactor},setRolloffFactor:function(t){return this.panner.rolloffFactor=t,this},getDistanceModel:function(){return this.panner.distanceModel},setDistanceModel:function(t){return this.panner.distanceModel=t,this},getMaxDistance:function(){return this.panner.maxDistance},setMaxDistance:function(t){return this.panner.maxDistance=t,this},setDirectionalCone:function(t,e,n){return this.panner.coneInnerAngle=t,this.panner.coneOuterAngle=e,this.panner.coneOuterGain=n,this},updateMatrixWorld:function(){var t=new en,e=new tn,n=new en,i=new en;return function(r){if(Gn.prototype.updateMatrixWorld.call(this,r),!0!==this.hasPlaybackControl||!1!==this.isPlaying){this.matrixWorld.decompose(t,e,n),i.set(0,0,1).applyQuaternion(e);var o=this.panner;if(o.positionX){var a=this.context.currentTime+this.listener.timeDelta;o.positionX.linearRampToValueAtTime(t.x,a),o.positionY.linearRampToValueAtTime(t.y,a),o.positionZ.linearRampToValueAtTime(t.z,a),o.orientationX.linearRampToValueAtTime(i.x,a),o.orientationY.linearRampToValueAtTime(i.y,a),o.orientationZ.linearRampToValueAtTime(i.z,a)}else o.setPosition(t.x,t.y,t.z),o.setOrientation(i.x,i.y,i.z)}}}()}),Object.assign($c.prototype,{getFrequencyData:function(){return this.analyser.getByteFrequencyData(this.data),this.data},getAverageFrequency:function(){for(var t=0,e=this.getFrequencyData(),n=0;n<e.length;n++)t+=e[n];return t/e.length}}),Object.assign(Hc.prototype,{accumulate:function(t,e){var n=this.buffer,i=this.valueSize,r=t*i+i,o=this.cumulativeWeight;if(0===o){for(var a=0;a!==i;++a)n[r+a]=n[a];o=e}else{var s=e/(o+=e);this._mixBufferRegion(n,r,0,s,i)}this.cumulativeWeight=o},apply:function(t){var e=this.valueSize,n=this.buffer,i=t*e+e,r=this.cumulativeWeight,o=this.binding;if(this.cumulativeWeight=0,r<1){var a=3*e;this._mixBufferRegion(n,i,a,1-r,e)}for(var s=e,c=e+e;s!==c;++s)if(n[s]!==n[s+e]){o.setValue(n,i);break}},saveOriginalState:function(){var t=this.binding,e=this.buffer,n=this.valueSize,i=3*n;t.getValue(e,i);for(var r=n,o=i;r!==o;++r)e[r]=e[i+r%n];this.cumulativeWeight=0},restoreOriginalState:function(){var t=3*this.valueSize;this.binding.setValue(this.buffer,t)},_select:function(t,e,n,i,r){if(i>=.5)for(var o=0;o!==r;++o)t[e+o]=t[n+o]},_slerp:function(t,e,n,i){tn.slerpFlat(t,e,t,e,t,n,i)},_lerp:function(t,e,n,i,r){for(var o=1-i,a=0;a!==r;++a){var s=e+a;t[s]=t[s]*o+t[n+a]*i}}});var Wc,qc,Xc,Yc,Kc,Zc,Jc,Qc,tl,el,nl,il,rl,ol,al;function sl(t,e,n){var i=n||cl.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,i)}function cl(t,e,n){this.path=e,this.parsedPath=n||cl.parseTrackName(e),this.node=cl.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function ll(){this.uuid=Ze.generateUUID(),this._objects=Array.prototype.slice.call(arguments),this.nCachedObjects_=0;var t={};this._indicesByUUID=t;for(var e=0,n=arguments.length;e!==n;++e)t[arguments[e].uuid]=e;this._paths=[],this._parsedPaths=[],this._bindings=[],this._bindingsIndicesByPath={};var i=this;this.stats={objects:{get total(){return i._objects.length},get inUse(){return this.total-i.nCachedObjects_}},get bindingsPerObject(){return i._bindings.length}}}function ul(t,e,n){this._mixer=t,this._clip=e,this._localRoot=n||null;for(var i=e.tracks,r=i.length,o=new Array(r),a={endingStart:Ie,endingEnd:Ie},s=0;s!==r;++s){var c=i[s].createInterpolant(null);o[s]=c,c.settings=a}this._interpolantSettings=a,this._interpolants=o,this._propertyBindings=new Array(r),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=Le,this._loopCount=-1,this._startTime=null,this.time=0,this.timeScale=1,this._effectiveTimeScale=1,this.weight=1,this._effectiveWeight=1,this.repetitions=1/0,this.paused=!1,this.enabled=!0,this.clampWhenFinished=!1,this.zeroSlopeAtStart=!0,this.zeroSlopeAtEnd=!0}function hl(t){this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function dl(t){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}function fl(){si.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function pl(t,e,n){fo.call(this,t,e),this.meshPerAttribute=n||1}function ml(t,e,n,i){"number"==typeof n&&(i=n,n=!1,console.error("THREE.InstancedBufferAttribute: The constructor now expects normalized as the third argument.")),Xn.call(this,t,e,n),this.meshPerAttribute=i||1}function vl(t,e,n,i){this.ray=new Oi(t,e),this.near=n||0,this.far=i||1/0,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 gl(t,e){return t.distance-e.distance}function yl(t,e,n,i){if(!1!==t.visible&&(t.raycast(e,n),!0===i))for(var r=t.children,o=0,a=r.length;o<a;o++)yl(r[o],e,n,!0)}function bl(t,e,n){return this.radius=void 0!==t?t:1,this.phi=void 0!==e?e:0,this.theta=void 0!==n?n:0,this}function xl(t,e,n){return this.radius=void 0!==t?t:1,this.theta=void 0!==e?e:0,this.y=void 0!==n?n:0,this}function _l(t,e){this.min=void 0!==t?t:new Je(1/0,1/0),this.max=void 0!==e?e:new Je(-1/0,-1/0)}function wl(t,e){this.start=void 0!==t?t:new en,this.end=void 0!==e?e:new en}function Sl(t){Gn.call(this),this.material=t,this.render=function(){}}function Tl(t,e,n,i){this.object=t,this.size=void 0!==e?e:1;var r=void 0!==n?n:16711680,o=void 0!==i?i:1,a=0,s=this.object.geometry;s&&s.isGeometry?a=3*s.faces.length:s&&s.isBufferGeometry&&(a=s.attributes.normal.count);var c=new si,l=new ni(2*a*3,3);c.addAttribute("position",l),So.call(this,c,new _o({color:r,linewidth:o})),this.matrixAutoUpdate=!1,this.update()}function El(t,e){Gn.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e;for(var n=new si,i=[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],r=0,o=1;r<32;r++,o++){var a=r/32*Math.PI*2,s=o/32*Math.PI*2;i.push(Math.cos(a),Math.sin(a),1,Math.cos(s),Math.sin(s),1)}n.addAttribute("position",new ni(i,3));var c=new _o({fog:!1});this.cone=new So(n,c),this.add(this.cone),this.update()}function Ml(t){for(var e=function t(e){var n=[];e&&e.isBone&&n.push(e);for(var i=0;i<e.children.length;i++)n.push.apply(n,t(e.children[i]));return n}(t),n=new si,i=[],r=[],o=new On(0,0,1),a=new On(0,1,0),s=0;s<e.length;s++){var c=e[s];c.parent&&c.parent.isBone&&(i.push(0,0,0),i.push(0,0,0),r.push(o.r,o.g,o.b),r.push(a.r,a.g,a.b))}n.addAttribute("position",new ni(i,3)),n.addAttribute("color",new ni(r,3));var l=new _o({vertexColors:D,depthTest:!1,depthWrite:!1,transparent:!0});So.call(this,n,l),this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}function Cl(t,e,n){this.light=t,this.light.updateMatrixWorld(),this.color=n;var i=new La(e,4,2),r=new Pi({wireframe:!0,fog:!1});Ai.call(this,i,r),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}function Ll(t,e){this.type="RectAreaLightHelper",this.light=t,this.color=e;var n=new si;n.addAttribute("position",new ni([1,1,0,-1,1,0,-1,-1,0,1,-1,0,1,1,0],3)),n.computeBoundingSphere();var i=new _o({fog:!1});wo.call(this,n,i);var r=new si;r.addAttribute("position",new ni([1,1,0,-1,1,0,-1,-1,0,1,1,0,-1,-1,0,1,-1,0],3)),r.computeBoundingSphere(),this.add(new Ai(r,new Pi({side:L,fog:!1}))),this.update()}function Ol(t,e,n){Gn.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n;var i=new zo(e);i.rotateY(.5*Math.PI),this.material=new Pi({wireframe:!0,fog:!1}),void 0===this.color&&(this.material.vertexColors=D);var r=i.getAttribute("position"),o=new Float32Array(3*r.count);i.addAttribute("color",new Xn(o,3)),this.add(new Ai(i,this.material)),this.update()}function kl(t,e,n,i){t=t||10,e=e||10,n=new On(void 0!==n?n:4473924),i=new On(void 0!==i?i:8947848);for(var r=e/2,o=t/e,a=t/2,s=[],c=[],l=0,u=0,h=-a;l<=e;l++,h+=o){s.push(-a,0,h,a,0,h),s.push(h,0,-a,h,0,a);var d=l===r?n:i;d.toArray(c,u),u+=3,d.toArray(c,u),u+=3,d.toArray(c,u),u+=3,d.toArray(c,u),u+=3}var f=new si;f.addAttribute("position",new ni(s,3)),f.addAttribute("color",new ni(c,3));var p=new _o({vertexColors:D});So.call(this,f,p)}function Pl(t,e,n,i,r,o){t=t||10,e=e||16,n=n||8,i=i||64,r=new On(void 0!==r?r:4473924),o=new On(void 0!==o?o:8947848);var a,s,c,l,u,h,d,f=[],p=[];for(l=0;l<=e;l++)c=l/e*(2*Math.PI),a=Math.sin(c)*t,s=Math.cos(c)*t,f.push(0,0,0),f.push(a,0,s),d=1&l?r:o,p.push(d.r,d.g,d.b),p.push(d.r,d.g,d.b);for(l=0;l<=n;l++)for(d=1&l?r:o,h=t-t/n*l,u=0;u<i;u++)c=u/i*(2*Math.PI),a=Math.sin(c)*h,s=Math.cos(c)*h,f.push(a,0,s),p.push(d.r,d.g,d.b),c=(u+1)/i*(2*Math.PI),a=Math.sin(c)*h,s=Math.cos(c)*h,f.push(a,0,s),p.push(d.r,d.g,d.b);var m=new si;m.addAttribute("position",new ni(f,3)),m.addAttribute("color",new ni(p,3));var v=new _o({vertexColors:D});So.call(this,m,v)}function Al(t,e,n,i){this.audio=t,this.range=e||1,this.divisionsInnerAngle=n||16,this.divisionsOuterAngle=i||2;var r=new si,o=this.divisionsInnerAngle+2*this.divisionsOuterAngle,a=new Float32Array(3*(3*o+3));r.addAttribute("position",new Xn(a,3));var s=new _o({color:65280}),c=new _o({color:16776960});wo.call(this,r,[c,s]),this.update()}function Il(t,e,n,i){this.object=t,this.size=void 0!==e?e:1;var r=void 0!==n?n:16776960,o=void 0!==i?i:1,a=0,s=this.object.geometry;s&&s.isGeometry?a=s.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead.");var c=new si,l=new ni(2*a*3,3);c.addAttribute("position",l),So.call(this,c,new _o({color:r,linewidth:o})),this.matrixAutoUpdate=!1,this.update()}function Dl(t,e,n){Gn.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,void 0===e&&(e=1);var i=new si;i.addAttribute("position",new ni([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3));var r=new _o({fog:!1});this.lightPlane=new wo(i,r),this.add(this.lightPlane),(i=new si).addAttribute("position",new ni([0,0,0,0,0,1],3)),this.targetLine=new wo(i,r),this.add(this.targetLine),this.update()}function Rl(t){var e=new si,n=new _o({color:16777215,vertexColors:I}),i=[],r=[],o={},a=new On(16755200),s=new On(16711680),c=new On(43775),l=new On(16777215),u=new On(3355443);function h(t,e,n){d(t,n),d(e,n)}function d(t,e){i.push(0,0,0),r.push(e.r,e.g,e.b),void 0===o[t]&&(o[t]=[]),o[t].push(i.length/3-1)}h("n1","n2",a),h("n2","n4",a),h("n4","n3",a),h("n3","n1",a),h("f1","f2",a),h("f2","f4",a),h("f4","f3",a),h("f3","f1",a),h("n1","f1",a),h("n2","f2",a),h("n3","f3",a),h("n4","f4",a),h("p","n1",s),h("p","n2",s),h("p","n3",s),h("p","n4",s),h("u1","u2",c),h("u2","u3",c),h("u3","u1",c),h("c","t",l),h("p","c",u),h("cn1","cn2",u),h("cn3","cn4",u),h("cf1","cf2",u),h("cf3","cf4",u),e.addAttribute("position",new ni(i,3)),e.addAttribute("color",new ni(r,3)),So.call(this,e,n),this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=o,this.update()}function Bl(t,e){this.object=t,void 0===e&&(e=16776960);var 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]),i=new Float32Array(24),r=new si;r.setIndex(new Xn(n,1)),r.addAttribute("position",new Xn(i,3)),So.call(this,r,new _o({color:e})),this.matrixAutoUpdate=!1,this.update()}function Nl(t,e){this.type="Box3Helper",this.box=t;var n=void 0!==e?e:16776960,i=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]),r=new si;r.setIndex(new Xn(i,1)),r.addAttribute("position",new ni([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)),So.call(this,r,new _o({color:n})),this.geometry.computeBoundingSphere()}function jl(t,e,n){this.type="PlaneHelper",this.plane=t,this.size=void 0===e?1:e;var i=void 0!==n?n:16776960,r=new si;r.addAttribute("position",new ni([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)),r.computeBoundingSphere(),wo.call(this,r,new _o({color:i}));var o=new si;o.addAttribute("position",new ni([1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],3)),o.computeBoundingSphere(),this.add(new Ai(o,new Pi({color:i,opacity:.2,transparent:!0,depthWrite:!1})))}function zl(t,e,n,i,r,o){Gn.call(this),void 0===t&&(t=new en(0,0,1)),void 0===e&&(e=new en(0,0,0)),void 0===n&&(n=1),void 0===i&&(i=16776960),void 0===r&&(r=.2*n),void 0===o&&(o=.2*r),void 0===il&&((il=new si).addAttribute("position",new ni([0,0,0,0,1,0],3)),(rl=new ja(0,.5,1,5,1)).translate(0,-.5,0)),this.position.copy(e),this.line=new wo(il,new _o({color:i})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new Ai(rl,new Pi({color:i})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(n,r,o)}function Fl(t){var e=[0,0,0,t=t||1,0,0,0,0,0,0,t,0,0,0,0,0,0,t],n=new si;n.addAttribute("position",new ni(e,3)),n.addAttribute("color",new ni([1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],3));var i=new _o({vertexColors:D});So.call(this,n,i)}function Vl(t,e,n,i,r,o,a){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new Rn(t,e,n,r,o,a)}Object.assign(sl.prototype,{getValue:function(t,e){this.bind();var n=this._targetGroup.nCachedObjects_,i=this._bindings[n];void 0!==i&&i.getValue(t,e)},setValue:function(t,e){for(var n=this._bindings,i=this._targetGroup.nCachedObjects_,r=n.length;i!==r;++i)n[i].setValue(t,e)},bind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].bind()},unbind:function(){for(var t=this._bindings,e=this._targetGroup.nCachedObjects_,n=t.length;e!==n;++e)t[e].unbind()}}),Object.assign(cl,{Composite:sl,create:function(t,e,n){return t&&t.isAnimationObjectGroup?new cl.Composite(t,e,n):new cl(t,e,n)},sanitizeNodeName:(tl=new RegExp("[\\[\\]\\.:\\/]","g"),function(t){return t.replace(/\s/g,"_").replace(tl,"")}),parseTrackName:(Wc="[^\\[\\]\\.:\\/]",qc="[^"+"\\[\\]\\.:\\/".replace("\\.","")+"]",Xc=/((?:WC+[\/:])*)/.source.replace("WC",Wc),Yc=/(WCOD+)?/.source.replace("WCOD",qc),Kc=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",Wc),Zc=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",Wc),Jc=new RegExp("^"+Xc+Yc+Kc+Zc+"$"),Qc=["material","materials","bones"],function(t){var e=Jc.exec(t);if(!e)throw new Error("PropertyBinding: Cannot parse trackName: "+t);var n={nodeName:e[2],objectName:e[3],objectIndex:e[4],propertyName:e[5],propertyIndex:e[6]},i=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==i&&-1!==i){var r=n.nodeName.substring(i+1);-1!==Qc.indexOf(r)&&(n.nodeName=n.nodeName.substring(0,i),n.objectName=r)}if(null===n.propertyName||0===n.propertyName.length)throw new Error("PropertyBinding: can not parse propertyName from trackName: "+t);return n}),findNode:function(t,e){if(!e||""===e||"root"===e||"."===e||-1===e||e===t.name||e===t.uuid)return t;if(t.skeleton){var n=t.skeleton.getBoneByName(e);if(void 0!==n)return n}if(t.children){var i=function(t){for(var n=0;n<t.length;n++){var r=t[n];if(r.name===e||r.uuid===e)return r;var o=i(r.children);if(o)return o}return null},r=i(t.children);if(r)return r}return null}}),Object.assign(cl.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(t,e){t[e]=this.node[this.propertyName]},function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)t[e++]=n[i]},function(t,e){t[e]=this.resolvedProperty[this.propertyIndex]},function(t,e){this.resolvedProperty.toArray(t,e)}],SetterByBindingTypeAndVersioning:[[function(t,e){this.targetObject[this.propertyName]=t[e]},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.targetObject[this.propertyName]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=t[e++]},function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var n=this.resolvedProperty,i=0,r=n.length;i!==r;++i)n[i]=t[e++];this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty[this.propertyIndex]=t[e]},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty[this.propertyIndex]=t[e],this.targetObject.matrixWorldNeedsUpdate=!0}],[function(t,e){this.resolvedProperty.fromArray(t,e)},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.needsUpdate=!0},function(t,e){this.resolvedProperty.fromArray(t,e),this.targetObject.matrixWorldNeedsUpdate=!0}]],getValue:function(t,e){this.bind(),this.getValue(t,e)},setValue:function(t,e){this.bind(),this.setValue(t,e)},bind:function(){var t=this.node,e=this.parsedPath,n=e.objectName,i=e.propertyName,r=e.propertyIndex;if(t||(t=cl.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,t){if(n){var o=e.objectIndex;switch(n){case"materials":if(!t.material)return void console.error("THREE.PropertyBinding: Can not bind to material as node does not have a material.",this);if(!t.material.materials)return void console.error("THREE.PropertyBinding: Can not bind to material.materials as node.material does not have a materials array.",this);t=t.material.materials;break;case"bones":if(!t.skeleton)return void console.error("THREE.PropertyBinding: Can not bind to bones as node does not have a skeleton.",this);t=t.skeleton.bones;for(var a=0;a<t.length;a++)if(t[a].name===o){o=a;break}break;default:if(void 0===t[n])return void console.error("THREE.PropertyBinding: Can not bind to objectName of node undefined.",this);t=t[n]}if(void 0!==o){if(void 0===t[o])return void console.error("THREE.PropertyBinding: Trying to bind to objectIndex of objectName, but is undefined.",this,t);t=t[o]}}var s=t[i];if(void 0!==s){var c=this.Versioning.None;this.targetObject=t,void 0!==t.needsUpdate?c=this.Versioning.NeedsUpdate:void 0!==t.matrixWorldNeedsUpdate&&(c=this.Versioning.MatrixWorldNeedsUpdate);var l=this.BindingType.Direct;if(void 0!==r){if("morphTargetInfluences"===i){if(!t.geometry)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.",this);if(t.geometry.isBufferGeometry){if(!t.geometry.morphAttributes)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphAttributes.",this);for(a=0;a<this.node.geometry.morphAttributes.position.length;a++)if(t.geometry.morphAttributes.position[a].name===r){r=a;break}}else{if(!t.geometry.morphTargets)return void console.error("THREE.PropertyBinding: Can not bind to morphTargetInfluences because node does not have a geometry.morphTargets.",this);for(a=0;a<this.node.geometry.morphTargets.length;a++)if(t.geometry.morphTargets[a].name===r){r=a;break}}}l=this.BindingType.ArrayElement,this.resolvedProperty=s,this.propertyIndex=r}else void 0!==s.fromArray&&void 0!==s.toArray?(l=this.BindingType.HasFromToArray,this.resolvedProperty=s):Array.isArray(s)?(l=this.BindingType.EntireArray,this.resolvedProperty=s):this.propertyName=i;this.getValue=this.GetterByBindingType[l],this.setValue=this.SetterByBindingTypeAndVersioning[l][c]}else{var u=e.nodeName;console.error("THREE.PropertyBinding: Trying to update property for track: "+u+"."+i+" but it wasn't found.",t)}}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}}),
//!\ DECLARE ALIAS AFTER assign prototype !
Object.assign(cl.prototype,{_getValue_unbound:cl.prototype.getValue,_setValue_unbound:cl.prototype.setValue}),Object.assign(ll.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,i=this._indicesByUUID,r=this._paths,o=this._parsedPaths,a=this._bindings,s=a.length,c=void 0,l=0,u=arguments.length;l!==u;++l){var h=arguments[l],d=h.uuid,f=i[d];if(void 0===f){f=e++,i[d]=f,t.push(h);for(var p=0,m=s;p!==m;++p)a[p].push(new cl(h,r[p],o[p]))}else if(f<n){c=t[f];var v=--n,g=t[v];i[g.uuid]=f,t[f]=g,i[d]=v,t[v]=h;for(p=0,m=s;p!==m;++p){var y=a[p],b=y[v],x=y[f];y[f]=b,void 0===x&&(x=new cl(h,r[p],o[p])),y[v]=x}}else t[f]!==c&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastructure when reloading scenes.")}this.nCachedObjects_=n},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,n=this._indicesByUUID,i=this._bindings,r=i.length,o=0,a=arguments.length;o!==a;++o){var s=arguments[o],c=s.uuid,l=n[c];if(void 0!==l&&l>=e){var u=e++,h=t[u];n[h.uuid]=l,t[l]=h,n[c]=u,t[u]=s;for(var d=0,f=r;d!==f;++d){var p=i[d],m=p[u],v=p[l];p[l]=m,p[u]=v}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,i=this._indicesByUUID,r=this._bindings,o=r.length,a=0,s=arguments.length;a!==s;++a){var c=arguments[a].uuid,l=i[c];if(void 0!==l)if(delete i[c],l<n){var u=--n,h=t[u],d=t[g=--e];i[h.uuid]=l,t[l]=h,i[d.uuid]=u,t[u]=d,t.pop();for(var f=0,p=o;f!==p;++f){var m=(y=r[f])[u],v=y[g];y[l]=m,y[u]=v,y.pop()}}else{var g;i[(d=t[g=--e]).uuid]=l,t[l]=d,t.pop();for(f=0,p=o;f!==p;++f){var y;(y=r[f])[l]=y[g],y.pop()}}}this.nCachedObjects_=n},subscribe_:function(t,e){var n=this._bindingsIndicesByPath,i=n[t],r=this._bindings;if(void 0!==i)return r[i];var o=this._paths,a=this._parsedPaths,s=this._objects,c=s.length,l=this.nCachedObjects_,u=new Array(c);i=r.length,n[t]=i,o.push(t),a.push(e),r.push(u);for(var h=l,d=s.length;h!==d;++h){var f=s[h];u[h]=new cl(f,t,e)}return u},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,n=e[t];if(void 0!==n){var i=this._paths,r=this._parsedPaths,o=this._bindings,a=o.length-1,s=o[a];e[t[a]]=n,o[n]=s,o.pop(),r[n]=r[a],r.pop(),i[n]=i[a],i.pop()}}}),Object.assign(ul.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(t){return this._startTime=t,this},setLoop:function(t,e){return this.loop=t,this.repetitions=e,this},setEffectiveWeight:function(t){return this.weight=t,this._effectiveWeight=this.enabled?t:0,this.stopFading()},getEffectiveWeight:function(){return this._effectiveWeight},fadeIn:function(t){return this._scheduleFading(t,0,1)},fadeOut:function(t){return this._scheduleFading(t,1,0)},crossFadeFrom:function(t,e,n){if(t.fadeOut(e),this.fadeIn(e),n){var i=this._clip.duration,r=t._clip.duration,o=r/i,a=i/r;t.warp(1,o,e),this.warp(a,1,e)}return this},crossFadeTo:function(t,e,n){return t.crossFadeFrom(this,e,n)},stopFading:function(){var t=this._weightInterpolant;return null!==t&&(this._weightInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},setEffectiveTimeScale:function(t){return this.timeScale=t,this._effectiveTimeScale=this.paused?0:t,this.stopWarping()},getEffectiveTimeScale:function(){return this._effectiveTimeScale},setDuration:function(t){return this.timeScale=this._clip.duration/t,this.stopWarping()},syncWith:function(t){return this.time=t.time,this.timeScale=t.timeScale,this.stopWarping()},halt:function(t){return this.warp(this._effectiveTimeScale,0,t)},warp:function(t,e,n){var i=this._mixer,r=i.time,o=this._timeScaleInterpolant,a=this.timeScale;null===o&&(o=i._lendControlInterpolant(),this._timeScaleInterpolant=o);var s=o.parameterPositions,c=o.sampleValues;return s[0]=r,s[1]=r+n,c[0]=t/a,c[1]=e/a,this},stopWarping:function(){var t=this._timeScaleInterpolant;return null!==t&&(this._timeScaleInterpolant=null,this._mixer._takeBackControlInterpolant(t)),this},getMixer:function(){return this._mixer},getClip:function(){return this._clip},getRoot:function(){return this._localRoot||this._mixer._root},_update:function(t,e,n,i){if(this.enabled){var r=this._startTime;if(null!==r){var o=(t-r)*n;if(o<0||0===n)return;this._startTime=null,e=n*o}e*=this._updateTimeScale(t);var a=this._updateTime(e),s=this._updateWeight(t);if(s>0)for(var c=this._interpolants,l=this._propertyBindings,u=0,h=c.length;u!==h;++u)c[u].evaluate(a),l[u].accumulate(i,s)}else this._updateWeight(t)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var n=this._weightInterpolant;if(null!==n){var i=n.evaluate(t)[0];e*=i,t>n.parameterPositions[1]&&(this.stopFading(),0===i&&(this.enabled=!1))}}return this._effectiveWeight=e,e},_updateTimeScale:function(t){var e=0;if(!this.paused){e=this.timeScale;var n=this._timeScaleInterpolant;if(null!==n)e*=n.evaluate(t)[0],t>n.parameterPositions[1]&&(this.stopWarping(),0===e?this.paused=!0:this.timeScale=e)}return this._effectiveTimeScale=e,e},_updateTime:function(t){var e=this.time+t,n=this._clip.duration,i=this.loop,r=this._loopCount,o=i===Oe;if(0===t)return-1===r?e:o&&1==(1&r)?n-e:e;if(i===Ce){-1===r&&(this._loopCount=0,this._setEndings(!0,!0,!1));t:{if(e>=n)e=n;else{if(!(e<0))break t;e=0}this.clampWhenFinished?this.paused=!0:this.enabled=!1,this._mixer.dispatchEvent({type:"finished",action:this,direction:t<0?-1:1})}}else{if(-1===r&&(t>=0?(r=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),e>=n||e<0){var a=Math.floor(e/n);e-=n*a,r+=Math.abs(a);var s=this.repetitions-r;if(s<=0)this.clampWhenFinished?this.paused=!0:this.enabled=!1,e=t>0?n:0,this._mixer.dispatchEvent({type:"finished",action:this,direction:t>0?1:-1});else{if(1===s){var c=t<0;this._setEndings(c,!c,o)}else this._setEndings(!1,!1,o);this._loopCount=r,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:a})}}if(o&&1==(1&r))return this.time=e,n-e}return this.time=e,e},_setEndings:function(t,e,n){var i=this._interpolantSettings;n?(i.endingStart=De,i.endingEnd=De):(i.endingStart=t?this.zeroSlopeAtStart?De:Ie:Re,i.endingEnd=e?this.zeroSlopeAtEnd?De:Ie:Re)},_scheduleFading:function(t,e,n){var i=this._mixer,r=i.time,o=this._weightInterpolant;null===o&&(o=i._lendControlInterpolant(),this._weightInterpolant=o);var a=o.parameterPositions,s=o.sampleValues;return a[0]=r,s[0]=e,a[1]=r+t,s[1]=n,this}}),hl.prototype=Object.assign(Object.create(i.prototype),{constructor:hl,_bindAction:function(t,e){var n=t._localRoot||this._root,i=t._clip.tracks,r=i.length,o=t._propertyBindings,a=t._interpolants,s=n.uuid,c=this._bindingsByRootAndName,l=c[s];void 0===l&&(l={},c[s]=l);for(var u=0;u!==r;++u){var h=i[u],d=h.name,f=l[d];if(void 0!==f)o[u]=f;else{if(void 0!==(f=o[u])){null===f._cacheIndex&&(++f.referenceCount,this._addInactiveBinding(f,s,d));continue}var p=e&&e._propertyBindings[u].binding.parsedPath;++(f=new Hc(cl.create(n,d,p),h.ValueTypeName,h.getValueSize())).referenceCount,this._addInactiveBinding(f,s,d),o[u]=f}a[u].resultBuffer=f.buffer}},_activateAction:function(t){if(!this._isActiveAction(t)){if(null===t._cacheIndex){var e=(t._localRoot||this._root).uuid,n=t._clip.uuid,i=this._actionsByClip[n];this._bindAction(t,i&&i.knownActions[0]),this._addInactiveAction(t,n,e)}for(var r=t._propertyBindings,o=0,a=r.length;o!==a;++o){var s=r[o];0==s.useCount++&&(this._lendBinding(s),s.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,n=0,i=e.length;n!==i;++n){var r=e[n];0==--r.useCount&&(r.restoreOriginalState(),this._takeBackBinding(r))}this._takeBackAction(t)}},_initMemoryManager:function(){this._actions=[],this._nActiveActions=0,this._actionsByClip={},this._bindings=[],this._nActiveBindings=0,this._bindingsByRootAndName={},this._controlInterpolants=[],this._nActiveControlInterpolants=0;var t=this;this.stats={actions:{get total(){return t._actions.length},get inUse(){return t._nActiveActions}},bindings:{get total(){return t._bindings.length},get inUse(){return t._nActiveBindings}},controlInterpolants:{get total(){return t._controlInterpolants.length},get inUse(){return t._nActiveControlInterpolants}}}},_isActiveAction:function(t){var e=t._cacheIndex;return null!==e&&e<this._nActiveActions},_addInactiveAction:function(t,e,n){var i=this._actions,r=this._actionsByClip,o=r[e];if(void 0===o)o={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,r[e]=o;else{var a=o.knownActions;t._byClipCacheIndex=a.length,a.push(t)}t._cacheIndex=i.length,i.push(t),o.actionByRoot[n]=t},_removeInactiveAction:function(t){var e=this._actions,n=e[e.length-1],i=t._cacheIndex;n._cacheIndex=i,e[i]=n,e.pop(),t._cacheIndex=null;var r=t._clip.uuid,o=this._actionsByClip,a=o[r],s=a.knownActions,c=s[s.length-1],l=t._byClipCacheIndex;c._byClipCacheIndex=l,s[l]=c,s.pop(),t._byClipCacheIndex=null,delete a.actionByRoot[(t._localRoot||this._root).uuid],0===s.length&&delete o[r],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){for(var e=t._propertyBindings,n=0,i=e.length;n!==i;++n){var r=e[n];0==--r.referenceCount&&this._removeInactiveBinding(r)}},_lendAction:function(t){var e=this._actions,n=t._cacheIndex,i=this._nActiveActions++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r},_takeBackAction:function(t){var e=this._actions,n=t._cacheIndex,i=--this._nActiveActions,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r},_addInactiveBinding:function(t,e,n){var i=this._bindingsByRootAndName,r=i[e],o=this._bindings;void 0===r&&(r={},i[e]=r),r[n]=t,t._cacheIndex=o.length,o.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,n=t.binding,i=n.rootNode.uuid,r=n.path,o=this._bindingsByRootAndName,a=o[i],s=e[e.length-1],c=t._cacheIndex;s._cacheIndex=c,e[c]=s,e.pop(),delete a[r];t:{for(var l in a)break t;delete o[i]}},_lendBinding:function(t){var e=this._bindings,n=t._cacheIndex,i=this._nActiveBindings++,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r},_takeBackBinding:function(t){var e=this._bindings,n=t._cacheIndex,i=--this._nActiveBindings,r=e[i];t._cacheIndex=i,e[i]=t,r._cacheIndex=n,e[n]=r},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,n=t[e];return void 0===n&&((n=new rs(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer)).__cacheIndex=e,t[e]=n),n},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,n=t.__cacheIndex,i=--this._nActiveControlInterpolants,r=e[i];t.__cacheIndex=i,e[i]=t,r.__cacheIndex=n,e[n]=r},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e){var n=e||this._root,i=n.uuid,r="string"==typeof t?ps.findByName(n,t):t,o=null!==r?r.uuid:t,a=this._actionsByClip[o],s=null;if(void 0!==a){var c=a.actionByRoot[i];if(void 0!==c)return c;s=a.knownActions[0],null===r&&(r=s._clip)}if(null===r)return null;var l=new ul(this,r,e);return this._bindAction(l,s),this._addInactiveAction(l,o,i),l},existingAction:function(t,e){var n=e||this._root,i=n.uuid,r="string"==typeof t?ps.findByName(n,t):t,o=r?r.uuid:t,a=this._actionsByClip[o];return void 0!==a&&a.actionByRoot[i]||null},stopAllAction:function(){var t=this._actions,e=this._nActiveActions,n=this._bindings,i=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var r=0;r!==e;++r)t[r].reset();for(r=0;r!==i;++r)n[r].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,n=this._nActiveActions,i=this.time+=t,r=Math.sign(t),o=this._accuIndex^=1,a=0;a!==n;++a){e[a]._update(i,t,r,o)}var s=this._bindings,c=this._nActiveBindings;for(a=0;a!==c;++a)s[a].apply(o);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions,n=t.uuid,i=this._actionsByClip,r=i[n];if(void 0!==r){for(var o=r.knownActions,a=0,s=o.length;a!==s;++a){var c=o[a];this._deactivateAction(c);var l=c._cacheIndex,u=e[e.length-1];c._cacheIndex=null,c._byClipCacheIndex=null,u._cacheIndex=l,e[l]=u,e.pop(),this._removeInactiveBindingsForAction(c)}delete i[n]}},uncacheRoot:function(t){var e=t.uuid,n=this._actionsByClip;for(var i in n){var r=n[i].actionByRoot[e];void 0!==r&&(this._deactivateAction(r),this._removeInactiveAction(r))}var o=this._bindingsByRootAndName[e];if(void 0!==o)for(var a in o){var s=o[a];s.restoreOriginalState(),this._removeInactiveBinding(s)}},uncacheAction:function(t,e){var n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}),dl.prototype.clone=function(){return new dl(void 0===this.value.clone?this.value:this.value.clone())},fl.prototype=Object.assign(Object.create(si.prototype),{constructor:fl,isInstancedBufferGeometry:!0,copy:function(t){return si.prototype.copy.call(this,t),this.maxInstancedCount=t.maxInstancedCount,this},clone:function(){return(new this.constructor).copy(this)}}),pl.prototype=Object.assign(Object.create(fo.prototype),{constructor:pl,isInstancedInterleavedBuffer:!0,copy:function(t){return fo.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),ml.prototype=Object.assign(Object.create(Xn.prototype),{constructor:ml,isInstancedBufferAttribute:!0,copy:function(t){return Xn.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Object.assign(vl.prototype,{linePrecision:1,set:function(t,e){this.ray.set(t,e)},setFromCamera:function(t,e){e&&e.isPerspectiveCamera?(this.ray.origin.setFromMatrixPosition(e.matrixWorld),this.ray.direction.set(t.x,t.y,.5).unproject(e).sub(this.ray.origin).normalize()):e&&e.isOrthographicCamera?(this.ray.origin.set(t.x,t.y,(e.near+e.far)/(e.near-e.far)).unproject(e),this.ray.direction.set(0,0,-1).transformDirection(e.matrixWorld)):console.error("THREE.Raycaster: Unsupported camera type.")},intersectObject:function(t,e,n){var i=n||[];return yl(t,this,i,e),i.sort(gl),i},intersectObjects:function(t,e,n){var i=n||[];if(!1===Array.isArray(t))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),i;for(var r=0,o=t.length;r<o;r++)yl(t[r],this,i,e);return i.sort(gl),i}}),Object.assign(bl.prototype,{set:function(t,e,n){return this.radius=t,this.phi=e,this.theta=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.radius=t.radius,this.phi=t.phi,this.theta=t.theta,this},makeSafe:function(){return this.phi=Math.max(1e-6,Math.min(Math.PI-1e-6,this.phi)),this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,n){return this.radius=Math.sqrt(t*t+e*e+n*n),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t,n),this.phi=Math.acos(Ze.clamp(e/this.radius,-1,1))),this}}),Object.assign(xl.prototype,{set:function(t,e,n){return this.radius=t,this.theta=e,this.y=n,this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.radius=t.radius,this.theta=t.theta,this.y=t.y,this},setFromVector3:function(t){return this.setFromCartesianCoords(t.x,t.y,t.z)},setFromCartesianCoords:function(t,e,n){return this.radius=Math.sqrt(t*t+n*n),this.theta=Math.atan2(t,n),this.y=e,this}}),Object.assign(_l.prototype,{set:function(t,e){return this.min.copy(t),this.max.copy(e),this},setFromPoints:function(t){this.makeEmpty();for(var e=0,n=t.length;e<n;e++)this.expandByPoint(t[e]);return this},setFromCenterAndSize:function(){var t=new Je;return function(e,n){var i=t.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(i),this.max.copy(e).add(i),this}}(),clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.min.copy(t.min),this.max.copy(t.max),this},makeEmpty:function(){return this.min.x=this.min.y=1/0,this.max.x=this.max.y=-1/0,this},isEmpty:function(){return this.max.x<this.min.x||this.max.y<this.min.y},getCenter:function(t){return void 0===t&&(console.warn("THREE.Box2: .getCenter() target is now required"),t=new Je),this.isEmpty()?t.set(0,0):t.addVectors(this.min,this.max).multiplyScalar(.5)},getSize:function(t){return void 0===t&&(console.warn("THREE.Box2: .getSize() target is now required"),t=new Je),this.isEmpty()?t.set(0,0):t.subVectors(this.max,this.min)},expandByPoint:function(t){return this.min.min(t),this.max.max(t),this},expandByVector:function(t){return this.min.sub(t),this.max.add(t),this},expandByScalar:function(t){return this.min.addScalar(-t),this.max.addScalar(t),this},containsPoint:function(t){return!(t.x<this.min.x||t.x>this.max.x||t.y<this.min.y||t.y>this.max.y)},containsBox:function(t){return this.min.x<=t.min.x&&t.max.x<=this.max.x&&this.min.y<=t.min.y&&t.max.y<=this.max.y},getParameter:function(t,e){return void 0===e&&(console.warn("THREE.Box2: .getParameter() target is now required"),e=new Je),e.set((t.x-this.min.x)/(this.max.x-this.min.x),(t.y-this.min.y)/(this.max.y-this.min.y))},intersectsBox:function(t){return!(t.max.x<this.min.x||t.min.x>this.max.x||t.max.y<this.min.y||t.min.y>this.max.y)},clampPoint:function(t,e){return void 0===e&&(console.warn("THREE.Box2: .clampPoint() target is now required"),e=new Je),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new Je;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),intersect:function(t){return this.min.max(t.min),this.max.min(t.max),this},union:function(t){return this.min.min(t.min),this.max.max(t.max),this},translate:function(t){return this.min.add(t),this.max.add(t),this},equals:function(t){return t.min.equals(this.min)&&t.max.equals(this.max)}}),Object.assign(wl.prototype,{set:function(t,e){return this.start.copy(t),this.end.copy(e),this},clone:function(){return(new this.constructor).copy(this)},copy:function(t){return this.start.copy(t.start),this.end.copy(t.end),this},getCenter:function(t){return void 0===t&&(console.warn("THREE.Line3: .getCenter() target is now required"),t=new en),t.addVectors(this.start,this.end).multiplyScalar(.5)},delta:function(t){return void 0===t&&(console.warn("THREE.Line3: .delta() target is now required"),t=new en),t.subVectors(this.end,this.start)},distanceSq:function(){return this.start.distanceToSquared(this.end)},distance:function(){return this.start.distanceTo(this.end)},at:function(t,e){return void 0===e&&(console.warn("THREE.Line3: .at() target is now required"),e=new en),this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:(el=new en,nl=new en,function(t,e){el.subVectors(t,this.start),nl.subVectors(this.end,this.start);var n=nl.dot(nl),i=nl.dot(el)/n;return e&&(i=Ze.clamp(i,0,1)),i}),closestPointToPoint:function(t,e,n){var i=this.closestPointToPointParameter(t,e);return void 0===n&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),n=new en),this.delta(n).multiplyScalar(i).add(this.start)},applyMatrix4:function(t){return this.start.applyMatrix4(t),this.end.applyMatrix4(t),this},equals:function(t){return t.start.equals(this.start)&&t.end.equals(this.end)}}),Sl.prototype=Object.create(Gn.prototype),Sl.prototype.constructor=Sl,Sl.prototype.isImmediateRenderObject=!0,Tl.prototype=Object.create(So.prototype),Tl.prototype.constructor=Tl,Tl.prototype.update=function(){var t=new en,e=new en,n=new nn;return function(){var i=["a","b","c"];this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);var r=this.object.matrixWorld,o=this.geometry.attributes.position,a=this.object.geometry;if(a&&a.isGeometry)for(var s=a.vertices,c=a.faces,l=0,u=0,h=c.length;u<h;u++)for(var d=c[u],f=0,p=d.vertexNormals.length;f<p;f++){var m=s[d[i[f]]],v=d.vertexNormals[f];t.copy(m).applyMatrix4(r),e.copy(v).applyMatrix3(n).normalize().multiplyScalar(this.size).add(t),o.setXYZ(l,t.x,t.y,t.z),l+=1,o.setXYZ(l,e.x,e.y,e.z),l+=1}else if(a&&a.isBufferGeometry){var g=a.attributes.position,y=a.attributes.normal;for(l=0,f=0,p=g.count;f<p;f++)t.set(g.getX(f),g.getY(f),g.getZ(f)).applyMatrix4(r),e.set(y.getX(f),y.getY(f),y.getZ(f)),e.applyMatrix3(n).normalize().multiplyScalar(this.size).add(t),o.setXYZ(l,t.x,t.y,t.z),l+=1,o.setXYZ(l,e.x,e.y,e.z),l+=1}o.needsUpdate=!0}}(),El.prototype=Object.create(Gn.prototype),El.prototype.constructor=El,El.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},El.prototype.update=function(){var t=new en;return function(){this.light.updateMatrixWorld();var e=this.light.distance?this.light.distance:1e3,n=e*Math.tan(this.light.angle);this.cone.scale.set(n,n,e),t.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(t),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),Ml.prototype=Object.create(So.prototype),Ml.prototype.constructor=Ml,Ml.prototype.updateMatrixWorld=function(){var t=new en,e=new Qe,n=new Qe;return function(i){var r=this.bones,o=this.geometry,a=o.getAttribute("position");n.getInverse(this.root.matrixWorld);for(var s=0,c=0;s<r.length;s++){var l=r[s];l.parent&&l.parent.isBone&&(e.multiplyMatrices(n,l.matrixWorld),t.setFromMatrixPosition(e),a.setXYZ(c,t.x,t.y,t.z),e.multiplyMatrices(n,l.parent.matrixWorld),t.setFromMatrixPosition(e),a.setXYZ(c+1,t.x,t.y,t.z),c+=2)}o.getAttribute("position").needsUpdate=!0,Gn.prototype.updateMatrixWorld.call(this,i)}}(),Cl.prototype=Object.create(Ai.prototype),Cl.prototype.constructor=Cl,Cl.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},Cl.prototype.update=function(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)},Ll.prototype=Object.create(wo.prototype),Ll.prototype.constructor=Ll,Ll.prototype.update=function(){if(this.scale.set(.5*this.light.width,.5*this.light.height,1),void 0!==this.color)this.material.color.set(this.color),this.children[0].material.color.set(this.color);else{this.material.color.copy(this.light.color).multiplyScalar(this.light.intensity);var t=this.material.color,e=Math.max(t.r,t.g,t.b);e>1&&t.multiplyScalar(1/e),this.children[0].material.color.copy(this.material.color)}},Ll.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose(),this.children[0].geometry.dispose(),this.children[0].material.dispose()},Ol.prototype=Object.create(Gn.prototype),Ol.prototype.constructor=Ol,Ol.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},Ol.prototype.update=function(){var t=new en,e=new On,n=new On;return function(){var i=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{var r=i.geometry.getAttribute("color");e.copy(this.light.color),n.copy(this.light.groundColor);for(var o=0,a=r.count;o<a;o++){var s=o<a/2?e:n;r.setXYZ(o,s.r,s.g,s.b)}r.needsUpdate=!0}i.lookAt(t.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),kl.prototype=Object.create(So.prototype),kl.prototype.constructor=kl,Pl.prototype=Object.create(So.prototype),Pl.prototype.constructor=Pl,Al.prototype=Object.create(wo.prototype),Al.prototype.constructor=Al,Al.prototype.update=function(){var t,e,n=this.audio,i=this.range,r=this.divisionsInnerAngle,o=this.divisionsOuterAngle,a=Ze.degToRad(n.panner.coneInnerAngle),s=Ze.degToRad(n.panner.coneOuterAngle),c=a/2,l=s/2,u=0,h=0,d=this.geometry,f=d.attributes.position;function p(n,r,o,a){var s=(r-n)/o;for(f.setXYZ(u,0,0,0),h++,t=n;t<r;t+=s)e=u+h,f.setXYZ(e,Math.sin(t)*i,0,Math.cos(t)*i),f.setXYZ(e+1,Math.sin(Math.min(t+s,r))*i,0,Math.cos(Math.min(t+s,r))*i),f.setXYZ(e+2,0,0,0),h+=3;d.addGroup(u,h,a),u+=h,h=0}d.clearGroups(),p(-l,-c,o,0),p(-c,c,r,1),p(c,l,o,0),f.needsUpdate=!0,a===s&&(this.material[0].visible=!1)},Al.prototype.dispose=function(){this.geometry.dispose(),this.material[0].dispose(),this.material[1].dispose()},Il.prototype=Object.create(So.prototype),Il.prototype.constructor=Il,Il.prototype.update=function(){var t=new en,e=new en,n=new nn;return function(){this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);for(var i=this.object.matrixWorld,r=this.geometry.attributes.position,o=this.object.geometry,a=o.vertices,s=o.faces,c=0,l=0,u=s.length;l<u;l++){var h=s[l],d=h.normal;t.copy(a[h.a]).add(a[h.b]).add(a[h.c]).divideScalar(3).applyMatrix4(i),e.copy(d).applyMatrix3(n).normalize().multiplyScalar(this.size).add(t),r.setXYZ(c,t.x,t.y,t.z),c+=1,r.setXYZ(c,e.x,e.y,e.z),c+=1}r.needsUpdate=!0}}(),Dl.prototype=Object.create(Gn.prototype),Dl.prototype.constructor=Dl,Dl.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},Dl.prototype.update=function(){var t=new en,e=new en,n=new en;return function(){t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),n.subVectors(e,t),this.lightPlane.lookAt(e),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(e),this.targetLine.scale.z=n.length()}}(),Rl.prototype=Object.create(So.prototype),Rl.prototype.constructor=Rl,Rl.prototype.update=function(){var t,e,n=new en,i=new Yr;function r(r,o,a,s){n.set(o,a,s).unproject(i);var c=e[r];if(void 0!==c)for(var l=t.getAttribute("position"),u=0,h=c.length;u<h;u++)l.setXYZ(c[u],n.x,n.y,n.z)}return function(){t=this.geometry,e=this.pointMap;i.projectionMatrix.copy(this.camera.projectionMatrix),r("c",0,0,-1),r("t",0,0,1),r("n1",-1,-1,-1),r("n2",1,-1,-1),r("n3",-1,1,-1),r("n4",1,1,-1),r("f1",-1,-1,1),r("f2",1,-1,1),r("f3",-1,1,1),r("f4",1,1,1),r("u1",.7,1.1,-1),r("u2",-.7,1.1,-1),r("u3",0,2,-1),r("cf1",-1,0,1),r("cf2",1,0,1),r("cf3",0,-1,1),r("cf4",0,1,1),r("cn1",-1,0,-1),r("cn2",1,0,-1),r("cn3",0,-1,-1),r("cn4",0,1,-1),t.getAttribute("position").needsUpdate=!0}}(),Bl.prototype=Object.create(So.prototype),Bl.prototype.constructor=Bl,Bl.prototype.update=function(){var t=new gn;return function(e){if(void 0!==e&&console.warn("THREE.BoxHelper: .update() has no longer arguments."),void 0!==this.object&&t.setFromObject(this.object),!t.isEmpty()){var n=t.min,i=t.max,r=this.geometry.attributes.position,o=r.array;o[0]=i.x,o[1]=i.y,o[2]=i.z,o[3]=n.x,o[4]=i.y,o[5]=i.z,o[6]=n.x,o[7]=n.y,o[8]=i.z,o[9]=i.x,o[10]=n.y,o[11]=i.z,o[12]=i.x,o[13]=i.y,o[14]=n.z,o[15]=n.x,o[16]=i.y,o[17]=n.z,o[18]=n.x,o[19]=n.y,o[20]=n.z,o[21]=i.x,o[22]=n.y,o[23]=n.z,r.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),Bl.prototype.setFromObject=function(t){return this.object=t,this.update(),this},Bl.prototype.copy=function(t){return So.prototype.copy.call(this,t),this.object=t.object,this},Bl.prototype.clone=function(){return(new this.constructor).copy(this)},Nl.prototype=Object.create(So.prototype),Nl.prototype.constructor=Nl,Nl.prototype.updateMatrixWorld=function(t){var e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),Gn.prototype.updateMatrixWorld.call(this,t))},jl.prototype=Object.create(wo.prototype),jl.prototype.constructor=jl,jl.prototype.updateMatrixWorld=function(t){var e=-this.plane.constant;Math.abs(e)<1e-8&&(e=1e-8),this.scale.set(.5*this.size,.5*this.size,e),this.children[0].material.side=e<0?L:C,this.lookAt(this.plane.normal),Gn.prototype.updateMatrixWorld.call(this,t)},zl.prototype=Object.create(Gn.prototype),zl.prototype.constructor=zl,zl.prototype.setDirection=(al=new en,function(t){t.y>.99999?this.quaternion.set(0,0,0,1):t.y<-.99999?this.quaternion.set(1,0,0,0):(al.set(t.z,0,-t.x).normalize(),ol=Math.acos(t.y),this.quaternion.setFromAxisAngle(al,ol))}),zl.prototype.setLength=function(t,e,n){void 0===e&&(e=.2*t),void 0===n&&(n=.2*e),this.line.scale.set(1,Math.max(0,t-e),1),this.line.updateMatrix(),this.cone.scale.set(n,e,n),this.cone.position.y=t,this.cone.updateMatrix()},zl.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},zl.prototype.copy=function(t){return Gn.prototype.copy.call(this,t,!1),this.line.copy(t.line),this.cone.copy(t.cone),this},zl.prototype.clone=function(){return(new this.constructor).copy(this)},Fl.prototype=Object.create(So.prototype),Fl.prototype.constructor=Fl;var Ul=0,Gl=1;function $l(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t}function Hl(t){return void 0===t&&(t=[]),console.warn("THREE.MultiMaterial has been removed. Use an Array instead."),t.isMultiMaterial=!0,t.materials=t,t.clone=function(){return t.slice()},t}function Wl(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new Mo(t,e)}function ql(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new vo(t)}function Xl(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new Mo(t,e)}function Yl(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Eo(t)}function Kl(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Eo(t)}function Zl(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Eo(t)}function Jl(t,e,n){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new en(t,e,n)}function Ql(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new Xn(t,e).setDynamic(!0)}function tu(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new Yn(t,e)}function eu(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new Kn(t,e)}function nu(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new Zn(t,e)}function iu(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new Jn(t,e)}function ru(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new Qn(t,e)}function ou(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new ti(t,e)}function au(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new ei(t,e)}function su(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new ni(t,e)}function cu(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new ii(t,e)}function lu(t){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),Rs.call(this,t),this.type="catmullrom",this.closed=!0}function uu(t){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),Rs.call(this,t),this.type="catmullrom"}function hu(t){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),Rs.call(this,t),this.type="catmullrom"}function du(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new Fl(t)}function fu(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new Bl(t,e)}function pu(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new So(new Ba(t.geometry),new _o({color:void 0!==e?e:16777215}))}function mu(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new So(new Po(t.geometry),new _o({color:void 0!==e?e:16777215}))}function vu(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new xs(t)}function gu(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new Ss(t)}Cs.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Cs.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(qs.prototype,{createPointsGeometry:function(t){console.warn("THREE.CurvePath: .createPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var e=this.getPoints(t);return this.createGeometry(e)},createSpacedPointsGeometry:function(t){console.warn("THREE.CurvePath: .createSpacedPointsGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");var e=this.getSpacedPoints(t);return this.createGeometry(e)},createGeometry:function(t){console.warn("THREE.CurvePath: .createGeometry() has been removed. Use new THREE.Geometry().setFromPoints( points ) instead.");for(var e=new qn,n=0,i=t.length;n<i;n++){var r=t[n];e.vertices.push(new en(r.x,r.y,r.z||0))}return e}}),Object.assign(Xs.prototype,{fromPoints:function(t){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)}}),lu.prototype=Object.create(Rs.prototype),uu.prototype=Object.create(Rs.prototype),hu.prototype=Object.create(Rs.prototype),Object.assign(hu.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.")}}),kl.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},Ml.prototype.update=function(){console.error("THREE.SkeletonHelper: update() no longer needs to be called.")},Object.assign(Ec.prototype,{extractUrlBase:function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),cc.extractUrlBase(t)}}),Object.assign(hc.prototype,{setTexturePath:function(t){return console.warn("THREE.ObjectLoader: .setTexturePath() has been renamed to .setResourcePath()."),this.setResourcePath(t)}}),Object.assign(_l.prototype,{center:function(t){return console.warn("THREE.Box2: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box2: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box2: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},size:function(t){return console.warn("THREE.Box2: .size() has been renamed to .getSize()."),this.getSize(t)}}),Object.assign(gn.prototype,{center:function(t){return console.warn("THREE.Box3: .center() has been renamed to .getCenter()."),this.getCenter(t)},empty:function(){return console.warn("THREE.Box3: .empty() has been renamed to .isEmpty()."),this.isEmpty()},isIntersectionBox:function(t){return console.warn("THREE.Box3: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionSphere:function(t){return console.warn("THREE.Box3: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)},size:function(t){return console.warn("THREE.Box3: .size() has been renamed to .getSize()."),this.getSize(t)}}),wl.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},Object.assign(Ze,{random16:function(){return console.warn("THREE.Math: .random16() has been deprecated. Use Math.random() instead."),Math.random()},nearestPowerOfTwo:function(t){return console.warn("THREE.Math: .nearestPowerOfTwo() has been renamed to .floorPowerOfTwo()."),Ze.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),Ze.ceilPowerOfTwo(t)}}),Object.assign(nn.prototype,{flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix3: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},multiplyVector3:function(t){return console.warn("THREE.Matrix3: .multiplyVector3() has been removed. Use vector.applyMatrix3( matrix ) instead."),t.applyMatrix3(this)},multiplyVector3Array:function(){console.error("THREE.Matrix3: .multiplyVector3Array() has been removed.")},applyToBuffer:function(t){return console.warn("THREE.Matrix3: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix3: .applyToVector3Array() has been removed.")}}),Object.assign(Qe.prototype,{extractPosition:function(t){return console.warn("THREE.Matrix4: .extractPosition() has been renamed to .copyPosition()."),this.copyPosition(t)},flattenToArrayOffset:function(t,e){return console.warn("THREE.Matrix4: .flattenToArrayOffset() has been deprecated. Use .toArray() instead."),this.toArray(t,e)},getPosition:function(){var t;return function(){return void 0===t&&(t=new en),console.warn("THREE.Matrix4: .getPosition() has been removed. Use Vector3.setFromMatrixPosition( matrix ) instead."),t.setFromMatrixColumn(this,3)}}(),setRotationFromQuaternion:function(t){return console.warn("THREE.Matrix4: .setRotationFromQuaternion() has been renamed to .makeRotationFromQuaternion()."),this.makeRotationFromQuaternion(t)},multiplyToArray:function(){console.warn("THREE.Matrix4: .multiplyToArray() has been removed.")},multiplyVector3:function(t){return console.warn("THREE.Matrix4: .multiplyVector3() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector4:function(t){return console.warn("THREE.Matrix4: .multiplyVector4() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.applyMatrix4(this)},multiplyVector3Array:function(){console.error("THREE.Matrix4: .multiplyVector3Array() has been removed.")},rotateAxis:function(t){console.warn("THREE.Matrix4: .rotateAxis() has been removed. Use Vector3.transformDirection( matrix ) instead."),t.transformDirection(this)},crossVector:function(t){return console.warn("THREE.Matrix4: .crossVector() has been removed. Use vector.applyMatrix4( matrix ) instead."),t.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(t){return console.warn("THREE.Matrix4: .applyToBuffer() has been removed. Use matrix.applyToBufferAttribute( attribute ) instead."),this.applyToBufferAttribute(t)},applyToVector3Array:function(){console.error("THREE.Matrix4: .applyToVector3Array() has been removed.")},makeFrustum:function(t,e,n,i,r,o){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,i,n,r,o)}}),bn.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},tn.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3() has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Object.assign(Oi.prototype,{isIntersectionBox:function(t){return console.warn("THREE.Ray: .isIntersectionBox() has been renamed to .intersectsBox()."),this.intersectsBox(t)},isIntersectionPlane:function(t){return console.warn("THREE.Ray: .isIntersectionPlane() has been renamed to .intersectsPlane()."),this.intersectsPlane(t)},isIntersectionSphere:function(t){return console.warn("THREE.Ray: .isIntersectionSphere() has been renamed to .intersectsSphere()."),this.intersectsSphere(t)}}),Object.assign(ki.prototype,{area:function(){return console.warn("THREE.Triangle: .area() has been renamed to .getArea()."),this.getArea()},barycoordFromPoint:function(t,e){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),this.getBarycoord(t,e)},midpoint:function(t){return console.warn("THREE.Triangle: .midpoint() has been renamed to .getMidpoint()."),this.getMidpoint(t)},normal:function(t){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),this.getNormal(t)},plane:function(t){return console.warn("THREE.Triangle: .plane() has been renamed to .getPlane()."),this.getPlane(t)}}),Object.assign(ki,{barycoordFromPoint:function(t,e,n,i,r){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),ki.getBarycoord(t,e,n,i,r)},normal:function(t,e,n,i){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),ki.getNormal(t,e,n,i)}}),Object.assign(Ys.prototype,{extractAllPoints:function(t){return console.warn("THREE.Shape: .extractAllPoints() has been removed. Use .extractPoints() instead."),this.extractPoints(t)},extrude:function(t){return console.warn("THREE.Shape: .extrude() has been removed. Use ExtrudeGeometry() instead."),new _a(this,t)},makeGeometry:function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new Ia(this,t)}}),Object.assign(Je.prototype,{fromAttribute:function(t,e,n){return console.warn("THREE.Vector2: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},distanceToManhattan:function(t){return console.warn("THREE.Vector2: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector2: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(en.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(t){return console.warn("THREE.Vector3: .getPositionFromMatrix() has been renamed to .setFromMatrixPosition()."),this.setFromMatrixPosition(t)},getScaleFromMatrix:function(t){return console.warn("THREE.Vector3: .getScaleFromMatrix() has been renamed to .setFromMatrixScale()."),this.setFromMatrixScale(t)},getColumnFromMatrix:function(t,e){return console.warn("THREE.Vector3: .getColumnFromMatrix() has been renamed to .setFromMatrixColumn()."),this.setFromMatrixColumn(e,t)},applyProjection:function(t){return console.warn("THREE.Vector3: .applyProjection() has been removed. Use .applyMatrix4( m ) instead."),this.applyMatrix4(t)},fromAttribute:function(t,e,n){return console.warn("THREE.Vector3: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},distanceToManhattan:function(t){return console.warn("THREE.Vector3: .distanceToManhattan() has been renamed to .manhattanDistanceTo()."),this.manhattanDistanceTo(t)},lengthManhattan:function(){return console.warn("THREE.Vector3: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(dn.prototype,{fromAttribute:function(t,e,n){return console.warn("THREE.Vector4: .fromAttribute() has been renamed to .fromBufferAttribute()."),this.fromBufferAttribute(t,e,n)},lengthManhattan:function(){return console.warn("THREE.Vector4: .lengthManhattan() has been renamed to .manhattanLength()."),this.manhattanLength()}}),Object.assign(qn.prototype,{computeTangents:function(){console.error("THREE.Geometry: .computeTangents() has been removed.")},computeLineDistances:function(){console.error("THREE.Geometry: .computeLineDistances() has been removed. Use THREE.Line.computeLineDistances() instead.")}}),Object.assign(Gn.prototype,{getChildByName:function(t){return console.warn("THREE.Object3D: .getChildByName() has been renamed to .getObjectByName()."),this.getObjectByName(t)},renderDepth:function(){console.warn("THREE.Object3D: .renderDepth has been removed. Use .renderOrder, instead.")},translate:function(t,e){return console.warn("THREE.Object3D: .translate() has been removed. Use .translateOnAxis( axis, distance ) instead."),this.translateOnAxis(e,t)},getWorldRotation:function(){console.error("THREE.Object3D: .getWorldRotation() has been removed. Use THREE.Object3D.getWorldQuaternion( target ) instead.")}}),Object.defineProperties(Gn.prototype,{eulerOrder:{get:function(){return console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order},set:function(t){console.warn("THREE.Object3D: .eulerOrder is now .rotation.order."),this.rotation.order=t}},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(go.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(bo.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),yo.prototype.initBones=function(){console.error("THREE.SkinnedMesh: initBones() has been removed.")},Object.defineProperty(Cs.prototype,"__arcLengthDivisions",{get:function(){return console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions},set:function(t){console.warn("THREE.Curve: .__arcLengthDivisions is now .arcLengthDivisions."),this.arcLengthDivisions=t}}),Kr.prototype.setLens=function(t,e){console.warn("THREE.PerspectiveCamera.setLens is deprecated. Use .setFocalLength and .filmGauge for a photographic setup."),void 0!==e&&(this.filmGauge=e),this.setFocalLength(t)},Object.defineProperties(Ks.prototype,{onlyShadow:{set:function(){console.warn("THREE.Light: .onlyShadow has been removed.")}},shadowCameraFov:{set:function(t){console.warn("THREE.Light: .shadowCameraFov is now .shadow.camera.fov."),this.shadow.camera.fov=t}},shadowCameraLeft:{set:function(t){console.warn("THREE.Light: .shadowCameraLeft is now .shadow.camera.left."),this.shadow.camera.left=t}},shadowCameraRight:{set:function(t){console.warn("THREE.Light: .shadowCameraRight is now .shadow.camera.right."),this.shadow.camera.right=t}},shadowCameraTop:{set:function(t){console.warn("THREE.Light: .shadowCameraTop is now .shadow.camera.top."),this.shadow.camera.top=t}},shadowCameraBottom:{set:function(t){console.warn("THREE.Light: .shadowCameraBottom is now .shadow.camera.bottom."),this.shadow.camera.bottom=t}},shadowCameraNear:{set:function(t){console.warn("THREE.Light: .shadowCameraNear is now .shadow.camera.near."),this.shadow.camera.near=t}},shadowCameraFar:{set:function(t){console.warn("THREE.Light: .shadowCameraFar is now .shadow.camera.far."),this.shadow.camera.far=t}},shadowCameraVisible:{set:function(){console.warn("THREE.Light: .shadowCameraVisible has been removed. Use new THREE.CameraHelper( light.shadow.camera ) instead.")}},shadowBias:{set:function(t){console.warn("THREE.Light: .shadowBias is now .shadow.bias."),this.shadow.bias=t}},shadowDarkness:{set:function(){console.warn("THREE.Light: .shadowDarkness has been removed.")}},shadowMapWidth:{set:function(t){console.warn("THREE.Light: .shadowMapWidth is now .shadow.mapSize.width."),this.shadow.mapSize.width=t}},shadowMapHeight:{set:function(t){console.warn("THREE.Light: .shadowMapHeight is now .shadow.mapSize.height."),this.shadow.mapSize.height=t}}}),Object.defineProperties(Xn.prototype,{length:{get:function(){return console.warn("THREE.BufferAttribute: .length has been deprecated. Use .count instead."),this.array.length}},copyIndicesArray:function(){console.error("THREE.BufferAttribute: .copyIndicesArray() has been removed.")}}),Object.assign(si.prototype,{addIndex:function(t){console.warn("THREE.BufferGeometry: .addIndex() has been renamed to .setIndex()."),this.setIndex(t)},addDrawCall:function(t,e,n){void 0!==n&&console.warn("THREE.BufferGeometry: .addDrawCall() no longer supports indexOffset."),console.warn("THREE.BufferGeometry: .addDrawCall() is now .addGroup()."),this.addGroup(t,e)},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(si.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.assign(wa.prototype,{getArrays:function(){console.error("THREE.ExtrudeBufferGeometry: .getArrays() has been removed.")},addShapeList:function(){console.error("THREE.ExtrudeBufferGeometry: .addShapeList() has been removed.")},addShape:function(){console.error("THREE.ExtrudeBufferGeometry: .addShape() has been removed.")}}),Object.defineProperties(dl.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(fi.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")},set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},overdraw:{get:function(){console.warn("THREE.Material: .overdraw has been removed.")},set:function(){console.warn("THREE.Material: .overdraw has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new On}},shading:{get:function(){console.error("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead.")},set:function(t){console.warn("THREE."+this.type+": .shading has been removed. Use the boolean .flatShading instead."),this.flatShading=t===k}}}),Object.defineProperties(Xa.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(Li.prototype,{derivatives:{get:function(){return console.warn("THREE.ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives},set:function(t){console.warn("THREE. ShaderMaterial: .derivatives has been moved to .extensions.derivatives."),this.extensions.derivatives=t}}}),Object.assign(co.prototype,{clearTarget:function(t,e,n,i){console.warn("THREE.WebGLRenderer: .clearTarget() has been deprecated. Use .setRenderTarget() and .clear() instead."),this.setRenderTarget(t),this.clear(e,n,i)},animate:function(t){console.warn("THREE.WebGLRenderer: .animate() is now .setAnimationLoop()."),this.setAnimationLoop(t)},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},resetGLState:function(){return console.warn("THREE.WebGLRenderer: .resetGLState() is now .state.reset()."),this.state.reset()},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(t){console.warn("THREE.WebGLRenderer: .enableScissorTest() is now .setScissorTest()."),this.setScissorTest(t)},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.")},setFaceCulling:function(){console.warn("THREE.WebGLRenderer: .setFaceCulling() has been removed.")}}),Object.defineProperties(co.prototype,{shadowMapEnabled:{get:function(){return this.shadowMap.enabled},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapEnabled is now .shadowMap.enabled."),this.shadowMap.enabled=t}},shadowMapType:{get:function(){return this.shadowMap.type},set:function(t){console.warn("THREE.WebGLRenderer: .shadowMapType is now .shadowMap.type."),this.shadowMap.type=t}},shadowMapCullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMapCullFace has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(Hr.prototype,{cullFace:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.cullFace has been removed. Set Material.shadowSide instead.")}},renderReverseSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderReverseSided has been removed. Set Material.shadowSide instead.")}},renderSingleSided:{get:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")},set:function(){console.warn("THREE.WebGLRenderer: .shadowMap.renderSingleSided has been removed. Set Material.shadowSide instead.")}}}),Object.defineProperties(mn.prototype,{activeCubeFace:{set:function(){console.warn("THREE.WebGLRenderTargetCube: .activeCubeFace has been removed. It is now the second parameter of WebGLRenderer.setRenderTarget().")}},activeMipMapLevel:{set:function(){console.warn("THREE.WebGLRenderTargetCube: .activeMipMapLevel has been removed. It is now the third parameter of WebGLRenderer.setRenderTarget().")}}}),Object.defineProperties(fn.prototype,{wrapS:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapS is now .texture.wrapS."),this.texture.wrapS=t}},wrapT:{get:function(){return console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT},set:function(t){console.warn("THREE.WebGLRenderTarget: .wrapT is now .texture.wrapT."),this.texture.wrapT=t}},magFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .magFilter is now .texture.magFilter."),this.texture.magFilter=t}},minFilter:{get:function(){return console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter},set:function(t){console.warn("THREE.WebGLRenderTarget: .minFilter is now .texture.minFilter."),this.texture.minFilter=t}},anisotropy:{get:function(){return console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy},set:function(t){console.warn("THREE.WebGLRenderTarget: .anisotropy is now .texture.anisotropy."),this.texture.anisotropy=t}},offset:{get:function(){return console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset},set:function(t){console.warn("THREE.WebGLRenderTarget: .offset is now .texture.offset."),this.texture.offset=t}},repeat:{get:function(){return console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat},set:function(t){console.warn("THREE.WebGLRenderTarget: .repeat is now .texture.repeat."),this.texture.repeat=t}},format:{get:function(){return console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format},set:function(t){console.warn("THREE.WebGLRenderTarget: .format is now .texture.format."),this.texture.format=t}},type:{get:function(){return console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type},set:function(t){console.warn("THREE.WebGLRenderTarget: .type is now .texture.type."),this.texture.type=t}},generateMipmaps:{get:function(){return console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps},set:function(t){console.warn("THREE.WebGLRenderTarget: .generateMipmaps is now .texture.generateMipmaps."),this.texture.generateMipmaps=t}}}),Object.defineProperties(so.prototype,{standing:{set:function(){console.warn("THREE.WebVRManager: .standing has been removed.")}},userHeight:{set:function(){console.warn("THREE.WebVRManager: .userHeight has been removed.")}}}),Uc.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var e=this;return(new Nc).load(t,function(t){e.setBuffer(t)}),this},$c.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},zc.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update()."),this.update(t,e)};var yu={merge:function(t,e,n){var i;console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead."),e.isMesh&&(e.matrixAutoUpdate&&e.updateMatrix(),i=e.matrix,e=e.geometry),t.merge(e,i,n)},center:function(t){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),t.center()}};function bu(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js."),this.projectVector=function(t,e){console.warn("THREE.Projector: .projectVector() is now vector.project()."),t.project(e)},this.unprojectVector=function(t,e){console.warn("THREE.Projector: .unprojectVector() is now vector.unproject()."),t.unproject(e)},this.pickingRay=function(){console.error("THREE.Projector: .pickingRay() is now raycaster.setFromCamera().")}}function xu(){console.error("THREE.CanvasRenderer has been removed")}function _u(){console.error("THREE.JSONLoader has been removed.")}ln.crossOrigin=void 0,ln.loadTexture=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var r=new Ms;r.setCrossOrigin(this.crossOrigin);var o=r.load(t,n,void 0,i);return e&&(o.mapping=e),o},ln.loadTextureCube=function(t,e,n,i){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var r=new Es;r.setCrossOrigin(this.crossOrigin);var o=r.load(t,n,void 0,i);return e&&(o.mapping=e),o},ln.loadCompressedTexture=function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},ln.loadCompressedTextureCube=function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")};var wu={createMultiMaterialObject:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},detach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")},attach:function(){console.error("THREE.SceneUtils has been moved to /examples/js/utils/SceneUtils.js")}};function Su(){console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js")}},MmMw:function(t,e,n){var i=n("EqjI");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},MsuQ:function(t,e,n){"use strict";var i=n("Dgii"),r=n("zq/X");t.exports=n("0Rih")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=i.getEntry(r(this,"Map"),t);return e&&e.v},set:function(t,e){return i.def(r(this,"Map"),0===t?0:t,e)}},i,!0)},MyjO:function(t,e,n){n("77Ug")("Uint8",1,function(t){return function(e,n,i){return t(this,e,n,i)}},!0)},N4KQ:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},NHaJ:function(t,e,n){var i=n("wCso"),r=n("DIVP"),o=n("KOrd"),a=i.has,s=i.get,c=i.key,l=function(t,e,n){if(a(t,e,n))return s(t,e,n);var i=o(e);return null!==i?l(t,i,n):void 0};i.exp({getMetadata:function(t,e){return l(t,r(e),arguments.length<3?void 0:c(arguments[2]))}})},NNrz:function(t,e,n){"use strict";var i=n("zgIt");t.exports=function(t,e){return!!t&&i(function(){e?t.call(null,function(){},1):t.call(null)})}},"NWt+":function(t,e,n){var i=n("+ZMJ"),r=n("msXi"),o=n("Mhyx"),a=n("77Pl"),s=n("QRG4"),c=n("3fs2"),l={},u={};(e=t.exports=function(t,e,n,h,d){var f,p,m,v,g=d?function(){return t}:c(t),y=i(n,h,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(f=s(t.length);f>b;b++)if((v=e?y(a(p=t[b])[0],p[1]):y(t[b]))===l||v===u)return v}else for(m=g.call(t);!(p=m.next()).done;)if((v=r(m,y,p.value,e))===l||v===u)return v}).BREAK=l,e.RETURN=u},NYxO:function(t,e,n){"use strict";(function(t){var n=("undefined"!=typeof window?window:void 0!==t?t:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function i(t,e){Object.keys(t).forEach(function(n){return e(t[n],n)})}function r(t){return null!==t&&"object"==typeof t}var o=function(t,e){this.runtime=e,this._children=Object.create(null),this._rawModule=t;var n=t.state;this.state=("function"==typeof n?n():n)||{}},a={namespaced:{configurable:!0}};a.namespaced.get=function(){return!!this._rawModule.namespaced},o.prototype.addChild=function(t,e){this._children[t]=e},o.prototype.removeChild=function(t){delete this._children[t]},o.prototype.getChild=function(t){return this._children[t]},o.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)},o.prototype.forEachChild=function(t){i(this._children,t)},o.prototype.forEachGetter=function(t){this._rawModule.getters&&i(this._rawModule.getters,t)},o.prototype.forEachAction=function(t){this._rawModule.actions&&i(this._rawModule.actions,t)},o.prototype.forEachMutation=function(t){this._rawModule.mutations&&i(this._rawModule.mutations,t)},Object.defineProperties(o.prototype,a);var s=function(t){this.register([],t,!1)};s.prototype.get=function(t){return t.reduce(function(t,e){return t.getChild(e)},this.root)},s.prototype.getNamespace=function(t){var e=this.root;return t.reduce(function(t,n){return t+((e=e.getChild(n)).namespaced?n+"/":"")},"")},s.prototype.update=function(t){!function t(e,n,i){0;n.update(i);if(i.modules)for(var r in i.modules){if(!n.getChild(r))return void 0;t(e.concat(r),n.getChild(r),i.modules[r])}}([],this.root,t)},s.prototype.register=function(t,e,n){var r=this;void 0===n&&(n=!0);var a=new o(e,n);0===t.length?this.root=a:this.get(t.slice(0,-1)).addChild(t[t.length-1],a);e.modules&&i(e.modules,function(e,i){r.register(t.concat(i),e,n)})},s.prototype.unregister=function(t){var e=this.get(t.slice(0,-1)),n=t[t.length-1];e.getChild(n).runtime&&e.removeChild(n)};var c;var l=function(t){var e=this;void 0===t&&(t={}),!c&&"undefined"!=typeof window&&window.Vue&&g(window.Vue);var i=t.plugins;void 0===i&&(i=[]);var r=t.strict;void 0===r&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new s(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new c,this._makeLocalGettersCache=Object.create(null);var o=this,a=this.dispatch,l=this.commit;this.dispatch=function(t,e){return a.call(o,t,e)},this.commit=function(t,e,n){return l.call(o,t,e,n)},this.strict=r;var u=this._modules.root.state;p(this,u,[],this._modules.root),f(this,u),i.forEach(function(t){return t(e)}),(void 0!==t.devtools?t.devtools:c.config.devtools)&&function(t){n&&(t._devtoolHook=n,n.emit("vuex:init",t),n.on("vuex:travel-to-state",function(e){t.replaceState(e)}),t.subscribe(function(t,e){n.emit("vuex:mutation",t,e)}))}(this)},u={state:{configurable:!0}};function h(t,e){return e.indexOf(t)<0&&e.push(t),function(){var n=e.indexOf(t);n>-1&&e.splice(n,1)}}function d(t,e){t._actions=Object.create(null),t._mutations=Object.create(null),t._wrappedGetters=Object.create(null),t._modulesNamespaceMap=Object.create(null);var n=t.state;p(t,n,[],t._modules.root,!0),f(t,n,e)}function f(t,e,n){var r=t._vm;t.getters={},t._makeLocalGettersCache=Object.create(null);var o={};i(t._wrappedGetters,function(e,n){o[n]=function(t,e){return function(){return t(e)}}(e,t),Object.defineProperty(t.getters,n,{get:function(){return t._vm[n]},enumerable:!0})});var a=c.config.silent;c.config.silent=!0,t._vm=new c({data:{$$state:e},computed:o}),c.config.silent=a,t.strict&&function(t){t._vm.$watch(function(){return this._data.$$state},function(){0},{deep:!0,sync:!0})}(t),r&&(n&&t._withCommit(function(){r._data.$$state=null}),c.nextTick(function(){return r.$destroy()}))}function p(t,e,n,i,r){var o=!n.length,a=t._modules.getNamespace(n);if(i.namespaced&&(t._modulesNamespaceMap[a],t._modulesNamespaceMap[a]=i),!o&&!r){var s=m(e,n.slice(0,-1)),l=n[n.length-1];t._withCommit(function(){c.set(s,l,i.state)})}var u=i.context=function(t,e,n){var i=""===e,r={dispatch:i?t.dispatch:function(n,i,r){var o=v(n,i,r),a=o.payload,s=o.options,c=o.type;return s&&s.root||(c=e+c),t.dispatch(c,a)},commit:i?t.commit:function(n,i,r){var o=v(n,i,r),a=o.payload,s=o.options,c=o.type;s&&s.root||(c=e+c),t.commit(c,a,s)}};return Object.defineProperties(r,{getters:{get:i?function(){return t.getters}:function(){return function(t,e){if(!t._makeLocalGettersCache[e]){var n={},i=e.length;Object.keys(t.getters).forEach(function(r){if(r.slice(0,i)===e){var o=r.slice(i);Object.defineProperty(n,o,{get:function(){return t.getters[r]},enumerable:!0})}}),t._makeLocalGettersCache[e]=n}return t._makeLocalGettersCache[e]}(t,e)}},state:{get:function(){return m(t.state,n)}}}),r}(t,a,n);i.forEachMutation(function(e,n){!function(t,e,n,i){(t._mutations[e]||(t._mutations[e]=[])).push(function(e){n.call(t,i.state,e)})}(t,a+n,e,u)}),i.forEachAction(function(e,n){var i=e.root?n:a+n,r=e.handler||e;!function(t,e,n,i){(t._actions[e]||(t._actions[e]=[])).push(function(e){var r,o=n.call(t,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:t.getters,rootState:t.state},e);return(r=o)&&"function"==typeof r.then||(o=Promise.resolve(o)),t._devtoolHook?o.catch(function(e){throw t._devtoolHook.emit("vuex:error",e),e}):o})}(t,i,r,u)}),i.forEachGetter(function(e,n){!function(t,e,n,i){if(t._wrappedGetters[e])return void 0;t._wrappedGetters[e]=function(t){return n(i.state,i.getters,t.state,t.getters)}}(t,a+n,e,u)}),i.forEachChild(function(i,o){p(t,e,n.concat(o),i,r)})}function m(t,e){return e.length?e.reduce(function(t,e){return t[e]},t):t}function v(t,e,n){return r(t)&&t.type&&(n=e,e=t,t=t.type),{type:t,payload:e,options:n}}function g(t){c&&t===c||
/**
 * vuex v3.1.2
 * (c) 2019 Evan You
 * @license MIT
 */
function(t){if(Number(t.version.split(".")[0])>=2)t.mixin({beforeCreate:n});else{var e=t.prototype._init;t.prototype._init=function(t){void 0===t&&(t={}),t.init=t.init?[n].concat(t.init):n,e.call(this,t)}}function n(){var t=this.$options;t.store?this.$store="function"==typeof t.store?t.store():t.store:t.parent&&t.parent.$store&&(this.$store=t.parent.$store)}}(c=t)}u.state.get=function(){return this._vm._data.$$state},u.state.set=function(t){0},l.prototype.commit=function(t,e,n){var i=this,r=v(t,e,n),o=r.type,a=r.payload,s=(r.options,{type:o,payload:a}),c=this._mutations[o];c&&(this._withCommit(function(){c.forEach(function(t){t(a)})}),this._subscribers.forEach(function(t){return t(s,i.state)}))},l.prototype.dispatch=function(t,e){var n=this,i=v(t,e),r=i.type,o=i.payload,a={type:r,payload:o},s=this._actions[r];if(s){try{this._actionSubscribers.filter(function(t){return t.before}).forEach(function(t){return t.before(a,n.state)})}catch(t){0}return(s.length>1?Promise.all(s.map(function(t){return t(o)})):s[0](o)).then(function(t){try{n._actionSubscribers.filter(function(t){return t.after}).forEach(function(t){return t.after(a,n.state)})}catch(t){0}return t})}},l.prototype.subscribe=function(t){return h(t,this._subscribers)},l.prototype.subscribeAction=function(t){return h("function"==typeof t?{before:t}:t,this._actionSubscribers)},l.prototype.watch=function(t,e,n){var i=this;return this._watcherVM.$watch(function(){return t(i.state,i.getters)},e,n)},l.prototype.replaceState=function(t){var e=this;this._withCommit(function(){e._vm._data.$$state=t})},l.prototype.registerModule=function(t,e,n){void 0===n&&(n={}),"string"==typeof t&&(t=[t]),this._modules.register(t,e),p(this,this.state,t,this._modules.get(t),n.preserveState),f(this,this.state)},l.prototype.unregisterModule=function(t){var e=this;"string"==typeof t&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var n=m(e.state,t.slice(0,-1));c.delete(n,t[t.length-1])}),d(this)},l.prototype.hotUpdate=function(t){this._modules.update(t),d(this,!0)},l.prototype._withCommit=function(t){var e=this._committing;this._committing=!0,t(),this._committing=e},Object.defineProperties(l.prototype,u);var y=S(function(t,e){var n={};return w(e).forEach(function(e){var i=e.key,r=e.val;n[i]=function(){var e=this.$store.state,n=this.$store.getters;if(t){var i=T(this.$store,"mapState",t);if(!i)return;e=i.context.state,n=i.context.getters}return"function"==typeof r?r.call(this,e,n):e[r]},n[i].vuex=!0}),n}),b=S(function(t,e){var n={};return w(e).forEach(function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.commit;if(t){var o=T(this.$store,"mapMutations",t);if(!o)return;i=o.context.commit}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}}),n}),x=S(function(t,e){var n={};return w(e).forEach(function(e){var i=e.key,r=e.val;r=t+r,n[i]=function(){if(!t||T(this.$store,"mapGetters",t))return this.$store.getters[r]},n[i].vuex=!0}),n}),_=S(function(t,e){var n={};return w(e).forEach(function(e){var i=e.key,r=e.val;n[i]=function(){for(var e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=this.$store.dispatch;if(t){var o=T(this.$store,"mapActions",t);if(!o)return;i=o.context.dispatch}return"function"==typeof r?r.apply(this,[i].concat(e)):i.apply(this.$store,[r].concat(e))}}),n});function w(t){return function(t){return Array.isArray(t)||r(t)}(t)?Array.isArray(t)?t.map(function(t){return{key:t,val:t}}):Object.keys(t).map(function(e){return{key:e,val:t[e]}}):[]}function S(t){return function(e,n){return"string"!=typeof e?(n=e,e=""):"/"!==e.charAt(e.length-1)&&(e+="/"),t(e,n)}}function T(t,e,n){return t._modulesNamespaceMap[n]}var E={Store:l,install:g,version:"3.1.2",mapState:y,mapMutations:b,mapGetters:x,mapActions:_,createNamespacedHelpers:function(t){return{mapState:y.bind(null,t),mapGetters:x.bind(null,t),mapMutations:b.bind(null,t),mapActions:_.bind(null,t)}}};e.a=E}).call(e,n("DuR2"))},NfZy:function(t,e,n){n("77Ug")("Uint32",4,function(t){return function(e,n,i){return t(this,e,n,i)}})},Nkrw:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("LhTa")(4);i(i.P+i.F*!n("NNrz")([].every,!0),"Array",{every:function(t){return r(this,t,arguments[1])}})},No4x:function(t,e,n){var i=n("Ds5P");i(i.P,"Array",{fill:n("zCYm")}),n("RhFG")("fill")},O4g8:function(t,e){t.exports=!0},ON07:function(t,e,n){var i=n("EqjI"),r=n("7KvD").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},OgTs:function(t,e,n){var i=n("OzIq").parseInt,r=n("Ymdd").trim,o=n("Xduv"),a=/^[-+]?0[xX]/;t.exports=8!==i(o+"08")||22!==i(o+"0x16")?function(t,e){var n=r(String(t),3);return i(n,e>>>0||(a.test(n)?16:10))}:i},OzIq:function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},PHCx:function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},PHqh:function(t,e,n){var i=n("Q6Nf"),r=n("/whu");t.exports=function(t){return i(r(t))}},PbPd:function(t,e,n){"use strict";var i=n("UKM+"),r=n("KOrd"),o=n("kkCw")("hasInstance"),a=Function.prototype;o in a||n("lDLk").f(a,o,{value:function(t){if("function"!=typeof this||!i(t))return!1;if(!i(this.prototype))return t instanceof this;for(;t=r(t);)if(this.prototype===t)return!0;return!1}})},PuTd:function(t,e,n){var i=n("Ds5P"),r=n("KOrd"),o=n("DIVP");i(i.S,"Reflect",{getPrototypeOf:function(t){return r(o(t))}})},PzxK:function(t,e,n){var i=n("D2L2"),r=n("sB3e"),o=n("ax3d")("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=r(t),i(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},"Q/CP":function(t,e,n){n("CEne")("Array")},Q6Nf:function(t,e,n){var i=n("ydD5");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==i(t)?t.split(""):Object(t)}},QBuC:function(t,e,n){"use strict";var i=n("OzIq"),r=n("WBcL"),o=n("ydD5"),a=n("kic5"),s=n("s4j0"),c=n("zgIt"),l=n("WcO1").f,u=n("x9zv").f,h=n("lDLk").f,d=n("Ymdd").trim,f=i.Number,p=f,m=f.prototype,v="Number"==o(n("7ylX")(m)),g="trim"in String.prototype,y=function(t){var e=s(t,!1);if("string"==typeof e&&e.length>2){var n,i,r,o=(e=g?e.trim():d(e,3)).charCodeAt(0);if(43===o||45===o){if(88===(n=e.charCodeAt(2))||120===n)return NaN}else if(48===o){switch(e.charCodeAt(1)){case 66:case 98:i=2,r=49;break;case 79:case 111:i=8,r=55;break;default:return+e}for(var a,c=e.slice(2),l=0,u=c.length;l<u;l++)if((a=c.charCodeAt(l))<48||a>r)return NaN;return parseInt(c,i)}}return+e};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(t){var e=arguments.length<1?0:t,n=this;return n instanceof f&&(v?c(function(){m.valueOf.call(n)}):"Number"!=o(n))?a(new p(y(e)),n,f):y(e)};for(var b,x=n("bUqO")?l(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),_=0;x.length>_;_++)r(p,b=x[_])&&!r(f,b)&&h(f,b,u(p,b));f.prototype=m,m.constructor=f,n("R3AP")(i,"Number",f)}},QG7u:function(t,e,n){var i=n("vmSO");t.exports=function(t,e){var n=[];return i(t,!1,n.push,n,e),n}},QKXm:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},QRG4:function(t,e,n){var i=n("UuGF"),r=Math.min;t.exports=function(t){return t>0?r(i(t),9007199254740991):0}},QWLi:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("oeih"),o=n("fS0v"),a=n("xAdt"),s=1..toFixed,c=Math.floor,l=[0,0,0,0,0,0],u="Number.toFixed: incorrect invocation!",h=function(t,e){for(var n=-1,i=e;++n<6;)i+=t*l[n],l[n]=i%1e7,i=c(i/1e7)},d=function(t){for(var e=6,n=0;--e>=0;)n+=l[e],l[e]=c(n/t),n=n%t*1e7},f=function(){for(var t=6,e="";--t>=0;)if(""!==e||0===t||0!==l[t]){var n=String(l[t]);e=""===e?n:e+a.call("0",7-n.length)+n}return e},p=function(t,e,n){return 0===e?n:e%2==1?p(t,e-1,n*t):p(t*t,e/2,n)};i(i.P+i.F*(!!s&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!n("zgIt")(function(){s.call({})})),"Number",{toFixed:function(t){var e,n,i,s,c=o(this,u),l=r(t),m="",v="0";if(l<0||l>20)throw RangeError(u);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(m="-",c=-c),c>1e-21)if(n=(e=function(t){for(var e=0,n=t;n>=4096;)e+=12,n/=4096;for(;n>=2;)e+=1,n/=2;return e}(c*p(2,69,1))-69)<0?c*p(2,-e,1):c/p(2,e,1),n*=4503599627370496,(e=52-e)>0){for(h(0,n),i=l;i>=7;)h(1e7,0),i-=7;for(h(p(10,i,1),0),i=e-1;i>=23;)d(1<<23),i-=23;d(1<<i),h(1,1),d(2),v=f()}else h(0,n),h(1<<-e,0),v=f()+a.call("0",l);return v=l>0?m+((s=v.length)<=l?"0."+a.call("0",l-s)+v:v.slice(0,s-l)+"."+v.slice(s-l)):m+v}})},QaEu:function(t,e,n){var i=n("Ds5P");i(i.S,"Date",{now:function(){return(new Date).getTime()}})},QcWB:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("w6Dh"),o=n("SDXa");i(i.S,"Promise",{try:function(t){var e=r.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},Qh14:function(t,e,n){var i=n("ReGu"),r=n("QKXm");t.exports=Object.keys||function(t){return i(t,r)}},QzLV:function(t,e,n){var i=n("Ds5P");i(i.S+i.F*!n("bUqO"),"Object",{defineProperty:n("lDLk").f})},R3AP:function(t,e,n){var i=n("OzIq"),r=n("2p1q"),o=n("WBcL"),a=n("ulTY")("src"),s=n("73qY"),c=(""+s).split("toString");n("7gX0").inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,s){var l="function"==typeof n;l&&(o(n,"name")||r(n,"name",e)),t[e]!==n&&(l&&(o(n,a)||r(n,a,t[e]?""+t[e]:c.join(String(e)))),t===i?t[e]=n:s?t[e]?t[e]=n:r(t,e,n):(delete t[e],r(t,e,n)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[a]||s.call(this)})},R3KI:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{iaddh:function(t,e,n,i){var r=t>>>0,o=n>>>0;return(e>>>0)+(i>>>0)+((r&o|(r|o)&~(r+o>>>0))>>>31)|0}})},R4pa:function(t,e,n){"use strict";n("y325")("big",function(t){return function(){return t(this,"big","","")}})},R8Xq:function(t,e,n){t.exports=n("mxbz")},R9M2:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},RPLV:function(t,e,n){var i=n("7KvD").document;t.exports=i&&i.documentElement},"RY/4":function(t,e,n){var i=n("R9M2"),r=n("dSzd")("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},Racj:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("49qz")(!1);i(i.P,"String",{codePointAt:function(t){return r(this,t)}})},ReGu:function(t,e,n){var i=n("WBcL"),r=n("PHqh"),o=n("ot5s")(!1),a=n("mZON")("IE_PROTO");t.exports=function(t,e){var n,s=r(t),c=0,l=[];for(n in s)n!=a&&i(s,n)&&l.push(n);for(;e.length>c;)i(s,n=e[c++])&&(~o(l,n)||l.push(n));return l}},RhFG:function(t,e,n){var i=n("kkCw")("unscopables"),r=Array.prototype;void 0==r[i]&&n("2p1q")(r,i,{}),t.exports=function(t){r[i][t]=!0}},Rk41:function(t,e,n){var i=Date.prototype,r=i.toString,o=i.getTime;new Date(NaN)+""!="Invalid Date"&&n("R3AP")(i,"toString",function(){var t=o.call(this);return t==t?r.call(this):"Invalid Date"})},Rw4K:function(t,e,n){var i=n("Ds5P");i(i.S,"Reflect",{ownKeys:n("YUr7")})},Rz2z:function(t,e){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},"S+E/":function(t,e,n){var i=n("Ds5P"),r=n("OgTs");i(i.G+i.F*(parseInt!=r),{parseInt:r})},S06l:function(t,e,n){"use strict";var i=n("lRwf"),r=n.n(i),o=n("54/E"),a=r.a.prototype,s=r.a.util.defineReactive;s(a,"$vantLang","zh-CN"),s(a,"$vantMessages",{"zh-CN":{name:"姓名",tel:"电话",save:"保存",confirm:"确认",cancel:"取消",delete:"删除",complete:"完成",loading:"加载中...",telEmpty:"请填写电话",nameEmpty:"请填写姓名",nameInvalid:"请输入正确的姓名",confirmDelete:"确定要删除吗",telInvalid:"请输入正确的手机号",vanCalendar:{end:"结束",start:"开始",title:"日期选择",confirm:"确定",startEnd:"开始/结束",weekdays:["日","一","二","三","四","五","六"],monthTitle:function(t,e){return t+"年"+e+"月"},rangePrompt:function(t){return"选择天数不能超过 "+t+" 天"}},vanCascader:{select:"请选择"},vanContactCard:{addText:"添加联系人"},vanContactList:{addText:"新建联系人"},vanPagination:{prev:"上一页",next:"下一页"},vanPullRefresh:{pulling:"下拉即可刷新...",loosing:"释放即可刷新..."},vanSubmitBar:{label:"合计："},vanCoupon:{unlimited:"无使用门槛",discount:function(t){return t+"折"},condition:function(t){return"满"+t+"元可用"}},vanCouponCell:{title:"优惠券",tips:"暂无可用",count:function(t){return t+"张可用"}},vanCouponList:{empty:"暂无优惠券",exchange:"兑换",close:"不使用优惠券",enable:"可用",disabled:"不可用",placeholder:"请输入优惠码"},vanAddressEdit:{area:"地区",postal:"邮政编码",areaEmpty:"请选择地区",addressEmpty:"请填写详细地址",postalEmpty:"邮政编码格式不正确",defaultAddress:"设为默认收货地址",telPlaceholder:"收货人手机号",namePlaceholder:"收货人姓名",areaPlaceholder:"选择省 / 市 / 区"},vanAddressEditDetail:{label:"详细地址",placeholder:"街道门牌、楼层房间号等信息"},vanAddressList:{add:"新增地址"}}});e.a={messages:function(){return a.$vantMessages[a.$vantLang]},use:function(t,e){var n;a.$vantLang=t,this.add(((n={})[t]=e,n))},add:function(t){void 0===t&&(t={}),Object(o.a)(a.$vantMessages,t)}}},S82l:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},SDXa:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},SHe9:function(t,e,n){var i=n("wC1N"),r=n("kkCw")("iterator"),o=n("bN1p");t.exports=n("7gX0").getIteratorMethod=function(t){if(void 0!=t)return t[r]||t["@@iterator"]||o[i(t)]}},SPtU:function(t,e,n){var i=n("x9zv"),r=n("KOrd"),o=n("WBcL"),a=n("Ds5P"),s=n("UKM+"),c=n("DIVP");a(a.S,"Reflect",{get:function t(e,n){var a,l,u=arguments.length<3?e:arguments[2];return c(e)===u?e[n]:(a=i.f(e,n))?o(a,"value")?a.value:void 0!==a.get?a.get.call(u):void 0:s(l=r(e))?t(l,n,u):void 0}})},SRCy:function(t,e,n){var i=n("Ds5P"),r=n("x78i"),o=Math.exp;i(i.S,"Math",{tanh:function(t){var e=r(t=+t),n=r(-t);return e==1/0?1:n==1/0?-1:(e-n)/(o(t)+o(-t))}})},"SU+a":function(t,e,n){"use strict";n("y325")("small",function(t){return function(){return t(this,"small","","")}})},Sejc:function(t,e,n){var i,r,o,a=n("rFzY"),s=n("PHCx"),c=n("d075"),l=n("jhxf"),u=n("OzIq"),h=u.process,d=u.setImmediate,f=u.clearImmediate,p=u.MessageChannel,m=u.Dispatch,v=0,g={},y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};d&&f||(d=function(t){for(var e=[],n=1;arguments.length>n;)e.push(arguments[n++]);return g[++v]=function(){s("function"==typeof t?t:Function(t),e)},i(v),v},f=function(t){delete g[t]},"process"==n("ydD5")(h)?i=function(t){h.nextTick(a(y,t,1))}:m&&m.now?i=function(t){m.now(a(y,t,1))}:p?(o=(r=new p).port2,r.port1.onmessage=b,i=a(o.postMessage,o,1)):u.addEventListener&&"function"==typeof postMessage&&!u.importScripts?(i=function(t){u.postMessage(t+"","*")},u.addEventListener("message",b,!1)):i="onreadystatechange"in l("script")?function(t){c.appendChild(l("script")).onreadystatechange=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),t.exports={set:d,clear:f}},SfB7:function(t,e,n){t.exports=!n("+E39")&&!n("S82l")(function(){return 7!=Object.defineProperty(n("ON07")("div"),"a",{get:function(){return 7}}).a})},SldL:function(t,e){!function(e){"use strict";var n,i=Object.prototype,r=i.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",l="object"==typeof t,u=e.regeneratorRuntime;if(u)l&&(t.exports=u);else{(u=e.regeneratorRuntime=l?t.exports:{}).wrap=x;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",m={},v={};v[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(P([])));y&&y!==i&&r.call(y,a)&&(v=y);var b=T.prototype=w.prototype=Object.create(v);S.prototype=b.constructor=T,T.constructor=S,T[c]=S.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,T):(t.__proto__=T,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},u.awrap=function(t){return{__await:t}},E(M.prototype),M.prototype[s]=function(){return this},u.AsyncIterator=M,u.async=function(t,e,n,i){var r=new M(x(t,e,n,i));return u.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},E(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},u.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(i,r){return s.type="throw",s.arg=t,e.next=i,r&&(e.method="next",e.arg=n),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:P(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=n),m}}}function x(t,e,n,i){var r=e&&e.prototype instanceof w?e:w,o=Object.create(r.prototype),a=new k(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw o;return A()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=_(t,e,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function w(){}function S(){}function T(){}function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function M(t){var e;this._invoke=function(n,i){function o(){return new Promise(function(e,o){!function e(n,i,o,a){var s=_(t[n],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(t){e("next",t,o,a)},function(t){e("throw",t,o,a)}):Promise.resolve(l).then(function(t){c.value=t,o(c)},a)}a(s.arg)}(n,i,e,o)})}return e=e?e.then(o,o):o()}}function C(t,e){var i=t.iterator[e.method];if(i===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,C(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=_(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,m;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:n,done:!0}}}(function(){return this}()||Function("return this")())},Stuz:function(t,e,n){var i=n("Ds5P");i(i.S,"Number",{EPSILON:Math.pow(2,-52)})},TFWu:function(t,e,n){n("77Ug")("Uint8",1,function(t){return function(e,n,i){return t(this,e,n,i)}})},THnP:function(t,e,n){n("77Ug")("Uint16",2,function(t){return function(e,n,i){return t(this,e,n,i)}})},TXmL:function(t,e,n){"use strict";
/*!
 * vue-i18n v8.28.2 
 * (c) 2022 kazuya kawaguchi
 * Released under the MIT License.
 */var i=["compactDisplay","currency","currencyDisplay","currencySign","localeMatcher","notation","numberingSystem","signDisplay","style","unit","unitDisplay","useGrouping","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits"],r=["dateStyle","timeStyle","calendar","localeMatcher","hour12","hourCycle","timeZone","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"];function o(t,e){"undefined"!=typeof console&&(console.warn("[vue-i18n] "+t),e&&console.warn(e.stack))}function a(t,e){"undefined"!=typeof console&&(console.error("[vue-i18n] "+t),e&&console.error(e.stack))}var s=Array.isArray;function c(t){return null!==t&&"object"==typeof t}function l(t){return"string"==typeof t}var u=Object.prototype.toString,h="[object Object]";function d(t){return u.call(t)===h}function f(t){return null===t||void 0===t}function p(t){return"function"==typeof t}function m(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n=null,i=null;return 1===t.length?c(t[0])||s(t[0])?i=t[0]:"string"==typeof t[0]&&(n=t[0]):2===t.length&&("string"==typeof t[0]&&(n=t[0]),(c(t[1])||s(t[1]))&&(i=t[1])),{locale:n,params:i}}function v(t){return JSON.parse(JSON.stringify(t))}function g(t,e){return!!~t.indexOf(e)}var y=Object.prototype.hasOwnProperty;function b(t,e){return y.call(t,e)}function x(t){for(var e=arguments,n=Object(t),i=1;i<arguments.length;i++){var r=e[i];if(void 0!==r&&null!==r){var o=void 0;for(o in r)b(r,o)&&(c(r[o])?n[o]=x(n[o],r[o]):n[o]=r[o])}}return n}function _(t,e){if(t===e)return!0;var n=c(t),i=c(e);if(!n||!i)return!n&&!i&&String(t)===String(e);try{var r=s(t),o=s(e);if(r&&o)return t.length===e.length&&t.every(function(t,n){return _(t,e[n])});if(r||o)return!1;var a=Object.keys(t),l=Object.keys(e);return a.length===l.length&&a.every(function(n){return _(t[n],e[n])})}catch(t){return!1}}var w={name:"i18n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},path:{type:String,required:!0},locale:{type:String},places:{type:[Array,Object]}},render:function(t,e){var n=e.data,i=e.parent,r=e.props,o=e.slots,a=i.$i18n;if(a){var s=r.path,c=r.locale,l=r.places,u=o(),h=a.i(s,c,function(t){var e;for(e in t)if("default"!==e)return!1;return Boolean(e)}(u)||l?function(t,e){var n=e?function(t){0;return Array.isArray(t)?t.reduce(T,{}):Object.assign({},t)}(e):{};if(!t)return n;var i=(t=t.filter(function(t){return t.tag||""!==t.text.trim()})).every(E);0;return t.reduce(i?S:T,n)}(u.default,l):u),d=r.tag&&!0!==r.tag||!1===r.tag?r.tag:"span";return d?t(d,n,h):h}}};function S(t,e){return e.data&&e.data.attrs&&e.data.attrs.place&&(t[e.data.attrs.place]=e),t}function T(t,e,n){return t[n]=e,t}function E(t){return Boolean(t.data&&t.data.attrs&&t.data.attrs.place)}var M,C={name:"i18n-n",functional:!0,props:{tag:{type:[String,Boolean,Object],default:"span"},value:{type:Number,required:!0},format:{type:[String,Object]},locale:{type:String}},render:function(t,e){var n=e.props,r=e.parent,o=e.data,a=r.$i18n;if(!a)return null;var s=null,u=null;l(n.format)?s=n.format:c(n.format)&&(n.format.key&&(s=n.format.key),u=Object.keys(n.format).reduce(function(t,e){var r;return g(i,e)?Object.assign({},t,((r={})[e]=n.format[e],r)):t},null));var h=n.locale||a.locale,d=a._ntp(n.value,h,s,u),f=d.map(function(t,e){var n,i=o.scopedSlots&&o.scopedSlots[t.type];return i?i(((n={})[t.type]=t.value,n.index=e,n.parts=d,n)):t.value}),p=n.tag&&!0!==n.tag||!1===n.tag?n.tag:"span";return p?t(p,{attrs:o.attrs,class:o.class,staticClass:o.staticClass},f):f}};function L(t,e,n){P(t,n)&&A(t,e,n)}function O(t,e,n,i){if(P(t,n)){var r=n.context.$i18n;(function(t,e){var n=e.context;return t._locale===n.$i18n.locale})(t,n)&&_(e.value,e.oldValue)&&_(t._localeMessage,r.getLocaleMessage(r.locale))||A(t,e,n)}}function k(t,e,n,i){if(n.context){var r=n.context.$i18n||{};e.modifiers.preserve||r.preserveDirectiveContent||(t.textContent=""),t._vt=void 0,delete t._vt,t._locale=void 0,delete t._locale,t._localeMessage=void 0,delete t._localeMessage}else o("Vue instance does not exists in VNode context")}function P(t,e){var n=e.context;return n?!!n.$i18n||(o("VueI18n instance does not exists in Vue instance"),!1):(o("Vue instance does not exists in VNode context"),!1)}function A(t,e,n){var i,r,a=function(t){var e,n,i,r;l(t)?e=t:d(t)&&(e=t.path,n=t.locale,i=t.args,r=t.choice);return{path:e,locale:n,args:i,choice:r}}(e.value),s=a.path,c=a.locale,u=a.args,h=a.choice;if(s||c||u)if(s){var f=n.context;t._vt=t.textContent=null!=h?(i=f.$i18n).tc.apply(i,[s,h].concat(I(c,u))):(r=f.$i18n).t.apply(r,[s].concat(I(c,u))),t._locale=f.$i18n.locale,t._localeMessage=f.$i18n.getLocaleMessage(f.$i18n.locale)}else o("`path` is required in v-t directive");else o("value type not supported")}function I(t,e){var n=[];return t&&n.push(t),e&&(Array.isArray(e)||d(e))&&n.push(e),n}function D(t,e){void 0===e&&(e={bridge:!1}),D.installed=!0;(M=t).version&&Number(M.version.split(".")[0]);(function(t){t.prototype.hasOwnProperty("$i18n")||Object.defineProperty(t.prototype,"$i18n",{get:function(){return this._i18n}}),t.prototype.$t=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i=this.$i18n;return i._t.apply(i,[t,i.locale,i._getMessages(),this].concat(e))},t.prototype.$tc=function(t,e){for(var n=[],i=arguments.length-2;i-- >0;)n[i]=arguments[i+2];var r=this.$i18n;return r._tc.apply(r,[t,r.locale,r._getMessages(),this,e].concat(n))},t.prototype.$te=function(t,e){var n=this.$i18n;return n._te(t,n.locale,n._getMessages(),e)},t.prototype.$d=function(t){for(var e,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return(e=this.$i18n).d.apply(e,[t].concat(n))},t.prototype.$n=function(t){for(var e,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return(e=this.$i18n).n.apply(e,[t].concat(n))}})(M),M.mixin(function(t){function e(){this!==this.$root&&this.$options.__INTLIFY_META__&&this.$el&&this.$el.setAttribute("data-intlify",this.$options.__INTLIFY_META__)}return void 0===t&&(t=!1),t?{mounted:e}:{beforeCreate:function(){var t=this.$options;if(t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n){if(t.i18n instanceof at){if(t.__i18nBridge||t.__i18n)try{var e=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(function(t){e=x(e,JSON.parse(t))}),Object.keys(e).forEach(function(n){t.i18n.mergeLocaleMessage(n,e[n])})}catch(t){}this._i18n=t.i18n,this._i18nWatcher=this._i18n.watchI18nData()}else if(d(t.i18n)){var n=this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof at?this.$root.$i18n:null;if(n&&(t.i18n.root=this.$root,t.i18n.formatter=n.formatter,t.i18n.fallbackLocale=n.fallbackLocale,t.i18n.formatFallbackMessages=n.formatFallbackMessages,t.i18n.silentTranslationWarn=n.silentTranslationWarn,t.i18n.silentFallbackWarn=n.silentFallbackWarn,t.i18n.pluralizationRules=n.pluralizationRules,t.i18n.preserveDirectiveContent=n.preserveDirectiveContent),t.__i18nBridge||t.__i18n)try{var i=t.i18n&&t.i18n.messages?t.i18n.messages:{};(t.__i18nBridge||t.__i18n).forEach(function(t){i=x(i,JSON.parse(t))}),t.i18n.messages=i}catch(t){}var r=t.i18n.sharedMessages;r&&d(r)&&(t.i18n.messages=x(t.i18n.messages,r)),this._i18n=new at(t.i18n),this._i18nWatcher=this._i18n.watchI18nData(),(void 0===t.i18n.sync||t.i18n.sync)&&(this._localeWatcher=this.$i18n.watchLocale()),n&&n.onComponentInstanceCreated(this._i18n)}}else this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof at?this._i18n=this.$root.$i18n:t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof at&&(this._i18n=t.parent.$i18n)},beforeMount:function(){var t=this.$options;t.i18n=t.i18n||(t.__i18nBridge||t.__i18n?{}:null),t.i18n?t.i18n instanceof at?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):d(t.i18n)&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0):this.$root&&this.$root.$i18n&&this.$root.$i18n instanceof at?(this._i18n.subscribeDataChanging(this),this._subscribing=!0):t.parent&&t.parent.$i18n&&t.parent.$i18n instanceof at&&(this._i18n.subscribeDataChanging(this),this._subscribing=!0)},mounted:e,beforeDestroy:function(){if(this._i18n){var t=this;this.$nextTick(function(){t._subscribing&&(t._i18n.unsubscribeDataChanging(t),delete t._subscribing),t._i18nWatcher&&(t._i18nWatcher(),t._i18n.destroyVM(),delete t._i18nWatcher),t._localeWatcher&&(t._localeWatcher(),delete t._localeWatcher)})}}}}(e.bridge)),M.directive("t",{bind:L,update:O,unbind:k}),M.component(w.name,w),M.component(C.name,C),M.config.optionMergeStrategies.i18n=function(t,e){return void 0===e?t:e}}var R=function(){this._caches=Object.create(null)};R.prototype.interpolate=function(t,e){if(!e)return[t];var n=this._caches[t];return n||(n=function(t){var e=[],n=0,i="";for(;n<t.length;){var r=t[n++];if("{"===r){i&&e.push({type:"text",value:i}),i="";var o="";for(r=t[n++];void 0!==r&&"}"!==r;)o+=r,r=t[n++];var a="}"===r,s=B.test(o)?"list":a&&N.test(o)?"named":"unknown";e.push({value:o,type:s})}else"%"===r?"{"!==t[n]&&(i+=r):i+=r}return i&&e.push({type:"text",value:i}),e}(t),this._caches[t]=n),function(t,e){var n=[],i=0,r=Array.isArray(e)?"list":c(e)?"named":"unknown";if("unknown"===r)return n;for(;i<t.length;){var o=t[i];switch(o.type){case"text":n.push(o.value);break;case"list":n.push(e[parseInt(o.value,10)]);break;case"named":"named"===r&&n.push(e[o.value]);break;case"unknown":0}i++}return n}(n,e)};var B=/^(?:\d)+/,N=/^(?:\w)+/;var j=0,z=1,F=2,V=3,U=0,G=4,$=5,H=6,W=7,q=8,X=[];X[U]={ws:[U],ident:[3,j],"[":[G],eof:[W]},X[1]={ws:[1],".":[2],"[":[G],eof:[W]},X[2]={ws:[2],ident:[3,j],0:[3,j],number:[3,j]},X[3]={ident:[3,j],0:[3,j],number:[3,j],ws:[1,z],".":[2,z],"[":[G,z],eof:[W,z]},X[G]={"'":[$,j],'"':[H,j],"[":[G,F],"]":[1,V],eof:q,else:[G,j]},X[$]={"'":[G,j],eof:q,else:[$,j]},X[H]={'"':[G,j],eof:q,else:[H,j]};var Y=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function K(t){if(void 0===t||null===t)return"eof";switch(t.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return t;case 95:case 36:case 45:return"ident";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"ws"}return"ident"}function Z(t){var e,n,i,r=t.trim();return("0"!==t.charAt(0)||!isNaN(t))&&(i=r,Y.test(i)?(n=(e=r).charCodeAt(0))!==e.charCodeAt(e.length-1)||34!==n&&39!==n?e:e.slice(1,-1):"*"+r)}var J=function(){this._cache=Object.create(null)};J.prototype.parsePath=function(t){var e=this._cache[t];return e||(e=function(t){var e,n,i,r,o,a,s,c=[],l=-1,u=U,h=0,d=[];function f(){var e=t[l+1];if(u===$&&"'"===e||u===H&&'"'===e)return l++,i="\\"+e,d[j](),!0}for(d[z]=function(){void 0!==n&&(c.push(n),n=void 0)},d[j]=function(){void 0===n?n=i:n+=i},d[F]=function(){d[j](),h++},d[V]=function(){if(h>0)h--,u=G,d[j]();else{if(h=0,void 0===n)return!1;if(!1===(n=Z(n)))return!1;d[z]()}};null!==u;)if("\\"!==(e=t[++l])||!f()){if(r=K(e),(o=(s=X[u])[r]||s.else||q)===q)return;if(u=o[0],(a=d[o[1]])&&(i=void 0===(i=o[2])?e:i,!1===a()))return;if(u===W)return c}}(t))&&(this._cache[t]=e),e||[]},J.prototype.getPathValue=function(t,e){if(!c(t))return null;var n=this.parsePath(e);if(0===n.length)return null;for(var i=n.length,r=t,o=0;o<i;){var a=r[n[o]];if(void 0===a||null===a)return null;r=a,o++}return r};var Q,tt=/<\/?[\w\s="/.':;#-\/]+>/,et=/(?:@(?:\.[a-zA-Z]+)?:(?:[\w\-_|./]+|\([\w\-_:|./]+\)))/g,nt=/^@(?:\.([a-zA-Z]+))?:/,it=/[()]/g,rt={upper:function(t){return t.toLocaleUpperCase()},lower:function(t){return t.toLocaleLowerCase()},capitalize:function(t){return""+t.charAt(0).toLocaleUpperCase()+t.substr(1)}},ot=new R,at=function(t){var e=this;void 0===t&&(t={}),!M&&"undefined"!=typeof window&&window.Vue&&D(window.Vue);var n=t.locale||"en-US",i=!1!==t.fallbackLocale&&(t.fallbackLocale||"en-US"),r=t.messages||{},o=t.dateTimeFormats||t.datetimeFormats||{},a=t.numberFormats||{};this._vm=null,this._formatter=t.formatter||ot,this._modifiers=t.modifiers||{},this._missing=t.missing||null,this._root=t.root||null,this._sync=void 0===t.sync||!!t.sync,this._fallbackRoot=void 0===t.fallbackRoot||!!t.fallbackRoot,this._fallbackRootWithEmptyString=void 0===t.fallbackRootWithEmptyString||!!t.fallbackRootWithEmptyString,this._formatFallbackMessages=void 0!==t.formatFallbackMessages&&!!t.formatFallbackMessages,this._silentTranslationWarn=void 0!==t.silentTranslationWarn&&t.silentTranslationWarn,this._silentFallbackWarn=void 0!==t.silentFallbackWarn&&!!t.silentFallbackWarn,this._dateTimeFormatters={},this._numberFormatters={},this._path=new J,this._dataListeners=new Set,this._componentInstanceCreatedListener=t.componentInstanceCreatedListener||null,this._preserveDirectiveContent=void 0!==t.preserveDirectiveContent&&!!t.preserveDirectiveContent,this.pluralizationRules=t.pluralizationRules||{},this._warnHtmlInMessage=t.warnHtmlInMessage||"off",this._postTranslation=t.postTranslation||null,this._escapeParameterHtml=t.escapeParameterHtml||!1,"__VUE_I18N_BRIDGE__"in t&&(this.__VUE_I18N_BRIDGE__=t.__VUE_I18N_BRIDGE__),this.getChoiceIndex=function(t,n){var i=Object.getPrototypeOf(e);if(i&&i.getChoiceIndex)return i.getChoiceIndex.call(e,t,n);var r,o;return e.locale in e.pluralizationRules?e.pluralizationRules[e.locale].apply(e,[t,n]):(r=t,o=n,r=Math.abs(r),2===o?r?r>1?1:0:1:r?Math.min(r,2):0)},this._exist=function(t,n){return!(!t||!n)&&(!f(e._path.getPathValue(t,n))||!!t[n])},"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||Object.keys(r).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,r[t])}),this._initVM({locale:n,fallbackLocale:i,messages:r,dateTimeFormats:o,numberFormats:a})},st={vm:{configurable:!0},messages:{configurable:!0},dateTimeFormats:{configurable:!0},numberFormats:{configurable:!0},availableLocales:{configurable:!0},locale:{configurable:!0},fallbackLocale:{configurable:!0},formatFallbackMessages:{configurable:!0},missing:{configurable:!0},formatter:{configurable:!0},silentTranslationWarn:{configurable:!0},silentFallbackWarn:{configurable:!0},preserveDirectiveContent:{configurable:!0},warnHtmlInMessage:{configurable:!0},postTranslation:{configurable:!0},sync:{configurable:!0}};at.prototype._checkLocaleMessage=function(t,e,n){var i=function(t,e,n,r){if(d(n))Object.keys(n).forEach(function(o){var a=n[o];d(a)?(r.push(o),r.push("."),i(t,e,a,r),r.pop(),r.pop()):(r.push(o),i(t,e,a,r),r.pop())});else if(s(n))n.forEach(function(n,o){d(n)?(r.push("["+o+"]"),r.push("."),i(t,e,n,r),r.pop(),r.pop()):(r.push("["+o+"]"),i(t,e,n,r),r.pop())});else if(l(n)){if(tt.test(n)){var c="Detected HTML in message '"+n+"' of keypath '"+r.join("")+"' at '"+e+"'. Consider component interpolation with '<i18n>' to avoid XSS. See https://bit.ly/2ZqJzkp";"warn"===t?o(c):"error"===t&&a(c)}}};i(e,t,n,[])},at.prototype._initVM=function(t){var e=M.config.silent;M.config.silent=!0,this._vm=new M({data:t,__VUE18N__INSTANCE__:!0}),M.config.silent=e},at.prototype.destroyVM=function(){this._vm.$destroy()},at.prototype.subscribeDataChanging=function(t){this._dataListeners.add(t)},at.prototype.unsubscribeDataChanging=function(t){!function(t,e){if(t.delete(e));}(this._dataListeners,t)},at.prototype.watchI18nData=function(){var t=this;return this._vm.$watch("$data",function(){for(var e,n,i=(e=t._dataListeners,n=[],e.forEach(function(t){return n.push(t)}),n),r=i.length;r--;)M.nextTick(function(){i[r]&&i[r].$forceUpdate()})},{deep:!0})},at.prototype.watchLocale=function(t){if(t){if(!this.__VUE_I18N_BRIDGE__)return null;var e=this,n=this._vm;return this.vm.$watch("locale",function(i){n.$set(n,"locale",i),e.__VUE_I18N_BRIDGE__&&t&&(t.locale.value=i),n.$forceUpdate()},{immediate:!0})}if(!this._sync||!this._root)return null;var i=this._vm;return this._root.$i18n.vm.$watch("locale",function(t){i.$set(i,"locale",t),i.$forceUpdate()},{immediate:!0})},at.prototype.onComponentInstanceCreated=function(t){this._componentInstanceCreatedListener&&this._componentInstanceCreatedListener(t,this)},st.vm.get=function(){return this._vm},st.messages.get=function(){return v(this._getMessages())},st.dateTimeFormats.get=function(){return v(this._getDateTimeFormats())},st.numberFormats.get=function(){return v(this._getNumberFormats())},st.availableLocales.get=function(){return Object.keys(this.messages).sort()},st.locale.get=function(){return this._vm.locale},st.locale.set=function(t){this._vm.$set(this._vm,"locale",t)},st.fallbackLocale.get=function(){return this._vm.fallbackLocale},st.fallbackLocale.set=function(t){this._localeChainCache={},this._vm.$set(this._vm,"fallbackLocale",t)},st.formatFallbackMessages.get=function(){return this._formatFallbackMessages},st.formatFallbackMessages.set=function(t){this._formatFallbackMessages=t},st.missing.get=function(){return this._missing},st.missing.set=function(t){this._missing=t},st.formatter.get=function(){return this._formatter},st.formatter.set=function(t){this._formatter=t},st.silentTranslationWarn.get=function(){return this._silentTranslationWarn},st.silentTranslationWarn.set=function(t){this._silentTranslationWarn=t},st.silentFallbackWarn.get=function(){return this._silentFallbackWarn},st.silentFallbackWarn.set=function(t){this._silentFallbackWarn=t},st.preserveDirectiveContent.get=function(){return this._preserveDirectiveContent},st.preserveDirectiveContent.set=function(t){this._preserveDirectiveContent=t},st.warnHtmlInMessage.get=function(){return this._warnHtmlInMessage},st.warnHtmlInMessage.set=function(t){var e=this,n=this._warnHtmlInMessage;if(this._warnHtmlInMessage=t,n!==t&&("warn"===t||"error"===t)){var i=this._getMessages();Object.keys(i).forEach(function(t){e._checkLocaleMessage(t,e._warnHtmlInMessage,i[t])})}},st.postTranslation.get=function(){return this._postTranslation},st.postTranslation.set=function(t){this._postTranslation=t},st.sync.get=function(){return this._sync},st.sync.set=function(t){this._sync=t},at.prototype._getMessages=function(){return this._vm.messages},at.prototype._getDateTimeFormats=function(){return this._vm.dateTimeFormats},at.prototype._getNumberFormats=function(){return this._vm.numberFormats},at.prototype._warnDefault=function(t,e,n,i,r,o){if(!f(n))return n;if(this._missing){var a=this._missing.apply(null,[t,e,i,r]);if(l(a))return a}else 0;if(this._formatFallbackMessages){var s=m.apply(void 0,r);return this._render(e,o,s.params,e)}return e},at.prototype._isFallbackRoot=function(t){return(this._fallbackRootWithEmptyString?!t:f(t))&&!f(this._root)&&this._fallbackRoot},at.prototype._isSilentFallbackWarn=function(t){return this._silentFallbackWarn instanceof RegExp?this._silentFallbackWarn.test(t):this._silentFallbackWarn},at.prototype._isSilentFallback=function(t,e){return this._isSilentFallbackWarn(e)&&(this._isFallbackRoot()||t!==this.fallbackLocale)},at.prototype._isSilentTranslationWarn=function(t){return this._silentTranslationWarn instanceof RegExp?this._silentTranslationWarn.test(t):this._silentTranslationWarn},at.prototype._interpolate=function(t,e,n,i,r,o,a){if(!e)return null;var c,u=this._path.getPathValue(e,n);if(s(u)||d(u))return u;if(f(u)){if(!d(e))return null;if(!l(c=e[n])&&!p(c))return null}else{if(!l(u)&&!p(u))return null;c=u}return l(c)&&(c.indexOf("@:")>=0||c.indexOf("@.")>=0)&&(c=this._link(t,e,c,i,"raw",o,a)),this._render(c,r,o,n)},at.prototype._link=function(t,e,n,i,r,o,a){var c=n,l=c.match(et);for(var u in l)if(l.hasOwnProperty(u)){var h=l[u],d=h.match(nt),f=d[0],p=d[1],m=h.replace(f,"").replace(it,"");if(g(a,m))return c;a.push(m);var v=this._interpolate(t,e,m,i,"raw"===r?"string":r,"raw"===r?void 0:o,a);if(this._isFallbackRoot(v)){if(!this._root)throw Error("unexpected error");var y=this._root.$i18n;v=y._translate(y._getMessages(),y.locale,y.fallbackLocale,m,i,r,o)}v=this._warnDefault(t,m,v,i,s(o)?o:[o],r),this._modifiers.hasOwnProperty(p)?v=this._modifiers[p](v):rt.hasOwnProperty(p)&&(v=rt[p](v)),a.pop(),c=v?c.replace(h,v):c}return c},at.prototype._createMessageContext=function(t,e,n,i){var r=this,o=s(t)?t:[],a=c(t)?t:{},l=this._getMessages(),u=this.locale;return{list:function(t){return o[t]},named:function(t){return a[t]},values:t,formatter:e,path:n,messages:l,locale:u,linked:function(t){return r._interpolate(u,l[u]||{},t,null,i,void 0,[t])}}},at.prototype._render=function(t,e,n,i){if(p(t))return t(this._createMessageContext(n,this._formatter||ot,i,e));var r=this._formatter.interpolate(t,n,i);return r||(r=ot.interpolate(t,n,i)),"string"!==e||l(r)?r:r.join("")},at.prototype._appendItemToChain=function(t,e,n){var i=!1;return g(t,e)||(i=!0,e&&(i="!"!==e[e.length-1],e=e.replace(/!/g,""),t.push(e),n&&n[e]&&(i=n[e]))),i},at.prototype._appendLocaleToChain=function(t,e,n){var i,r=e.split("-");do{var o=r.join("-");i=this._appendItemToChain(t,o,n),r.splice(-1,1)}while(r.length&&!0===i);return i},at.prototype._appendBlockToChain=function(t,e,n){for(var i=!0,r=0;r<e.length&&"boolean"==typeof i;r++){var o=e[r];l(o)&&(i=this._appendLocaleToChain(t,o,n))}return i},at.prototype._getLocaleChain=function(t,e){if(""===t)return[];this._localeChainCache||(this._localeChainCache={});var n=this._localeChainCache[t];if(!n){e||(e=this.fallbackLocale),n=[];for(var i,r=[t];s(r);)r=this._appendBlockToChain(n,r,e);(r=l(i=s(e)?e:c(e)?e.default?e.default:null:e)?[i]:i)&&this._appendBlockToChain(n,r,null),this._localeChainCache[t]=n}return n},at.prototype._translate=function(t,e,n,i,r,o,a){for(var s,c=this._getLocaleChain(e,n),l=0;l<c.length;l++){var u=c[l];if(!f(s=this._interpolate(u,t[u],i,r,o,a,[i])))return s}return null},at.prototype._t=function(t,e,n,i){for(var r,o=[],a=arguments.length-4;a-- >0;)o[a]=arguments[a+4];if(!t)return"";var s,c=m.apply(void 0,o);this._escapeParameterHtml&&(c.params=(null!=(s=c.params)&&Object.keys(s).forEach(function(t){"string"==typeof s[t]&&(s[t]=s[t].replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;"))}),s));var l=c.locale||e,u=this._translate(n,l,this.fallbackLocale,t,i,"string",c.params);if(this._isFallbackRoot(u)){if(!this._root)throw Error("unexpected error");return(r=this._root).$t.apply(r,[t].concat(o))}return u=this._warnDefault(l,t,u,i,o,"string"),this._postTranslation&&null!==u&&void 0!==u&&(u=this._postTranslation(u,t)),u},at.prototype.t=function(t){for(var e,n=[],i=arguments.length-1;i-- >0;)n[i]=arguments[i+1];return(e=this)._t.apply(e,[t,this.locale,this._getMessages(),null].concat(n))},at.prototype._i=function(t,e,n,i,r){var o=this._translate(n,e,this.fallbackLocale,t,i,"raw",r);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.i(t,e,r)}return this._warnDefault(e,t,o,i,[r],"raw")},at.prototype.i=function(t,e,n){return t?(l(e)||(e=this.locale),this._i(t,e,this._getMessages(),null,n)):""},at.prototype._tc=function(t,e,n,i,r){for(var o,a=[],s=arguments.length-5;s-- >0;)a[s]=arguments[s+5];if(!t)return"";void 0===r&&(r=1);var c={count:r,n:r},l=m.apply(void 0,a);return l.params=Object.assign(c,l.params),a=null===l.locale?[l.params]:[l.locale,l.params],this.fetchChoice((o=this)._t.apply(o,[t,e,n,i].concat(a)),r)},at.prototype.fetchChoice=function(t,e){if(!t||!l(t))return null;var n=t.split("|");return n[e=this.getChoiceIndex(e,n.length)]?n[e].trim():t},at.prototype.tc=function(t,e){for(var n,i=[],r=arguments.length-2;r-- >0;)i[r]=arguments[r+2];return(n=this)._tc.apply(n,[t,this.locale,this._getMessages(),null,e].concat(i))},at.prototype._te=function(t,e,n){for(var i=[],r=arguments.length-3;r-- >0;)i[r]=arguments[r+3];var o=m.apply(void 0,i).locale||e;return this._exist(n[o],t)},at.prototype.te=function(t,e){return this._te(t,this.locale,this._getMessages(),e)},at.prototype.getLocaleMessage=function(t){return v(this._vm.messages[t]||{})},at.prototype.setLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,e)},at.prototype.mergeLocaleMessage=function(t,e){"warn"!==this._warnHtmlInMessage&&"error"!==this._warnHtmlInMessage||this._checkLocaleMessage(t,this._warnHtmlInMessage,e),this._vm.$set(this._vm.messages,t,x(void 0!==this._vm.messages[t]&&Object.keys(this._vm.messages[t]).length?Object.assign({},this._vm.messages[t]):{},e))},at.prototype.getDateTimeFormat=function(t){return v(this._vm.dateTimeFormats[t]||{})},at.prototype.setDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,e),this._clearDateTimeFormat(t,e)},at.prototype.mergeDateTimeFormat=function(t,e){this._vm.$set(this._vm.dateTimeFormats,t,x(this._vm.dateTimeFormats[t]||{},e)),this._clearDateTimeFormat(t,e)},at.prototype._clearDateTimeFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._dateTimeFormatters.hasOwnProperty(i)&&delete this._dateTimeFormatters[i]}},at.prototype._localizeDateTime=function(t,e,n,i,r,o){for(var a=e,s=i[a],c=this._getLocaleChain(e,n),l=0;l<c.length;l++){var u=c[l];if(a=u,!f(s=i[u])&&!f(s[r]))break}if(f(s)||f(s[r]))return null;var h,d=s[r];if(o)h=new Intl.DateTimeFormat(a,Object.assign({},d,o));else{var p=a+"__"+r;(h=this._dateTimeFormatters[p])||(h=this._dateTimeFormatters[p]=new Intl.DateTimeFormat(a,d))}return h.format(t)},at.prototype._d=function(t,e,n,i){if(!n)return(i?new Intl.DateTimeFormat(e,i):new Intl.DateTimeFormat(e)).format(t);var r=this._localizeDateTime(t,e,this.fallbackLocale,this._getDateTimeFormats(),n,i);if(this._isFallbackRoot(r)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.d(t,n,e)}return r||""},at.prototype.d=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i=this.locale,o=null,a=null;return 1===e.length?(l(e[0])?o=e[0]:c(e[0])&&(e[0].locale&&(i=e[0].locale),e[0].key&&(o=e[0].key)),a=Object.keys(e[0]).reduce(function(t,n){var i;return g(r,n)?Object.assign({},t,((i={})[n]=e[0][n],i)):t},null)):2===e.length&&(l(e[0])&&(o=e[0]),l(e[1])&&(i=e[1])),this._d(t,i,o,a)},at.prototype.getNumberFormat=function(t){return v(this._vm.numberFormats[t]||{})},at.prototype.setNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,e),this._clearNumberFormat(t,e)},at.prototype.mergeNumberFormat=function(t,e){this._vm.$set(this._vm.numberFormats,t,x(this._vm.numberFormats[t]||{},e)),this._clearNumberFormat(t,e)},at.prototype._clearNumberFormat=function(t,e){for(var n in e){var i=t+"__"+n;this._numberFormatters.hasOwnProperty(i)&&delete this._numberFormatters[i]}},at.prototype._getNumberFormatter=function(t,e,n,i,r,o){for(var a=e,s=i[a],c=this._getLocaleChain(e,n),l=0;l<c.length;l++){var u=c[l];if(a=u,!f(s=i[u])&&!f(s[r]))break}if(f(s)||f(s[r]))return null;var h,d=s[r];if(o)h=new Intl.NumberFormat(a,Object.assign({},d,o));else{var p=a+"__"+r;(h=this._numberFormatters[p])||(h=this._numberFormatters[p]=new Intl.NumberFormat(a,d))}return h},at.prototype._n=function(t,e,n,i){if(!at.availabilities.numberFormat)return"";if(!n)return(i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e)).format(t);var r=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,i),o=r&&r.format(t);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n.n(t,Object.assign({},{key:n,locale:e},i))}return o||""},at.prototype.n=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var r=this.locale,o=null,a=null;return 1===e.length?l(e[0])?o=e[0]:c(e[0])&&(e[0].locale&&(r=e[0].locale),e[0].key&&(o=e[0].key),a=Object.keys(e[0]).reduce(function(t,n){var r;return g(i,n)?Object.assign({},t,((r={})[n]=e[0][n],r)):t},null)):2===e.length&&(l(e[0])&&(o=e[0]),l(e[1])&&(r=e[1])),this._n(t,r,o,a)},at.prototype._ntp=function(t,e,n,i){if(!at.availabilities.numberFormat)return[];if(!n)return(i?new Intl.NumberFormat(e,i):new Intl.NumberFormat(e)).formatToParts(t);var r=this._getNumberFormatter(t,e,this.fallbackLocale,this._getNumberFormats(),n,i),o=r&&r.formatToParts(t);if(this._isFallbackRoot(o)){if(!this._root)throw Error("unexpected error");return this._root.$i18n._ntp(t,e,n,i)}return o||[]},Object.defineProperties(at.prototype,st),Object.defineProperty(at,"availabilities",{get:function(){if(!Q){var t="undefined"!=typeof Intl;Q={dateTimeFormat:t&&void 0!==Intl.DateTimeFormat,numberFormat:t&&void 0!==Intl.NumberFormat}}return Q}}),at.install=D,at.version="8.28.2",e.a=at},TcQ7:function(t,e,n){var i=n("MU5D"),r=n("52gC");t.exports=function(t){return i(r(t))}},TwzQ:function(t,e,n){"use strict";var i=n("49qz")(!0);t.exports=function(t,e,n){return e+(n?i(t,e).length:1)}},"U+VG":function(t,e,n){var i=n("Ds5P"),r=n("ydD5");i(i.S,"Error",{isError:function(t){return"Error"===r(t)}})},U5ju:function(t,e,n){n("M6a0"),n("zQR9"),n("+tPU"),n("CXw9"),n("EqBC"),n("jKW+"),t.exports=n("FeBl").Promise},U6qc:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("LhTa")(6),o="findIndex",a=!0;o in[]&&Array(1)[o](function(){a=!1}),i(i.P+i.F*a,"Array",{findIndex:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("RhFG")(o)},UJiG:function(t,e,n){"use strict";n("y325")("link",function(t){return function(e){return t(this,"a","href",e)}})},"UKM+":function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},UbXY:function(t,e,n){var i=n("Ds5P"),r=n("Y7Tz");i(i.P+i.F*(Date.prototype.toISOString!==r),"Date",{toISOString:r})},UuGF:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},"V/H1":function(t,e,n){"use strict";var i=n("fJSx"),r=n("zq/X");n("0Rih")("WeakSet",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,"WeakSet"),t,!0)}},i,!1,!0)},"V3l/":function(t,e){t.exports=!1},VTn2:function(t,e,n){var i=n("UKM+"),r=n("1aA0").onFreeze;n("3i66")("freeze",function(t){return function(e){return t&&i(e)?t(r(e)):e}})},"VU/8":function(t,e){t.exports=function(t,e,n,i,r,o){var a,s=t=t||{},c=typeof t.default;"object"!==c&&"function"!==c||(a=t,s=t.default);var l,u="function"==typeof s?s.options:s;if(e&&(u.render=e.render,u.staticRenderFns=e.staticRenderFns,u._compiled=!0),n&&(u.functional=!0),r&&(u._scopeId=r),o?(l=function(t){(t=t||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext)||"undefined"==typeof __VUE_SSR_CONTEXT__||(t=__VUE_SSR_CONTEXT__),i&&i.call(this,t),t&&t._registeredComponents&&t._registeredComponents.add(o)},u._ssrRegister=l):i&&(l=i),l){var h=u.functional,d=h?u.render:u.beforeCreate;h?(u._injectStyles=l,u.render=function(t,e){return l.call(e),d(t,e)}):u.beforeCreate=d?[].concat(d,l):[l]}return{esModule:a,exports:s,options:u}}},VWgF:function(t,e,n){var i=n("7gX0"),r=n("OzIq"),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("V3l/")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},Vg1y:function(t,e,n){"use strict";n("Jbuy");var i=n("R3AP"),r=n("2p1q"),o=n("zgIt"),a=n("/whu"),s=n("kkCw"),c=n("32VL"),l=s("species"),u=!o(function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$<a>")}),h=function(){var t=/(?:)/,e=t.exec;t.exec=function(){return e.apply(this,arguments)};var n="ab".split(t);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();t.exports=function(t,e,n){var d=s(t),f=!o(function(){var e={};return e[d]=function(){return 7},7!=""[t](e)}),p=f?!o(function(){var e=!1,n=/a/;return n.exec=function(){return e=!0,null},"split"===t&&(n.constructor={},n.constructor[l]=function(){return n}),n[d](""),!e}):void 0;if(!f||!p||"replace"===t&&!u||"split"===t&&!h){var m=/./[d],v=n(a,d,""[t],function(t,e,n,i,r){return e.exec===c?f&&!r?{done:!0,value:m.call(e,n,i)}:{done:!0,value:t.call(n,e,i)}:{done:!1}}),g=v[0],y=v[1];i(String.prototype,t,g),r(RegExp.prototype,d,2==e?function(t,e){return y.call(t,this,e)}:function(t){return y.call(t,this)})}}},VjuZ:function(t,e,n){"use strict";var i=n("DIVP"),r=n("FryR"),o=n("BbyF"),a=n("oeih"),s=n("TwzQ"),c=n("9Dx1"),l=Math.max,u=Math.min,h=Math.floor,d=/\$([$&`']|\d\d?|<[^>]*>)/g,f=/\$([$&`']|\d\d?)/g;n("Vg1y")("replace",2,function(t,e,n,p){return[function(i,r){var o=t(this),a=void 0==i?void 0:i[e];return void 0!==a?a.call(i,o,r):n.call(String(o),i,r)},function(t,e){var r=p(n,t,this,e);if(r.done)return r.value;var h=i(t),d=String(this),f="function"==typeof e;f||(e=String(e));var v=h.global;if(v){var g=h.unicode;h.lastIndex=0}for(var y=[];;){var b=c(h,d);if(null===b)break;if(y.push(b),!v)break;""===String(b[0])&&(h.lastIndex=s(d,o(h.lastIndex),g))}for(var x,_="",w=0,S=0;S<y.length;S++){b=y[S];for(var T=String(b[0]),E=l(u(a(b.index),d.length),0),M=[],C=1;C<b.length;C++)M.push(void 0===(x=b[C])?x:String(x));var L=b.groups;if(f){var O=[T].concat(M,E,d);void 0!==L&&O.push(L);var k=String(e.apply(void 0,O))}else k=m(T,d,E,M,L,e);E>=w&&(_+=d.slice(w,E)+k,w=E+T.length)}return _+d.slice(w)}];function m(t,e,i,o,a,s){var c=i+t.length,l=o.length,u=f;return void 0!==a&&(a=r(a),u=d),n.call(s,u,function(n,r){var s;switch(r.charAt(0)){case"$":return"$";case"&":return t;case"`":return e.slice(0,i);case"'":return e.slice(c);case"<":s=a[r.slice(1,-1)];break;default:var u=+r;if(0===u)return n;if(u>l){var d=h(u/10);return 0===d?n:d<=l?void 0===o[d-1]?r.charAt(1):o[d-1]+r.charAt(1):n}s=o[u-1]}return void 0===s?"":s})}})},"W/IU":function(t,e,n){var i=n("UKM+"),r=n("1aA0").onFreeze;n("3i66")("seal",function(t){return function(e){return t&&i(e)?t(r(e)):e}})},W0pi:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{DEG_PER_RAD:Math.PI/180})},W2nU:function(t,e){var n,i,r=t.exports={};function o(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(t){if(n===setTimeout)return setTimeout(t,0);if((n===o||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:o}catch(t){n=o}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(t){i=a}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&f())}function f(){if(!u){var t=s(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h<e;)c&&c[h].run();h=-1,e=l.length}c=null,u=!1,function(t){if(i===clearTimeout)return clearTimeout(t);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(t);try{i(t)}catch(e){try{return i.call(null,t)}catch(e){return i.call(this,t)}}}(t)}}function p(t,e){this.fun=t,this.array=e}function m(){}r.nextTick=function(t){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];l.push(new p(t,e)),1!==l.length||u||s(f)},p.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=m,r.addListener=m,r.once=m,r.off=m,r.removeListener=m,r.removeAllListeners=m,r.emit=m,r.prependListener=m,r.prependOnceListener=m,r.listeners=function(t){return[]},r.binding=function(t){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(t){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},W4Z6:function(t,e,n){var i=n("FryR"),r=n("KOrd");n("3i66")("getPrototypeOf",function(){return function(t){return r(i(t))}})},WBcL:function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},WY8G:function(t,e){t.exports=Math.scale||function(t,e,n,i,r){return 0===arguments.length||t!=t||e!=e||n!=n||i!=i||r!=r?NaN:t===1/0||t===-1/0?t:(t-e)*(r-i)/(n-e)+i}},WcO1:function(t,e,n){var i=n("ReGu"),r=n("QKXm").concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return i(t,r)}},WgSQ:function(t,e,n){"use strict";var i=n("RhFG"),r=n("KB1o"),o=n("bN1p"),a=n("PHqh");t.exports=n("uc2A")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},WiIn:function(t,e,n){var i=n("Ds5P");i(i.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},WpPb:function(t,e,n){var i=n("UKM+");n("3i66")("isFrozen",function(t){return function(e){return!i(e)||!!t&&t(e)}})},WpTh:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("LhTa")(5),o=!0;"find"in[]&&Array(1).find(function(){o=!1}),i(i.P+i.F*o,"Array",{find:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("RhFG")("find")},Wwne:function(t,e,n){n("r2E/"),t.exports=n("7gX0").RegExp.escape},"X/Hz":function(t,e,n){"use strict";n("y325")("fontsize",function(t){return function(e){return t(this,"font","size",e)}})},X6NR:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{clamp:function(t,e,n){return Math.min(n,Math.max(e,t))}})},X7aK:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("DIVP"),o=function(t){this._t=r(t),this._i=0;var e,n=this._k=[];for(e in t)n.push(e)};n("IRJ3")(o,"Object",function(){var t,e=this._k;do{if(this._i>=e.length)return{value:void 0,done:!0}}while(!((t=e[this._i++])in this._t));return{value:t,done:!1}}),i(i.S,"Reflect",{enumerate:function(t){return new o(t)}})},X8DO:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},XO1R:function(t,e,n){var i=n("ydD5");t.exports=Array.isArray||function(t){return"Array"==i(t)}},XSOZ:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},XXBo:function(t,e,n){var i=n("wC1N"),r=n("QG7u");t.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");return r(this)}}},Xduv:function(t,e){t.exports="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff"},XgCd:function(t,e,n){"use strict";var i=String.prototype.replace,r=/%20/g;t.exports={default:"RFC3986",formatters:{RFC1738:function(t){return i.call(t,r,"+")},RFC3986:function(t){return t}},RFC1738:"RFC1738",RFC3986:"RFC3986"}},XtiL:function(t,e,n){var i=n("Ds5P");i(i.S,"Number",{isInteger:n("n982")})},XvUs:function(t,e,n){var i=n("DIVP");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},Xxa5:function(t,e,n){t.exports=n("jyFz")},Y1N3:function(t,e){e.f=Object.getOwnPropertySymbols},Y1S0:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("BbyF"),o=n("kqpo"),a="".endsWith;i(i.P+i.F*n("1ETD")("endsWith"),"String",{endsWith:function(t){var e=o(this,t,"endsWith"),n=arguments.length>1?arguments[1]:void 0,i=r(e.length),s=void 0===n?i:Math.min(r(n),i),c=String(t);return a?a.call(e,c,s):e.slice(s-c.length,s)===c}})},Y1aA:function(t,e){e.f={}.propertyIsEnumerable},Y5ex:function(t,e,n){var i=n("UKM+"),r=n("1aA0").onFreeze;n("3i66")("preventExtensions",function(t){return function(e){return t&&i(e)?t(r(e)):e}})},Y7Tz:function(t,e,n){"use strict";var i=n("zgIt"),r=Date.prototype.getTime,o=Date.prototype.toISOString,a=function(t){return t>9?t:"0"+t};t.exports=i(function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))})||!i(function(){o.call(new Date(NaN))})?function(){if(!isFinite(r.call(this)))throw RangeError("Invalid time value");var t=this,e=t.getUTCFullYear(),n=t.getUTCMilliseconds(),i=e<0?"-":e>9999?"+":"";return i+("00000"+Math.abs(e)).slice(i?-6:-4)+"-"+a(t.getUTCMonth()+1)+"-"+a(t.getUTCDate())+"T"+a(t.getUTCHours())+":"+a(t.getUTCMinutes())+":"+a(t.getUTCSeconds())+"."+(n>99?n:"0"+a(n))+"Z"}:o},YNA3:function(t,e,n){"use strict";e.a=function(t){return t.replace(i,function(t,e){return e.toUpperCase()})},e.b=function(t,e){void 0===e&&(e=2);var n=t+"";for(;n.length<e;)n="0"+n;return n};var i=/-(\w)/g},YUr7:function(t,e,n){var i=n("WcO1"),r=n("Y1N3"),o=n("DIVP"),a=n("OzIq").Reflect;t.exports=a&&a.ownKeys||function(t){var e=i.f(o(t)),n=r.f;return n?e.concat(n(t)):e}},"YVn/":function(t,e,n){var i=n("Ds5P"),r=n("lKE8")(!1);i(i.S,"Object",{values:function(t){return r(t)}})},Ygg6:function(t,e,n){n("iKpr")("Set")},Ymdd:function(t,e,n){var i=n("Ds5P"),r=n("/whu"),o=n("zgIt"),a=n("Xduv"),s="["+a+"]",c=RegExp("^"+s+s+"*"),l=RegExp(s+s+"*$"),u=function(t,e,n){var r={},s=o(function(){return!!a[t]()||"​"!="​"[t]()}),c=r[t]=s?e(h):a[t];n&&(r[n]=c),i(i.P+i.F*s,"String",r)},h=u.trim=function(t,e){return t=String(r(t)),1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(l,"")),t};t.exports=u},Yobk:function(t,e,n){var i=n("77Pl"),r=n("qio6"),o=n("xnc9"),a=n("ax3d")("IE_PROTO"),s=function(){},c=function(){var t,e=n("ON07")("iframe"),i=o.length;for(e.style.display="none",n("RPLV").appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;i--;)delete c.prototype[o[i]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(s.prototype=i(t),n=new s,s.prototype=null,n[a]=t):n=c(),void 0===e?n:r(n,e)}},ZDXm:function(t,e,n){"use strict";var i,r=n("OzIq"),o=n("LhTa")(0),a=n("R3AP"),s=n("1aA0"),c=n("oYd7"),l=n("fJSx"),u=n("UKM+"),h=n("zq/X"),d=n("zq/X"),f=!r.ActiveXObject&&"ActiveXObject"in r,p=s.getWeak,m=Object.isExtensible,v=l.ufstore,g=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},y={get:function(t){if(u(t)){var e=p(t);return!0===e?v(h(this,"WeakMap")).get(t):e?e[this._i]:void 0}},set:function(t,e){return l.def(h(this,"WeakMap"),t,e)}},b=t.exports=n("0Rih")("WeakMap",g,y,l,!0,!0);d&&f&&(c((i=l.getConstructor(g,"WeakMap")).prototype,y),s.NEED=!0,o(["delete","has","get","set"],function(t){var e=b.prototype,n=e[t];a(e,t,function(e,r){if(u(e)&&!m(e)){this._f||(this._f=new i);var o=this._f[t](e,r);return"set"==t?this:o}return n.call(this,e,r)})}))},ZRJK:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("zgIt"),o=n("fS0v"),a=1..toPrecision;i(i.P+i.F*(r(function(){return"1"!==a.call(1,void 0)})||!r(function(){a.call({})})),"Number",{toPrecision:function(t){var e=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?a.call(e):a.call(e,t)}})},ZtwE:function(t,e,n){"use strict";var i=n("XSOZ"),r=n("UKM+"),o=n("PHCx"),a=[].slice,s={};t.exports=Function.bind||function(t){var e=i(this),n=a.call(arguments,1),c=function(){var i=n.concat(a.call(arguments));return this instanceof c?function(t,e,n){if(!(e in s)){for(var i=[],r=0;r<e;r++)i[r]="a["+r+"]";s[e]=Function("F,a","return new F("+i.join(",")+")")}return s[e](t,n)}(e,i.length,i):o(e,i,t)};return r(e.prototype)&&(c.prototype=e.prototype),c}},aJ2J:function(t,e,n){var i=n("Ds5P");i(i.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},aM0T:function(t,e,n){var i=n("Ds5P"),r=n("g36u")(),o=n("OzIq").process,a="process"==n("ydD5")(o);i(i.G,{asap:function(t){var e=a&&o.domain;r(e?e.bind(t):t)}})},altv:function(t,e,n){var i=n("Ds5P"),r=n("8t38");i(i.S+i.F*(Number.parseFloat!=r),"Number",{parseFloat:r})},arGp:function(t,e,n){var i=n("Ds5P");i(i.P+i.R,"Set",{toJSON:n("XXBo")("Set")})},ax3d:function(t,e,n){var i=n("e8AB")("keys"),r=n("3Eo+");t.exports=function(t){return i[t]||(i[t]=r(t))}},"bG/2":function(t,e,n){var i=n("PHqh"),r=n("WcO1").f,o={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==o.call(t)?function(t){try{return r(t)}catch(t){return a.slice()}}(t):r(i(t))}},bN1p:function(t,e){t.exports={}},bOdI:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n("C4MV"),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(t,e,n){return e in t?(0,o.default)(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}},bRrM:function(t,e,n){"use strict";var i=n("7KvD"),r=n("FeBl"),o=n("evD5"),a=n("+E39"),s=n("dSzd")("species");t.exports=function(t){var e="function"==typeof r[t]?r[t]:i[t];a&&e&&!e[s]&&o.f(e,s,{configurable:!0,get:function(){return this}})}},bSML:function(t,e,n){"use strict";var i=n("lDLk"),r=n("fU25");t.exports=function(t,e,n){e in t?i.f(t,e,r(0,n)):t[e]=n}},bUY0:function(t,e,n){var i=n("lDLk"),r=n("x9zv"),o=n("KOrd"),a=n("WBcL"),s=n("Ds5P"),c=n("fU25"),l=n("DIVP"),u=n("UKM+");s(s.S,"Reflect",{set:function t(e,n,s){var h,d,f=arguments.length<4?e:arguments[3],p=r.f(l(e),n);if(!p){if(u(d=o(e)))return t(d,n,s,f);p=c(0)}if(a(p,"value")){if(!1===p.writable||!u(f))return!1;if(h=r.f(f,n)){if(h.get||h.set||!1===h.writable)return!1;h.value=s,i.f(f,n,h)}else i.f(f,n,c(0,s));return!0}return void 0!==p.set&&(p.set.call(f,s),!0)}})},bUqO:function(t,e,n){t.exports=!n("zgIt")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},beEN:function(t,e,n){"use strict";var i=n("rFzY"),r=n("Ds5P"),o=n("FryR"),a=n("XvUs"),s=n("9vb1"),c=n("BbyF"),l=n("bSML"),u=n("SHe9");r(r.S+r.F*!n("qkyc")(function(t){Array.from(t)}),"Array",{from:function(t){var e,n,r,h,d=o(t),f="function"==typeof this?this:Array,p=arguments.length,m=p>1?arguments[1]:void 0,v=void 0!==m,g=0,y=u(d);if(v&&(m=i(m,p>2?arguments[2]:void 0,2)),void 0==y||f==Array&&s(y))for(n=new f(e=c(d.length));e>g;g++)l(n,g,v?m(d[g],g):d[g]);else for(h=y.call(d),n=new f;!(r=h.next()).done;g++)l(n,g,v?a(h,m,[r.value,g],!0):r.value);return n.length=g,n}})},boo2:function(t,e,n){var i=n("UKM+"),r=n("XO1R"),o=n("kkCw")("species");t.exports=function(t){var e;return r(t)&&("function"!=typeof(e=t.constructor)||e!==Array&&!r(e.prototype)||(e=void 0),i(e)&&null===(e=e[o])&&(e=void 0)),void 0===e?Array:e}},bqOW:function(t,e,n){var i=n("Ds5P"),r=n("zo/l"),o=String.fromCharCode,a=String.fromCodePoint;i(i.S+i.F*(!!a&&1!=a.length),"String",{fromCodePoint:function(t){for(var e,n=[],i=arguments.length,a=0;i>a;){if(e=+arguments[a++],r(e,1114111)!==e)throw RangeError(e+" is not a valid code point");n.push(e<65536?o(e):o(55296+((e-=65536)>>10),e%1024+56320))}return n.join("")}})},cKTi:function(t,e,n){t.exports=n("qVR+")},cTzj:function(t,e,n){var i;i=function(){"use strict";function t(t){t=t||{};var i=arguments.length,r=0;if(1===i)return t;for(;++r<i;){var o=arguments[r];h(t)&&(t=o),n(o)&&e(t,o)}return t}function e(e,r){for(var o in d(e,r),r)if("__proto__"!==o&&i(r,o)){var a=r[o];n(a)?("undefined"===p(e[o])&&"function"===p(a)&&(e[o]=a),e[o]=t(e[o]||{},a)):e[o]=a}return e}function n(t){return"object"===p(t)||"function"===p(t)}function i(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function r(t,e){if(t.length){var n=t.indexOf(e);return n>-1?t.splice(n,1):void 0}}function o(t,e){if("IMG"===t.tagName&&t.getAttribute("data-srcset")){var n=t.getAttribute("data-srcset"),i=[],r=t.parentNode.offsetWidth*e,o=void 0,a=void 0,s=void 0;(n=n.trim().split(",")).map(function(t){t=t.trim(),-1===(o=t.lastIndexOf(" "))?(a=t,s=999998):(a=t.substr(0,o),s=parseInt(t.substr(o+1,t.length-o-2),10)),i.push([s,a])}),i.sort(function(t,e){if(t[0]<e[0])return-1;if(t[0]>e[0])return 1;if(t[0]===e[0]){if(-1!==e[1].indexOf(".webp",e[1].length-5))return 1;if(-1!==t[1].indexOf(".webp",t[1].length-5))return-1}return 0});for(var c="",l=void 0,u=i.length,h=0;h<u;h++)if((l=i[h])[0]>=r){c=l[1];break}return c}}function a(t,e){for(var n=void 0,i=0,r=t.length;i<r;i++)if(e(t[i])){n=t[i];break}return n}function s(){}var c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},l=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")},u=function(){function t(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}return function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e}}(),h=function(t){return null==t||"function"!=typeof t&&"object"!==(void 0===t?"undefined":c(t))},d=function(t,e){if(null===t||void 0===t)throw new TypeError("expected first argument to be an object.");if(void 0===e||"undefined"==typeof Symbol)return t;if("function"!=typeof Object.getOwnPropertySymbols)return t;for(var n=Object.prototype.propertyIsEnumerable,i=Object(t),r=arguments.length,o=0;++o<r;)for(var a=Object(arguments[o]),s=Object.getOwnPropertySymbols(a),c=0;c<s.length;c++){var l=s[c];n.call(a,l)&&(i[l]=a[l])}return i},f=Object.prototype.toString,p=function(t){var e=void 0===t?"undefined":c(t);return"undefined"===e?"undefined":null===t?"null":!0===t||!1===t||t instanceof Boolean?"boolean":"string"===e||t instanceof String?"string":"number"===e||t instanceof Number?"number":"function"===e||t instanceof Function?void 0!==t.constructor.name&&"Generator"===t.constructor.name.slice(0,9)?"generatorfunction":"function":void 0!==Array.isArray&&Array.isArray(t)?"array":t instanceof RegExp?"regexp":t instanceof Date?"date":"[object RegExp]"===(e=f.call(t))?"regexp":"[object Date]"===e?"date":"[object Arguments]"===e?"arguments":"[object Error]"===e?"error":"[object Promise]"===e?"promise":function(t){return t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}(t)?"buffer":"[object Set]"===e?"set":"[object WeakSet]"===e?"weakset":"[object Map]"===e?"map":"[object WeakMap]"===e?"weakmap":"[object Symbol]"===e?"symbol":"[object Map Iterator]"===e?"mapiterator":"[object Set Iterator]"===e?"setiterator":"[object String Iterator]"===e?"stringiterator":"[object Array Iterator]"===e?"arrayiterator":"[object Int8Array]"===e?"int8array":"[object Uint8Array]"===e?"uint8array":"[object Uint8ClampedArray]"===e?"uint8clampedarray":"[object Int16Array]"===e?"int16array":"[object Uint16Array]"===e?"uint16array":"[object Int32Array]"===e?"int32array":"[object Uint32Array]"===e?"uint32array":"[object Float32Array]"===e?"float32array":"[object Float64Array]"===e?"float64array":"object"},m=t,v="undefined"!=typeof window,g=v&&"IntersectionObserver"in window,y={event:"event",observer:"observer"},b=function(){function t(t,e){e=e||{bubbles:!1,cancelable:!1,detail:void 0};var n=document.createEvent("CustomEvent");return n.initCustomEvent(t,e.bubbles,e.cancelable,e.detail),n}if(v)return"function"==typeof window.CustomEvent?window.CustomEvent:(t.prototype=window.Event.prototype,t)}(),x=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1;return v&&window.devicePixelRatio||t},_=function(){if(v){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}}(),w={on:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];_?t.addEventListener(e,n,{capture:i,passive:!0}):t.addEventListener(e,n,i)},off:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];t.removeEventListener(e,n,i)}},S=function(t,e,n){var i=new Image;i.src=t.src,i.onload=function(){e({naturalHeight:i.naturalHeight,naturalWidth:i.naturalWidth,src:i.src})},i.onerror=function(t){n(t)}},T=function(t,e){return"undefined"!=typeof getComputedStyle?getComputedStyle(t,null).getPropertyValue(e):t.style[e]},E=function(t){return T(t,"overflow")+T(t,"overflow-y")+T(t,"overflow-x")},M={},C=function(){function t(e){var n=e.el,i=e.src,r=e.error,o=e.loading,a=e.bindType,s=e.$parent,c=e.options,u=e.elRenderer;l(this,t),this.el=n,this.src=i,this.error=r,this.loading=o,this.bindType=a,this.attempt=0,this.naturalHeight=0,this.naturalWidth=0,this.options=c,this.rect=null,this.$parent=s,this.elRenderer=u,this.performanceData={init:Date.now(),loadStart:0,loadEnd:0},this.filter(),this.initState(),this.render("loading",!1)}return u(t,[{key:"initState",value:function(){this.el.dataset.src=this.src,this.state={error:!1,loaded:!1,rendered:!1}}},{key:"record",value:function(t){this.performanceData[t]=Date.now()}},{key:"update",value:function(t){var e=t.src,n=t.loading,i=t.error,r=this.src;this.src=e,this.loading=n,this.error=i,this.filter(),r!==this.src&&(this.attempt=0,this.initState())}},{key:"getRect",value:function(){this.rect=this.el.getBoundingClientRect()}},{key:"checkInView",value:function(){return this.getRect(),this.rect.top<window.innerHeight*this.options.preLoad&&this.rect.bottom>this.options.preLoadTop&&this.rect.left<window.innerWidth*this.options.preLoad&&this.rect.right>0}},{key:"filter",value:function(){var t=this;(function(t){if(!(t instanceof Object))return[];if(Object.keys)return Object.keys(t);var e=[];for(var n in t)t.hasOwnProperty(n)&&e.push(n);return e})(this.options.filter).map(function(e){t.options.filter[e](t,t.options)})}},{key:"renderLoading",value:function(t){var e=this;S({src:this.loading},function(n){e.render("loading",!1),t()},function(){t(),e.options.silent||console.warn("VueLazyload log: load failed with loading image("+e.loading+")")})}},{key:"load",value:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:s;return this.attempt>this.options.attempt-1&&this.state.error?(this.options.silent||console.log("VueLazyload log: "+this.src+" tried too more than "+this.options.attempt+" times"),void e()):this.state.loaded||M[this.src]?(this.state.loaded=!0,e(),this.render("loaded",!0)):void this.renderLoading(function(){t.attempt++,t.record("loadStart"),S({src:t.src},function(n){t.naturalHeight=n.naturalHeight,t.naturalWidth=n.naturalWidth,t.state.loaded=!0,t.state.error=!1,t.record("loadEnd"),t.render("loaded",!1),M[t.src]=1,e()},function(e){!t.options.silent&&console.error(e),t.state.error=!0,t.state.loaded=!1,t.render("error",!1)})})}},{key:"render",value:function(t,e){this.elRenderer(this,t,e)}},{key:"performance",value:function(){var t="loading",e=0;return this.state.loaded&&(t="loaded",e=(this.performanceData.loadEnd-this.performanceData.loadStart)/1e3),this.state.error&&(t="error"),{src:this.src,state:t,time:e}}},{key:"destroy",value:function(){this.el=null,this.src=null,this.error=null,this.loading=null,this.bindType=null,this.attempt=0}}]),t}(),L="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",O=["scroll","wheel","mousewheel","resize","animationend","transitionend","touchmove"],k={rootMargin:"0px",threshold:0},P=function(t){return function(){function e(t){var n=t.preLoad,i=t.error,r=t.throttleWait,o=t.preLoadTop,a=t.dispatchEvent,s=t.loading,c=t.attempt,u=t.silent,h=void 0===u||u,d=t.scale,f=t.listenEvents,p=(t.hasbind,t.filter),m=t.adapter,g=t.observer,b=t.observerOptions;l(this,e),this.version="1.2.3",this.mode=y.event,this.ListenerQueue=[],this.TargetIndex=0,this.TargetQueue=[],this.options={silent:h,dispatchEvent:!!a,throttleWait:r||200,preLoad:n||1.3,preLoadTop:o||0,error:i||L,loading:s||L,attempt:c||3,scale:d||x(d),ListenEvents:f||O,hasbind:!1,supportWebp:function(){if(!v)return!1;var t=!0,e=document;try{var n=e.createElement("object");n.type="image/webp",n.style.visibility="hidden",n.innerHTML="!",e.body.appendChild(n),t=!n.offsetWidth,e.body.removeChild(n)}catch(e){t=!1}return t}(),filter:p||{},adapter:m||{},observer:!!g,observerOptions:b||k},this._initEvent(),this.lazyLoadHandler=function(t,e){var n=null,i=0;return function(){if(!n){var r=this,o=arguments,a=function(){i=Date.now(),n=!1,t.apply(r,o)};Date.now()-i>=e?a():n=setTimeout(a,e)}}}(this._lazyLoadHandler.bind(this),this.options.throttleWait),this.setMode(this.options.observer?y.observer:y.event)}return u(e,[{key:"config",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};m(this.options,t)}},{key:"performance",value:function(){var t=[];return this.ListenerQueue.map(function(e){t.push(e.performance())}),t}},{key:"addLazyBox",value:function(t){this.ListenerQueue.push(t),v&&(this._addListenerTarget(window),this._observer&&this._observer.observe(t.el),t.$el&&t.$el.parentNode&&this._addListenerTarget(t.$el.parentNode))}},{key:"add",value:function(e,n,i){var r=this;if(function(t,e){for(var n=!1,i=0,r=t.length;i<r;i++)if(e(t[i])){n=!0;break}return n}(this.ListenerQueue,function(t){return t.el===e}))return this.update(e,n),t.nextTick(this.lazyLoadHandler);var a=this._valueFormatter(n.value),s=a.src,c=a.loading,l=a.error;t.nextTick(function(){s=o(e,r.options.scale)||s,r._observer&&r._observer.observe(e);var a=Object.keys(n.modifiers)[0],u=void 0;a&&(u=(u=i.context.$refs[a])?u.$el||u:document.getElementById(a)),u||(u=function(t){if(v){if(!(t instanceof HTMLElement))return window;for(var e=t;e&&e!==document.body&&e!==document.documentElement&&e.parentNode;){if(/(scroll|auto)/.test(E(e)))return e;e=e.parentNode}return window}}(e));var h=new C({bindType:n.arg,$parent:u,el:e,loading:c,error:l,src:s,elRenderer:r._elRenderer.bind(r),options:r.options});r.ListenerQueue.push(h),v&&(r._addListenerTarget(window),r._addListenerTarget(u)),r.lazyLoadHandler(),t.nextTick(function(){return r.lazyLoadHandler()})})}},{key:"update",value:function(e,n){var i=this,r=this._valueFormatter(n.value),s=r.src,c=r.loading,l=r.error;s=o(e,this.options.scale)||s;var u=a(this.ListenerQueue,function(t){return t.el===e});u&&u.update({src:s,loading:c,error:l}),this._observer&&(this._observer.unobserve(e),this._observer.observe(e)),this.lazyLoadHandler(),t.nextTick(function(){return i.lazyLoadHandler()})}},{key:"remove",value:function(t){if(t){this._observer&&this._observer.unobserve(t);var e=a(this.ListenerQueue,function(e){return e.el===t});e&&(this._removeListenerTarget(e.$parent),this._removeListenerTarget(window),r(this.ListenerQueue,e)&&e.destroy())}}},{key:"removeComponent",value:function(t){t&&(r(this.ListenerQueue,t),this._observer&&this._observer.unobserve(t.el),t.$parent&&t.$el.parentNode&&this._removeListenerTarget(t.$el.parentNode),this._removeListenerTarget(window))}},{key:"setMode",value:function(t){var e=this;g||t!==y.observer||(t=y.event),this.mode=t,t===y.event?(this._observer&&(this.ListenerQueue.forEach(function(t){e._observer.unobserve(t.el)}),this._observer=null),this.TargetQueue.forEach(function(t){e._initListen(t.el,!0)})):(this.TargetQueue.forEach(function(t){e._initListen(t.el,!1)}),this._initIntersectionObserver())}},{key:"_addListenerTarget",value:function(t){if(t){var e=a(this.TargetQueue,function(e){return e.el===t});return e?e.childrenCount++:(e={el:t,id:++this.TargetIndex,childrenCount:1,listened:!0},this.mode===y.event&&this._initListen(e.el,!0),this.TargetQueue.push(e)),this.TargetIndex}}},{key:"_removeListenerTarget",value:function(t){var e=this;this.TargetQueue.forEach(function(n,i){n.el===t&&(--n.childrenCount||(e._initListen(n.el,!1),e.TargetQueue.splice(i,1),n=null))})}},{key:"_initListen",value:function(t,e){var n=this;this.options.ListenEvents.forEach(function(i){return w[e?"on":"off"](t,i,n.lazyLoadHandler)})}},{key:"_initEvent",value:function(){var t=this;this.Event={listeners:{loading:[],loaded:[],error:[]}},this.$on=function(e,n){t.Event.listeners[e].push(n)},this.$once=function(e,n){var i=t;t.$on(e,function t(){i.$off(e,t),n.apply(i,arguments)})},this.$off=function(e,n){n?r(t.Event.listeners[e],n):t.Event.listeners[e]=[]},this.$emit=function(e,n,i){t.Event.listeners[e].forEach(function(t){return t(n,i)})}}},{key:"_lazyLoadHandler",value:function(){var t=this;this.ListenerQueue.forEach(function(e,n){e.state.loaded||e.checkInView()&&e.load(function(){!e.error&&e.loaded&&t.ListenerQueue.splice(n,1)})})}},{key:"_initIntersectionObserver",value:function(){var t=this;g&&(this._observer=new IntersectionObserver(this._observerHandler.bind(this),this.options.observerOptions),this.ListenerQueue.length&&this.ListenerQueue.forEach(function(e){t._observer.observe(e.el)}))}},{key:"_observerHandler",value:function(t,e){var n=this;t.forEach(function(t){t.isIntersecting&&n.ListenerQueue.forEach(function(e){if(e.el===t.target){if(e.state.loaded)return n._observer.unobserve(e.el);e.load()}})})}},{key:"_elRenderer",value:function(t,e,n){if(t.el){var i=t.el,r=t.bindType,o=void 0;switch(e){case"loading":o=t.loading;break;case"error":o=t.error;break;default:o=t.src}if(r?i.style[r]='url("'+o+'")':i.getAttribute("src")!==o&&i.setAttribute("src",o),i.setAttribute("lazy",e),this.$emit(e,t,n),this.options.adapter[e]&&this.options.adapter[e](t,this.options),this.options.dispatchEvent){var a=new b(e,{detail:t});i.dispatchEvent(a)}}}},{key:"_valueFormatter",value:function(t){var e=t,n=this.options.loading,i=this.options.error;return function(t){return null!==t&&"object"===(void 0===t?"undefined":c(t))}(t)&&(t.src||this.options.silent||console.error("Vue Lazyload warning: miss src with "+t),e=t.src,n=t.loading||this.options.loading,i=t.error||this.options.error),{src:e,loading:n,error:i}}}]),e}()},A=function(){function t(e){var n=e.lazy;l(this,t),this.lazy=n,n.lazyContainerMananger=this,this._queue=[]}return u(t,[{key:"bind",value:function(t,e,n){var i=new D({el:t,binding:e,vnode:n,lazy:this.lazy});this._queue.push(i)}},{key:"update",value:function(t,e,n){var i=a(this._queue,function(e){return e.el===t});i&&i.update({el:t,binding:e,vnode:n})}},{key:"unbind",value:function(t,e,n){var i=a(this._queue,function(e){return e.el===t});i&&(i.clear(),r(this._queue,i))}}]),t}(),I={selector:"img"},D=function(){function t(e){var n=e.el,i=e.binding,r=e.vnode,o=e.lazy;l(this,t),this.el=null,this.vnode=r,this.binding=i,this.options={},this.lazy=o,this._queue=[],this.update({el:n,binding:i})}return u(t,[{key:"update",value:function(t){var e=this,n=t.el,i=t.binding;this.el=n,this.options=m({},I,i.value),this.getImgs().forEach(function(t){e.lazy.add(t,m({},e.binding,{value:{src:t.dataset.src,error:t.dataset.error,loading:t.dataset.loading}}),e.vnode)})}},{key:"getImgs",value:function(){return function(t){for(var e=t.length,n=[],i=0;i<e;i++)n.push(t[i]);return n}(this.el.querySelectorAll(this.options.selector))}},{key:"clear",value:function(){var t=this;this.getImgs().forEach(function(e){return t.lazy.remove(e)}),this.vnode=null,this.binding=null,this.lazy=null}}]),t}();return{install:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=new(P(t))(e),i=new A({lazy:n}),r="2"===t.version.split(".")[0];t.prototype.$Lazyload=n,e.lazyComponent&&t.component("lazy-component",function(t){return{props:{tag:{type:String,default:"div"}},render:function(t){return!1===this.show?t(this.tag):t(this.tag,null,this.$slots.default)},data:function(){return{el:null,state:{loaded:!1},rect:{},show:!1}},mounted:function(){this.el=this.$el,t.addLazyBox(this),t.lazyLoadHandler()},beforeDestroy:function(){t.removeComponent(this)},methods:{getRect:function(){this.rect=this.$el.getBoundingClientRect()},checkInView:function(){return this.getRect(),v&&this.rect.top<window.innerHeight*t.options.preLoad&&this.rect.bottom>0&&this.rect.left<window.innerWidth*t.options.preLoad&&this.rect.right>0},load:function(){this.show=!0,this.state.loaded=!0,this.$emit("show",this)}}}}(n)),r?(t.directive("lazy",{bind:n.add.bind(n),update:n.update.bind(n),componentUpdated:n.lazyLoadHandler.bind(n),unbind:n.remove.bind(n)}),t.directive("lazy-container",{bind:i.bind.bind(i),update:i.update.bind(i),unbind:i.unbind.bind(i)})):(t.directive("lazy",{bind:n.lazyLoadHandler.bind(n),update:function(t,e){m(this.vm.$refs,this.vm.$els),n.add(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){n.remove(this.el)}}),t.directive("lazy-container",{update:function(t,e){i.update(this.el,{modifiers:this.modifiers||{},arg:this.arg,value:t,oldValue:e},{context:this.vm})},unbind:function(){i.unbind(this.el)}}))}}},t.exports=i()},cwmK:function(t,e){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},d075:function(t,e,n){var i=n("OzIq").document;t.exports=i&&i.documentElement},dNDb:function(t,e){t.exports=function(t){try{return{e:!1,v:t()}}catch(t){return{e:!0,v:t}}}},dSUw:function(t,e,n){"use strict";var i=n("Dgii"),r=n("zq/X");t.exports=n("0Rih")("Set",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{add:function(t){return i.def(r(this,"Set"),t=0===t?0:t,t)}},i)},dSzd:function(t,e,n){var i=n("e8AB")("wks"),r=n("3Eo+"),o=n("7KvD").Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},dTzs:function(t,e,n){n("77Ug")("Float32",4,function(t){return function(e,n,i){return t(this,e,n,i)}})},dULJ:function(t,e,n){var i=n("Ds5P"),r=n("OgTs");i(i.S+i.F*(Number.parseInt!=r),"Number",{parseInt:r})},dY0y:function(t,e,n){var i=n("dSzd")("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},dich:function(t,e,n){var i=n("Ds5P"),r=n("Sejc");i(i.G+i.B,{setImmediate:r.set,clearImmediate:r.clear})},"dm+7":function(t,e,n){var i=n("Ds5P");i(i.S,"Reflect",{has:function(t,e){return e in t}})},dm6P:function(t,e,n){"use strict";t.exports=n("V3l/")||!n("zgIt")(function(){var t=Math.random();__defineSetter__.call(null,t,function(){}),delete n("OzIq")[t]})},dxQb:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("FryR"),o=n("XSOZ"),a=n("lDLk");n("bUqO")&&i(i.P+n("dm6P"),"Object",{__defineSetter__:function(t,e){a.f(r(this),t,{set:o(e),enumerable:!0,configurable:!0})}})},e6n0:function(t,e,n){var i=n("evD5").f,r=n("D2L2"),o=n("dSzd")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},e8AB:function(t,e,n){var i=n("FeBl"),r=n("7KvD"),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});(t.exports=function(t,e){return o[t]||(o[t]=void 0!==e?e:{})})("versions",[]).push({version:i.version,mode:n("O4g8")?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},eC2H:function(t,e,n){n("3i66")("getOwnPropertyNames",function(){return n("bG/2").f})},eVIH:function(t,e,n){"use strict";n("y325")("italics",function(t){return function(){return t(this,"i","","")}})},evD5:function(t,e,n){var i=n("77Pl"),r=n("SfB7"),o=n("MmMw"),a=Object.defineProperty;e.f=n("+E39")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},exGp:function(t,e,n){"use strict";e.__esModule=!0;var i,r=n("//Fk"),o=(i=r)&&i.__esModule?i:{default:i};e.default=function(t){return function(){var e=t.apply(this,arguments);return new o.default(function(t,n){return function i(r,a){try{var s=e[r](a),c=s.value}catch(t){return void n(t)}if(!s.done)return o.default.resolve(c).then(function(t){i("next",t)},function(t){i("throw",t)});t(c)}("next")})}}},fJSx:function(t,e,n){"use strict";var i=n("A16L"),r=n("1aA0").getWeak,o=n("DIVP"),a=n("UKM+"),s=n("9GpA"),c=n("vmSO"),l=n("LhTa"),u=n("WBcL"),h=n("zq/X"),d=l(5),f=l(6),p=0,m=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},g=function(t,e){return d(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=g(this,t);if(e)return e[1]},has:function(t){return!!g(this,t)},set:function(t,e){var n=g(this,t);n?n[1]=e:this.a.push([t,e])},delete:function(t){var e=f(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},t.exports={getConstructor:function(t,e,n,o){var l=t(function(t,i){s(t,l,e,"_i"),t._t=e,t._i=p++,t._l=void 0,void 0!=i&&c(i,n,t[o],t)});return i(l.prototype,{delete:function(t){if(!a(t))return!1;var n=r(t);return!0===n?m(h(this,e)).delete(t):n&&u(n,this._i)&&delete n[this._i]},has:function(t){if(!a(t))return!1;var n=r(t);return!0===n?m(h(this,e)).has(t):n&&u(n,this._i)}}),l},def:function(t,e,n){var i=r(o(e),!0);return!0===i?m(t).set(e,n):i[t._i]=n,t},ufstore:m}},fJUb:function(t,e,n){var i=n("77Pl"),r=n("EqjI"),o=n("qARP");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},fOdq:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("LhTa")(2);i(i.P+i.F*!n("NNrz")([].filter,!0),"Array",{filter:function(t){return r(this,t,arguments[1])}})},fS0v:function(t,e,n){var i=n("ydD5");t.exports=function(t,e){if("number"!=typeof t&&"Number"!=i(t))throw TypeError(e);return+t}},fU25:function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},fZjL:function(t,e,n){t.exports={default:n("jFbC"),__esModule:!0}},fkB2:function(t,e,n){var i=n("UuGF"),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},fx22:function(t,e,n){for(var i=n("WgSQ"),r=n("Qh14"),o=n("R3AP"),a=n("OzIq"),s=n("2p1q"),c=n("bN1p"),l=n("kkCw"),u=l("iterator"),h=l("toStringTag"),d=c.Array,f={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=r(f),m=0;m<p.length;m++){var v,g=p[m],y=f[g],b=a[g],x=b&&b.prototype;if(x&&(x[u]||s(x,u,d),x[h]||s(x,h,g),c[g]=d,y))for(v in i)x[v]||o(x,v,i[v],!0)}},fxnj:function(t,e){var n;n="object"==typeof window&&window,t.exports=function(t,e){var n,i,r,o,a,s,c,l,u,h,d,f,p,m,v,g,y,b,x,_,w,S;if(t)return t.jWeixin?t.jWeixin:(n={config:"preVerifyJSAPI",onMenuShareTimeline:"menu:share:timeline",onMenuShareAppMessage:"menu:share:appmessage",onMenuShareQQ:"menu:share:qq",onMenuShareWeibo:"menu:share:weiboApp",onMenuShareQZone:"menu:share:QZone",previewImage:"imagePreview",getLocation:"geoLocation",openProductSpecificView:"openProductViewWithPid",addCard:"batchAddCard",openCard:"batchViewCard",chooseWXPay:"getBrandWCPayRequest",openEnterpriseRedPacket:"getRecevieBizHongBaoRequest",startSearchBeacons:"startMonitoringBeacons",stopSearchBeacons:"stopMonitoringBeacons",onSearchBeacons:"onBeaconsInRange",consumeAndShareCard:"consumedShareCard",openAddress:"editAddress"},i=function(){var t,e={};for(t in n)e[n[t]]=t;return e}(),r=t.document,o=r.title,a=navigator.userAgent.toLowerCase(),f=navigator.platform.toLowerCase(),s=!(!f.match("mac")&&!f.match("win")),c=-1!=a.indexOf("wxdebugger"),l=-1!=a.indexOf("micromessenger"),u=-1!=a.indexOf("android"),h=-1!=a.indexOf("iphone")||-1!=a.indexOf("ipad"),d=(f=a.match(/micromessenger\/(\d+\.\d+\.\d+)/)||a.match(/micromessenger\/(\d+\.\d+)/))?f[1]:"",p={initStartTime:A(),initEndTime:0,preVerifyStartTime:0,preVerifyEndTime:0},m={version:1,appId:"",initTime:0,preVerifyTime:0,networkType:"",isPreVerifyOk:1,systemType:h?1:u?2:-1,clientVersion:d,url:encodeURIComponent(location.href)},v={},g={_completes:[]},y={state:0,data:{}},I(function(){p.initEndTime=A()}),b=!1,x=[],_={config:function(e){k("config",v=e);var i=!1!==v.check;I(function(){if(i)T(n.config,{verifyJsApiList:O(v.jsApiList),verifyOpenTagList:O(v.openTagList)},(g._complete=function(t){p.preVerifyEndTime=A(),y.state=1,y.data=t},g.success=function(t){m.isPreVerifyOk=0},g.fail=function(t){g._fail?g._fail(t):y.state=-1},(o=g._completes).push(function(){P()}),g.complete=function(t){for(var e=0,n=o.length;e<n;++e)o[e]();g._completes=[]},g)),p.preVerifyStartTime=A();else{y.state=1;for(var t=g._completes,e=0,r=t.length;e<r;++e)t[e]();g._completes=[]}var o}),_.invoke||(_.invoke=function(e,n,i){t.WeixinJSBridge&&WeixinJSBridge.invoke(e,M(n),i)},_.on=function(e,n){t.WeixinJSBridge&&WeixinJSBridge.on(e,n)})},ready:function(t){(0!=y.state||(g._completes.push(t),!l&&v.debug))&&t()},error:function(t){d<"6.0.2"||(-1==y.state?t(y.data):g._fail=t)},checkJsApi:function(t){T("checkJsApi",{jsApiList:O(t.jsApiList)},(t._complete=function(t){u&&(n=t.checkResult)&&(t.checkResult=JSON.parse(n));var e,n=t,r=n.checkResult;for(e in r){var o=i[e];o&&(r[o]=r[e],delete r[e])}},t))},onMenuShareTimeline:function(t){E(n.onMenuShareTimeline,{complete:function(){T("shareTimeline",{title:t.title||o,desc:t.title||o,img_url:t.imgUrl||"",link:t.link||location.href,type:t.type||"link",data_url:t.dataUrl||""},t)}},t)},onMenuShareAppMessage:function(t){E(n.onMenuShareAppMessage,{complete:function(e){"favorite"===e.scene?T("sendAppMessage",{title:t.title||o,desc:t.desc||"",link:t.link||location.href,img_url:t.imgUrl||"",type:t.type||"link",data_url:t.dataUrl||""}):T("sendAppMessage",{title:t.title||o,desc:t.desc||"",link:t.link||location.href,img_url:t.imgUrl||"",type:t.type||"link",data_url:t.dataUrl||""},t)}},t)},onMenuShareQQ:function(t){E(n.onMenuShareQQ,{complete:function(){T("shareQQ",{title:t.title||o,desc:t.desc||"",img_url:t.imgUrl||"",link:t.link||location.href},t)}},t)},onMenuShareWeibo:function(t){E(n.onMenuShareWeibo,{complete:function(){T("shareWeiboApp",{title:t.title||o,desc:t.desc||"",img_url:t.imgUrl||"",link:t.link||location.href},t)}},t)},onMenuShareQZone:function(t){E(n.onMenuShareQZone,{complete:function(){T("shareQZone",{title:t.title||o,desc:t.desc||"",img_url:t.imgUrl||"",link:t.link||location.href},t)}},t)},updateTimelineShareData:function(t){T("updateTimelineShareData",{title:t.title,link:t.link,imgUrl:t.imgUrl},t)},updateAppMessageShareData:function(t){T("updateAppMessageShareData",{title:t.title,desc:t.desc,link:t.link,imgUrl:t.imgUrl},t)},startRecord:function(t){T("startRecord",{},t)},stopRecord:function(t){T("stopRecord",{},t)},onVoiceRecordEnd:function(t){E("onVoiceRecordEnd",t)},playVoice:function(t){T("playVoice",{localId:t.localId},t)},pauseVoice:function(t){T("pauseVoice",{localId:t.localId},t)},stopVoice:function(t){T("stopVoice",{localId:t.localId},t)},onVoicePlayEnd:function(t){E("onVoicePlayEnd",t)},uploadVoice:function(t){T("uploadVoice",{localId:t.localId,isShowProgressTips:0==t.isShowProgressTips?0:1},t)},downloadVoice:function(t){T("downloadVoice",{serverId:t.serverId,isShowProgressTips:0==t.isShowProgressTips?0:1},t)},translateVoice:function(t){T("translateVoice",{localId:t.localId,isShowProgressTips:0==t.isShowProgressTips?0:1},t)},chooseImage:function(t){T("chooseImage",{scene:"1|2",count:t.count||9,sizeType:t.sizeType||["original","compressed"],sourceType:t.sourceType||["album","camera"]},(t._complete=function(t){if(u){var e=t.localIds;try{e&&(t.localIds=JSON.parse(e))}catch(t){}}},t))},getLocation:function(t){t=t||{},T(n.getLocation,{type:t.type||"wgs84"},(t._complete=function(t){delete t.type},t))},previewImage:function(t){T(n.previewImage,{current:t.current,urls:t.urls},t)},uploadImage:function(t){T("uploadImage",{localId:t.localId,isShowProgressTips:0==t.isShowProgressTips?0:1},t)},downloadImage:function(t){T("downloadImage",{serverId:t.serverId,isShowProgressTips:0==t.isShowProgressTips?0:1},t)},getLocalImgData:function(t){!1===b?(b=!0,T("getLocalImgData",{localId:t.localId},(t._complete=function(t){var e;b=!1,0<x.length&&(e=x.shift(),wx.getLocalImgData(e))},t))):x.push(t)},getNetworkType:function(t){T("getNetworkType",{},(t._complete=function(t){var e=t,t=e.errMsg,n=(e.errMsg="getNetworkType:ok",e.subtype);if(delete e.subtype,n)e.networkType=n;else{var n=t.indexOf(":"),i=t.substring(n+1);switch(i){case"wifi":case"edge":case"wwan":e.networkType=i;break;default:e.errMsg="getNetworkType:fail"}}},t))},openLocation:function(t){T("openLocation",{latitude:t.latitude,longitude:t.longitude,name:t.name||"",address:t.address||"",scale:t.scale||28,infoUrl:t.infoUrl||""},t)},hideOptionMenu:function(t){T("hideOptionMenu",{},t)},showOptionMenu:function(t){T("showOptionMenu",{},t)},closeWindow:function(t){T("closeWindow",{},t=t||{})},hideMenuItems:function(t){T("hideMenuItems",{menuList:t.menuList},t)},showMenuItems:function(t){T("showMenuItems",{menuList:t.menuList},t)},hideAllNonBaseMenuItem:function(t){T("hideAllNonBaseMenuItem",{},t)},showAllNonBaseMenuItem:function(t){T("showAllNonBaseMenuItem",{},t)},scanQRCode:function(t){T("scanQRCode",{needResult:(t=t||{}).needResult||0,scanType:t.scanType||["qrCode","barCode"]},(t._complete=function(t){var e;h&&(e=t.resultStr)&&(e=JSON.parse(e),t.resultStr=e&&e.scan_code&&e.scan_code.scan_result)},t))},openAddress:function(t){T(n.openAddress,{},(t._complete=function(t){(t=t).postalCode=t.addressPostalCode,delete t.addressPostalCode,t.provinceName=t.proviceFirstStageName,delete t.proviceFirstStageName,t.cityName=t.addressCitySecondStageName,delete t.addressCitySecondStageName,t.countryName=t.addressCountiesThirdStageName,delete t.addressCountiesThirdStageName,t.detailInfo=t.addressDetailInfo,delete t.addressDetailInfo},t))},openProductSpecificView:function(t){T(n.openProductSpecificView,{pid:t.productId,view_type:t.viewType||0,ext_info:t.extInfo},t)},addCard:function(t){for(var e=t.cardList,i=[],r=0,o=e.length;r<o;++r){var a=e[r],a={card_id:a.cardId,card_ext:a.cardExt};i.push(a)}T(n.addCard,{card_list:i},(t._complete=function(t){if(e=t.card_list){for(var e,n=0,i=(e=JSON.parse(e)).length;n<i;++n){var r=e[n];r.cardId=r.card_id,r.cardExt=r.card_ext,r.isSuccess=!!r.is_succ,delete r.card_id,delete r.card_ext,delete r.is_succ}t.cardList=e,delete t.card_list}},t))},chooseCard:function(t){T("chooseCard",{app_id:v.appId,location_id:t.shopId||"",sign_type:t.signType||"SHA1",card_id:t.cardId||"",card_type:t.cardType||"",card_sign:t.cardSign,time_stamp:t.timestamp+"",nonce_str:t.nonceStr},(t._complete=function(t){t.cardList=t.choose_card_info,delete t.choose_card_info},t))},openCard:function(t){for(var e=t.cardList,i=[],r=0,o=e.length;r<o;++r){var a=e[r],a={card_id:a.cardId,code:a.code};i.push(a)}T(n.openCard,{card_list:i},t)},consumeAndShareCard:function(t){T(n.consumeAndShareCard,{consumedCardId:t.cardId,consumedCode:t.code},t)},chooseWXPay:function(t){T(n.chooseWXPay,C(t),t),P({jsApiName:"chooseWXPay"})},openEnterpriseRedPacket:function(t){T(n.openEnterpriseRedPacket,C(t),t)},startSearchBeacons:function(t){T(n.startSearchBeacons,{ticket:t.ticket},t)},stopSearchBeacons:function(t){T(n.stopSearchBeacons,{},t)},onSearchBeacons:function(t){E(n.onSearchBeacons,t)},openEnterpriseChat:function(t){T("openEnterpriseChat",{useridlist:t.userIds,chatname:t.groupName},t)},launchMiniProgram:function(t){T("launchMiniProgram",{targetAppId:t.targetAppId,path:function(t){var e;if("string"==typeof t&&0<t.length)return e=t.split("?")[0],e+=".html",void 0!==(t=t.split("?")[1])?e+"?"+t:e}(t.path),envVersion:t.envVersion},t)},openBusinessView:function(t){T("openBusinessView",{businessType:t.businessType,queryString:t.queryString||"",envVersion:t.envVersion},(t._complete=function(t){if(u){var e=t.extraData;if(e)try{t.extraData=JSON.parse(e)}catch(e){t.extraData={}}}},t))},miniProgram:{navigateBack:function(t){t=t||{},I(function(){T("invokeMiniProgramAPI",{name:"navigateBack",arg:{delta:t.delta||1}},t)})},navigateTo:function(t){I(function(){T("invokeMiniProgramAPI",{name:"navigateTo",arg:{url:t.url}},t)})},redirectTo:function(t){I(function(){T("invokeMiniProgramAPI",{name:"redirectTo",arg:{url:t.url}},t)})},switchTab:function(t){I(function(){T("invokeMiniProgramAPI",{name:"switchTab",arg:{url:t.url}},t)})},reLaunch:function(t){I(function(){T("invokeMiniProgramAPI",{name:"reLaunch",arg:{url:t.url}},t)})},postMessage:function(t){I(function(){T("invokeMiniProgramAPI",{name:"postMessage",arg:t.data||{}},t)})},getEnv:function(e){I(function(){e({miniprogram:"miniprogram"===t.__wxjs_environment})})}}},w=1,S={},r.addEventListener("error",function(t){var e,n,i;u||(i=(e=t.target).tagName,n=e.src,"IMG"!=i&&"VIDEO"!=i&&"AUDIO"!=i&&"SOURCE"!=i)||-1!=n.indexOf("wxlocalresource://")&&(t.preventDefault(),t.stopPropagation(),(i=e["wx-id"])||(i=w++,e["wx-id"]=i),S[i]||(S[i]=!0,wx.ready(function(){wx.getLocalImgData({localId:n,success:function(t){e.src=t.localData}})})))},!0),r.addEventListener("load",function(t){var e;u||(e=(t=t.target).tagName,t.src,"IMG"!=e&&"VIDEO"!=e&&"AUDIO"!=e&&"SOURCE"!=e)||(e=t["wx-id"])&&(S[e]=!1)},!0),e&&(t.wx=t.jWeixin=_),_);function T(e,n,i){t.WeixinJSBridge?WeixinJSBridge.invoke(e,M(n),function(t){L(e,t,i)}):k(e,i)}function E(e,n,i){t.WeixinJSBridge?WeixinJSBridge.on(e,function(t){i&&i.trigger&&i.trigger(t),L(e,t,n)}):k(e,i||n)}function M(t){return(t=t||{}).appId=v.appId,t.verifyAppId=v.appId,t.verifySignType="sha1",t.verifyTimestamp=v.timestamp+"",t.verifyNonceStr=v.nonceStr,t.verifySignature=v.signature,t}function C(t){return{timeStamp:t.timestamp+"",nonceStr:t.nonceStr,package:t.package,paySign:t.paySign,signType:t.signType||"SHA1"}}function L(t,e,n){"openEnterpriseChat"!=t&&"openBusinessView"!==t||(e.errCode=e.err_code),delete e.err_code,delete e.err_desc,delete e.err_detail;var r=e.errMsg,t=(r||(r=e.err_msg,delete e.err_msg,r=function(t,e){var n,r=i[t];return r&&(t=r),r="ok",e&&(n=e.indexOf(":"),"access denied"!=(r=(r=(r=-1!=(r=-1!=(r="failed"==(r="confirm"==(r=e.substring(n+1))?"ok":r)?"fail":r).indexOf("failed_")?r.substring(7):r).indexOf("fail_")?r.substring(5):r).replace(/_/g," ")).toLowerCase())&&"no permission to execute"!=r||(r="permission denied"),""==(r="config"==t&&"function not exist"==r?"ok":r))&&(r="fail"),e=t+":"+r}(t,r),e.errMsg=r),(n=n||{})._complete&&(n._complete(e),delete n._complete),r=e.errMsg||"",v.debug&&!n.isInnerInvoke&&alert(JSON.stringify(e)),r.indexOf(":"));switch(r.substring(t+1)){case"ok":n.success&&n.success(e);break;case"cancel":n.cancel&&n.cancel(e);break;default:n.fail&&n.fail(e)}n.complete&&n.complete(e)}function O(t){if(t){for(var e=0,i=t.length;e<i;++e){var r=t[e],r=n[r];r&&(t[e]=r)}return t}}function k(t,e){var n;!v.debug||e&&e.isInnerInvoke||((n=i[t])&&(t=n),e&&e._complete&&delete e._complete,console.log('"'+t+'",',e||""))}function P(t){var e;s||c||v.debug||d<"6.0.2"||m.systemType<0||(e=new Image,m.appId=v.appId,m.initTime=p.initEndTime-p.initStartTime,m.preVerifyTime=p.preVerifyEndTime-p.preVerifyStartTime,_.getNetworkType({isInnerInvoke:!0,success:function(n){m.networkType=n.networkType,n="https://open.weixin.qq.com/sdk/report?v="+m.version+"&o="+m.isPreVerifyOk+"&s="+m.systemType+"&c="+m.clientVersion+"&a="+m.appId+"&n="+m.networkType+"&i="+m.initTime+"&p="+m.preVerifyTime+"&u="+m.url+"&jsapi_name="+(t?t.jsApiName:""),e.src=n}}))}function A(){return(new Date).getTime()}function I(e){l&&(t.WeixinJSBridge?e():r.addEventListener&&r.addEventListener("WeixinJSBridgeReady",e,!1))}console.warn("can't use weixin-js-sdk in server side")}(n)},"g/m8":function(t,e,n){var i=n("cwmK"),r=Math.pow,o=r(2,-52),a=r(2,-23),s=r(2,127)*(2-a),c=r(2,-126);t.exports=Math.fround||function(t){var e,n,r=Math.abs(t),l=i(t);return r<c?l*(r/c/a+1/o-1/o)*c*a:(n=(e=(1+a/o)*r)-(e-r))>s||n!=n?l*(1/0):l*n}},g36u:function(t,e,n){var i=n("OzIq"),r=n("Sejc").set,o=i.MutationObserver||i.WebKitMutationObserver,a=i.process,s=i.Promise,c="process"==n("ydD5")(a);t.exports=function(){var t,e,n,l=function(){var i,r;for(c&&(i=a.domain)&&i.exit();t;){r=t.fn,t=t.next;try{r()}catch(i){throw t?n():e=void 0,i}}e=void 0,i&&i.enter()};if(c)n=function(){a.nextTick(l)};else if(!o||i.navigator&&i.navigator.standalone)if(s&&s.resolve){var u=s.resolve(void 0);n=function(){u.then(l)}}else n=function(){r.call(i,l)};else{var h=!0,d=document.createTextNode("");new o(l).observe(d,{characterData:!0}),n=function(){d.data=h=!h}}return function(i){var r={fn:i,next:void 0};e&&(e.next=r),t||(t=r,n()),e=r}}},gPva:function(t,e,n){var i=n("UKM+");n("3i66")("isExtensible",function(t){return function(e){return!!i(e)&&(!t||t(e))}})},gYYG:function(t,e,n){"use strict";var i=n("wC1N"),r={};r[n("kkCw")("toStringTag")]="z",r+""!="[object z]"&&n("R3AP")(Object.prototype,"toString",function(){return"[object "+i(this)+"]"},!0)},gbyG:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("ot5s")(!0);i(i.P,"Array",{includes:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}}),n("RhFG")("includes")},gsqX:function(t,e,n){var i;i=function(){"use strict";var t="undefined"==typeof document?{body:{},addEventListener:function(){},removeEventListener:function(){},activeElement:{blur:function(){},nodeName:""},querySelector:function(){return null},querySelectorAll:function(){return[]},getElementById:function(){return null},createEvent:function(){return{initEvent:function(){}}},createElement:function(){return{children:[],childNodes:[],style:{},setAttribute:function(){},getElementsByTagName:function(){return[]}}},location:{hash:""}}:document,e="undefined"==typeof window?{document:t,navigator:{userAgent:""},location:{},history:{},CustomEvent:function(){return this},addEventListener:function(){},removeEventListener:function(){},getComputedStyle:function(){return{getPropertyValue:function(){return""}}},Image:function(){},Date:function(){},screen:{},setTimeout:function(){},clearTimeout:function(){}}:window,n=function(t){for(var e=0;e<t.length;e+=1)this[e]=t[e];return this.length=t.length,this};function i(i,r){var o=[],a=0;if(i&&!r&&i instanceof n)return i;if(i)if("string"==typeof i){var s,c,l=i.trim();if(l.indexOf("<")>=0&&l.indexOf(">")>=0){var u="div";for(0===l.indexOf("<li")&&(u="ul"),0===l.indexOf("<tr")&&(u="tbody"),0!==l.indexOf("<td")&&0!==l.indexOf("<th")||(u="tr"),0===l.indexOf("<tbody")&&(u="table"),0===l.indexOf("<option")&&(u="select"),(c=t.createElement(u)).innerHTML=l,a=0;a<c.childNodes.length;a+=1)o.push(c.childNodes[a])}else for(s=r||"#"!==i[0]||i.match(/[ .<>:~]/)?(r||t).querySelectorAll(i.trim()):[t.getElementById(i.trim().split("#")[1])],a=0;a<s.length;a+=1)s[a]&&o.push(s[a])}else if(i.nodeType||i===e||i===t)o.push(i);else if(i.length>0&&i[0].nodeType)for(a=0;a<i.length;a+=1)o.push(i[a]);return new n(o)}function r(t){for(var e=[],n=0;n<t.length;n+=1)-1===e.indexOf(t[n])&&e.push(t[n]);return e}i.fn=n.prototype,i.Class=n,i.Dom7=n;var o={addClass:function(t){if(void 0===t)return this;for(var e=t.split(" "),n=0;n<e.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.add(e[n]);return this},removeClass:function(t){for(var e=t.split(" "),n=0;n<e.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.remove(e[n]);return this},hasClass:function(t){return!!this[0]&&this[0].classList.contains(t)},toggleClass:function(t){for(var e=t.split(" "),n=0;n<e.length;n+=1)for(var i=0;i<this.length;i+=1)void 0!==this[i]&&void 0!==this[i].classList&&this[i].classList.toggle(e[n]);return this},attr:function(t,e){var n=arguments;if(1===arguments.length&&"string"==typeof t)return this[0]?this[0].getAttribute(t):void 0;for(var i=0;i<this.length;i+=1)if(2===n.length)this[i].setAttribute(t,e);else for(var r in t)this[i][r]=t[r],this[i].setAttribute(r,t[r]);return this},removeAttr:function(t){for(var e=0;e<this.length;e+=1)this[e].removeAttribute(t);return this},data:function(t,e){var n;if(void 0!==e){for(var i=0;i<this.length;i+=1)(n=this[i]).dom7ElementDataStorage||(n.dom7ElementDataStorage={}),n.dom7ElementDataStorage[t]=e;return this}if(n=this[0]){if(n.dom7ElementDataStorage&&t in n.dom7ElementDataStorage)return n.dom7ElementDataStorage[t];var r=n.getAttribute("data-"+t);return r||void 0}},transform:function(t){for(var e=0;e<this.length;e+=1){var n=this[e].style;n.webkitTransform=t,n.transform=t}return this},transition:function(t){"string"!=typeof t&&(t+="ms");for(var e=0;e<this.length;e+=1){var n=this[e].style;n.webkitTransitionDuration=t,n.transitionDuration=t}return this},on:function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var r=e[0],o=e[1],a=e[2],s=e[3];function c(t){var e=t.target;if(e){var n=t.target.dom7EventData||[];if(n.indexOf(t)<0&&n.unshift(t),i(e).is(o))a.apply(e,n);else for(var r=i(e).parents(),s=0;s<r.length;s+=1)i(r[s]).is(o)&&a.apply(r[s],n)}}function l(t){var e=t&&t.target&&t.target.dom7EventData||[];e.indexOf(t)<0&&e.unshift(t),a.apply(this,e)}"function"==typeof e[1]&&(r=(t=e)[0],a=t[1],s=t[2],o=void 0),s||(s=!1);for(var u,h=r.split(" "),d=0;d<this.length;d+=1){var f=this[d];if(o)for(u=0;u<h.length;u+=1){var p=h[u];f.dom7LiveListeners||(f.dom7LiveListeners={}),f.dom7LiveListeners[p]||(f.dom7LiveListeners[p]=[]),f.dom7LiveListeners[p].push({listener:a,proxyListener:c}),f.addEventListener(p,c,s)}else for(u=0;u<h.length;u+=1){var m=h[u];f.dom7Listeners||(f.dom7Listeners={}),f.dom7Listeners[m]||(f.dom7Listeners[m]=[]),f.dom7Listeners[m].push({listener:a,proxyListener:l}),f.addEventListener(m,l,s)}}return this},off:function(){for(var t,e=[],n=arguments.length;n--;)e[n]=arguments[n];var i=e[0],r=e[1],o=e[2],a=e[3];"function"==typeof e[1]&&(i=(t=e)[0],o=t[1],a=t[2],r=void 0),a||(a=!1);for(var s=i.split(" "),c=0;c<s.length;c+=1)for(var l=s[c],u=0;u<this.length;u+=1){var h=this[u],d=void 0;if(!r&&h.dom7Listeners?d=h.dom7Listeners[l]:r&&h.dom7LiveListeners&&(d=h.dom7LiveListeners[l]),d&&d.length)for(var f=d.length-1;f>=0;f-=1){var p=d[f];o&&p.listener===o?(h.removeEventListener(l,p.proxyListener,a),d.splice(f,1)):o&&p.listener&&p.listener.dom7proxy&&p.listener.dom7proxy===o?(h.removeEventListener(l,p.proxyListener,a),d.splice(f,1)):o||(h.removeEventListener(l,p.proxyListener,a),d.splice(f,1))}}return this},trigger:function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];for(var r=n[0].split(" "),o=n[1],a=0;a<r.length;a+=1)for(var s=r[a],c=0;c<this.length;c+=1){var l=this[c],u=void 0;try{u=new e.CustomEvent(s,{detail:o,bubbles:!0,cancelable:!0})}catch(e){(u=t.createEvent("Event")).initEvent(s,!0,!0),u.detail=o}l.dom7EventData=n.filter(function(t,e){return e>0}),l.dispatchEvent(u),l.dom7EventData=[],delete l.dom7EventData}return this},transitionEnd:function(t){var e,n=["webkitTransitionEnd","transitionend"],i=this;function r(o){if(o.target===this)for(t.call(this,o),e=0;e<n.length;e+=1)i.off(n[e],r)}if(t)for(e=0;e<n.length;e+=1)i.on(n[e],r);return this},outerWidth:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetWidth+parseFloat(e.getPropertyValue("margin-right"))+parseFloat(e.getPropertyValue("margin-left"))}return this[0].offsetWidth}return null},outerHeight:function(t){if(this.length>0){if(t){var e=this.styles();return this[0].offsetHeight+parseFloat(e.getPropertyValue("margin-top"))+parseFloat(e.getPropertyValue("margin-bottom"))}return this[0].offsetHeight}return null},offset:function(){if(this.length>0){var n=this[0],i=n.getBoundingClientRect(),r=t.body,o=n.clientTop||r.clientTop||0,a=n.clientLeft||r.clientLeft||0,s=n===e?e.scrollY:n.scrollTop,c=n===e?e.scrollX:n.scrollLeft;return{top:i.top+s-o,left:i.left+c-a}}return null},css:function(t,n){var i;if(1===arguments.length){if("string"!=typeof t){for(i=0;i<this.length;i+=1)for(var r in t)this[i].style[r]=t[r];return this}if(this[0])return e.getComputedStyle(this[0],null).getPropertyValue(t)}if(2===arguments.length&&"string"==typeof t){for(i=0;i<this.length;i+=1)this[i].style[t]=n;return this}return this},each:function(t){if(!t)return this;for(var e=0;e<this.length;e+=1)if(!1===t.call(this[e],e,this[e]))return this;return this},html:function(t){if(void 0===t)return this[0]?this[0].innerHTML:void 0;for(var e=0;e<this.length;e+=1)this[e].innerHTML=t;return this},text:function(t){if(void 0===t)return this[0]?this[0].textContent.trim():null;for(var e=0;e<this.length;e+=1)this[e].textContent=t;return this},is:function(r){var o,a,s=this[0];if(!s||void 0===r)return!1;if("string"==typeof r){if(s.matches)return s.matches(r);if(s.webkitMatchesSelector)return s.webkitMatchesSelector(r);if(s.msMatchesSelector)return s.msMatchesSelector(r);for(o=i(r),a=0;a<o.length;a+=1)if(o[a]===s)return!0;return!1}if(r===t)return s===t;if(r===e)return s===e;if(r.nodeType||r instanceof n){for(o=r.nodeType?[r]:r,a=0;a<o.length;a+=1)if(o[a]===s)return!0;return!1}return!1},index:function(){var t,e=this[0];if(e){for(t=0;null!==(e=e.previousSibling);)1===e.nodeType&&(t+=1);return t}},eq:function(t){if(void 0===t)return this;var e,i=this.length;return new n(t>i-1?[]:t<0?(e=i+t)<0?[]:[this[e]]:[this[t]])},append:function(){for(var e,i=[],r=arguments.length;r--;)i[r]=arguments[r];for(var o=0;o<i.length;o+=1){e=i[o];for(var a=0;a<this.length;a+=1)if("string"==typeof e){var s=t.createElement("div");for(s.innerHTML=e;s.firstChild;)this[a].appendChild(s.firstChild)}else if(e instanceof n)for(var c=0;c<e.length;c+=1)this[a].appendChild(e[c]);else this[a].appendChild(e)}return this},prepend:function(e){var i,r;for(i=0;i<this.length;i+=1)if("string"==typeof e){var o=t.createElement("div");for(o.innerHTML=e,r=o.childNodes.length-1;r>=0;r-=1)this[i].insertBefore(o.childNodes[r],this[i].childNodes[0])}else if(e instanceof n)for(r=0;r<e.length;r+=1)this[i].insertBefore(e[r],this[i].childNodes[0]);else this[i].insertBefore(e,this[i].childNodes[0]);return this},next:function(t){return this.length>0?t?this[0].nextElementSibling&&i(this[0].nextElementSibling).is(t)?new n([this[0].nextElementSibling]):new n([]):this[0].nextElementSibling?new n([this[0].nextElementSibling]):new n([]):new n([])},nextAll:function(t){var e=[],r=this[0];if(!r)return new n([]);for(;r.nextElementSibling;){var o=r.nextElementSibling;t?i(o).is(t)&&e.push(o):e.push(o),r=o}return new n(e)},prev:function(t){if(this.length>0){var e=this[0];return t?e.previousElementSibling&&i(e.previousElementSibling).is(t)?new n([e.previousElementSibling]):new n([]):e.previousElementSibling?new n([e.previousElementSibling]):new n([])}return new n([])},prevAll:function(t){var e=[],r=this[0];if(!r)return new n([]);for(;r.previousElementSibling;){var o=r.previousElementSibling;t?i(o).is(t)&&e.push(o):e.push(o),r=o}return new n(e)},parent:function(t){for(var e=[],n=0;n<this.length;n+=1)null!==this[n].parentNode&&(t?i(this[n].parentNode).is(t)&&e.push(this[n].parentNode):e.push(this[n].parentNode));return i(r(e))},parents:function(t){for(var e=[],n=0;n<this.length;n+=1)for(var o=this[n].parentNode;o;)t?i(o).is(t)&&e.push(o):e.push(o),o=o.parentNode;return i(r(e))},closest:function(t){var e=this;return void 0===t?new n([]):(e.is(t)||(e=e.parents(t).eq(0)),e)},find:function(t){for(var e=[],i=0;i<this.length;i+=1)for(var r=this[i].querySelectorAll(t),o=0;o<r.length;o+=1)e.push(r[o]);return new n(e)},children:function(t){for(var e=[],o=0;o<this.length;o+=1)for(var a=this[o].childNodes,s=0;s<a.length;s+=1)t?1===a[s].nodeType&&i(a[s]).is(t)&&e.push(a[s]):1===a[s].nodeType&&e.push(a[s]);return new n(r(e))},remove:function(){for(var t=0;t<this.length;t+=1)this[t].parentNode&&this[t].parentNode.removeChild(this[t]);return this},add:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,r;for(n=0;n<t.length;n+=1){var o=i(t[n]);for(r=0;r<o.length;r+=1)this[this.length]=o[r],this.length+=1}return this},styles:function(){return this[0]?e.getComputedStyle(this[0],null):{}}};Object.keys(o).forEach(function(t){i.fn[t]=i.fn[t]||o[t]});var a,s,c={deleteProps:function(t){var e=t;Object.keys(e).forEach(function(t){try{e[t]=null}catch(t){}try{delete e[t]}catch(t){}})},nextTick:function(t,e){return void 0===e&&(e=0),setTimeout(t,e)},now:function(){return Date.now()},getTranslate:function(t,n){var i,r,o;void 0===n&&(n="x");var a=e.getComputedStyle(t,null);return e.WebKitCSSMatrix?((r=a.transform||a.webkitTransform).split(",").length>6&&(r=r.split(", ").map(function(t){return t.replace(",",".")}).join(", ")),o=new e.WebKitCSSMatrix("none"===r?"":r)):i=(o=a.MozTransform||a.OTransform||a.MsTransform||a.msTransform||a.transform||a.getPropertyValue("transform").replace("translate(","matrix(1, 0, 0, 1,")).toString().split(","),"x"===n&&(r=e.WebKitCSSMatrix?o.m41:16===i.length?parseFloat(i[12]):parseFloat(i[4])),"y"===n&&(r=e.WebKitCSSMatrix?o.m42:16===i.length?parseFloat(i[13]):parseFloat(i[5])),r||0},parseUrlQuery:function(t){var n,i,r,o,a={},s=t||e.location.href;if("string"==typeof s&&s.length)for(o=(i=(s=s.indexOf("?")>-1?s.replace(/\S*\?/,""):"").split("&").filter(function(t){return""!==t})).length,n=0;n<o;n+=1)r=i[n].replace(/#\S+/g,"").split("="),a[decodeURIComponent(r[0])]=void 0===r[1]?void 0:decodeURIComponent(r[1])||"";return a},isObject:function(t){return"object"==typeof t&&null!==t&&t.constructor&&t.constructor===Object},extend:function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];for(var n=Object(t[0]),i=1;i<t.length;i+=1){var r=t[i];if(void 0!==r&&null!==r)for(var o=Object.keys(Object(r)),a=0,s=o.length;a<s;a+=1){var l=o[a],u=Object.getOwnPropertyDescriptor(r,l);void 0!==u&&u.enumerable&&(c.isObject(n[l])&&c.isObject(r[l])?c.extend(n[l],r[l]):!c.isObject(n[l])&&c.isObject(r[l])?(n[l]={},c.extend(n[l],r[l])):n[l]=r[l])}}return n}},l=(s=t.createElement("div"),{touch:e.Modernizr&&!0===e.Modernizr.touch||!!(e.navigator.maxTouchPoints>0||"ontouchstart"in e||e.DocumentTouch&&t instanceof e.DocumentTouch),pointerEvents:!!(e.navigator.pointerEnabled||e.PointerEvent||"maxTouchPoints"in e.navigator&&e.navigator.maxTouchPoints>0),prefixedPointerEvents:!!e.navigator.msPointerEnabled,transition:(a=s.style,"transition"in a||"webkitTransition"in a||"MozTransition"in a),transforms3d:e.Modernizr&&!0===e.Modernizr.csstransforms3d||function(){var t=s.style;return"webkitPerspective"in t||"MozPerspective"in t||"OPerspective"in t||"MsPerspective"in t||"perspective"in t}(),flexbox:function(){for(var t=s.style,e="alignItems webkitAlignItems webkitBoxAlign msFlexAlign mozBoxAlign webkitFlexDirection msFlexDirection mozBoxDirection mozBoxOrient webkitBoxDirection webkitBoxOrient".split(" "),n=0;n<e.length;n+=1)if(e[n]in t)return!0;return!1}(),observer:"MutationObserver"in e||"WebkitMutationObserver"in e,passiveListener:function(){var t=!1;try{var n=Object.defineProperty({},"passive",{get:function(){t=!0}});e.addEventListener("testPassiveListener",null,n)}catch(t){}return t}(),gestures:"ongesturestart"in e}),u=function(){return{isIE:!!e.navigator.userAgent.match(/Trident/g)||!!e.navigator.userAgent.match(/MSIE/g),isEdge:!!e.navigator.userAgent.match(/Edge/g),isSafari:(t=e.navigator.userAgent.toLowerCase(),t.indexOf("safari")>=0&&t.indexOf("chrome")<0&&t.indexOf("android")<0),isUiWebView:/(iPhone|iPod|iPad).*AppleWebKit(?!.*Safari)/i.test(e.navigator.userAgent)};var t}(),h=function(t){void 0===t&&(t={});var e=this;e.params=t,e.eventsListeners={},e.params&&e.params.on&&Object.keys(e.params.on).forEach(function(t){e.on(t,e.params.on[t])})},d={components:{configurable:!0}};h.prototype.on=function(t,e,n){var i=this;if("function"!=typeof e)return i;var r=n?"unshift":"push";return t.split(" ").forEach(function(t){i.eventsListeners[t]||(i.eventsListeners[t]=[]),i.eventsListeners[t][r](e)}),i},h.prototype.once=function(t,e,n){var i=this;if("function"!=typeof e)return i;function r(){for(var n=[],o=arguments.length;o--;)n[o]=arguments[o];e.apply(i,n),i.off(t,r),r.f7proxy&&delete r.f7proxy}return r.f7proxy=e,i.on(t,r,n)},h.prototype.off=function(t,e){var n=this;return n.eventsListeners?(t.split(" ").forEach(function(t){void 0===e?n.eventsListeners[t]=[]:n.eventsListeners[t]&&n.eventsListeners[t].length&&n.eventsListeners[t].forEach(function(i,r){(i===e||i.f7proxy&&i.f7proxy===e)&&n.eventsListeners[t].splice(r,1)})}),n):n},h.prototype.emit=function(){for(var t=[],e=arguments.length;e--;)t[e]=arguments[e];var n,i,r,o=this;return o.eventsListeners?("string"==typeof t[0]||Array.isArray(t[0])?(n=t[0],i=t.slice(1,t.length),r=o):(n=t[0].events,i=t[0].data,r=t[0].context||o),(Array.isArray(n)?n:n.split(" ")).forEach(function(t){if(o.eventsListeners&&o.eventsListeners[t]){var e=[];o.eventsListeners[t].forEach(function(t){e.push(t)}),e.forEach(function(t){t.apply(r,i)})}}),o):o},h.prototype.useModulesParams=function(t){var e=this;e.modules&&Object.keys(e.modules).forEach(function(n){var i=e.modules[n];i.params&&c.extend(t,i.params)})},h.prototype.useModules=function(t){void 0===t&&(t={});var e=this;e.modules&&Object.keys(e.modules).forEach(function(n){var i=e.modules[n],r=t[n]||{};i.instance&&Object.keys(i.instance).forEach(function(t){var n=i.instance[t];e[t]="function"==typeof n?n.bind(e):n}),i.on&&e.on&&Object.keys(i.on).forEach(function(t){e.on(t,i.on[t])}),i.create&&i.create.bind(e)(r)})},d.components.set=function(t){this.use&&this.use(t)},h.installModule=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i=this;i.prototype.modules||(i.prototype.modules={});var r=t.name||Object.keys(i.prototype.modules).length+"_"+c.now();return i.prototype.modules[r]=t,t.proto&&Object.keys(t.proto).forEach(function(e){i.prototype[e]=t.proto[e]}),t.static&&Object.keys(t.static).forEach(function(e){i[e]=t.static[e]}),t.install&&t.install.apply(i,e),i},h.use=function(t){for(var e=[],n=arguments.length-1;n-- >0;)e[n]=arguments[n+1];var i=this;return Array.isArray(t)?(t.forEach(function(t){return i.installModule(t)}),i):i.installModule.apply(i,[t].concat(e))},Object.defineProperties(h,d);var f={updateSize:function(){var t,e,n=this.$el;t=void 0!==this.params.width?this.params.width:n[0].clientWidth,e=void 0!==this.params.height?this.params.height:n[0].clientHeight,0===t&&this.isHorizontal()||0===e&&this.isVertical()||(t=t-parseInt(n.css("padding-left"),10)-parseInt(n.css("padding-right"),10),e=e-parseInt(n.css("padding-top"),10)-parseInt(n.css("padding-bottom"),10),c.extend(this,{width:t,height:e,size:this.isHorizontal()?t:e}))},updateSlides:function(){var t=this.params,n=this.$wrapperEl,i=this.size,r=this.rtlTranslate,o=this.wrongRTL,a=this.virtual&&t.virtual.enabled,s=a?this.virtual.slides.length:this.slides.length,h=n.children("."+this.params.slideClass),d=a?this.virtual.slides.length:h.length,f=[],p=[],m=[],v=t.slidesOffsetBefore;"function"==typeof v&&(v=t.slidesOffsetBefore.call(this));var g=t.slidesOffsetAfter;"function"==typeof g&&(g=t.slidesOffsetAfter.call(this));var y=this.snapGrid.length,b=this.snapGrid.length,x=t.spaceBetween,_=-v,w=0,S=0;if(void 0!==i){var T,E;"string"==typeof x&&x.indexOf("%")>=0&&(x=parseFloat(x.replace("%",""))/100*i),this.virtualSize=-x,r?h.css({marginLeft:"",marginTop:""}):h.css({marginRight:"",marginBottom:""}),t.slidesPerColumn>1&&(T=Math.floor(d/t.slidesPerColumn)===d/this.params.slidesPerColumn?d:Math.ceil(d/t.slidesPerColumn)*t.slidesPerColumn,"auto"!==t.slidesPerView&&"row"===t.slidesPerColumnFill&&(T=Math.max(T,t.slidesPerView*t.slidesPerColumn)));for(var M,C=t.slidesPerColumn,L=T/C,O=Math.floor(d/t.slidesPerColumn),k=0;k<d;k+=1){E=0;var P=h.eq(k);if(t.slidesPerColumn>1){var A=void 0,I=void 0,D=void 0;if("column"===t.slidesPerColumnFill||"row"===t.slidesPerColumnFill&&t.slidesPerGroup>1){if("column"===t.slidesPerColumnFill)D=k-(I=Math.floor(k/C))*C,(I>O||I===O&&D===C-1)&&(D+=1)>=C&&(D=0,I+=1);else{var R=Math.floor(k/t.slidesPerGroup);I=k-(D=Math.floor(k/t.slidesPerView)-R*t.slidesPerColumn)*t.slidesPerView-R*t.slidesPerView}A=I+D*T/C,P.css({"-webkit-box-ordinal-group":A,"-moz-box-ordinal-group":A,"-ms-flex-order":A,"-webkit-order":A,order:A})}else I=k-(D=Math.floor(k/L))*L;P.css("margin-"+(this.isHorizontal()?"top":"left"),0!==D&&t.spaceBetween&&t.spaceBetween+"px").attr("data-swiper-column",I).attr("data-swiper-row",D)}if("none"!==P.css("display")){if("auto"===t.slidesPerView){var B=e.getComputedStyle(P[0],null),N=P[0].style.transform,j=P[0].style.webkitTransform;if(N&&(P[0].style.transform="none"),j&&(P[0].style.webkitTransform="none"),t.roundLengths)E=this.isHorizontal()?P.outerWidth(!0):P.outerHeight(!0);else if(this.isHorizontal()){var z=parseFloat(B.getPropertyValue("width")),F=parseFloat(B.getPropertyValue("padding-left")),V=parseFloat(B.getPropertyValue("padding-right")),U=parseFloat(B.getPropertyValue("margin-left")),G=parseFloat(B.getPropertyValue("margin-right")),$=B.getPropertyValue("box-sizing");E=$&&"border-box"===$&&!u.isIE?z+U+G:z+F+V+U+G}else{var H=parseFloat(B.getPropertyValue("height")),W=parseFloat(B.getPropertyValue("padding-top")),q=parseFloat(B.getPropertyValue("padding-bottom")),X=parseFloat(B.getPropertyValue("margin-top")),Y=parseFloat(B.getPropertyValue("margin-bottom")),K=B.getPropertyValue("box-sizing");E=K&&"border-box"===K&&!u.isIE?H+X+Y:H+W+q+X+Y}N&&(P[0].style.transform=N),j&&(P[0].style.webkitTransform=j),t.roundLengths&&(E=Math.floor(E))}else E=(i-(t.slidesPerView-1)*x)/t.slidesPerView,t.roundLengths&&(E=Math.floor(E)),h[k]&&(this.isHorizontal()?h[k].style.width=E+"px":h[k].style.height=E+"px");h[k]&&(h[k].swiperSlideSize=E),m.push(E),t.centeredSlides?(_=_+E/2+w/2+x,0===w&&0!==k&&(_=_-i/2-x),0===k&&(_=_-i/2-x),Math.abs(_)<.001&&(_=0),t.roundLengths&&(_=Math.floor(_)),S%t.slidesPerGroup==0&&f.push(_),p.push(_)):(t.roundLengths&&(_=Math.floor(_)),S%t.slidesPerGroup==0&&f.push(_),p.push(_),_=_+E+x),this.virtualSize+=E+x,w=E,S+=1}}if(this.virtualSize=Math.max(this.virtualSize,i)+g,r&&o&&("slide"===t.effect||"coverflow"===t.effect)&&n.css({width:this.virtualSize+t.spaceBetween+"px"}),l.flexbox&&!t.setWrapperSize||(this.isHorizontal()?n.css({width:this.virtualSize+t.spaceBetween+"px"}):n.css({height:this.virtualSize+t.spaceBetween+"px"})),t.slidesPerColumn>1&&(this.virtualSize=(E+t.spaceBetween)*T,this.virtualSize=Math.ceil(this.virtualSize/t.slidesPerColumn)-t.spaceBetween,this.isHorizontal()?n.css({width:this.virtualSize+t.spaceBetween+"px"}):n.css({height:this.virtualSize+t.spaceBetween+"px"}),t.centeredSlides)){M=[];for(var Z=0;Z<f.length;Z+=1){var J=f[Z];t.roundLengths&&(J=Math.floor(J)),f[Z]<this.virtualSize+f[0]&&M.push(J)}f=M}if(!t.centeredSlides){M=[];for(var Q=0;Q<f.length;Q+=1){var tt=f[Q];t.roundLengths&&(tt=Math.floor(tt)),f[Q]<=this.virtualSize-i&&M.push(tt)}f=M,Math.floor(this.virtualSize-i)-Math.floor(f[f.length-1])>1&&f.push(this.virtualSize-i)}if(0===f.length&&(f=[0]),0!==t.spaceBetween&&(this.isHorizontal()?r?h.css({marginLeft:x+"px"}):h.css({marginRight:x+"px"}):h.css({marginBottom:x+"px"})),t.centerInsufficientSlides){var et=0;if(m.forEach(function(e){et+=e+(t.spaceBetween?t.spaceBetween:0)}),(et-=t.spaceBetween)<i){var nt=(i-et)/2;f.forEach(function(t,e){f[e]=t-nt}),p.forEach(function(t,e){p[e]=t+nt})}}c.extend(this,{slides:h,snapGrid:f,slidesGrid:p,slidesSizesGrid:m}),d!==s&&this.emit("slidesLengthChange"),f.length!==y&&(this.params.watchOverflow&&this.checkOverflow(),this.emit("snapGridLengthChange")),p.length!==b&&this.emit("slidesGridLengthChange"),(t.watchSlidesProgress||t.watchSlidesVisibility)&&this.updateSlidesOffset()}},updateAutoHeight:function(t){var e,n=[],i=0;if("number"==typeof t?this.setTransition(t):!0===t&&this.setTransition(this.params.speed),"auto"!==this.params.slidesPerView&&this.params.slidesPerView>1)for(e=0;e<Math.ceil(this.params.slidesPerView);e+=1){var r=this.activeIndex+e;if(r>this.slides.length)break;n.push(this.slides.eq(r)[0])}else n.push(this.slides.eq(this.activeIndex)[0]);for(e=0;e<n.length;e+=1)if(void 0!==n[e]){var o=n[e].offsetHeight;i=o>i?o:i}i&&this.$wrapperEl.css("height",i+"px")},updateSlidesOffset:function(){for(var t=this.slides,e=0;e<t.length;e+=1)t[e].swiperSlideOffset=this.isHorizontal()?t[e].offsetLeft:t[e].offsetTop},updateSlidesProgress:function(t){void 0===t&&(t=this&&this.translate||0);var e=this.params,n=this.slides,r=this.rtlTranslate;if(0!==n.length){void 0===n[0].swiperSlideOffset&&this.updateSlidesOffset();var o=-t;r&&(o=t),n.removeClass(e.slideVisibleClass),this.visibleSlidesIndexes=[],this.visibleSlides=[];for(var a=0;a<n.length;a+=1){var s=n[a],c=(o+(e.centeredSlides?this.minTranslate():0)-s.swiperSlideOffset)/(s.swiperSlideSize+e.spaceBetween);if(e.watchSlidesVisibility){var l=-(o-s.swiperSlideOffset),u=l+this.slidesSizesGrid[a];(l>=0&&l<this.size-1||u>1&&u<=this.size||l<=0&&u>=this.size)&&(this.visibleSlides.push(s),this.visibleSlidesIndexes.push(a),n.eq(a).addClass(e.slideVisibleClass))}s.progress=r?-c:c}this.visibleSlides=i(this.visibleSlides)}},updateProgress:function(t){void 0===t&&(t=this&&this.translate||0);var e=this.params,n=this.maxTranslate()-this.minTranslate(),i=this.progress,r=this.isBeginning,o=this.isEnd,a=r,s=o;0===n?(i=0,r=!0,o=!0):(r=(i=(t-this.minTranslate())/n)<=0,o=i>=1),c.extend(this,{progress:i,isBeginning:r,isEnd:o}),(e.watchSlidesProgress||e.watchSlidesVisibility)&&this.updateSlidesProgress(t),r&&!a&&this.emit("reachBeginning toEdge"),o&&!s&&this.emit("reachEnd toEdge"),(a&&!r||s&&!o)&&this.emit("fromEdge"),this.emit("progress",i)},updateSlidesClasses:function(){var t,e=this.slides,n=this.params,i=this.$wrapperEl,r=this.activeIndex,o=this.realIndex,a=this.virtual&&n.virtual.enabled;e.removeClass(n.slideActiveClass+" "+n.slideNextClass+" "+n.slidePrevClass+" "+n.slideDuplicateActiveClass+" "+n.slideDuplicateNextClass+" "+n.slideDuplicatePrevClass),(t=a?this.$wrapperEl.find("."+n.slideClass+'[data-swiper-slide-index="'+r+'"]'):e.eq(r)).addClass(n.slideActiveClass),n.loop&&(t.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+o+'"]').addClass(n.slideDuplicateActiveClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+o+'"]').addClass(n.slideDuplicateActiveClass));var s=t.nextAll("."+n.slideClass).eq(0).addClass(n.slideNextClass);n.loop&&0===s.length&&(s=e.eq(0)).addClass(n.slideNextClass);var c=t.prevAll("."+n.slideClass).eq(0).addClass(n.slidePrevClass);n.loop&&0===c.length&&(c=e.eq(-1)).addClass(n.slidePrevClass),n.loop&&(s.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+s.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicateNextClass),c.hasClass(n.slideDuplicateClass)?i.children("."+n.slideClass+":not(."+n.slideDuplicateClass+')[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass):i.children("."+n.slideClass+"."+n.slideDuplicateClass+'[data-swiper-slide-index="'+c.attr("data-swiper-slide-index")+'"]').addClass(n.slideDuplicatePrevClass))},updateActiveIndex:function(t){var e,n=this.rtlTranslate?this.translate:-this.translate,i=this.slidesGrid,r=this.snapGrid,o=this.params,a=this.activeIndex,s=this.realIndex,l=this.snapIndex,u=t;if(void 0===u){for(var h=0;h<i.length;h+=1)void 0!==i[h+1]?n>=i[h]&&n<i[h+1]-(i[h+1]-i[h])/2?u=h:n>=i[h]&&n<i[h+1]&&(u=h+1):n>=i[h]&&(u=h);o.normalizeSlideIndex&&(u<0||void 0===u)&&(u=0)}if((e=r.indexOf(n)>=0?r.indexOf(n):Math.floor(u/o.slidesPerGroup))>=r.length&&(e=r.length-1),u!==a){var d=parseInt(this.slides.eq(u).attr("data-swiper-slide-index")||u,10);c.extend(this,{snapIndex:e,realIndex:d,previousIndex:a,activeIndex:u}),this.emit("activeIndexChange"),this.emit("snapIndexChange"),s!==d&&this.emit("realIndexChange"),(this.initialized||this.runCallbacksOnInit)&&this.emit("slideChange")}else e!==l&&(this.snapIndex=e,this.emit("snapIndexChange"))},updateClickedSlide:function(t){var e=this.params,n=i(t.target).closest("."+e.slideClass)[0],r=!1;if(n)for(var o=0;o<this.slides.length;o+=1)this.slides[o]===n&&(r=!0);if(!n||!r)return this.clickedSlide=void 0,void(this.clickedIndex=void 0);this.clickedSlide=n,this.virtual&&this.params.virtual.enabled?this.clickedIndex=parseInt(i(n).attr("data-swiper-slide-index"),10):this.clickedIndex=i(n).index(),e.slideToClickedSlide&&void 0!==this.clickedIndex&&this.clickedIndex!==this.activeIndex&&this.slideToClickedSlide()}};var p={getTranslate:function(t){void 0===t&&(t=this.isHorizontal()?"x":"y");var e=this.params,n=this.rtlTranslate,i=this.translate,r=this.$wrapperEl;if(e.virtualTranslate)return n?-i:i;var o=c.getTranslate(r[0],t);return n&&(o=-o),o||0},setTranslate:function(t,e){var n=this.rtlTranslate,i=this.params,r=this.$wrapperEl,o=this.progress,a=0,s=0;this.isHorizontal()?a=n?-t:t:s=t,i.roundLengths&&(a=Math.floor(a),s=Math.floor(s)),i.virtualTranslate||(l.transforms3d?r.transform("translate3d("+a+"px, "+s+"px, 0px)"):r.transform("translate("+a+"px, "+s+"px)")),this.previousTranslate=this.translate,this.translate=this.isHorizontal()?a:s;var c=this.maxTranslate()-this.minTranslate();(0===c?0:(t-this.minTranslate())/c)!==o&&this.updateProgress(t),this.emit("setTranslate",this.translate,e)},minTranslate:function(){return-this.snapGrid[0]},maxTranslate:function(){return-this.snapGrid[this.snapGrid.length-1]}};var m={setTransition:function(t,e){this.$wrapperEl.transition(t),this.emit("setTransition",t,e)},transitionStart:function(t,e){void 0===t&&(t=!0);var n=this.activeIndex,i=this.params,r=this.previousIndex;i.autoHeight&&this.updateAutoHeight();var o=e;if(o||(o=n>r?"next":n<r?"prev":"reset"),this.emit("transitionStart"),t&&n!==r){if("reset"===o)return void this.emit("slideResetTransitionStart");this.emit("slideChangeTransitionStart"),"next"===o?this.emit("slideNextTransitionStart"):this.emit("slidePrevTransitionStart")}},transitionEnd:function(t,e){void 0===t&&(t=!0);var n=this.activeIndex,i=this.previousIndex;this.animating=!1,this.setTransition(0);var r=e;if(r||(r=n>i?"next":n<i?"prev":"reset"),this.emit("transitionEnd"),t&&n!==i){if("reset"===r)return void this.emit("slideResetTransitionEnd");this.emit("slideChangeTransitionEnd"),"next"===r?this.emit("slideNextTransitionEnd"):this.emit("slidePrevTransitionEnd")}}};var v={slideTo:function(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0);var r=this,o=t;o<0&&(o=0);var a=r.params,s=r.snapGrid,c=r.slidesGrid,u=r.previousIndex,h=r.activeIndex,d=r.rtlTranslate;if(r.animating&&a.preventInteractionOnTransition)return!1;var f=Math.floor(o/a.slidesPerGroup);f>=s.length&&(f=s.length-1),(h||a.initialSlide||0)===(u||0)&&n&&r.emit("beforeSlideChangeStart");var p,m=-s[f];if(r.updateProgress(m),a.normalizeSlideIndex)for(var v=0;v<c.length;v+=1)-Math.floor(100*m)>=Math.floor(100*c[v])&&(o=v);if(r.initialized&&o!==h){if(!r.allowSlideNext&&m<r.translate&&m<r.minTranslate())return!1;if(!r.allowSlidePrev&&m>r.translate&&m>r.maxTranslate()&&(h||0)!==o)return!1}return p=o>h?"next":o<h?"prev":"reset",d&&-m===r.translate||!d&&m===r.translate?(r.updateActiveIndex(o),a.autoHeight&&r.updateAutoHeight(),r.updateSlidesClasses(),"slide"!==a.effect&&r.setTranslate(m),"reset"!==p&&(r.transitionStart(n,p),r.transitionEnd(n,p)),!1):(0!==e&&l.transition?(r.setTransition(e),r.setTranslate(m),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,i),r.transitionStart(n,p),r.animating||(r.animating=!0,r.onSlideToWrapperTransitionEnd||(r.onSlideToWrapperTransitionEnd=function(t){r&&!r.destroyed&&t.target===this&&(r.$wrapperEl[0].removeEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].removeEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd),r.onSlideToWrapperTransitionEnd=null,delete r.onSlideToWrapperTransitionEnd,r.transitionEnd(n,p))}),r.$wrapperEl[0].addEventListener("transitionend",r.onSlideToWrapperTransitionEnd),r.$wrapperEl[0].addEventListener("webkitTransitionEnd",r.onSlideToWrapperTransitionEnd))):(r.setTransition(0),r.setTranslate(m),r.updateActiveIndex(o),r.updateSlidesClasses(),r.emit("beforeTransitionStart",e,i),r.transitionStart(n,p),r.transitionEnd(n,p)),!0)},slideToLoop:function(t,e,n,i){void 0===t&&(t=0),void 0===e&&(e=this.params.speed),void 0===n&&(n=!0);var r=t;return this.params.loop&&(r+=this.loopedSlides),this.slideTo(r,e,n,i)},slideNext:function(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this.params,r=this.animating;return i.loop?!r&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,this.slideTo(this.activeIndex+i.slidesPerGroup,t,e,n)):this.slideTo(this.activeIndex+i.slidesPerGroup,t,e,n)},slidePrev:function(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this.params,r=this.animating,o=this.snapGrid,a=this.slidesGrid,s=this.rtlTranslate;if(i.loop){if(r)return!1;this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft}function c(t){return t<0?-Math.floor(Math.abs(t)):Math.floor(t)}var l,u=c(s?this.translate:-this.translate),h=o.map(function(t){return c(t)}),d=(a.map(function(t){return c(t)}),o[h.indexOf(u)],o[h.indexOf(u)-1]);return void 0!==d&&(l=a.indexOf(d))<0&&(l=this.activeIndex-1),this.slideTo(l,t,e,n)},slideReset:function(t,e,n){return void 0===t&&(t=this.params.speed),void 0===e&&(e=!0),this.slideTo(this.activeIndex,t,e,n)},slideToClosest:function(t,e,n){void 0===t&&(t=this.params.speed),void 0===e&&(e=!0);var i=this.activeIndex,r=Math.floor(i/this.params.slidesPerGroup);if(r<this.snapGrid.length-1){var o=this.rtlTranslate?this.translate:-this.translate,a=this.snapGrid[r];o-a>(this.snapGrid[r+1]-a)/2&&(i=this.params.slidesPerGroup)}return this.slideTo(i,t,e,n)},slideToClickedSlide:function(){var t,e=this,n=e.params,r=e.$wrapperEl,o="auto"===n.slidesPerView?e.slidesPerViewDynamic():n.slidesPerView,a=e.clickedIndex;if(n.loop){if(e.animating)return;t=parseInt(i(e.clickedSlide).attr("data-swiper-slide-index"),10),n.centeredSlides?a<e.loopedSlides-o/2||a>e.slides.length-e.loopedSlides+o/2?(e.loopFix(),a=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),c.nextTick(function(){e.slideTo(a)})):e.slideTo(a):a>e.slides.length-o?(e.loopFix(),a=r.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]:not(.'+n.slideDuplicateClass+")").eq(0).index(),c.nextTick(function(){e.slideTo(a)})):e.slideTo(a)}else e.slideTo(a)}};var g={loopCreate:function(){var e=this,n=e.params,r=e.$wrapperEl;r.children("."+n.slideClass+"."+n.slideDuplicateClass).remove();var o=r.children("."+n.slideClass);if(n.loopFillGroupWithBlank){var a=n.slidesPerGroup-o.length%n.slidesPerGroup;if(a!==n.slidesPerGroup){for(var s=0;s<a;s+=1){var c=i(t.createElement("div")).addClass(n.slideClass+" "+n.slideBlankClass);r.append(c)}o=r.children("."+n.slideClass)}}"auto"!==n.slidesPerView||n.loopedSlides||(n.loopedSlides=o.length),e.loopedSlides=parseInt(n.loopedSlides||n.slidesPerView,10),e.loopedSlides+=n.loopAdditionalSlides,e.loopedSlides>o.length&&(e.loopedSlides=o.length);var l=[],u=[];o.each(function(t,n){var r=i(n);t<e.loopedSlides&&u.push(n),t<o.length&&t>=o.length-e.loopedSlides&&l.push(n),r.attr("data-swiper-slide-index",t)});for(var h=0;h<u.length;h+=1)r.append(i(u[h].cloneNode(!0)).addClass(n.slideDuplicateClass));for(var d=l.length-1;d>=0;d-=1)r.prepend(i(l[d].cloneNode(!0)).addClass(n.slideDuplicateClass))},loopFix:function(){var t,e=this.params,n=this.activeIndex,i=this.slides,r=this.loopedSlides,o=this.allowSlidePrev,a=this.allowSlideNext,s=this.snapGrid,c=this.rtlTranslate;this.allowSlidePrev=!0,this.allowSlideNext=!0;var l=-s[n]-this.getTranslate();n<r?(t=i.length-3*r+n,t+=r,this.slideTo(t,0,!1,!0)&&0!==l&&this.setTranslate((c?-this.translate:this.translate)-l)):("auto"===e.slidesPerView&&n>=2*r||n>=i.length-r)&&(t=-i.length+n+r,t+=r,this.slideTo(t,0,!1,!0)&&0!==l&&this.setTranslate((c?-this.translate:this.translate)-l));this.allowSlidePrev=o,this.allowSlideNext=a},loopDestroy:function(){var t=this.$wrapperEl,e=this.params,n=this.slides;t.children("."+e.slideClass+"."+e.slideDuplicateClass+",."+e.slideClass+"."+e.slideBlankClass).remove(),n.removeAttr("data-swiper-slide-index")}};var y={setGrabCursor:function(t){if(!(l.touch||!this.params.simulateTouch||this.params.watchOverflow&&this.isLocked)){var e=this.el;e.style.cursor="move",e.style.cursor=t?"-webkit-grabbing":"-webkit-grab",e.style.cursor=t?"-moz-grabbin":"-moz-grab",e.style.cursor=t?"grabbing":"grab"}},unsetGrabCursor:function(){l.touch||this.params.watchOverflow&&this.isLocked||(this.el.style.cursor="")}};var b={appendSlide:function(t){var e=this.$wrapperEl,n=this.params;if(n.loop&&this.loopDestroy(),"object"==typeof t&&"length"in t)for(var i=0;i<t.length;i+=1)t[i]&&e.append(t[i]);else e.append(t);n.loop&&this.loopCreate(),n.observer&&l.observer||this.update()},prependSlide:function(t){var e=this.params,n=this.$wrapperEl,i=this.activeIndex;e.loop&&this.loopDestroy();var r=i+1;if("object"==typeof t&&"length"in t){for(var o=0;o<t.length;o+=1)t[o]&&n.prepend(t[o]);r=i+t.length}else n.prepend(t);e.loop&&this.loopCreate(),e.observer&&l.observer||this.update(),this.slideTo(r,0,!1)},addSlide:function(t,e){var n=this.$wrapperEl,i=this.params,r=this.activeIndex;i.loop&&(r-=this.loopedSlides,this.loopDestroy(),this.slides=n.children("."+i.slideClass));var o=this.slides.length;if(t<=0)this.prependSlide(e);else if(t>=o)this.appendSlide(e);else{for(var a=r>t?r+1:r,s=[],c=o-1;c>=t;c-=1){var u=this.slides.eq(c);u.remove(),s.unshift(u)}if("object"==typeof e&&"length"in e){for(var h=0;h<e.length;h+=1)e[h]&&n.append(e[h]);a=r>t?r+e.length:r}else n.append(e);for(var d=0;d<s.length;d+=1)n.append(s[d]);i.loop&&this.loopCreate(),i.observer&&l.observer||this.update(),i.loop?this.slideTo(a+this.loopedSlides,0,!1):this.slideTo(a,0,!1)}},removeSlide:function(t){var e=this.params,n=this.$wrapperEl,i=this.activeIndex;e.loop&&(i-=this.loopedSlides,this.loopDestroy(),this.slides=n.children("."+e.slideClass));var r,o=i;if("object"==typeof t&&"length"in t){for(var a=0;a<t.length;a+=1)r=t[a],this.slides[r]&&this.slides.eq(r).remove(),r<o&&(o-=1);o=Math.max(o,0)}else r=t,this.slides[r]&&this.slides.eq(r).remove(),r<o&&(o-=1),o=Math.max(o,0);e.loop&&this.loopCreate(),e.observer&&l.observer||this.update(),e.loop?this.slideTo(o+this.loopedSlides,0,!1):this.slideTo(o,0,!1)},removeAllSlides:function(){for(var t=[],e=0;e<this.slides.length;e+=1)t.push(e);this.removeSlide(t)}},x=function(){var n=e.navigator.userAgent,i={ios:!1,android:!1,androidChrome:!1,desktop:!1,windows:!1,iphone:!1,ipod:!1,ipad:!1,cordova:e.cordova||e.phonegap,phonegap:e.cordova||e.phonegap},r=n.match(/(Windows Phone);?[\s\/]+([\d.]+)?/),o=n.match(/(Android);?[\s\/]+([\d.]+)?/),a=n.match(/(iPad).*OS\s([\d_]+)/),s=n.match(/(iPod)(.*OS\s([\d_]+))?/),c=!a&&n.match(/(iPhone\sOS|iOS)\s([\d_]+)/);if(r&&(i.os="windows",i.osVersion=r[2],i.windows=!0),o&&!r&&(i.os="android",i.osVersion=o[2],i.android=!0,i.androidChrome=n.toLowerCase().indexOf("chrome")>=0),(a||c||s)&&(i.os="ios",i.ios=!0),c&&!s&&(i.osVersion=c[2].replace(/_/g,"."),i.iphone=!0),a&&(i.osVersion=a[2].replace(/_/g,"."),i.ipad=!0),s&&(i.osVersion=s[3]?s[3].replace(/_/g,"."):null,i.iphone=!0),i.ios&&i.osVersion&&n.indexOf("Version/")>=0&&"10"===i.osVersion.split(".")[0]&&(i.osVersion=n.toLowerCase().split("version/")[1].split(" ")[0]),i.desktop=!(i.os||i.android||i.webView),i.webView=(c||a||s)&&n.match(/.*AppleWebKit(?!.*Safari)/i),i.os&&"ios"===i.os){var l=i.osVersion.split("."),u=t.querySelector('meta[name="viewport"]');i.minimalUi=!i.webView&&(s||c)&&(1*l[0]==7?1*l[1]>=1:1*l[0]>7)&&u&&u.getAttribute("content").indexOf("minimal-ui")>=0}return i.pixelRatio=e.devicePixelRatio||1,i}();function _(){var t=this.params,e=this.el;if(!e||0!==e.offsetWidth){t.breakpoints&&this.setBreakpoint();var n=this.allowSlideNext,i=this.allowSlidePrev,r=this.snapGrid;if(this.allowSlideNext=!0,this.allowSlidePrev=!0,this.updateSize(),this.updateSlides(),t.freeMode){var o=Math.min(Math.max(this.translate,this.maxTranslate()),this.minTranslate());this.setTranslate(o),this.updateActiveIndex(),this.updateSlidesClasses(),t.autoHeight&&this.updateAutoHeight()}else this.updateSlidesClasses(),("auto"===t.slidesPerView||t.slidesPerView>1)&&this.isEnd&&!this.params.centeredSlides?this.slideTo(this.slides.length-1,0,!1,!0):this.slideTo(this.activeIndex,0,!1,!0);this.autoplay&&this.autoplay.running&&this.autoplay.paused&&this.autoplay.run(),this.allowSlidePrev=i,this.allowSlideNext=n,this.params.watchOverflow&&r!==this.snapGrid&&this.checkOverflow()}}var w={init:!0,direction:"horizontal",touchEventsTarget:"container",initialSlide:0,speed:300,preventInteractionOnTransition:!1,edgeSwipeDetection:!1,edgeSwipeThreshold:20,freeMode:!1,freeModeMomentum:!0,freeModeMomentumRatio:1,freeModeMomentumBounce:!0,freeModeMomentumBounceRatio:1,freeModeMomentumVelocityRatio:1,freeModeSticky:!1,freeModeMinimumVelocity:.02,autoHeight:!1,setWrapperSize:!1,virtualTranslate:!1,effect:"slide",breakpoints:void 0,breakpointsInverse:!1,spaceBetween:0,slidesPerView:1,slidesPerColumn:1,slidesPerColumnFill:"column",slidesPerGroup:1,centeredSlides:!1,slidesOffsetBefore:0,slidesOffsetAfter:0,normalizeSlideIndex:!0,centerInsufficientSlides:!1,watchOverflow:!1,roundLengths:!1,touchRatio:1,touchAngle:45,simulateTouch:!0,shortSwipes:!0,longSwipes:!0,longSwipesRatio:.5,longSwipesMs:300,followFinger:!0,allowTouchMove:!0,threshold:0,touchMoveStopPropagation:!0,touchStartPreventDefault:!0,touchStartForcePreventDefault:!1,touchReleaseOnEdges:!1,uniqueNavElements:!0,resistance:!0,resistanceRatio:.85,watchSlidesProgress:!1,watchSlidesVisibility:!1,grabCursor:!1,preventClicks:!0,preventClicksPropagation:!0,slideToClickedSlide:!1,preloadImages:!0,updateOnImagesReady:!0,loop:!1,loopAdditionalSlides:0,loopedSlides:null,loopFillGroupWithBlank:!1,allowSlidePrev:!0,allowSlideNext:!0,swipeHandler:null,noSwiping:!0,noSwipingClass:"swiper-no-swiping",noSwipingSelector:null,passiveListeners:!0,containerModifierClass:"swiper-container-",slideClass:"swiper-slide",slideBlankClass:"swiper-slide-invisible-blank",slideActiveClass:"swiper-slide-active",slideDuplicateActiveClass:"swiper-slide-duplicate-active",slideVisibleClass:"swiper-slide-visible",slideDuplicateClass:"swiper-slide-duplicate",slideNextClass:"swiper-slide-next",slideDuplicateNextClass:"swiper-slide-duplicate-next",slidePrevClass:"swiper-slide-prev",slideDuplicatePrevClass:"swiper-slide-duplicate-prev",wrapperClass:"swiper-wrapper",runCallbacksOnInit:!0},S={update:f,translate:p,transition:m,slide:v,loop:g,grabCursor:y,manipulation:b,events:{attachEvents:function(){var n=this.params,r=this.touchEvents,o=this.el,a=this.wrapperEl;this.onTouchStart=function(n){var r=this.touchEventsData,o=this.params,a=this.touches;if(!this.animating||!o.preventInteractionOnTransition){var s=n;if(s.originalEvent&&(s=s.originalEvent),r.isTouchEvent="touchstart"===s.type,(r.isTouchEvent||!("which"in s)||3!==s.which)&&!(!r.isTouchEvent&&"button"in s&&s.button>0||r.isTouched&&r.isMoved))if(o.noSwiping&&i(s.target).closest(o.noSwipingSelector?o.noSwipingSelector:"."+o.noSwipingClass)[0])this.allowClick=!0;else if(!o.swipeHandler||i(s).closest(o.swipeHandler)[0]){a.currentX="touchstart"===s.type?s.targetTouches[0].pageX:s.pageX,a.currentY="touchstart"===s.type?s.targetTouches[0].pageY:s.pageY;var l=a.currentX,u=a.currentY,h=o.edgeSwipeDetection||o.iOSEdgeSwipeDetection,d=o.edgeSwipeThreshold||o.iOSEdgeSwipeThreshold;if(!h||!(l<=d||l>=e.screen.width-d)){if(c.extend(r,{isTouched:!0,isMoved:!1,allowTouchCallbacks:!0,isScrolling:void 0,startMoving:void 0}),a.startX=l,a.startY=u,r.touchStartTime=c.now(),this.allowClick=!0,this.updateSize(),this.swipeDirection=void 0,o.threshold>0&&(r.allowThresholdMove=!1),"touchstart"!==s.type){var f=!0;i(s.target).is(r.formElements)&&(f=!1),t.activeElement&&i(t.activeElement).is(r.formElements)&&t.activeElement!==s.target&&t.activeElement.blur();var p=f&&this.allowTouchMove&&o.touchStartPreventDefault;(o.touchStartForcePreventDefault||p)&&s.preventDefault()}this.emit("touchStart",s)}}}}.bind(this),this.onTouchMove=function(e){var n=this.touchEventsData,r=this.params,o=this.touches,a=this.rtlTranslate,s=e;if(s.originalEvent&&(s=s.originalEvent),n.isTouched){if(!n.isTouchEvent||"mousemove"!==s.type){var l="touchmove"===s.type?s.targetTouches[0].pageX:s.pageX,u="touchmove"===s.type?s.targetTouches[0].pageY:s.pageY;if(s.preventedByNestedSwiper)return o.startX=l,void(o.startY=u);if(!this.allowTouchMove)return this.allowClick=!1,void(n.isTouched&&(c.extend(o,{startX:l,startY:u,currentX:l,currentY:u}),n.touchStartTime=c.now()));if(n.isTouchEvent&&r.touchReleaseOnEdges&&!r.loop)if(this.isVertical()){if(u<o.startY&&this.translate<=this.maxTranslate()||u>o.startY&&this.translate>=this.minTranslate())return n.isTouched=!1,void(n.isMoved=!1)}else if(l<o.startX&&this.translate<=this.maxTranslate()||l>o.startX&&this.translate>=this.minTranslate())return;if(n.isTouchEvent&&t.activeElement&&s.target===t.activeElement&&i(s.target).is(n.formElements))return n.isMoved=!0,void(this.allowClick=!1);if(n.allowTouchCallbacks&&this.emit("touchMove",s),!(s.targetTouches&&s.targetTouches.length>1)){o.currentX=l,o.currentY=u;var h,d=o.currentX-o.startX,f=o.currentY-o.startY;if(!(this.params.threshold&&Math.sqrt(Math.pow(d,2)+Math.pow(f,2))<this.params.threshold))if(void 0===n.isScrolling&&(this.isHorizontal()&&o.currentY===o.startY||this.isVertical()&&o.currentX===o.startX?n.isScrolling=!1:d*d+f*f>=25&&(h=180*Math.atan2(Math.abs(f),Math.abs(d))/Math.PI,n.isScrolling=this.isHorizontal()?h>r.touchAngle:90-h>r.touchAngle)),n.isScrolling&&this.emit("touchMoveOpposite",s),void 0===n.startMoving&&(o.currentX===o.startX&&o.currentY===o.startY||(n.startMoving=!0)),n.isScrolling)n.isTouched=!1;else if(n.startMoving){this.allowClick=!1,s.preventDefault(),r.touchMoveStopPropagation&&!r.nested&&s.stopPropagation(),n.isMoved||(r.loop&&this.loopFix(),n.startTranslate=this.getTranslate(),this.setTransition(0),this.animating&&this.$wrapperEl.trigger("webkitTransitionEnd transitionend"),n.allowMomentumBounce=!1,!r.grabCursor||!0!==this.allowSlideNext&&!0!==this.allowSlidePrev||this.setGrabCursor(!0),this.emit("sliderFirstMove",s)),this.emit("sliderMove",s),n.isMoved=!0;var p=this.isHorizontal()?d:f;o.diff=p,p*=r.touchRatio,a&&(p=-p),this.swipeDirection=p>0?"prev":"next",n.currentTranslate=p+n.startTranslate;var m=!0,v=r.resistanceRatio;if(r.touchReleaseOnEdges&&(v=0),p>0&&n.currentTranslate>this.minTranslate()?(m=!1,r.resistance&&(n.currentTranslate=this.minTranslate()-1+Math.pow(-this.minTranslate()+n.startTranslate+p,v))):p<0&&n.currentTranslate<this.maxTranslate()&&(m=!1,r.resistance&&(n.currentTranslate=this.maxTranslate()+1-Math.pow(this.maxTranslate()-n.startTranslate-p,v))),m&&(s.preventedByNestedSwiper=!0),!this.allowSlideNext&&"next"===this.swipeDirection&&n.currentTranslate<n.startTranslate&&(n.currentTranslate=n.startTranslate),!this.allowSlidePrev&&"prev"===this.swipeDirection&&n.currentTranslate>n.startTranslate&&(n.currentTranslate=n.startTranslate),r.threshold>0){if(!(Math.abs(p)>r.threshold||n.allowThresholdMove))return void(n.currentTranslate=n.startTranslate);if(!n.allowThresholdMove)return n.allowThresholdMove=!0,o.startX=o.currentX,o.startY=o.currentY,n.currentTranslate=n.startTranslate,void(o.diff=this.isHorizontal()?o.currentX-o.startX:o.currentY-o.startY)}r.followFinger&&((r.freeMode||r.watchSlidesProgress||r.watchSlidesVisibility)&&(this.updateActiveIndex(),this.updateSlidesClasses()),r.freeMode&&(0===n.velocities.length&&n.velocities.push({position:o[this.isHorizontal()?"startX":"startY"],time:n.touchStartTime}),n.velocities.push({position:o[this.isHorizontal()?"currentX":"currentY"],time:c.now()})),this.updateProgress(n.currentTranslate),this.setTranslate(n.currentTranslate))}}}}else n.startMoving&&n.isScrolling&&this.emit("touchMoveOpposite",s)}.bind(this),this.onTouchEnd=function(t){var e=this,n=e.touchEventsData,i=e.params,r=e.touches,o=e.rtlTranslate,a=e.$wrapperEl,s=e.slidesGrid,l=e.snapGrid,u=t;if(u.originalEvent&&(u=u.originalEvent),n.allowTouchCallbacks&&e.emit("touchEnd",u),n.allowTouchCallbacks=!1,!n.isTouched)return n.isMoved&&i.grabCursor&&e.setGrabCursor(!1),n.isMoved=!1,void(n.startMoving=!1);i.grabCursor&&n.isMoved&&n.isTouched&&(!0===e.allowSlideNext||!0===e.allowSlidePrev)&&e.setGrabCursor(!1);var h,d=c.now(),f=d-n.touchStartTime;if(e.allowClick&&(e.updateClickedSlide(u),e.emit("tap",u),f<300&&d-n.lastClickTime>300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),n.clickTimeout=c.nextTick(function(){e&&!e.destroyed&&e.emit("click",u)},300)),f<300&&d-n.lastClickTime<300&&(n.clickTimeout&&clearTimeout(n.clickTimeout),e.emit("doubleTap",u))),n.lastClickTime=c.now(),c.nextTick(function(){e.destroyed||(e.allowClick=!0)}),!n.isTouched||!n.isMoved||!e.swipeDirection||0===r.diff||n.currentTranslate===n.startTranslate)return n.isTouched=!1,n.isMoved=!1,void(n.startMoving=!1);if(n.isTouched=!1,n.isMoved=!1,n.startMoving=!1,h=i.followFinger?o?e.translate:-e.translate:-n.currentTranslate,i.freeMode){if(h<-e.minTranslate())return void e.slideTo(e.activeIndex);if(h>-e.maxTranslate())return void(e.slides.length<l.length?e.slideTo(l.length-1):e.slideTo(e.slides.length-1));if(i.freeModeMomentum){if(n.velocities.length>1){var p=n.velocities.pop(),m=n.velocities.pop(),v=p.position-m.position,g=p.time-m.time;e.velocity=v/g,e.velocity/=2,Math.abs(e.velocity)<i.freeModeMinimumVelocity&&(e.velocity=0),(g>150||c.now()-p.time>300)&&(e.velocity=0)}else e.velocity=0;e.velocity*=i.freeModeMomentumVelocityRatio,n.velocities.length=0;var y=1e3*i.freeModeMomentumRatio,b=e.velocity*y,x=e.translate+b;o&&(x=-x);var _,w,S=!1,T=20*Math.abs(e.velocity)*i.freeModeMomentumBounceRatio;if(x<e.maxTranslate())i.freeModeMomentumBounce?(x+e.maxTranslate()<-T&&(x=e.maxTranslate()-T),_=e.maxTranslate(),S=!0,n.allowMomentumBounce=!0):x=e.maxTranslate(),i.loop&&i.centeredSlides&&(w=!0);else if(x>e.minTranslate())i.freeModeMomentumBounce?(x-e.minTranslate()>T&&(x=e.minTranslate()+T),_=e.minTranslate(),S=!0,n.allowMomentumBounce=!0):x=e.minTranslate(),i.loop&&i.centeredSlides&&(w=!0);else if(i.freeModeSticky){for(var E,M=0;M<l.length;M+=1)if(l[M]>-x){E=M;break}x=-(x=Math.abs(l[E]-x)<Math.abs(l[E-1]-x)||"next"===e.swipeDirection?l[E]:l[E-1])}if(w&&e.once("transitionEnd",function(){e.loopFix()}),0!==e.velocity)y=o?Math.abs((-x-e.translate)/e.velocity):Math.abs((x-e.translate)/e.velocity);else if(i.freeModeSticky)return void e.slideToClosest();i.freeModeMomentumBounce&&S?(e.updateProgress(_),e.setTransition(y),e.setTranslate(x),e.transitionStart(!0,e.swipeDirection),e.animating=!0,a.transitionEnd(function(){e&&!e.destroyed&&n.allowMomentumBounce&&(e.emit("momentumBounce"),e.setTransition(i.speed),e.setTranslate(_),a.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))})):e.velocity?(e.updateProgress(x),e.setTransition(y),e.setTranslate(x),e.transitionStart(!0,e.swipeDirection),e.animating||(e.animating=!0,a.transitionEnd(function(){e&&!e.destroyed&&e.transitionEnd()}))):e.updateProgress(x),e.updateActiveIndex(),e.updateSlidesClasses()}else if(i.freeModeSticky)return void e.slideToClosest();(!i.freeModeMomentum||f>=i.longSwipesMs)&&(e.updateProgress(),e.updateActiveIndex(),e.updateSlidesClasses())}else{for(var C=0,L=e.slidesSizesGrid[0],O=0;O<s.length;O+=i.slidesPerGroup)void 0!==s[O+i.slidesPerGroup]?h>=s[O]&&h<s[O+i.slidesPerGroup]&&(C=O,L=s[O+i.slidesPerGroup]-s[O]):h>=s[O]&&(C=O,L=s[s.length-1]-s[s.length-2]);var k=(h-s[C])/L;if(f>i.longSwipesMs){if(!i.longSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&(k>=i.longSwipesRatio?e.slideTo(C+i.slidesPerGroup):e.slideTo(C)),"prev"===e.swipeDirection&&(k>1-i.longSwipesRatio?e.slideTo(C+i.slidesPerGroup):e.slideTo(C))}else{if(!i.shortSwipes)return void e.slideTo(e.activeIndex);"next"===e.swipeDirection&&e.slideTo(C+i.slidesPerGroup),"prev"===e.swipeDirection&&e.slideTo(C)}}}.bind(this),this.onClick=function(t){this.allowClick||(this.params.preventClicks&&t.preventDefault(),this.params.preventClicksPropagation&&this.animating&&(t.stopPropagation(),t.stopImmediatePropagation()))}.bind(this);var s="container"===n.touchEventsTarget?o:a,u=!!n.nested;if(l.touch||!l.pointerEvents&&!l.prefixedPointerEvents){if(l.touch){var h=!("touchstart"!==r.start||!l.passiveListener||!n.passiveListeners)&&{passive:!0,capture:!1};s.addEventListener(r.start,this.onTouchStart,h),s.addEventListener(r.move,this.onTouchMove,l.passiveListener?{passive:!1,capture:u}:u),s.addEventListener(r.end,this.onTouchEnd,h)}(n.simulateTouch&&!x.ios&&!x.android||n.simulateTouch&&!l.touch&&x.ios)&&(s.addEventListener("mousedown",this.onTouchStart,!1),t.addEventListener("mousemove",this.onTouchMove,u),t.addEventListener("mouseup",this.onTouchEnd,!1))}else s.addEventListener(r.start,this.onTouchStart,!1),t.addEventListener(r.move,this.onTouchMove,u),t.addEventListener(r.end,this.onTouchEnd,!1);(n.preventClicks||n.preventClicksPropagation)&&s.addEventListener("click",this.onClick,!0),this.on(x.ios||x.android?"resize orientationchange observerUpdate":"resize observerUpdate",_,!0)},detachEvents:function(){var e=this.params,n=this.touchEvents,i=this.el,r=this.wrapperEl,o="container"===e.touchEventsTarget?i:r,a=!!e.nested;if(l.touch||!l.pointerEvents&&!l.prefixedPointerEvents){if(l.touch){var s=!("onTouchStart"!==n.start||!l.passiveListener||!e.passiveListeners)&&{passive:!0,capture:!1};o.removeEventListener(n.start,this.onTouchStart,s),o.removeEventListener(n.move,this.onTouchMove,a),o.removeEventListener(n.end,this.onTouchEnd,s)}(e.simulateTouch&&!x.ios&&!x.android||e.simulateTouch&&!l.touch&&x.ios)&&(o.removeEventListener("mousedown",this.onTouchStart,!1),t.removeEventListener("mousemove",this.onTouchMove,a),t.removeEventListener("mouseup",this.onTouchEnd,!1))}else o.removeEventListener(n.start,this.onTouchStart,!1),t.removeEventListener(n.move,this.onTouchMove,a),t.removeEventListener(n.end,this.onTouchEnd,!1);(e.preventClicks||e.preventClicksPropagation)&&o.removeEventListener("click",this.onClick,!0),this.off(x.ios||x.android?"resize orientationchange observerUpdate":"resize observerUpdate",_)}},breakpoints:{setBreakpoint:function(){var t=this.activeIndex,e=this.initialized,n=this.loopedSlides;void 0===n&&(n=0);var i=this.params,r=i.breakpoints;if(r&&(!r||0!==Object.keys(r).length)){var o=this.getBreakpoint(r);if(o&&this.currentBreakpoint!==o){var a=o in r?r[o]:void 0;a&&["slidesPerView","spaceBetween","slidesPerGroup"].forEach(function(t){var e=a[t];void 0!==e&&(a[t]="slidesPerView"!==t||"AUTO"!==e&&"auto"!==e?"slidesPerView"===t?parseFloat(e):parseInt(e,10):"auto")});var s=a||this.originalParams,l=s.direction&&s.direction!==i.direction,u=i.loop&&(s.slidesPerView!==i.slidesPerView||l);l&&e&&this.changeDirection(),c.extend(this.params,s),c.extend(this,{allowTouchMove:this.params.allowTouchMove,allowSlideNext:this.params.allowSlideNext,allowSlidePrev:this.params.allowSlidePrev}),this.currentBreakpoint=o,u&&e&&(this.loopDestroy(),this.loopCreate(),this.updateSlides(),this.slideTo(t-n+this.loopedSlides,0,!1)),this.emit("breakpoint",s)}}},getBreakpoint:function(t){if(t){var n=!1,i=[];Object.keys(t).forEach(function(t){i.push(t)}),i.sort(function(t,e){return parseInt(t,10)-parseInt(e,10)});for(var r=0;r<i.length;r+=1){var o=i[r];this.params.breakpointsInverse?o<=e.innerWidth&&(n=o):o>=e.innerWidth&&!n&&(n=o)}return n||"max"}}},checkOverflow:{checkOverflow:function(){var t=this.isLocked;this.isLocked=1===this.snapGrid.length,this.allowSlideNext=!this.isLocked,this.allowSlidePrev=!this.isLocked,t!==this.isLocked&&this.emit(this.isLocked?"lock":"unlock"),t&&t!==this.isLocked&&(this.isEnd=!1,this.navigation.update())}},classes:{addClasses:function(){var t=this.classNames,e=this.params,n=this.rtl,i=this.$el,r=[];r.push("initialized"),r.push(e.direction),e.freeMode&&r.push("free-mode"),l.flexbox||r.push("no-flexbox"),e.autoHeight&&r.push("autoheight"),n&&r.push("rtl"),e.slidesPerColumn>1&&r.push("multirow"),x.android&&r.push("android"),x.ios&&r.push("ios"),(u.isIE||u.isEdge)&&(l.pointerEvents||l.prefixedPointerEvents)&&r.push("wp8-"+e.direction),r.forEach(function(n){t.push(e.containerModifierClass+n)}),i.addClass(t.join(" "))},removeClasses:function(){var t=this.$el,e=this.classNames;t.removeClass(e.join(" "))}},images:{loadImage:function(t,n,i,r,o,a){var s;function c(){a&&a()}t.complete&&o?c():n?((s=new e.Image).onload=c,s.onerror=c,r&&(s.sizes=r),i&&(s.srcset=i),n&&(s.src=n)):c()},preloadImages:function(){var t=this;function e(){void 0!==t&&null!==t&&t&&!t.destroyed&&(void 0!==t.imagesLoaded&&(t.imagesLoaded+=1),t.imagesLoaded===t.imagesToLoad.length&&(t.params.updateOnImagesReady&&t.update(),t.emit("imagesReady")))}t.imagesToLoad=t.$el.find("img");for(var n=0;n<t.imagesToLoad.length;n+=1){var i=t.imagesToLoad[n];t.loadImage(i,i.currentSrc||i.getAttribute("src"),i.srcset||i.getAttribute("srcset"),i.sizes||i.getAttribute("sizes"),!0,e)}}}},T={},E=function(t){function e(){for(var n,r,o,a=[],s=arguments.length;s--;)a[s]=arguments[s];1===a.length&&a[0].constructor&&a[0].constructor===Object?o=a[0]:(r=(n=a)[0],o=n[1]),o||(o={}),o=c.extend({},o),r&&!o.el&&(o.el=r),t.call(this,o),Object.keys(S).forEach(function(t){Object.keys(S[t]).forEach(function(n){e.prototype[n]||(e.prototype[n]=S[t][n])})});var u=this;void 0===u.modules&&(u.modules={}),Object.keys(u.modules).forEach(function(t){var e=u.modules[t];if(e.params){var n=Object.keys(e.params)[0],i=e.params[n];if("object"!=typeof i||null===i)return;if(!(n in o&&"enabled"in i))return;!0===o[n]&&(o[n]={enabled:!0}),"object"!=typeof o[n]||"enabled"in o[n]||(o[n].enabled=!0),o[n]||(o[n]={enabled:!1})}});var h=c.extend({},w);u.useModulesParams(h),u.params=c.extend({},h,T,o),u.originalParams=c.extend({},u.params),u.passedParams=c.extend({},o),u.$=i;var d=i(u.params.el);if(r=d[0]){if(d.length>1){var f=[];return d.each(function(t,n){var i=c.extend({},o,{el:n});f.push(new e(i))}),f}r.swiper=u,d.data("swiper",u);var p,m,v=d.children("."+u.params.wrapperClass);return c.extend(u,{$el:d,el:r,$wrapperEl:v,wrapperEl:v[0],classNames:[],slides:i(),slidesGrid:[],snapGrid:[],slidesSizesGrid:[],isHorizontal:function(){return"horizontal"===u.params.direction},isVertical:function(){return"vertical"===u.params.direction},rtl:"rtl"===r.dir.toLowerCase()||"rtl"===d.css("direction"),rtlTranslate:"horizontal"===u.params.direction&&("rtl"===r.dir.toLowerCase()||"rtl"===d.css("direction")),wrongRTL:"-webkit-box"===v.css("display"),activeIndex:0,realIndex:0,isBeginning:!0,isEnd:!1,translate:0,previousTranslate:0,progress:0,velocity:0,animating:!1,allowSlideNext:u.params.allowSlideNext,allowSlidePrev:u.params.allowSlidePrev,touchEvents:(p=["touchstart","touchmove","touchend"],m=["mousedown","mousemove","mouseup"],l.pointerEvents?m=["pointerdown","pointermove","pointerup"]:l.prefixedPointerEvents&&(m=["MSPointerDown","MSPointerMove","MSPointerUp"]),u.touchEventsTouch={start:p[0],move:p[1],end:p[2]},u.touchEventsDesktop={start:m[0],move:m[1],end:m[2]},l.touch||!u.params.simulateTouch?u.touchEventsTouch:u.touchEventsDesktop),touchEventsData:{isTouched:void 0,isMoved:void 0,allowTouchCallbacks:void 0,touchStartTime:void 0,isScrolling:void 0,currentTranslate:void 0,startTranslate:void 0,allowThresholdMove:void 0,formElements:"input, select, option, textarea, button, video",lastClickTime:c.now(),clickTimeout:void 0,velocities:[],allowMomentumBounce:void 0,isTouchEvent:void 0,startMoving:void 0},allowClick:!0,allowTouchMove:u.params.allowTouchMove,touches:{startX:0,startY:0,currentX:0,currentY:0,diff:0},imagesToLoad:[],imagesLoaded:0}),u.useModules(),u.params.init&&u.init(),u}}t&&(e.__proto__=t),e.prototype=Object.create(t&&t.prototype),e.prototype.constructor=e;var n={extendedDefaults:{configurable:!0},defaults:{configurable:!0},Class:{configurable:!0},$:{configurable:!0}};return e.prototype.slidesPerViewDynamic=function(){var t=this.params,e=this.slides,n=this.slidesGrid,i=this.size,r=this.activeIndex,o=1;if(t.centeredSlides){for(var a,s=e[r].swiperSlideSize,c=r+1;c<e.length;c+=1)e[c]&&!a&&(o+=1,(s+=e[c].swiperSlideSize)>i&&(a=!0));for(var l=r-1;l>=0;l-=1)e[l]&&!a&&(o+=1,(s+=e[l].swiperSlideSize)>i&&(a=!0))}else for(var u=r+1;u<e.length;u+=1)n[u]-n[r]<i&&(o+=1);return o},e.prototype.update=function(){var t=this;if(t&&!t.destroyed){var e=t.snapGrid,n=t.params;n.breakpoints&&t.setBreakpoint(),t.updateSize(),t.updateSlides(),t.updateProgress(),t.updateSlidesClasses(),t.params.freeMode?(i(),t.params.autoHeight&&t.updateAutoHeight()):(("auto"===t.params.slidesPerView||t.params.slidesPerView>1)&&t.isEnd&&!t.params.centeredSlides?t.slideTo(t.slides.length-1,0,!1,!0):t.slideTo(t.activeIndex,0,!1,!0))||i(),n.watchOverflow&&e!==t.snapGrid&&t.checkOverflow(),t.emit("update")}function i(){var e=t.rtlTranslate?-1*t.translate:t.translate,n=Math.min(Math.max(e,t.maxTranslate()),t.minTranslate());t.setTranslate(n),t.updateActiveIndex(),t.updateSlidesClasses()}},e.prototype.changeDirection=function(t,e){void 0===e&&(e=!0);var n=this.params.direction;return t||(t="horizontal"===n?"vertical":"horizontal"),t===n||"horizontal"!==t&&"vertical"!==t?this:(this.$el.removeClass(""+this.params.containerModifierClass+n+" wp8-"+n).addClass(""+this.params.containerModifierClass+t),(u.isIE||u.isEdge)&&(l.pointerEvents||l.prefixedPointerEvents)&&this.$el.addClass(this.params.containerModifierClass+"wp8-"+t),this.params.direction=t,this.slides.each(function(e,n){"vertical"===t?n.style.width="":n.style.height=""}),this.emit("changeDirection"),e&&this.update(),this)},e.prototype.init=function(){this.initialized||(this.emit("beforeInit"),this.params.breakpoints&&this.setBreakpoint(),this.addClasses(),this.params.loop&&this.loopCreate(),this.updateSize(),this.updateSlides(),this.params.watchOverflow&&this.checkOverflow(),this.params.grabCursor&&this.setGrabCursor(),this.params.preloadImages&&this.preloadImages(),this.params.loop?this.slideTo(this.params.initialSlide+this.loopedSlides,0,this.params.runCallbacksOnInit):this.slideTo(this.params.initialSlide,0,this.params.runCallbacksOnInit),this.attachEvents(),this.initialized=!0,this.emit("init"))},e.prototype.destroy=function(t,e){void 0===t&&(t=!0),void 0===e&&(e=!0);var n=this,i=n.params,r=n.$el,o=n.$wrapperEl,a=n.slides;return void 0===n.params||n.destroyed?null:(n.emit("beforeDestroy"),n.initialized=!1,n.detachEvents(),i.loop&&n.loopDestroy(),e&&(n.removeClasses(),r.removeAttr("style"),o.removeAttr("style"),a&&a.length&&a.removeClass([i.slideVisibleClass,i.slideActiveClass,i.slideNextClass,i.slidePrevClass].join(" ")).removeAttr("style").removeAttr("data-swiper-slide-index").removeAttr("data-swiper-column").removeAttr("data-swiper-row")),n.emit("destroy"),Object.keys(n.eventsListeners).forEach(function(t){n.off(t)}),!1!==t&&(n.$el[0].swiper=null,n.$el.data("swiper",null),c.deleteProps(n)),n.destroyed=!0,null)},e.extendDefaults=function(t){c.extend(T,t)},n.extendedDefaults.get=function(){return T},n.defaults.get=function(){return w},n.Class.get=function(){return t},n.$.get=function(){return i},Object.defineProperties(e,n),e}(h),M={name:"device",proto:{device:x},static:{device:x}},C={name:"support",proto:{support:l},static:{support:l}},L={name:"browser",proto:{browser:u},static:{browser:u}},O={name:"resize",create:function(){var t=this;c.extend(t,{resize:{resizeHandler:function(){t&&!t.destroyed&&t.initialized&&(t.emit("beforeResize"),t.emit("resize"))},orientationChangeHandler:function(){t&&!t.destroyed&&t.initialized&&t.emit("orientationchange")}}})},on:{init:function(){e.addEventListener("resize",this.resize.resizeHandler),e.addEventListener("orientationchange",this.resize.orientationChangeHandler)},destroy:function(){e.removeEventListener("resize",this.resize.resizeHandler),e.removeEventListener("orientationchange",this.resize.orientationChangeHandler)}}},k={func:e.MutationObserver||e.WebkitMutationObserver,attach:function(t,n){void 0===n&&(n={});var i=this,r=new(0,k.func)(function(t){if(1!==t.length){var n=function(){i.emit("observerUpdate",t[0])};e.requestAnimationFrame?e.requestAnimationFrame(n):e.setTimeout(n,0)}else i.emit("observerUpdate",t[0])});r.observe(t,{attributes:void 0===n.attributes||n.attributes,childList:void 0===n.childList||n.childList,characterData:void 0===n.characterData||n.characterData}),i.observer.observers.push(r)},init:function(){if(l.observer&&this.params.observer){if(this.params.observeParents)for(var t=this.$el.parents(),e=0;e<t.length;e+=1)this.observer.attach(t[e]);this.observer.attach(this.$el[0],{childList:this.params.observeSlideChildren}),this.observer.attach(this.$wrapperEl[0],{attributes:!1})}},destroy:function(){this.observer.observers.forEach(function(t){t.disconnect()}),this.observer.observers=[]}},P={name:"observer",params:{observer:!1,observeParents:!1,observeSlideChildren:!1},create:function(){c.extend(this,{observer:{init:k.init.bind(this),attach:k.attach.bind(this),destroy:k.destroy.bind(this),observers:[]}})},on:{init:function(){this.observer.init()},destroy:function(){this.observer.destroy()}}},A={update:function(t){var e=this,n=e.params,i=n.slidesPerView,r=n.slidesPerGroup,o=n.centeredSlides,a=e.params.virtual,s=a.addSlidesBefore,l=a.addSlidesAfter,u=e.virtual,h=u.from,d=u.to,f=u.slides,p=u.slidesGrid,m=u.renderSlide,v=u.offset;e.updateActiveIndex();var g,y,b,x=e.activeIndex||0;g=e.rtlTranslate?"right":e.isHorizontal()?"left":"top",o?(y=Math.floor(i/2)+r+s,b=Math.floor(i/2)+r+l):(y=i+(r-1)+s,b=r+l);var _=Math.max((x||0)-b,0),w=Math.min((x||0)+y,f.length-1),S=(e.slidesGrid[_]||0)-(e.slidesGrid[0]||0);function T(){e.updateSlides(),e.updateProgress(),e.updateSlidesClasses(),e.lazy&&e.params.lazy.enabled&&e.lazy.load()}if(c.extend(e.virtual,{from:_,to:w,offset:S,slidesGrid:e.slidesGrid}),h===_&&d===w&&!t)return e.slidesGrid!==p&&S!==v&&e.slides.css(g,S+"px"),void e.updateProgress();if(e.params.virtual.renderExternal)return e.params.virtual.renderExternal.call(e,{offset:S,from:_,to:w,slides:function(){for(var t=[],e=_;e<=w;e+=1)t.push(f[e]);return t}()}),void T();var E=[],M=[];if(t)e.$wrapperEl.find("."+e.params.slideClass).remove();else for(var C=h;C<=d;C+=1)(C<_||C>w)&&e.$wrapperEl.find("."+e.params.slideClass+'[data-swiper-slide-index="'+C+'"]').remove();for(var L=0;L<f.length;L+=1)L>=_&&L<=w&&(void 0===d||t?M.push(L):(L>d&&M.push(L),L<h&&E.push(L)));M.forEach(function(t){e.$wrapperEl.append(m(f[t],t))}),E.sort(function(t,e){return e-t}).forEach(function(t){e.$wrapperEl.prepend(m(f[t],t))}),e.$wrapperEl.children(".swiper-slide").css(g,S+"px"),T()},renderSlide:function(t,e){var n=this.params.virtual;if(n.cache&&this.virtual.cache[e])return this.virtual.cache[e];var r=n.renderSlide?i(n.renderSlide.call(this,t,e)):i('<div class="'+this.params.slideClass+'" data-swiper-slide-index="'+e+'">'+t+"</div>");return r.attr("data-swiper-slide-index")||r.attr("data-swiper-slide-index",e),n.cache&&(this.virtual.cache[e]=r),r},appendSlide:function(t){if("object"==typeof t&&"length"in t)for(var e=0;e<t.length;e+=1)t[e]&&this.virtual.slides.push(t[e]);else this.virtual.slides.push(t);this.virtual.update(!0)},prependSlide:function(t){var e=this.activeIndex,n=e+1,i=1;if(Array.isArray(t)){for(var r=0;r<t.length;r+=1)t[r]&&this.virtual.slides.unshift(t[r]);n=e+t.length,i=t.length}else this.virtual.slides.unshift(t);if(this.params.virtual.cache){var o=this.virtual.cache,a={};Object.keys(o).forEach(function(t){a[parseInt(t,10)+i]=o[t]}),this.virtual.cache=a}this.virtual.update(!0),this.slideTo(n,0)},removeSlide:function(t){if(void 0!==t&&null!==t){var e=this.activeIndex;if(Array.isArray(t))for(var n=t.length-1;n>=0;n-=1)this.virtual.slides.splice(t[n],1),this.params.virtual.cache&&delete this.virtual.cache[t[n]],t[n]<e&&(e-=1),e=Math.max(e,0);else this.virtual.slides.splice(t,1),this.params.virtual.cache&&delete this.virtual.cache[t],t<e&&(e-=1),e=Math.max(e,0);this.virtual.update(!0),this.slideTo(e,0)}},removeAllSlides:function(){this.virtual.slides=[],this.params.virtual.cache&&(this.virtual.cache={}),this.virtual.update(!0),this.slideTo(0,0)}},I={name:"virtual",params:{virtual:{enabled:!1,slides:[],cache:!0,renderSlide:null,renderExternal:null,addSlidesBefore:0,addSlidesAfter:0}},create:function(){c.extend(this,{virtual:{update:A.update.bind(this),appendSlide:A.appendSlide.bind(this),prependSlide:A.prependSlide.bind(this),removeSlide:A.removeSlide.bind(this),removeAllSlides:A.removeAllSlides.bind(this),renderSlide:A.renderSlide.bind(this),slides:this.params.virtual.slides,cache:{}}})},on:{beforeInit:function(){if(this.params.virtual.enabled){this.classNames.push(this.params.containerModifierClass+"virtual");var t={watchSlidesProgress:!0};c.extend(this.params,t),c.extend(this.originalParams,t),this.params.initialSlide||this.virtual.update()}},setTranslate:function(){this.params.virtual.enabled&&this.virtual.update()}}},D={handle:function(n){var i=this.rtlTranslate,r=n;r.originalEvent&&(r=r.originalEvent);var o=r.keyCode||r.charCode;if(!this.allowSlideNext&&(this.isHorizontal()&&39===o||this.isVertical()&&40===o||34===o))return!1;if(!this.allowSlidePrev&&(this.isHorizontal()&&37===o||this.isVertical()&&38===o||33===o))return!1;if(!(r.shiftKey||r.altKey||r.ctrlKey||r.metaKey||t.activeElement&&t.activeElement.nodeName&&("input"===t.activeElement.nodeName.toLowerCase()||"textarea"===t.activeElement.nodeName.toLowerCase()))){if(this.params.keyboard.onlyInViewport&&(33===o||34===o||37===o||39===o||38===o||40===o)){var a=!1;if(this.$el.parents("."+this.params.slideClass).length>0&&0===this.$el.parents("."+this.params.slideActiveClass).length)return;var s=e.innerWidth,c=e.innerHeight,l=this.$el.offset();i&&(l.left-=this.$el[0].scrollLeft);for(var u=[[l.left,l.top],[l.left+this.width,l.top],[l.left,l.top+this.height],[l.left+this.width,l.top+this.height]],h=0;h<u.length;h+=1){var d=u[h];d[0]>=0&&d[0]<=s&&d[1]>=0&&d[1]<=c&&(a=!0)}if(!a)return}this.isHorizontal()?(33!==o&&34!==o&&37!==o&&39!==o||(r.preventDefault?r.preventDefault():r.returnValue=!1),(34!==o&&39!==o||i)&&(33!==o&&37!==o||!i)||this.slideNext(),(33!==o&&37!==o||i)&&(34!==o&&39!==o||!i)||this.slidePrev()):(33!==o&&34!==o&&38!==o&&40!==o||(r.preventDefault?r.preventDefault():r.returnValue=!1),34!==o&&40!==o||this.slideNext(),33!==o&&38!==o||this.slidePrev()),this.emit("keyPress",o)}},enable:function(){this.keyboard.enabled||(i(t).on("keydown",this.keyboard.handle),this.keyboard.enabled=!0)},disable:function(){this.keyboard.enabled&&(i(t).off("keydown",this.keyboard.handle),this.keyboard.enabled=!1)}},R={name:"keyboard",params:{keyboard:{enabled:!1,onlyInViewport:!0}},create:function(){c.extend(this,{keyboard:{enabled:!1,enable:D.enable.bind(this),disable:D.disable.bind(this),handle:D.handle.bind(this)}})},on:{init:function(){this.params.keyboard.enabled&&this.keyboard.enable()},destroy:function(){this.keyboard.enabled&&this.keyboard.disable()}}};var B={lastScrollTime:c.now(),event:e.navigator.userAgent.indexOf("firefox")>-1?"DOMMouseScroll":function(){var e="onwheel"in t;if(!e){var n=t.createElement("div");n.setAttribute("onwheel","return;"),e="function"==typeof n.onwheel}return!e&&t.implementation&&t.implementation.hasFeature&&!0!==t.implementation.hasFeature("","")&&(e=t.implementation.hasFeature("Events.wheel","3.0")),e}()?"wheel":"mousewheel",normalize:function(t){var e=0,n=0,i=0,r=0;return"detail"in t&&(n=t.detail),"wheelDelta"in t&&(n=-t.wheelDelta/120),"wheelDeltaY"in t&&(n=-t.wheelDeltaY/120),"wheelDeltaX"in t&&(e=-t.wheelDeltaX/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(e=n,n=0),i=10*e,r=10*n,"deltaY"in t&&(r=t.deltaY),"deltaX"in t&&(i=t.deltaX),(i||r)&&t.deltaMode&&(1===t.deltaMode?(i*=40,r*=40):(i*=800,r*=800)),i&&!e&&(e=i<1?-1:1),r&&!n&&(n=r<1?-1:1),{spinX:e,spinY:n,pixelX:i,pixelY:r}},handleMouseEnter:function(){this.mouseEntered=!0},handleMouseLeave:function(){this.mouseEntered=!1},handle:function(t){var n=t,i=this,r=i.params.mousewheel;if(!i.mouseEntered&&!r.releaseOnEdges)return!0;n.originalEvent&&(n=n.originalEvent);var o=0,a=i.rtlTranslate?-1:1,s=B.normalize(n);if(r.forceToAxis)if(i.isHorizontal()){if(!(Math.abs(s.pixelX)>Math.abs(s.pixelY)))return!0;o=s.pixelX*a}else{if(!(Math.abs(s.pixelY)>Math.abs(s.pixelX)))return!0;o=s.pixelY}else o=Math.abs(s.pixelX)>Math.abs(s.pixelY)?-s.pixelX*a:-s.pixelY;if(0===o)return!0;if(r.invert&&(o=-o),i.params.freeMode){i.params.loop&&i.loopFix();var l=i.getTranslate()+o*r.sensitivity,u=i.isBeginning,h=i.isEnd;if(l>=i.minTranslate()&&(l=i.minTranslate()),l<=i.maxTranslate()&&(l=i.maxTranslate()),i.setTransition(0),i.setTranslate(l),i.updateProgress(),i.updateActiveIndex(),i.updateSlidesClasses(),(!u&&i.isBeginning||!h&&i.isEnd)&&i.updateSlidesClasses(),i.params.freeModeSticky&&(clearTimeout(i.mousewheel.timeout),i.mousewheel.timeout=c.nextTick(function(){i.slideToClosest()},300)),i.emit("scroll",n),i.params.autoplay&&i.params.autoplayDisableOnInteraction&&i.autoplay.stop(),l===i.minTranslate()||l===i.maxTranslate())return!0}else{if(c.now()-i.mousewheel.lastScrollTime>60)if(o<0)if(i.isEnd&&!i.params.loop||i.animating){if(r.releaseOnEdges)return!0}else i.slideNext(),i.emit("scroll",n);else if(i.isBeginning&&!i.params.loop||i.animating){if(r.releaseOnEdges)return!0}else i.slidePrev(),i.emit("scroll",n);i.mousewheel.lastScrollTime=(new e.Date).getTime()}return n.preventDefault?n.preventDefault():n.returnValue=!1,!1},enable:function(){if(!B.event)return!1;if(this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=i(this.params.mousewheel.eventsTarged)),t.on("mouseenter",this.mousewheel.handleMouseEnter),t.on("mouseleave",this.mousewheel.handleMouseLeave),t.on(B.event,this.mousewheel.handle),this.mousewheel.enabled=!0,!0},disable:function(){if(!B.event)return!1;if(!this.mousewheel.enabled)return!1;var t=this.$el;return"container"!==this.params.mousewheel.eventsTarged&&(t=i(this.params.mousewheel.eventsTarged)),t.off(B.event,this.mousewheel.handle),this.mousewheel.enabled=!1,!0}},N={update:function(){var t=this.params.navigation;if(!this.params.loop){var e=this.navigation,n=e.$nextEl,i=e.$prevEl;i&&i.length>0&&(this.isBeginning?i.addClass(t.disabledClass):i.removeClass(t.disabledClass),i[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass)),n&&n.length>0&&(this.isEnd?n.addClass(t.disabledClass):n.removeClass(t.disabledClass),n[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](t.lockClass))}},onPrevClick:function(t){t.preventDefault(),this.isBeginning&&!this.params.loop||this.slidePrev()},onNextClick:function(t){t.preventDefault(),this.isEnd&&!this.params.loop||this.slideNext()},init:function(){var t,e,n=this.params.navigation;(n.nextEl||n.prevEl)&&(n.nextEl&&(t=i(n.nextEl),this.params.uniqueNavElements&&"string"==typeof n.nextEl&&t.length>1&&1===this.$el.find(n.nextEl).length&&(t=this.$el.find(n.nextEl))),n.prevEl&&(e=i(n.prevEl),this.params.uniqueNavElements&&"string"==typeof n.prevEl&&e.length>1&&1===this.$el.find(n.prevEl).length&&(e=this.$el.find(n.prevEl))),t&&t.length>0&&t.on("click",this.navigation.onNextClick),e&&e.length>0&&e.on("click",this.navigation.onPrevClick),c.extend(this.navigation,{$nextEl:t,nextEl:t&&t[0],$prevEl:e,prevEl:e&&e[0]}))},destroy:function(){var t=this.navigation,e=t.$nextEl,n=t.$prevEl;e&&e.length&&(e.off("click",this.navigation.onNextClick),e.removeClass(this.params.navigation.disabledClass)),n&&n.length&&(n.off("click",this.navigation.onPrevClick),n.removeClass(this.params.navigation.disabledClass))}},j={update:function(){var t=this.rtl,e=this.params.pagination;if(e.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var n,r=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,o=this.pagination.$el,a=this.params.loop?Math.ceil((r-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length;if(this.params.loop?((n=Math.ceil((this.activeIndex-this.loopedSlides)/this.params.slidesPerGroup))>r-1-2*this.loopedSlides&&(n-=r-2*this.loopedSlides),n>a-1&&(n-=a),n<0&&"bullets"!==this.params.paginationType&&(n=a+n)):n=void 0!==this.snapIndex?this.snapIndex:this.activeIndex||0,"bullets"===e.type&&this.pagination.bullets&&this.pagination.bullets.length>0){var s,c,l,u=this.pagination.bullets;if(e.dynamicBullets&&(this.pagination.bulletSize=u.eq(0)[this.isHorizontal()?"outerWidth":"outerHeight"](!0),o.css(this.isHorizontal()?"width":"height",this.pagination.bulletSize*(e.dynamicMainBullets+4)+"px"),e.dynamicMainBullets>1&&void 0!==this.previousIndex&&(this.pagination.dynamicBulletIndex+=n-this.previousIndex,this.pagination.dynamicBulletIndex>e.dynamicMainBullets-1?this.pagination.dynamicBulletIndex=e.dynamicMainBullets-1:this.pagination.dynamicBulletIndex<0&&(this.pagination.dynamicBulletIndex=0)),s=n-this.pagination.dynamicBulletIndex,l=((c=s+(Math.min(u.length,e.dynamicMainBullets)-1))+s)/2),u.removeClass(e.bulletActiveClass+" "+e.bulletActiveClass+"-next "+e.bulletActiveClass+"-next-next "+e.bulletActiveClass+"-prev "+e.bulletActiveClass+"-prev-prev "+e.bulletActiveClass+"-main"),o.length>1)u.each(function(t,r){var o=i(r),a=o.index();a===n&&o.addClass(e.bulletActiveClass),e.dynamicBullets&&(a>=s&&a<=c&&o.addClass(e.bulletActiveClass+"-main"),a===s&&o.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),a===c&&o.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next"))});else if(u.eq(n).addClass(e.bulletActiveClass),e.dynamicBullets){for(var h=u.eq(s),d=u.eq(c),f=s;f<=c;f+=1)u.eq(f).addClass(e.bulletActiveClass+"-main");h.prev().addClass(e.bulletActiveClass+"-prev").prev().addClass(e.bulletActiveClass+"-prev-prev"),d.next().addClass(e.bulletActiveClass+"-next").next().addClass(e.bulletActiveClass+"-next-next")}if(e.dynamicBullets){var p=Math.min(u.length,e.dynamicMainBullets+4),m=(this.pagination.bulletSize*p-this.pagination.bulletSize)/2-l*this.pagination.bulletSize,v=t?"right":"left";u.css(this.isHorizontal()?v:"top",m+"px")}}if("fraction"===e.type&&(o.find("."+e.currentClass).text(e.formatFractionCurrent(n+1)),o.find("."+e.totalClass).text(e.formatFractionTotal(a))),"progressbar"===e.type){var g;g=e.progressbarOpposite?this.isHorizontal()?"vertical":"horizontal":this.isHorizontal()?"horizontal":"vertical";var y=(n+1)/a,b=1,x=1;"horizontal"===g?b=y:x=y,o.find("."+e.progressbarFillClass).transform("translate3d(0,0,0) scaleX("+b+") scaleY("+x+")").transition(this.params.speed)}"custom"===e.type&&e.renderCustom?(o.html(e.renderCustom(this,n+1,a)),this.emit("paginationRender",this,o[0])):this.emit("paginationUpdate",this,o[0]),o[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](e.lockClass)}},render:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.virtual&&this.params.virtual.enabled?this.virtual.slides.length:this.slides.length,n=this.pagination.$el,i="";if("bullets"===t.type){for(var r=this.params.loop?Math.ceil((e-2*this.loopedSlides)/this.params.slidesPerGroup):this.snapGrid.length,o=0;o<r;o+=1)t.renderBullet?i+=t.renderBullet.call(this,o,t.bulletClass):i+="<"+t.bulletElement+' class="'+t.bulletClass+'"></'+t.bulletElement+">";n.html(i),this.pagination.bullets=n.find("."+t.bulletClass)}"fraction"===t.type&&(i=t.renderFraction?t.renderFraction.call(this,t.currentClass,t.totalClass):'<span class="'+t.currentClass+'"></span> / <span class="'+t.totalClass+'"></span>',n.html(i)),"progressbar"===t.type&&(i=t.renderProgressbar?t.renderProgressbar.call(this,t.progressbarFillClass):'<span class="'+t.progressbarFillClass+'"></span>',n.html(i)),"custom"!==t.type&&this.emit("paginationRender",this.pagination.$el[0])}},init:function(){var t=this,e=t.params.pagination;if(e.el){var n=i(e.el);0!==n.length&&(t.params.uniqueNavElements&&"string"==typeof e.el&&n.length>1&&1===t.$el.find(e.el).length&&(n=t.$el.find(e.el)),"bullets"===e.type&&e.clickable&&n.addClass(e.clickableClass),n.addClass(e.modifierClass+e.type),"bullets"===e.type&&e.dynamicBullets&&(n.addClass(""+e.modifierClass+e.type+"-dynamic"),t.pagination.dynamicBulletIndex=0,e.dynamicMainBullets<1&&(e.dynamicMainBullets=1)),"progressbar"===e.type&&e.progressbarOpposite&&n.addClass(e.progressbarOppositeClass),e.clickable&&n.on("click","."+e.bulletClass,function(e){e.preventDefault();var n=i(this).index()*t.params.slidesPerGroup;t.params.loop&&(n+=t.loopedSlides),t.slideTo(n)}),c.extend(t.pagination,{$el:n,el:n[0]}))}},destroy:function(){var t=this.params.pagination;if(t.el&&this.pagination.el&&this.pagination.$el&&0!==this.pagination.$el.length){var e=this.pagination.$el;e.removeClass(t.hiddenClass),e.removeClass(t.modifierClass+t.type),this.pagination.bullets&&this.pagination.bullets.removeClass(t.bulletActiveClass),t.clickable&&e.off("click","."+t.bulletClass)}}},z={setTranslate:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=this.rtlTranslate,n=this.progress,i=t.dragSize,r=t.trackSize,o=t.$dragEl,a=t.$el,s=this.params.scrollbar,c=i,u=(r-i)*n;e?(u=-u)>0?(c=i-u,u=0):-u+i>r&&(c=r+u):u<0?(c=i+u,u=0):u+i>r&&(c=r-u),this.isHorizontal()?(l.transforms3d?o.transform("translate3d("+u+"px, 0, 0)"):o.transform("translateX("+u+"px)"),o[0].style.width=c+"px"):(l.transforms3d?o.transform("translate3d(0px, "+u+"px, 0)"):o.transform("translateY("+u+"px)"),o[0].style.height=c+"px"),s.hide&&(clearTimeout(this.scrollbar.timeout),a[0].style.opacity=1,this.scrollbar.timeout=setTimeout(function(){a[0].style.opacity=0,a.transition(400)},1e3))}},setTransition:function(t){this.params.scrollbar.el&&this.scrollbar.el&&this.scrollbar.$dragEl.transition(t)},updateSize:function(){if(this.params.scrollbar.el&&this.scrollbar.el){var t=this.scrollbar,e=t.$dragEl,n=t.$el;e[0].style.width="",e[0].style.height="";var i,r=this.isHorizontal()?n[0].offsetWidth:n[0].offsetHeight,o=this.size/this.virtualSize,a=o*(r/this.size);i="auto"===this.params.scrollbar.dragSize?r*o:parseInt(this.params.scrollbar.dragSize,10),this.isHorizontal()?e[0].style.width=i+"px":e[0].style.height=i+"px",n[0].style.display=o>=1?"none":"",this.params.scrollbar.hide&&(n[0].style.opacity=0),c.extend(t,{trackSize:r,divider:o,moveDivider:a,dragSize:i}),t.$el[this.params.watchOverflow&&this.isLocked?"addClass":"removeClass"](this.params.scrollbar.lockClass)}},getPointerPosition:function(t){return this.isHorizontal()?"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageX:t.pageX||t.clientX:"touchstart"===t.type||"touchmove"===t.type?t.targetTouches[0].pageY:t.pageY||t.clientY},setDragPosition:function(t){var e,n=this.scrollbar,i=this.rtlTranslate,r=n.$el,o=n.dragSize,a=n.trackSize,s=n.dragStartPos;e=(n.getPointerPosition(t)-r.offset()[this.isHorizontal()?"left":"top"]-(null!==s?s:o/2))/(a-o),e=Math.max(Math.min(e,1),0),i&&(e=1-e);var c=this.minTranslate()+(this.maxTranslate()-this.minTranslate())*e;this.updateProgress(c),this.setTranslate(c),this.updateActiveIndex(),this.updateSlidesClasses()},onDragStart:function(t){var e=this.params.scrollbar,n=this.scrollbar,i=this.$wrapperEl,r=n.$el,o=n.$dragEl;this.scrollbar.isTouched=!0,this.scrollbar.dragStartPos=t.target===o[0]||t.target===o?n.getPointerPosition(t)-t.target.getBoundingClientRect()[this.isHorizontal()?"left":"top"]:null,t.preventDefault(),t.stopPropagation(),i.transition(100),o.transition(100),n.setDragPosition(t),clearTimeout(this.scrollbar.dragTimeout),r.transition(0),e.hide&&r.css("opacity",1),this.emit("scrollbarDragStart",t)},onDragMove:function(t){var e=this.scrollbar,n=this.$wrapperEl,i=e.$el,r=e.$dragEl;this.scrollbar.isTouched&&(t.preventDefault?t.preventDefault():t.returnValue=!1,e.setDragPosition(t),n.transition(0),i.transition(0),r.transition(0),this.emit("scrollbarDragMove",t))},onDragEnd:function(t){var e=this.params.scrollbar,n=this.scrollbar.$el;this.scrollbar.isTouched&&(this.scrollbar.isTouched=!1,e.hide&&(clearTimeout(this.scrollbar.dragTimeout),this.scrollbar.dragTimeout=c.nextTick(function(){n.css("opacity",0),n.transition(400)},1e3)),this.emit("scrollbarDragEnd",t),e.snapOnRelease&&this.slideToClosest())},enableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,n=this.touchEventsTouch,i=this.touchEventsDesktop,r=this.params,o=e.$el[0],a=!(!l.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},s=!(!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};l.touch?(o.addEventListener(n.start,this.scrollbar.onDragStart,a),o.addEventListener(n.move,this.scrollbar.onDragMove,a),o.addEventListener(n.end,this.scrollbar.onDragEnd,s)):(o.addEventListener(i.start,this.scrollbar.onDragStart,a),t.addEventListener(i.move,this.scrollbar.onDragMove,a),t.addEventListener(i.end,this.scrollbar.onDragEnd,s))}},disableDraggable:function(){if(this.params.scrollbar.el){var e=this.scrollbar,n=this.touchEventsTouch,i=this.touchEventsDesktop,r=this.params,o=e.$el[0],a=!(!l.passiveListener||!r.passiveListeners)&&{passive:!1,capture:!1},s=!(!l.passiveListener||!r.passiveListeners)&&{passive:!0,capture:!1};l.touch?(o.removeEventListener(n.start,this.scrollbar.onDragStart,a),o.removeEventListener(n.move,this.scrollbar.onDragMove,a),o.removeEventListener(n.end,this.scrollbar.onDragEnd,s)):(o.removeEventListener(i.start,this.scrollbar.onDragStart,a),t.removeEventListener(i.move,this.scrollbar.onDragMove,a),t.removeEventListener(i.end,this.scrollbar.onDragEnd,s))}},init:function(){if(this.params.scrollbar.el){var t=this.scrollbar,e=this.$el,n=this.params.scrollbar,r=i(n.el);this.params.uniqueNavElements&&"string"==typeof n.el&&r.length>1&&1===e.find(n.el).length&&(r=e.find(n.el));var o=r.find("."+this.params.scrollbar.dragClass);0===o.length&&(o=i('<div class="'+this.params.scrollbar.dragClass+'"></div>'),r.append(o)),c.extend(t,{$el:r,el:r[0],$dragEl:o,dragEl:o[0]}),n.draggable&&t.enableDraggable()}},destroy:function(){this.scrollbar.disableDraggable()}},F={setTransform:function(t,e){var n=this.rtl,r=i(t),o=n?-1:1,a=r.attr("data-swiper-parallax")||"0",s=r.attr("data-swiper-parallax-x"),c=r.attr("data-swiper-parallax-y"),l=r.attr("data-swiper-parallax-scale"),u=r.attr("data-swiper-parallax-opacity");if(s||c?(s=s||"0",c=c||"0"):this.isHorizontal()?(s=a,c="0"):(c=a,s="0"),s=s.indexOf("%")>=0?parseInt(s,10)*e*o+"%":s*e*o+"px",c=c.indexOf("%")>=0?parseInt(c,10)*e+"%":c*e+"px",void 0!==u&&null!==u){var h=u-(u-1)*(1-Math.abs(e));r[0].style.opacity=h}if(void 0===l||null===l)r.transform("translate3d("+s+", "+c+", 0px)");else{var d=l-(l-1)*(1-Math.abs(e));r.transform("translate3d("+s+", "+c+", 0px) scale("+d+")")}},setTranslate:function(){var t=this,e=t.$el,n=t.slides,r=t.progress,o=t.snapGrid;e.children("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,n){t.parallax.setTransform(n,r)}),n.each(function(e,n){var a=n.progress;t.params.slidesPerGroup>1&&"auto"!==t.params.slidesPerView&&(a+=Math.ceil(e/2)-r*(o.length-1)),a=Math.min(Math.max(a,-1),1),i(n).find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,n){t.parallax.setTransform(n,a)})})},setTransition:function(t){void 0===t&&(t=this.params.speed);this.$el.find("[data-swiper-parallax], [data-swiper-parallax-x], [data-swiper-parallax-y], [data-swiper-parallax-opacity], [data-swiper-parallax-scale]").each(function(e,n){var r=i(n),o=parseInt(r.attr("data-swiper-parallax-duration"),10)||t;0===t&&(o=0),r.transition(o)})}},V={getDistanceBetweenTouches:function(t){if(t.targetTouches.length<2)return 1;var e=t.targetTouches[0].pageX,n=t.targetTouches[0].pageY,i=t.targetTouches[1].pageX,r=t.targetTouches[1].pageY;return Math.sqrt(Math.pow(i-e,2)+Math.pow(r-n,2))},onGestureStart:function(t){var e=this.params.zoom,n=this.zoom,r=n.gesture;if(n.fakeGestureTouched=!1,n.fakeGestureMoved=!1,!l.gestures){if("touchstart"!==t.type||"touchstart"===t.type&&t.targetTouches.length<2)return;n.fakeGestureTouched=!0,r.scaleStart=V.getDistanceBetweenTouches(t)}r.$slideEl&&r.$slideEl.length||(r.$slideEl=i(t.target).closest(".swiper-slide"),0===r.$slideEl.length&&(r.$slideEl=this.slides.eq(this.activeIndex)),r.$imageEl=r.$slideEl.find("img, svg, canvas"),r.$imageWrapEl=r.$imageEl.parent("."+e.containerClass),r.maxRatio=r.$imageWrapEl.attr("data-swiper-zoom")||e.maxRatio,0!==r.$imageWrapEl.length)?(r.$imageEl.transition(0),this.zoom.isScaling=!0):r.$imageEl=void 0},onGestureChange:function(t){var e=this.params.zoom,n=this.zoom,i=n.gesture;if(!l.gestures){if("touchmove"!==t.type||"touchmove"===t.type&&t.targetTouches.length<2)return;n.fakeGestureMoved=!0,i.scaleMove=V.getDistanceBetweenTouches(t)}i.$imageEl&&0!==i.$imageEl.length&&(l.gestures?n.scale=t.scale*n.currentScale:n.scale=i.scaleMove/i.scaleStart*n.currentScale,n.scale>i.maxRatio&&(n.scale=i.maxRatio-1+Math.pow(n.scale-i.maxRatio+1,.5)),n.scale<e.minRatio&&(n.scale=e.minRatio+1-Math.pow(e.minRatio-n.scale+1,.5)),i.$imageEl.transform("translate3d(0,0,0) scale("+n.scale+")"))},onGestureEnd:function(t){var e=this.params.zoom,n=this.zoom,i=n.gesture;if(!l.gestures){if(!n.fakeGestureTouched||!n.fakeGestureMoved)return;if("touchend"!==t.type||"touchend"===t.type&&t.changedTouches.length<2&&!x.android)return;n.fakeGestureTouched=!1,n.fakeGestureMoved=!1}i.$imageEl&&0!==i.$imageEl.length&&(n.scale=Math.max(Math.min(n.scale,i.maxRatio),e.minRatio),i.$imageEl.transition(this.params.speed).transform("translate3d(0,0,0) scale("+n.scale+")"),n.currentScale=n.scale,n.isScaling=!1,1===n.scale&&(i.$slideEl=void 0))},onTouchStart:function(t){var e=this.zoom,n=e.gesture,i=e.image;n.$imageEl&&0!==n.$imageEl.length&&(i.isTouched||(x.android&&t.preventDefault(),i.isTouched=!0,i.touchesStart.x="touchstart"===t.type?t.targetTouches[0].pageX:t.pageX,i.touchesStart.y="touchstart"===t.type?t.targetTouches[0].pageY:t.pageY))},onTouchMove:function(t){var e=this.zoom,n=e.gesture,i=e.image,r=e.velocity;if(n.$imageEl&&0!==n.$imageEl.length&&(this.allowClick=!1,i.isTouched&&n.$slideEl)){i.isMoved||(i.width=n.$imageEl[0].offsetWidth,i.height=n.$imageEl[0].offsetHeight,i.startX=c.getTranslate(n.$imageWrapEl[0],"x")||0,i.startY=c.getTranslate(n.$imageWrapEl[0],"y")||0,n.slideWidth=n.$slideEl[0].offsetWidth,n.slideHeight=n.$slideEl[0].offsetHeight,n.$imageWrapEl.transition(0),this.rtl&&(i.startX=-i.startX,i.startY=-i.startY));var o=i.width*e.scale,a=i.height*e.scale;if(!(o<n.slideWidth&&a<n.slideHeight)){if(i.minX=Math.min(n.slideWidth/2-o/2,0),i.maxX=-i.minX,i.minY=Math.min(n.slideHeight/2-a/2,0),i.maxY=-i.minY,i.touchesCurrent.x="touchmove"===t.type?t.targetTouches[0].pageX:t.pageX,i.touchesCurrent.y="touchmove"===t.type?t.targetTouches[0].pageY:t.pageY,!i.isMoved&&!e.isScaling){if(this.isHorizontal()&&(Math.floor(i.minX)===Math.floor(i.startX)&&i.touchesCurrent.x<i.touchesStart.x||Math.floor(i.maxX)===Math.floor(i.startX)&&i.touchesCurrent.x>i.touchesStart.x))return void(i.isTouched=!1);if(!this.isHorizontal()&&(Math.floor(i.minY)===Math.floor(i.startY)&&i.touchesCurrent.y<i.touchesStart.y||Math.floor(i.maxY)===Math.floor(i.startY)&&i.touchesCurrent.y>i.touchesStart.y))return void(i.isTouched=!1)}t.preventDefault(),t.stopPropagation(),i.isMoved=!0,i.currentX=i.touchesCurrent.x-i.touchesStart.x+i.startX,i.currentY=i.touchesCurrent.y-i.touchesStart.y+i.startY,i.currentX<i.minX&&(i.currentX=i.minX+1-Math.pow(i.minX-i.currentX+1,.8)),i.currentX>i.maxX&&(i.currentX=i.maxX-1+Math.pow(i.currentX-i.maxX+1,.8)),i.currentY<i.minY&&(i.currentY=i.minY+1-Math.pow(i.minY-i.currentY+1,.8)),i.currentY>i.maxY&&(i.currentY=i.maxY-1+Math.pow(i.currentY-i.maxY+1,.8)),r.prevPositionX||(r.prevPositionX=i.touchesCurrent.x),r.prevPositionY||(r.prevPositionY=i.touchesCurrent.y),r.prevTime||(r.prevTime=Date.now()),r.x=(i.touchesCurrent.x-r.prevPositionX)/(Date.now()-r.prevTime)/2,r.y=(i.touchesCurrent.y-r.prevPositionY)/(Date.now()-r.prevTime)/2,Math.abs(i.touchesCurrent.x-r.prevPositionX)<2&&(r.x=0),Math.abs(i.touchesCurrent.y-r.prevPositionY)<2&&(r.y=0),r.prevPositionX=i.touchesCurrent.x,r.prevPositionY=i.touchesCurrent.y,r.prevTime=Date.now(),n.$imageWrapEl.transform("translate3d("+i.currentX+"px, "+i.currentY+"px,0)")}}},onTouchEnd:function(){var t=this.zoom,e=t.gesture,n=t.image,i=t.velocity;if(e.$imageEl&&0!==e.$imageEl.length){if(!n.isTouched||!n.isMoved)return n.isTouched=!1,void(n.isMoved=!1);n.isTouched=!1,n.isMoved=!1;var r=300,o=300,a=i.x*r,s=n.currentX+a,c=i.y*o,l=n.currentY+c;0!==i.x&&(r=Math.abs((s-n.currentX)/i.x)),0!==i.y&&(o=Math.abs((l-n.currentY)/i.y));var u=Math.max(r,o);n.currentX=s,n.currentY=l;var h=n.width*t.scale,d=n.height*t.scale;n.minX=Math.min(e.slideWidth/2-h/2,0),n.maxX=-n.minX,n.minY=Math.min(e.slideHeight/2-d/2,0),n.maxY=-n.minY,n.currentX=Math.max(Math.min(n.currentX,n.maxX),n.minX),n.currentY=Math.max(Math.min(n.currentY,n.maxY),n.minY),e.$imageWrapEl.transition(u).transform("translate3d("+n.currentX+"px, "+n.currentY+"px,0)")}},onTransitionEnd:function(){var t=this.zoom,e=t.gesture;e.$slideEl&&this.previousIndex!==this.activeIndex&&(e.$imageEl.transform("translate3d(0,0,0) scale(1)"),e.$imageWrapEl.transform("translate3d(0,0,0)"),t.scale=1,t.currentScale=1,e.$slideEl=void 0,e.$imageEl=void 0,e.$imageWrapEl=void 0)},toggle:function(t){var e=this.zoom;e.scale&&1!==e.scale?e.out():e.in(t)},in:function(t){var e,n,r,o,a,s,c,l,u,h,d,f,p,m,v,g,y=this.zoom,b=this.params.zoom,x=y.gesture,_=y.image;(x.$slideEl||(x.$slideEl=this.clickedSlide?i(this.clickedSlide):this.slides.eq(this.activeIndex),x.$imageEl=x.$slideEl.find("img, svg, canvas"),x.$imageWrapEl=x.$imageEl.parent("."+b.containerClass)),x.$imageEl&&0!==x.$imageEl.length)&&(x.$slideEl.addClass(""+b.zoomedSlideClass),void 0===_.touchesStart.x&&t?(e="touchend"===t.type?t.changedTouches[0].pageX:t.pageX,n="touchend"===t.type?t.changedTouches[0].pageY:t.pageY):(e=_.touchesStart.x,n=_.touchesStart.y),y.scale=x.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,y.currentScale=x.$imageWrapEl.attr("data-swiper-zoom")||b.maxRatio,t?(v=x.$slideEl[0].offsetWidth,g=x.$slideEl[0].offsetHeight,r=x.$slideEl.offset().left+v/2-e,o=x.$slideEl.offset().top+g/2-n,c=x.$imageEl[0].offsetWidth,l=x.$imageEl[0].offsetHeight,u=c*y.scale,h=l*y.scale,p=-(d=Math.min(v/2-u/2,0)),m=-(f=Math.min(g/2-h/2,0)),a=r*y.scale,s=o*y.scale,a<d&&(a=d),a>p&&(a=p),s<f&&(s=f),s>m&&(s=m)):(a=0,s=0),x.$imageWrapEl.transition(300).transform("translate3d("+a+"px, "+s+"px,0)"),x.$imageEl.transition(300).transform("translate3d(0,0,0) scale("+y.scale+")"))},out:function(){var t=this.zoom,e=this.params.zoom,n=t.gesture;n.$slideEl||(n.$slideEl=this.clickedSlide?i(this.clickedSlide):this.slides.eq(this.activeIndex),n.$imageEl=n.$slideEl.find("img, svg, canvas"),n.$imageWrapEl=n.$imageEl.parent("."+e.containerClass)),n.$imageEl&&0!==n.$imageEl.length&&(t.scale=1,t.currentScale=1,n.$imageWrapEl.transition(300).transform("translate3d(0,0,0)"),n.$imageEl.transition(300).transform("translate3d(0,0,0) scale(1)"),n.$slideEl.removeClass(""+e.zoomedSlideClass),n.$slideEl=void 0)},enable:function(){var t=this.zoom;if(!t.enabled){t.enabled=!0;var e=!("touchstart"!==this.touchEvents.start||!l.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};l.gestures?(this.$wrapperEl.on("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.on(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.on(this.touchEvents.move,".swiper-slide",t.onGestureChange,e),this.$wrapperEl.on(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.on(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove)}},disable:function(){var t=this.zoom;if(t.enabled){this.zoom.enabled=!1;var e=!("touchstart"!==this.touchEvents.start||!l.passiveListener||!this.params.passiveListeners)&&{passive:!0,capture:!1};l.gestures?(this.$wrapperEl.off("gesturestart",".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off("gesturechange",".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off("gestureend",".swiper-slide",t.onGestureEnd,e)):"touchstart"===this.touchEvents.start&&(this.$wrapperEl.off(this.touchEvents.start,".swiper-slide",t.onGestureStart,e),this.$wrapperEl.off(this.touchEvents.move,".swiper-slide",t.onGestureChange,e),this.$wrapperEl.off(this.touchEvents.end,".swiper-slide",t.onGestureEnd,e)),this.$wrapperEl.off(this.touchEvents.move,"."+this.params.zoom.containerClass,t.onTouchMove)}}},U={loadInSlide:function(t,e){void 0===e&&(e=!0);var n=this,r=n.params.lazy;if(void 0!==t&&0!==n.slides.length){var o=n.virtual&&n.params.virtual.enabled?n.$wrapperEl.children("."+n.params.slideClass+'[data-swiper-slide-index="'+t+'"]'):n.slides.eq(t),a=o.find("."+r.elementClass+":not(."+r.loadedClass+"):not(."+r.loadingClass+")");!o.hasClass(r.elementClass)||o.hasClass(r.loadedClass)||o.hasClass(r.loadingClass)||(a=a.add(o[0])),0!==a.length&&a.each(function(t,a){var s=i(a);s.addClass(r.loadingClass);var c=s.attr("data-background"),l=s.attr("data-src"),u=s.attr("data-srcset"),h=s.attr("data-sizes");n.loadImage(s[0],l||c,u,h,!1,function(){if(void 0!==n&&null!==n&&n&&(!n||n.params)&&!n.destroyed){if(c?(s.css("background-image",'url("'+c+'")'),s.removeAttr("data-background")):(u&&(s.attr("srcset",u),s.removeAttr("data-srcset")),h&&(s.attr("sizes",h),s.removeAttr("data-sizes")),l&&(s.attr("src",l),s.removeAttr("data-src"))),s.addClass(r.loadedClass).removeClass(r.loadingClass),o.find("."+r.preloaderClass).remove(),n.params.loop&&e){var t=o.attr("data-swiper-slide-index");if(o.hasClass(n.params.slideDuplicateClass)){var i=n.$wrapperEl.children('[data-swiper-slide-index="'+t+'"]:not(.'+n.params.slideDuplicateClass+")");n.lazy.loadInSlide(i.index(),!1)}else{var a=n.$wrapperEl.children("."+n.params.slideDuplicateClass+'[data-swiper-slide-index="'+t+'"]');n.lazy.loadInSlide(a.index(),!1)}}n.emit("lazyImageReady",o[0],s[0])}}),n.emit("lazyImageLoad",o[0],s[0])})}},load:function(){var t=this,e=t.$wrapperEl,n=t.params,r=t.slides,o=t.activeIndex,a=t.virtual&&n.virtual.enabled,s=n.lazy,c=n.slidesPerView;function l(t){if(a){if(e.children("."+n.slideClass+'[data-swiper-slide-index="'+t+'"]').length)return!0}else if(r[t])return!0;return!1}function u(t){return a?i(t).attr("data-swiper-slide-index"):i(t).index()}if("auto"===c&&(c=0),t.lazy.initialImageLoaded||(t.lazy.initialImageLoaded=!0),t.params.watchSlidesVisibility)e.children("."+n.slideVisibleClass).each(function(e,n){var r=a?i(n).attr("data-swiper-slide-index"):i(n).index();t.lazy.loadInSlide(r)});else if(c>1)for(var h=o;h<o+c;h+=1)l(h)&&t.lazy.loadInSlide(h);else t.lazy.loadInSlide(o);if(s.loadPrevNext)if(c>1||s.loadPrevNextAmount&&s.loadPrevNextAmount>1){for(var d=s.loadPrevNextAmount,f=c,p=Math.min(o+f+Math.max(d,f),r.length),m=Math.max(o-Math.max(f,d),0),v=o+c;v<p;v+=1)l(v)&&t.lazy.loadInSlide(v);for(var g=m;g<o;g+=1)l(g)&&t.lazy.loadInSlide(g)}else{var y=e.children("."+n.slideNextClass);y.length>0&&t.lazy.loadInSlide(u(y));var b=e.children("."+n.slidePrevClass);b.length>0&&t.lazy.loadInSlide(u(b))}}},G={LinearSpline:function(t,e){var n,i,r,o,a,s=function(t,e){for(i=-1,n=t.length;n-i>1;)t[r=n+i>>1]<=e?i=r:n=r;return n};return this.x=t,this.y=e,this.lastIndex=t.length-1,this.interpolate=function(t){return t?(a=s(this.x,t),o=a-1,(t-this.x[o])*(this.y[a]-this.y[o])/(this.x[a]-this.x[o])+this.y[o]):0},this},getInterpolateFunction:function(t){this.controller.spline||(this.controller.spline=this.params.loop?new G.LinearSpline(this.slidesGrid,t.slidesGrid):new G.LinearSpline(this.snapGrid,t.snapGrid))},setTranslate:function(t,e){var n,i,r=this,o=r.controller.control;function a(t){var e=r.rtlTranslate?-r.translate:r.translate;"slide"===r.params.controller.by&&(r.controller.getInterpolateFunction(t),i=-r.controller.spline.interpolate(-e)),i&&"container"!==r.params.controller.by||(n=(t.maxTranslate()-t.minTranslate())/(r.maxTranslate()-r.minTranslate()),i=(e-r.minTranslate())*n+t.minTranslate()),r.params.controller.inverse&&(i=t.maxTranslate()-i),t.updateProgress(i),t.setTranslate(i,r),t.updateActiveIndex(),t.updateSlidesClasses()}if(Array.isArray(o))for(var s=0;s<o.length;s+=1)o[s]!==e&&o[s]instanceof E&&a(o[s]);else o instanceof E&&e!==o&&a(o)},setTransition:function(t,e){var n,i=this,r=i.controller.control;function o(e){e.setTransition(t,i),0!==t&&(e.transitionStart(),e.params.autoHeight&&c.nextTick(function(){e.updateAutoHeight()}),e.$wrapperEl.transitionEnd(function(){r&&(e.params.loop&&"slide"===i.params.controller.by&&e.loopFix(),e.transitionEnd())}))}if(Array.isArray(r))for(n=0;n<r.length;n+=1)r[n]!==e&&r[n]instanceof E&&o(r[n]);else r instanceof E&&e!==r&&o(r)}},$={makeElFocusable:function(t){return t.attr("tabIndex","0"),t},addElRole:function(t,e){return t.attr("role",e),t},addElLabel:function(t,e){return t.attr("aria-label",e),t},disableEl:function(t){return t.attr("aria-disabled",!0),t},enableEl:function(t){return t.attr("aria-disabled",!1),t},onEnterKey:function(t){var e=this.params.a11y;if(13===t.keyCode){var n=i(t.target);this.navigation&&this.navigation.$nextEl&&n.is(this.navigation.$nextEl)&&(this.isEnd&&!this.params.loop||this.slideNext(),this.isEnd?this.a11y.notify(e.lastSlideMessage):this.a11y.notify(e.nextSlideMessage)),this.navigation&&this.navigation.$prevEl&&n.is(this.navigation.$prevEl)&&(this.isBeginning&&!this.params.loop||this.slidePrev(),this.isBeginning?this.a11y.notify(e.firstSlideMessage):this.a11y.notify(e.prevSlideMessage)),this.pagination&&n.is("."+this.params.pagination.bulletClass)&&n[0].click()}},notify:function(t){var e=this.a11y.liveRegion;0!==e.length&&(e.html(""),e.html(t))},updateNavigation:function(){if(!this.params.loop){var t=this.navigation,e=t.$nextEl,n=t.$prevEl;n&&n.length>0&&(this.isBeginning?this.a11y.disableEl(n):this.a11y.enableEl(n)),e&&e.length>0&&(this.isEnd?this.a11y.disableEl(e):this.a11y.enableEl(e))}},updatePagination:function(){var t=this,e=t.params.a11y;t.pagination&&t.params.pagination.clickable&&t.pagination.bullets&&t.pagination.bullets.length&&t.pagination.bullets.each(function(n,r){var o=i(r);t.a11y.makeElFocusable(o),t.a11y.addElRole(o,"button"),t.a11y.addElLabel(o,e.paginationBulletMessage.replace(/{{index}}/,o.index()+1))})},init:function(){this.$el.append(this.a11y.liveRegion);var t,e,n=this.params.a11y;this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&(this.a11y.makeElFocusable(t),this.a11y.addElRole(t,"button"),this.a11y.addElLabel(t,n.nextSlideMessage),t.on("keydown",this.a11y.onEnterKey)),e&&(this.a11y.makeElFocusable(e),this.a11y.addElRole(e,"button"),this.a11y.addElLabel(e,n.prevSlideMessage),e.on("keydown",this.a11y.onEnterKey)),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.on("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)},destroy:function(){var t,e;this.a11y.liveRegion&&this.a11y.liveRegion.length>0&&this.a11y.liveRegion.remove(),this.navigation&&this.navigation.$nextEl&&(t=this.navigation.$nextEl),this.navigation&&this.navigation.$prevEl&&(e=this.navigation.$prevEl),t&&t.off("keydown",this.a11y.onEnterKey),e&&e.off("keydown",this.a11y.onEnterKey),this.pagination&&this.params.pagination.clickable&&this.pagination.bullets&&this.pagination.bullets.length&&this.pagination.$el.off("keydown","."+this.params.pagination.bulletClass,this.a11y.onEnterKey)}},H={init:function(){if(this.params.history){if(!e.history||!e.history.pushState)return this.params.history.enabled=!1,void(this.params.hashNavigation.enabled=!0);var t=this.history;t.initialized=!0,t.paths=H.getPathValues(),(t.paths.key||t.paths.value)&&(t.scrollToSlide(0,t.paths.value,this.params.runCallbacksOnInit),this.params.history.replaceState||e.addEventListener("popstate",this.history.setHistoryPopState))}},destroy:function(){this.params.history.replaceState||e.removeEventListener("popstate",this.history.setHistoryPopState)},setHistoryPopState:function(){this.history.paths=H.getPathValues(),this.history.scrollToSlide(this.params.speed,this.history.paths.value,!1)},getPathValues:function(){var t=e.location.pathname.slice(1).split("/").filter(function(t){return""!==t}),n=t.length;return{key:t[n-2],value:t[n-1]}},setHistory:function(t,n){if(this.history.initialized&&this.params.history.enabled){var i=this.slides.eq(n),r=H.slugify(i.attr("data-history"));e.location.pathname.includes(t)||(r=t+"/"+r);var o=e.history.state;o&&o.value===r||(this.params.history.replaceState?e.history.replaceState({value:r},null,r):e.history.pushState({value:r},null,r))}},slugify:function(t){return t.toString().replace(/\s+/g,"-").replace(/[^\w-]+/g,"").replace(/--+/g,"-").replace(/^-+/,"").replace(/-+$/,"")},scrollToSlide:function(t,e,n){if(e)for(var i=0,r=this.slides.length;i<r;i+=1){var o=this.slides.eq(i);if(H.slugify(o.attr("data-history"))===e&&!o.hasClass(this.params.slideDuplicateClass)){var a=o.index();this.slideTo(a,t,n)}}else this.slideTo(0,t,n)}},W={onHashCange:function(){var e=t.location.hash.replace("#","");if(e!==this.slides.eq(this.activeIndex).attr("data-hash")){var n=this.$wrapperEl.children("."+this.params.slideClass+'[data-hash="'+e+'"]').index();if(void 0===n)return;this.slideTo(n)}},setHash:function(){if(this.hashNavigation.initialized&&this.params.hashNavigation.enabled)if(this.params.hashNavigation.replaceState&&e.history&&e.history.replaceState)e.history.replaceState(null,null,"#"+this.slides.eq(this.activeIndex).attr("data-hash")||"");else{var n=this.slides.eq(this.activeIndex),i=n.attr("data-hash")||n.attr("data-history");t.location.hash=i||""}},init:function(){if(!(!this.params.hashNavigation.enabled||this.params.history&&this.params.history.enabled)){this.hashNavigation.initialized=!0;var n=t.location.hash.replace("#","");if(n)for(var r=0,o=this.slides.length;r<o;r+=1){var a=this.slides.eq(r);if((a.attr("data-hash")||a.attr("data-history"))===n&&!a.hasClass(this.params.slideDuplicateClass)){var s=a.index();this.slideTo(s,0,this.params.runCallbacksOnInit,!0)}}this.params.hashNavigation.watchState&&i(e).on("hashchange",this.hashNavigation.onHashCange)}},destroy:function(){this.params.hashNavigation.watchState&&i(e).off("hashchange",this.hashNavigation.onHashCange)}},q={run:function(){var t=this,e=t.slides.eq(t.activeIndex),n=t.params.autoplay.delay;e.attr("data-swiper-autoplay")&&(n=e.attr("data-swiper-autoplay")||t.params.autoplay.delay),clearTimeout(t.autoplay.timeout),t.autoplay.timeout=c.nextTick(function(){t.params.autoplay.reverseDirection?t.params.loop?(t.loopFix(),t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.isBeginning?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(t.slides.length-1,t.params.speed,!0,!0),t.emit("autoplay")):(t.slidePrev(t.params.speed,!0,!0),t.emit("autoplay")):t.params.loop?(t.loopFix(),t.slideNext(t.params.speed,!0,!0),t.emit("autoplay")):t.isEnd?t.params.autoplay.stopOnLastSlide?t.autoplay.stop():(t.slideTo(0,t.params.speed,!0,!0),t.emit("autoplay")):(t.slideNext(t.params.speed,!0,!0),t.emit("autoplay"))},n)},start:function(){return void 0===this.autoplay.timeout&&(!this.autoplay.running&&(this.autoplay.running=!0,this.emit("autoplayStart"),this.autoplay.run(),!0))},stop:function(){return!!this.autoplay.running&&(void 0!==this.autoplay.timeout&&(this.autoplay.timeout&&(clearTimeout(this.autoplay.timeout),this.autoplay.timeout=void 0),this.autoplay.running=!1,this.emit("autoplayStop"),!0))},pause:function(t){this.autoplay.running&&(this.autoplay.paused||(this.autoplay.timeout&&clearTimeout(this.autoplay.timeout),this.autoplay.paused=!0,0!==t&&this.params.autoplay.waitForTransition?(this.$wrapperEl[0].addEventListener("transitionend",this.autoplay.onTransitionEnd),this.$wrapperEl[0].addEventListener("webkitTransitionEnd",this.autoplay.onTransitionEnd)):(this.autoplay.paused=!1,this.autoplay.run())))}},X={setTranslate:function(){for(var t=this.slides,e=0;e<t.length;e+=1){var n=this.slides.eq(e),i=-n[0].swiperSlideOffset;this.params.virtualTranslate||(i-=this.translate);var r=0;this.isHorizontal()||(r=i,i=0);var o=this.params.fadeEffect.crossFade?Math.max(1-Math.abs(n[0].progress),0):1+Math.min(Math.max(n[0].progress,-1),0);n.css({opacity:o}).transform("translate3d("+i+"px, "+r+"px, 0px)")}},setTransition:function(t){var e=this,n=e.slides,i=e.$wrapperEl;if(n.transition(t),e.params.virtualTranslate&&0!==t){var r=!1;n.transitionEnd(function(){if(!r&&e&&!e.destroyed){r=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],n=0;n<t.length;n+=1)i.trigger(t[n])}})}}},Y={setTranslate:function(){var t,e=this.$el,n=this.$wrapperEl,r=this.slides,o=this.width,a=this.height,s=this.rtlTranslate,c=this.size,l=this.params.cubeEffect,h=this.isHorizontal(),d=this.virtual&&this.params.virtual.enabled,f=0;l.shadow&&(h?(0===(t=n.find(".swiper-cube-shadow")).length&&(t=i('<div class="swiper-cube-shadow"></div>'),n.append(t)),t.css({height:o+"px"})):0===(t=e.find(".swiper-cube-shadow")).length&&(t=i('<div class="swiper-cube-shadow"></div>'),e.append(t)));for(var p=0;p<r.length;p+=1){var m=r.eq(p),v=p;d&&(v=parseInt(m.attr("data-swiper-slide-index"),10));var g=90*v,y=Math.floor(g/360);s&&(g=-g,y=Math.floor(-g/360));var b=Math.max(Math.min(m[0].progress,1),-1),x=0,_=0,w=0;v%4==0?(x=4*-y*c,w=0):(v-1)%4==0?(x=0,w=4*-y*c):(v-2)%4==0?(x=c+4*y*c,w=c):(v-3)%4==0&&(x=-c,w=3*c+4*c*y),s&&(x=-x),h||(_=x,x=0);var S="rotateX("+(h?0:-g)+"deg) rotateY("+(h?g:0)+"deg) translate3d("+x+"px, "+_+"px, "+w+"px)";if(b<=1&&b>-1&&(f=90*v+90*b,s&&(f=90*-v-90*b)),m.transform(S),l.slideShadows){var T=h?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),E=h?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===T.length&&(T=i('<div class="swiper-slide-shadow-'+(h?"left":"top")+'"></div>'),m.append(T)),0===E.length&&(E=i('<div class="swiper-slide-shadow-'+(h?"right":"bottom")+'"></div>'),m.append(E)),T.length&&(T[0].style.opacity=Math.max(-b,0)),E.length&&(E[0].style.opacity=Math.max(b,0))}}if(n.css({"-webkit-transform-origin":"50% 50% -"+c/2+"px","-moz-transform-origin":"50% 50% -"+c/2+"px","-ms-transform-origin":"50% 50% -"+c/2+"px","transform-origin":"50% 50% -"+c/2+"px"}),l.shadow)if(h)t.transform("translate3d(0px, "+(o/2+l.shadowOffset)+"px, "+-o/2+"px) rotateX(90deg) rotateZ(0deg) scale("+l.shadowScale+")");else{var M=Math.abs(f)-90*Math.floor(Math.abs(f)/90),C=1.5-(Math.sin(2*M*Math.PI/360)/2+Math.cos(2*M*Math.PI/360)/2),L=l.shadowScale,O=l.shadowScale/C,k=l.shadowOffset;t.transform("scale3d("+L+", 1, "+O+") translate3d(0px, "+(a/2+k)+"px, "+-a/2/O+"px) rotateX(-90deg)")}var P=u.isSafari||u.isUiWebView?-c/2:0;n.transform("translate3d(0px,0,"+P+"px) rotateX("+(this.isHorizontal()?0:f)+"deg) rotateY("+(this.isHorizontal()?-f:0)+"deg)")},setTransition:function(t){var e=this.$el;this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),this.params.cubeEffect.shadow&&!this.isHorizontal()&&e.find(".swiper-cube-shadow").transition(t)}},K={setTranslate:function(){for(var t=this.slides,e=this.rtlTranslate,n=0;n<t.length;n+=1){var r=t.eq(n),o=r[0].progress;this.params.flipEffect.limitRotation&&(o=Math.max(Math.min(r[0].progress,1),-1));var a=-180*o,s=0,c=-r[0].swiperSlideOffset,l=0;if(this.isHorizontal()?e&&(a=-a):(l=c,c=0,s=-a,a=0),r[0].style.zIndex=-Math.abs(Math.round(o))+t.length,this.params.flipEffect.slideShadows){var u=this.isHorizontal()?r.find(".swiper-slide-shadow-left"):r.find(".swiper-slide-shadow-top"),h=this.isHorizontal()?r.find(".swiper-slide-shadow-right"):r.find(".swiper-slide-shadow-bottom");0===u.length&&(u=i('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"left":"top")+'"></div>'),r.append(u)),0===h.length&&(h=i('<div class="swiper-slide-shadow-'+(this.isHorizontal()?"right":"bottom")+'"></div>'),r.append(h)),u.length&&(u[0].style.opacity=Math.max(-o,0)),h.length&&(h[0].style.opacity=Math.max(o,0))}r.transform("translate3d("+c+"px, "+l+"px, 0px) rotateX("+s+"deg) rotateY("+a+"deg)")}},setTransition:function(t){var e=this,n=e.slides,i=e.activeIndex,r=e.$wrapperEl;if(n.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t),e.params.virtualTranslate&&0!==t){var o=!1;n.eq(i).transitionEnd(function(){if(!o&&e&&!e.destroyed){o=!0,e.animating=!1;for(var t=["webkitTransitionEnd","transitionend"],n=0;n<t.length;n+=1)r.trigger(t[n])}})}}},Z={setTranslate:function(){for(var t=this.width,e=this.height,n=this.slides,r=this.$wrapperEl,o=this.slidesSizesGrid,a=this.params.coverflowEffect,s=this.isHorizontal(),c=this.translate,u=s?t/2-c:e/2-c,h=s?a.rotate:-a.rotate,d=a.depth,f=0,p=n.length;f<p;f+=1){var m=n.eq(f),v=o[f],g=(u-m[0].swiperSlideOffset-v/2)/v*a.modifier,y=s?h*g:0,b=s?0:h*g,x=-d*Math.abs(g),_=s?0:a.stretch*g,w=s?a.stretch*g:0;Math.abs(w)<.001&&(w=0),Math.abs(_)<.001&&(_=0),Math.abs(x)<.001&&(x=0),Math.abs(y)<.001&&(y=0),Math.abs(b)<.001&&(b=0);var S="translate3d("+w+"px,"+_+"px,"+x+"px)  rotateX("+b+"deg) rotateY("+y+"deg)";if(m.transform(S),m[0].style.zIndex=1-Math.abs(Math.round(g)),a.slideShadows){var T=s?m.find(".swiper-slide-shadow-left"):m.find(".swiper-slide-shadow-top"),E=s?m.find(".swiper-slide-shadow-right"):m.find(".swiper-slide-shadow-bottom");0===T.length&&(T=i('<div class="swiper-slide-shadow-'+(s?"left":"top")+'"></div>'),m.append(T)),0===E.length&&(E=i('<div class="swiper-slide-shadow-'+(s?"right":"bottom")+'"></div>'),m.append(E)),T.length&&(T[0].style.opacity=g>0?g:0),E.length&&(E[0].style.opacity=-g>0?-g:0)}}(l.pointerEvents||l.prefixedPointerEvents)&&(r[0].style.perspectiveOrigin=u+"px 50%")},setTransition:function(t){this.slides.transition(t).find(".swiper-slide-shadow-top, .swiper-slide-shadow-right, .swiper-slide-shadow-bottom, .swiper-slide-shadow-left").transition(t)}},J={init:function(){var t=this.params.thumbs,e=this.constructor;t.swiper instanceof e?(this.thumbs.swiper=t.swiper,c.extend(this.thumbs.swiper.originalParams,{watchSlidesProgress:!0,slideToClickedSlide:!1}),c.extend(this.thumbs.swiper.params,{watchSlidesProgress:!0,slideToClickedSlide:!1})):c.isObject(t.swiper)&&(this.thumbs.swiper=new e(c.extend({},t.swiper,{watchSlidesVisibility:!0,watchSlidesProgress:!0,slideToClickedSlide:!1})),this.thumbs.swiperCreated=!0),this.thumbs.swiper.$el.addClass(this.params.thumbs.thumbsContainerClass),this.thumbs.swiper.on("tap",this.thumbs.onThumbClick)},onThumbClick:function(){var t=this.thumbs.swiper;if(t){var e=t.clickedIndex,n=t.clickedSlide;if(!(n&&i(n).hasClass(this.params.thumbs.slideThumbActiveClass)||void 0===e||null===e)){var r;if(r=t.params.loop?parseInt(i(t.clickedSlide).attr("data-swiper-slide-index"),10):e,this.params.loop){var o=this.activeIndex;this.slides.eq(o).hasClass(this.params.slideDuplicateClass)&&(this.loopFix(),this._clientLeft=this.$wrapperEl[0].clientLeft,o=this.activeIndex);var a=this.slides.eq(o).prevAll('[data-swiper-slide-index="'+r+'"]').eq(0).index(),s=this.slides.eq(o).nextAll('[data-swiper-slide-index="'+r+'"]').eq(0).index();r=void 0===a?s:void 0===s?a:s-o<o-a?s:a}this.slideTo(r)}}},update:function(t){var e=this.thumbs.swiper;if(e){var n="auto"===e.params.slidesPerView?e.slidesPerViewDynamic():e.params.slidesPerView;if(this.realIndex!==e.realIndex){var i,r=e.activeIndex;if(e.params.loop){e.slides.eq(r).hasClass(e.params.slideDuplicateClass)&&(e.loopFix(),e._clientLeft=e.$wrapperEl[0].clientLeft,r=e.activeIndex);var o=e.slides.eq(r).prevAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index(),a=e.slides.eq(r).nextAll('[data-swiper-slide-index="'+this.realIndex+'"]').eq(0).index();i=void 0===o?a:void 0===a?o:a-r==r-o?r:a-r<r-o?a:o}else i=this.realIndex;e.visibleSlidesIndexes&&e.visibleSlidesIndexes.indexOf(i)<0&&(e.params.centeredSlides?i=i>r?i-Math.floor(n/2)+1:i+Math.floor(n/2)-1:i>r&&(i=i-n+1),e.slideTo(i,t?0:void 0))}var s=1,c=this.params.thumbs.slideThumbActiveClass;if(this.params.slidesPerView>1&&!this.params.centeredSlides&&(s=this.params.slidesPerView),e.slides.removeClass(c),e.params.loop||e.params.virtual)for(var l=0;l<s;l+=1)e.$wrapperEl.children('[data-swiper-slide-index="'+(this.realIndex+l)+'"]').addClass(c);else for(var u=0;u<s;u+=1)e.slides.eq(this.realIndex+u).addClass(c)}}},Q=[M,C,L,O,P,I,R,{name:"mousewheel",params:{mousewheel:{enabled:!1,releaseOnEdges:!1,invert:!1,forceToAxis:!1,sensitivity:1,eventsTarged:"container"}},create:function(){c.extend(this,{mousewheel:{enabled:!1,enable:B.enable.bind(this),disable:B.disable.bind(this),handle:B.handle.bind(this),handleMouseEnter:B.handleMouseEnter.bind(this),handleMouseLeave:B.handleMouseLeave.bind(this),lastScrollTime:c.now()}})},on:{init:function(){this.params.mousewheel.enabled&&this.mousewheel.enable()},destroy:function(){this.mousewheel.enabled&&this.mousewheel.disable()}}},{name:"navigation",params:{navigation:{nextEl:null,prevEl:null,hideOnClick:!1,disabledClass:"swiper-button-disabled",hiddenClass:"swiper-button-hidden",lockClass:"swiper-button-lock"}},create:function(){c.extend(this,{navigation:{init:N.init.bind(this),update:N.update.bind(this),destroy:N.destroy.bind(this),onNextClick:N.onNextClick.bind(this),onPrevClick:N.onPrevClick.bind(this)}})},on:{init:function(){this.navigation.init(),this.navigation.update()},toEdge:function(){this.navigation.update()},fromEdge:function(){this.navigation.update()},destroy:function(){this.navigation.destroy()},click:function(t){var e,n=this.navigation,r=n.$nextEl,o=n.$prevEl;!this.params.navigation.hideOnClick||i(t.target).is(o)||i(t.target).is(r)||(r?e=r.hasClass(this.params.navigation.hiddenClass):o&&(e=o.hasClass(this.params.navigation.hiddenClass)),!0===e?this.emit("navigationShow",this):this.emit("navigationHide",this),r&&r.toggleClass(this.params.navigation.hiddenClass),o&&o.toggleClass(this.params.navigation.hiddenClass))}}},{name:"pagination",params:{pagination:{el:null,bulletElement:"span",clickable:!1,hideOnClick:!1,renderBullet:null,renderProgressbar:null,renderFraction:null,renderCustom:null,progressbarOpposite:!1,type:"bullets",dynamicBullets:!1,dynamicMainBullets:1,formatFractionCurrent:function(t){return t},formatFractionTotal:function(t){return t},bulletClass:"swiper-pagination-bullet",bulletActiveClass:"swiper-pagination-bullet-active",modifierClass:"swiper-pagination-",currentClass:"swiper-pagination-current",totalClass:"swiper-pagination-total",hiddenClass:"swiper-pagination-hidden",progressbarFillClass:"swiper-pagination-progressbar-fill",progressbarOppositeClass:"swiper-pagination-progressbar-opposite",clickableClass:"swiper-pagination-clickable",lockClass:"swiper-pagination-lock"}},create:function(){c.extend(this,{pagination:{init:j.init.bind(this),render:j.render.bind(this),update:j.update.bind(this),destroy:j.destroy.bind(this),dynamicBulletIndex:0}})},on:{init:function(){this.pagination.init(),this.pagination.render(),this.pagination.update()},activeIndexChange:function(){this.params.loop?this.pagination.update():void 0===this.snapIndex&&this.pagination.update()},snapIndexChange:function(){this.params.loop||this.pagination.update()},slidesLengthChange:function(){this.params.loop&&(this.pagination.render(),this.pagination.update())},snapGridLengthChange:function(){this.params.loop||(this.pagination.render(),this.pagination.update())},destroy:function(){this.pagination.destroy()},click:function(t){this.params.pagination.el&&this.params.pagination.hideOnClick&&this.pagination.$el.length>0&&!i(t.target).hasClass(this.params.pagination.bulletClass)&&(!0===this.pagination.$el.hasClass(this.params.pagination.hiddenClass)?this.emit("paginationShow",this):this.emit("paginationHide",this),this.pagination.$el.toggleClass(this.params.pagination.hiddenClass))}}},{name:"scrollbar",params:{scrollbar:{el:null,dragSize:"auto",hide:!1,draggable:!1,snapOnRelease:!0,lockClass:"swiper-scrollbar-lock",dragClass:"swiper-scrollbar-drag"}},create:function(){c.extend(this,{scrollbar:{init:z.init.bind(this),destroy:z.destroy.bind(this),updateSize:z.updateSize.bind(this),setTranslate:z.setTranslate.bind(this),setTransition:z.setTransition.bind(this),enableDraggable:z.enableDraggable.bind(this),disableDraggable:z.disableDraggable.bind(this),setDragPosition:z.setDragPosition.bind(this),getPointerPosition:z.getPointerPosition.bind(this),onDragStart:z.onDragStart.bind(this),onDragMove:z.onDragMove.bind(this),onDragEnd:z.onDragEnd.bind(this),isTouched:!1,timeout:null,dragTimeout:null}})},on:{init:function(){this.scrollbar.init(),this.scrollbar.updateSize(),this.scrollbar.setTranslate()},update:function(){this.scrollbar.updateSize()},resize:function(){this.scrollbar.updateSize()},observerUpdate:function(){this.scrollbar.updateSize()},setTranslate:function(){this.scrollbar.setTranslate()},setTransition:function(t){this.scrollbar.setTransition(t)},destroy:function(){this.scrollbar.destroy()}}},{name:"parallax",params:{parallax:{enabled:!1}},create:function(){c.extend(this,{parallax:{setTransform:F.setTransform.bind(this),setTranslate:F.setTranslate.bind(this),setTransition:F.setTransition.bind(this)}})},on:{beforeInit:function(){this.params.parallax.enabled&&(this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},init:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTranslate:function(){this.params.parallax.enabled&&this.parallax.setTranslate()},setTransition:function(t){this.params.parallax.enabled&&this.parallax.setTransition(t)}}},{name:"zoom",params:{zoom:{enabled:!1,maxRatio:3,minRatio:1,toggle:!0,containerClass:"swiper-zoom-container",zoomedSlideClass:"swiper-slide-zoomed"}},create:function(){var t=this,e={enabled:!1,scale:1,currentScale:1,isScaling:!1,gesture:{$slideEl:void 0,slideWidth:void 0,slideHeight:void 0,$imageEl:void 0,$imageWrapEl:void 0,maxRatio:3},image:{isTouched:void 0,isMoved:void 0,currentX:void 0,currentY:void 0,minX:void 0,minY:void 0,maxX:void 0,maxY:void 0,width:void 0,height:void 0,startX:void 0,startY:void 0,touchesStart:{},touchesCurrent:{}},velocity:{x:void 0,y:void 0,prevPositionX:void 0,prevPositionY:void 0,prevTime:void 0}};"onGestureStart onGestureChange onGestureEnd onTouchStart onTouchMove onTouchEnd onTransitionEnd toggle enable disable in out".split(" ").forEach(function(n){e[n]=V[n].bind(t)}),c.extend(t,{zoom:e});var n=1;Object.defineProperty(t.zoom,"scale",{get:function(){return n},set:function(e){if(n!==e){var i=t.zoom.gesture.$imageEl?t.zoom.gesture.$imageEl[0]:void 0,r=t.zoom.gesture.$slideEl?t.zoom.gesture.$slideEl[0]:void 0;t.emit("zoomChange",e,i,r)}n=e}})},on:{init:function(){this.params.zoom.enabled&&this.zoom.enable()},destroy:function(){this.zoom.disable()},touchStart:function(t){this.zoom.enabled&&this.zoom.onTouchStart(t)},touchEnd:function(t){this.zoom.enabled&&this.zoom.onTouchEnd(t)},doubleTap:function(t){this.params.zoom.enabled&&this.zoom.enabled&&this.params.zoom.toggle&&this.zoom.toggle(t)},transitionEnd:function(){this.zoom.enabled&&this.params.zoom.enabled&&this.zoom.onTransitionEnd()}}},{name:"lazy",params:{lazy:{enabled:!1,loadPrevNext:!1,loadPrevNextAmount:1,loadOnTransitionStart:!1,elementClass:"swiper-lazy",loadingClass:"swiper-lazy-loading",loadedClass:"swiper-lazy-loaded",preloaderClass:"swiper-lazy-preloader"}},create:function(){c.extend(this,{lazy:{initialImageLoaded:!1,load:U.load.bind(this),loadInSlide:U.loadInSlide.bind(this)}})},on:{beforeInit:function(){this.params.lazy.enabled&&this.params.preloadImages&&(this.params.preloadImages=!1)},init:function(){this.params.lazy.enabled&&!this.params.loop&&0===this.params.initialSlide&&this.lazy.load()},scroll:function(){this.params.freeMode&&!this.params.freeModeSticky&&this.lazy.load()},resize:function(){this.params.lazy.enabled&&this.lazy.load()},scrollbarDragMove:function(){this.params.lazy.enabled&&this.lazy.load()},transitionStart:function(){this.params.lazy.enabled&&(this.params.lazy.loadOnTransitionStart||!this.params.lazy.loadOnTransitionStart&&!this.lazy.initialImageLoaded)&&this.lazy.load()},transitionEnd:function(){this.params.lazy.enabled&&!this.params.lazy.loadOnTransitionStart&&this.lazy.load()}}},{name:"controller",params:{controller:{control:void 0,inverse:!1,by:"slide"}},create:function(){c.extend(this,{controller:{control:this.params.controller.control,getInterpolateFunction:G.getInterpolateFunction.bind(this),setTranslate:G.setTranslate.bind(this),setTransition:G.setTransition.bind(this)}})},on:{update:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},resize:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},observerUpdate:function(){this.controller.control&&this.controller.spline&&(this.controller.spline=void 0,delete this.controller.spline)},setTranslate:function(t,e){this.controller.control&&this.controller.setTranslate(t,e)},setTransition:function(t,e){this.controller.control&&this.controller.setTransition(t,e)}}},{name:"a11y",params:{a11y:{enabled:!0,notificationClass:"swiper-notification",prevSlideMessage:"Previous slide",nextSlideMessage:"Next slide",firstSlideMessage:"This is the first slide",lastSlideMessage:"This is the last slide",paginationBulletMessage:"Go to slide {{index}}"}},create:function(){var t=this;c.extend(t,{a11y:{liveRegion:i('<span class="'+t.params.a11y.notificationClass+'" aria-live="assertive" aria-atomic="true"></span>')}}),Object.keys($).forEach(function(e){t.a11y[e]=$[e].bind(t)})},on:{init:function(){this.params.a11y.enabled&&(this.a11y.init(),this.a11y.updateNavigation())},toEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},fromEdge:function(){this.params.a11y.enabled&&this.a11y.updateNavigation()},paginationUpdate:function(){this.params.a11y.enabled&&this.a11y.updatePagination()},destroy:function(){this.params.a11y.enabled&&this.a11y.destroy()}}},{name:"history",params:{history:{enabled:!1,replaceState:!1,key:"slides"}},create:function(){c.extend(this,{history:{init:H.init.bind(this),setHistory:H.setHistory.bind(this),setHistoryPopState:H.setHistoryPopState.bind(this),scrollToSlide:H.scrollToSlide.bind(this),destroy:H.destroy.bind(this)}})},on:{init:function(){this.params.history.enabled&&this.history.init()},destroy:function(){this.params.history.enabled&&this.history.destroy()},transitionEnd:function(){this.history.initialized&&this.history.setHistory(this.params.history.key,this.activeIndex)}}},{name:"hash-navigation",params:{hashNavigation:{enabled:!1,replaceState:!1,watchState:!1}},create:function(){c.extend(this,{hashNavigation:{initialized:!1,init:W.init.bind(this),destroy:W.destroy.bind(this),setHash:W.setHash.bind(this),onHashCange:W.onHashCange.bind(this)}})},on:{init:function(){this.params.hashNavigation.enabled&&this.hashNavigation.init()},destroy:function(){this.params.hashNavigation.enabled&&this.hashNavigation.destroy()},transitionEnd:function(){this.hashNavigation.initialized&&this.hashNavigation.setHash()}}},{name:"autoplay",params:{autoplay:{enabled:!1,delay:3e3,waitForTransition:!0,disableOnInteraction:!0,stopOnLastSlide:!1,reverseDirection:!1}},create:function(){var t=this;c.extend(t,{autoplay:{running:!1,paused:!1,run:q.run.bind(t),start:q.start.bind(t),stop:q.stop.bind(t),pause:q.pause.bind(t),onTransitionEnd:function(e){t&&!t.destroyed&&t.$wrapperEl&&e.target===this&&(t.$wrapperEl[0].removeEventListener("transitionend",t.autoplay.onTransitionEnd),t.$wrapperEl[0].removeEventListener("webkitTransitionEnd",t.autoplay.onTransitionEnd),t.autoplay.paused=!1,t.autoplay.running?t.autoplay.run():t.autoplay.stop())}}})},on:{init:function(){this.params.autoplay.enabled&&this.autoplay.start()},beforeTransitionStart:function(t,e){this.autoplay.running&&(e||!this.params.autoplay.disableOnInteraction?this.autoplay.pause(t):this.autoplay.stop())},sliderFirstMove:function(){this.autoplay.running&&(this.params.autoplay.disableOnInteraction?this.autoplay.stop():this.autoplay.pause())},destroy:function(){this.autoplay.running&&this.autoplay.stop()}}},{name:"effect-fade",params:{fadeEffect:{crossFade:!1}},create:function(){c.extend(this,{fadeEffect:{setTranslate:X.setTranslate.bind(this),setTransition:X.setTransition.bind(this)}})},on:{beforeInit:function(){if("fade"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"fade");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};c.extend(this.params,t),c.extend(this.originalParams,t)}},setTranslate:function(){"fade"===this.params.effect&&this.fadeEffect.setTranslate()},setTransition:function(t){"fade"===this.params.effect&&this.fadeEffect.setTransition(t)}}},{name:"effect-cube",params:{cubeEffect:{slideShadows:!0,shadow:!0,shadowOffset:20,shadowScale:.94}},create:function(){c.extend(this,{cubeEffect:{setTranslate:Y.setTranslate.bind(this),setTransition:Y.setTransition.bind(this)}})},on:{beforeInit:function(){if("cube"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"cube"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,resistanceRatio:0,spaceBetween:0,centeredSlides:!1,virtualTranslate:!0};c.extend(this.params,t),c.extend(this.originalParams,t)}},setTranslate:function(){"cube"===this.params.effect&&this.cubeEffect.setTranslate()},setTransition:function(t){"cube"===this.params.effect&&this.cubeEffect.setTransition(t)}}},{name:"effect-flip",params:{flipEffect:{slideShadows:!0,limitRotation:!0}},create:function(){c.extend(this,{flipEffect:{setTranslate:K.setTranslate.bind(this),setTransition:K.setTransition.bind(this)}})},on:{beforeInit:function(){if("flip"===this.params.effect){this.classNames.push(this.params.containerModifierClass+"flip"),this.classNames.push(this.params.containerModifierClass+"3d");var t={slidesPerView:1,slidesPerColumn:1,slidesPerGroup:1,watchSlidesProgress:!0,spaceBetween:0,virtualTranslate:!0};c.extend(this.params,t),c.extend(this.originalParams,t)}},setTranslate:function(){"flip"===this.params.effect&&this.flipEffect.setTranslate()},setTransition:function(t){"flip"===this.params.effect&&this.flipEffect.setTransition(t)}}},{name:"effect-coverflow",params:{coverflowEffect:{rotate:50,stretch:0,depth:100,modifier:1,slideShadows:!0}},create:function(){c.extend(this,{coverflowEffect:{setTranslate:Z.setTranslate.bind(this),setTransition:Z.setTransition.bind(this)}})},on:{beforeInit:function(){"coverflow"===this.params.effect&&(this.classNames.push(this.params.containerModifierClass+"coverflow"),this.classNames.push(this.params.containerModifierClass+"3d"),this.params.watchSlidesProgress=!0,this.originalParams.watchSlidesProgress=!0)},setTranslate:function(){"coverflow"===this.params.effect&&this.coverflowEffect.setTranslate()},setTransition:function(t){"coverflow"===this.params.effect&&this.coverflowEffect.setTransition(t)}}},{name:"thumbs",params:{thumbs:{swiper:null,slideThumbActiveClass:"swiper-slide-thumb-active",thumbsContainerClass:"swiper-container-thumbs"}},create:function(){c.extend(this,{thumbs:{swiper:null,init:J.init.bind(this),update:J.update.bind(this),onThumbClick:J.onThumbClick.bind(this)}})},on:{beforeInit:function(){var t=this.params.thumbs;t&&t.swiper&&(this.thumbs.init(),this.thumbs.update(!0))},slideChange:function(){this.thumbs.swiper&&this.thumbs.update()},update:function(){this.thumbs.swiper&&this.thumbs.update()},resize:function(){this.thumbs.swiper&&this.thumbs.update()},observerUpdate:function(){this.thumbs.swiper&&this.thumbs.update()},setTransition:function(t){var e=this.thumbs.swiper;e&&e.setTransition(t)},beforeDestroy:function(){var t=this.thumbs.swiper;t&&this.thumbs.swiperCreated&&t&&t.destroy()}}}];return void 0===E.use&&(E.use=E.Class.use,E.installModule=E.Class.installModule),E.use(Q),E},t.exports=i()},gvDt:function(t,e,n){var i=n("UKM+"),r=n("DIVP"),o=function(t,e){if(r(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,e,i){try{(i=n("rFzY")(Function.call,n("x9zv").f(Object.prototype,"__proto__").set,2))(t,[]),e=!(t instanceof Array)}catch(t){e=!0}return function(t,n){return o(t,n),e?t.__proto__=n:i(t,n),t}}({},!1):void 0),check:o}},h65t:function(t,e,n){var i=n("UuGF"),r=n("52gC");t.exports=function(t){return function(e,n){var o,a,s=String(r(e)),c=i(n),l=s.length;return c<0||c>=l?t?"":void 0:(o=s.charCodeAt(c))<55296||o>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):a-56320+(o-55296<<10)+65536}}},h7Xi:function(t,e,n){var i=n("Ds5P");i(i.P+i.R,"Map",{toJSON:n("XXBo")("Map")})},hJx8:function(t,e,n){var i=n("evD5"),r=n("X8DO");t.exports=n("+E39")?function(t,e,n){return i.f(t,e,r(1,n))}:function(t,e,n){return t[e]=n,t}},i039:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{umulh:function(t,e){var n=+t,i=+e,r=65535&n,o=65535&i,a=n>>>16,s=i>>>16,c=(a*o>>>0)+(r*o>>>16);return a*s+(c>>>16)+((r*s>>>0)+(65535&c)>>>16)}})},i68Q:function(t,e,n){var i=n("Ds5P");i(i.S,"Object",{create:n("7ylX")})},iKpr:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("XSOZ"),o=n("rFzY"),a=n("vmSO");t.exports=function(t){i(i.S,t,{from:function(t){var e,n,i,s,c=arguments[1];return r(this),(e=void 0!==c)&&r(c),void 0==t?new this:(n=[],e?(i=0,s=o(c,arguments[2],2),a(t,!1,function(t){n.push(s(t,i++))})):a(t,!1,n.push,n),new this(n))}})}},iM2X:function(t,e,n){"use strict";n("y325")("bold",function(t){return function(){return t(this,"b","","")}})},iUbK:function(t,e,n){var i=n("7KvD").navigator;t.exports=i&&i.userAgent||""},"j/Lv":function(t,e,n){var i=n("Ds5P");i(i.S,"System",{global:n("OzIq")})},j1ja:function(t,e,n){"use strict";(function(t){if(n("4M2W"),n("zkX4"),n("Wwne"),t._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");t._babelPolyfill=!0;var e="defineProperty";function i(t,n,i){t[n]||Object[e](t,n,{writable:!0,configurable:!0,value:i})}i(String.prototype,"padLeft","".padStart),i(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(t){[][t]&&i(Array,t,Function.call.bind([][t]))})}).call(e,n("DuR2"))},j42X:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("PHqh"),o=[].join;i(i.P+i.F*(n("Q6Nf")!=Object||!n("NNrz")(o)),"Array",{join:function(t){return o.call(r(this),void 0===t?",":t)}})},jB26:function(t,e,n){"use strict";var i=n("DIVP"),r=n("s4j0");t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return r(i(this),"number"!=t)}},jFbC:function(t,e,n){n("Cdx3"),t.exports=n("FeBl").Object.keys},"jKW+":function(t,e,n){"use strict";var i=n("kM2E"),r=n("qARP"),o=n("dNDb");i(i.S,"Promise",{try:function(t){var e=r.f(this),n=o(t);return(n.e?e.reject:e.resolve)(n.v),e.promise}})},jhxf:function(t,e,n){var i=n("UKM+"),r=n("OzIq").document,o=i(r)&&i(r.createElement);t.exports=function(t){return o?r.createElement(t):{}}},jrHM:function(t,e,n){var i=n("Ds5P");i(i.S,"Object",{setPrototypeOf:n("gvDt").set})},jyFz:function(t,e,n){var i=function(){return this}()||Function("return this")(),r=i.regeneratorRuntime&&Object.getOwnPropertyNames(i).indexOf("regeneratorRuntime")>=0,o=r&&i.regeneratorRuntime;if(i.regeneratorRuntime=void 0,t.exports=n("SldL"),r)i.regeneratorRuntime=o;else try{delete i.regeneratorRuntime}catch(t){i.regeneratorRuntime=void 0}},k9Ku:function(t,e,n){(function(n){var i;
/*!
 *  howler.js v2.2.4
 *  howlerjs.com
 *
 *  (c) 2013-2020, James Simpson of GoldFire Studios
 *  goldfirestudios.com
 *
 *  MIT License
 */
/*!
 *  howler.js v2.2.4
 *  howlerjs.com
 *
 *  (c) 2013-2020, James Simpson of GoldFire Studios
 *  goldfirestudios.com
 *
 *  MIT License
 */
!function(){"use strict";var r=function(){this.init()};r.prototype={init:function(){var t=this||o;return t._counter=1e3,t._html5AudioPool=[],t.html5PoolSize=10,t._codecs={},t._howls=[],t._muted=!1,t._volume=1,t._canPlayEvent="canplaythrough",t._navigator="undefined"!=typeof window&&window.navigator?window.navigator:null,t.masterGain=null,t.noAudio=!1,t.usingWebAudio=!0,t.autoSuspend=!0,t.ctx=null,t.autoUnlock=!0,t._setup(),t},volume:function(t){var e=this||o;if(t=parseFloat(t),e.ctx||f(),void 0!==t&&t>=0&&t<=1){if(e._volume=t,e._muted)return e;e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t,o.ctx.currentTime);for(var n=0;n<e._howls.length;n++)if(!e._howls[n]._webAudio)for(var i=e._howls[n]._getSoundIds(),r=0;r<i.length;r++){var a=e._howls[n]._soundById(i[r]);a&&a._node&&(a._node.volume=a._volume*t)}return e}return e._volume},mute:function(t){var e=this||o;e.ctx||f(),e._muted=t,e.usingWebAudio&&e.masterGain.gain.setValueAtTime(t?0:e._volume,o.ctx.currentTime);for(var n=0;n<e._howls.length;n++)if(!e._howls[n]._webAudio)for(var i=e._howls[n]._getSoundIds(),r=0;r<i.length;r++){var a=e._howls[n]._soundById(i[r]);a&&a._node&&(a._node.muted=!!t||a._muted)}return e},stop:function(){for(var t=this||o,e=0;e<t._howls.length;e++)t._howls[e].stop();return t},unload:function(){for(var t=this||o,e=t._howls.length-1;e>=0;e--)t._howls[e].unload();return t.usingWebAudio&&t.ctx&&void 0!==t.ctx.close&&(t.ctx.close(),t.ctx=null,f()),t},codecs:function(t){return(this||o)._codecs[t.replace(/^x-/,"")]},_setup:function(){var t=this||o;if(t.state=t.ctx&&t.ctx.state||"suspended",t._autoSuspend(),!t.usingWebAudio)if("undefined"!=typeof Audio)try{void 0===(new Audio).oncanplaythrough&&(t._canPlayEvent="canplay")}catch(e){t.noAudio=!0}else t.noAudio=!0;try{(new Audio).muted&&(t.noAudio=!0)}catch(t){}return t.noAudio||t._setupCodecs(),t},_setupCodecs:function(){var t=this||o,e=null;try{e="undefined"!=typeof Audio?new Audio:null}catch(e){return t}if(!e||"function"!=typeof e.canPlayType)return t;var n=e.canPlayType("audio/mpeg;").replace(/^no$/,""),i=t._navigator?t._navigator.userAgent:"",r=i.match(/OPR\/(\d+)/g),a=r&&parseInt(r[0].split("/")[1],10)<33,s=-1!==i.indexOf("Safari")&&-1===i.indexOf("Chrome"),c=i.match(/Version\/(.*?) /),l=s&&c&&parseInt(c[1],10)<15;return t._codecs={mp3:!(a||!n&&!e.canPlayType("audio/mp3;").replace(/^no$/,"")),mpeg:!!n,opus:!!e.canPlayType('audio/ogg; codecs="opus"').replace(/^no$/,""),ogg:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),oga:!!e.canPlayType('audio/ogg; codecs="vorbis"').replace(/^no$/,""),wav:!!(e.canPlayType('audio/wav; codecs="1"')||e.canPlayType("audio/wav")).replace(/^no$/,""),aac:!!e.canPlayType("audio/aac;").replace(/^no$/,""),caf:!!e.canPlayType("audio/x-caf;").replace(/^no$/,""),m4a:!!(e.canPlayType("audio/x-m4a;")||e.canPlayType("audio/m4a;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),m4b:!!(e.canPlayType("audio/x-m4b;")||e.canPlayType("audio/m4b;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),mp4:!!(e.canPlayType("audio/x-mp4;")||e.canPlayType("audio/mp4;")||e.canPlayType("audio/aac;")).replace(/^no$/,""),weba:!(l||!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),webm:!(l||!e.canPlayType('audio/webm; codecs="vorbis"').replace(/^no$/,"")),dolby:!!e.canPlayType('audio/mp4; codecs="ec-3"').replace(/^no$/,""),flac:!!(e.canPlayType("audio/x-flac;")||e.canPlayType("audio/flac;")).replace(/^no$/,"")},t},_unlockAudio:function(){var t=this||o;if(!t._audioUnlocked&&t.ctx){t._audioUnlocked=!1,t.autoUnlock=!1,t._mobileUnloaded||44100===t.ctx.sampleRate||(t._mobileUnloaded=!0,t.unload()),t._scratchBuffer=t.ctx.createBuffer(1,1,22050);var e=function(n){for(;t._html5AudioPool.length<t.html5PoolSize;)try{var i=new Audio;i._unlocked=!0,t._releaseHtml5Audio(i)}catch(n){t.noAudio=!0;break}for(var r=0;r<t._howls.length;r++)if(!t._howls[r]._webAudio)for(var o=t._howls[r]._getSoundIds(),a=0;a<o.length;a++){var s=t._howls[r]._soundById(o[a]);s&&s._node&&!s._node._unlocked&&(s._node._unlocked=!0,s._node.load())}t._autoResume();var c=t.ctx.createBufferSource();c.buffer=t._scratchBuffer,c.connect(t.ctx.destination),void 0===c.start?c.noteOn(0):c.start(0),"function"==typeof t.ctx.resume&&t.ctx.resume(),c.onended=function(){c.disconnect(0),t._audioUnlocked=!0,document.removeEventListener("touchstart",e,!0),document.removeEventListener("touchend",e,!0),document.removeEventListener("click",e,!0),document.removeEventListener("keydown",e,!0);for(var n=0;n<t._howls.length;n++)t._howls[n]._emit("unlock")}};return document.addEventListener("touchstart",e,!0),document.addEventListener("touchend",e,!0),document.addEventListener("click",e,!0),document.addEventListener("keydown",e,!0),t}},_obtainHtml5Audio:function(){var t=this||o;if(t._html5AudioPool.length)return t._html5AudioPool.pop();var e=(new Audio).play();return e&&"undefined"!=typeof Promise&&(e instanceof Promise||"function"==typeof e.then)&&e.catch(function(){console.warn("HTML5 Audio pool exhausted, returning potentially locked audio object.")}),new Audio},_releaseHtml5Audio:function(t){var e=this||o;return t._unlocked&&e._html5AudioPool.push(t),e},_autoSuspend:function(){var t=this;if(t.autoSuspend&&t.ctx&&void 0!==t.ctx.suspend&&o.usingWebAudio){for(var e=0;e<t._howls.length;e++)if(t._howls[e]._webAudio)for(var n=0;n<t._howls[e]._sounds.length;n++)if(!t._howls[e]._sounds[n]._paused)return t;return t._suspendTimer&&clearTimeout(t._suspendTimer),t._suspendTimer=setTimeout(function(){if(t.autoSuspend){t._suspendTimer=null,t.state="suspending";var e=function(){t.state="suspended",t._resumeAfterSuspend&&(delete t._resumeAfterSuspend,t._autoResume())};t.ctx.suspend().then(e,e)}},3e4),t}},_autoResume:function(){var t=this;if(t.ctx&&void 0!==t.ctx.resume&&o.usingWebAudio)return"running"===t.state&&"interrupted"!==t.ctx.state&&t._suspendTimer?(clearTimeout(t._suspendTimer),t._suspendTimer=null):"suspended"===t.state||"running"===t.state&&"interrupted"===t.ctx.state?(t.ctx.resume().then(function(){t.state="running";for(var e=0;e<t._howls.length;e++)t._howls[e]._emit("resume")}),t._suspendTimer&&(clearTimeout(t._suspendTimer),t._suspendTimer=null)):"suspending"===t.state&&(t._resumeAfterSuspend=!0),t}};var o=new r,a=function(t){t.src&&0!==t.src.length?this.init(t):console.error("An array of source files must be passed with any new Howl.")};a.prototype={init:function(t){var e=this;return o.ctx||f(),e._autoplay=t.autoplay||!1,e._format="string"!=typeof t.format?t.format:[t.format],e._html5=t.html5||!1,e._muted=t.mute||!1,e._loop=t.loop||!1,e._pool=t.pool||5,e._preload="boolean"!=typeof t.preload&&"metadata"!==t.preload||t.preload,e._rate=t.rate||1,e._sprite=t.sprite||{},e._src="string"!=typeof t.src?t.src:[t.src],e._volume=void 0!==t.volume?t.volume:1,e._xhr={method:t.xhr&&t.xhr.method?t.xhr.method:"GET",headers:t.xhr&&t.xhr.headers?t.xhr.headers:null,withCredentials:!(!t.xhr||!t.xhr.withCredentials)&&t.xhr.withCredentials},e._duration=0,e._state="unloaded",e._sounds=[],e._endTimers={},e._queue=[],e._playLock=!1,e._onend=t.onend?[{fn:t.onend}]:[],e._onfade=t.onfade?[{fn:t.onfade}]:[],e._onload=t.onload?[{fn:t.onload}]:[],e._onloaderror=t.onloaderror?[{fn:t.onloaderror}]:[],e._onplayerror=t.onplayerror?[{fn:t.onplayerror}]:[],e._onpause=t.onpause?[{fn:t.onpause}]:[],e._onplay=t.onplay?[{fn:t.onplay}]:[],e._onstop=t.onstop?[{fn:t.onstop}]:[],e._onmute=t.onmute?[{fn:t.onmute}]:[],e._onvolume=t.onvolume?[{fn:t.onvolume}]:[],e._onrate=t.onrate?[{fn:t.onrate}]:[],e._onseek=t.onseek?[{fn:t.onseek}]:[],e._onunlock=t.onunlock?[{fn:t.onunlock}]:[],e._onresume=[],e._webAudio=o.usingWebAudio&&!e._html5,void 0!==o.ctx&&o.ctx&&o.autoUnlock&&o._unlockAudio(),o._howls.push(e),e._autoplay&&e._queue.push({event:"play",action:function(){e.play()}}),e._preload&&"none"!==e._preload&&e.load(),e},load:function(){var t=null;if(o.noAudio)this._emit("loaderror",null,"No audio support.");else{"string"==typeof this._src&&(this._src=[this._src]);for(var e=0;e<this._src.length;e++){var n,i;if(this._format&&this._format[e])n=this._format[e];else{if("string"!=typeof(i=this._src[e])){this._emit("loaderror",null,"Non-string found in selected audio sources - ignoring.");continue}(n=/^data:audio\/([^;,]+);/i.exec(i))||(n=/\.([^.]+)$/.exec(i.split("?",1)[0])),n&&(n=n[1].toLowerCase())}if(n||console.warn('No file extension was found. Consider using the "format" property or specify an extension.'),n&&o.codecs(n)){t=this._src[e];break}}if(t)return this._src=t,this._state="loading","https:"===window.location.protocol&&"http:"===t.slice(0,5)&&(this._html5=!0,this._webAudio=!1),new s(this),this._webAudio&&l(this),this;this._emit("loaderror",null,"No codec support for selected audio sources.")}},play:function(t,e){var n=this,i=null;if("number"==typeof t)i=t,t=null;else{if("string"==typeof t&&"loaded"===n._state&&!n._sprite[t])return null;if(void 0===t&&(t="__default",!n._playLock)){for(var r=0,a=0;a<n._sounds.length;a++)n._sounds[a]._paused&&!n._sounds[a]._ended&&(r++,i=n._sounds[a]._id);1===r?t=null:i=null}}var s=i?n._soundById(i):n._inactiveSound();if(!s)return null;if(i&&!t&&(t=s._sprite||"__default"),"loaded"!==n._state){s._sprite=t,s._ended=!1;var c=s._id;return n._queue.push({event:"play",action:function(){n.play(c)}}),c}if(i&&!s._paused)return e||n._loadQueue("play"),s._id;n._webAudio&&o._autoResume();var l=Math.max(0,s._seek>0?s._seek:n._sprite[t][0]/1e3),u=Math.max(0,(n._sprite[t][0]+n._sprite[t][1])/1e3-l),h=1e3*u/Math.abs(s._rate),d=n._sprite[t][0]/1e3,f=(n._sprite[t][0]+n._sprite[t][1])/1e3;s._sprite=t,s._ended=!1;var p=function(){s._paused=!1,s._seek=l,s._start=d,s._stop=f,s._loop=!(!s._loop&&!n._sprite[t][2])};if(!(l>=f)){var m=s._node;if(n._webAudio){var v=function(){n._playLock=!1,p(),n._refreshBuffer(s);var t=s._muted||n._muted?0:s._volume;m.gain.setValueAtTime(t,o.ctx.currentTime),s._playStart=o.ctx.currentTime,void 0===m.bufferSource.start?s._loop?m.bufferSource.noteGrainOn(0,l,86400):m.bufferSource.noteGrainOn(0,l,u):s._loop?m.bufferSource.start(0,l,86400):m.bufferSource.start(0,l,u),h!==1/0&&(n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),h)),e||setTimeout(function(){n._emit("play",s._id),n._loadQueue()},0)};"running"===o.state&&"interrupted"!==o.ctx.state?v():(n._playLock=!0,n.once("resume",v),n._clearTimer(s._id))}else{var g=function(){m.currentTime=l,m.muted=s._muted||n._muted||o._muted||m.muted,m.volume=s._volume*o.volume(),m.playbackRate=s._rate;try{var i=m.play();if(i&&"undefined"!=typeof Promise&&(i instanceof Promise||"function"==typeof i.then)?(n._playLock=!0,p(),i.then(function(){n._playLock=!1,m._unlocked=!0,e?n._loadQueue():n._emit("play",s._id)}).catch(function(){n._playLock=!1,n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction."),s._ended=!0,s._paused=!0})):e||(n._playLock=!1,p(),n._emit("play",s._id)),m.playbackRate=s._rate,m.paused)return void n._emit("playerror",s._id,"Playback was unable to start. This is most commonly an issue on mobile devices and Chrome where playback was not within a user interaction.");"__default"!==t||s._loop?n._endTimers[s._id]=setTimeout(n._ended.bind(n,s),h):(n._endTimers[s._id]=function(){n._ended(s),m.removeEventListener("ended",n._endTimers[s._id],!1)},m.addEventListener("ended",n._endTimers[s._id],!1))}catch(t){n._emit("playerror",s._id,t)}};"data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA"===m.src&&(m.src=n._src,m.load());var y=window&&window.ejecta||!m.readyState&&o._navigator.isCocoonJS;if(m.readyState>=3||y)g();else{n._playLock=!0,n._state="loading";var b=function(){n._state="loaded",g(),m.removeEventListener(o._canPlayEvent,b,!1)};m.addEventListener(o._canPlayEvent,b,!1),n._clearTimer(s._id)}}return s._id}n._ended(s)},pause:function(t){var e=this;if("loaded"!==e._state||e._playLock)return e._queue.push({event:"pause",action:function(){e.pause(t)}}),e;for(var n=e._getSoundIds(t),i=0;i<n.length;i++){e._clearTimer(n[i]);var r=e._soundById(n[i]);if(r&&!r._paused&&(r._seek=e.seek(n[i]),r._rateSeek=0,r._paused=!0,e._stopFade(n[i]),r._node))if(e._webAudio){if(!r._node.bufferSource)continue;void 0===r._node.bufferSource.stop?r._node.bufferSource.noteOff(0):r._node.bufferSource.stop(0),e._cleanBuffer(r._node)}else isNaN(r._node.duration)&&r._node.duration!==1/0||r._node.pause();arguments[1]||e._emit("pause",r?r._id:null)}return e},stop:function(t,e){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"stop",action:function(){n.stop(t)}}),n;for(var i=n._getSoundIds(t),r=0;r<i.length;r++){n._clearTimer(i[r]);var o=n._soundById(i[r]);o&&(o._seek=o._start||0,o._rateSeek=0,o._paused=!0,o._ended=!0,n._stopFade(i[r]),o._node&&(n._webAudio?o._node.bufferSource&&(void 0===o._node.bufferSource.stop?o._node.bufferSource.noteOff(0):o._node.bufferSource.stop(0),n._cleanBuffer(o._node)):isNaN(o._node.duration)&&o._node.duration!==1/0||(o._node.currentTime=o._start||0,o._node.pause(),o._node.duration===1/0&&n._clearSound(o._node))),e||n._emit("stop",o._id))}return n},mute:function(t,e){var n=this;if("loaded"!==n._state||n._playLock)return n._queue.push({event:"mute",action:function(){n.mute(t,e)}}),n;if(void 0===e){if("boolean"!=typeof t)return n._muted;n._muted=t}for(var i=n._getSoundIds(e),r=0;r<i.length;r++){var a=n._soundById(i[r]);a&&(a._muted=t,a._interval&&n._stopFade(a._id),n._webAudio&&a._node?a._node.gain.setValueAtTime(t?0:a._volume,o.ctx.currentTime):a._node&&(a._node.muted=!!o._muted||t),n._emit("mute",a._id))}return n},volume:function(){var t,e,n,i=this,r=arguments;if(0===r.length)return i._volume;if(1===r.length||2===r.length&&void 0===r[1]?i._getSoundIds().indexOf(r[0])>=0?e=parseInt(r[0],10):t=parseFloat(r[0]):r.length>=2&&(t=parseFloat(r[0]),e=parseInt(r[1],10)),!(void 0!==t&&t>=0&&t<=1))return(n=e?i._soundById(e):i._sounds[0])?n._volume:0;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"volume",action:function(){i.volume.apply(i,r)}}),i;void 0===e&&(i._volume=t),e=i._getSoundIds(e);for(var a=0;a<e.length;a++)(n=i._soundById(e[a]))&&(n._volume=t,r[2]||i._stopFade(e[a]),i._webAudio&&n._node&&!n._muted?n._node.gain.setValueAtTime(t,o.ctx.currentTime):n._node&&!n._muted&&(n._node.volume=t*o.volume()),i._emit("volume",n._id));return i},fade:function(t,e,n,i){var r=this;if("loaded"!==r._state||r._playLock)return r._queue.push({event:"fade",action:function(){r.fade(t,e,n,i)}}),r;t=Math.min(Math.max(0,parseFloat(t)),1),e=Math.min(Math.max(0,parseFloat(e)),1),n=parseFloat(n),r.volume(t,i);for(var a=r._getSoundIds(i),s=0;s<a.length;s++){var c=r._soundById(a[s]);if(c){if(i||r._stopFade(a[s]),r._webAudio&&!c._muted){var l=o.ctx.currentTime,u=l+n/1e3;c._volume=t,c._node.gain.setValueAtTime(t,l),c._node.gain.linearRampToValueAtTime(e,u)}r._startFadeInterval(c,t,e,n,a[s],void 0===i)}}return r},_startFadeInterval:function(t,e,n,i,r,o){var a=this,s=e,c=n-e,l=Math.abs(c/.01),u=Math.max(4,l>0?i/l:i),h=Date.now();t._fadeTo=n,t._interval=setInterval(function(){var r=(Date.now()-h)/i;h=Date.now(),s+=c*r,s=Math.round(100*s)/100,s=c<0?Math.max(n,s):Math.min(n,s),a._webAudio?t._volume=s:a.volume(s,t._id,!0),o&&(a._volume=s),(n<e&&s<=n||n>e&&s>=n)&&(clearInterval(t._interval),t._interval=null,t._fadeTo=null,a.volume(n,t._id),a._emit("fade",t._id))},u)},_stopFade:function(t){var e=this._soundById(t);return e&&e._interval&&(this._webAudio&&e._node.gain.cancelScheduledValues(o.ctx.currentTime),clearInterval(e._interval),e._interval=null,this.volume(e._fadeTo,t),e._fadeTo=null,this._emit("fade",t)),this},loop:function(){var t,e,n,i=arguments;if(0===i.length)return this._loop;if(1===i.length){if("boolean"!=typeof i[0])return!!(n=this._soundById(parseInt(i[0],10)))&&n._loop;t=i[0],this._loop=t}else 2===i.length&&(t=i[0],e=parseInt(i[1],10));for(var r=this._getSoundIds(e),o=0;o<r.length;o++)(n=this._soundById(r[o]))&&(n._loop=t,this._webAudio&&n._node&&n._node.bufferSource&&(n._node.bufferSource.loop=t,t&&(n._node.bufferSource.loopStart=n._start||0,n._node.bufferSource.loopEnd=n._stop,this.playing(r[o])&&(this.pause(r[o],!0),this.play(r[o],!0)))));return this},rate:function(){var t,e,n,i=this,r=arguments;if(0===r.length)e=i._sounds[0]._id;else if(1===r.length){i._getSoundIds().indexOf(r[0])>=0?e=parseInt(r[0],10):t=parseFloat(r[0])}else 2===r.length&&(t=parseFloat(r[0]),e=parseInt(r[1],10));if("number"!=typeof t)return(n=i._soundById(e))?n._rate:i._rate;if("loaded"!==i._state||i._playLock)return i._queue.push({event:"rate",action:function(){i.rate.apply(i,r)}}),i;void 0===e&&(i._rate=t),e=i._getSoundIds(e);for(var a=0;a<e.length;a++)if(n=i._soundById(e[a])){i.playing(e[a])&&(n._rateSeek=i.seek(e[a]),n._playStart=i._webAudio?o.ctx.currentTime:n._playStart),n._rate=t,i._webAudio&&n._node&&n._node.bufferSource?n._node.bufferSource.playbackRate.setValueAtTime(t,o.ctx.currentTime):n._node&&(n._node.playbackRate=t);var s=i.seek(e[a]),c=1e3*((i._sprite[n._sprite][0]+i._sprite[n._sprite][1])/1e3-s)/Math.abs(n._rate);!i._endTimers[e[a]]&&n._paused||(i._clearTimer(e[a]),i._endTimers[e[a]]=setTimeout(i._ended.bind(i,n),c)),i._emit("rate",n._id)}return i},seek:function(){var t,e,n=this,i=arguments;if(0===i.length)n._sounds.length&&(e=n._sounds[0]._id);else if(1===i.length){n._getSoundIds().indexOf(i[0])>=0?e=parseInt(i[0],10):n._sounds.length&&(e=n._sounds[0]._id,t=parseFloat(i[0]))}else 2===i.length&&(t=parseFloat(i[0]),e=parseInt(i[1],10));if(void 0===e)return 0;if("number"==typeof t&&("loaded"!==n._state||n._playLock))return n._queue.push({event:"seek",action:function(){n.seek.apply(n,i)}}),n;var r=n._soundById(e);if(r){if(!("number"==typeof t&&t>=0)){if(n._webAudio){var a=n.playing(e)?o.ctx.currentTime-r._playStart:0,s=r._rateSeek?r._rateSeek-r._seek:0;return r._seek+(s+a*Math.abs(r._rate))}return r._node.currentTime}var c=n.playing(e);c&&n.pause(e,!0),r._seek=t,r._ended=!1,n._clearTimer(e),n._webAudio||!r._node||isNaN(r._node.duration)||(r._node.currentTime=t);var l=function(){c&&n.play(e,!0),n._emit("seek",e)};if(c&&!n._webAudio){var u=function(){n._playLock?setTimeout(u,0):l()};setTimeout(u,0)}else l()}return n},playing:function(t){if("number"==typeof t){var e=this._soundById(t);return!!e&&!e._paused}for(var n=0;n<this._sounds.length;n++)if(!this._sounds[n]._paused)return!0;return!1},duration:function(t){var e=this._duration,n=this._soundById(t);return n&&(e=this._sprite[n._sprite][1]/1e3),e},state:function(){return this._state},unload:function(){for(var t=this,e=t._sounds,n=0;n<e.length;n++)e[n]._paused||t.stop(e[n]._id),t._webAudio||(t._clearSound(e[n]._node),e[n]._node.removeEventListener("error",e[n]._errorFn,!1),e[n]._node.removeEventListener(o._canPlayEvent,e[n]._loadFn,!1),e[n]._node.removeEventListener("ended",e[n]._endFn,!1),o._releaseHtml5Audio(e[n]._node)),delete e[n]._node,t._clearTimer(e[n]._id);var i=o._howls.indexOf(t);i>=0&&o._howls.splice(i,1);var r=!0;for(n=0;n<o._howls.length;n++)if(o._howls[n]._src===t._src||t._src.indexOf(o._howls[n]._src)>=0){r=!1;break}return c&&r&&delete c[t._src],o.noAudio=!1,t._state="unloaded",t._sounds=[],t=null,null},on:function(t,e,n,i){var r=this["_on"+t];return"function"==typeof e&&r.push(i?{id:n,fn:e,once:i}:{id:n,fn:e}),this},off:function(t,e,n){var i=this["_on"+t],r=0;if("number"==typeof e&&(n=e,e=null),e||n)for(r=0;r<i.length;r++){var o=n===i[r].id;if(e===i[r].fn&&o||!e&&o){i.splice(r,1);break}}else if(t)this["_on"+t]=[];else{var a=Object.keys(this);for(r=0;r<a.length;r++)0===a[r].indexOf("_on")&&Array.isArray(this[a[r]])&&(this[a[r]]=[])}return this},once:function(t,e,n){return this.on(t,e,n,1),this},_emit:function(t,e,n){for(var i=this["_on"+t],r=i.length-1;r>=0;r--)i[r].id&&i[r].id!==e&&"load"!==t||(setTimeout(function(t){t.call(this,e,n)}.bind(this,i[r].fn),0),i[r].once&&this.off(t,i[r].fn,i[r].id));return this._loadQueue(t),this},_loadQueue:function(t){if(this._queue.length>0){var e=this._queue[0];e.event===t&&(this._queue.shift(),this._loadQueue()),t||e.action()}return this},_ended:function(t){var e=t._sprite;if(!this._webAudio&&t._node&&!t._node.paused&&!t._node.ended&&t._node.currentTime<t._stop)return setTimeout(this._ended.bind(this,t),100),this;var n=!(!t._loop&&!this._sprite[e][2]);if(this._emit("end",t._id),!this._webAudio&&n&&this.stop(t._id,!0).play(t._id),this._webAudio&&n){this._emit("play",t._id),t._seek=t._start||0,t._rateSeek=0,t._playStart=o.ctx.currentTime;var i=1e3*(t._stop-t._start)/Math.abs(t._rate);this._endTimers[t._id]=setTimeout(this._ended.bind(this,t),i)}return this._webAudio&&!n&&(t._paused=!0,t._ended=!0,t._seek=t._start||0,t._rateSeek=0,this._clearTimer(t._id),this._cleanBuffer(t._node),o._autoSuspend()),this._webAudio||n||this.stop(t._id,!0),this},_clearTimer:function(t){if(this._endTimers[t]){if("function"!=typeof this._endTimers[t])clearTimeout(this._endTimers[t]);else{var e=this._soundById(t);e&&e._node&&e._node.removeEventListener("ended",this._endTimers[t],!1)}delete this._endTimers[t]}return this},_soundById:function(t){for(var e=0;e<this._sounds.length;e++)if(t===this._sounds[e]._id)return this._sounds[e];return null},_inactiveSound:function(){this._drain();for(var t=0;t<this._sounds.length;t++)if(this._sounds[t]._ended)return this._sounds[t].reset();return new s(this)},_drain:function(){var t=this._pool,e=0,n=0;if(!(this._sounds.length<t)){for(n=0;n<this._sounds.length;n++)this._sounds[n]._ended&&e++;for(n=this._sounds.length-1;n>=0;n--){if(e<=t)return;this._sounds[n]._ended&&(this._webAudio&&this._sounds[n]._node&&this._sounds[n]._node.disconnect(0),this._sounds.splice(n,1),e--)}}},_getSoundIds:function(t){if(void 0===t){for(var e=[],n=0;n<this._sounds.length;n++)e.push(this._sounds[n]._id);return e}return[t]},_refreshBuffer:function(t){return t._node.bufferSource=o.ctx.createBufferSource(),t._node.bufferSource.buffer=c[this._src],t._panner?t._node.bufferSource.connect(t._panner):t._node.bufferSource.connect(t._node),t._node.bufferSource.loop=t._loop,t._loop&&(t._node.bufferSource.loopStart=t._start||0,t._node.bufferSource.loopEnd=t._stop||0),t._node.bufferSource.playbackRate.setValueAtTime(t._rate,o.ctx.currentTime),this},_cleanBuffer:function(t){var e=o._navigator&&o._navigator.vendor.indexOf("Apple")>=0;if(!t.bufferSource)return this;if(o._scratchBuffer&&t.bufferSource&&(t.bufferSource.onended=null,t.bufferSource.disconnect(0),e))try{t.bufferSource.buffer=o._scratchBuffer}catch(t){}return t.bufferSource=null,this},_clearSound:function(t){/MSIE |Trident\//.test(o._navigator&&o._navigator.userAgent)||(t.src="data:audio/wav;base64,UklGRigAAABXQVZFZm10IBIAAAABAAEARKwAAIhYAQACABAAAABkYXRhAgAAAAEA")}};var s=function(t){this._parent=t,this.init()};s.prototype={init:function(){var t=this._parent;return this._muted=t._muted,this._loop=t._loop,this._volume=t._volume,this._rate=t._rate,this._seek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++o._counter,t._sounds.push(this),this.create(),this},create:function(){var t=this._parent,e=o._muted||this._muted||this._parent._muted?0:this._volume;return t._webAudio?(this._node=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),this._node.gain.setValueAtTime(e,o.ctx.currentTime),this._node.paused=!0,this._node.connect(o.masterGain)):o.noAudio||(this._node=o._obtainHtml5Audio(),this._errorFn=this._errorListener.bind(this),this._node.addEventListener("error",this._errorFn,!1),this._loadFn=this._loadListener.bind(this),this._node.addEventListener(o._canPlayEvent,this._loadFn,!1),this._endFn=this._endListener.bind(this),this._node.addEventListener("ended",this._endFn,!1),this._node.src=t._src,this._node.preload=!0===t._preload?"auto":t._preload,this._node.volume=e*o.volume(),this._node.load()),this},reset:function(){var t=this._parent;return this._muted=t._muted,this._loop=t._loop,this._volume=t._volume,this._rate=t._rate,this._seek=0,this._rateSeek=0,this._paused=!0,this._ended=!0,this._sprite="__default",this._id=++o._counter,this},_errorListener:function(){this._parent._emit("loaderror",this._id,this._node.error?this._node.error.code:0),this._node.removeEventListener("error",this._errorFn,!1)},_loadListener:function(){var t=this._parent;t._duration=Math.ceil(10*this._node.duration)/10,0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue()),this._node.removeEventListener(o._canPlayEvent,this._loadFn,!1)},_endListener:function(){var t=this._parent;t._duration===1/0&&(t._duration=Math.ceil(10*this._node.duration)/10,t._sprite.__default[1]===1/0&&(t._sprite.__default[1]=1e3*t._duration),t._ended(this)),this._node.removeEventListener("ended",this._endFn,!1)}};var c={},l=function(t){var e=t._src;if(c[e])return t._duration=c[e].duration,void d(t);if(/^data:[^;]+;base64,/.test(e)){for(var n=atob(e.split(",")[1]),i=new Uint8Array(n.length),r=0;r<n.length;++r)i[r]=n.charCodeAt(r);h(i.buffer,t)}else{var o=new XMLHttpRequest;o.open(t._xhr.method,e,!0),o.withCredentials=t._xhr.withCredentials,o.responseType="arraybuffer",t._xhr.headers&&Object.keys(t._xhr.headers).forEach(function(e){o.setRequestHeader(e,t._xhr.headers[e])}),o.onload=function(){var e=(o.status+"")[0];"0"===e||"2"===e||"3"===e?h(o.response,t):t._emit("loaderror",null,"Failed loading audio file with status: "+o.status+".")},o.onerror=function(){t._webAudio&&(t._html5=!0,t._webAudio=!1,t._sounds=[],delete c[e],t.load())},u(o)}},u=function(t){try{t.send()}catch(e){t.onerror()}},h=function(t,e){var n=function(){e._emit("loaderror",null,"Decoding audio data failed.")},i=function(t){t&&e._sounds.length>0?(c[e._src]=t,d(e,t)):n()};"undefined"!=typeof Promise&&1===o.ctx.decodeAudioData.length?o.ctx.decodeAudioData(t).then(i).catch(n):o.ctx.decodeAudioData(t,i,n)},d=function(t,e){e&&!t._duration&&(t._duration=e.duration),0===Object.keys(t._sprite).length&&(t._sprite={__default:[0,1e3*t._duration]}),"loaded"!==t._state&&(t._state="loaded",t._emit("load"),t._loadQueue())},f=function(){if(o.usingWebAudio){try{"undefined"!=typeof AudioContext?o.ctx=new AudioContext:"undefined"!=typeof webkitAudioContext?o.ctx=new webkitAudioContext:o.usingWebAudio=!1}catch(t){o.usingWebAudio=!1}o.ctx||(o.usingWebAudio=!1);var t=/iP(hone|od|ad)/.test(o._navigator&&o._navigator.platform),e=o._navigator&&o._navigator.appVersion.match(/OS (\d+)_(\d+)_?(\d+)?/),n=e?parseInt(e[1],10):null;if(t&&n&&n<9){var i=/safari/.test(o._navigator&&o._navigator.userAgent.toLowerCase());o._navigator&&!i&&(o.usingWebAudio=!1)}o.usingWebAudio&&(o.masterGain=void 0===o.ctx.createGain?o.ctx.createGainNode():o.ctx.createGain(),o.masterGain.gain.setValueAtTime(o._muted?0:o._volume,o.ctx.currentTime),o.masterGain.connect(o.ctx.destination)),o._setup()}};void 0===(i=function(){return{Howler:o,Howl:a}}.apply(e,[]))||(t.exports=i),e.Howler=o,e.Howl=a,void 0!==n?(n.HowlerGlobal=r,n.Howler=o,n.Howl=a,n.Sound=s):"undefined"!=typeof window&&(window.HowlerGlobal=r,window.Howler=o,window.Howl=a,window.Sound=s)}(),
/*!
 *  Spatial Plugin - Adds support for stereo and 3D audio where Web Audio is supported.
 *  
 *  howler.js v2.2.4
 *  howlerjs.com
 *
 *  (c) 2013-2020, James Simpson of GoldFire Studios
 *  goldfirestudios.com
 *
 *  MIT License
 */
function(){"use strict";var t;HowlerGlobal.prototype._pos=[0,0,0],HowlerGlobal.prototype._orientation=[0,0,-1,0,1,0],HowlerGlobal.prototype.stereo=function(t){if(!this.ctx||!this.ctx.listener)return this;for(var e=this._howls.length-1;e>=0;e--)this._howls[e].stereo(t);return this},HowlerGlobal.prototype.pos=function(t,e,n){return this.ctx&&this.ctx.listener?(e="number"!=typeof e?this._pos[1]:e,n="number"!=typeof n?this._pos[2]:n,"number"!=typeof t?this._pos:(this._pos=[t,e,n],void 0!==this.ctx.listener.positionX?(this.ctx.listener.positionX.setTargetAtTime(this._pos[0],Howler.ctx.currentTime,.1),this.ctx.listener.positionY.setTargetAtTime(this._pos[1],Howler.ctx.currentTime,.1),this.ctx.listener.positionZ.setTargetAtTime(this._pos[2],Howler.ctx.currentTime,.1)):this.ctx.listener.setPosition(this._pos[0],this._pos[1],this._pos[2]),this)):this},HowlerGlobal.prototype.orientation=function(t,e,n,i,r,o){if(!this.ctx||!this.ctx.listener)return this;var a=this._orientation;return e="number"!=typeof e?a[1]:e,n="number"!=typeof n?a[2]:n,i="number"!=typeof i?a[3]:i,r="number"!=typeof r?a[4]:r,o="number"!=typeof o?a[5]:o,"number"!=typeof t?a:(this._orientation=[t,e,n,i,r,o],void 0!==this.ctx.listener.forwardX?(this.ctx.listener.forwardX.setTargetAtTime(t,Howler.ctx.currentTime,.1),this.ctx.listener.forwardY.setTargetAtTime(e,Howler.ctx.currentTime,.1),this.ctx.listener.forwardZ.setTargetAtTime(n,Howler.ctx.currentTime,.1),this.ctx.listener.upX.setTargetAtTime(i,Howler.ctx.currentTime,.1),this.ctx.listener.upY.setTargetAtTime(r,Howler.ctx.currentTime,.1),this.ctx.listener.upZ.setTargetAtTime(o,Howler.ctx.currentTime,.1)):this.ctx.listener.setOrientation(t,e,n,i,r,o),this)},Howl.prototype.init=(t=Howl.prototype.init,function(e){return this._orientation=e.orientation||[1,0,0],this._stereo=e.stereo||null,this._pos=e.pos||null,this._pannerAttr={coneInnerAngle:void 0!==e.coneInnerAngle?e.coneInnerAngle:360,coneOuterAngle:void 0!==e.coneOuterAngle?e.coneOuterAngle:360,coneOuterGain:void 0!==e.coneOuterGain?e.coneOuterGain:0,distanceModel:void 0!==e.distanceModel?e.distanceModel:"inverse",maxDistance:void 0!==e.maxDistance?e.maxDistance:1e4,panningModel:void 0!==e.panningModel?e.panningModel:"HRTF",refDistance:void 0!==e.refDistance?e.refDistance:1,rolloffFactor:void 0!==e.rolloffFactor?e.rolloffFactor:1},this._onstereo=e.onstereo?[{fn:e.onstereo}]:[],this._onpos=e.onpos?[{fn:e.onpos}]:[],this._onorientation=e.onorientation?[{fn:e.onorientation}]:[],t.call(this,e)}),Howl.prototype.stereo=function(t,n){var i=this;if(!i._webAudio)return i;if("loaded"!==i._state)return i._queue.push({event:"stereo",action:function(){i.stereo(t,n)}}),i;var r=void 0===Howler.ctx.createStereoPanner?"spatial":"stereo";if(void 0===n){if("number"!=typeof t)return i._stereo;i._stereo=t,i._pos=[t,0,0]}for(var o=i._getSoundIds(n),a=0;a<o.length;a++){var s=i._soundById(o[a]);if(s){if("number"!=typeof t)return s._stereo;s._stereo=t,s._pos=[t,0,0],s._node&&(s._pannerAttr.panningModel="equalpower",s._panner&&s._panner.pan||e(s,r),"spatial"===r?void 0!==s._panner.positionX?(s._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),s._panner.positionY.setValueAtTime(0,Howler.ctx.currentTime),s._panner.positionZ.setValueAtTime(0,Howler.ctx.currentTime)):s._panner.setPosition(t,0,0):s._panner.pan.setValueAtTime(t,Howler.ctx.currentTime)),i._emit("stereo",s._id)}}return i},Howl.prototype.pos=function(t,n,i,r){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"pos",action:function(){o.pos(t,n,i,r)}}),o;if(n="number"!=typeof n?0:n,i="number"!=typeof i?-.5:i,void 0===r){if("number"!=typeof t)return o._pos;o._pos=[t,n,i]}for(var a=o._getSoundIds(r),s=0;s<a.length;s++){var c=o._soundById(a[s]);if(c){if("number"!=typeof t)return c._pos;c._pos=[t,n,i],c._node&&(c._panner&&!c._panner.pan||e(c,"spatial"),void 0!==c._panner.positionX?(c._panner.positionX.setValueAtTime(t,Howler.ctx.currentTime),c._panner.positionY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.positionZ.setValueAtTime(i,Howler.ctx.currentTime)):c._panner.setPosition(t,n,i)),o._emit("pos",c._id)}}return o},Howl.prototype.orientation=function(t,n,i,r){var o=this;if(!o._webAudio)return o;if("loaded"!==o._state)return o._queue.push({event:"orientation",action:function(){o.orientation(t,n,i,r)}}),o;if(n="number"!=typeof n?o._orientation[1]:n,i="number"!=typeof i?o._orientation[2]:i,void 0===r){if("number"!=typeof t)return o._orientation;o._orientation=[t,n,i]}for(var a=o._getSoundIds(r),s=0;s<a.length;s++){var c=o._soundById(a[s]);if(c){if("number"!=typeof t)return c._orientation;c._orientation=[t,n,i],c._node&&(c._panner||(c._pos||(c._pos=o._pos||[0,0,-.5]),e(c,"spatial")),void 0!==c._panner.orientationX?(c._panner.orientationX.setValueAtTime(t,Howler.ctx.currentTime),c._panner.orientationY.setValueAtTime(n,Howler.ctx.currentTime),c._panner.orientationZ.setValueAtTime(i,Howler.ctx.currentTime)):c._panner.setOrientation(t,n,i)),o._emit("orientation",c._id)}}return o},Howl.prototype.pannerAttr=function(){var t,n,i,r=arguments;if(!this._webAudio)return this;if(0===r.length)return this._pannerAttr;if(1===r.length){if("object"!=typeof r[0])return(i=this._soundById(parseInt(r[0],10)))?i._pannerAttr:this._pannerAttr;t=r[0],void 0===n&&(t.pannerAttr||(t.pannerAttr={coneInnerAngle:t.coneInnerAngle,coneOuterAngle:t.coneOuterAngle,coneOuterGain:t.coneOuterGain,distanceModel:t.distanceModel,maxDistance:t.maxDistance,refDistance:t.refDistance,rolloffFactor:t.rolloffFactor,panningModel:t.panningModel}),this._pannerAttr={coneInnerAngle:void 0!==t.pannerAttr.coneInnerAngle?t.pannerAttr.coneInnerAngle:this._coneInnerAngle,coneOuterAngle:void 0!==t.pannerAttr.coneOuterAngle?t.pannerAttr.coneOuterAngle:this._coneOuterAngle,coneOuterGain:void 0!==t.pannerAttr.coneOuterGain?t.pannerAttr.coneOuterGain:this._coneOuterGain,distanceModel:void 0!==t.pannerAttr.distanceModel?t.pannerAttr.distanceModel:this._distanceModel,maxDistance:void 0!==t.pannerAttr.maxDistance?t.pannerAttr.maxDistance:this._maxDistance,refDistance:void 0!==t.pannerAttr.refDistance?t.pannerAttr.refDistance:this._refDistance,rolloffFactor:void 0!==t.pannerAttr.rolloffFactor?t.pannerAttr.rolloffFactor:this._rolloffFactor,panningModel:void 0!==t.pannerAttr.panningModel?t.pannerAttr.panningModel:this._panningModel})}else 2===r.length&&(t=r[0],n=parseInt(r[1],10));for(var o=this._getSoundIds(n),a=0;a<o.length;a++)if(i=this._soundById(o[a])){var s=i._pannerAttr;s={coneInnerAngle:void 0!==t.coneInnerAngle?t.coneInnerAngle:s.coneInnerAngle,coneOuterAngle:void 0!==t.coneOuterAngle?t.coneOuterAngle:s.coneOuterAngle,coneOuterGain:void 0!==t.coneOuterGain?t.coneOuterGain:s.coneOuterGain,distanceModel:void 0!==t.distanceModel?t.distanceModel:s.distanceModel,maxDistance:void 0!==t.maxDistance?t.maxDistance:s.maxDistance,refDistance:void 0!==t.refDistance?t.refDistance:s.refDistance,rolloffFactor:void 0!==t.rolloffFactor?t.rolloffFactor:s.rolloffFactor,panningModel:void 0!==t.panningModel?t.panningModel:s.panningModel};var c=i._panner;c||(i._pos||(i._pos=this._pos||[0,0,-.5]),e(i,"spatial"),c=i._panner),c.coneInnerAngle=s.coneInnerAngle,c.coneOuterAngle=s.coneOuterAngle,c.coneOuterGain=s.coneOuterGain,c.distanceModel=s.distanceModel,c.maxDistance=s.maxDistance,c.refDistance=s.refDistance,c.rolloffFactor=s.rolloffFactor,c.panningModel=s.panningModel}return this},Sound.prototype.init=function(t){return function(){var e=this._parent;this._orientation=e._orientation,this._stereo=e._stereo,this._pos=e._pos,this._pannerAttr=e._pannerAttr,t.call(this),this._stereo?e.stereo(this._stereo):this._pos&&e.pos(this._pos[0],this._pos[1],this._pos[2],this._id)}}(Sound.prototype.init),Sound.prototype.reset=function(t){return function(){var e=this._parent;return this._orientation=e._orientation,this._stereo=e._stereo,this._pos=e._pos,this._pannerAttr=e._pannerAttr,this._stereo?e.stereo(this._stereo):this._pos?e.pos(this._pos[0],this._pos[1],this._pos[2],this._id):this._panner&&(this._panner.disconnect(0),this._panner=void 0,e._refreshBuffer(this)),t.call(this)}}(Sound.prototype.reset);var e=function(t,e){"spatial"===(e=e||"spatial")?(t._panner=Howler.ctx.createPanner(),t._panner.coneInnerAngle=t._pannerAttr.coneInnerAngle,t._panner.coneOuterAngle=t._pannerAttr.coneOuterAngle,t._panner.coneOuterGain=t._pannerAttr.coneOuterGain,t._panner.distanceModel=t._pannerAttr.distanceModel,t._panner.maxDistance=t._pannerAttr.maxDistance,t._panner.refDistance=t._pannerAttr.refDistance,t._panner.rolloffFactor=t._pannerAttr.rolloffFactor,t._panner.panningModel=t._pannerAttr.panningModel,void 0!==t._panner.positionX?(t._panner.positionX.setValueAtTime(t._pos[0],Howler.ctx.currentTime),t._panner.positionY.setValueAtTime(t._pos[1],Howler.ctx.currentTime),t._panner.positionZ.setValueAtTime(t._pos[2],Howler.ctx.currentTime)):t._panner.setPosition(t._pos[0],t._pos[1],t._pos[2]),void 0!==t._panner.orientationX?(t._panner.orientationX.setValueAtTime(t._orientation[0],Howler.ctx.currentTime),t._panner.orientationY.setValueAtTime(t._orientation[1],Howler.ctx.currentTime),t._panner.orientationZ.setValueAtTime(t._orientation[2],Howler.ctx.currentTime)):t._panner.setOrientation(t._orientation[0],t._orientation[1],t._orientation[2])):(t._panner=Howler.ctx.createStereoPanner(),t._panner.pan.setValueAtTime(t._stereo,Howler.ctx.currentTime)),t._panner.connect(t._node),t._paused||t._parent.pause(t._id,!0).play(t._id,!0)}}()}).call(e,n("DuR2"))},kBOG:function(t,e,n){var i=n("Ds5P"),r=n("cwmK");i(i.S,"Math",{cbrt:function(t){return r(t=+t)*Math.pow(Math.abs(t),1/3)}})},kM2E:function(t,e,n){var i=n("7KvD"),r=n("FeBl"),o=n("+ZMJ"),a=n("hJx8"),s=n("D2L2"),c=function(t,e,n){var l,u,h,d=t&c.F,f=t&c.G,p=t&c.S,m=t&c.P,v=t&c.B,g=t&c.W,y=f?r:r[e]||(r[e]={}),b=y.prototype,x=f?i:p?i[e]:(i[e]||{}).prototype;for(l in f&&(n=e),n)(u=!d&&x&&void 0!==x[l])&&s(y,l)||(h=u?x[l]:n[l],y[l]=f&&"function"!=typeof x[l]?n[l]:v&&u?o(h,i):g&&x[l]==h?function(t){var e=function(e,n,i){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,i)}return t.apply(this,arguments)};return e.prototype=t.prototype,e}(h):m&&"function"==typeof h?o(Function.call,h):h,m&&((y.virtual||(y.virtual={}))[l]=h,t&c.R&&b&&!b[l]&&a(b,l,h)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},kic5:function(t,e,n){var i=n("UKM+"),r=n("gvDt").set;t.exports=function(t,e,n){var o,a=e.constructor;return a!==n&&"function"==typeof a&&(o=a.prototype)!==n.prototype&&i(o)&&r&&r(t,o),t}},kkCw:function(t,e,n){var i=n("VWgF")("wks"),r=n("ulTY"),o=n("OzIq").Symbol,a="function"==typeof o;(t.exports=function(t){return i[t]||(i[t]=a&&o[t]||(a?o:r)("Symbol."+t))}).store=i},knuC:function(t,e){t.exports=function(t,e,n){var i=void 0===n;switch(e.length){case 0:return i?t():t.call(n);case 1:return i?t(e[0]):t.call(n,e[0]);case 2:return i?t(e[0],e[1]):t.call(n,e[0],e[1]);case 3:return i?t(e[0],e[1],e[2]):t.call(n,e[0],e[1],e[2]);case 4:return i?t(e[0],e[1],e[2],e[3]):t.call(n,e[0],e[1],e[2],e[3])}return t.apply(n,e)}},kqpo:function(t,e,n){var i=n("u0PK"),r=n("/whu");t.exports=function(t,e,n){if(i(e))throw TypeError("String#"+n+" doesn't accept regex!");return String(r(t))}},lDLk:function(t,e,n){var i=n("DIVP"),r=n("xZa+"),o=n("s4j0"),a=Object.defineProperty;e.f=n("bUqO")?Object.defineProperty:function(t,e,n){if(i(t),e=o(e,!0),i(n),r)try{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},lKE8:function(t,e,n){var i=n("Qh14"),r=n("PHqh"),o=n("Y1aA").f;t.exports=function(t){return function(e){for(var n,a=r(e),s=i(a),c=s.length,l=0,u=[];c>l;)o.call(a,n=s[l++])&&u.push(t?[n,a[n]]:a[n]);return u}}},lOnJ:function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},lbHh:function(t,e,n){var i,r;
/*!
 * JavaScript Cookie v2.2.1
 * https://github.com/js-cookie/js-cookie
 *
 * Copyright 2006, 2015 Klaus Hartl & Fagner Brack
 * Released under the MIT license
 */!function(o){if(void 0===(r="function"==typeof(i=o)?i.call(e,n,e,t):i)||(t.exports=r),!0,t.exports=o(),!!0){var a=window.Cookies,s=window.Cookies=o();s.noConflict=function(){return window.Cookies=a,s}}}(function(){function t(){for(var t=0,e={};t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}function e(t){return t.replace(/(%[0-9A-Z]{2})+/g,decodeURIComponent)}return function n(i){function r(){}function o(e,n,o){if("undefined"!=typeof document){"number"==typeof(o=t({path:"/"},r.defaults,o)).expires&&(o.expires=new Date(1*new Date+864e5*o.expires)),o.expires=o.expires?o.expires.toUTCString():"";try{var a=JSON.stringify(n);/^[\{\[]/.test(a)&&(n=a)}catch(t){}n=i.write?i.write(n,e):encodeURIComponent(String(n)).replace(/%(23|24|26|2B|3A|3C|3E|3D|2F|3F|40|5B|5D|5E|60|7B|7D|7C)/g,decodeURIComponent),e=encodeURIComponent(String(e)).replace(/%(23|24|26|2B|5E|60|7C)/g,decodeURIComponent).replace(/[\(\)]/g,escape);var s="";for(var c in o)o[c]&&(s+="; "+c,!0!==o[c]&&(s+="="+o[c].split(";")[0]));return document.cookie=e+"="+n+s}}function a(t,n){if("undefined"!=typeof document){for(var r={},o=document.cookie?document.cookie.split("; "):[],a=0;a<o.length;a++){var s=o[a].split("="),c=s.slice(1).join("=");n||'"'!==c.charAt(0)||(c=c.slice(1,-1));try{var l=e(s[0]);if(c=(i.read||i)(c,l)||e(c),n)try{c=JSON.parse(c)}catch(t){}if(r[l]=c,t===l)break}catch(t){}}return t?r[t]:r}}return r.set=o,r.get=function(t){return a(t,!1)},r.getJSON=function(t){return a(t,!0)},r.remove=function(e,n){o(e,"",t(n,{expires:-1}))},r.defaults={},r.withConverter=n,r}(function(){})})},lkT3:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("FkIZ");i(i.P+i.F*!n("NNrz")([].reduceRight,!0),"Array",{reduceRight:function(t){return r(this,t,arguments.length,arguments[1],!0)}})},lktj:function(t,e,n){var i=n("Ibhu"),r=n("xnc9");t.exports=Object.keys||function(t){return i(t,r)}},lnZN:function(t,e,n){var i=n("OzIq"),r=n("kic5"),o=n("lDLk").f,a=n("WcO1").f,s=n("u0PK"),c=n("0pGU"),l=i.RegExp,u=l,h=l.prototype,d=/a/g,f=/a/g,p=new l(d)!==d;if(n("bUqO")&&(!p||n("zgIt")(function(){return f[n("kkCw")("match")]=!1,l(d)!=d||l(f)==f||"/a/i"!=l(d,"i")}))){l=function(t,e){var n=this instanceof l,i=s(t),o=void 0===e;return!n&&i&&t.constructor===l&&o?t:r(p?new u(i&&!o?t.source:t,e):u((i=t instanceof l)?t.source:t,i&&o?c.call(t):e),n?this:h,l)};for(var m=function(t){t in l||o(l,t,{configurable:!0,get:function(){return u[t]},set:function(e){u[t]=e}})},v=a(u),g=0;v.length>g;)m(v[g++]);h.constructor=l,l.prototype=h,n("R3AP")(i,"RegExp",l)}n("CEne")("RegExp")},lyhN:function(t,e,n){var i=n("Ds5P"),r=Math.atanh;i(i.S+i.F*!(r&&1/r(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},m6Yj:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{fround:n("g/m8")})},m8F4:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("2VSL"),o=n("41xE"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*a,"String",{padEnd:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},mClu:function(t,e,n){var i=n("kM2E");i(i.S+i.F*!n("+E39"),"Object",{defineProperty:n("evD5").f})},mJx5:function(t,e,n){"use strict";var i=n("u0PK"),r=n("DIVP"),o=n("7O1s"),a=n("TwzQ"),s=n("BbyF"),c=n("9Dx1"),l=n("32VL"),u=n("zgIt"),h=Math.min,d=[].push,f=!u(function(){RegExp(4294967295,"y")});n("Vg1y")("split",2,function(t,e,n,u){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,e){var r=String(this);if(void 0===t&&0===e)return[];if(!i(t))return n.call(r,t,e);for(var o,a,s,c=[],u=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),h=0,f=void 0===e?4294967295:e>>>0,p=new RegExp(t.source,u+"g");(o=l.call(p,r))&&!((a=p.lastIndex)>h&&(c.push(r.slice(h,o.index)),o.length>1&&o.index<r.length&&d.apply(c,o.slice(1)),s=o[0].length,h=a,c.length>=f));)p.lastIndex===o.index&&p.lastIndex++;return h===r.length?!s&&p.test("")||c.push(""):c.push(r.slice(h)),c.length>f?c.slice(0,f):c}:"0".split(void 0,0).length?function(t,e){return void 0===t&&0===e?[]:n.call(this,t,e)}:n,[function(n,i){var r=t(this),o=void 0==n?void 0:n[e];return void 0!==o?o.call(n,r,i):p.call(String(r),n,i)},function(t,e){var i=u(p,t,this,e,p!==n);if(i.done)return i.value;var l=r(t),d=String(this),m=o(l,RegExp),v=l.unicode,g=(l.ignoreCase?"i":"")+(l.multiline?"m":"")+(l.unicode?"u":"")+(f?"y":"g"),y=new m(f?l:"^(?:"+l.source+")",g),b=void 0===e?4294967295:e>>>0;if(0===b)return[];if(0===d.length)return null===c(y,d)?[d]:[];for(var x=0,_=0,w=[];_<d.length;){y.lastIndex=f?_:0;var S,T=c(y,f?d:d.slice(_));if(null===T||(S=h(s(y.lastIndex+(f?0:_)),d.length))===x)_=a(d,_,v);else{if(w.push(d.slice(x,_)),w.length===b)return w;for(var E=1;E<=T.length-1;E++)if(w.push(T[E]),w.length===b)return w;_=x=S}}return w.push(d.slice(x)),w}]})},mRXp:function(t,e,n){"use strict";e.b=function(t){return/^\d+(\.\d+)?$/.test(t)},e.a=function(t){if(Number.isNaN)return Number.isNaN(t);return t!=t}},mTp7:function(t,e,n){var i=n("Ds5P"),r=n("gvDt");r&&i(i.S,"Reflect",{setPrototypeOf:function(t,e){r.check(t,e);try{return r.set(t,e),!0}catch(t){return!1}}})},mZON:function(t,e,n){var i=n("VWgF")("keys"),r=n("ulTY");t.exports=function(t){return i[t]||(i[t]=r(t))}},mhn7:function(t,e,n){"use strict";n("Ymdd")("trim",function(t){return function(){return t(this,3)}})},msXi:function(t,e,n){var i=n("77Pl");t.exports=function(t,e,n,r){try{return r?e(i(n)[0],n[1]):e(n)}catch(e){var o=t.return;throw void 0!==o&&i(o.call(t)),e}}},mvHQ:function(t,e,n){t.exports={default:n("qkKv"),__esModule:!0}},mw3O:function(t,e,n){"use strict";var i=n("CwSZ"),r=n("DDCP"),o=n("XgCd");t.exports={formats:o,parse:r,stringify:i}},mxbz:function(t,e,n){(function(e){var i=n("cKTi"),r=n("+AsZ");function o(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function a(){this.initialize.apply(this,arguments)}var s=a.prototype;r.mixin(s),s.initialize=function(t){this.store={},this.external=t},s.set=function(t,e,n){if(void 0===t)throw new Error("Required argument key is undefined");var r=o(this.store,t)?this.store[t]:void 0;r&&r.timeout&&i.clear(r.timeout);var a={value:e};"number"==typeof n&&(a.timeout=i.set(this.delInternal.bind(this,t),n)),this.store[t]=a,this.external&&"function"==typeof this.external.set&&this.external.set(t,e,n);var s=r?"update":"set";this.trigger(s,t,e,n),this.trigger(s+":"+t,e,n)},s.get=function(t,n){if(void 0===t)throw new Error("Required argument key is undefined");if(o(this.store,t)){if("function"!=typeof n)return this.store[t].value;e.nextTick(n.bind(null,this.store[t].value))}else"function"==typeof n&&this.external&&"function"==typeof this.external.get&&this.external.get(t,n)},s.del=function(t){if(void 0===t)throw new Error("Required argument key is undefined");return this.external&&"function"==typeof this.external.del&&this.external.del(t),this.delInternal(t)},s.delInternal=function(t){return!!o(this.store,t)&&(this.store[t].timeout&&i.clear(this.store[t].timeout),delete this.store[t],this.trigger("del",t),this.trigger("del:"+t),!0)},s.clear=function(){var t=this.size();return this.store={},this.external&&"function"==typeof this.external.clear&&this.external.clear(),this.trigger("clear",t),t},s.size=function(){var t=0;for(var e in this.store)o(this.store,e)&&t++;return t},s.debug=function(){return this.store},s.keys=function(){return Object.keys(this.store)};var c=new a,l=function(){return new a(arguments[0])};for(var u in l.Cache=a,s)o(s,u)&&"function"==typeof s[u]&&(l[u]=s[u].bind(c));t.exports=l}).call(e,n("W2nU"))},n12u:function(t,e,n){var i=n("Ds5P");i(i.S+i.F,"Object",{assign:n("oYd7")})},n982:function(t,e,n){var i=n("UKM+"),r=Math.floor;t.exports=function(t){return!i(t)&&isFinite(t)&&r(t)===t}},nRs1:function(t,e,n){var i=n("Ds5P");i(i.S,"Object",{is:n("4IZP")})},nh2o:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("OzIq"),o=n("7gX0"),a=n("g36u")(),s=n("kkCw")("observable"),c=n("XSOZ"),l=n("DIVP"),u=n("9GpA"),h=n("A16L"),d=n("2p1q"),f=n("vmSO"),p=f.RETURN,m=function(t){return null==t?void 0:c(t)},v=function(t){var e=t._c;e&&(t._c=void 0,e())},g=function(t){return void 0===t._o},y=function(t){g(t)||(t._o=void 0,v(t))},b=function(t,e){l(t),this._c=void 0,this._o=t,t=new x(this);try{var n=e(t),i=n;null!=n&&("function"==typeof n.unsubscribe?n=function(){i.unsubscribe()}:c(n),this._c=n)}catch(e){return void t.error(e)}g(this)&&v(this)};b.prototype=h({},{unsubscribe:function(){y(this)}});var x=function(t){this._s=t};x.prototype=h({},{next:function(t){var e=this._s;if(!g(e)){var n=e._o;try{var i=m(n.next);if(i)return i.call(n,t)}catch(t){try{y(e)}finally{throw t}}}},error:function(t){var e=this._s;if(g(e))throw t;var n=e._o;e._o=void 0;try{var i=m(n.error);if(!i)throw t;t=i.call(n,t)}catch(t){try{v(e)}finally{throw t}}return v(e),t},complete:function(t){var e=this._s;if(!g(e)){var n=e._o;e._o=void 0;try{var i=m(n.complete);t=i?i.call(n,t):void 0}catch(t){try{v(e)}finally{throw t}}return v(e),t}}});var _=function(t){u(this,_,"Observable","_f")._f=c(t)};h(_.prototype,{subscribe:function(t){return new b(t,this._f)},forEach:function(t){var e=this;return new(o.Promise||r.Promise)(function(n,i){c(t);var r=e.subscribe({next:function(e){try{return t(e)}catch(t){i(t),r.unsubscribe()}},error:i,complete:n})})}}),h(_,{from:function(t){var e="function"==typeof this?this:_,n=m(l(t)[s]);if(n){var i=l(n.call(t));return i.constructor===e?i:new e(function(t){return i.subscribe(t)})}return new e(function(e){var n=!1;return a(function(){if(!n){try{if(f(t,!1,function(t){if(e.next(t),n)return p})===p)return}catch(t){if(n)throw t;return void e.error(t)}e.complete()}}),function(){n=!0}})},of:function(){for(var t=0,e=arguments.length,n=new Array(e);t<e;)n[t]=arguments[t++];return new("function"==typeof this?this:_)(function(t){var e=!1;return a(function(){if(!e){for(var i=0;i<n.length;++i)if(t.next(n[i]),e)return;t.complete()}}),function(){e=!0}})}}),d(_.prototype,s,function(){return this}),i(i.G,{Observable:_}),n("CEne")("Observable")},nphH:function(t,e,n){var i=n("DIVP"),r=n("UKM+"),o=n("w6Dh");t.exports=function(t,e){if(i(t),r(e)&&e.constructor===t)return e;var n=o.f(t);return(0,n.resolve)(e),n.promise}},nqOf:function(t,e){t.exports=function(t,e){var n=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,n)}}},o69Z:function(t,e,n){"use strict";var i=n("lRwf"),r=n.n(i);function o(t){return function(e,n){return e&&"string"!=typeof e&&(n=e,e=""),""+(e=e?t+"__"+e:t)+function t(e,n){return n?"string"==typeof n?" "+e+"--"+n:Array.isArray(n)?n.reduce(function(n,i){return n+t(e,i)},""):Object.keys(n).reduce(function(i,r){return i+(n[r]?t(e,r):"")},""):""}(e,n)}}var a=n("S06l"),s=n("YNA3"),c={methods:{slots:function(t,e){void 0===t&&(t="default");var n=this.$slots,i=this.$scopedSlots[t];return i?i(e):n[t]}}};function l(t){var e=this.name;t.component(e,this),t.component(Object(s.a)("-"+e),this)}function u(t){return{functional:!0,props:t.props,model:t.model,render:function(e,n){return t(e,n.props,function(t){var e=t.scopedSlots||t.data.scopedSlots||{},n=t.slots();return Object.keys(n).forEach(function(t){e[t]||(e[t]=function(){return n[t]})}),e}(n),n)}}}function h(t){return[function(t){return function(e){return m(e)&&(e=u(e)),e.functional||(e.mixins=e.mixins||[],e.mixins.push(c)),e.name=t,e.install=l,e}}(t="van-"+t),o(t),function(t){var e=Object(s.a)(t)+".";return function(t){for(var n=a.a.messages(),i=g(n,e+t)||g(n,t),r=arguments.length,o=new Array(r>1?r-1:0),s=1;s<r;s++)o[s-1]=arguments[s];return m(i)?i.apply(void 0,o):i}}(t)]}var d=n("4PMK");n.d(e,"d",function(){return f}),n.d(e,"i",function(){return p}),e.j=function(){},e.e=function(t){return void 0!==t&&null!==t},e.f=m,e.g=v,e.h=function(t){return v(t)&&m(t.then)&&m(t.catch)},e.c=g,n.d(e,"b",function(){return h}),n.d(e,"a",function(){return d.a});var f="undefined"!=typeof window,p=r.a.prototype.$isServer;function m(t){return"function"==typeof t}function v(t){return null!==t&&"object"==typeof t}function g(t,e){var n=t;return e.split(".").forEach(function(t){var e;n=null!=(e=n[t])?e:""}),n}},oF0V:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("IFpc"),o=n("FryR"),a=n("BbyF"),s=n("XSOZ"),c=n("plSV");i(i.P,"Array",{flatMap:function(t){var e,n,i=o(this);return s(t),e=a(i.length),n=c(i,0),r(n,i,i,e,0,1,t,arguments[1]),n}}),n("RhFG")("flatMap")},oHKp:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("PHqh"),o=n("oeih"),a=n("BbyF"),s=[].lastIndexOf,c=!!s&&1/[1].lastIndexOf(1,-0)<0;i(i.P+i.F*(c||!n("NNrz")(s)),"Array",{lastIndexOf:function(t){if(c)return s.apply(this,arguments)||0;var e=r(this),n=a(e.length),i=n-1;for(arguments.length>1&&(i=Math.min(i,o(arguments[1]))),i<0&&(i=n+i);i>=0;i--)if(i in e&&e[i]===t)return i||0;return-1}})},oYd7:function(t,e,n){"use strict";var i=n("Qh14"),r=n("Y1N3"),o=n("Y1aA"),a=n("FryR"),s=n("Q6Nf"),c=Object.assign;t.exports=!c||n("zgIt")(function(){var t={},e={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(t){e[t]=t}),7!=c({},t)[n]||Object.keys(c({},e)).join("")!=i})?function(t,e){for(var n=a(t),c=arguments.length,l=1,u=r.f,h=o.f;c>l;)for(var d,f=s(arguments[l++]),p=u?i(f).concat(u(f)):i(f),m=p.length,v=0;m>v;)h.call(f,d=p[v++])&&(n[d]=f[d]);return n}:c},oYp4:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("FryR"),o=n("XSOZ"),a=n("lDLk");n("bUqO")&&i(i.P+n("dm6P"),"Object",{__defineGetter__:function(t,e){a.f(r(this),t,{get:o(e),enumerable:!0,configurable:!0})}})},oeih:function(t,e){var n=Math.ceil,i=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},ot5s:function(t,e,n){var i=n("PHqh"),r=n("BbyF"),o=n("zo/l");t.exports=function(t){return function(e,n,a){var s,c=i(e),l=r(c.length),u=o(a,l);if(t&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},p8xL:function(t,e,n){"use strict";var i=Object.prototype.hasOwnProperty,r=function(){for(var t=[],e=0;e<256;++e)t.push("%"+((e<16?"0":"")+e.toString(16)).toUpperCase());return t}(),o=function(t,e){for(var n=e&&e.plainObjects?Object.create(null):{},i=0;i<t.length;++i)void 0!==t[i]&&(n[i]=t[i]);return n};t.exports={arrayToObject:o,assign:function(t,e){return Object.keys(e).reduce(function(t,n){return t[n]=e[n],t},t)},compact:function(t){for(var e=[{obj:{o:t},prop:"o"}],n=[],i=0;i<e.length;++i)for(var r=e[i],o=r.obj[r.prop],a=Object.keys(o),s=0;s<a.length;++s){var c=a[s],l=o[c];"object"==typeof l&&null!==l&&-1===n.indexOf(l)&&(e.push({obj:o,prop:c}),n.push(l))}return function(t){for(var e;t.length;){var n=t.pop();if(e=n.obj[n.prop],Array.isArray(e)){for(var i=[],r=0;r<e.length;++r)void 0!==e[r]&&i.push(e[r]);n.obj[n.prop]=i}}return e}(e)},decode:function(t){try{return decodeURIComponent(t.replace(/\+/g," "))}catch(e){return t}},encode:function(t){if(0===t.length)return t;for(var e="string"==typeof t?t:String(t),n="",i=0;i<e.length;++i){var o=e.charCodeAt(i);45===o||46===o||95===o||126===o||o>=48&&o<=57||o>=65&&o<=90||o>=97&&o<=122?n+=e.charAt(i):o<128?n+=r[o]:o<2048?n+=r[192|o>>6]+r[128|63&o]:o<55296||o>=57344?n+=r[224|o>>12]+r[128|o>>6&63]+r[128|63&o]:(i+=1,o=65536+((1023&o)<<10|1023&e.charCodeAt(i)),n+=r[240|o>>18]+r[128|o>>12&63]+r[128|o>>6&63]+r[128|63&o])}return n},isBuffer:function(t){return null!==t&&void 0!==t&&!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},isRegExp:function(t){return"[object RegExp]"===Object.prototype.toString.call(t)},merge:function t(e,n,r){if(!n)return e;if("object"!=typeof n){if(Array.isArray(e))e.push(n);else{if("object"!=typeof e)return[e,n];(r.plainObjects||r.allowPrototypes||!i.call(Object.prototype,n))&&(e[n]=!0)}return e}if("object"!=typeof e)return[e].concat(n);var a=e;return Array.isArray(e)&&!Array.isArray(n)&&(a=o(e,r)),Array.isArray(e)&&Array.isArray(n)?(n.forEach(function(n,o){i.call(e,o)?e[o]&&"object"==typeof e[o]?e[o]=t(e[o],n,r):e.push(n):e[o]=n}),e):Object.keys(n).reduce(function(e,o){var a=n[o];return i.call(e,o)?e[o]=t(e[o],a,r):e[o]=a,e},a)}}},pWGb:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{log1p:n("Rz2z")})},"pd+2":function(t,e,n){n("bUqO")&&"g"!=/./g.flags&&n("lDLk").f(RegExp.prototype,"flags",{configurable:!0,get:n("0pGU")})},plSV:function(t,e,n){var i=n("boo2");t.exports=function(t,e){return new(i(t))(e)}},qARP:function(t,e,n){"use strict";var i=n("lOnJ");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}(t)}},"qVR+":function(t,e,n){!function(t){var e={},n=1,i=function(t,r){var o=n++;return r>2147483647?e[o]=setTimeout(i.bind(void 0,t,r-2147483647),2147483647):(r<0&&(r=0),e[o]=setTimeout(function(){delete e[o],t()},r)),o};t.set=i,t.clear=function(t){e.hasOwnProperty(t)&&(clearTimeout(e[t]),delete e[t])},t._timeouts=e}(e)},"qZb+":function(t,e,n){n("0j1G")("Set")},qdHU:function(t,e,n){n("iKpr")("WeakSet")},qio6:function(t,e,n){var i=n("evD5"),r=n("77Pl"),o=n("lktj");t.exports=n("+E39")?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,c=0;s>c;)i.f(t,n=a[c++],e[n]);return t}},qkKv:function(t,e,n){var i=n("FeBl"),r=i.JSON||(i.JSON={stringify:JSON.stringify});t.exports=function(t){return r.stringify.apply(r,arguments)}},qkyc:function(t,e,n){var i=n("kkCw")("iterator"),r=!1;try{var o=[7][i]();o.return=function(){r=!0},Array.from(o,function(){throw 2})}catch(t){}t.exports=function(t,e){if(!e&&!r)return!1;var n=!1;try{var o=[7],a=o[i]();a.next=function(){return{done:n=!0}},o[i]=function(){return a},t(o)}catch(t){}return n}},qtRy:function(t,e,n){n("77Ug")("Int16",2,function(t){return function(e,n,i){return t(this,e,n,i)}})},qwQ3:function(t,e,n){"use strict";var i=n("DIVP"),r=n("4IZP"),o=n("9Dx1");n("Vg1y")("search",1,function(t,e,n,a){return[function(n){var i=t(this),r=void 0==n?void 0:n[e];return void 0!==r?r.call(n,i):new RegExp(n)[e](String(i))},function(t){var e=a(n,t,this);if(e.done)return e.value;var s=i(t),c=String(this),l=s.lastIndex;r(l,0)||(s.lastIndex=0);var u=o(s,c);return r(s.lastIndex,l)||(s.lastIndex=l),null===u?-1:u.index}]})},"r2E/":function(t,e,n){var i=n("Ds5P"),r=n("nqOf")(/[\\^$*+?.()|[\]{}]/g,"\\$&");i(i.S,"RegExp",{escape:function(t){return r(t)}})},rFzY:function(t,e,n){var i=n("XSOZ");t.exports=function(t,e,n){if(i(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,i){return t.call(e,n,i)};case 3:return function(n,i,r){return t.call(e,n,i,r)}}return function(){return t.apply(e,arguments)}}},s4j0:function(t,e,n){var i=n("UKM+");t.exports=function(t,e){if(!i(t))return t;var n,r;if(e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;if("function"==typeof(n=t.valueOf)&&!i(r=n.call(t)))return r;if(!e&&"function"==typeof(n=t.toString)&&!i(r=n.call(t)))return r;throw TypeError("Can't convert object to primitive value")}},sB3e:function(t,e,n){var i=n("52gC");t.exports=function(t){return Object(i(t))}},sc7i:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("/whu"),o=n("BbyF"),a=n("u0PK"),s=n("0pGU"),c=RegExp.prototype,l=function(t,e){this._r=t,this._s=e};n("IRJ3")(l,"RegExp String",function(){var t=this._r.exec(this._s);return{value:t,done:null===t}}),i(i.P,"String",{matchAll:function(t){if(r(this),!a(t))throw TypeError(t+" is not a regexp!");var e=String(this),n="flags"in c?String(t.flags):s.call(t),i=new RegExp(t.source,~n.indexOf("g")?n:"g"+n);return i.lastIndex=o(t.lastIndex),new l(i,e)}})},sh6c:function(t,e,n){!function(){var n=Array.prototype.forEach,i=Object.prototype.hasOwnProperty,r=Array.prototype.slice,o=0;var a,s={keys:Object.keys||function(t){if("object"!=typeof t&&"function"!=typeof t||null===t)throw new TypeError("keys() called on a non-object");var e,n=[];for(e in t)t.hasOwnProperty(e)&&(n[n.length]=e);return n},uniqueId:function(t){var e=++o+"";return t?t+e:e},has:function(t,e){return i.call(t,e)},each:function(t,e,i){if(null!=t)if(n&&t.forEach===n)t.forEach(e,i);else if(t.length===+t.length)for(var r=0,o=t.length;r<o;r++)e.call(i,t[r],r,t);else for(var a in t)this.has(t,a)&&e.call(i,t[a],a,t)},once:function(t){var e,n=!1;return function(){return n?e:(n=!0,e=t.apply(this,arguments),t=null,e)}}};a={on:function(t,e,n){return l(this,"on",t,[e,n])&&e?(this._events||(this._events={}),(this._events[t]||(this._events[t]=[])).push({callback:e,context:n,ctx:n||this}),this):this},once:function(t,e,n){if(!l(this,"once",t,[e,n])||!e)return this;var i=this,r=s.once(function(){i.off(t,r),e.apply(this,arguments)});return r._callback=e,this.on(t,r,n)},off:function(t,e,n){var i,r,o,a,c,u,h,d;if(!this._events||!l(this,"off",t,[e,n]))return this;if(!t&&!e&&!n)return this._events={},this;for(c=0,u=(a=t?[t]:s.keys(this._events)).length;c<u;c++)if(t=a[c],o=this._events[t]){if(this._events[t]=i=[],e||n)for(h=0,d=o.length;h<d;h++)r=o[h],(e&&e!==r.callback&&e!==r.callback._callback||n&&n!==r.context)&&i.push(r);i.length||delete this._events[t]}return this},trigger:function(t){if(!this._events)return this;var e=r.call(arguments,1);if(!l(this,"trigger",t,e))return this;var n=this._events[t],i=this._events.all;return n&&u(n,e),i&&u(i,arguments),this},stopListening:function(t,e,n){var i=this._listeners;if(!i)return this;var r=!e&&!n;for(var o in"object"==typeof e&&(n=this),t&&((i={})[t._listenerId]=t),i)i[o].off(e,n,this),r&&delete this._listeners[o];return this}};var c=/\s+/,l=function(t,e,n,i){if(!n)return!0;if("object"==typeof n){for(var r in n)t[e].apply(t,[r,n[r]].concat(i));return!1}if(c.test(n)){for(var o=n.split(c),a=0,s=o.length;a<s;a++)t[e].apply(t,[o[a]].concat(i));return!1}return!0},u=function(t,e){var n,i=-1,r=t.length,o=e[0],a=e[1],s=e[2];switch(e.length){case 0:for(;++i<r;)(n=t[i]).callback.call(n.ctx);return;case 1:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o);return;case 2:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a);return;case 3:for(;++i<r;)(n=t[i]).callback.call(n.ctx,o,a,s);return;default:for(;++i<r;)(n=t[i]).callback.apply(n.ctx,e)}};s.each({listenTo:"on",listenToOnce:"once"},function(t,e){a[e]=function(e,n,i){return(this._listeners||(this._listeners={}))[e._listenerId||(e._listenerId=s.uniqueId("l"))]=e,"object"==typeof n&&(i=this),e[t](n,i,this),this}}),a.bind=a.on,a.unbind=a.off,a.mixin=function(t){return s.each(["on","once","off","trigger","stopListening","listenTo","listenToOnce","bind","unbind"],function(e){t[e]=this[e]},this),t},void 0!==t&&t.exports&&(e=t.exports=a),e.BackboneEvents=a}()},"smQ+":function(t,e,n){"use strict";var i=n("Ds5P"),r=n("2VSL"),o=n("41xE"),a=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);i(i.P+i.F*a,"String",{padStart:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},t8x9:function(t,e,n){var i=n("77Pl"),r=n("lOnJ"),o=n("dSzd")("species");t.exports=function(t,e){var n,a=i(t).constructor;return void 0===a||void 0==(n=i(a)[o])?e:r(n)}},tJwI:function(t,e,n){var i=n("FryR"),r=n("Qh14");n("3i66")("keys",function(){return function(t){return r(i(t))}})},taNN:function(t,e,n){var i=n("Ds5P"),r=180/Math.PI;i(i.S,"Math",{degrees:function(t){return t*r}})},tqSY:function(t,e,n){var i=n("Ds5P");i(i.P,"String",{repeat:n("xAdt")})},twxM:function(t,e,n){var i=n("lDLk"),r=n("DIVP"),o=n("Qh14");t.exports=n("bUqO")?Object.defineProperties:function(t,e){r(t);for(var n,a=o(e),s=a.length,c=0;s>c;)i.f(t,n=a[c++],e[n]);return t}},u0PK:function(t,e,n){var i=n("UKM+"),r=n("ydD5"),o=n("kkCw")("match");t.exports=function(t){var e;return i(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==r(t))}},uDYd:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("XSOZ"),o=n("FryR"),a=n("zgIt"),s=[].sort,c=[1,2,3];i(i.P+i.F*(a(function(){c.sort(void 0)})||!a(function(){c.sort(null)})||!n("NNrz")(s)),"Array",{sort:function(t){return void 0===t?s.call(o(this)):s.call(o(this),r(t))}})},uEEG:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{scale:n("WY8G")})},uc2A:function(t,e,n){"use strict";var i=n("V3l/"),r=n("Ds5P"),o=n("R3AP"),a=n("2p1q"),s=n("bN1p"),c=n("IRJ3"),l=n("yYvK"),u=n("KOrd"),h=n("kkCw")("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,p,m,v,g){c(n,e,p);var y,b,x,_=function(t){if(!d&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==m,T=!1,E=t.prototype,M=E[h]||E["@@iterator"]||m&&E[m],C=M||_(m),L=m?S?_("entries"):C:void 0,O="Array"==e&&E.entries||M;if(O&&(x=u(O.call(new t)))!==Object.prototype&&x.next&&(l(x,w,!0),i||"function"==typeof x[h]||a(x,h,f)),S&&M&&"values"!==M.name&&(T=!0,C=function(){return M.call(this)}),i&&!g||!d&&!T&&E[h]||a(E,h,C),s[e]=C,s[w]=f,m)if(y={values:S?C:_("values"),keys:v?C:_("keys"),entries:L},g)for(b in y)b in E||o(E,b,y[b]);else r(r.P+r.F*(d||T),e,y);return y}},ulTY:function(t,e){var n=0,i=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},uqUo:function(t,e,n){var i=n("kM2E"),r=n("FeBl"),o=n("S82l");t.exports=function(t,e){var n=(r.Object||{})[t]||Object[t],a={};a[t]=e(n),i(i.S+i.F*o(function(){n(1)}),"Object",a)}},v2lb:function(t,e,n){var i=n("Ds5P"),r=n("Rz2z"),o=Math.sqrt,a=Math.acosh;i(i.S+i.F*!(a&&710==Math.floor(a(Number.MAX_VALUE))&&a(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:r(t-1+o(t-1)*o(t+1))}})},v3hU:function(t,e,n){var i=n("dSUw"),r=n("QG7u"),o=n("wCso"),a=n("DIVP"),s=n("KOrd"),c=o.keys,l=o.key,u=function(t,e){var n=c(t,e),o=s(t);if(null===o)return n;var a=u(o,e);return a.length?n.length?r(new i(n.concat(a))):a:n};o.exp({getMetadataKeys:function(t){return u(a(t),arguments.length<2?void 0:l(arguments[1]))}})},v5o6:function(t,e,n){var i;!function(){"use strict";
/**
	 * @preserve FastClick: polyfill to remove click delays on browsers with touch UIs.
	 *
	 * @codingstandard ftlabs-jsv2
	 * @copyright The Financial Times Limited [All Rights Reserved]
	 * @license MIT License (see LICENSE.txt)
	 */function r(t,e){var n;if(e=e||{},this.trackingClick=!1,this.trackingClickStart=0,this.targetElement=null,this.touchStartX=0,this.touchStartY=0,this.lastTouchIdentifier=0,this.touchBoundary=e.touchBoundary||10,this.layer=t,this.tapDelay=e.tapDelay||200,this.tapTimeout=e.tapTimeout||700,!r.notNeeded(t)){for(var i=["onMouse","onClick","onTouchStart","onTouchMove","onTouchEnd","onTouchCancel"],o=0,s=i.length;o<s;o++)this[i[o]]=c(this[i[o]],this);a&&(t.addEventListener("mouseover",this.onMouse,!0),t.addEventListener("mousedown",this.onMouse,!0),t.addEventListener("mouseup",this.onMouse,!0)),t.addEventListener("click",this.onClick,!0),t.addEventListener("touchstart",this.onTouchStart,!1),t.addEventListener("touchmove",this.onTouchMove,!1),t.addEventListener("touchend",this.onTouchEnd,!1),t.addEventListener("touchcancel",this.onTouchCancel,!1),Event.prototype.stopImmediatePropagation||(t.removeEventListener=function(e,n,i){var r=Node.prototype.removeEventListener;"click"===e?r.call(t,e,n.hijacked||n,i):r.call(t,e,n,i)},t.addEventListener=function(e,n,i){var r=Node.prototype.addEventListener;"click"===e?r.call(t,e,n.hijacked||(n.hijacked=function(t){t.propagationStopped||n(t)}),i):r.call(t,e,n,i)}),"function"==typeof t.onclick&&(n=t.onclick,t.addEventListener("click",function(t){n(t)},!1),t.onclick=null)}function c(t,e){return function(){return t.apply(e,arguments)}}}var o=navigator.userAgent.indexOf("Windows Phone")>=0,a=navigator.userAgent.indexOf("Android")>0&&!o,s=/iP(ad|hone|od)/.test(navigator.userAgent)&&!o,c=s&&/OS 4_\d(_\d)?/.test(navigator.userAgent),l=s&&/OS [6-7]_\d/.test(navigator.userAgent),u=navigator.userAgent.indexOf("BB10")>0;r.prototype.needsClick=function(t){switch(t.nodeName.toLowerCase()){case"button":case"select":case"textarea":if(t.disabled)return!0;break;case"input":if(s&&"file"===t.type||t.disabled)return!0;break;case"label":case"iframe":case"video":return!0}return/\bneedsclick\b/.test(t.className)},r.prototype.needsFocus=function(t){switch(t.nodeName.toLowerCase()){case"textarea":return!0;case"select":return!a;case"input":switch(t.type){case"button":case"checkbox":case"file":case"image":case"radio":case"submit":return!1}return!t.disabled&&!t.readOnly;default:return/\bneedsfocus\b/.test(t.className)}},r.prototype.sendClick=function(t,e){var n,i;document.activeElement&&document.activeElement!==t&&document.activeElement.blur(),i=e.changedTouches[0],(n=document.createEvent("MouseEvents")).initMouseEvent(this.determineEventType(t),!0,!0,window,1,i.screenX,i.screenY,i.clientX,i.clientY,!1,!1,!1,!1,0,null),n.forwardedTouchEvent=!0,t.dispatchEvent(n)},r.prototype.determineEventType=function(t){return a&&"select"===t.tagName.toLowerCase()?"mousedown":"click"},r.prototype.focus=function(t){var e;s&&t.setSelectionRange&&0!==t.type.indexOf("date")&&"time"!==t.type&&"month"!==t.type?(e=t.value.length,t.setSelectionRange(e,e)):t.focus()},r.prototype.updateScrollParent=function(t){var e,n;if(!(e=t.fastClickScrollParent)||!e.contains(t)){n=t;do{if(n.scrollHeight>n.offsetHeight){e=n,t.fastClickScrollParent=n;break}n=n.parentElement}while(n)}e&&(e.fastClickLastScrollTop=e.scrollTop)},r.prototype.getTargetElementFromEventTarget=function(t){return t.nodeType===Node.TEXT_NODE?t.parentNode:t},r.prototype.onTouchStart=function(t){var e,n,i;if(t.targetTouches.length>1)return!0;if(e=this.getTargetElementFromEventTarget(t.target),n=t.targetTouches[0],s){if((i=window.getSelection()).rangeCount&&!i.isCollapsed)return!0;if(!c){if(n.identifier&&n.identifier===this.lastTouchIdentifier)return t.preventDefault(),!1;this.lastTouchIdentifier=n.identifier,this.updateScrollParent(e)}}return this.trackingClick=!0,this.trackingClickStart=t.timeStamp,this.targetElement=e,this.touchStartX=n.pageX,this.touchStartY=n.pageY,t.timeStamp-this.lastClickTime<this.tapDelay&&t.preventDefault(),!0},r.prototype.touchHasMoved=function(t){var e=t.changedTouches[0],n=this.touchBoundary;return Math.abs(e.pageX-this.touchStartX)>n||Math.abs(e.pageY-this.touchStartY)>n},r.prototype.onTouchMove=function(t){return!this.trackingClick||((this.targetElement!==this.getTargetElementFromEventTarget(t.target)||this.touchHasMoved(t))&&(this.trackingClick=!1,this.targetElement=null),!0)},r.prototype.findControl=function(t){return void 0!==t.control?t.control:t.htmlFor?document.getElementById(t.htmlFor):t.querySelector("button, input:not([type=hidden]), keygen, meter, output, progress, select, textarea")},r.prototype.onTouchEnd=function(t){var e,n,i,r,o,u=this.targetElement;if(!this.trackingClick)return!0;if(t.timeStamp-this.lastClickTime<this.tapDelay)return this.cancelNextClick=!0,!0;if(t.timeStamp-this.trackingClickStart>this.tapTimeout)return!0;if(this.cancelNextClick=!1,this.lastClickTime=t.timeStamp,n=this.trackingClickStart,this.trackingClick=!1,this.trackingClickStart=0,l&&(o=t.changedTouches[0],(u=document.elementFromPoint(o.pageX-window.pageXOffset,o.pageY-window.pageYOffset)||u).fastClickScrollParent=this.targetElement.fastClickScrollParent),"label"===(i=u.tagName.toLowerCase())){if(e=this.findControl(u)){if(this.focus(u),a)return!1;u=e}}else if(this.needsFocus(u))return t.timeStamp-n>100||s&&window.top!==window&&"input"===i?(this.targetElement=null,!1):(this.focus(u),this.sendClick(u,t),s&&"select"===i||(this.targetElement=null,t.preventDefault()),!1);return!(!s||c||!(r=u.fastClickScrollParent)||r.fastClickLastScrollTop===r.scrollTop)||(this.needsClick(u)||(t.preventDefault(),this.sendClick(u,t)),!1)},r.prototype.onTouchCancel=function(){this.trackingClick=!1,this.targetElement=null},r.prototype.onMouse=function(t){return!this.targetElement||(!!t.forwardedTouchEvent||(!t.cancelable||(!(!this.needsClick(this.targetElement)||this.cancelNextClick)||(t.stopImmediatePropagation?t.stopImmediatePropagation():t.propagationStopped=!0,t.stopPropagation(),t.preventDefault(),!1))))},r.prototype.onClick=function(t){var e;return this.trackingClick?(this.targetElement=null,this.trackingClick=!1,!0):"submit"===t.target.type&&0===t.detail||((e=this.onMouse(t))||(this.targetElement=null),e)},r.prototype.destroy=function(){var t=this.layer;a&&(t.removeEventListener("mouseover",this.onMouse,!0),t.removeEventListener("mousedown",this.onMouse,!0),t.removeEventListener("mouseup",this.onMouse,!0)),t.removeEventListener("click",this.onClick,!0),t.removeEventListener("touchstart",this.onTouchStart,!1),t.removeEventListener("touchmove",this.onTouchMove,!1),t.removeEventListener("touchend",this.onTouchEnd,!1),t.removeEventListener("touchcancel",this.onTouchCancel,!1)},r.notNeeded=function(t){var e,n,i;if(void 0===window.ontouchstart)return!0;if(n=+(/Chrome\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]){if(!a)return!0;if(e=document.querySelector("meta[name=viewport]")){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(n>31&&document.documentElement.scrollWidth<=window.outerWidth)return!0}}if(u&&(i=navigator.userAgent.match(/Version\/([0-9]*)\.([0-9]*)/))[1]>=10&&i[2]>=3&&(e=document.querySelector("meta[name=viewport]"))){if(-1!==e.content.indexOf("user-scalable=no"))return!0;if(document.documentElement.scrollWidth<=window.outerWidth)return!0}return"none"===t.style.msTouchAction||"manipulation"===t.style.touchAction||(!!(+(/Firefox\/([0-9]+)/.exec(navigator.userAgent)||[,0])[1]>=27&&(e=document.querySelector("meta[name=viewport]"))&&(-1!==e.content.indexOf("user-scalable=no")||document.documentElement.scrollWidth<=window.outerWidth))||("none"===t.style.touchAction||"manipulation"===t.style.touchAction))},r.attach=function(t,e){return new r(t,e)},void 0===(i=function(){return r}.call(e,n,e,t))||(t.exports=i)}()},v8VU:function(t,e,n){var i=n("OzIq"),r=n("Ds5P"),o=n("41xE"),a=[].slice,s=/MSIE .\./.test(o),c=function(t){return function(e,n){var i=arguments.length>2,r=!!i&&a.call(arguments,2);return t(i?function(){("function"==typeof e?e:Function(e)).apply(this,r)}:e,n)}};r(r.G+r.B+r.F*s,{setTimeout:c(i.setTimeout),setInterval:c(i.setInterval)})},v90c:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("IFpc"),o=n("FryR"),a=n("BbyF"),s=n("oeih"),c=n("plSV");i(i.P,"Array",{flatten:function(){var t=arguments[0],e=o(this),n=a(e.length),i=c(e,0);return r(i,e,e,n,0,void 0===t?1:s(t)),i}}),n("RhFG")("flatten")},"vFc/":function(t,e,n){var i=n("TcQ7"),r=n("QRG4"),o=n("fkB2");t.exports=function(t){return function(e,n,a){var s,c=i(e),l=r(c.length),u=o(a,l);if(t&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((t||u in c)&&c[u]===n)return t||u||0;return!t&&-1}}},"vIB/":function(t,e,n){"use strict";var i=n("O4g8"),r=n("kM2E"),o=n("880/"),a=n("hJx8"),s=n("/bQp"),c=n("94VQ"),l=n("e6n0"),u=n("PzxK"),h=n("dSzd")("iterator"),d=!([].keys&&"next"in[].keys()),f=function(){return this};t.exports=function(t,e,n,p,m,v,g){c(n,e,p);var y,b,x,_=function(t){if(!d&&t in E)return E[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},w=e+" Iterator",S="values"==m,T=!1,E=t.prototype,M=E[h]||E["@@iterator"]||m&&E[m],C=M||_(m),L=m?S?_("entries"):C:void 0,O="Array"==e&&E.entries||M;if(O&&(x=u(O.call(new t)))!==Object.prototype&&x.next&&(l(x,w,!0),i||"function"==typeof x[h]||a(x,h,f)),S&&M&&"values"!==M.name&&(T=!0,C=function(){return M.call(this)}),i&&!g||!d&&!T&&E[h]||a(E,h,C),s[e]=C,s[w]=f,m)if(y={values:S?C:_("values"),keys:v?C:_("keys"),entries:L},g)for(b in y)b in E||o(E,b,y[b]);else r(r.P+r.F*(d||T),e,y);return y}},vmSO:function(t,e,n){var i=n("rFzY"),r=n("XvUs"),o=n("9vb1"),a=n("DIVP"),s=n("BbyF"),c=n("SHe9"),l={},u={};(e=t.exports=function(t,e,n,h,d){var f,p,m,v,g=d?function(){return t}:c(t),y=i(n,h,e?2:1),b=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(o(g)){for(f=s(t.length);f>b;b++)if((v=e?y(a(p=t[b])[0],p[1]):y(t[b]))===l||v===u)return v}else for(m=g.call(t);!(p=m.next()).done;)if((v=r(m,y,p.value,e))===l||v===u)return v}).BREAK=l,e.RETURN=u},vmSu:function(t,e,n){var i=n("Ds5P"),r=n("7ylX"),o=n("XSOZ"),a=n("DIVP"),s=n("UKM+"),c=n("zgIt"),l=n("ZtwE"),u=(n("OzIq").Reflect||{}).construct,h=c(function(){function t(){}return!(u(function(){},[],t)instanceof t)}),d=!c(function(){u(function(){})});i(i.S+i.F*(h||d),"Reflect",{construct:function(t,e){o(t),a(e);var n=arguments.length<3?t:o(arguments[2]);if(d&&!h)return u(t,e,n);if(t==n){switch(e.length){case 0:return new t;case 1:return new t(e[0]);case 2:return new t(e[0],e[1]);case 3:return new t(e[0],e[1],e[2]);case 4:return new t(e[0],e[1],e[2],e[3])}var i=[null];return i.push.apply(i,e),new(l.apply(t,i))}var c=n.prototype,f=r(s(c)?c:Object.prototype),p=Function.apply.call(t,f,e);return s(p)?p:f}})},vnWP:function(t,e,n){var i=n("Ds5P"),r=n("WY8G"),o=n("g/m8");i(i.S,"Math",{fscale:function(t,e,n,i,a){return o(r(t,e,n,i,a))}})},vsh6:function(t,e,n){var i=n("wCso"),r=n("DIVP"),o=i.keys,a=i.key;i.exp({getOwnMetadataKeys:function(t){return o(r(t),arguments.length<2?void 0:a(arguments[1]))}})},"vu/c":function(t,e,n){n("3g/S")("observable")},w6Dh:function(t,e,n){"use strict";var i=n("XSOZ");t.exports.f=function(t){return new function(t){var e,n;this.promise=new t(function(t,i){if(void 0!==e||void 0!==n)throw TypeError("Bad Promise constructor");e=t,n=i}),this.resolve=i(e),this.reject=i(n)}(t)}},w6W7:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("LhTa")(1);i(i.P+i.F*!n("NNrz")([].map,!0),"Array",{map:function(t){return r(this,t,arguments[1])}})},wC1N:function(t,e,n){var i=n("ydD5"),r=n("kkCw")("toStringTag"),o="Arguments"==i(function(){return arguments}());t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=function(t,e){try{return t[e]}catch(t){}}(e=Object(t),r))?n:o?i(e):"Object"==(a=i(e))&&"function"==typeof e.callee?"Arguments":a}},wCso:function(t,e,n){var i=n("MsuQ"),r=n("Ds5P"),o=n("VWgF")("metadata"),a=o.store||(o.store=new(n("ZDXm"))),s=function(t,e,n){var r=a.get(t);if(!r){if(!n)return;a.set(t,r=new i)}var o=r.get(e);if(!o){if(!n)return;r.set(e,o=new i)}return o};t.exports={store:a,map:s,has:function(t,e,n){var i=s(e,n,!1);return void 0!==i&&i.has(t)},get:function(t,e,n){var i=s(e,n,!1);return void 0===i?void 0:i.get(t)},set:function(t,e,n,i){s(n,i,!0).set(t,e)},keys:function(t,e){var n=s(t,e,!1),i=[];return n&&n.forEach(function(t,e){i.push(e)}),i},key:function(t){return void 0===t||"symbol"==typeof t?t:String(t)},exp:function(t){r(r.S,"Reflect",t)}}},wVdn:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("LhTa")(3);i(i.P+i.F*!n("NNrz")([].some,!0),"Array",{some:function(t){return r(this,t,arguments[1])}})},wnRD:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("FkIZ");i(i.P+i.F*!n("NNrz")([].reduce,!0),"Array",{reduce:function(t){return r(this,t,arguments.length,arguments[1],!1)}})},wrs0:function(t,e,n){var i=n("Ds5P"),r=Math.abs;i(i.S,"Math",{hypot:function(t,e){for(var n,i,o=0,a=0,s=arguments.length,c=0;a<s;)c<(n=r(arguments[a++]))?(o=o*(i=c/n)*i+1,c=n):o+=n>0?(i=n/c)*i:n;return c===1/0?1/0:c*Math.sqrt(o)}})},x78i:function(t,e){var n=Math.expm1;t.exports=!n||n(10)>22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:n},x9zv:function(t,e,n){var i=n("Y1aA"),r=n("fU25"),o=n("PHqh"),a=n("s4j0"),s=n("WBcL"),c=n("xZa+"),l=Object.getOwnPropertyDescriptor;e.f=n("bUqO")?l:function(t,e){if(t=o(t),e=a(e,!0),c)try{return l(t,e)}catch(t){}if(s(t,e))return r(!i.f.call(t,e),t[e])}},xAdt:function(t,e,n){"use strict";var i=n("oeih"),r=n("/whu");t.exports=function(t){var e=String(r(this)),n="",o=i(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(n+=e);return n}},xCpI:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("FryR"),o=n("s4j0"),a=n("KOrd"),s=n("x9zv").f;n("bUqO")&&i(i.P+n("dm6P"),"Object",{__lookupGetter__:function(t){var e,n=r(this),i=o(t,!0);do{if(e=s(n,i))return e.get}while(n=a(n))}})},xGkn:function(t,e,n){"use strict";var i=n("4mcu"),r=n("EGZi"),o=n("/bQp"),a=n("TcQ7");t.exports=n("vIB/")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,r(1)):r(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),o.Arguments=o.Array,i("keys"),i("values"),i("entries")},"xH/j":function(t,e,n){var i=n("hJx8");t.exports=function(t,e,n){for(var r in e)n&&t[r]?t[r]=e[r]:i(t,r,e[r]);return t}},xMpm:function(t,e,n){"use strict";var i=n("Ds5P"),r=n("bSML");i(i.S+i.F*n("zgIt")(function(){function t(){}return!(Array.of.call(t)instanceof t)}),"Array",{of:function(){for(var t=0,e=arguments.length,n=new("function"==typeof this?this:Array)(e);e>t;)r(n,t,arguments[t++]);return n.length=e,n}})},xONB:function(t,e,n){var i=n("Ds5P");i(i.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},"xZa+":function(t,e,n){t.exports=!n("bUqO")&&!n("zgIt")(function(){return 7!=Object.defineProperty(n("jhxf")("div"),"a",{get:function(){return 7}}).a})},xn9I:function(t,e,n){"use strict";n("Ymdd")("trimLeft",function(t){return function(){return t(this,1)}},"trimStart")},xnc9:function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},y325:function(t,e,n){var i=n("Ds5P"),r=n("zgIt"),o=n("/whu"),a=/"/g,s=function(t,e,n,i){var r=String(o(t)),s="<"+e;return""!==n&&(s+=" "+n+'="'+String(i).replace(a,"&quot;")+'"'),s+">"+r+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(s),i(i.P+i.F*r(function(){var e=""[t]('"');return e!==e.toLowerCase()||e.split('"').length>3}),"String",n)}},y9m4:function(t,e,n){"use strict";var i,r,o,a,s=n("V3l/"),c=n("OzIq"),l=n("rFzY"),u=n("wC1N"),h=n("Ds5P"),d=n("UKM+"),f=n("XSOZ"),p=n("9GpA"),m=n("vmSO"),v=n("7O1s"),g=n("Sejc").set,y=n("g36u")(),b=n("w6Dh"),x=n("SDXa"),_=n("41xE"),w=n("nphH"),S=c.TypeError,T=c.process,E=T&&T.versions,M=E&&E.v8||"",C=c.Promise,L="process"==u(T),O=function(){},k=r=b.f,P=!!function(){try{var t=C.resolve(1),e=(t.constructor={})[n("kkCw")("species")]=function(t){t(O,O)};return(L||"function"==typeof PromiseRejectionEvent)&&t.then(O)instanceof e&&0!==M.indexOf("6.6")&&-1===_.indexOf("Chrome/66")}catch(t){}}(),A=function(t){var e;return!(!d(t)||"function"!=typeof(e=t.then))&&e},I=function(t,e){if(!t._n){t._n=!0;var n=t._c;y(function(){for(var i=t._v,r=1==t._s,o=0,a=function(e){var n,o,a,s=r?e.ok:e.fail,c=e.resolve,l=e.reject,u=e.domain;try{s?(r||(2==t._h&&B(t),t._h=1),!0===s?n=i:(u&&u.enter(),n=s(i),u&&(u.exit(),a=!0)),n===e.promise?l(S("Promise-chain cycle")):(o=A(n))?o.call(n,c,l):c(n)):l(i)}catch(t){u&&!a&&u.exit(),l(t)}};n.length>o;)a(n[o++]);t._c=[],t._n=!1,e&&!t._h&&D(t)})}},D=function(t){g.call(c,function(){var e,n,i,r=t._v,o=R(t);if(o&&(e=x(function(){L?T.emit("unhandledRejection",r,t):(n=c.onunhandledrejection)?n({promise:t,reason:r}):(i=c.console)&&i.error&&i.error("Unhandled promise rejection",r)}),t._h=L||R(t)?2:1),t._a=void 0,o&&e.e)throw e.v})},R=function(t){return 1!==t._h&&0===(t._a||t._c).length},B=function(t){g.call(c,function(){var e;L?T.emit("rejectionHandled",t):(e=c.onrejectionhandled)&&e({promise:t,reason:t._v})})},N=function(t){var e=this;e._d||(e._d=!0,(e=e._w||e)._v=t,e._s=2,e._a||(e._a=e._c.slice()),I(e,!0))},j=function(t){var e,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw S("Promise can't be resolved itself");(e=A(t))?y(function(){var i={_w:n,_d:!1};try{e.call(t,l(j,i,1),l(N,i,1))}catch(t){N.call(i,t)}}):(n._v=t,n._s=1,I(n,!1))}catch(t){N.call({_w:n,_d:!1},t)}}};P||(C=function(t){p(this,C,"Promise","_h"),f(t),i.call(this);try{t(l(j,this,1),l(N,this,1))}catch(t){N.call(this,t)}},(i=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n("A16L")(C.prototype,{then:function(t,e){var n=k(v(this,C));return n.ok="function"!=typeof t||t,n.fail="function"==typeof e&&e,n.domain=L?T.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&I(this,!1),n.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new i;this.promise=t,this.resolve=l(j,t,1),this.reject=l(N,t,1)},b.f=k=function(t){return t===C||t===a?new o(t):r(t)}),h(h.G+h.W+h.F*!P,{Promise:C}),n("yYvK")(C,"Promise"),n("CEne")("Promise"),a=n("7gX0").Promise,h(h.S+h.F*!P,"Promise",{reject:function(t){var e=k(this);return(0,e.reject)(t),e.promise}}),h(h.S+h.F*(s||!P),"Promise",{resolve:function(t){return w(s&&this===a?C:this,t)}}),h(h.S+h.F*!(P&&n("qkyc")(function(t){C.all(t).catch(O)})),"Promise",{all:function(t){var e=this,n=k(e),i=n.resolve,r=n.reject,o=x(function(){var n=[],o=0,a=1;m(t,!1,function(t){var s=o++,c=!1;n.push(void 0),a++,e.resolve(t).then(function(t){c||(c=!0,n[s]=t,--a||i(n))},r)}),--a||i(n)});return o.e&&r(o.v),n.promise},race:function(t){var e=this,n=k(e),i=n.reject,r=x(function(){m(t,!1,function(t){e.resolve(t).then(n.resolve,i)})});return r.e&&i(r.v),n.promise}})},yJ2x:function(t,e,n){var i=n("wCso"),r=n("DIVP"),o=i.key,a=i.set;i.exp({defineMetadata:function(t,e,n,i){a(t,e,r(n),o(i))}})},yOtE:function(t,e,n){var i=n("wCso"),r=n("DIVP"),o=i.has,a=i.key;i.exp({hasOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},yYvK:function(t,e,n){var i=n("lDLk").f,r=n("WBcL"),o=n("kkCw")("toStringTag");t.exports=function(t,e,n){t&&!r(t=n?t:t.prototype,o)&&i(t,o,{configurable:!0,value:e})}},ydD5:function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},yuXV:function(t,e,n){var i=n("Ds5P"),r=n("OzIq").isFinite;i(i.S,"Number",{isFinite:function(t){return"number"==typeof t&&r(t)}})},yx1U:function(t,e,n){var i=n("Ds5P"),r=n("x9zv").f,o=n("DIVP");i(i.S,"Reflect",{deleteProperty:function(t,e){var n=r(o(t),e);return!(n&&!n.configurable)&&delete t[e]}})},zCYm:function(t,e,n){"use strict";var i=n("FryR"),r=n("zo/l"),o=n("BbyF");t.exports=function(t){for(var e=i(this),n=o(e.length),a=arguments.length,s=r(a>1?arguments[1]:void 0,n),c=a>2?arguments[2]:void 0,l=void 0===c?n:r(c,n);l>s;)e[s++]=t;return e}},zQR9:function(t,e,n){"use strict";var i=n("h65t")(!0);n("vIB/")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=i(e,n),this._i+=t.length,{value:t,done:!1})})},zZHq:function(t,e,n){var i=n("wCso"),r=n("DIVP"),o=i.get,a=i.key;i.exp({getOwnMetadata:function(t,e){return o(t,r(e),arguments.length<3?void 0:a(arguments[2]))}})},zgIt:function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},zkX4:function(t,e,n){(function(e){!function(e){"use strict";var n,i=Object.prototype,r=i.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},a=o.iterator||"@@iterator",s=o.asyncIterator||"@@asyncIterator",c=o.toStringTag||"@@toStringTag",l="object"==typeof t,u=e.regeneratorRuntime;if(u)l&&(t.exports=u);else{(u=e.regeneratorRuntime=l?t.exports:{}).wrap=x;var h="suspendedStart",d="suspendedYield",f="executing",p="completed",m={},v={};v[a]=function(){return this};var g=Object.getPrototypeOf,y=g&&g(g(P([])));y&&y!==i&&r.call(y,a)&&(v=y);var b=T.prototype=w.prototype=Object.create(v);S.prototype=b.constructor=T,T.constructor=S,T[c]=S.displayName="GeneratorFunction",u.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===S||"GeneratorFunction"===(e.displayName||e.name))},u.mark=function(t){return Object.setPrototypeOf?Object.setPrototypeOf(t,T):(t.__proto__=T,c in t||(t[c]="GeneratorFunction")),t.prototype=Object.create(b),t},u.awrap=function(t){return{__await:t}},E(M.prototype),M.prototype[s]=function(){return this},u.AsyncIterator=M,u.async=function(t,e,n,i){var r=new M(x(t,e,n,i));return u.isGeneratorFunction(e)?r:r.next().then(function(t){return t.done?t.value:r.next()})},E(b),b[c]="Generator",b[a]=function(){return this},b.toString=function(){return"[object Generator]"},u.keys=function(t){var e=[];for(var n in t)e.push(n);return e.reverse(),function n(){for(;e.length;){var i=e.pop();if(i in t)return n.value=i,n.done=!1,n}return n.done=!0,n}},u.values=P,k.prototype={constructor:k,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=n,this.done=!1,this.delegate=null,this.method="next",this.arg=n,this.tryEntries.forEach(O),!t)for(var e in this)"t"===e.charAt(0)&&r.call(this,e)&&!isNaN(+e.slice(1))&&(this[e]=n)},stop:function(){this.done=!0;var t=this.tryEntries[0].completion;if("throw"===t.type)throw t.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var e=this;function i(i,r){return s.type="throw",s.arg=t,e.next=i,r&&(e.method="next",e.arg=n),!!r}for(var o=this.tryEntries.length-1;o>=0;--o){var a=this.tryEntries[o],s=a.completion;if("root"===a.tryLoc)return i("end");if(a.tryLoc<=this.prev){var c=r.call(a,"catchLoc"),l=r.call(a,"finallyLoc");if(c&&l){if(this.prev<a.catchLoc)return i(a.catchLoc,!0);if(this.prev<a.finallyLoc)return i(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return i(a.catchLoc,!0)}else{if(!l)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return i(a.finallyLoc)}}}},abrupt:function(t,e){for(var n=this.tryEntries.length-1;n>=0;--n){var i=this.tryEntries[n];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev<i.finallyLoc){var o=i;break}}o&&("break"===t||"continue"===t)&&o.tryLoc<=e&&e<=o.finallyLoc&&(o=null);var a=o?o.completion:{};return a.type=t,a.arg=e,o?(this.method="next",this.next=o.finallyLoc,m):this.complete(a)},complete:function(t,e){if("throw"===t.type)throw t.arg;return"break"===t.type||"continue"===t.type?this.next=t.arg:"return"===t.type?(this.rval=this.arg=t.arg,this.method="return",this.next="end"):"normal"===t.type&&e&&(this.next=e),m},finish:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),O(n),m}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var i=n.completion;if("throw"===i.type){var r=i.arg;O(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,i){return this.delegate={iterator:P(t),resultName:e,nextLoc:i},"next"===this.method&&(this.arg=n),m}}}function x(t,e,n,i){var r=e&&e.prototype instanceof w?e:w,o=Object.create(r.prototype),a=new k(i||[]);return o._invoke=function(t,e,n){var i=h;return function(r,o){if(i===f)throw new Error("Generator is already running");if(i===p){if("throw"===r)throw o;return A()}for(n.method=r,n.arg=o;;){var a=n.delegate;if(a){var s=C(a,n);if(s){if(s===m)continue;return s}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(i===h)throw i=p,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);i=f;var c=_(t,e,n);if("normal"===c.type){if(i=n.done?p:d,c.arg===m)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(i=p,n.method="throw",n.arg=c.arg)}}}(t,n,a),o}function _(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function w(){}function S(){}function T(){}function E(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function M(t){function n(e,i,o,a){var s=_(t[e],t,i);if("throw"!==s.type){var c=s.arg,l=c.value;return l&&"object"==typeof l&&r.call(l,"__await")?Promise.resolve(l.__await).then(function(t){n("next",t,o,a)},function(t){n("throw",t,o,a)}):Promise.resolve(l).then(function(t){c.value=t,o(c)},a)}a(s.arg)}var i;"object"==typeof e.process&&e.process.domain&&(n=e.process.domain.bind(n)),this._invoke=function(t,e){function r(){return new Promise(function(i,r){n(t,e,i,r)})}return i=i?i.then(r,r):r()}}function C(t,e){var i=t.iterator[e.method];if(i===n){if(e.delegate=null,"throw"===e.method){if(t.iterator.return&&(e.method="return",e.arg=n,C(t,e),"throw"===e.method))return m;e.method="throw",e.arg=new TypeError("The iterator does not provide a 'throw' method")}return m}var r=_(i,t.iterator,e.arg);if("throw"===r.type)return e.method="throw",e.arg=r.arg,e.delegate=null,m;var o=r.arg;return o?o.done?(e[t.resultName]=o.value,e.next=t.nextLoc,"return"!==e.method&&(e.method="next",e.arg=n),e.delegate=null,m):o:(e.method="throw",e.arg=new TypeError("iterator result is not an object"),e.delegate=null,m)}function L(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function O(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function k(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(L,this),this.reset(!0)}function P(t){if(t){var e=t[a];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var i=-1,o=function e(){for(;++i<t.length;)if(r.call(t,i))return e.value=t[i],e.done=!1,e;return e.value=n,e.done=!0,e};return o.next=o}}return{next:A}}function A(){return{value:n,done:!0}}}("object"==typeof e?e:"object"==typeof window?window:"object"==typeof self?self:this)}).call(e,n("DuR2"))},zmx7:function(t,e,n){var i=n("Ds5P"),r=n("YUr7"),o=n("PHqh"),a=n("x9zv"),s=n("bSML");i(i.S,"Object",{getOwnPropertyDescriptors:function(t){for(var e,n,i=o(t),c=a.f,l=r(i),u={},h=0;l.length>h;)void 0!==(n=c(i,e=l[h++]))&&s(u,e,n);return u}})},"zo/l":function(t,e,n){var i=n("oeih"),r=Math.max,o=Math.min;t.exports=function(t,e){return(t=i(t))<0?r(t+e,0):o(t,e)}},"zq/X":function(t,e,n){var i=n("UKM+");t.exports=function(t,e){if(!i(t)||t._t!==e)throw TypeError("Incompatible receiver, "+e+" required!");return t}}});