1webpackJsonp([3],{"+0Ji":function(t,e,n){"use strict";var r=n("bKpL"),i=n("l/Fw");r.Observable.prototype.sample=i.sample},"+BWq":function(t,e,n){"use strict";function r(t,e,n){return function(r){return r.lift(new a(t,e,n,r))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("TpsG");e.first=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.index=0,this.hasCompleted=!1,this._emitted=!1}return i(e,t),e.prototype._next=function(t){var e=this.index++;this.predicate?this._tryPredicate(t,e):this._emit(t,e)},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}n&&this._emit(t,e)},e.prototype._emit=function(t,e){if(this.resultSelector)return void this._tryResultSelector(t,e);this._emitFinal(t)},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this._emitFinal(n)},e.prototype._emitFinal=function(t){var e=this.destination;this._emitted||(this._emitted=!0,e.next(t),e.complete(),this.hasCompleted=!0)},e.prototype._complete=function(){var t=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||t.error(new s.EmptyError):(t.next(this.defaultValue),t.complete())},e}(o.Subscriber)},"+Bur":function(t,e,n){function r(){i.call(this)}t.exports=r;var i=n("rOzH").EventEmitter;n("lDCR")(r,i),r.Readable=n("Osec"),r.Writable=n("QRYi"),r.Duplex=n("XvLI"),r.Transform=n("EJO3"),r.PassThrough=n("rr9E"),r.Stream=r,r.prototype.pipe=function(t,e){function n(e){t.writable&&!1===t.write(e)&&c.pause&&c.pause()}function r(){c.readable&&c.resume&&c.resume()}function o(){l||(l=!0,t.end())}function s(){l||(l=!0,"function"==typeof t.destroy&&t.destroy())}function a(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){c.removeListener("data",n),t.removeListener("drain",r),c.removeListener("end",o),c.removeListener("close",s
1),c.removeListener("error",a),t.removeListener("error",a),c.removeListener("end",u),c.removeListener("close",u),t.removeListener("close",u)}var c=this;c.on("data",n),t.on("drain",r),t._isStdio||e&&!1===e.end||(c.on("end",o),c.on("close",s));var l=!1;return c.on("error",a),t.on("error",a),c.on("end",u),c.on("close",u),t.on("close",u),t.emit("pipe",c),t}},"+FJ1":function(t,e,n){"use strict";function r(t,e){return i.mergeMap(t,e,1)}var i=n("mjx3");e.concatMap=r},"+Ve+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("I3ay");r.Observable.prototype.concatAll=i.concatAll},"+c7d":function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i.combineLatest.apply(void 0,t)(this)}var i=n("H4tt");e.combineLatest=r},"+vKo":function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new a(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.buffer=r;var a=function(){function t(t){this.closingNotifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.closingNotifier))},t}(),u=function(t){function e(e,n){t.call(this,e),this.buffer=[],this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.buffer;this.buffer=[],this.destination.next(o)},e}(o.OuterSubscriber)},"+zVg":function(t,e,n){"use strict";var r=n("wZOE");e.of=r.ArrayObservable.of},"/9bB":function(t,e,n){"use strict";function r(){return i.materialize()(this)}var i=n("L0Qg");e.materialize=r},"/amm":function(t,e,n){"use strict";var r=n("bKpL"),i=n("60yU");r.Observable.prototype.repeatWhen=i.repeatWhen},"/cYh":function(t,e,n){"use strict";function r(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}function i(t){var e=r(t);if("string"!=typeof e&&(g.isEncoding===b||!b(t)))throw new Error("Unknown encoding: "+t);return e||t}function o(t){this.encoding=i(t);var e;switch(this.encoding){case"utf16le":this.text=p,this.end=f,e=4;break;case"utf8":this.fillLast=c,e=4;break;case"base64":this.text=d,this.end=m,e=3;break;default:return this.write=v,void(this.end=y)}this.lastNeed=0,this.lastTotal=0,this.lastChar=g.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:-1}function a(t,e,n){var r=e.length-1;if(r<n)return 0;var i=s(e[r]);return i>=0?(i>0&&(t.lastNeed=i-1),i):--r<n?0:(i=s(e[r]))>=0?(i>0&&(t.lastNeed=i-2),i):--r<n?0:(i=s(e[r]),i>=0?(i>0&&(2===i?i=0:t.lastNeed=i-3),i):0)}function u(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"\ufffd".repeat(n);if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"\ufffd".repeat(n+1);if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"\ufffd".repeat(n+2)}}function c(t){var e=this.lastTotal-this.lastNeed,n=u(this,t,e);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function l(t,e){var n=a(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var r=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,r),t.toString("utf8",e,r)}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+"\ufffd".repeat(this.lastTotal-this.lastNeed):e}function p(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var r=n.charCodeAt(n.length-1);if(r>=55296&&r<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function f(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function d(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function m(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function v(t){return t.toString(this.encoding)}function y(t){return t&&t.length?this.write(t):""}var g=n("zOKz").Buffer,b=g.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};e.StringDecoder=o,o.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n<t.length?e?e+this.text(t,n):this.text(t,n):e||""},o.prototype.end=h,o.prototype.text=l,o.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},"/h+r":function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=o.async),function(r){var i=s.isDate(t),o=i?+t-n.now():Math.abs(t);return r.lift(new c(o,i,e,n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("IhB/"),s=n("6jp4"),a=n("yW9Z"),u=n("ktfo");e.timeoutWith=r;var c=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.withObservable=n,this.scheduler
1=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},t}(),l=function(t){function e(e,n,r,i,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=r,this.withObservable=i,this.scheduler=o,this.action=null,this.scheduleTimeout()}return i(e,t),e.dispatchTimeout=function(t){var e=t.withObservable;t._unsubscribeAndRecycle(),t.add(u.subscribeToResult(t,e))},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},e}(a.OuterSubscriber)},"/oeL":function(t,e,n){"use strict";(function(t){function r(){if(!ii){var t=ri.Symbol;if(t&&t.iterator)ii=t.iterator;else for(var e=Object.getOwnPropertyNames(Map.prototype),n=0;n<e.length;++n){var r=e[n];"entries"!==r&&"size"!==r&&Map.prototype[r]===Map.prototype.entries&&(ii=r)}}return ii}function i(t){Zone.current.scheduleMicroTask("scheduleMicrotask",t)}function o(t,e){return t===e||"number"==typeof t&&"number"==typeof e&&isNaN(t)&&isNaN(e)}function s(t){if("string"==typeof t)return t;if(null==t)return""+t;if(t.overriddenName)return""+t.overriddenName;if(t.name)return""+t.name;var e=t.toString();if(null==e)return""+e;var n=e.indexOf("\n");return-1===n?e:e.substring(0,n)}function a(t){return"function"==typeof t&&t.hasOwnProperty("annotation")&&(t=t.annotation),t}function u(t,e){if(t===Object||t===String||t===Function||t===Number||t===Array)throw new Error("Can not use native "+s(t)+" as constructor");if("function"==typeof t)return t;if(Array.isArray(t)){var n=t,r=n.length-1,i=t[r];if("function"!=typeof i)throw new Error("Last position of Class method array must be Function in key "+e+" was '"+s(i)+"'");if(r!=i.length)throw new Error("Number of annotations ("+r+") does not match number of arguments ("+i.length+") in the function: "+s(i));for(var o=[],u=0,c=n.length-1;u<c;u++){var l=[];o.push(l);var h=n[u];if(Array.isArray(h))for(var p=0;p<h.length;p++)l.push(a(h[p]));else"function"==typeof h?l.push(a(h)):l.push(h)}return si.defineMetadata("parameters",o,i),i}throw new Error("Only Function or Array is supported in Class definition for key '"+e+"' is '"+s(t)+"'")}function c(t){var e=u(t.hasOwnProperty("constructor")?t.constructor:void 0,"constructor"),n=e.prototype;if(t.hasOwnProperty("extends")){if("function"!=typeof t.extends)throw new Error("Class definition 'extends' property must be a constructor function was: "+s(t.extends));e.prototype=n=Object.create(t.extends.prototype)}for(var r in t)"extends"!==r&&"prototype"!==r&&t.hasOwnProperty(r)&&(n[r]=u(t[r],r));this&&this.annotations instanceof Array&&si.defineMetadata("annotations",this.annotations,e);var i=e.name;return i&&"constructor"!==i||(e.overriddenName="class"+oi++),e}function l(t,e,n,r){function i(t){if(!si||!si.getOwnMetadata)throw"reflect-metadata shim is required when using class decorators";if(this instanceof i)return o.call(this,t),this;var e=new i(t),n="function"==typeof this&&Array.isArray(this.annotations)?this.annotations:[];n.push(e);var s=function(t){var n=si.getOwnMetadata("annotations",t)||[];return n.push(e),si.defineMetadata("annotations",n,t),t};return s.annotations=n,s.Class=c,r&&r(s),s}var o=h(e);return n&&(i.prototype=Object.create(n.prototype)),i.prototype.toString=function(){return"@"+t},i.annotationCls=i,i}function h(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(t){var r=t.apply(void 0,e);for(var i in r)this[i]=r[i]}}}function p(t,e,n){function r(){function t(t,e,n){for(var r=si.getOwnMetadata("parameters",t)||[];r.length<=n;)r.push(null);return r[n]=r[n]||[],r[n].push(o),si.defineMetadata("parameters",r,t),t}for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];if(this instanceof r)return i.apply(this,e),this;var o=new(r.bind.apply(r,[void 0].concat(e)));return t.annotation=o,t}var i=h(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function f(t,e,n){function r(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];if(this instanceof r)return i.apply(this,t),this;var n=new(r.bind.apply(r,[void 0].concat(t)));return function(t,e){var r=si.getOwnMetadata("propMetadata",t.constructor)||{};r[e]=r.hasOwnProperty(e)&&r[e]||[],r[e].unshift(n),si.defineMetadata("propMetadata",r,t.constructor)}}var i=h(e);return n&&(r.prototype=Object.create(n.prototype)),r.prototype.toString=function(){return"@"+t},r.annotationCls=r,r}function d(t){return t.__forward_ref__=d,t.toString=function(){return s(this())},t}function m(t){return"function"==typeof t&&t.hasOwnProperty("__forward_ref__")&&t.__forward_ref__===d?t():t}function v(t){return t[Ni]}function y(t){return t[Ii]}function g(t){return t[ki]||b}function b(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];t.error.apply(t,e)}function _(t,e){var n=t+" caused by: "+(e instanceof Error?e.message:e),r=Error(n);return r[Ii]=e,r}function w(t){for(var e=[],n=0;n<t.length;++n){if(e.indexOf(t[n])>-1)return e.push(t[n]),e;e.push(t[n])}return e}function x(t){if(t.length>1){return" ("+w(t.slice().reverse()).map(function(t){return s(t.token)}).join(" -> ")+")"}return""}function E(t,e,n,r){var i=[e],o=n(i),s=r?_(o,r):Error(o);
1return s.addKey=S,s.keys=i,s.injectors=[t],s.constructResolvingMessage=n,s[Ii]=r,s}function S(t,e){this.injectors.push(t),this.keys.push(e),this.message=this.constructResolvingMessage(this.keys)}function T(t,e){return E(t,e,function(t){return"No provider for "+s(t[0].token)+"!"+x(t)})}function M(t,e){return E(t,e,function(t){return"Cannot instantiate cyclic dependency!"+x(t)})}function C(t,e,n,r){return E(t,r,function(t){var n=s(t[0].token);return e.message+": Error during instantiation of "+n+"!"+x(t)+"."},e)}function O(t){return Error("Invalid provider - only instances of Provider and Type are allowed, got: "+t)}function A(t,e){for(var n=[],r=0,i=e.length;r<i;r++){var o=e[r];o&&0!=o.length?n.push(o.map(s).join(" ")):n.push("?")}return Error("Cannot resolve all parameters for '"+s(t)+"'("+n.join(", ")+"). Make sure that all the parameters are decorated with Inject or have valid type annotations and that '"+s(t)+"' is decorated with Injectable.")}function P(t){return Error("Index "+t+" is out-of-bounds.")}function R(t,e){return Error("Cannot mix multi providers and regular providers, got: "+t+" "+e)}function L(t){return"function"==typeof t}function N(t){return t?t.map(function(t){var e=t.type,n=e.annotationCls,r=t.args?t.args:[];return new(n.bind.apply(n,[void 0].concat(r)))}):[]}function I(t){var e=Object.getPrototypeOf(t.prototype);return(e?e.constructor:null)||Object}function k(t){var e,n;if(t.useClass){var r=m(t.useClass);e=Gi.factory(r),n=z(r)}else t.useExisting?(e=function(t){return t},n=[Wi.fromKey(Di.get(t.useExisting))]):t.useFactory?(e=t.useFactory,n=B(t.useFactory,t.deps)):(e=function(){return t.useValue},n=qi);return new Xi(e,n)}function j(t){return new Zi(Di.get(t.provide),[k(t)],t.multi||!1)}function D(t){var e=U(t,[]),n=e.map(j),r=F(n,new Map);return Array.from(r.values())}function F(t,e){for(var n=0;n<t.length;n++){var r=t[n],i=e.get(r.key.id);if(i){if(r.multiProvider!==i.multiProvider)throw R(i,r);if(r.multiProvider)for(var o=0;o<r.resolvedFactories.length;o++)i.resolvedFactories.push(r.resolvedFactories[o]);else e.set(r.key.id,r)}else{var s=void 0;s=r.multiProvider?new Zi(r.key,r.resolvedFactories.slice(),r.multiProvider):r,e.set(r.key.id,s)}}return e}function U(t,e){return t.forEach(function(t){if(t instanceof Bi)e.push({provide:t,useClass:t});else if(t&&"object"==typeof t&&void 0!==t.provide)e.push(t);else{if(!(t instanceof Array))throw O(t);U(t,e)}}),e}function B(t,e){if(e){var n=e.map(function(t){return[t]});return e.map(function(e){return V(t,e,n)})}return z(t)}function z(t){var e=Gi.parameters(t);if(!e)return[];if(e.some(function(t){return null==t}))throw A(t,e);return e.map(function(n){return V(t,n,e)})}function V(t,e,n){var r=null,i=!1;if(!Array.isArray(e))return e instanceof Ei?H(e.token,i,null):H(e,i,null);for(var o=null,s=0;s<e.length;++s){var a=e[s];a instanceof Bi?r=a:a instanceof Ei?r=a.token:a instanceof Si?i=!0:a instanceof Mi||a instanceof Ci?o=a:a instanceof $r&&(r=a)}if(null!=(r=m(r)))return H(r,i,o);throw A(t,n)}function H(t,e,n){return new Wi(Di.get(t),e,n)}function G(t,e){for(var n=new Array(t._providers.length),r=0;r<t._providers.length;++r)n[r]=e(t.getProviderAtIndex(r));return n}function W(t){return!!t&&"function"==typeof t.then}function q(t){return!!t&&"function"==typeof t.subscribe}function Z(){return""+X()+X()+X()}function X(){return String.fromCharCode(97+Math.floor(25*Math.random()))}function K(){throw new Error("Runtime compiler is not loaded")}function Y(t){var e=Error("No component factory found for "+s(t)+". Did you add it to @NgModule.entryComponents?");return e[ho]=t,e}function J(t,e){return void 0===e&&(e=null),vo.createScope(t,e)}function Q(t,e){return mo.leaveScope(t,e),e}function $(t,e){return null}function tt(t){if(0==t._nesting&&!t.hasPendingMicrotasks&&!t.isStable)try{t._nesting++,t.onMicrotaskEmpty.emit(null)}finally{if(t._nesting--,!t.hasPendingMicrotasks)try{t.runOutsideAngular(function(){return t.onStable.emit(null)})}finally{t.isStable=!0}}}function et(t){t._inner=t._inner.fork({name:"angular",properties:{isAngularZone:!0},onInvokeTask:function(e,n,r,i,o,s){try{return nt(t),e.invokeTask(r,i,o,s)}finally{rt(t)}},onInvoke:function(e,n,r,i,o,s,a){try{return nt(t),e.invoke(r,i,o,s,a)}finally{rt(t)}},onHasTask:function(e,n,r,i){e.hasTask(r,i),n===r&&("microTask"==i.change?(t.hasPendingMicrotasks=i.microTask,tt(t)):"macroTask"==i.change&&(t.hasPendingMacrotasks=i.macroTask))},onHandleError:function(e,n,r,i){return e.handleError(r,i),t.runOutsideAngular(function(){return t.onError.emit(i)}),!1}})}function nt(t){t._nesting++,t.isStable&&(t.isStable=!1,t.onUnstable.emit(null))}function rt(t){t._nesting--,tt(t)}function it(t){Po=t}function ot(){if(Lo)throw new Error("Cannot enable prod mode after platform setup.");Ro=!1}function st(){return Lo=!0,Ro}function at(t){if(Oo&&!Oo.destroyed&&!Oo.injector.get(No,!1))throw new Error("There can be only one platform. Destroy the previous one to create a new one.");Oo=t.get(ko);var e=t.get(ro,null);return e&&e.forEach(function(t){return t()}),Oo}function ut(t,e,n){void 0===n&&(n=[]);var r=new $r("Platform: "+e);return function(e){void 0===e&&(e=[]);var i=lt();return i&&!i.injector.get(No,!1)||(t?t(n.concat(e).concat({provide:r,useValue:!0})):at(Yi.resolveAndCreate(n.concat(e).concat({provide:r,useValue:!0})))),ct(r)}}function ct(t){var e=lt();if(!e)throw new Error("No platform exists!");if(!e.injector.get(t,null))throw new Error("A platform with a different c
1onfiguration has been created. Please destroy it first.");return e}function lt(){return Oo&&!Oo.destroyed?Oo:null}function ht(t,e,n){try{var r=n();return W(r)?r.catch(function(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}):r}catch(n){throw e.runOutsideAngular(function(){return t.handleError(n)}),n}}function pt(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function ft(t){return t.reduce(function(t,e){var n=Array.isArray(e)?ft(e):e;return t.concat(n)},[])}function dt(t,e,n){if(!t)throw new Error("Cannot find '"+n+"' in '"+e+"'");return t}function mt(t,e,n){t.childNodes.forEach(function(t){t instanceof es&&(e(t)&&n.push(t),mt(t,e,n))})}function vt(t,e,n){t instanceof es&&t.childNodes.forEach(function(t){e(t)&&n.push(t),t instanceof es&&vt(t,e,n)})}function yt(t){return ns.get(t)||null}function gt(t){ns.set(t.nativeNode,t)}function bt(t){ns.delete(t.nativeNode)}function _t(t,e){var n=wt(t),r=wt(e);if(n&&r)return xt(t,e,_t);var i=t&&("object"==typeof t||"function"==typeof t),s=e&&("object"==typeof e||"function"==typeof e);return!(n||!i||r||!s)||o(t,e)}function wt(t){return!!St(t)&&(Array.isArray(t)||!(t instanceof Map)&&r()in t)}function xt(t,e,n){for(var i=t[r()](),o=e[r()]();;){var s=i.next(),a=o.next();if(s.done&&a.done)return!0;if(s.done||a.done)return!1;if(!n(s.value,a.value))return!1}}function Et(t,e){if(Array.isArray(t))for(var n=0;n<t.length;n++)e(t[n]);else for(var i=t[r()](),o=void 0;!(o=i.next()).done;)e(o.value)}function St(t){return null!==t&&("function"==typeof t||"object"==typeof t)}function Tt(t,e,n){var r=t.previousIndex;if(null===r)return r;var i=0;return n&&r<n.length&&(i=n[r]),r+e+i}function Mt(t){return t.name||typeof t}function Ct(){return Gi}function Ot(){return gs}function At(){return bs}function Pt(t){return t||"en-US"}function Rt(t,e){return t.nodes[e]}function Lt(t,e){return t.nodes[e]}function Nt(t,e){return t.nodes[e]}function It(t,e){return t.nodes[e]}function kt(t,e){return t.nodes[e]}function jt(t,e,n,r){var i="ExpressionChangedAfterItHasBeenCheckedError: Expression has changed after it was checked. Previous value: '"+e+"'. Current value: '"+n+"'.";return r&&(i+=" It seems like the view has been created after its parent and its children have been dirty checked. Has it been created in a change detection hook ?"),Ft(i,t)}function Dt(t,e){return t instanceof Error||(t=new Error(t.toString())),Ut(t,e),t}function Ft(t,e){var n=new Error(t);return Ut(n,e),n}function Ut(t,e){t[Ni]=e,t[ki]=e.logError.bind(e)}function Bt(t){return!!v(t)}function zt(t){return new Error("ViewDestroyedError: Attempt to use a destroyed view: "+t)}function Vt(t){var e=As.get(t);return e||(e=s(t)+"_"+As.size,As.set(t,e)),e}function Ht(t,e,n,r){if(r instanceof rs){r=r.wrapped;var i=t.def.nodes[e].bindingIndex+n,o=t.oldValues[i];o instanceof rs&&(o=o.wrapped),t.oldValues[i]=new rs(o)}return r}function Gt(t){return{id:Ps,styles:t.styles,encapsulation:t.encapsulation,data:t.data}}function Wt(t){if(t&&t.id===Ps){var e=null!=t.encapsulation&&t.encapsulation!==_i.None||t.styles.length||Object.keys(t.data).length;t.id=e?"c"+Ls++:Rs}return t&&t.id===Rs&&(t=null),t||null}function qt(t,e,n,r){var i=t.oldValues;return!(!(2&t.state)&&o(i[e.bindingIndex+n],r))}function Zt(t,e,n,r){return!!qt(t,e,n,r)&&(t.oldValues[e.bindingIndex+n]=r,!0)}function Xt(t,e,n,r){var i=t.oldValues[e.bindingIndex+n];if(1&t.state||!_t(i,r))throw jt(Cs.createDebugContext(t,e.nodeIndex),i,r,0!=(1&t.state))}function Kt(t){for(var e=t;e;)2&e.def.flags&&(e.state|=8),e=e.viewContainerParent||e.parent}function Yt(t,e){for(var n=t;n&&n!==e;)n.state|=64,n=n.viewContainerParent||n.parent}function Jt(t,e,n,r){return Kt(33554432&t.def.nodes[e].flags?Lt(t,e).componentView:t),Cs.handleEvent(t,e,n,r)}function Qt(t){if(t.parent){return Lt(t.parent,t.parentNodeDef.nodeIndex)}return null}function $t(t){return t.parent?t.parentNodeDef.parent:null}function te(t,e){switch(201347067&e.flags){case 1:return Lt(t,e.nodeIndex).renderElement;case 2:return Rt(t,e.nodeIndex).renderText}}function ee(t,e){return t?t+":"+e:e}function ne(t){return!!t.parent&&!!(32768&t.parentNodeDef.flags)}function re(t){return!(!t.parent||32768&t.parentNodeDef.flags)}function ie(t){return 1<<t%32}function oe(t){var e={},n=0,r={};return t&&t.forEach(function(t){var i=t[0],o=t[1];"number"==typeof i?(e[i]=o,n|=ie(i)):r[i]=o}),{matchedQueries:e,references:r,matchedQueryIds:n}}function se(t){return t.map(function(t){var e,n;return Array.isArray(t)?(n=t[0],e=t[1]):(n=0,e=t),{flags:n,token:e,tokenKey:Vt(e)}})}function ae(t,e,n){var r=n.renderParent;return r?0==(1&r.flags)||0==(33554432&r.flags)||r.element.componentRendererType&&r.element.componentRendererType.encapsulation===_i.Native?Lt(t,n.renderParent.
1nodeIndex).renderElement:void 0:e}function ue(t){var e=Ns.get(t);return e||(e=t(function(){return Os}),e.factory=t,Ns.set(t,e)),e}function ce(t){var e=[];return le(t,0,void 0,void 0,e),e}function le(t,e,n,r,i){3===e&&(n=t.renderer.parentNode(te(t,t.def.lastRenderRootNode))),he(t,e,0,t.def.nodes.length-1,n,r,i)}function he(t,e,n,r,i,o,s){for(var a=n;a<=r;a++){var u=t.def.nodes[a];11&u.flags&&fe(t,u,e,i,o,s),a+=u.childCount}}function pe(t,e,n,r,i,o){for(var s=t;s&&!ne(s);)s=s.parent;for(var a=s.parent,u=$t(s),c=u.nodeIndex+1,l=u.nodeIndex+u.childCount,h=c;h<=l;h++){var p=a.def.nodes[h];p.ngContentIndex===e&&fe(a,p,n,r,i,o),h+=p.childCount}if(!a.parent){var f=t.root.projectableNodes[e];if(f)for(var h=0;h<f.length;h++)de(t,f[h],n,r,i,o)}}function fe(t,e,n,r,i,o){if(8&e.flags)pe(t,e.ngContent.index,n,r,i,o);else{var s=te(t,e);if(3===n&&33554432&e.flags&&48&e.bindingFlags){if(16&e.bindingFlags&&de(t,s,n,r,i,o),32&e.bindingFlags){var a=Lt(t,e.nodeIndex).componentView;de(a,s,n,r,i,o)}}else de(t,s,n,r,i,o);if(16777216&e.flags)for(var u=Lt(t,e.nodeIndex).viewContainer._embeddedViews,c=0;c<u.length;c++)le(u[c],n,r,i,o);1&e.flags&&!e.element.name&&he(t,n,e.nodeIndex+1,e.nodeIndex+e.childCount,r,i,o)}}function de(t,e,n,r,i,o){var s=t.renderer;switch(n){case 1:s.appendChild(r,e);break;case 2:s.insertBefore(r,e,i);break;case 3:s.removeChild(r,e);break;case 0:o.push(e)}}function me(t){if(":"===t[0]){var e=t.match(Is);return[e[1],e[2]]}return["",t]}function ve(t){for(var e=0,n=0;n<t.length;n++)e|=t[n].flags;return e}function ye(t,e,n,r,i,o,s,a,u,c,l,h,p,f,d,m,v,y,g,b){switch(t){case 1:return e+ge(n)+r;case 2:return e+ge(n)+r+ge(i)+o;case 3:return e+ge(n)+r+ge(i)+o+ge(s)+a;case 4:return e+ge(n)+r+ge(i)+o+ge(s)+a+ge(u)+c;case 5:return e+ge(n)+r+ge(i)+o+ge(s)+a+ge(u)+c+ge(l)+h;case 6:return e+ge(n)+r+ge(i)+o+ge(s)+a+ge(u)+c+ge(l)+h+ge(p)+f;case 7:return e+ge(n)+r+ge(i)+o+ge(s)+a+ge(u)+c+ge(l)+h+ge(p)+f+ge(d)+m;case 8:return e+ge(n)+r+ge(i)+o+ge(s)+a+ge(u)+c+ge(l)+h+ge(p)+f+ge(d)+m+ge(v)+y;case 9:return e+ge(n)+r+ge(i)+o+ge(s)+a+ge(u)+c+ge(l)+h+ge(p)+f+ge(d)+m+ge(v)+y+ge(g)+b;default:throw new Error("Does not support more than 9 expressions")}}function ge(t){return null!=t?t.toString():""}function be(t,e,n,r,i,o){t|=1;var s=oe(e),a=s.matchedQueries,u=s.references;return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,flags:t,checkIndex:-1,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:a,matchedQueryIds:s.matchedQueryIds,references:u,ngContentIndex:n,childCount:r,bindings:[],bindingFlags:0,outputs:[],element:{ns:null,name:null,attrs:null,template:o?ue(o):null,componentProvider:null,componentView:null,componentRendererType:null,publicProviders:null,allProviders:null,handleEvent:i||Os},provider:null,text:null,query:null,ngContent:null}}function _e(t,e,n,r,i,o,s,a,u,c,l,h){void 0===s&&(s=[]),c||(c=Os);var p=oe(n),f=p.matchedQueries,d=p.references,m=p.matchedQueryIds,v=null,y=null;o&&(I=me(o),v=I[0],y=I[1]),a=a||[];for(var g=new Array(a.length),b=0;b<a.length;b++){var _=a[b],w=_[0],x=_[1],E=_[2],S=me(x),T=S[0],M=S[1],C=void 0,O=void 0;switch(15&w){case 4:O=E;break;case 1:case 8:C=E}g[b]={flags:w,ns:T,name:M,nonMinifiedName:M,securityContext:C,suffix:O}}u=u||[];for(var A=new Array(u.length),b=0;b<u.length;b++){var P=u[b],R=P[0],L=P[1];A[b]={type:0,target:R,eventName:L,propName:null}}s=s||[];var N=s.map(function(t){var e=t[0],n=t[1],r=me(e);return[r[0],r[1],n]});return h=Wt(h),l&&(e|=33554432),e|=1,{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:f,matchedQueryIds:m,references:d,ngContentIndex:r,childCount:i,bindings:g,bindingFlags:ve(g),outputs:A,element:{ns:v,name:y,attrs:N,template:null,componentProvider:null,componentView:l||null,componentRendererType:h,publicProviders:null,allProviders:null,handleEvent:c||Os},provider:null,text:null,query:null,ngContent:null};var I}function we(t,e,n){var r,i=n.element,o=t.root.selectorOrNode,s=t.renderer;if(t.parent||!o){r=i.name?s.createElement(i.name,i.ns):s.createComment("");var a=ae(t,e,n);a&&s.appendChild(a,r)}else r=s.selectRootElement(o);if(i.attrs)for(var u=0;u<i.attrs.length;u++){var c=i.attrs[u],l=c[0],h=c[1],p=c[2];s.setAttribute(r,h,p,l)}return r}function xe(t,e,n,r){for(var i=0;i<n.outputs.length;i++){var o=n.outputs[i],s=Ee(t,n.nodeIndex,ee(o.target,o.eventName)),a=o.target,u=t;"component"===o.target&&(a=null,u=e);var c=u.renderer.listen(a||r,o.eventName,s);t.disposables[n.outputIndex+i]=c}}function Ee(t,e,n){return function(r){try{return Jt(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function Se(t,e,n,r,i,o,s,a,u,c,l,h){var p=e.bindings.length,f=!1;return p>0&&Me(t,e,0,n)&&(f=!0),p>1&&Me(t,e,1,r)&&(f=!0),p>2&&Me(t,e,2,i)&&(f=!0),p>3&&Me(t,e,3,o)&&(f=!0),p>4&&Me(t,e,4,s)&&(f=!0),p>5&&Me(t,e,5,a)&&(f=!0),p>6&&Me(t,e,6,u)&&(f=!0),p>7&&Me(t,e,7,c)&&(f=!0),p>8&&Me(t,e,8,l)&&(f=!0),p>9&&Me(t,e,9,h)&&(f=!0),f}function Te(t,e,n){for(var r=!1,i=0;i<n.length;i++)Me(t,e,i,n[i])&&(r=!0);return r}function Me(t,e,n,r){if(!Zt(t,e,n,r))return!1;var i=e.bindings[n],o=Lt(t,e.nodeIndex),s=o.renderElement,a=i.name;switch(15&i.flags){case 1:Ce(t,i,s,i.ns,a,r);break;case 2:Oe(t,s,a,r);break;case 4:Ae(t,i,s,a,r);break;case 8:Pe(33554432&e.flags&&32&i.flags?o.componentView:t,i,s,a,r)}return!0}function Ce(t,e,n,r,i,o){var s=e.securityContext,a=s?t.root.sanitizer.sanitize(s,o):o;a=null!=a?a.toString():null;var u=t.renderer;null!=o?u.setAttribute(n,i,a,r):u.removeAttribute(n,i,r)}function Oe(t,e,n,r){var i=t.renderer;r?i.addClass(e,n):i.removeClass(e,n)}function Ae(t,e,n,r,i){var o=t.root.sanitizer.sanitize(Ts.STYLE,i);if(null!=o){o=o.toString();var s=e.suffix;null!=s&&(o+=s)}else o=null;var a=t.renderer;null!=o?a.setStyle(n,r,o):a.removeStyle(n,r)}function Pe(t,e,n,r,i){var o=e.securityContext,s=o?t.root.sanitizer.sanitize(o,i):i;t.renderer.setProperty(n,r,s)}function Re(t,e,n,r){return{index:-1,deps:se(r),flags:t,token:e,value:n}}function Le(t){for(var e={},n=0;n<t.length;n++){var r=t[n];r.index=n,e[Vt(r.token)]=r}return{factory:null,providersByKey:e,providers:t}}function Ne(t){for(var e=t._def,n=t._providers=new Array(e.providers.length),r=0;r<e.providers.length;r++){var i=e.providers[r];4096&i.flags||(n[r]=ke(t,i))}}function Ie(t,e,n){if(void 0===n&&(n=Li.THROW_IF_NOT_FOUND),8&e.flags)return e.token;if(2&e.flags&&(n=null),1&e.flags)return t._parent.get(e.token,n);var r=e.tokenKey;switch(r){case js:case Ds:return t}var i=t._def.providersByKey[r];if(i){var o=t._providers[i.index];return void 0===o&&(o=t._providers[i.index]=ke(t,i)),o===ks?void 0:o}return t._parent.get(e.token,n)}function ke(t,e){var n;switch(201347067&e.flags){case 512:n=je(t,e.value,e.deps);break;case 1024:n=De(t,e.value,e.deps);break;case 2048:n=Ie(t,e.deps[0]);break;case 256:n=e.value}return void 0===n?ks:n}function je(t,e,n){var r=n.length;switch(r){case 0:return new e;case 1:return new e(Ie(t,n[0]));case 2:return new e(Ie(t,n[0]),Ie(t,n[1]));case 3:return new e(Ie(t,n[0]),Ie(t,n[1]),Ie(t,n[2]));default:for(var i=new Array(r),o=0;o<r;o++)i[o]=Ie(t,n[o]);return new(e.bind.apply(e,[void 0].concat(i)))}}function De(t,e,n){var r=n.length;switch(r){case 0:return e();case 1:return e(Ie(t,n[0]));case 2:return e(Ie(t,n[0]),Ie(t,n[1]));case 3:return e(Ie(t,n[0]),Ie(t,n[1]),Ie(t,n[2]));default:for(var i=Array(r),o=0;o<r;o++)i[o]=Ie(t,n[o]);return e.apply(void 0,i)}}function Fe(t,e){for(var n=t._def,r=0;r<n.providers.length;r++){if(131072&n.providers[r].flags){var i=t._providers[r];i&&i!==ks&&i.ngOnDestroy()}}}function Ue(t,e,n,r){var i=e.viewContainer._embeddedViews;null!==n&&void 0!==n||(n=i.length),r.viewContainerParent=t,Ze(i,n,r),Be(e,r),Cs.dirtyParentQueries(r),We(e,n>0?i[n-1]:null,r)}function Be(t,e){var n=Qt(e);
1if(n&&n!==t&&!(16&e.state)){e.state|=16;var r=n.template._projectedViews;r||(r=n.template._projectedViews=[]),r.push(e),ze(e.parent.def,e.parentNodeDef)}}function ze(t,e){if(!(4&e.flags)){t.nodeFlags|=4,e.flags|=4;for(var n=e.parent;n;)n.childFlags|=4,n=n.parent}}function Ve(t,e){var n=t.viewContainer._embeddedViews;if((null==e||e>=n.length)&&(e=n.length-1),e<0)return null;var r=n[e];return r.viewContainerParent=null,Xe(n,e),Cs.dirtyParentQueries(r),qe(r),r}function He(t){if(16&t.state){var e=Qt(t);if(e){var n=e.template._projectedViews;n&&(Xe(n,n.indexOf(t)),Cs.dirtyParentQueries(t))}}}function Ge(t,e,n){var r=t.viewContainer._embeddedViews,i=r[e];return Xe(r,e),null==n&&(n=r.length),Ze(r,n,i),Cs.dirtyParentQueries(i),qe(i),We(t,n>0?r[n-1]:null,i),i}function We(t,e,n){var r=e?te(e,e.def.lastRenderRootNode):t.renderElement;le(n,2,n.renderer.parentNode(r),n.renderer.nextSibling(r),void 0)}function qe(t){le(t,3,null,null,void 0)}function Ze(t,e,n){e>=t.length?t.push(n):t.splice(e,0,n)}function Xe(t,e){e>=t.length-1?t.pop():t.splice(e,1)}function Ke(t,e,n,r,i,o){return new Us(t,e,n,r,i,o)}function Ye(t,e,n){return new zs(t,e,n)}function Je(t){return new Vs(t)}function Qe(t,e){return new Hs(t,e)}function $e(t,e){return new Gs(t,e)}function tn(t,e){var n=t.def.nodes[e];if(1&n.flags){var r=Lt(t,n.nodeIndex);return n.element.template?r.template:r.renderElement}if(2&n.flags)return Rt(t,n.nodeIndex).renderText;if(20240&n.flags)return Nt(t,n.nodeIndex).instance;throw new Error("Illegal state: read nodeValue for node index "+e)}function en(t){return new Ws(t.renderer)}function nn(t,e,n,r){return new qs(t,e,n,r)}function rn(t,e,n,r,i,o,s,a){var u=[];if(s)for(var c in s){var l=s[c],h=l[0],p=l[1];u[h]={flags:8,name:c,nonMinifiedName:p,ns:null,securityContext:null,suffix:null}}var f=[];if(a)for(var d in a)f.push({type:1,propName:d,target:null,eventName:a[d]});return e|=16384,an(t,e,n,r,i,i,o,u,f)}function on(t,e,n){return t|=16,an(-1,t,null,0,e,e,n)}function sn(t,e,n,r,i){return an(-1,t,e,0,n,r,i)}function an(t,e,n,r,i,o,s,a,u){var c=oe(n),l=c.matchedQueries,h=c.references,p=c.matchedQueryIds;u||(u=[]),a||(a=[]);var f=se(s);return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:e,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:l,matchedQueryIds:p,references:h,ngContentIndex:-1,childCount:r,bindings:a,bindingFlags:ve(a),outputs:u,element:null,provider:{token:i,value:o,deps:f},text:null,query:null,ngContent:null}}function un(t,e){return dn(t,e)}function cn(t,e){for(var n=t;n.parent&&!ne(n);)n=n.parent;return mn(n.parent,$t(n),!0,e.provider.value,e.provider.deps)}function ln(t,e){var n=(32768&e.flags)>0,r=mn(t,e.parent,n,e.provider.value,e.provider.deps);if(e.outputs.length)for(var i=0;i<e.outputs.length;i++){var o=e.outputs[i],s=r[o.propName].subscribe(hn(t,e.parent.nodeIndex,o.eventName));t.disposables[e.outputIndex+i]=s.unsubscribe.bind(s)}return r}function hn(t,e,n){return function(r){try{return Jt(t,e,n,r)}catch(e){t.root.errorHandler.handleError(e)}}}function pn(t,e,n,r,i,o,s,a,u,c,l,h){var p=Nt(t,e.nodeIndex),f=p.instance,d=!1,m=void 0,v=e.bindings.length;return v>0&&qt(t,e,0,n)&&(d=!0,m=bn(t,p,e,0,n,m)),v>1&&qt(t,e,1,r)&&(d=!0,m=bn(t,p,e,1,r,m)),v>2&&qt(t,e,2,i)&&(d=!0,m=bn(t,p,e,2,i,m)),v>3&&qt(t,e,3,o)&&(d=!0,m=bn(t,p,e,3,o,m)),v>4&&qt(t,e,4,s)&&(d=!0,m=bn(t,p,e,4,s,m)),v>5&&qt(t,e,5,a)&&(d=!0,m=bn(t,p,e,5,a,m)),v>6&&qt(t,e,6,u)&&(d=!0,m=bn(t,p,e,6,u,m)),v>7&&qt(t,e,7,c)&&(d=!0,m=bn(t,p,e,7,c,m)),v>8&&qt(t,e,8,l)&&(d=!0,m=bn(t,p,e,8,l,m)),v>9&&qt(t,e,9,h)&&(d=!0,m=bn(t,p,e,9,h,m)),m&&f.ngOnChanges(m),2&t.state&&65536&e.flags&&f.ngOnInit(),262144&e.flags&&f.ngDoCheck(),d}function fn(t,e,n){for(var r=Nt(t,e.nodeIndex),i=r.instance,o=!1,s=void 0,a=0;a<n.length;a++)qt(t,e,a,n[a])&&(o=!0,s=bn(t,r,e,a,n[a],s));return s&&i.ngOnChanges(s),2&t.state&&65536&e.flags&&i.ngOnInit(),262144&e.flags&&i.ngDoCheck(),o}function dn(t,e){var n=(8192&e.flags)>0,r=e.provider;switch(201347067&e.flags){case 512:return mn(t,e.parent,n,r.value,r.deps);case 1024:return vn(t,e.parent,n,r.value,r.deps);case 2048:return yn(t,e.parent,n,r.deps[0]);case 256:return r.value}}function mn(t,e,n,r,i){var o=i.length;switch(o){case 0:return new r;case 1:return new r(yn(t,e,n,i[0]));case 2:return new r(yn(t,e,n,i[0]),yn(t,e,n,i[1]));case 3:return new r(yn(t,e,n,i[0]),yn(t,e,n,i[1]),yn(t,e,n,i[2]));default:for(var s=new Array(o),a=0;a<o;a++)s[a]=yn(t,e,n,i[a]);return new(r.bind.apply(r,[void 0].concat(s)))}}function vn(t,e,n,r,i){var o=i.length;switch(o){case 0:return r();case 1:return r(yn(t,e,n,i[0]));case 2:return r(yn(t,e,n,i[0]),yn(t,e,n,i[1]));case 3:return r(yn(t,e,n,i[0]),yn(t,e,n,i[1]),yn(t,e,n,i[2]));default:for(var s=Array(o),a=0;a<o;a++)s[a]=yn(t,e,n,i[a]);return r.apply(void 0,s)}}function yn(t,e,n,r,i){if(void 0===i&&(i=Li.THROW_IF_NOT_FOUND),8&r.flags)return r.token;var o=t;2&r.flags&&(i=null);var s=r.tokenKey;for(s===Qs&&(n=!(!e||!e.element.componentView)),e&&1&r.flags&&(n=!1,e=e.parent);t;){if(e)switch(s){case Zs:var a=gn(t,e,n);return en(a);case Xs:var a=gn(t,e,n);return a.renderer;case Ks:return new Ho(Lt(t,e.nodeIndex).renderElement);case Ys:return Lt(t,e.nodeIndex).viewContainer;case Js:if(e.element.template)return Lt(t,e.nodeIndex).template;break;case Qs:return Je(gn(t,e,n));case $s:return $e(t,e);default:var u=(n?e.element.allProviders:e.element.publicProviders)[s];if(u){var c=Nt(t,u.nodeIndex);return c||(c={instance:dn(t,u)},t.nodes[u.nodeIndex]=c),c.instance}}n=ne(t),e=$t(t),t=t.parent}var l=o.root.injector.get(r.token,ta);return l!==ta||i===ta?l:o.root.ngModule.injector.get(r.token,i)}function gn(t,e,n){var r;if(n)r=Lt(t,e.nodeIndex).componentView;else for(r=t;r.parent&&!ne(r);)r=r.parent;return r}function bn(t,e,n,r,i,o){if(32768&n.flags){var s=Lt(t,n.parent.nodeIndex).componentView;2&s.def.flags&&(s.state|=8)}var a=n.bindings[r],u=a.name;if(e.instance[u]=i,524288&n.flags){o=o||{};var c=t.oldValues[n.bindingIndex+r];c instanceof rs&&(c=c.wrapped);o[n.bindings[r].nonMinifiedName]=new is(c,i,0!=(2&t.state))}return t.oldValues[n.bindingIndex+r]=i,o}function _n(t,e){if(t.def.nodeFlags&e)for(var n=t.def.nodes,r=0;r<n.length;r++){var i=n[r],o=i.parent;for(!o&&i.flags&e&&xn(t,r,i.flags&e),0==(i.childFlags&e)&&(r+=i.childCount);o&&1&o.flags&&r===o.nodeIndex+o.childCount;)o.directChildFlags&e&&wn(t,o,e),o=o.parent}}function wn(t,e,n){for(var r=e.nodeIndex+1;r<=e.nodeIndex+e.childCount;r++){var i=t.def.nodes[r];i.flags&n&&xn(t,r,i.flags&n),r+=i.childCount}}function xn(t,e,n){var r=Nt(t,e);if(r){var i=r.instance;i&&(Cs.setCurrentNode(t,e),1048576&n&&i.ngAfterContentInit(),2097152&n&&i.ngAfterContentChecked(),4194304&n&&i.ngAfterViewInit(),8388608&n&&i.ngAfterViewChecked(),131072&n&&i.ngOnDestroy())}}function En(t,e,n){var r=[];for(var i in n){var o=n[i];r.push({propName:i,bindingType:o})}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,
vendor: 9,515 bytes, line 1
1checkIndex:-1,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,ngContentIndex:-1,matchedQueries:{},matchedQueryIds:0,references:{},childCount:0,bindings:[],bindingFlags:0,outputs:[],element:null,provider:null,text:null,query:{id:e,filterId:ie(e),bindings:r},ngContent:null}}function Sn(){return new Wo}function Tn(t){for(var e=t.def.nodeMatchedQueries;t.parent&&re(t);){var n=t.parentNodeDef;t=t.parent;for(var r=n.nodeIndex+n.childCount,i=0;i<=r;i++){var o=t.def.nodes[i];67108864&o.flags&&536870912&o.flags&&(o.query.filterId&e)===o.query.filterId&&kt(t,i).setDirty(),!(1&o.flags&&i+o.childCount<n.nodeIndex)&&67108864&o.childFlags&&536870912&o.childFlags||(i+=o.childCount)}}if(134217728&t.def.nodeFlags)for(var i=0;i<t.def.nodes.length;i++){var o=t.def.nodes[i];134217728&o.flags&&536870912&o.flags&&kt(t,i).setDirty(),i+=o.childCount}}function Mn(t,e){var n=kt(t,e.nodeIndex);if(n.dirty){var r,i=void 0;if(67108864&e.flags){var o=e.parent.parent;i=Cn(t,o.nodeIndex,o.nodeIndex+o.childCount,e.query,[]),r=Nt(t,e.parent.nodeIndex).instance}else 134217728&e.flags&&(i=Cn(t,0,t.def.nodes.length-1,e.query,[]),r=t.component);n.reset(i);for(var s=e.query.bindings,a=!1,u=0;u<s.length;u++){var c=s[u],l=void 0;switch(c.bindingType){case 0:l=n.first;break;case 1:l=n,a=!0}r[c.propName]=l}a&&n.notifyOnChanges()}}function Cn(t,e,n,r,i){for(var o=e;o<=n;o++){var s=t.def.nodes[o],a=s.matchedQueries[r.id];if(null!=a&&i.push(On(t,s,a)),1&s.flags&&s.element.template&&(s.element.template.nodeMatchedQueries&r.filterId)===r.filterId){var u=Lt(t,o);if((s.childMatchedQueries&r.filterId)===r.filterId&&(Cn(t,o+1,o+s.childCount,r,i),o+=s.childCount),16777216&s.flags)for(var c=u.viewContainer._embeddedViews,l=0;l<c.length;l++){var h=c[l],p=Qt(h);p&&p===u&&Cn(h,0,h.def.nodes.length-1,r,i)}var f=u.template._projectedViews;if(f)for(var l=0;l<f.length;l++){var d=f[l];Cn(d,0,d.def.nodes.length-1,r,i)}}(s.childMatchedQueries&r.filterId)!==r.filterId&&(o+=s.childCount)}return i}function On(t,e,n){if(null!=n)switch(n){case 1:return Lt(t,e.nodeIndex).renderElement;case 0:return new Ho(Lt(t,e.nodeIndex).renderElement);case 2:return Lt(t,e.nodeIndex).template;case 3:return Lt(t,e.nodeIndex).viewContainer;case 4:return Nt(t,e.nodeIndex).instance}}function An(t,e,n){var r=ae(t,e,n);if(r){pe(t,n.ngContent.index,1,r,null,void 0)}}function Pn(t,e){for(var n=Object.keys(e),r=n.length,i=new Array(r),o=0;o<r;o++){var s=n[o];i[e[s]]=s}return Rn(64,t,i)}function Rn(t,e,n){for(var r=new Array(n.length),i=0;i<n.length;i++){var o=n[i];r[i]={flags:8,name:o,ns:null,nonMinifiedName:o,securityContext:null,suffix:null}}return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:e,flags:t,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:-1,childCount:0,bindings:r,bindingFlags:ve(r),outputs:[],element:null,provider:null,text:null,query:null,ngContent:null}}function Ln(t,e){return{value:void 0}}function Nn(t,e,n,r,i,o,s,a,u,c,l,h){var p=e.bindings,f=!1,d=p.length;if(d>0&&Zt(t,e,0,n)&&(f=!0),d>1&&Zt(t,e,1,r)&&(f=!0),d>2&&Zt(t,e,2,i)&&(f=!0),d>3&&Zt(t,e,3,o)&&(f=!0),d>4&&Zt(t,e,4,s)&&(f=!0),d>5&&Zt(t,e,5,a)&&(f=!0),d>6&&Zt(t,e,6,u)&&(f=!0),d>7&&Zt(t,e,7,c)&&(f=!0),d>8&&Zt(t,e,8,l)&&(f=!0),d>9&&Zt(t,e,9,h)&&(f=!0),f){var m=It(t,e.nodeIndex),v=void 0;switch(201347067&e.flags){case 32:v=new Array(p.length),d>0&&(v[0]=n),d>1&&(v[1]=r),d>2&&(v[2]=i),d>3&&(v[3]=o),d>4&&(v[4]=s),d>5&&(v[5]=a),d>6&&(v[6]=u),d>7&&(v[7]=c),d>8&&(v[8]=l),d>9&&(v[9]=h);break;case 64:v={},d>0&&(v[p[0].name]=n),d>1&&(v[p[1].name]=r),d>2&&(v[p[2].name]=i),d>3&&(v[p[3].name]=o),d>4&&(v[p[4].name]=s),d>5&&(v[p[5].name]=a),d>6&&(v[p[6].name]=u),d>7&&(v[p[7].name]=c),d>8&&(v[p[8].name]=l),d>9&&(v[p[9].name]=h);break;case 128:var y=n;switch(d){case 1:v=y.transform(n);break;case 2:v=y.transform(r);break;case 3:v=y.transform(r,i);break;case 4:v=y.transform(r,i,o);break;case 5:v=y.transform(r,i,o,s);break;case 6:v=y.transform(r,i,o,s,a);break;case 7:v=y.transform(r,i,o,s,a,u);break;case 8:v=y.transform(r,i,o,s,a,u,c);break;case 9:v=y.transform(r,i,o,s,a,u,c,l);break;case 10:v=y.transform(r,i,o,s,a,u,c,l,h)}}m.value=v}return f}function In(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Zt(t,e,o,n[o])&&(i=!0);if(i){var s=It(t,e.nodeIndex),a=void 0;switch(201347067&e.flags){case 32:a=n;break;case 64:a={};for(var o=0;o<n.length;o++)a[r[o].name]=n[o];break;case 128:var u=n[0],c=n.slice(1);a=u.transform.apply(u,c)}s.value=a}return i}function kn(t,e,n){for(var r=new Array(n.length-1),i=1;i<n.length;i++)r[i-1]={flags:8,name:null,ns:null,nonMinifiedName:null,securityContext:null,suffix:n[i]};return{nodeIndex:-1,parent:null,renderParent:null,bindingIndex:-1,outputIndex:-1,checkIndex:t,flags:2,childFlags:0,directChildFlags:0,childMatchedQueries:0,matchedQueries:{},matchedQueryIds:0,references:{},ngContentIndex:e,childCount:0,bindings:r,bindingFlags:8,outputs:[],element:null,provider:null,text:{prefix:n[0]},query:null,ngContent:null}}function jn(t,e,n){var r,i=t.renderer;r=i.createText(n.text.prefix);var o=ae(t,e,n);return o&&i.appendChild(o,r),{renderText:r}}function Dn(t,e,n,r,i,o,s,a,u,c,l,h){var p=!1,f=e.bindings,d=f.length;if(d>0&&Zt(t,e,0,n)&&(p=!0),d>1&&Zt(t,e,1,r)&&(p=!0),d>2&&Zt(t,e,2,i)&&(p=!0),d>3&&Zt(t,e,3,o)&&(p=!0),d>4&&Zt(t,e,4,s)&&(p=!0),d>5&&Zt(t,e,5,a)&&(p=!0),d>6&&Zt(t,e,6,u)&&(p=!0),d>7&&Zt(t,e,7,c)&&(p=!0),d>8&&Zt(t,e,8,l)&&(p=!0),d>9&&Zt(t,e,9,h)&&(p=!0),p){var m=e.text.prefix;d>0&&(m+=Un(n,f[0])),d>1&&(m+=Un(r,f[1])),d>2&&(m+=Un(i,f[2])),d>3&&(m+=Un(o,f[3])),d>4&&(m+=Un(s,f[4])),d>5&&(m+=Un(a,f[5])),d>6&&(m+=Un(u,f[6])),d>7&&(m+=Un(c,f[7])),d>8&&(m+=Un(l,f[8])),d>9&&(m+=Un(h,f[9]));var v=Rt(t,e.nodeIndex).renderText;t.renderer.setValue(v,m)}return p}function Fn(t,e,n){for(var r=e.bindings,i=!1,o=0;o<n.length;o++)Zt(t,e,o,n[o])&&(i=!0);if(i){for(var s="",o=0;o<n.length;o++)s+=Un(n[o],r[o]);s=e.text.prefix+s;var a=Rt(t,e.nodeIndex).renderText;t.renderer.setValue(a,s)}return i}function Un(t,e){return(null!=t?t.toString():"")+e.suffix}function Bn(t,e,n,r){for(var i=0,o=0,s=0,a=0,u=0,c=null,l=null,h=!1,p=!1,f=null,d=0;d<e.length;d++){var m=e[d];if(m.nodeIndex=d,m.parent=c,m.bindingIndex=i,m.outputIndex=o,m.renderParent=l,s|=m.flags,u|=m.matchedQueryIds,m.element){var v=m.element;v.publicProviders=c?c.element.publicProviders:Object.create(null),v.allProviders=v.publicProviders,h=!1,p=!1,m.element.template&&(u|=m.element.template.nodeMatchedQueries)}if(Vn(c,m,e.length),i+=m.bindings.length,o+=m.outputs.length,!l&&3&m.flags&&(f=m),20224&m.flags){h||(h=!0,c.element.publicProviders=Object.create(c.element.publicProviders),c.element.allProviders=c.element.publicProviders);var y=0!=(8192&m.flags),g=0!=(32768&m.flags);!y||g?c.element.publicProviders[Vt(m.provider.token)]=m:(p||(p=!0,c.element.allProviders=Object.create(c.element.publicProviders)),c.element.allProviders[Vt(m.provider.token)]=m),g&&(c.element.componentProvider=m)}if(c?(c.childFlags|=m.flags,c.directChildFlags|=m.flags,c.childMatchedQueries|=m.matchedQueryIds,m.element&&m.element.template&&(c.childMatchedQueries|=m.element.template.nodeMatchedQueries)):a|=m.flags,m.childCount>0)c=m,zn(m)||(l=m);else for(;c&&d===c.nodeIndex+c.childCount;){var b=c.parent;b&&(b.childFlags|=c.childFlags,b.childMatchedQueries|=c.childMatchedQueries),c=b,l=c&&zn(c)?c.renderParent:c}}var _=function(t,n,r,i){return e[n].element.handleEvent(t,r,i)};return{factory:null,nodeFlags:s,rootNodeFlags:a,nodeMatchedQueries:u,flags:t,nodes:e,updateDirectives:n||Os,updateRenderer:r||Os,handleEvent:_,bindingCount:i,outputCount:o,lastRenderRootNode:f}}function zn(t){return 0!=(1&t.flags)&&null===t.element.name}function Vn(t,e,n){var r=e.element&&e.element.template;if(r){if(!r.lastRenderRootNode)throw new Error("Illegal State: Embedded templates without nodes are not allowed!");if(r.lastRenderRootNode&&16777216&r.lastRenderRootNode.flags)throw new Error("Illegal State: Last root node of a template can't have embedded views, at index "+e.nodeIndex+"!")}if(20224&e.flags){if(0==(1&(t?t.flags:0)))throw new Error("Illegal State: StaticProvider/Directive nodes need to be children of elements or anchors, at index "+e.nodeIndex+"!")}if(e.query){if(67108864&e.flags&&(!t||0==(16384&t.flags)))throw new Error("Illegal State: Content Query nodes need to be children of directives, at index "+e.nodeIndex+"!");if(134217728&e.flags&&t)throw new Error("Illegal State: View Query nodes have to be top level nodes, at index "+e.nodeIndex+"!")}if(e.childCount){var i=t?t.nodeIndex+t.childCount:n-1;if(e.nodeIndex<=i&&e.nodeIndex+e.childCount>i)throw new Error("Illegal State: childCount of node leads outside of parent, at index "+e.nodeIndex+"!")}}function Hn(t,e,n,r){var i=qn(t.root,t.renderer,t,e,n);return Zn(i,t.component,r),Xn(i),i}function Gn(t,e,n){var r=qn(t,t.renderer,null,null,e);return Zn(r,n,n),Xn(r),r}function Wn(t,e,n,r){var i,o=e.element.componentRendererType;return i=o?t.root.rendererFactory.createRenderer(r,o):t.root.renderer,qn(t.root,i,t,e.element.componentProvider,n)}function qn(t,e,n,r,i){var o=new Array(i.nodes.length),s=i.outputCount?new Array(i.outputCount):null;return{def:i,parent:n,viewContainerParent:null,parentNodeDef:r,context:null,component:null,nodes:o,state:13,root:t,renderer:e,oldValues:new Array(i.bindingCount),disposables:s}}function Zn(t,e,n){t.component=e,t.context=n}function Xn(t){var e;if(ne(t)){var n=t.parentNodeDef;e=Lt(t.parent,n.parent.nodeIndex).renderElement}for(var r=t.def,i=t.nodes,o=0;
1o<r.nodes.length;o++){var s=r.nodes[o];Cs.setCurrentNode(t,o);var a=void 0;switch(201347067&s.flags){case 1:var u=we(t,e,s),c=void 0;if(33554432&s.flags){var l=ue(s.element.componentView);c=Cs.createComponentView(t,s,l,u)}xe(t,c,s,u),a={renderElement:u,componentView:c,viewContainer:null,template:s.element.template?Qe(t,s):void 0},16777216&s.flags&&(a.viewContainer=Ye(t,s,a));break;case 2:a=jn(t,e,s);break;case 512:case 1024:case 2048:case 256:if(!((a=i[o])||4096&s.flags)){var h=un(t,s);a={instance:h}}break;case 16:var h=cn(t,s);a={instance:h};break;case 16384:if(!(a=i[o])){var h=ln(t,s);a={instance:h}}if(32768&s.flags){Zn(Lt(t,s.parent.nodeIndex).componentView,a.instance,a.instance)}break;case 32:case 64:case 128:a=Ln(t,s);break;case 67108864:case 134217728:a=Sn();break;case 8:An(t,e,s),a=void 0}i[o]=a}ar(t,ea.CreateViewNodes),hr(t,201326592,268435456,0)}function Kn(t){Qn(t),Cs.updateDirectives(t,1),ur(t,ea.CheckNoChanges),Cs.updateRenderer(t,1),ar(t,ea.CheckNoChanges),t.state&=-97}function Yn(t){1&t.state?(t.state&=-2,t.state|=2):t.state&=-3,Qn(t),Cs.updateDirectives(t,0),ur(t,ea.CheckAndUpdate),hr(t,67108864,536870912,0),_n(t,2097152|(2&t.state?1048576:0)),Cs.updateRenderer(t,0),ar(t,ea.CheckAndUpdate),hr(t,134217728,536870912,0),_n(t,8388608|(2&t.state?4194304:0)),2&t.def.flags&&(t.state&=-9),t.state&=-97}function Jn(t,e,n,r,i,o,s,a,u,c,l,h,p){return 0===n?$n(t,e,r,i,o,s,a,u,c,l,h,p):tr(t,e,r)}function Qn(t){var e=t.def;if(4&e.nodeFlags)for(var n=0;n<e.nodes.length;n++){var r=e.nodes[n];if(4&r.flags){var i=Lt(t,n).template._projectedViews;if(i)for(var o=0;o<i.length;o++){var s=i[o];s.state|=32,Yt(s,t)}}else 0==(4&r.childFlags)&&(n+=r.childCount)}}function $n(t,e,n,r,i,o,s,a,u,c,l,h){switch(201347067&e.flags){case 1:return Se(t,e,n,r,i,o,s,a,u,c,l,h);case 2:return Dn(t,e,n,r,i,o,s,a,u,c,l,h);case 16384:return pn(t,e,n,r,i,o,s,a,u,c,l,h);case 32:case 64:case 128:return Nn(t,e,n,r,i,o,s,a,u,c,l,h);default:throw"unreachable"}}function tr(t,e,n){switch(201347067&e.flags){case 1:return Te(t,e,n);case 2:return Fn(t,e,n);case 16384:return fn(t,e,n);case 32:case 64:case 128:return In(t,e,n);default:throw"unreachable"}}function er(t,e,n,r,i,o,s,a,u,c,l,h,p){return 0===n?nr(t,e,r,i,o,s,a,u,c,l,h,p):rr(t,e,r),!1}function nr(t,e,n,r,i,o,s,a,u,c,l,h){var p=e.bindings.length;p>0&&Xt(t,e,0,n),p>1&&Xt(t,e,1,r),p>2&&Xt(t,e,2,i),p>3&&Xt(t,e,3,o),p>4&&Xt(t,e,4,s),p>5&&Xt(t,e,5,a),p>6&&Xt(t,e,6,u),p>7&&Xt(t,e,7,c),p>8&&Xt(t,e,8,l),p>9&&Xt(t,e,9,h)}function rr(t,e,n){for(var r=0;r<n.length;r++)Xt(t,e,r,n[r])}function ir(t,e){if(kt(t,e.nodeIndex).dirty)throw jt(Cs.createDebugContext(t,e.nodeIndex),"Query "+e.query.id+" not dirty","Query "+e.query.id+" dirty",0!=(1&t.state))}function or(t){if(!(128&t.state)){if(ur(t,ea.Destroy),ar(t,ea.Destroy),_n(t,131072),t.disposables)for(var e=0;e<t.disposables.length;e++)t.disposables[e]();He(t),t.renderer.destroyNode&&sr(t),ne(t)&&t.renderer.destroy(),t.state|=128}}function sr(t){for(var e=t.def.nodes.length,n=0;n<e;n++){var r=t.def.nodes[n];1&r.flags?t.renderer.destroyNode(Lt(t,n).renderElement):2&r.flags?t.renderer.destroyNode(Rt(t,n).renderText):(67108864&r.flags||134217728&r.flags)&&kt(t,n).destroy()}}function ar(t,e){var n=t.def;if(33554432&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];33554432&i.flags?cr(Lt(t,r).componentView,e):0==(33554432&i.childFlags)&&(r+=i.childCount)}}function ur(t,e){var n=t.def;if(16777216&n.nodeFlags)for(var r=0;r<n.nodes.length;r++){var i=n.nodes[r];if(16777216&i.flags)for(var o=Lt(t,r).viewContainer._embeddedViews,s=0;s<o.length;s++)cr(o[s],e);else 0==(16777216&i.childFlags)&&(r+=i.childCount)}}function cr(t,e){var n=t.state;switch(e){case ea.CheckNoChanges:0==(128&n)&&(12==(12&n)?Kn(t):64&n&&lr(t,ea.CheckNoChangesProjectedViews));break;case ea.CheckNoChangesProjectedViews:0==(128&n)&&(32&n?Kn(t):64&n&&lr(t,e));break;case ea.CheckAndUpdate:0==(128&n)&&(12==(12&n)?Yn(t):64&n&&lr(t,ea.CheckAndUpdateProjectedViews));break;case ea.CheckAndUpdateProjectedViews:0==(128&n)&&(32&n?Yn(t):64&n&&lr(t,e));break;case ea.Destroy:or(t);break;case ea.CreateViewNodes:Xn(t)}}function lr(t,e){ur(t,e),ar(t,e)}function hr(t,e,n,r){if(t.def.nodeFlags&e&&t.def.nodeFlags&n)for(var i=t.def.nodes.length,o=0;o<i;o++){var s=t.def.nodes[o];if(s.flags&e&&s.flags&n)switch(Cs.setCurrentNode(t,s.nodeIndex),r){case 0:Mn(t,s);break;case 1:ir(t,s)}s.childFlags&e&&s.childFlags&n||(o+=s.childCount)}}function pr(){if(!na){na=!0;var t=st()?dr():fr();Cs.setCurrentNode=t.setCurrentNode,Cs.createRootView=t.createRootView,Cs.createEmbeddedView=t.createEmbeddedView,Cs.createComponentView=t.createComponentView,Cs.createNgModuleRef=t.createNgModuleRef,Cs.overrideProvider=t.overrideProvider,Cs.clearProviderOverrides=t.clearProviderOverrides,Cs.checkAndUpdateView=t.checkAndUpdateView,Cs.checkNoChangesView=t.checkNoChangesView,Cs.destroyView=t.destroyView,Cs.resolveDep=yn,Cs.createDebugContext=t.createDebugContext,Cs.handleEvent=t.handleEvent,Cs.updateDirectives=t.updateDirectives,Cs.updateRenderer=t.updateRenderer,Cs.dirtyParentQueries=Tn}}function fr(){return{setCurrentNode:function(){},createRootView:mr,createEmbeddedView:Hn,createComponentView:Wn,createNgModuleRef:nn,overrideProvider:Os,clearProviderOverrides:Os,checkAndUpdateView:Yn,checkNoChangesView:Kn,destroyView:or,createDebugContext:function(t,e){return new ca(t,e)},handleEvent:function(t,e,n,r){return t.def.handleEvent(t,e,n,r)},updateDirectives:function(t,e){return t.def.updateDirectives(0===e?Tr:Mr,t)},updateRenderer:function(t,e){return t.def.updateRenderer(0===e?Tr:Mr,t)}}}function dr(){return{setCurrentNode:Pr,createRootView:vr,createEmbeddedView:gr,createComponentView:br,createNgModuleRef:_r,overrideProvider:wr,clearProviderOverrides:xr,checkAndUpdateView:Cr,checkNoChangesView:Or,destroyView:Ar,createDebugContext:function(t,e){return new ca(t,e)},handleEvent:Rr,updateDirectives:Lr,updateRenderer:Nr}}function mr(t,e,n,r,i,o){return Gn(yr(t,i,i.injector.get(Bo),e,n),r,o)}function vr(t,e,n,r,i,o){var s=i.injector.get(Bo),a=yr(t,i,new la(s),e,n),u=Er(r);return Gr(ia.create,Gn,null,[a,u,o])}function yr(t,e,n,r,i){var o=e.injector.get(Ms),s=e.injector.get(ji);return{ngModule:e,injector:t,projectableNodes:r,selectorOrNode:i,sanitizer:o,rendererFactory:n,renderer:n.createRenderer(null,null),errorHandler:s}
1}function gr(t,e,n,r){var i=Er(n);return Gr(ia.create,Hn,null,[t,e,i,r])}function br(t,e,n,r){var i=Er(n);return Gr(ia.create,Wn,null,[t,e,i,r])}function _r(t,e,n,r){return nn(t,e,n,Sr(r))}function wr(t){ra.set(t.token,t)}function xr(){ra.clear()}function Er(t){if(0===ra.size)return t;var e=function(t){for(var e=[],n=null,r=0;r<t.nodes.length;r++){var i=t.nodes[r];1&i.flags&&(n=i),n&&3840&i.flags&&ra.has(i.provider.token)&&(e.push(n.nodeIndex),n=null)}return e}(t);if(0===e.length)return t;t=t.factory(function(){return Os});for(var n=0;n<e.length;n++)!function(t,e){for(var n=e+1;n<t.nodes.length;n++){var r=t.nodes[n];if(1&r.flags)return;if(3840&r.flags){var i=r.provider,o=ra.get(i.token);o&&(r.flags=-3841&r.flags|o.flags,i.deps=se(o.deps),i.value=o.value)}}}(t,e[n]);return t}function Sr(t){var e=function(t){var e=!1,n=!1;return 0===ra.size?{hasOverrides:e,hasDeprecatedOverrides:n}:(t.providers.forEach(function(t){var r=ra.get(t.token);3840&t.flags&&r&&(e=!0,n=n||r.deprecatedBehavior)}),{hasOverrides:e,hasDeprecatedOverrides:n})}(t),n=e.hasOverrides,r=e.hasDeprecatedOverrides;return n?(t=t.factory(function(){return Os}),function(t){for(var e=0;e<t.providers.length;e++){var n=t.providers[e];r&&(n.flags|=4096);var i=ra.get(n.token);i&&(n.flags=-3841&n.flags|i.flags,n.deps=se(i.deps),n.value=i.value)}}(t),t):t}function Tr(t,e,n,r,i,o,s,a,u,c,l,h,p){var f=t.def.nodes[e];return Jn(t,f,n,r,i,o,s,a,u,c,l,h,p),224&f.flags?It(t,e).value:void 0}function Mr(t,e,n,r,i,o,s,a,u,c,l,h,p){var f=t.def.nodes[e];return er(t,f,n,r,i,o,s,a,u,c,l,h,p),224&f.flags?It(t,e).value:void 0}function Cr(t){return Gr(ia.detectChanges,Yn,null,[t])}function Or(t){return Gr(ia.checkNoChanges,Kn,null,[t])}function Ar(t){return Gr(ia.destroy,or,null,[t])}function Pr(t,e){sa=t,aa=e}function Rr(t,e,n,r){return Pr(t,e),Gr(ia.handleEvent,t.def.handleEvent,null,[t,e,n,r])}function Lr(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Ir(t,s,r,i):kr(t,s,r,i),16384&s.flags&&Pr(t,Ur(t,n)),224&s.flags?It(t,s.nodeIndex).value:void 0}if(128&t.state)throw zt(ia[oa]);return Pr(t,Ur(t,0)),t.def.updateDirectives(n,t)}function Nr(t,e){function n(t,n,r){for(var i=[],o=3;o<arguments.length;o++)i[o-3]=arguments[o];var s=t.def.nodes[n];return 0===e?Ir(t,s,r,i):kr(t,s,r,i),3&s.flags&&Pr(t,Br(t,n)),224&s.flags?It(t,s.nodeIndex).value:void 0}if(128&t.state)throw zt(ia[oa]);return Pr(t,Br(t,0)),t.def.updateRenderer(n,t)}function Ir(t,e,n,r){if(Jn.apply(void 0,[t,e,n].concat(r))){var i=1===n?r[0]:r;if(16384&e.flags){for(var o={},s=0;s<e.bindings.length;s++){var a=e.bindings[s],u=i[s];8&a.flags&&(o[jr(a.nonMinifiedName)]=Fr(u))}var c=e.parent,l=Lt(t,c.nodeIndex).renderElement;if(c.element.name)for(var h in o){var u=o[h];null!=u?t.renderer.setAttribute(l,h,u):t.renderer.removeAttribute(l,h)}else t.renderer.setValue(l,"bindings="+JSON.stringify(o,null,2))}}}function kr(t,e,n,r){er.apply(void 0,[t,e,n].concat(r))}function jr(t){return"ng-reflect-"+(t=Dr(t.replace(/[$@]/g,"_")))}function Dr(t){return t.replace(ua,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return"-"+t[1].toLowerCase()})}function Fr(t){try{return null!=t?t.toString().slice(0,30):t}catch(t){return"[ERROR] Exception while trying to serialize the value"}}function Ur(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(16384&r.flags&&r.bindings&&r.bindings.length)return n}return null}function Br(t,e){for(var n=e;n<t.def.nodes.length;n++){var r=t.def.nodes[n];if(3&r.flags&&r.bindings&&r.bindings.length)return n}return null}function zr(t,e){for(var n=-1,r=0;r<=e;r++){3&t.nodes[r].flags&&n++}return n}function Vr(t){for(;t&&!ne(t);)t=t.parent;return t.parent?Lt(t.parent,$t(t).nodeIndex):null}function Hr(t,e,n){for(var r in e.references)n[r]=On(t,e,e.references[r])}function Gr(t,e,n,r){var i=oa,o=sa,s=aa;try{oa=t;var a=e.apply(n,r);return sa=o,aa=s,oa=i,a}catch(t){if(Bt(t)||!sa)throw t;throw Dt(t,Wr())}}function Wr(){return sa?new ca(sa,aa):null}function qr(t,e,n){return new pa(t,e,n)}n.d(e,"g",function(){return Do}),n.d(e,"_3",function(){return ot}),n.d(e,"_6",function(){return st}),n.d(e,"_2",function(){return ut}),n.d(e,"F",function(){return Io}),n.d(e,"c",function(){return eo}),n.d(e,"K",function(){return ro}),n.d(e,"J",function(){return io}),n.d(e,"b",function(){return oo}),n.d(e,"d",function(){return $i}),n.d(e,"e",function(){return to}),n.d(e,"_5",function(){return yt}),n.d(e,"X",function(){return Mo}),n.d(e,"_8",function(){return it}),n.d(e,"A",function(){return xs}),n.d(e,"f",function(){return Ss}
1),n.d(e,"p",function(){return So}),n.d(e,"o",function(){return ji}),n.d(e,"Q",function(){return Ms}),n.d(e,"R",function(){return Ts}),n.d(e,"a",function(){return ai}),n.d(e,"h",function(){return ui}),n.d(e,"l",function(){return li}),n.d(e,"m",function(){return fi}),n.d(e,"r",function(){return yi}),n.d(e,"s",function(){return gi}),n.d(e,"x",function(){return mi}),n.d(e,"I",function(){return vi}),n.d(e,"L",function(){return di}),n.d(e,"B",function(){return bi}),n.d(e,"_0",function(){return _i}),n.d(e,"Y",function(){return wi}),n.d(e,"_4",function(){return d}),n.d(e,"w",function(){return Li}),n.d(e,"v",function(){return $r}),n.d(e,"t",function(){return Ei}),n.d(e,"H",function(){return Si}),n.d(e,"u",function(){return Ti}),n.d(e,"S",function(){return Mi}),n.d(e,"T",function(){return Ci}),n.d(e,"q",function(){return Oi}),n.d(e,"G",function(){return To}),n.d(e,"M",function(){return Uo}),n.d(e,"N",function(){return Vo}),n.d(e,"O",function(){return Bo}),n.d(e,"P",function(){return zo}),n.d(e,"j",function(){return ao}),n.d(e,"k",function(){return fo}),n.d(e,"n",function(){return Ho}),n.d(e,"C",function(){return _o}),n.d(e,"E",function(){return bo}),n.d(e,"D",function(){return Go}),n.d(e,"U",function(){return Xo}),n.d(e,"V",function(){return qo}),n.d(e,"W",function(){return Ko}),n.d(e,"Z",function(){return Yo}),n.d(e,"i",function(){return Jo}),n.d(e,"y",function(){return ds}),n.d(e,"z",function(){return ms}),n.d(e,"_1",function(){return rs}),n.d(e,"_7",function(){return ws}),n.d(e,"_21",function(){return wt}),n.d(e,"_10",function(){return so}),n.d(e,"_9",function(){return yo}),n.d(e,"_19",function(){return ri}),n.d(e,"_26",function(){return o}),n.d(e,"_35",function(){return s}),n.d(e,"_22",function(){return q}),n.d(e,"_23",function(){return W}),n.d(e,"_11",function(){return be}),n.d(e,"_12",function(){return Ke}),n.d(e,"_13",function(){return qr}),n.d(e,"_14",function(){return Gt}),n.d(e,"_15",function(){return rn}),n.d(e,"_17",function(){return _e}),n.d(e,"_20",function(){return ye}),n.d(e,"_28",function(){return Le}),n.d(e,"_29",function(){return Re}),n.d(e,"_30",function(){return tn}),n.d(e,"_31",function(){return on}),n.d(e,"_33",function(){return sn}),n.d(e,"_32",function(){return Pn}),n.d(e,"_34",function(){return En}),n.d(e,"_36",function(){return kn}),n.d(e,"_37",function(){return Ht}),n.d(e,"_38",function(){return Bn}),n.d(e,"_24",function(){return Ot}),n.d(e,"_25",function(){return At}),n.d(e,"_27",function(){return Pt}),n.d(e,"_16",function(){return Fo}),n.d(e,"_18",function(){return Z});var Zr=n("6Xbx"),Xr=n("bKpL"),Kr=(n.n(Xr),n("LEug")),Yr=(n.n(Kr),n("CE6k")),Jr=(n.n(Yr),n("rlar")),Qr=(n.n(Jr),function(){function t(t){this._desc=t}return t.prototype.toString=function(){return"Token "+this._desc},t}()),$r=function(t){function e(e){return t.call(this,e)||this}return Zr.a(e,t),e.prototype.toString=function(){return"InjectionToken "+this._desc},e}(Qr),ti="undefined"!=typeof window&&window,ei="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,ni=void 0!==t&&t,ri=ti||ni||ei,ii=null,oi=0,si=ri.Reflect,ai=new $r("AnalyzeForEntryComponents"),ui=p("Attribute",function(t){return{attributeName:t}}),ci=function(){function t(){}return t}(),li=f("ContentChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!1,descendants:!1},e)},ci),hi=(f("ContentChild",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!0,isViewQuery:!1,descendants:!0},e)},ci),f("ViewChildren",function(t,e){return void 0===e&&(e={}),Object.assign({selector:t,first:!1,isViewQuery:!0,descendants:!0},e)},ci),f("ViewChild",function(t,e){return Object.assign({selector:t,first:!0,isViewQuery:!0,descendants:!0},e)},ci),{});hi.OnPush=0,hi.Default=1,hi[hi.OnPush]="OnPush",hi[hi.Default]="Default";var pi={};pi.CheckOnce=0,pi.Checked=1,pi.CheckAlways=2,pi.Detached=3,pi.Errored=4,pi.Destroyed=5,pi[pi.CheckOnce]="CheckOnce",pi[pi.Checked]="Checked",pi[pi.CheckAlways]="CheckAlways",pi[pi.Detached]="Detached",pi[pi.Errored]="Errored",pi[pi.Destroyed]="Destroyed";var fi=l("Directive",function(t){return void 0===t&&(t={}),t}),di=(l("Component",function(t){return void 0===t&&(t={}),Object.assign({changeDetection:hi.Default},t)},fi),l("Pipe",function(t){return Object.assign({pure:!0},t)}
1)),mi=f("Input",function(t){return{bindingPropertyName:t}}),vi=f("Output",function(t){return{bindingPropertyName:t}}),yi=f("HostBinding",function(t){return{hostPropertyName:t}}),gi=f("HostListener",function(t,e){return{eventName:t,args:e}}),bi=l("NgModule",function(t){return t}),_i={};_i.Emulated=0,_i.Native=1,_i.None=2,_i[_i.Emulated]="Emulated",_i[_i.Native]="Native",_i[_i.None]="None";var wi=(function(){function t(t){void 0===t&&(t={}),this.templateUrl=t.templateUrl,this.template=t.template,this.styleUrls=t.styleUrls,this.styles=t.styles,this.encapsulation=t.encapsulation,this.animations=t.animations,this.interpolation=t.interpolation}}(),function(){function t(t){this.full=t}return Object.defineProperty(t.prototype,"major",{get:function(){return this.full.split(".")[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"minor",{get:function(){return this.full.split(".")[1]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"patch",{get:function(){return this.full.split(".").slice(2).join(".")},enumerable:!0,configurable:!0}),t}()),xi=new wi("4.4.6"),Ei=p("Inject",function(t){return{token:t}}),Si=p("Optional"),Ti=l("Injectable"),Mi=p("Self"),Ci=p("SkipSelf"),Oi=p("Host"),Ai=new Object,Pi=Ai,Ri=function(){function t(){}return t.prototype.get=function(t,e){if(void 0===e&&(e=Ai),e===Ai)throw new Error("No provider for "+s(t)+"!");return e},t}(),Li=function(){function t(){}return t.prototype.get=function(t,e){},t.prototype.get=function(t,e){},t}();Li.THROW_IF_NOT_FOUND=Ai,Li.NULL=new Ri;var Ni="ngDebugContext",Ii="ngOriginalError",ki="ngErrorLogger",ji=function(){function t(t){this._console=console}return t.prototype.handleError=function(t){var e=this._findOriginalError(t),n=this._findContext(t),r=g(t);r(this._console,"ERROR",t),e&&r(this._console,"ORIGINAL ERROR",e),n&&r(this._console,"ERROR CONTEXT",n)},t.prototype._findContext=function(t){return t?v(t)?v(t):this._findContext(y(t)):null},t.prototype._findOriginalError=function(t){for(var e=y(t);e&&y(e);)e=y(e);return e},t}(),Di=function(){function t(t,e){if(this.token=t,this.id=e,!t)throw new Error("Token must be defined!")}return Object.defineProperty(t.prototype,"displayName",{get:function(){return s(this.token)},enumerable:!0,configurable:!0}),t.get=function(t){return Ui.get(m(t))},Object.defineProperty(t,"numberOfKeys",{get:function(){return Ui.numberOfKeys},enumerable:!0,configurable:!0}),t}(),Fi=function(){function t(){this._allKeys=new Map}return t.prototype.get=function(t){if(t instanceof Di)return t;if(this._allKeys.has(t))return this._allKeys.get(t);var e=new Di(t,Di.numberOfKeys);return this._allKeys.set(t,e),e},Object.defineProperty(t.prototype,"numberOfKeys",{get:function(){return this._allKeys.size},enumerable:!0,configurable:!0}),t}(),Ui=new Fi,Bi=Function,zi=/^function\s+\S+\(\)\s*{[\s\S]+\.apply\(this,\s*arguments\)/,Vi=function(){function t(t){this._reflect=t||ri.Reflect}return t.prototype.isReflectionEnabled=function(){return!0},t.prototype.factory=function(t){return function(){for(var e=[],n=0;n<arguments.length;n++)e[n]=arguments[n];return new(t.bind.apply(t,[void 0].concat(e)))}},t.prototype._zipTypesAndAnnotations=function(t,e){var n;n=void 0===t?new Array(e.length):new Array(t.length);for(var r=0;r<n.length;r++)void 0===t?n[r]=[]:t[r]!=Object?n[r]=[t[r]]:n[r]=[],e&&null!=e[r]&&(n[r]=n[r].concat(e[r]));return n},t.prototype._ownParameters=function(t,e){if(zi.exec(t.toString()))return null;if(t.parameters&&t.parameters!==e.parameters)return t.parameters;var n=t.ctorParameters;if(n&&n!==e.ctorParameters){var r="function"==typeof n?n():n,i=r.map(function(t){return t&&t.type}),o=r.map(function(t){return t&&N(t.decorators)});return this._zipTypesAndAnnotations(i,o)}if(null!=this._reflect&&null!=this._reflect.getOwnMetadata){var o=this._reflect.getOwnMetadata("parameters",t),i=this._reflect.getOwnMetadata("design:paramtypes",t);if(i||o)return this._zipTypesAndAnnotations(i,o)}return new Array(t.length).fill(void 0)},t.prototype.parameters=function(t){if(!L(t))return[];var e=I(t),n=this._ownParameters(t,e);return n||e===Object||(n=this.parameters(e)),n||[]},t.prototype._ownAnnotations=function(t,e){if(t.annotations&&t.annotations!==e.annotations){var n=t.annotations;return"function"==typeof n&&n.annotations&&(n=n.annotations),n}return t.decorators&&t.decorators!==e.decorators?N(t.decorators):this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("annotations",t):null},t.prototype.annotations=function(t){if(!L(t))return[];var e=I(t),n=this._ownAnnotations(t,e)||[];return(e!==Object?this.annotations(e):[]).concat(n)},t.prototype._ownPropMetadata=function(t,e){if(t.propMetadata&&t.propMetadata!==e.propMetadata){var n=t.propMetadata;return"function"==typeof n&&n.propMetadata&&(n=n.propMetadata),n}if(t.propDecorators&&t.propDecorators!==e.propDecorators){var r=t.propDecorators,i={};return Object.keys(r).forEach(function(t){i[t]=N(r[t])}),i}return this._reflect&&this._reflect.getOwnMetadata?this._reflect.getOwnMetadata("propMetadata",t):null},t.prototype.propMetadata=function(t){if(!L(t))return{};var e=I(t),n={};if(e!==Object){var r=this.propMetadata(e);Object.keys(r).forEach(function(t){n[t]=r[t]})}var i=this._ownPropMetadata(t,e);
1return i&&Object.keys(i).forEach(function(t){var e=[];n.hasOwnProperty(t)&&e.push.apply(e,n[t]),e.push.apply(e,i[t]),n[t]=e}),n},t.prototype.hasLifecycleHook=function(t,e){return t instanceof Bi&&e in t.prototype},t.prototype.getter=function(t){return new Function("o","return o."+t+";")},t.prototype.setter=function(t){return new Function("o","v","return o."+t+" = v;")},t.prototype.method=function(t){var e="if (!o."+t+") throw new Error('\""+t+"\" is undefined');\n return o."+t+".apply(o, args);";return new Function("o","args",e)},t.prototype.importUri=function(t){return"object"==typeof t&&t.filePath?t.filePath:"./"+s(t)},t.prototype.resourceUri=function(t){return"./"+s(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return r},t.prototype.resolveEnum=function(t,e){return t[e]},t}(),Hi=function(){function t(t){this.reflectionCapabilities=t}return t.prototype.updateCapabilities=function(t){this.reflectionCapabilities=t},t.prototype.factory=function(t){return this.reflectionCapabilities.factory(t)},t.prototype.parameters=function(t){return this.reflectionCapabilities.parameters(t)},t.prototype.annotations=function(t){return this.reflectionCapabilities.annotations(t)},t.prototype.propMetadata=function(t){return this.reflectionCapabilities.propMetadata(t)},t.prototype.hasLifecycleHook=function(t,e){return this.reflectionCapabilities.hasLifecycleHook(t,e)},t.prototype.getter=function(t){return this.reflectionCapabilities.getter(t)},t.prototype.setter=function(t){return this.reflectionCapabilities.setter(t)},t.prototype.method=function(t){return this.reflectionCapabilities.method(t)},t.prototype.importUri=function(t){return this.reflectionCapabilities.importUri(t)},t.prototype.resourceUri=function(t){return this.reflectionCapabilities.resourceUri(t)},t.prototype.resolveIdentifier=function(t,e,n,r){return this.reflectionCapabilities.resolveIdentifier(t,e,n,r)},t.prototype.resolveEnum=function(t,e){return this.reflectionCapabilities.resolveEnum(t,e)},t}(),Gi=new Hi(new Vi),Wi=function(){function t(t,e,n){this.key=t,this.optional=e,this.visibility=n}return t.fromKey=function(e){return new t(e,!1,null)},t}(),qi=[],Zi=function(){function t(t,e,n){this.key=t,this.resolvedFactories=e,this.multiProvider=n}return Object.defineProperty(t.prototype,"resolvedFactory",{get:function(){return this.resolvedFactories[0]},enumerable:!0,configurable:!0}),t}(),Xi=function(){function t(t,e){this.factory=t,this.dependencies=e}return t}(),Ki=new Object,Yi=function(){function t(){}return t.resolve=function(t){return D(t)},t.resolveAndCreate=function(e,n){var r=t.resolve(e);return t.fromResolvedProviders(r,n)},t.fromResolvedProviders=function(t,e){return new Ji(t,e)},t.prototype.parent=function(){},t.prototype.resolveAndCreateChild=function(t){},t.prototype.createChildFromResolved=function(t){},t.prototype.resolveAndInstantiate=function(t){},t.prototype.instantiateResolved=function(t){},t.prototype.get=function(t,e){},t}(),Ji=function(){function t(t,e){this._constructionCounter=0,this._providers=t,this._parent=e||null;var n=t.length;this.keyIds=new Array(n),this.objs=new Array(n);for(var r=0;r<n;r++)this.keyIds[r]=t[r].key.id,this.objs[r]=Ki}return t.prototype.get=function(t,e){return void 0===e&&(e=Pi),this._getByKey(Di.get(t),null,e)},Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),t.prototype.resolveAndCreateChild=function(t){var e=Yi.resolve(t);return this.createChildFromResolved(e)},t.prototype.createChildFromResolved=function(e){var n=new t(e);return n._parent=this,n},t.prototype.resolveAndInstantiate=function(t){return this.instantiateResolved(Yi.resolve([t])[0])},t.prototype.instantiateResolved=function(t){return this._instantiateProvider(t)},t.prototype.getProviderAtIndex=function(t){if(t<0||t>=this._providers.length)throw P(t);return this._providers[t]},t.prototype._new=function(t){if(this._constructionCounter++>this._getMaxNumberOfObjects())throw M(this,t.key);return this._instantiateProvider(t)},t.prototype._getMaxNumberOfObjects=function(){return this.objs.length},t.prototype._instantiateProvider=function(t){if(t.multiProvider){for(var e=new Array(t.resolvedFactories.length),n=0;n<t.resolvedFactories.length;++n)e[n]=this._instantiate(t,t.resolvedFactories[n]);return e}return this._instantiate(t,t.resolvedFactories[0])},t.prototype._instantiate=function(t,e){var n,r=this,i=e.factory;try{n=e.dependencies.map(function(t){return r._getByReflectiveDependency(t)})}catch(e){throw e.addKey&&e.addKey(this,t.key),e}var o;try{o=i.apply(void 0,n)}catch(e){throw C(this,e,e.stack,t.key)}return o},t.prototype._getByReflectiveDependency=function(t){return this._getByKey(t.key,t.visibility,t.optional?null:Pi)},t.prototype._getByKey=function(t,e,n){return t===Qi?this:e instanceof Mi?this._getByKeySelf(t,n):this._getByKeyDefault(t,n,e)},t.prototype._getObjByKeyId=function(t){for(var e=0;e<this.keyIds.length;e++)if(this.keyIds[e]===t)return this.objs[e]===Ki&&(this.objs[e]=this._new(this._providers[e])),this.objs[e];return Ki},t.prototype._throwOrNull=function(t,e){if(e!==Pi)return e;throw T(this,t)},t.prototype._getByKeySelf=function(t,e){var n=this._getObjByKeyId(t.id);return n!==Ki?n:this._throwOrNull(t,e)},t.prototype._getByKeyDefault=function(e,n,r){var i;for(i=r instanceof Ci?this._parent:this;i instanceof t;){var o=i,s=o._getObjByKeyId(e.id);if(s!==Ki)return s;i=o._parent}return null!==i?i.get(e.token,n):this._throwOrNull(e,n)},Object.defineProperty(t.prototype,"displayName",{get:function(){return"ReflectiveInjector(prov
1iders: ["+G(this,function(t){return' "'+t.key.displayName+'" '}).join(", ")+"])"},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.displayName},t}(),Qi=Di.get(Li),$i=new $r("Application Initializer"),to=function(){function t(t){var e=this;this.appInits=t,this.initialized=!1,this._done=!1,this._donePromise=new Promise(function(t,n){e.resolve=t,e.reject=n})}return t.prototype.runInitializers=function(){var t=this;if(!this.initialized){var e=[],n=function(){t._done=!0,t.resolve()};if(this.appInits)for(var r=0;r<this.appInits.length;r++){var i=this.appInits[r]();W(i)&&e.push(i)}Promise.all(e).then(function(){n()}).catch(function(e){t.reject(e)}),0===e.length&&n(),this.initialized=!0}},Object.defineProperty(t.prototype,"done",{get:function(){return this._done},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"donePromise",{get:function(){return this._donePromise},enumerable:!0,configurable:!0}),t}();to.decorators=[{type:Ti}],to.ctorParameters=function(){return[{type:Array,decorators:[{type:Ei,args:[$i]},{type:Si}]}]};var eo=new $r("AppId"),no={provide:eo,useFactory:Z,deps:[]},ro=new $r("Platform Initializer"),io=new $r("Platform ID"),oo=new $r("appBootstrapListener"),so=(new $r("Application Packages Root URL"),function(){function t(){}return t.prototype.log=function(t){console.log(t)},t.prototype.warn=function(t){console.warn(t)},t}());so.decorators=[{type:Ti}],so.ctorParameters=function(){return[]};var ao=(function(){function t(t,e){this.ngModuleFactory=t,this.componentFactories=e}}(),function(){function t(){}return t.prototype.compileModuleSync=function(t){throw K()},t.prototype.compileModuleAsync=function(t){throw K()},t.prototype.compileModuleAndAllComponentsSync=function(t){throw K()},t.prototype.compileModuleAndAllComponentsAsync=function(t){throw K()},t.prototype.getNgContentSelectors=function(t){throw K()},t.prototype.clearCache=function(){},t.prototype.clearCacheFor=function(t){},t}());ao.decorators=[{type:Ti}],ao.ctorParameters=function(){return[]};var uo=(new $r("compilerOptions"),function(){function t(){}return t.prototype.createCompiler=function(t){},t}()),co=function(){function t(){}return t.prototype.location=function(){},t.prototype.injector=function(){},t.prototype.instance=function(){},t.prototype.hostView=function(){},t.prototype.changeDetectorRef=function(){},t.prototype.componentType=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),lo=function(){function t(){}return t.prototype.selector=function(){},t.prototype.componentType=function(){},t.prototype.ngContentSelectors=function(){},t.prototype.inputs=function(){},t.prototype.outputs=function(){},t.prototype.create=function(t,e,n,r){},t}(),ho="ngComponent",po=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){throw Y(t)},t}(),fo=function(){function t(){}return t.prototype.resolveComponentFactory=function(t){},t}();fo.NULL=new po;var mo,vo,yo=function(){function t(t,e,n){this._parent=e,this._ngModule=n,this._factories=new Map;for(var r=0;r<t.length;r++){var i=t[r];this._factories.set(i.componentType,i)}}return t.prototype.resolveComponentFactory=function(t){var e=this._factories.get(t);if(!e&&this._parent&&(e=this._parent.resolveComponentFactory(t)),!e)throw Y(t);return new go(e,this._ngModule)},t}(),go=function(t){function e(e,n){var r=t.call(this)||this;return r.factory=e,r.ngModule=n,r}return Zr.a(e,t),Object.defineProperty(e.prototype,"selector",{get:function(){return this.factory.selector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this.factory.componentType},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"ngContentSelectors",{get:function(){return this.factory.ngContentSelectors},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"inputs",{get:function(){return this.factory.inputs},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){return this.factory.outputs},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){return this.factory.create(t,e,n,r||this.ngModule)},e}(lo),bo=function(){function t(){}return t.prototype.injector=function(){},t.prototype.componentFactoryResolver=function(){},t.prototype.instance=function(){},t.prototype.destroy=function(){},t.prototype.onDestroy=function(t){},t}(),_o=function(){function t(){}return t.prototype.moduleType=function(){},t.prototype.create=function(t){},t}(),wo=function(){var t=ri.wtf;return!(!t||!(mo=t.trace))&&(vo=mo.events,!0)}(),xo=wo?J:function(t,e){return $},Eo=wo?Q:function(t,e){return e},So=function(t){function e(e){void 0===e&&(e=!1);var n=t.call(this)||this;return n.__isAsync=e,n}return Zr.a(e,t),e.prototype.emit=function(e){t.prototype.next.call(this,e)},e.prototype.subscribe=function(e,n,r){var i,o=function(t){return null},s=function(){return null};return e&&"object"==typeof e?(i=this.__isAsync?function(t){setTimeout(function(){return e.next(t)})}:function(t){e.next(t)},e.error&&(o=this.__isAsync?function(t){setTimeout(function(){return e.error(t)})}:function(t){e.error(t)}),e.complete&&(s=this.__isAsync?function(){setTimeout(function(){return e.complete()})}:function(){e.complete()}
1)):(i=this.__isAsync?function(t){setTimeout(function(){return e(t)})}:function(t){e(t)},n&&(o=this.__isAsync?function(t){setTimeout(function(){return n(t)})}:function(t){n(t)}),r&&(s=this.__isAsync?function(){setTimeout(function(){return r()})}:function(){r()})),t.prototype.subscribe.call(this,i,o,s)},e}(Jr.Subject),To=function(){function t(t){var e=t.enableLongStackTrace,n=void 0!==e&&e;if(this.hasPendingMicrotasks=!1,this.hasPendingMacrotasks=!1,this.isStable=!0,this.onUnstable=new So(!1),this.onMicrotaskEmpty=new So(!1),this.onStable=new So(!1),this.onError=new So(!1),"undefined"==typeof Zone)throw new Error("Angular requires Zone.js prolyfill.");Zone.assertZonePatched();var r=this;r._nesting=0,r._outer=r._inner=Zone.current,Zone.wtfZoneSpec&&(r._inner=r._inner.fork(Zone.wtfZoneSpec)),n&&Zone.longStackTraceZoneSpec&&(r._inner=r._inner.fork(Zone.longStackTraceZoneSpec)),et(r)}return t.isInAngularZone=function(){return!0===Zone.current.get("isAngularZone")},t.assertInAngularZone=function(){if(!t.isInAngularZone())throw new Error("Expected to be in Angular Zone, but it is not!")},t.assertNotInAngularZone=function(){if(t.isInAngularZone())throw new Error("Expected to not be in Angular Zone, but it is!")},t.prototype.run=function(t){return this._inner.run(t)},t.prototype.runGuarded=function(t){return this._inner.runGuarded(t)},t.prototype.runOutsideAngular=function(t){return this._outer.run(t)},t}(),Mo=function(){function t(t){this._ngZone=t,this._pendingCount=0,this._isZoneStable=!0,this._didWork=!1,this._callbacks=[],this._watchAngularEvents()}return t.prototype._watchAngularEvents=function(){var t=this;this._ngZone.onUnstable.subscribe({next:function(){t._didWork=!0,t._isZoneStable=!1}}),this._ngZone.runOutsideAngular(function(){t._ngZone.onStable.subscribe({next:function(){To.assertNotInAngularZone(),i(function(){t._isZoneStable=!0,t._runCallbacksIfReady()})}})})},t.prototype.increasePendingRequestCount=function(){return this._pendingCount+=1,this._didWork=!0,this._pendingCount},t.prototype.decreasePendingRequestCount=function(){if(this._pendingCount-=1,this._pendingCount<0)throw new Error("pending async requests below zero");return this._runCallbacksIfReady(),this._pendingCount},t.prototype.isStable=function(){return this._isZoneStable&&0==this._pendingCount&&!this._ngZone.hasPendingMacrotasks},t.prototype._runCallbacksIfReady=function(){var t=this;this.isStable()?i(function(){for(;0!==t._callbacks.length;)t._callbacks.pop()(t._didWork);t._didWork=!1}):this._didWork=!0},t.prototype.whenStable=function(t){this._callbacks.push(t),this._runCallbacksIfReady()},t.prototype.getPendingRequestCount=function(){return this._pendingCount},t.prototype.findBindings=function(t,e,n){return[]},t.prototype.findProviders=function(t,e,n){return[]},t}();Mo.decorators=[{type:Ti}],Mo.ctorParameters=function(){return[{type:To}]};var Co=function(){function t(){this._applications=new Map,Po.addToWindow(this)}return t.prototype.registerApplication=function(t,e){this._applications.set(t,e)},t.prototype.getTestability=function(t){return this._applications.get(t)||null},t.prototype.getAllTestabilities=function(){return Array.from(this._applications.values())},t.prototype.getAllRootElements=function(){return Array.from(this._applications.keys())},t.prototype.findTestabilityInTree=function(t,e){return void 0===e&&(e=!0),Po.findTestabilityInTree(this,t,e)},t}();Co.decorators=[{type:Ti}],Co.ctorParameters=function(){return[]};var Oo,Ao=function(){function t(){}return t.prototype.addToWindow=function(t){},t.prototype.findTestabilityInTree=function(t,e,n){return null},t}(),Po=new Ao,Ro=!0,Lo=!1,No=new $r("AllowMultipleToken"),Io=function(){function t(t,e){this.name=t,this.token=e}return t}(),ko=function(){function t(){}return t.prototype.bootstrapModuleFactory=function(t){},t.prototype.bootstrapModule=function(t,e){},t.prototype.onDestroy=function(t){},t.prototype.injector=function(){},t.prototype.destroy=function(){},t.prototype.destroyed=function(){},t}(),jo=function(t){function e(e){var n=t.call(this)||this;return n._injector=e,n._modules=[],n._destroyListeners=[],n._destroyed=!1,n}return Zr.a(e,t),e.prototype.onDestroy=function(t){this._destroyListeners.push(t)},Object.defineProperty(e.prototype,"injector",{get:function(){return this._injector},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){if(this._destroyed)throw new Error("The platform has already been destroyed!");
1this._modules.slice().forEach(function(t){return t.destroy()}),this._destroyListeners.forEach(function(t){return t()}),this._destroyed=!0},e.prototype.bootstrapModuleFactory=function(t){return this._bootstrapModuleFactoryWithZone(t)},e.prototype._bootstrapModuleFactoryWithZone=function(t,e){var n=this;return e||(e=new To({enableLongStackTrace:st()})),e.run(function(){var r=Yi.resolveAndCreate([{provide:To,useValue:e}],n.injector),i=t.create(r),o=i.injector.get(ji,null);if(!o)throw new Error("No ErrorHandler. Is platform module (BrowserModule) included?");return i.onDestroy(function(){return pt(n._modules,i)}),e.runOutsideAngular(function(){return e.onError.subscribe({next:function(t){o.handleError(t)}})}),ht(o,e,function(){var t=i.injector.get(to);return t.runInitializers(),t.donePromise.then(function(){return n._moduleDoBootstrap(i),i})})})},e.prototype.bootstrapModule=function(t,e){return void 0===e&&(e=[]),this._bootstrapModuleWithZone(t,e)},e.prototype._bootstrapModuleWithZone=function(t,e,n){var r=this;return void 0===e&&(e=[]),this.injector.get(uo).createCompiler(Array.isArray(e)?e:[e]).compileModuleAsync(t).then(function(t){return r._bootstrapModuleFactoryWithZone(t,n)})},e.prototype._moduleDoBootstrap=function(t){var e=t.injector.get(Do);if(t._bootstrapComponents.length>0)t._bootstrapComponents.forEach(function(t){return e.bootstrap(t)});else{if(!t.instance.ngDoBootstrap)throw new Error("The module "+s(t.instance.constructor)+' was bootstrapped, but it does not declare "@NgModule.bootstrap" components nor a "ngDoBootstrap" method. Please define one of these.');t.instance.ngDoBootstrap(e)}this._modules.push(t)},e}(ko);jo.decorators=[{type:Ti}],jo.ctorParameters=function(){return[{type:Li}]};var Do=function(){function t(){}return t.prototype.bootstrap=function(t,e){},t.prototype.tick=function(){},t.prototype.componentTypes=function(){},t.prototype.components=function(){},t.prototype.attachView=function(t){},t.prototype.detachView=function(t){},t.prototype.viewCount=function(){},t.prototype.isStable=function(){},t}(),Fo=function(t){function e(e,n,r,o,s,a){var u=t.call(this)||this;u._zone=e,u._console=n,u._injector=r,u._exceptionHandler=o,u._componentFactoryResolver=s,u._initStatus=a,u._bootstrapListeners=[],u._rootComponents=[],u._rootComponentTypes=[],u._views=[],u._runningTick=!1,u._enforceNoNewChanges=!1,u._stable=!0,u._enforceNoNewChanges=st(),u._zone.onMicrotaskEmpty.subscribe({next:function(){u._zone.run(function(){u.tick()})}});var c=new Xr.Observable(function(t){u._stable=u._zone.isStable&&!u._zone.hasPendingMacrotasks&&!u._zone.hasPendingMicrotasks,u._zone.runOutsideAngular(function(){t.next(u._stable),t.complete()})}),l=new Xr.Observable(function(t){var e;u._zone.runOutsideAngular(function(){e=u._zone.onStable.subscribe(function(){To.assertNotInAngularZone(),i(function(){u._stable||u._zone.hasPendingMacrotasks||u._zone.hasPendingMicrotasks||(u._stable=!0,t.next(!0))})})});var n=u._zone.onUnstable.subscribe(function(){To.assertInAngularZone(),u._stable&&(u._stable=!1,u._zone.runOutsideAngular(function(){t.next(!1)}))});return function(){e.unsubscribe(),n.unsubscribe()}});return u._isStable=Object(Kr.merge)(c,Yr.share.call(l)),u}return Zr.a(e,t),e.prototype.attachView=function(t){var e=t;this._views.push(e),e.attachToAppRef(this)},e.prototype.detachView=function(t){var e=t;pt(this._views,e),e.detachFromAppRef()},e.prototype.bootstrap=function(t,e){var n=this;if(!this._initStatus.done)throw new Error("Cannot bootstrap as there are still asynchronous initializers running. Bootstrap components in the `ngDoBootstrap` method of the root module.");var r;r=t instanceof lo?t:this._componentFactoryResolver.resolveComponentFactory(t),this._rootComponentTypes.push(r.componentType);var i=r instanceof go?null:this._injector.get(bo),o=e||r.selector,s=r.create(Li.NULL,[],o,i);s.onDestroy(function(){n._unloadComponent(s)});var a=s.injector.get(Mo,null);return a&&s.injector.get(Co).registerApplication(s.location.nativeElement,a),this._loadComponent(s),st()&&this._console.log("Angular is running in the development mode. Call enableProdMode() to enable the production mode."),s},e.prototype._loadComponent=function(t){this.attachView(t.hostView),this.tick(),this._rootComponents.push(t),this._injector.get(oo,[]).concat(this._bootstrapListeners).forEac
1h(function(e){return e(t)})},e.prototype._unloadComponent=function(t){this.detachView(t.hostView),pt(this._rootComponents,t)},e.prototype.tick=function(){var t=this;if(this._runningTick)throw new Error("ApplicationRef.tick is called recursively");var n=e._tickScope();try{this._runningTick=!0,this._views.forEach(function(t){return t.detectChanges()}),this._enforceNoNewChanges&&this._views.forEach(function(t){return t.checkNoChanges()})}catch(e){this._zone.runOutsideAngular(function(){return t._exceptionHandler.handleError(e)})}finally{this._runningTick=!1,Eo(n)}},e.prototype.ngOnDestroy=function(){this._views.slice().forEach(function(t){return t.destroy()})},Object.defineProperty(e.prototype,"viewCount",{get:function(){return this._views.length},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentTypes",{get:function(){return this._rootComponentTypes},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"components",{get:function(){return this._rootComponents},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"isStable",{get:function(){return this._isStable},enumerable:!0,configurable:!0}),e}(Do);Fo._tickScope=xo("ApplicationRef#tick()"),Fo.decorators=[{type:Ti}],Fo.ctorParameters=function(){return[{type:To},{type:so},{type:Li},{type:ji},{type:fo},{type:to}]};var Uo=(function(){function t(t,e,n,r,i,o){this.id=t,this.templateUrl=e,this.slotCount=n,this.encapsulation=r,this.styles=i,this.animations=o}}(),function(){function t(){}t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.source=function(){}}(),function(){function t(){}return t.prototype.selectRootElement=function(t,e){},t.prototype.createElement=function(t,e,n){},t.prototype.createViewRoot=function(t){},t.prototype.createTemplateAnchor=function(t,e){},t.prototype.createText=function(t,e,n){},t.prototype.projectNodes=function(t,e){},t.prototype.attachViewAfter=function(t,e){},t.prototype.detachView=function(t){},t.prototype.destroyView=function(t,e){},t.prototype.listen=function(t,e,n){},t.prototype.listenGlobal=function(t,e,n){},t.prototype.setElementProperty=function(t,e,n){},t.prototype.setElementAttribute=function(t,e,n){},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){},t.prototype.setElementStyle=function(t,e,n){},t.prototype.invokeElementMethod=function(t,e,n){},t.prototype.setText=function(t,e){},t.prototype.animate=function(t,e,n,r,i,o,s){},t}()),Bo=(new $r("Renderer2Interceptor"),function(){function t(){}t.prototype.renderComponent=function(t){}}(),function(){function t(){}return t.prototype.createRenderer=function(t,e){},t.prototype.begin=function(){},t.prototype.end=function(){},t.prototype.whenRenderingDone=function(){},t}()),zo={};zo.Important=1,zo.DashCase=2,zo[zo.Important]="Important",zo[zo.DashCase]="DashCase";var Vo=function(){function t(){}return t.prototype.data=function(){},t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createText=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.insertBefore=function(t,e,n){},t.prototype.removeChild=function(t,e){},t.prototype.selectRootElement=function(t){},t.prototype.parentNode=function(t){},t.prototype.nextSibling=function(t){},t.prototype.setAttribute=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e,n){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.setStyle=function(t,e,n,r){},t.prototype.removeStyle=function(t,e,n){},t.prototype.setProperty=function(t,e,n){},t.prototype.setValue=function(t,e){},t.prototype.listen=function(t,e,n){},t}(),Ho=function(){function t(t){this.nativeElement=t}return t}(),Go=function(){function t(){}return t.prototype.load=function(t){},t}(),Wo=(new Map,function(){function t(){this._dirty=!0,this._results=[],this._emitter=new So}return Object.defineProperty(t.prototype,"changes",{get:function(){return this._emitter},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._results.length},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"first",{get:function(){return this._results[0]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this._results[this.length-1]},enumerable:!0,configurable:!0}),t.prototype.map=function(t){return this._results.map(t)},t.prototype.filter=function(t){return this._results.filter(t)},t.prototype.find=function(t){return this._results.find(t)},t.prototype.reduce=function(t,e){return this._results.reduce(t,e)}
1,t.prototype.forEach=function(t){this._results.forEach(t)},t.prototype.some=function(t){return this._results.some(t)},t.prototype.toArray=function(){return this._results.slice()},t.prototype[r()]=function(){return this._results[r()]()},t.prototype.toString=function(){return this._results.toString()},t.prototype.reset=function(t){this._results=ft(t),this._dirty=!1},t.prototype.notifyOnChanges=function(){this._emitter.emit(this)},t.prototype.setDirty=function(){this._dirty=!0},Object.defineProperty(t.prototype,"dirty",{get:function(){return this._dirty},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this._emitter.complete(),this._emitter.unsubscribe()},t}()),qo=function(){function t(){}return t}(),Zo={factoryPathPrefix:"",factoryPathSuffix:".ngfactory"},Xo=function(){function t(t,e){this._compiler=t,this._config=e||Zo}return t.prototype.load=function(t){return this._compiler instanceof ao?this.loadFactory(t):this.loadAndCompile(t)},t.prototype.loadAndCompile=function(t){var e=this,r=t.split("#"),i=r[0],o=r[1];return void 0===o&&(o="default"),n("gFIY")(i).then(function(t){return t[o]}).then(function(t){return dt(t,i,o)}).then(function(t){return e._compiler.compileModuleAsync(t)})},t.prototype.loadFactory=function(t){var e=t.split("#"),r=e[0],i=e[1],o="NgFactory";return void 0===i&&(i="default",o=""),n("gFIY")(this._config.factoryPathPrefix+r+this._config.factoryPathSuffix).then(function(t){return t[i+o]}).then(function(t){return dt(t,r,i)})},t}();Xo.decorators=[{type:Ti}],Xo.ctorParameters=function(){return[{type:ao},{type:qo,decorators:[{type:Si}]}]};var Ko=function(){function t(){}return t.prototype.elementRef=function(){},t.prototype.createEmbeddedView=function(t){},t}(),Yo=function(){function t(){}return t.prototype.element=function(){},t.prototype.injector=function(){},t.prototype.parentInjector=function(){},t.prototype.clear=function(){},t.prototype.get=function(t){},t.prototype.length=function(){},t.prototype.createEmbeddedView=function(t,e,n){},t.prototype.createComponent=function(t,e,n,r,i){},t.prototype.insert=function(t,e){},t.prototype.move=function(t,e){},t.prototype.indexOf=function(t){},t.prototype.remove=function(t){},t.prototype.detach=function(t){},t}(),Jo=function(){function t(){}return t.prototype.markForCheck=function(){},t.prototype.detach=function(){},t.prototype.detectChanges=function(){},t.prototype.checkNoChanges=function(){},t.prototype.reattach=function(){},t}(),Qo=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return Zr.a(e,t),e.prototype.destroy=function(){},e.prototype.destroyed=function(){},e.prototype.onDestroy=function(t){},e}(Jo),$o=(function(t){function e(){return null!==t&&t.apply(this,arguments)||this}Zr.a(e,t),e.prototype.context=function(){},e.prototype.rootNodes=function(){}}(Qo),function(){function t(t,e){this.name=t,this.callback=e}return t}()),ts=function(){function t(t,e,n){this._debugContext=n,this.nativeNode=t,e&&e instanceof es?e.addChild(this):this.parent=null,this.listeners=[]}return Object.defineProperty(t.prototype,"injector",{get:function(){return this._debugContext.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentInstance",{get:function(){return this._debugContext.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._debugContext.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){return this._debugContext.references},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){return this._debugContext.providerTokens},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"source",{get:function(){return"Deprecated since v4"},enumerable:!0,configurable:!0}),t}(),es=function(t){function e(e,n,r){var i=t.call(this,e,n,r)||this;return i.properties={},i.attributes={},i.classes={},i.styles={},i.childNodes=[],i.nativeElement=e,i}return Zr.a(e,t),e.prototype.addChild=function(t){t&&(this.childNodes.push(t),t.parent=this)},e.prototype.removeChild=function(t){var e=this.childNodes.indexOf(t);-1!==e&&(t.parent=null,this.childNodes.splice(e,1))},e.prototype.insertChildrenAfter=function(t,e){var n=this,r=this.childNodes.indexOf(t);-1!==r&&((i=this.childNodes).splice.apply(i,[r+1,0].concat(e)),e.forEach(function(t){t.parent&&t.parent.removeChild(t),t.parent=n}));var i},e.prototype.insertBefore=function(t,e){var n=this.childNodes.indexOf(t);-1===n?this.addChild(e):(e.parent&&e.parent.removeChild(e),e.parent=this,this.childNodes.splice(n,0,e))},e.prototype.query=function(t){return this.queryAll(t)[0]||null},e.prototype.queryAll=function(t){var e=[];return mt(this,t,e),e},e.prototype.queryAllNodes=function(t){var e=[];return vt(this,t,e),e},Object.defineProperty(e.prototype,"children",{get:function(){return this.childNodes.filter(function(t){return t instanceof e})},enumerable:!0,configurable:!0}),e.prototype.triggerEventHandler=function(t,e){this.listeners.forEac
vendor: 14,040 bytes, line 1
1h(function(n){n.name==t&&n.callback(e)})},e}(ts),ns=new Map,rs=function(){function t(t){this.wrapped=t}return t.wrap=function(e){return new t(e)},t}(),is=(function(){function t(){this.hasWrappedValue=!1}t.prototype.unwrap=function(t){return t instanceof rs?(this.hasWrappedValue=!0,t.wrapped):t},t.prototype.reset=function(){this.hasWrappedValue=!1}}(),function(){function t(t,e,n){this.previousValue=t,this.currentValue=e,this.firstChange=n}return t.prototype.isFirstChange=function(){return this.firstChange},t}()),os=function(){function t(){}return t.prototype.supports=function(t){return wt(t)},t.prototype.create=function(t,e){return new as(e||t)},t}(),ss=function(t,e){return e},as=function(){function t(t){this._length=0,this._collection=null,this._linkedRecords=null,this._unlinkedRecords=null,this._previousItHead=null,this._itHead=null,this._itTail=null,this._additionsHead=null,this._additionsTail=null,this._movesHead=null,this._movesTail=null,this._removalsHead=null,this._removalsTail=null,this._identityChangesHead=null,this._identityChangesTail=null,this._trackByFn=t||ss}return Object.defineProperty(t.prototype,"collection",{get:function(){return this._collection},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"length",{get:function(){return this._length},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._itHead;null!==e;e=e._next)t(e)},t.prototype.forEachOperation=function(t){for(var e=this._itHead,n=this._removalsHead,r=0,i=null;e||n;){var o=!n||e&&e.currentIndex<Tt(n,r,i)?e:n,s=Tt(o,r,i),a=o.currentIndex;if(o===n)r--,n=n._nextRemoved;else if(e=e._next,null==o.previousIndex)r++;else{i||(i=[]);var u=s-r,c=a-r;if(u!=c){for(var l=0;l<u;l++){var h=l<i.length?i[l]:i[l]=0,p=h+l;c<=p&&p<u&&(i[l]=h+1)}var f=o.previousIndex;i[f]=c-u}}s!==a&&t(o,s,a)}},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousItHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachMovedItem=function(t){var e;for(e=this._movesHead;null!==e;e=e._nextMoved)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.forEachIdentityChange=function(t){var e;for(e=this._identityChangesHead;null!==e;e=e._nextIdentityChange)t(e)},t.prototype.diff=function(t){if(null==t&&(t=[]),!wt(t))throw new Error("Error trying to diff '"+s(t)+"'. Only arrays and iterables are allowed");return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n,r,i,s=this._itHead,a=!1;if(Array.isArray(t)){this._length=t.length;for(var u=0;u<this._length;u++)r=t[u],i=this._trackByFn(u,r),null!==s&&o(s.trackById,i)?(a&&(s=this._verifyReinsertion(s,r,i,u)),o(s.item,r)||this._addIdentityChange(s,r)):(s=this._mismatch(s,r,i,u),a=!0),s=s._next}else n=0,Et(t,function(t){i=e._trackByFn(n,t),null!==s&&o(s.trackById,i)?(a&&(s=e._verifyReinsertion(s,t,i,n)),o(s.item,t)||e._addIdentityChange(s,t)):(s=e._mismatch(s,t,i,n),a=!0),s=s._next,n++}),this._length=n;return this._truncate(s),this._collection=t,this.isDirty},Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._movesHead||null!==this._removalsHead||null!==this._identityChangesHead},enumerable:!0,configurable:!0}),t.prototype._reset=function(){if(this.isDirty){var t=void 0,e=void 0;for(t=this._previousItHead=this._itHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._additionsHead;null!==t;t=t._nextAdded)t.previousIndex=t.currentIndex;for(this._additionsHead=this._additionsTail=null,t=this._movesHead;null!==t;t=e)t.previousIndex=t.currentIndex,e=t._nextMoved;this._movesHead=this._movesTail=null,this._removalsHead=this._removalsTail=null,this._identityChangesHead=this._identityChangesTail=null}},t.prototype._mismatch=function(t,e,n,r){var i;return null===t?i=this._itTail:(i=t._prev,this._remove(t)),t=null===this._linkedRecords?null:this._linkedRecords.get(n,r),null!==t?(o(t.item,e)||this._addIdentityChange(t,e),this._moveAfter(t,i,r)):(t=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null),null!==t?(o(t.item,e)||this._addIdentityChange(t,e),this._reinsertAfter(t,i,r)):t=this._addAfter(new us(e,n),i,r)),t},t.prototype._verifyReinsertion=function(t,e,n,r){var i=null===this._unlinkedRecords?null:this._unlinkedRecords.get(n,null);return null!==i?t=this._reinsertAfter(i,t._prev,r):t.currentIndex!=r&&(t.currentIndex=r,this._addToMoves(t,r)),t},t.prototype._truncate=function(t){for(;null!==t;){var e=t._next;this._addToRemovals(this._unlink(t)),t=e}null!==this._unlinkedRecords&&this._unlinkedRecords.clear(),null!==this._additionsTail&&(this._additionsTail._nextAdded=null),null!==this._movesTail&&(this._movesTail._nextMoved=null),null!==this._itTail&&(this._itTail._next=null),null!==this._removalsTail&&(this._removalsTail._nextRemoved=null),null!==this._identityChangesTail&&(this._identityChangesTail._nextIdentityChange=null)},t.prototype._reinsertAfter=function(t,e,n){null!==this._unlinkedRecords&&this._unlinkedRecords.remove(t);var r=t._prevRemoved,i=t._nextRemoved;return null===r?this._removalsHead=i:r._nextRemoved=i,null===i?this._removalsTail=r:i._prevRemoved=r,this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._moveAfter=function(t,e,n){return this._unlink(t),this._insertAfter(t,e,n),this._addToMoves(t,n),t},t.prototype._addAfter=function(t,e,n){return this._insertAfter(t,e,n),null===this._additionsTail?this._additionsTail=this._additionsHead=t:this._additionsTail=this._additionsTail._nextAdded=t,t},t.prototype._insertAfter=function(t,e,n){var r=null===e?this._itHead:e._next;return t._next=r,t._prev=e,null===r?this._itTail=t:r._prev=t,null===e?this._itHead=t:e._next=t,null===this._linkedRecords&&(this._linkedRecords=new ls),this._linkedRecords.put(t),t.currentIndex=n,t},t.prototype._remove=function(t){return this._addToRemovals(this._unlink(t))},t.prototype._unlink=function(t){null!==this._linkedRecords&&this._linkedRecords.remove(t);var e=t._prev,n=t._next;return null===e?this._itHead=n:e._next=n,null===n?this._itTail=e:n._prev=e,t},t.prototype._addToMoves=function(t,e){return t.previousIndex===e?t:(null===this._movesTail?this._movesTail=this._movesHead=t:this._movesTail=this._movesTail._nextMoved=t,t)},t.prototype._addToRemovals=function(t){return null===this._unlinkedRecords&&(this._unlinkedRecords=new ls),this._unlinkedRecords.put(t),t.currentIndex=null,t._nextRemoved=null,null===this._removalsTail?(this._removalsTail=this._removalsHead=t,t._prevRemoved=null):(t._prevRemoved=this._removalsTail,this._removalsTail=this._removalsTail._nextRemoved=t),t},t.prototype._addIdentityChange=function(t,e){return t.item=e,null===this._identityChangesTail?this._identityChangesTail=this._identityChangesHead=t:this._identityChangesTail=this._identityChangesTail._nextIdentityChange=t,t},t.prototype.toString=function(){var t=[];this.forEachItem(function(e){return t.push(e)});var e=[];this.forEachPreviousItem(function(t){return e.push(t)});var n=[];this.forEachAddedItem(function(t){return n.push(t)});var r=[];this.forEachMovedItem(function(t){return r.push(t)});var i=[];this.forEachRemovedItem(function(t){return i.push(t)});var o=[];return this.forEachIdentityChange(function(t){return o.push(t)}),"collection: "+t.join(", ")+"\nprevious: "+e.join(", ")+"\nadditions: "+n.join(", ")+"\nmoves: "+r.join(", ")+"\nremovals: "+i.join(", ")+"\nidentityChanges: "+o.join(", ")+"\n"},t}(),us=function(){function t(t,e){this.item=t,this.trackById=e,this.currentIndex=null,this.previousIndex=null,this._nextPrevious=null,this._prev=null,this._next=null,this._prevDup=null,this._nextDup=null,this._prevRemoved=null,this._nextRemoved=null,this._nextAdded=null,this._nextMoved=null,this._nextIdentityChange=null}return t.prototype.toString=function(){return this.previousIndex===this.currentIndex?s(this.item):s(this.item)+"["+s(this.previousIndex)+"->"+s(this.currentIndex)+"]"},t}(),cs=function(){function t(){this._head=null,this._tail=null}return t.prototype.add=function(t){null===this._head?(this._head=this._tail=t,t._nextDup=null,t._prevDup=null):(this._tail._nextDup=t,t._prevDup=this._tail,t._nextDup=null,this._tail=t)},t.prototype.get=function(t,e){var n;for(n=this._head;null!==n;n=n._nextDup)if((null===e||e<=n.currentIndex)&&o(n.trackById,t))return n;return null},t.prototype.remove=function(t){var e=t._prevDup,n=t._nextDup;return null===e?this._head=n:e._nextDup=n,null===n?this._tail=e:n._prevDup=e,null===this._head},t}(),ls=function(){function t(){this.map=new Map}return t.prototype.put=function(t){var e=t.trackById,n=this.map.get(e);n||(n=new cs,this.map.set(e,n)),n.add(t)},t.prototype.get=function(t,e){var n=t,r=this.map.get(n);return r?r.get(t,e):null},t.prototype.remove=function(t){var e=t.trackById;return this.map.get(e).remove(t)&&this.map.delete(e),t},Object.defineProperty(t.prototype,"isEmpty",{get:function(){return 0===this.map.size},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this.map.clear()},t.prototype.toString=function(){return"_DuplicateMap("+s(this.map)+")"},t}(),hs=function(){function t(){}return t.prototype.supports=function(t){return t instanceof Map||St(t)},t.prototype.create=function(t){return new ps},t}(),ps=function(){function t(){this._records=new Map,this._mapHead=null,this._appendAfter=null,this._previousMapHead=null,this._changesHead=null,this._changesTail=null,this._additionsHead=null,this._additionsTail=null,this._removalsHead=null,this._removalsTail=null}return Object.defineProperty(t.prototype,"isDirty",{get:function(){return null!==this._additionsHead||null!==this._changesHead||null!==this._removalsHead},enumerable:!0,configurable:!0}),t.prototype.forEachItem=function(t){var e;for(e=this._mapHead;null!==e;e=e._next)t(e)},t.prototype.forEachPreviousItem=function(t){var e;for(e=this._previousMapHead;null!==e;e=e._nextPrevious)t(e)},t.prototype.forEachChangedItem=function(t){var e;for(e=this._changesHead;null!==e;e=e._nextChanged)t(e)},t.prototype.forEachAddedItem=function(t){var e;for(e=this._additionsHead;null!==e;e=e._nextAdded)t(e)},t.prototype.forEachRemovedItem=function(t){var e;for(e=this._removalsHead;null!==e;e=e._nextRemoved)t(e)},t.prototype.diff=function(t){if(t){if(!(t instanceof Map||St(t)))throw new Error("Error trying to diff '"+s(t)+"'. Only maps and objects are allowed")}else t=new Map;return this.check(t)?this:null},t.prototype.onDestroy=function(){},t.prototype.check=function(t){var e=this;this._reset();var n=this._mapHead;if(this._appendAfter=null,this._forEach(t,function(t,r){if(n&&n.key===r)e._maybeAddToChanges(n,t),e._appendAfter=n,n=n._next;else{var i=e._getOrCreateRecordForKey(r,t);n=e._insertBeforeOrAppend(n,i)}}),n){n._prev&&(n._prev._next=null),this._removalsHead=n;for(var r=n;null!==r;r=r._nextRemoved)r===this._mapHead&&(this._mapHead=null),this._records.delete(r.key),r._nextRemoved=r._next,r.previousValue=r.currentValue,r.currentValue=null,r._prev=null,r._next=null}return this._changesTail&&(this._changesTail._nextChanged=null),this._additionsTail&&(this._additionsTail._nextAdded=null),this.isDirty},t.prototype._insertBeforeOrAppend=function(t,e){if(t){var n=t._prev;return e._next=t,e._prev=n,t._prev=e,n&&(n._next=e),t===this._mapHead&&(this._mapHead=e),this._appendAfter=t,t}return this._appendAfter?(this._appendAfter._next=e,e._prev=this._appendAfter):this._mapHead=e,this._appendAfter=e,null},t.prototype._getOrCreateRecordForKey=function(t,e){if(this._records.has(t)){var n=this._records.get(t);this._maybeAddToChanges(n,e);var r=n._prev,i=n._next;return r&&(r._next=i),i&&(i._prev=r),n._next=null,n._prev=null,n}var o=new fs(t);return this._records.set(t,o),o.currentValue=e,this._addToAdditions(o),o},t.prototype._reset=function(){if(this.isDirty){var t=void 0;for(this._previousMapHead=this._mapHead,t=this._previousMapHead;null!==t;t=t._next)t._nextPrevious=t._next;for(t=this._changesHead;null!==t;t=t._nextChanged)t.previousValue=t.currentValue;for(t=this._additionsHead;null!=t;t=t._nextAdded)t.previousValue=t.currentValue;this._changesHead=this._changesTail=null,this._additionsHead=this._additionsTail=null,this._removalsHead=null}},t.prototype._maybeAddToChanges=function(t,e){o(e,t.currentValue)||(t.previousValue=t.currentValue,t.currentValue=e,this._addToChanges(t))},t.prototype._addToAdditions=function(t){null===this._additionsHead?this._additionsHead=this._additionsTail=t:(this._additionsTail._nextAdded=t,this._additionsTail=t)},t.prototype._addToChanges=function(t){null===this._changesHead?this._changesHead=this._changesTail=t:(this._changesTail._nextChanged=t,this._changesTail=t)},t.prototype._forEach=function(t,e){t instanceof Map?t.forEach(e):Object.keys(t).forEach(function(n){return e(t[n],n)})},t}(),fs=function(){function t(t){this.key=t,this.previousValue=null,this.currentValue=null,this._nextPrevious=null,this._next=null,this._prev=null,this._nextAdded=null,this._nextRemoved=null,this._nextChanged=null}return t}(),ds=function(){function t(t){this.factories=t}return t.create=function(e,n){if(null!=n){var r=n.factories.slice();return e=e.concat(r),new t(e)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend IterableDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ci,new Si]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supports(t)});if(null!=e)return e;throw new Error("Cannot find a differ supporting object '"+t+"' of type '"+Mt(t)+"'")},t}(),ms=function(){function t(t){this.factories=t}return t.create=function(e,n){if(n){var r=n.factories.slice();e=e.concat(r)}return new t(e)},t.extend=function(e){return{provide:t,useFactory:function(n){if(!n)throw new Error("Cannot extend KeyValueDiffers without a parent injector");return t.create(e,n)},deps:[[t,new Ci,new Si]]}},t.prototype.find=function(t){var e=this.factories.find(function(e){return e.supp
1orts(t)});if(e)return e;throw new Error("Cannot find a differ supporting object '"+t+"'")},t}(),vs=[new hs],ys=[new os],gs=new ds(ys),bs=new ms(vs),_s=[{provide:io,useValue:"unknown"},jo,{provide:ko,useExisting:jo},{provide:Hi,useFactory:Ct,deps:[]},Co,so],ws=ut(null,"core",_s),xs=new $r("LocaleId"),Es=(new $r("Translations"),new $r("TranslationsFormat"),{});Es.Error=0,Es.Warning=1,Es.Ignore=2,Es[Es.Error]="Error",Es[Es.Warning]="Warning",Es[Es.Ignore]="Ignore";var Ss=function(){function t(t){}return t}();Ss.decorators=[{type:bi,args:[{providers:[Fo,{provide:Do,useExisting:Fo},to,ao,no,{provide:ds,useFactory:Ot},{provide:ms,useFactory:At},{provide:xs,useFactory:Pt,deps:[[new Ei(xs),new Si,new Ci]]}]}]}],Ss.ctorParameters=function(){return[{type:Do}]};var Ts={};Ts.NONE=0,Ts.HTML=1,Ts.STYLE=2,Ts.SCRIPT=3,Ts.URL=4,Ts.RESOURCE_URL=5,Ts[Ts.NONE]="NONE",Ts[Ts.HTML]="HTML",Ts[Ts.STYLE]="STYLE",Ts[Ts.SCRIPT]="SCRIPT",Ts[Ts.URL]="URL",Ts[Ts.RESOURCE_URL]="RESOURCE_URL";var Ms=function(){function t(){}return t.prototype.sanitize=function(t,e){},t}(),Cs=(function(){function t(){}t.prototype.view=function(){},t.prototype.nodeIndex=function(){},t.prototype.injector=function(){},t.prototype.component=function(){},t.prototype.providerTokens=function(){},t.prototype.references=function(){},t.prototype.context=function(){},t.prototype.componentRenderElement=function(){},t.prototype.renderNode=function(){},t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n]}}(),{setCurrentNode:void 0,createRootView:void 0,createEmbeddedView:void 0,createComponentView:void 0,createNgModuleRef:void 0,overrideProvider:void 0,clearProviderOverrides:void 0,checkAndUpdateView:void 0,checkNoChangesView:void 0,destroyView:void 0,resolveDep:void 0,createDebugContext:void 0,handleEvent:void 0,updateDirectives:void 0,updateRenderer:void 0,dirtyParentQueries:void 0}),Os=function(){},As=new Map,Ps="$$undefined",Rs="$$empty",Ls=0,Ns=new WeakMap,Is=/^:([^:]+):(.+)$/,ks=new Object,js=Vt(Li),Ds=Vt(bo),Fs=new Object,Us=function(t){function e(e,n,r,i,o,s){var a=t.call(this)||this;return a.selector=e,a.componentType=n,a._inputs=i,a._outputs=o,a.ngContentSelectors=s,a.viewDefFactory=r,a}return Zr.a(e,t),Object.defineProperty(e.prototype,"inputs",{get:function(){var t=[],e=this._inputs;for(var n in e){var r=e[n];t.push({propName:n,templateName:r})}return t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"outputs",{get:function(){var t=[];for(var e in this._outputs){var n=this._outputs[e];t.push({propName:e,templateName:n})}return t},enumerable:!0,configurable:!0}),e.prototype.create=function(t,e,n,r){if(!r)throw new Error("ngModule should be provided");var i=ue(this.viewDefFactory),o=i.nodes[0].element.componentProvider.nodeIndex,s=Cs.createRootView(t,e||[],n,i,r,Fs),a=Nt(s,o).instance;return n&&s.renderer.setAttribute(Lt(s,0).renderElement,"ng-version",xi.full),new Bs(s,new Vs(s),a)},e}(lo),Bs=function(t){function e(e,n,r){var i=t.call(this)||this;return i._view=e,i._viewRef=n,i._component=r,i._elDef=i._view.def.nodes[0],i}return Zr.a(e,t),Object.defineProperty(e.prototype,"location",{get:function(){return new Ho(Lt(this._view,this._elDef.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"injector",{get:function(){return new Gs(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"instance",{get:function(){return this._component},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hostView",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"changeDetectorRef",{get:function(){return this._viewRef},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"componentType",{get:function(){return this._component.constructor},enumerable:!0,configurable:!0}),e.prototype.destroy=function(){this._viewRef.destroy()},e.prototype.onDestroy=function(t){this._viewRef.onDestroy(t)},e}(co),zs=function(){function t(t,e,n){this._view=t,this._elDef=e,this._data=n,this._embeddedViews=[]}return Object.defineProperty(t.prototype,"element",{get:function(){return new Ho(this._data.renderElement)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return new Gs(this._view,this._elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parentInjector",{get:function(){for(var t=this._view,e=this._elDef.parent;!e&&t;)e=$t(t),t=t.parent;return t?new Gs(t,e):new Gs(this._view,null)},enumerable:!0,configurable:!0}),t.prototype.clear=function(){for(var t=this._embeddedViews.length,e=t-1;e>=0;e--){var n=Ve(this._data,e);Cs.destroyView(n)}},t.prototype.get=function(t){var e=this._embeddedViews[t];if(e){var n=new Vs(e);return n.attachToViewContainerRef(this),n}return null},Object.defineProperty(t.prototype,"length",{get:function(){return this._embeddedViews.length},enumerable:!0,configurable:!0}),t.prototype.createEmbeddedView=function(t,e,n){var r=t.createEmbeddedView(e||{});return this.insert(r,n),r},t.prototype.createComponent=function(t,e,n,r,i){var o=n||this.parentInjector;i||t instanceof go||(i=o.get(bo));var s=t.create(o,r,void 0,i);return this.insert(s.hostView,e),s},t.prototype.insert=function(t,e){if(t.destroyed)throw new Error("Cannot insert a destroyed View in a ViewContainer!");var n=t,r=n._view;return Ue(this._view,this._data,e,r),n.attachToViewContainerRef(this),t},t.prototype.move=function(t,e){if(t.destroyed)throw new Error("Cannot move a destroyed View in a ViewContainer!");var n=this._embeddedViews.indexOf(t._view);return Ge(this._data,n,e),t},t.prototype.indexOf=function(t){return this._embeddedViews.indexOf(t._view)},t.prototype.remove=function(t){var e=Ve(this._data,t);e&&Cs.destroyView(e)},t.prototype.detach=function(t){var e=Ve(this._data,t);return e?new Vs(e):null},t}(),Vs=function(){function t(t){this._view=t,this._viewContainerRef
vendor: 5,018 bytes, line 1
1=null,this._appRef=null}return Object.defineProperty(t.prototype,"rootNodes",{get:function(){return ce(this._view)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this._view.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return 0!=(128&this._view.state)},enumerable:!0,configurable:!0}),t.prototype.markForCheck=function(){Kt(this._view)},t.prototype.detach=function(){this._view.state&=-5},t.prototype.detectChanges=function(){var t=this._view.root.rendererFactory;t.begin&&t.begin(),Cs.checkAndUpdateView(this._view),t.end&&t.end()},t.prototype.checkNoChanges=function(){Cs.checkNoChangesView(this._view)},t.prototype.reattach=function(){this._view.state|=4},t.prototype.onDestroy=function(t){this._view.disposables||(this._view.disposables=[]),this._view.disposables.push(t)},t.prototype.destroy=function(){this._appRef?this._appRef.detachView(this):this._viewContainerRef&&this._viewContainerRef.detach(this._viewContainerRef.indexOf(this)),Cs.destroyView(this._view)},t.prototype.detachFromAppRef=function(){this._appRef=null,qe(this._view),Cs.dirtyParentQueries(this._view)},t.prototype.attachToAppRef=function(t){if(this._viewContainerRef)throw new Error("This view is already attached to a ViewContainer!");this._appRef=t},t.prototype.attachToViewContainerRef=function(t){if(this._appRef)throw new Error("This view is already attached directly to the ApplicationRef!");this._viewContainerRef=t},t}(),Hs=function(t){function e(e,n){var r=t.call(this)||this;return r._parentView=e,r._def=n,r}return Zr.a(e,t),e.prototype.createEmbeddedView=function(t){return new Vs(Cs.createEmbeddedView(this._parentView,this._def,this._def.element.template,t))},Object.defineProperty(e.prototype,"elementRef",{get:function(){return new Ho(Lt(this._parentView,this._def.nodeIndex).renderElement)},enumerable:!0,configurable:!0}),e}(Ko),Gs=function(){function t(t,e){this.view=t,this.elDef=e}return t.prototype.get=function(t,e){void 0===e&&(e=Li.THROW_IF_NOT_FOUND);var n=!!this.elDef&&0!=(33554432&this.elDef.flags);return Cs.resolveDep(this.view,this.elDef,n,{flags:0,token:t,tokenKey:Vt(t)},e)},t}(),Ws=function(){function t(t){this.delegate=t}return t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.createElement=function(t,e){var n=me(e),r=n[0],i=n[1],o=this.delegate.createElement(i,r);return t&&this.delegate.appendChild(t,o),o},t.prototype.createViewRoot=function(t){return t},t.prototype.createTemplateAnchor=function(t){var e=this.delegate.createComment("");return t&&this.delegate.appendChild(t,e),e},t.prototype.createText=function(t,e){var n=this.delegate.createText(e);return t&&this.delegate.appendChild(t,n),n},t.prototype.projectNodes=function(t,e){for(var n=0;n<e.length;n++)this.delegate.appendChild(t,e[n])},t.prototype.attachViewAfter=function(t,e){for(var n=this.delegate.parentNode(t),r=this.delegate.nextSibling(t),i=0;i<e.length;i++)this.delegate.insertBefore(n,e[i],r)},t.prototype.detachView=function(t){for(var e=0;e<t.length;e++){var n=t[e],r=this.delegate.parentNode(n);this.delegate.removeChild(r,n)}},t.prototype.destroyView=function(t,e){for(var n=0;n<e.length;n++)this.delegate.destroyNode(e[n])},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.listenGlobal=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.setElementProperty=function(t,e,n){this.delegate.setProperty(t,e,n)},t.prototype.setElementAttribute=function(t,e,n){var r=me(e),i=r[0],o=r[1];null!=n?this.delegate.setAttribute(t,o,n,i):this.delegate.removeAttribute(t,o,i)},t.prototype.setBindingDebugInfo=function(t,e,n){},t.prototype.setElementClass=function(t,e,n){n?this.delegate.addClass(t,e):this.delegate.removeClass(t,e)},t.prototype.setElementStyle=function(t,e,n){null!=n?this.delegate.setStyle(t,e,n):this.delegate.removeStyle(t,e)},t.prototype.invokeElementMethod=function(t,e,n){t[e].apply(t,n)},t.prototype.setText=function(t,e){this.delegate.setValue(t,e)},t.prototype.animate=function(){throw new Error("Renderer.animate is no longer supported!")},t}(),qs=function(){function t(t,e,n,r){this._moduleType=t,this._parent=e,this._bootstrapComponents=n,this._def=r,this._destroyListeners=[],this._destroyed=!1,Ne(this)}return t.prototype.get=function(t,e){return void 0===e&&(e=Li.THROW_IF_NOT_FOUND),Ie(this,{token:t,tokenKey:Vt(t),flags:0},e)},Object.defineProperty(t.prototype,"instance",{get:function(){return this.get(this._moduleType)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentFactoryResolver",{get:function(){return this.get(fo)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return this},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){if(this._destroyed)throw new Error("The ng module "+s(this.instance.constructor)+" has already been destroyed.");this._destroyed=!0,Fe(this,131072),this._destroyListeners.forEac
1h(function(t){return t()})},t.prototype.onDestroy=function(t){this._destroyListeners.push(t)},t}(),Zs=Vt(Uo),Xs=Vt(Vo),Ks=Vt(Ho),Ys=Vt(Yo),Js=Vt(Ko),Qs=Vt(Jo),$s=Vt(Li),ta={},ea={};ea.CreateViewNodes=0,ea.CheckNoChanges=1,ea.CheckNoChangesProjectedViews=2,ea.CheckAndUpdate=3,ea.CheckAndUpdateProjectedViews=4,ea.Destroy=5,ea[ea.CreateViewNodes]="CreateViewNodes",ea[ea.CheckNoChanges]="CheckNoChanges",ea[ea.CheckNoChangesProjectedViews]="CheckNoChangesProjectedViews",ea[ea.CheckAndUpdate]="CheckAndUpdate",ea[ea.CheckAndUpdateProjectedViews]="CheckAndUpdateProjectedViews",ea[ea.Destroy]="Destroy";var na=!1,ra=new Map,ia={};ia.create=0,ia.detectChanges=1,ia.checkNoChanges=2,ia.destroy=3,ia.handleEvent=4,ia[ia.create]="create",ia[ia.detectChanges]="detectChanges",ia[ia.checkNoChanges]="checkNoChanges",ia[ia.destroy]="destroy",ia[ia.handleEvent]="handleEvent";var oa,sa,aa,ua=/([A-Z])/g,ca=function(){function t(t,e){this.view=t,this.nodeIndex=e,null==e&&(this.nodeIndex=e=0),this.nodeDef=t.def.nodes[e];for(var n=this.nodeDef,r=t;n&&0==(1&n.flags);)n=n.parent;if(!n)for(;!n&&r;)n=$t(r),r=r.parent;this.elDef=n,this.elView=r}return Object.defineProperty(t.prototype,"elOrCompView",{get:function(){return Lt(this.elView,this.elDef.nodeIndex).componentView||this.view},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"injector",{get:function(){return $e(this.elView,this.elDef)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){return this.elOrCompView.component},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"context",{get:function(){return this.elOrCompView.context},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"providerTokens",{get:function(){var t=[];if(this.elDef)for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&t.push(n.provider.token),e+=n.childCount}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"references",{get:function(){var t={};if(this.elDef){Hr(this.elView,this.elDef,t);for(var e=this.elDef.nodeIndex+1;e<=this.elDef.nodeIndex+this.elDef.childCount;e++){var n=this.elView.def.nodes[e];20224&n.flags&&Hr(this.elView,n,t),e+=n.childCount}}return t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"componentRenderElement",{get:function(){var t=Vr(this.elOrCompView);return t?t.renderElement:void 0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"renderNode",{get:function(){return 2&this.nodeDef.flags?te(this.view,this.nodeDef):te(this.elView,this.elDef)},enumerable:!0,configurable:!0}),t.prototype.logError=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r,i;2&this.nodeDef.flags?(r=this.view.def,i=this.nodeDef.nodeIndex):(r=this.elView.def,i=this.elDef.nodeIndex);var o=zr(r,i),s=-1,a=function(){return s++,s===o?(n=t.error).bind.apply(n,[t].concat(e)):Os;var n};r.factory(a),s<o&&(t.error("Illegal state: the ViewDefinitionFactory did not call the logger!"),t.error.apply(t,e))},t}(),la=function(){function t(t){this.delegate=t}return t.prototype.createRenderer=function(t,e){return new ha(this.delegate.createRenderer(t,e))},t.prototype.begin=function(){this.delegate.begin&&this.delegate.begin()},t.prototype.end=function(){this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.delegate.whenRenderingDone?this.delegate.whenRenderingDone():Promise.resolve(null)},t}(),ha=function(){function t(t){this.delegate=t}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroyNode=function(t){bt(yt(t)),this.delegate.destroyNode&&this.delegate.destroyNode(t)},t.prototype.destroy=function(){this.delegate.destroy()},t.prototype.createElement=function(t,e){var n=this.delegate.createElement(t,e),r=Wr();if(r){var i=new es(n,null,r);i.name=t,gt(i)}return n},t.prototype.createComment=function(t){var e=this.delegate.createComment(t),n=Wr();return n&>(new ts(e,null,n)),e},t.prototype.createText=function(t){var e=this.delegate.createText(t),n=Wr();return n&>(new ts(e,null,n)),e},t.prototype.appendChild=function(t,e){var n=yt(t),r=yt(e);n&&r&&n instanceof es&&n.addChild(r),this.delegate.appendChild(t,e)},t.prototype.insertBefore=function(t,e,n){var r=yt(t),i=yt(e),o=yt(n);r&&i&&r instanceof es&&r.insertBefore(o,i),this.delegate.insertBefore(t,e,n)},t.prototype.removeChild=function(t,e){var n=yt(t),r=yt(e);n&&r&&n instanceof es&&n.removeChild(r),this.delegate.removeChild(t,e)},t.prototype.selectRootElement=function(t){var e=this.delegate.selectRootElement(t),n=Wr();return n&>(new es(e,null,n)),e},t.prototype.setAttribute=function(t,e,n,r){var i=yt(t);if(i&&i instanceof es){var o=r?r+":"+e:e;i.attributes[o]=n}this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){var r=yt(t);if(r&&r instanceof es){var i=n?n+":"+e:e;r.attributes[i]=null}this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){var n=yt(t);n&&n instanceof es&&(n.classes[e]=!0),this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){var n=yt(t);n&&n instanceof es&&(n.classes[e]=!1),this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){var i=yt(t);i&&i instanceof es&&(i.styles[e]=n),this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){var r=yt(t);r&&r instanceof es&&(r.styles[e]=null),this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){var r=yt(t);r&&r instanceof es&&(r.properties[e]=n),this.delegate.setProperty(t,e,n)},t.prototype.listen=function(t,e,n){if("string"!=typeof t){var r=yt(t);r&&r.listeners.push(new $o(e,n))}return this.delegate.listen(t,e,n)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setValue=function(t,e){return this.delegate.setValue(t,e)},t}(),pa=function(t){function e(e,n,r){var i=t.call(this)||this;return i.moduleType=e,i._bootstrapComponents=n,i._ngModuleDefFactory=r,i}return Zr.a(e,t),e.prototype.create=function(t){pr();var e=ue(this._ngModuleDefFactory);return Cs.createNgModuleRef(this.moduleType,t||Li.NULL,this._bootstrapComponents,e)},e}(_o)}).call(e,n("fRUx"))},"/zHi":function(t,e,n){"use strict";var r=n("bKpL"),i=n("+zVg");r.Observable.of=i.of},"0I3B":function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i.zip.apply(void 0,t)(this)}var i=n("SBOU");e.zipProto=r},"0L2s":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"Timeout has occurred");this.name=e.name="TimeoutError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.TimeoutError=i},"0dhf":function(t,e,n){"use strict";function r(t,e){if("function"!=typeof t)throw new TypeError("predicate is not a function");return function(n){return n.lift(new s(t,n,!1,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.find=r;var s=function(){function t(t,e,n,r){this.predicate=t,this.source=e,this.yieldIndex=n,this.thisArg=r}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source,this.yieldIndex,this.thisArg))},t}();e.FindValueOperator=s;var a=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.source=r,this.yieldIndex=i,this.thisArg=o,this.index=0}return i(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){var e=this,n=e.predicate,r=e.thisArg,i=this.index++;try{n.call(r||this,t,i,this.source)&&this.notifyComplete(this.yieldIndex?i:t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},e}(o.Subscriber);e.FindValueSubscriber=a},"0imh":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("yR50"),s=n("xFbG"),a=n("GDiU"),u=n("Lhvy"),c=n("g0Kb"),l=function(t){function e(e,n,r){void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this),this.scheduler
1=r,this._events=[],this._bufferSize=e<1?1:e,this._windowTime=n<1?1:n}return r(e,t),e.prototype.next=function(e){var n=this._getNow();this._events.push(new h(n,e)),this._trimBufferThenGetEvents(),t.prototype.next.call(this,e)},e.prototype._subscribe=function(t){var e,n=this._trimBufferThenGetEvents(),r=this.scheduler;if(this.closed)throw new u.ObjectUnsubscribedError;this.hasError?e=s.Subscription.EMPTY:this.isStopped?e=s.Subscription.EMPTY:(this.observers.push(t),e=new c.SubjectSubscription(this,t)),r&&t.add(t=new a.ObserveOnSubscriber(t,r));for(var i=n.length,o=0;o<i&&!t.closed;o++)t.next(n[o].value);return this.hasError?t.error(this.thrownError):this.isStopped&&t.complete(),e},e.prototype._getNow=function(){return(this.scheduler||o.queue).now()},e.prototype._trimBufferThenGetEvents=function(){for(var t=this._getNow(),e=this._bufferSize,n=this._windowTime,r=this._events,i=r.length,o=0;o<i&&!(t-r[o].time<n);)o++;return i>e&&(o=Math.max(o,i-e)),o>0&&r.splice(0,o),r},e}(i.Subject);e.ReplaySubject=l;var h=function(){function t(t,e){this.time=t,this.value=e}return t}()},"0lA3":function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new a(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.switchMapTo=r;var a=function(){function t(t,e){this.observable=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observable,this.resultSelector))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.inner=n,this.resultSelector=r,this.index=0}return i(e,t),e.prototype._next=function(t){var e=this.innerSubscription;e&&e.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,this.inner,t,this.index++))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){var o=this,s=o.resultSelector,a=o.destination;s?this.tryResultSelector(t,e,n,r):a.next(e)},e.prototype.tryResultSelector=function(t,e,n,r){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(t,e,n,r)}catch(t){return void a.error(t)}a.next(i)},e}(o.OuterSubscriber)},"0mJJ":function(t,e,n){"use strict";function r(t,e){return i.concatMap(function(){return t},e)}var i=n("+FJ1");e.concatMapTo=r},"0nG5":function(t,e,n){"use strict";function r(t){return i.min(t)(this)}var i=n("y3SI");e.min=r},"1Rb4":function(t,e,n){"use strict";(function(e){function n(t,n,r,i){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var o,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick(function(){t.call(null,n)});case 3:return e.nextTick(function(){t.call(null,n,r)});case 4:return e.nextTick(function(){t.call(null,n,r,i)});default:for(o=new Array(a-1),s=0;s<o.length;)o[s++]=arguments[s];return e.nextTick(function(){t.apply(null,o)})}}!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports=n:t.exports=e.nextTick}).call(e,n("1WNV"))},"1VPd":function(t,e,n){"use strict";var r=function(){function t(e,n){void 0===n&&(n=t.now),this.SchedulerAction=e,this.now=n}return t.prototype.schedule=function(t,e,n){return void 0===e&&(e=0),new this.SchedulerAction(this,t).schedule(n,e)},t.now=Date.now?Date.now:function(){return+new Date},t}();e.Scheduler=r},"1WNV":function(t,e){function n(){throw new Error("setTimeout has not been defined")}function r(){throw new Error("clearTimeout has not been defined")}function i(t){if(l===setTimeout)return setTimeout(t,0);if((l===n||!l)&&setTimeout)return l=setTimeout,setTimeout(t,0);try{return l(t,0)}catch(e){try{return l.call(null,t,0)}catch(e){return l.call(this,t,0)}}}function o(t){if(h===clearTimeout)return clearTimeout(t);if((h===r||!h)&&clearTimeout)return h=clearTimeout,clearTimeout(t);try{return h(t)}catch(e){try{return h.call(null,t)}catch(e){return h.call(this,t)}}}function s(){m&&f&&(m=!1,f.length?d=f.concat(d):v=-1,d.length&&a())}function a(){if(!m){var t=i(s);m=!0;for(var e=d.length;e;){for(f=d,d=[];++v<e;)f&&f[v].run();v=-1,e=d.length}f=null,m=!1,o(t)}}function u(t,e){this.fun=t,this.array=e}function c(){}var l,h,p=t.exports={};!function(){try{l="function"==typeof setTimeout?setTimeout:n}catch(t){l=n}try{h="function"==typeof clearTimeout?clearTimeout:r}catch(t){h=r}}();var f,d=[],m=!1,v=-1;p.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];d.push(new u(t,e)),1!==d.length||m||i(a)},u.prototype.run=function(){this.fun.apply(null,this.array)},p.title="browser",p.browser=!0,p.env={},p.argv=[],p.version="",p.versions={},p.on=c,p.addListener=c,p.once=c,p.off=c,p.removeListener=c,p.removeAllListeners=c,p.emit=c,p.prependListener=c,p.prependOnceListener=c,p.listeners=function(t){return[]},p.binding=function(t){throw new Error("process.binding is not supported")},p.cwd=function(){return"/"},p.chdir=function(t){throw new Error("process.chdir is not supported")},p.umask=function(){return 0}},"1eQ7":function(t,e,n){"use strict";function r(t,e,n){return i.first(t,e,n)(this)}var i=n("+BWq");e.first=r},"1kAr":function(t,e,n){"use strict";function r(t){return i.mapTo(t)(this)}var i=n("6d3x");e.mapTo=r},"1pbG":function(t,e,n){"use strict";var r=n("bKpL"),i=n("NkQZ");r.Observable.prototype.switchMapTo=i.switchMapTo},"23I1":function(t,e,n){"use strict";var r=n("MzWM");e.defer=r.DeferObservable.create},"2B7B":function(t,e,n){"use strict";function r(t){var e=t.Symbol;if("function"==typeof e)return e.iterator||(e.iterator=e("iterator polyfill")),e.iterator;var n=t.Set;if(n&&"function"==typeof(new n)["@@iterator"])return"@@iterator";var r=t.Map;if(r)for(var i=Object.getOwnPropertyNames(r.prototype),o=0;o<i.length;++o){var s=i[o];if("entries"!==s&&"size"!==s&&r.prototype[s]===r.prototype.entries)return s}return"@@iterator"}var i=n("zijX");
1e.symbolIteratorPonyfill=r,e.iterator=r(i.root),e.$$iterator=e.iterator},"2Rhf":function(t,e,n){"use strict";function r(t){return i.skipUntil(t)(this)}var i=n("UHtL");e.skipUntil=r},"2Sjb":function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new u(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("RdI5"),a=n("XRvs");e.distinctUntilChanged=r;var u=function(){function t(t,e){this.compare=t,this.keySelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compare,this.keySelector))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.keySelector=r,this.hasKey=!1,"function"==typeof n&&(this.compare=n)}return i(e,t),e.prototype.compare=function(t,e){return t===e},e.prototype._next=function(t){var e=this.keySelector,n=t;if(e&&(n=s.tryCatch(this.keySelector)(t))===a.errorObject)return this.destination.error(a.errorObject.e);var r=!1;if(this.hasKey){if((r=s.tryCatch(this.compare)(this.key,n))===a.errorObject)return this.destination.error(a.errorObject.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=n,this.destination.next(t))},e}(o.Subscriber)},"2UX5":function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=i.async),o.timeout(t,e)(this)}var i=n("IhB/"),o=n("qbt9");e.timeout=r},"2l91":function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new a(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.debounce=r;var a=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector))},t}(),u=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1,this.durationSubscription=null}return i(e,t),e.prototype._next=function(t){try{var e=this.durationSelector.call(this,t);e&&this._tryNext(t,e)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.emitValue(),this.destination.complete()},e.prototype._tryNext=function(t,e){var n=this.durationSubscription;this.value=t,this.hasValue=!0,n&&(n.unsubscribe(),this.remove(n)),n=s.subscribeToResult(this,e),n.closed||this.add(this.durationSubscription=n)},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){if(this.hasValue){var e=this.value,n=this.durationSubscription;n&&(this.durationSubscription=null,n.unsubscribe(),this.remove(n)),this.value=null,this.hasValue=!1,t.prototype._next.call(this,e)}},e}(o.OuterSubscriber)},"3N4h":function(t,e,n){"use strict";function r(t){return i.window(t)(this)}var i=n("7tal");e.window=r},"3hV4":function(t,e,n){"use strict";(function(e){function n(t){var n=4*t+17,r=[],i=new e(n);i.fill(0),i=[].slice.call(i);for(var o=0;o<n;o++)r[o]=i.slice();return r}function r(t){for(var e=t.length,n=-3;n<=3;n++)for(var r=-3;r<=3;r++){var i=Math.max(n,r),o=Math.min(n,r),s=2==i&&o>=-2||-2==o&&i<=2?128:129;t[3+n][3+r]=s,t[3+n][e-4+r]=s,t[e-4+n][3+r]=s}for(var n=0;n<8;n++)t[7][n]=t[n][7]=t[7][e-n-1]=t[n][e-8]=t[e-8][n]=t[e-1-n][7]=128}function i(t){var e=t.length;if(e>21){var n=e-13,r=Math.round(n/Math.ceil(n/28));r%2&&r++;for(var i=[],o=n+6;o>10;o-=r)i.unshift(o);i.unshift(6);for(var s=0;s<i.length;s++)for(var a=0;a<i.length;a++){var u=i[s],c=i[a];if(!t[u][c])for(var l=-2;l<=2;l++)for(var h=-2;h<=2;h++){var p=Math.max(l,h),f=Math.min(l,h),d=1==p&&f>=-1||-1==f&&p<=1?128:129;t[u+l][c+h]=d}}}for(var s=8;s<e-8;s++)t[6][s]=t[s][6]=s%2?128:129}function o(t){for(var e=t.length,n=0;n<8;n++)6!=n&&(t[8][n]=t[n][8]=128),t[8][e-1-n]=128,t[e-1-n][8]=128;if(t[8][8]=128,t[e-8][8]=129,!(e<45))for(var n=e-11;n<e-8;n++)for(var r=0;r<6;r++)t[n][r]=t[r][n]=128}function s(t){function e(e){return 1&t[o][u+e]}function n(e){return 1&t[o+e][u]}for(var r=t.length,i=0,o=0;o<r;o++){for(var s=1&t[o][0],a=1,u=1;u<r;u++){var c=1&t[o][u];c!=s?(a>=5&&(i+=a-2),s=c,a=1):a++}a>=5&&(i+=a-2)}for(var u=0;u<r;u++){for(var s=1&t[0][u],a=1,o=1;o<r;o++){var c=1&t[o][u];c!=s?(a>=5&&(i+=a-2),s=c,a=1):a++}a>=5&&(i+=a-2)}for(var o=0;o<r-1;o++)for(var u=0;u<r-1;u++){var l=t[o][u]+t[o][u+1]+t[o+1][u]+t[o+1][u+1]&7;0!=l&&4!=l||(i+=3)}for(var o=0;o<r;o++)for(var u=0;u<r;u++)u<r-6&&e(0)&&!e(1)&&e(2)&&e(3)&&e(4)&&!e(5)&&e(6)&&(u>=4&&!(e(-4)||e(-3)||e(-2)||e(-1))&&(i+=40),u<r-10&&!(e(7)||e(8)||e(9)||e(10))&&(i+=40)),o<r-6&&n(0)&&!n(1)&&n(2)&&n(3)&&n(4)&&!n(5)&&n(6)&&(o>=4&&!(n(-4)||n(-3)||n(-2)||n(-1))&&(i+=40),o<r-10&&!(n(7)||n(8)||n(9)||n(10))&&(i+=40));for(var h=0,o=0;o<r;o++)for(var u=0;u<r;u++)1&t[o][u]&&h++;return i+=10*Math.floor(Math.abs(10-20*h/(r*r)))}function a(t){var e=n(t.version);r(e),i(e),o(e);for(var a=1/0,l=0,h=0;h<8;h++){c(e,t,h),u(e,t.ec_level,h);var p=s(e);p<a&&(a=p,l=h)}return c(e,t,l),u(e,t.ec_level,l),e.map(function(t){return t.map(function(t){return 1&t})})}var u=function(){for(var t=Array(32),e=Array(40),n=0;n<32;n++){for(var r=n<<10,i=5;i>0;i--)r>>>9+i&&(r^=1335<<i-1);t[n]=21522^(r|n<<10)}for(var o=7;o<=40;o++){for(var r=o<<12,i=6;i>0;i--)r>>>11+i&&(r^=7973<<i-1);e[o]=r|o<<12}var s={L:1,M:0,Q:3,H:2};return function(n,r,i){function o(t){return u>>t&1?129:128}for(var a=n.length,u=t[s[r]<<3|i],c=0;c<8;c++)n[8][a-1-c]=o(c),c<6&&(n[c][8]=o(c));for(var c=8;c<15;c++)n[a-15+c][8]=o(c),c>8&&(n[8][14-c]=o(c));n[7][8]=o(6),n[8][8]=o(7),n[8][7]=o(8);var l=e[(a-17)/4];if(l)for(var c=0;c<6;c++)for(var h=0;h<3;h++)n[a-11+h][c]=n[c][a-11+h]=function(t){return l>>t&1?129:128}(3*c+h)}}(),c=function(){var t=[function(t,e){return(t+e)%2==0},function(t,e){return t%2==0},function(t,e){return e%3==0},function(t,e){return(t+e)%3==0},function(t,e){return(Math.floor(t/2)+Math.floor(e/3))%2==0},function(t,e){return t*e%2+t*e%3==0},function(t,e){return(t*e%2+t*e%3)%2==0},function(t,e){return(t*e%3+(t+e)%2)%2==0}];return function(e,n,r){function i(t){for(var n=128;n;n>>=1){var r=!!(n&t);l(s,a)&&(r=!r),e[s][a]=r?1:0,o()}}function o(){do{if(a%2^a<6?c<0&&0==s||c>0&&s==u-1?(a--,c=-c):(a++,s+=c):a--,6==a&&a--,a<0)return!1}while(240&e[s][a]);return!0}var s,a,u=e.length,c=-1;s=a=u-1;for(var l=t[r],h=n.blocks[n.blocks.length-1].length,p=0;p<h;p++)for(var f=0;f<n.blocks.length;f++)n.blocks[f].length<=p||i(n.blocks[f][p]);h=n.ec_len;for(var p=0;p<h;p++)for(var f=0;f<n.ec.length;f++)i(n.ec[f][p]);if(a>-1)do{e[s][a]=l(s,a)?1:0}while(o())}}();t.exports={getMatrix:a,init:n,fillFinders:r,fillAlignAndTiming:i,fillStub:o,fillReserved:u,fillData:c,calculatePenalty:s}}).call(e,n("v0OU").Buffer)},"3lsR":function(t,e,n){"use strict";var r=n("bKpL"),i=function(){function t(t,e,n){this.kind=t,this.value=e,this.error=n,this.hasValue="N"===t}return t.prototype.observe=function(t){switch(this.kind){case"N":return t.next&&t.next(this.value);case"E":return t.error&&t.error(this.error);case"C":return t.complete&&t.complete()}},t.prototype.do=function(t,e,n){switch(this.kind){case"N":return t&&t(this.value);case"E":return e&&e(this.error);case"C":return n&&n()}},t.prototype.accept=function(t,e,n){return t&&"function"==typeof t.next?this.observe(t):this.do(t,e,n)},t.prototype.toObservable=function(){switch(this.kind){case"N":return r.Observable.of(this.value);case"E":return r.Observable.throw(this.error);case"C":return r.Observable.empty()}throw new Error("unexpected notification kind value")},t.createNext=function(e){return void 0!==e?new t("N",e):t.undefinedValueNotification},t.createError=function(e){return new t("E",void 0,e)},t.createComplete=function(){return t.completeNotification},t.completeNotification=new t("C"),t.undefinedValueNotification=new t("N",void 0),t}();e.Notification=i},"422b":function(t,e,n){"use strict";function r(t,e){return i.filter(t,e)(this)}var i=n("Hd11");e.filter=r},"4HZJ":function(t,e,n){"use strict";function r(t,e,n){return function(r){return r.lift(new s(t,e,n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");
1e.tap=r;var s=function(){function t(t,e,n){this.nextOrObserver=t,this.error=e,this.complete=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.nextOrObserver,this.error,this.complete))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e);var s=new o.Subscriber(n,r,i);s.syncErrorThrowable=!0,this.add(s),this.safeSubscriber=s}return i(e,t),e.prototype._next=function(t){var e=this.safeSubscriber;e.next(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.next(t)},e.prototype._error=function(t){var e=this.safeSubscriber;e.error(t),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.error(t)},e.prototype._complete=function(){var t=this.safeSubscriber;t.complete(),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.complete()},e}(o.Subscriber)},"4JlW":function(t,e,n){"use strict";var r=n("bKpL"),i=n("QgC4");r.Observable.webSocket=i.webSocket},"56vs":function(t,e,n){"use strict";function r(t){return i.skipWhile(t)(this)}var i=n("aL6N");e.skipWhile=r},"5E84":function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}t.exports=r;var i=n("C7jF"),o=n("VIKU");o.inherits=n("lDCR"),o.inherits(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},"5NGA":function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=null),function(n){return n.lift(new s(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.bufferCount=r;var s=function(){function t(t,e){this.bufferSize=t,this.startBufferEvery=e,this.subscriberClass=e&&t!==e?u:a}return t.prototype.call=function(t,e){return e.subscribe(new this.subscriberClass(t,this.bufferSize,this.startBufferEvery))},t}(),a=function(t){function e(e,n){t.call(this,e),this.bufferSize=n,this.buffer=[]}return i(e,t),e.prototype._next=function(t){var e=this.buffer;e.push(t),e.length==this.bufferSize&&(this.destination.next(e),this.buffer=[])},e.prototype._complete=function(){var e=this.buffer;e.length>0&&this.destination.next(e),t.prototype._complete.call(this)},e}(o.Subscriber),u=function(t){function e(e,n,r){t.call(this,e),this.bufferSize=n,this.startBufferEvery=r,this.buffers=[],this.count=0}return i(e,t),e.prototype._next=function(t){var e=this,n=e.bufferSize,r=e.startBufferEvery,i=e.buffers,o=e.count;this.count++,o%r==0&&i.push([]);for(var s=i.length;s--;){var a=i[s];a.push(t),a.length===n&&(i.splice(s,1),this.destination.next(a))}},e.prototype._complete=function(){for(var e=this,n=e.buffers,r=e.destination;n.length>0;){var i=n.shift();i.length>0&&r.next(i)}t.prototype._complete.call(this)},e}(o.Subscriber)},"5p6H":function(t,e,n){"use strict";var r=n("bKpL"),i=n("TIdC");r.Observable.prototype.mergeAll=i.mergeAll},"5r3W":function(t,e,n){"use strict";function r(t){return void 0===t&&(t=-1),function(e){return e.lift(new s(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.retry=r;var s=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.count,this.source))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this,r=n.source,i=n.count;if(0===i)return t.prototype.error.call(this,e);i>-1&&(this.count=i-1),r.subscribe(this._unsubscribeAndRecycle())}},e}(o.Subscriber)},"5uCp":function(t,e,n){"use strict";var r=n("bKpL"),i=n("Lqs2");r.Observable.prototype.take=i.take},"5v8a":function(t,e,n){"use strict";var r=n("bKpL"),i=n("lx+J");r.Observable.prototype.map=i.map},"5x23":function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new s(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.takeWhile=r;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.index=0}return i(e,t),e.prototype._next=function(t){var e,n=this.destination;try{e=this.predicate(t,this.index++)}catch(t){return void n.error(t)}this.nextOrComplete(t,e)},e.prototype.nextOrComplete=function(t,e){var n=this.destination;Boolean(e)?n.next(t):n.complete()},e}(o.Subscriber)},"60lp":function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=a.async),function(n){return n.lift(new u(t,e))}}function i(t){var e=t.subscriber,n=t.period;e.notifyNext(),this.schedule(t,n)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}
1,s=n("T14+"),a=n("IhB/");e.sampleTime=r;var u=function(){function t(t,e){this.period=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.period,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.period=n,this.scheduler=r,this.hasValue=!1,this.add(r.schedule(i,n,{subscriber:this,period:n}))}return o(e,t),e.prototype._next=function(t){this.lastValue=t,this.hasValue=!0},e.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},e}(s.Subscriber)},"60yU":function(t,e,n){"use strict";function r(t){return i.repeatWhen(t)(this)}var i=n("g9kf");e.repeatWhen=r},"67Ck":function(t,e,n){"use strict";var r=n("bKpL"),i=n("56vs");r.Observable.prototype.skipWhile=i.skipWhile},"6DBm":function(t,e,n){"use strict";var r=n("bKpL"),i=n("+c7d");r.Observable.prototype.combineLatest=i.combineLatest},"6JjX":function(t,e,n){"use strict";function r(){return i.switchAll()(this)}var i=n("rhfi");e._switch=r},"6NKQ":function(t,e,n){"use strict";var r=n("bKpL"),i=n("kkQ5");r.Observable.prototype.scan=i.scan},"6P86":function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null,r=null;return i.isScheduler(t[t.length-1])&&(r=t.pop()),"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&o.isArray(t[0])&&(t=t[0]),new s.ArrayObservable(t,r).lift(new a.CombineLatestOperator(n))}var i=n("MicL"),o=n("NSJx"),s=n("wZOE"),a=n("H4tt");e.combineLatest=r},"6Pt6":function(t,e,n){"use strict";t.exports={2:"need dictionary",1:"stream end",0:"","-1":"file error","-2":"stream error","-3":"data error","-4":"insufficient memory","-5":"buffer error","-6":"incompatible version"}},"6QEA":function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new u(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("xFbG"),s=n("ktfo"),a=n("yW9Z");e.bufferToggle=r;var u=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.openings,this.closingSelector))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype._next=function(t){for(var e=this.contexts,n=e.length,r=0;r<n;r++)e[r].buffer.push(t)},e.prototype._error=function(e){for(var n=this.contexts;n.length>0;){var r=n.shift();r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this.contexts;e.length>0;){var n=e.shift();this.destination.next(n.buffer),n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){t?this.closeBuffer(t):this.openBuffer(e)},e.prototype.notifyComplete=function(t){this.closeBuffer(t.context)},e.prototype.openBuffer=function(t){try{var e=this.closingSelector,n=e.call(this,t);n&&this.trySubscribe(n)}catch(t){this._error(t)}},e.prototype.closeBuffer=function(t){var e=this.contexts;if(e&&t){var n=t.buffer,r=t.subscription;this.destination.next(n),e.splice(e.indexOf(t),1),this.remove(r),r.unsubscribe()}},e.prototype.trySubscribe=function(t){var e=this.contexts,n=[],r=new o.Subscription,i={buffer:n,subscription:r};e.push(i);var a=s.subscribeToResult(this,t,i);!a||a.closed?this.closeBuffer(i):(a.context=i,this.add(a),r.add(a))},e}(a.OuterSubscriber)},"6QZ3":function(t,e,n){"use strict";(function(e,r){function i(t){var e=this;this.next=null,this.entry=null,this.finish=function(){M(e,t)}}function o(t){return N.from(t)}function s(t){return N.isBuffer(t)||t instanceof I}function a(){}function u(t,e){O=O||n("dJzE"),t=t||{},this.objectMode=!!t.objectMode,e instanceof O&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var r=t.highWaterMark,o=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:o,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var s=!1===t.decodeStrings;this.decodeStrings=!s,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){y(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new i(this)}function c(t){if(O=O||n("dJzE"),!(j.call(c,this)||this instanceof O))return new c(t);this._writableState=new u(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),L.call(this)}function l(t,e){var n=new Error("write after end");t.emit("error",n),C(e,n)}function h(t,e,n,r){var i=!0,o=!1;return null===n?o=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(o=new TypeError("Invalid non-string/buffer chunk")),o&&(t.emit("error",o),C(r,o),i=!1),i}function p(t,e,n){return t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=N.from(e,n)),e}
vendor: 5,046 bytes, line 1
1function f(t,e,n,r,i,o){if(!n){var s=p(e,r,i);r!==s&&(n=!0,i="buffer",r=s)}var a=e.objectMode?1:r.length;e.length+=a;var u=e.length<e.highWaterMark;if(u||(e.needDrain=!0),e.writing||e.corked){var c=e.lastBufferedRequest;e.lastBufferedRequest={chunk:r,encoding:i,isBuf:n,callback:o,next:null},c?c.next=e.lastBufferedRequest:e.bufferedRequest=e.lastBufferedRequest,e.bufferedRequestCount+=1}else d(t,e,!1,a,r,i,o);return u}function d(t,e,n,r,i,o,s){e.writelen=r,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(i,e.onwrite):t._write(i,o,e.onwrite),e.sync=!1}function m(t,e,n,r,i){--e.pendingcb,n?(C(i,r),C(S,t,e),t._writableState.errorEmitted=!0,t.emit("error",r)):(i(r),t._writableState.errorEmitted=!0,t.emit("error",r),S(t,e))}function v(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}function y(t,e){var n=t._writableState,r=n.sync,i=n.writecb;if(v(n),e)m(t,n,r,e,i);else{var o=w(n);o||n.corked||n.bufferProcessing||!n.bufferedRequest||_(t,n),r?A(g,t,n,o,i):g(t,n,o,i)}}function g(t,e,n,r){n||b(t,e),e.pendingcb--,r(),S(t,e)}function b(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}function _(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var r=e.bufferedRequestCount,o=new Array(r),s=e.corkedRequestsFree;s.entry=n;for(var a=0,u=!0;n;)o[a]=n,n.isBuf||(u=!1),n=n.next,a+=1;o.allBuffers=u,d(t,e,!0,e.length,o,"",s.finish),e.pendingcb++,e.lastBufferedRequest=null,s.next?(e.corkedRequestsFree=s.next,s.next=null):e.corkedRequestsFree=new i(e)}else{for(;n;){var c=n.chunk,l=n.encoding,h=n.callback;if(d(t,e,!1,e.objectMode?1:c.length,c,l,h),n=n.next,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequestCount=0,e.bufferedRequest=n,e.bufferProcessing=!1}function w(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function x(t,e){t._final(function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),S(t,e)})}function E(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,C(x,t,e)):(e.prefinished=!0,t.emit("prefinish")))}function S(t,e){var n=w(e);return n&&(E(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}function T(t,e,n){e.ending=!0,S(t,e),n&&(e.finished?C(n):t.once("finish",n)),e.ended=!0,t.writable=!1}function M(t,e,n){var r=t.entry;for(t.entry=null;r;){var i=r.callback;e.pendingcb--,i(n),r=r.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}var C=n("1Rb4");t.exports=c;var O,A=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?setImmediate:C;c.WritableState=u;var P=n("VIKU");P.inherits=n("lDCR");var R={deprecate:n("7RTT")},L=n("wHgO"),N=n("zOKz").Buffer,I=r.Uint8Array||function(){},k=n("iAGO");P.inherits(c,L),u.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(u.prototype,"buffer",{get:R.deprecate(function(){return this.getBuffer()},"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}();var j;"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(j=Function.prototype[Symbol.hasInstance],Object.defineProperty(c,Symbol.hasInstance,{value:function(t){return!!j.call(this,t)||t&&t._writableState instanceof u}})):j=function(t){return t instanceof this},c.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},c.prototype.write=function(t,e,n){var r=this._writableState,i=!1,u=s(t)&&!r.objectMode;return u&&!N.isBuffer(t)&&(t=o(t)),"function"==typeof e&&(n=e,e=null),u?e="buffer":e||(e=r.defaultEncoding),"function"!=typeof n&&(n=a),r.ended?l(this,n):(u||h(this,r,t,n))&&(r.pendingcb++,i=f(this,r,u,t,e,n)),i},c.prototype.cork=function(){this._writableState.corked++},c.prototype.uncork=function(){var t=this._writableState;t.corked&&(t.corked--,t.writing||t.corked||t.finished||t.bufferProcessing||!t.bufferedRequest||_(this,t))},c.prototype.setDefaultEncoding=function(t){if("string"==typeof t&&(t=t.toLowerCase()),!(["hex","utf8","utf-8","ascii","binary","base64","ucs2","ucs-2","utf16le","utf-16le","raw"].indexOf((t+"").toLowerCase())>-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},c.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},c.prototype._writev=null,c.prototype.end=function(t,e,n){var r=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!==t&&void 0!==t&&this.write(t,e),r.corked&&(r.corked=1,this.uncork()),r.ending||r.finished||T(this,r,n)},Object.defineProperty(c.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),c.prototype.destroy=k.destroy,c.prototype._undestroy=k.undestroy,c.prototype._destroy=function(t,e){this.end(),e(t)}}).call(e,n("1WNV"),n("fRUx"))},"6Shc":function(t,e,n){"use strict";
1t.exports={Z_NO_FLUSH:0,Z_PARTIAL_FLUSH:1,Z_SYNC_FLUSH:2,Z_FULL_FLUSH:3,Z_FINISH:4,Z_BLOCK:5,Z_TREES:6,Z_OK:0,Z_STREAM_END:1,Z_NEED_DICT:2,Z_ERRNO:-1,Z_STREAM_ERROR:-2,Z_DATA_ERROR:-3,Z_BUF_ERROR:-5,Z_NO_COMPRESSION:0,Z_BEST_SPEED:1,Z_BEST_COMPRESSION:9,Z_DEFAULT_COMPRESSION:-1,Z_FILTERED:1,Z_HUFFMAN_ONLY:2,Z_RLE:3,Z_FIXED:4,Z_DEFAULT_STRATEGY:0,Z_BINARY:0,Z_TEXT:1,Z_UNKNOWN:2,Z_DEFLATED:8}},"6Xbx":function(t,e,n){"use strict";function r(t,e){function n(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)}e.a=r;var i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n])};Object.assign},"6d3x":function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new s(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.mapTo=r;var s=function(){function t(t){this.value=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.value))},t}(),a=function(t){function e(e,n){t.call(this,e),this.value=n}return i(e,t),e.prototype._next=function(t){this.destination.next(this.value)},e}(o.Subscriber)},"6jp4":function(t,e,n){"use strict";function r(t){return t instanceof Date&&!isNaN(+t)}e.isDate=r},"6nek":function(t,e,n){"use strict";var r=n("q+5A");e.interval=r.IntervalObservable.create},"7JOC":function(t,e,n){"use strict";var r=n("OWbQ");e.from=r.FromObservable.create},"7Obz":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("I2Y9"),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(i.AsyncScheduler);e.AnimationFrameScheduler=o},"7PW3":function(t,e,n){"use strict";var r=n("T5Q1");e.using=r.UsingObservable.create},"7RTT":function(t,e,n){(function(e){function n(t,e){function n(){if(!i){if(r("throwDeprecation"))throw new Error(e);r("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}if(r("noDeprecation"))return t;var i=!1;return n}function r(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=n}).call(e,n("fRUx"))},"7WRt":function(t,e){e.read=function(t,e,n,r,i){var o,s,a=8*i-r-1,u=(1<<a)-1,c=u>>1,l=-7,h=n?i-1:0,p=n?-1:1,f=t[e+h];for(h+=p,o=f&(1<<-l)-1,f>>=-l,l+=a;l>0;o=256*o+t[e+h],h+=p,l-=8);for(s=o&(1<<-l)-1,o>>=-l,l+=r;l>0;s=256*s+t[e+h],h+=p,l-=8);if(0===o)o=1-c;else{if(o===u)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,r),o-=c}return(f?-1:1)*s*Math.pow(2,o-r)},e.write=function(t,e,n,r,i,o){var s,a,u,c=8*o-i-1,l=(1<<c)-1,h=l>>1,p=23===i?Math.pow(2,-24)-Math.pow(2,-77):0,f=r?0:o-1,d=r?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=l):(s=Math.floor(Math.log(e)/Math.LN2),e*(u=Math.pow(2,-s))<1&&(s--,u*=2),e+=s+h>=1?p/u:p*Math.pow(2,1-h),e*u>=2&&(s++,u/=2),s+h>=l?(a=0,s=l):s+h>=1?(a=(e*u-1)*Math.pow(2,i),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,i),s=0));i>=8;t[n+f]=255&a,f+=d,a/=256,i-=8);for(s=s<<i|a,c+=i;c>0;t[n+f]=255&s,f+=d,s/=256,c-=8);t[n+f-d]|=128*m}},"7dLC":function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i.race.apply(void 0,t)(this)}var i=n("XWpj"),o=n("YofN");e.raceStatic=o.race,e.race=r},"7kbP":function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length||2===t.length&&i.isScheduler(t[1])?s.from(t[0]):a.concatAll()(o.of.apply(void 0,t))}var i=n("MicL"),o=n("+zVg"),s=n("7JOC"),a=n("NiCh");e.concat=r},"7rqg":function(t,e,n){"use strict";var r=n("bKpL"),i=n("TQn8");r.Observable.prototype.concatMap=i.concatMap},"7tal":function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new u(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("yW9Z"),a=n("ktfo");e.window=r;var u=function(){function t(t){this.windowBoundaries=t}return t.prototype.call=function(t,e){var n=new c(t),r=e.subscribe(n);return r.closed||n.add(a.subscribeToResult(n,this.windowBoundaries)),r},t}(),c=function(t){function e(e){t.call(this,e),this.window=new o.Subject,e.next(this.window)}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this._complete()},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t)},e.prototype._complete=function(){this.window.complete(),this.destination.complete()},e.prototype._unsubscribe=function(){this.window=null},e.prototype.openWindow=function(){var t=this.window;t&&t.complete();var e=this.destination,n=this.window=new o.Subject;e.next(n)},e}(s.OuterSubscriber)},"7u+W":function(t,e,n){"use strict";var r=n("bKpL"),i=n("QU9E");r.Observable.fromPromise=i.fromPromise},"7xz3":function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new i.CombineLatestOperator(t))}}var i=n("H4tt");e.combineAll=r},"82j9":function(t,e){},"86mp":function(t,e,n){"use strict";var r=n("bKpL"),i=n("s6AU");r.Observable.prototype.takeWhile=i.takeWhile}
1,"89am":function(t,e,n){"use strict";var r=n("bKpL"),i=n("vokw");r.Observable.prototype.expand=i.expand},"8Ben":function(t,e,n){"use strict";function r(t){return t(this)}e.letProto=r},"8H5Y":function(t,e,n){"use strict";function r(t,e,n,r){return function(i){return i.lift(new h(t,e,n,r))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("xFbG"),a=n("bKpL"),u=n("rlar"),c=n("R61s"),l=n("etpI");e.groupBy=r;var h=function(){function t(t,e,n,r){this.keySelector=t,this.elementSelector=e,this.durationSelector=n,this.subjectSelector=r}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},t}(),p=function(t){function e(e,n,r,i,o){t.call(this,e),this.keySelector=n,this.elementSelector=r,this.durationSelector=i,this.subjectSelector=o,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return i(e,t),e.prototype._next=function(t){var e;try{e=this.keySelector(t)}catch(t){return void this.error(t)}this._group(t,e)},e.prototype._group=function(t,e){var n=this.groups;n||(n=this.groups="string"==typeof e?new l.FastMap:new c.Map);var r,i=n.get(e);if(this.elementSelector)try{r=this.elementSelector(t)}catch(t){this.error(t)}else r=t;if(!i){i=this.subjectSelector?this.subjectSelector():new u.Subject,n.set(e,i);var o=new d(e,i,this);if(this.destination.next(o),this.durationSelector){var s=void 0;try{s=this.durationSelector(new d(e,i))}catch(t){return void this.error(t)}this.add(s.subscribe(new f(e,i,this)))}}i.closed||i.next(r)},e.prototype._error=function(t){var e=this.groups;e&&(e.forEach(function(e,n){e.error(t)}),e.clear()),this.destination.error(t)},e.prototype._complete=function(){var t=this.groups;t&&(t.forEach(function(t,e){t.complete()}),t.clear()),this.destination.complete()},e.prototype.removeGroup=function(t){this.groups.delete(t)},e.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&t.prototype.unsubscribe.call(this))},e}(o.Subscriber),f=function(t){function e(e,n,r){t.call(this,n),this.key=e,this.group=n,this.parent=r}return i(e,t),e.prototype._next=function(t){this.complete()},e.prototype._unsubscribe=function(){var t=this,e=t.parent,n=t.key;this.key=this.parent=null,e&&e.removeGroup(n)},e}(o.Subscriber),d=function(t){function e(e,n,r){t.call(this),this.key=e,this.groupSubject=n,this.refCountSubscription=r}return i(e,t),e.prototype._subscribe=function(t){var e=new s.Subscription,n=this,r=n.refCountSubscription,i=n.groupSubject;return r&&!r.closed&&e.add(new m(r)),e.add(i.subscribe(t)),e},e}(a.Observable);e.GroupedObservable=d;var m=function(t){function e(e){t.call(this),this.parent=e,e.count++}return i(e,t),e.prototype.unsubscribe=function(){var e=this.parent;e.closed||this.closed||(t.prototype.unsubscribe.call(this),e.count-=1,0===e.count&&e.attemptedToUnsubscribe&&e.unsubscribe())},e}(s.Subscription)},"8Jh8":function(t,e,n){"use strict";function r(t){return i.takeUntil(t)(this)}var i=n("y3aq");e.takeUntil=r},"8efI":function(t,e,n){"use strict";function r(t,e){return i.distinct(t,e)(this)}var i=n("y+rW");e.distinct=r},"8kWd":function(t,e,n){"use strict";function r(t){for(var e=t.length;--e>=0;)t[e]=0}function i(t,e,n,r,i){this.static_tree=t,this.extra_bits=e,this.extra_base=n,this.elems=r,this.max_length=i,this.has_stree=t&&t.length}function o(t,e){this.dyn_tree=t,this.max_code=0,this.stat_desc=e}function s(t){return t<256?ot[t]:ot[256+(t>>>7)]}function a(t,e){t.pending_buf[t.pending++]=255&e,t.pending_buf[t.pending++]=e>>>8&255}function u(t,e,n){t.bi_valid>Z-n?(t.bi_buf|=e<<t.bi_valid&65535,a(t,t.bi_buf),t.bi_buf=e>>Z-t.bi_valid,t.bi_valid+=n-Z):(t.bi_buf|=e<<t.bi_valid&65535,t.bi_valid+=n)}function c(t,e,n){u(t,n[2*e],n[2*e+1])}function l(t,e){var n=0;do{n|=1&t,t>>>=1,n<<=1}while(--e>0);return n>>>1}function h(t){16===t.bi_valid?(a(t,t.bi_buf),t.bi_buf=0,t.bi_valid=0):t.bi_valid>=8&&(t.pending_buf[t.pending++]=255&t.bi_buf,t.bi_buf>>=8,t.bi_valid-=8)}function p(t,e){var n,r,i,o,s,a,u=e.dyn_tree,c=e.max_code,l=e.stat_desc.static_tree,h=e.stat_desc.has_stree,p=e.stat_desc.extra_bits,f=e.stat_desc.extra_base,d=e.stat_desc.max_length,m=0;for(o=0;o<=q;o++)t.bl_count[o]=0;for(u[2*t.heap[t.heap_max]+1]=0,n=t.heap_max+1;n<W;n++)r=t.heap[n],o=u[2*u[2*r+1]+1]+1,o>d&&(o=d,m++),u[2*r+1]=o,r>c||(t.bl_count[o]++,s=0,r>=f&&(s=p[r-f]),a=u[2*r],t.opt_len+=a*(o+s),h&&(t.static_len+=a*(l[2*r+1]+s)));if(0!==m){do{for(o=d-1;0===t.bl_count[o];)o--;t.bl_count[o]--,t.bl_count[o+1]+=2,t.bl_count[d]--,m-=2}while(m>0);for(o=d;0!==o;o--)for(r=t.bl_count[o];0!==r;)(i=t.heap[--n])>c||(u[2*i+1]!==o&&(t.opt_len+=(o-u[2*i+1])*u[2*i],u[2*i+1]=o),r--)}}function f(t,e,n){var r,i,o=new Array(q+1),s=0;for(r=1;r<=q;r++)o[r]=s=s+n[r-1]<<1;for(i=0;i<=e;i++){var a=t[2*i+1];0!==a&&(t[2*i]=l(o[a]++,a))}}function d(){var t,e,n,r,o,s=new Array(q+1);for(n=0,r=0;r<B-1;r++)for(at[r]=n,t=0;t<1<<$[r];t++)st[n++]=r;for(st[n-1]=r,o=0,r=0;r<16;r++)for(ut[r]=o,t=0;t<1<<tt[r];t++)ot[o++]=r;for(o>>=7;r<H;r++)for(ut[r]=o<<7,t=0;t<1<<tt[r]-7;t++)ot[256+o++]=r;for(e=0;e<=q;e++)s[e]=0;for(t=0;t<=143;)rt[2*t+1]=8,t++,s[8]++;for(;t<=255;)rt[2*t+1]=9,t++,s[9]++;for(;t<=279;)rt[2*t+1]=7,t++,s[7]++;for(;t<=287;)rt[2*t+1]=8,t++,s[8]++;for(f(rt,V+1,s),t=0;t<H;t++)it[2*t+1]=5,it[2*t]=l(t,5);
vendor: 5,821 bytes, line 1
1ct=new i(rt,$,z+1,V,q),lt=new i(it,tt,0,H,q),ht=new i(new Array(0),et,0,G,X)}function m(t){var e;for(e=0;e<V;e++)t.dyn_ltree[2*e]=0;for(e=0;e<H;e++)t.dyn_dtree[2*e]=0;for(e=0;e<G;e++)t.bl_tree[2*e]=0;t.dyn_ltree[2*K]=1,t.opt_len=t.static_len=0,t.last_lit=t.matches=0}function v(t){t.bi_valid>8?a(t,t.bi_buf):t.bi_valid>0&&(t.pending_buf[t.pending++]=t.bi_buf),t.bi_buf=0,t.bi_valid=0}function y(t,e,n,r){v(t),r&&(a(t,n),a(t,~n)),L.arraySet(t.pending_buf,t.window,e,n,t.pending),t.pending+=n}function g(t,e,n,r){var i=2*e,o=2*n;return t[i]<t[o]||t[i]===t[o]&&r[e]<=r[n]}function b(t,e,n){for(var r=t.heap[n],i=n<<1;i<=t.heap_len&&(i<t.heap_len&&g(e,t.heap[i+1],t.heap[i],t.depth)&&i++,!g(e,r,t.heap[i],t.depth));)t.heap[n]=t.heap[i],n=i,i<<=1;t.heap[n]=r}function _(t,e,n){var r,i,o,a,l=0;if(0!==t.last_lit)do{r=t.pending_buf[t.d_buf+2*l]<<8|t.pending_buf[t.d_buf+2*l+1],i=t.pending_buf[t.l_buf+l],l++,0===r?c(t,i,e):(o=st[i],c(t,o+z+1,e),a=$[o],0!==a&&(i-=at[o],u(t,i,a)),r--,o=s(r),c(t,o,n),0!==(a=tt[o])&&(r-=ut[o],u(t,r,a)))}while(l<t.last_lit);c(t,K,e)}function w(t,e){var n,r,i,o=e.dyn_tree,s=e.stat_desc.static_tree,a=e.stat_desc.has_stree,u=e.stat_desc.elems,c=-1;for(t.heap_len=0,t.heap_max=W,n=0;n<u;n++)0!==o[2*n]?(t.heap[++t.heap_len]=c=n,t.depth[n]=0):o[2*n+1]=0;for(;t.heap_len<2;)i=t.heap[++t.heap_len]=c<2?++c:0,o[2*i]=1,t.depth[i]=0,t.opt_len--,a&&(t.static_len-=s[2*i+1]);for(e.max_code=c,n=t.heap_len>>1;n>=1;n--)b(t,o,n);i=u;do{n=t.heap[1],t.heap[1]=t.heap[t.heap_len--],b(t,o,1),r=t.heap[1],t.heap[--t.heap_max]=n,t.heap[--t.heap_max]=r,o[2*i]=o[2*n]+o[2*r],t.depth[i]=(t.depth[n]>=t.depth[r]?t.depth[n]:t.depth[r])+1,o[2*n+1]=o[2*r+1]=i,t.heap[1]=i++,b(t,o,1)}while(t.heap_len>=2);t.heap[--t.heap_max]=t.heap[1],p(t,e),f(o,c,t.bl_count)}function x(t,e,n){var r,i,o=-1,s=e[1],a=0,u=7,c=4;for(0===s&&(u=138,c=3),e[2*(n+1)+1]=65535,r=0;r<=n;r++)i=s,s=e[2*(r+1)+1],++a<u&&i===s||(a<c?t.bl_tree[2*i]+=a:0!==i?(i!==o&&t.bl_tree[2*i]++,t.bl_tree[2*Y]++):a<=10?t.bl_tree[2*J]++:t.bl_tree[2*Q]++,a=0,o=i,0===s?(u=138,c=3):i===s?(u=6,c=3):(u=7,c=4))}function E(t,e,n){var r,i,o=-1,s=e[1],a=0,l=7,h=4;for(0===s&&(l=138,h=3),r=0;r<=n;r++)if(i=s,s=e[2*(r+1)+1],!(++a<l&&i===s)){if(a<h)do{c(t,i,t.bl_tree)}while(0!=--a);else 0!==i?(i!==o&&(c(t,i,t.bl_tree),a--),c(t,Y,t.bl_tree),u(t,a-3,2)):a<=10?(c(t,J,t.bl_tree),u(t,a-3,3)):(c(t,Q,t.bl_tree),u(t,a-11,7));a=0,o=i,0===s?(l=138,h=3):i===s?(l=6,h=3):(l=7,h=4)}}function S(t){var e;for(x(t,t.dyn_ltree,t.l_desc.max_code),x(t,t.dyn_dtree,t.d_desc.max_code),w(t,t.bl_desc),e=G-1;e>=3&&0===t.bl_tree[2*nt[e]+1];e--);return t.opt_len+=3*(e+1)+5+5+4,e}function T(t,e,n,r){var i;for(u(t,e-257,5),u(t,n-1,5),u(t,r-4,4),i=0;i<r;i++)u(t,t.bl_tree[2*nt[i]+1],3);E(t,t.dyn_ltree,e-1),E(t,t.dyn_dtree,n-1)}function M(t){var e,n=4093624447;for(e=0;e<=31;e++,n>>>=1)if(1&n&&0!==t.dyn_ltree[2*e])return I;if(0!==t.dyn_ltree[18]||0!==t.dyn_ltree[20]||0!==t.dyn_ltree[26])return k;for(e=32;e<z;e++)if(0!==t.dyn_ltree[2*e])return k;return I}function C(t){pt||(d(),pt=!0),t.l_desc=new o(t.dyn_ltree,ct),t.d_desc=new o(t.dyn_dtree,lt),t.bl_desc=new o(t.bl_tree,ht),t.bi_buf=0,t.bi_valid=0,m(t)}function O(t,e,n,r){u(t,(D<<1)+(r?1:0),3),y(t,e,n,!0)}function A(t){u(t,F<<1,3),c(t,K,rt),h(t)}function P(t,e,n,r){var i,o,s=0;t.level>0?(t.strm.data_type===j&&(t.strm.data_type=M(t)),w(t,t.l_desc),w(t,t.d_desc),s=S(t),i=t.opt_len+3+7>>>3,(o=t.static_len+3+7>>>3)<=i&&(i=o)):i=o=n+5,n+4<=i&&-1!==e?O(t,e,n,r):t.strategy===N||o===i?(u(t,(F<<1)+(r?1:0),3),_(t,rt,it)):(u(t,(U<<1)+(r?1:0),3),T(t,t.l_desc.max_code+1,t.d_desc.max_code+1,s+1),_(t,t.dyn_ltree,t.dyn_dtree)),m(t),r&&v(t)}function R(t,e,n){return t.pending_buf[t.d_buf+2*t.last_lit]=e>>>8&255,t.pending_buf[t.d_buf+2*t.last_lit+1]=255&e,t.pending_buf[t.l_buf+t.last_lit]=255&n,t.last_lit++,0===e?t.dyn_ltree[2*n]++:(t.matches++,e--,t.dyn_ltree[2*(st[n]+z+1)]++,t.dyn_dtree[2*s(e)]++),t.last_lit===t.lit_bufsize-1}var L=n("ZN67"),N=4,I=0,k=1,j=2,D=0,F=1,U=2,B=29,z=256,V=z+1+B,H=30,G=19,W=2*V+1,q=15,Z=16,X=7,K=256,Y=16,J=17,Q=18,$=[0,0,0,0,0,0,0,0,1,1,1,1,2,2,2,2,3,3,3,3,4,4,4,4,5,5,5,5,0],tt=[0,0,0,0,1,1,2,2,3,3,4,4,5,5,6,6,7,7,8,8,9,9,10,10,11,11,12,12,13,13],et=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,2,3,7],nt=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15],rt=new Array(2*(V+2));r(rt);var it=new Array(2*H);r(it);var ot=new Array(512);r(ot);var st=new Array(256);r(st);var at=new Array(B);r(at);var ut=new Array(H);r(ut);var ct,lt,ht,pt=!1;e._tr_init=C,e._tr_stored_block=O,e._tr_flush_block=P,e._tr_tally=R,e._tr_align=A},"8pdA":function(t,e,n){"use strict";function r(t){var e=arguments.length,n=i.async;o.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var a=Number.POSITIVE_INFINITY;return e>=3&&(a=arguments[2]),s.bufferTime(t,r,a,n)(this)}var i=n("IhB/"),o=n("MicL"),s=n("duFl");e.bufferTime=r},"8rcZ":function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),i.mergeMap(o.identity,null,t)}var i=n("mjx3"),o=n("Yuqz");e.mergeAll=r},"974L":function(t,e,n){"use strict";(function(e,r){function i(t,e){t="string"==typeof t?{ec_level:t}:t||{};var n={type:String(e||t.type||"png").toLowerCase()},r="png"==n.type?f:d;for(var i in r)n[i]=i in t?t[i]:r[i];return n}function o(t,n){n=i(n);var r=c(t,n.ec_level,n.parse_url),o=new u;switch(o._read=p,n.type){case"svg":case"pdf":case"eps":e.nextTick(function(){h[n.type](r,o,n.margin,n.size)});break;case"svgpath":e.nextTick(function(){var t=h.svg_object(r,n.margin,n.size);o.push(t.path),o.push(null)});break;case"png":default:e.nextTick(function(){var t=l.bitmap(r,n.size,n.margin);n.customize&&n.customize(t),l.png(t,o)})}return o}function s(t,e){e=i(e);var n,o=c(t,e.ec_level,e.parse_url),s=[];switch(e.type){case"svg":case"pdf":case"eps":h[e.type](o,s,e.margin,e.size),n=s.filter(
1Boolean).join("");break;case"png":default:var a=l.bitmap(o,e.size,e.margin);e.customize&&e.customize(a),l.png(a,s),n=r.concat(s.filter(Boolean))}return n}function a(t,e){e=i(e,"svg");var n=c(t,e.ec_level);return h.svg_object(n,e.margin)}var u=n("+Bur").Readable,c=n("q/Xa").QR,l=n("jRXK"),h=n("HqiZ"),p=function(){},f={parse_url:!1,ec_level:"M",size:5,margin:4,customize:null},d={parse_url:!1,ec_level:"M",margin:1,size:0};t.exports={matrix:c,image:o,imageSync:s,svgObject:a}}).call(e,n("1WNV"),n("v0OU").Buffer)},"9FjR":function(t,e,n){"use strict";function r(){return function(t){return t.lift(new s)}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.pairwise=r;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e),this.hasPrev=!1}return i(e,t),e.prototype._next=function(t){this.hasPrev?this.destination.next([this.prev,t]):this.hasPrev=!0,this.prev=t},e}(o.Subscriber)},"9jMf":function(t,e,n){"use strict";var r=n("bKpL"),i=n("Ohh6");r.Observable.prototype.startWith=i.startWith},"9lCb":function(t,e,n){"use strict";var r=n("bKpL"),i=n("GB+a");r.Observable.prototype.sequenceEqual=i.sequenceEqual},"9mSN":function(t,e,n){"use strict";var r=n("bKpL"),i=n("WAO4");r.Observable.prototype.timeoutWith=i.timeoutWith},"9mYp":function(t,e,n){"use strict";var r=n("r6G9");e.onErrorResumeNext=r.onErrorResumeNextStatic},"9tb5":function(t,e,n){"use strict";function r(t,e){return i.exhaustMap(t,e)(this)}var i=n("NzSV");e.exhaustMap=r},"9wNb":function(t,e,n){"use strict";var r=n("bKpL"),i=n("8efI");r.Observable.prototype.distinct=i.distinct},A1r7:function(t,e,n){"use strict";var r=n("bKpL"),i=n("buGu");r.Observable.prototype.defaultIfEmpty=i.defaultIfEmpty},ACG2:function(t,e,n){"use strict";var r=n("bKpL"),i=n("6nek");r.Observable.interval=i.interval},AHF9:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),i.observeOn(t,e)(this)}var i=n("GDiU");e.observeOn=r},ASfG:function(t,e,n){"use strict";function r(t){return function(e){return o.multicast(new i.BehaviorSubject(t))(e)}}var i=n("gvep"),o=n("P02W");e.publishBehavior=r},Af4u:function(t,e,n){"use strict";var r=n("bKpL"),i=n("YofN");r.Observable.race=i.race},AzAY:function(t,e,n){"use strict";function r(t,e,n,r){return i.publishReplay(t,e,n,r)(this)}var i=n("z8/z");e.publishReplay=r},"B/As":function(t,e,n){"use strict";var r=n("bKpL"),i=n("ltng");r.Observable.range=i.range},BBvl:function(t,e,n){"use strict";var r=n("bKpL"),i=n("/9bB");r.Observable.prototype.materialize=i.materialize},BJqU:function(t,e,n){"use strict";function r(t,e,n){return void 0===e&&(e=i.async),void 0===n&&(n=o.defaultThrottleConfig),s.throttleTime(t,e,n)(this)}var i=n("IhB/"),o=n("DrEP"),s=n("Rol4");e.throttleTime=r},BbOI:function(t,e,n){"use strict";var r=n("f7+7");e.bindNodeCallback=r.BoundNodeCallbackObservable.create},BdLl:function(t,e,n){"use strict";var r=n("bKpL"),i=n("vioa");r.Observable.timer=i.timer},BkNc:function(t,e,n){"use strict";function r(t){return new Ve(t)}function i(t){var e=Error("NavigationCancelingError: "+t);return e[He]=!0,e}function o(t){return t[He]}function s(t,e,n){var r=n.path.split("/");if(r.length>t.length)return null;if("full"===n.pathMatch&&(e.hasChildren()||r.length<t.length))return null;for(var i={},o=0;o<r.length;o++){var s=r[o],a=t[o];if(s.startsWith(":"))i[s.substring(1)]=a;else if(s!==a.path)return null}return{consumed:t.slice(0,r.length),posParams:i}}function a(t,e){void 0===e&&(e="");for(var n=0;n<t.length;n++){var r=t[n];u(r,c(e,r))}}function u(t,e){if(!t)throw new Error("\n Invalid configuration of route '"+e+"': Encountered undefined route.\n The reason might be an extra comma.\n\n Example:\n const routes: Routes = [\n { path: '', redirectTo: '/dashboard', pathMatch: 'full' },\n { path: 'dashboard', component: DashboardComponent },, << two commas\n { path: 'detail/:id', component: HeroDetailComponent }\n ];\n ");if(Array.isArray(t))throw new Error("Invalid configuration of route '"+e+"': Array cannot be specified");if(!t.component&&t.outlet&&t.outlet!==ze)throw new Error("Invalid configuration of route '"+e+"': a componentless route cannot have a named outlet set");if(t.redirectTo&&t.children)throw new Error("Invalid configuration of route '"+e+"': redirectTo and children cannot be used together");if(t.redirectTo&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': redirectTo and loadChildren cannot be used together");if(t.children&&t.loadChildren)throw new Error("Invalid configuration of route '"+e+"': children and loadChildren cannot be used together");if(t.redirectTo&&t.component)throw new Error("Invalid configuration of route '"+e+"': redirectTo and component cannot be used together");if(t.path&&t.matcher)throw new Error("Invalid configuration of route '"+e+"': path and matcher cannot be used together");if(void 0===t.redirectTo&&!t.component&&!t.children&&!t.loadChildren)throw new Error("Invalid configuration of route '"+e+"'. One of the following must be provided: component, redirectTo, children or loadChildren");if(void 0===t.path&&void 0===t.matcher)throw new Error("Invalid configuration of route '"+e+"': routes must have either a path or a matcher specified");if("string"==typeof t.path&&"/"===t.path.charAt(0))throw new Error("Invalid configuration of route '"+e+"': path cannot start with a slash");if(""===t.path&&void 0!==t.redirectTo&&void 0===t.pathMatch){throw new Error("Invalid configuration of route '{path: \""+e+'", redirectTo: "'+t.redirectTo+"\"}': please provide 'pathMatch'. The default value of 'pathMatch' is 'prefix', but often the intent is to use 'full'.")}if(void 0!==t.pathMatch&&"full"!==t.pathMatch&&"prefix"!==t.pathMatch)throw new Error("Invalid configuration of route '"+e+"': pathMatch can only be set to 'prefix' or 'full'");t.children&&a(t.children,e)}function c(t,e){return e?t||e.path?t&&!e.path?t+"/":!t&&e.path?e.path:t+"/"+e.path:"":t}function l(t,e){if(t.length!==e.length)return!1;for(var n=0;n<t.length;++n)if(!h(t[n],e[n]))return!1;return!0}function h(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i,o=0;o<n.length;o++)if(i=n[o],t[i]!==e[i])return!1;return!0}function p(t){return Array.prototype.concat.apply([],t)}function f(t){return t.length>0?t[t.length-1]:null}function d(t,e){for(var n in t)t.hasOwnProperty(n)&&e(t[n],n)}function m(t,e){if(0===Object.keys(t).length)return Object(de.of)({});var n=[],r=[],i={};d(t,function(t,o){var s=be.map.call(e(o,t),function(t){return i[o]=t});o===ze?n.push(s):r.push(s)});var o=Se.concatAll.call(de.of.apply(void 0,n.concat(r))),s=ge.last.call(o);return be.map.call(s,function(){return i})}function v(t){var e=Ce.mergeAll.call(t);return ve.every.call(e,function(t){return!0===t})}function y(t){return Object(le._22)(t)?t:Object(le._23)(t)?Object(Me.fromPromise)(Promise.resolve(t)):Object(de.of)(t)}function g(){return new We(new qe([],{}),{},null)}function b(t,e,n){return n?_(t.queryParams,e.queryParams)&&w(t.root,e.root):x(t.queryParams,e.queryParams)&&E(t.root,e.root)}function _(t,e){return h(t,e)}function w(t,e){if(!M(t.segments,e.segments))return!1;if(t.numberOfChildren!==e.numberOfChildren)return!1;for(var n in e.children){if(!t.children[n])return!1;if(!w(t.children[n],e.children[n]))return!1}return!0}function x(t,e){return Object.keys(e).length<=Object.keys(t).length&&Object.keys(e).every(function(n){return e[n]===t[n]})}function E(t,e){return S(t,e,e.segments)}function S(t,e,n){if(t.segments.length>n.length){var r=t.segments.slice(0,n.length);return!!M(r,n)&&!e.hasChildren()}if(t.segments.length===n.length){if(!M(t.segments,n))return!1;for(var i in e.children){if(!t.children[i])return!1;if(!E(t.children[i],e.children[i]))return!1}return!0}var r=n.slice(0,t.segments.length),o=n.slice(t.segments.length);return!!M(t.segments,r)&&(!!t.children[ze]&&S(t.children[ze],e,o))}function T(t,e){return M(t,e)&&t.every(function(t,n){return h(t.parameters,e[n].parameters)})}function M(t,e){return t.length===e.length&&t.every(function(t,n){return t.path===e[n].path})}function C(t,e){var n=[];return d(t.children,function(t,r){r===ze&&(n=n.concat(e(t,r)))}),d(t.children,function(t,r){r!==ze&&(n=n.concat(e(t,r)))}),n}function O(t){return t.segments.map(function(t){return L(t)}).join("/")}function A(t,e){if(!t.hasChildren())return O(t);if(e){var n=t.children[ze]?A(t.children[ze],!1):"",r=[];return d(t.children,function(t,e){e!==ze&&r.push(e+":"+A(t,!1))}),r.length>0?n+"("+r.join("//")+")":n}var i=C(t,function(e,n){return n===ze?[A(t.children[ze],!1)]:[n+":"+A(e,!1)]});return O(t)+"/("+i.join("//")+")"}function P(t){return encodeURIComponent(t).replace(/%40/g,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%3B/gi,";")}function R(t){return decodeURIComponent(t)}function L(t){return""+P(t.path)+N(t.parameters)}function N(t){return Object.keys(t).map(function(e){return";"+P(e)+"="+P(t[e])}).join("")}function I(t){var e=Object.keys(t).map(function(e){var n=t[e];return Array.isArray(n)?n.map(function(t){return P(e)+"="+P(t)}).join("&"):P(e)+"="+P(n)});return e.length?"?"+e.join("&"):""}function k(t){var e=t.match(Je);return e?e[0]:""}function j(t){var e=t.match(Qe);return e?e[0]:""}function D(t){var e=t.match($e);return e?e[0]:""}function F(t){return new xe.Observable(function(e){return e.error(new en(t))})}function U(t){return new xe.Observable(function(e){return e.error(new nn(t))})}function B(t){return new xe.Observable(function(e){return e.error(new Error("Only absolute redirects can have named outlets. redirectTo: '"+t+"'"))})}function z(t){return new xe.Observable(function(e){return e.error(i("Cannot load children because the guard of the route \"path: '"+t.path+"'\" returned false"))})}function V(t,e,n,r,i){return new rn(t,e,n,r,i).apply()}function H(t,e){var n=e.canLoad;return n&&0!==n.length?v(be.map.call(Object(fe.from)(n),function(n){var r=t.get(n);return y(r.canLoad?r.canLoad(e):r(e))})):Object(de.of)(!0)}function G(t,e,n){if(""===e.path)return"full"===e.pathMatch&&(t.hasChildren()||n.length>0)?{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}:{matched:!0,consumedSegments:[],lastChild:0,positionalParamSegments:{}};var r=e.matcher||s,i=r(n,t,e);return i?{matched:!0,consumedSegments:i.consumed,lastChild:i.consumed.length,positionalParamSegments:i.posParams}:{matched:!1,consumedSegments:[],lastChild:0,positionalParamSegments:{}}}function W(t,e,n,r){if(n.length>0&&K(t,n,r)){var i=new qe(e,X(r,new qe(n,t.children)));return{segmentGroup:q(i),slicedSegments:[]}}if(0===n.length&&Y(t,n,r)){var i=new qe(t.segments,Z(t,n,r,t.children));return{segmentGroup:q(i),slicedSegments:n}}return{segmentGroup:t,slicedSegments:n}}function q(t){if(1===t.numberOfChildren&&t.children[ze]){var e=t.children[ze];return new qe(t.segments.concat(e.segments),e.children)}return t}function Z(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];J(t,e,a)&&!r[Q(a)]&&(i[Q(a)]=new qe([],{}))}return Object.assign({},r,i)}function X(t,e){var n={};n[ze]=e;for(var r=0,i=t;r<i.length;r++){var o=i[r];""===o.path&&Q(o)!==ze&&(n[Q(o)]=new qe([],{}))}return n}function K(t,e,n){return n.some(function(n){return J(t,e,n)&&Q(n)!==ze})}function Y(t,e,n){return n.some(function(n){return J(t,e,n)})}function J(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0!==n.redirectTo)}function Q(t){return t.outlet||ze}function $(t,e){if(t===e.value)return e;for(var n=0,r=e.children;n<r.length;n++){var i=r[n],o=$(t,i);if(o)return o}return null}function tt(t,e){if(t===e.value)return[e];for(var n=0,r=e.children;n<r.length;n++){var i=r[n],o=tt(t,i);if(o.length)return o.unshift(e),o}return[]}function et(t,e){var n=nt(t,e),r=new he.BehaviorSubject([new Ze("",{})]),i=new he.BehaviorSubject({}),o=new he.BehaviorSubject({}),s=new he.BehaviorSubject({}),a=new he.BehaviorSubject(""),u=new un(r,i,s,a,o,ze,e,n.root);return u.snapshot=n.root,new an(new sn(u,[]),n)}function nt(t,e){var n={},r={},i={},o=new cn([],n,i,"",r,ze,e,null,t.root,-1,{});return new ln("",new sn(o,[]))}function rt(t){for(var e=t.pathFromRoot,n=e.length-1;n>=1;){var r=e[n],i=e[n-1];if(r.routeConfig&&""===r.routeConfig.path)n--;else{if(i.component)break;n--}}return e.slice(n).reduce(function(t,e){return{params:Object.assign({},t.params,e.params),data:Object.assign({},t.data,e.data),resolve:Object.assign({},t.resolve,e._resolvedData)}},{params:{},data:{},resolve:{}})}
1function it(t,e){e.value._routerState=t,e.children.forEach(function(e){return it(t,e)})}function ot(t){var e=t.children.length>0?" { "+t.children.map(ot).join(", ")+" } ":"";return""+t.value+e}function st(t){if(t.snapshot){var e=t.snapshot,n=t._futureSnapshot;t.snapshot=n,h(e.queryParams,n.queryParams)||t.queryParams.next(n.queryParams),e.fragment!==n.fragment&&t.fragment.next(n.fragment),h(e.params,n.params)||t.params.next(n.params),l(e.url,n.url)||t.url.next(n.url),h(e.data,n.data)||t.data.next(n.data)}else t.snapshot=t._futureSnapshot,t.data.next(t._futureSnapshot.data)}function at(t,e){var n=h(t.params,e.params)&&T(t.url,e.url),r=!t.parent!=!e.parent;return n&&!r&&(!t.parent||at(t.parent,e.parent))}function ut(t,e,n){var r=ct(t,e._root,n?n._root:void 0);return new an(r,e)}function ct(t,e,n){if(n&&t.shouldReuseRoute(e.value,n.value.snapshot)){var r=n.value;r._futureSnapshot=e.value;var i=ht(t,e,n);return new sn(r,i)}if(t.retrieve(e.value)){var o=t.retrieve(e.value).route;return lt(e,o),o}var r=pt(e.value),i=e.children.map(function(e){return ct(t,e)});return new sn(r,i)}function lt(t,e){if(t.value.routeConfig!==e.value.routeConfig)throw new Error("Cannot reattach ActivatedRouteSnapshot created from a different route");if(t.children.length!==e.children.length)throw new Error("Cannot reattach ActivatedRouteSnapshot with a different number of children");e.value._futureSnapshot=t.value;for(var n=0;n<t.children.length;++n)lt(t.children[n],e.children[n])}function ht(t,e,n){return e.children.map(function(e){for(var r=0,i=n.children;r<i.length;r++){var o=i[r];if(t.shouldReuseRoute(o.value.snapshot,e.value))return ct(t,e,o)}return ct(t,e)})}function pt(t){return new un(new he.BehaviorSubject(t.url),new he.BehaviorSubject(t.params),new he.BehaviorSubject(t.queryParams),new he.BehaviorSubject(t.fragment),new he.BehaviorSubject(t.data),t.outlet,t.component,t)}function ft(t,e,n,r,i){if(0===n.length)return mt(e.root,e.root,e,r,i);var o=yt(n);if(o.toRoot())return mt(e.root,new qe([],{}),e,r,i);var s=gt(o,e,t),a=s.processChildren?Et(s.segmentGroup,s.index,o.commands):xt(s.segmentGroup,s.index,o.commands);return mt(s.segmentGroup,a,e,r,i)}function dt(t){return"object"==typeof t&&null!=t&&!t.outlets&&!t.segmentPath}function mt(t,e,n,r,i){var o={};return r&&d(r,function(t,e){o[e]=Array.isArray(t)?t.map(function(t){return""+t}):""+t}),n.root===t?new We(e,o,i):new We(vt(n.root,t,e),o,i)}function vt(t,e,n){var r={};return d(t.children,function(t,i){r[i]=t===e?n:vt(t,e,n)}),new qe(t.segments,r)}function yt(t){if("string"==typeof t[0]&&1===t.length&&"/"===t[0])return new hn(!0,0,t);var e=0,n=!1,r=t.reduce(function(t,r,i){if("object"==typeof r&&null!=r){if(r.outlets){var o={};return d(r.outlets,function(t,e){o[e]="string"==typeof t?t.split("/"):t}),t.concat([{outlets:o}])}if(r.segmentPath)return t.concat([r.segmentPath])}return"string"!=typeof r?t.concat([r]):0===i?(r.split("/").forEach(function(r,i){0==i&&"."===r||(0==i&&""===r?n=!0:".."===r?e++:""!=r&&t.push(r))}),t):t.concat([r])},[]);return new hn(n,e,r)}function gt(t,e,n){if(t.isAbsolute)return new pn(e.root,!0,0);if(-1===n.snapshot._lastPathIndex)return new pn(n.snapshot._urlSegment,!0,0);var r=dt(t.commands[0])?0:1,i=n.snapshot._lastPathIndex+r;return bt(n.snapshot._urlSegment,i,t.numberOfDoubleDots)}function bt(t,e,n){for(var r=t,i=e,o=n;o>i;){if(o-=i,!(r=r.parent))throw new Error("Invalid number of '../'");i=r.segments.length}return new pn(r,!1,i-o)}function _t(t){return"object"==typeof t&&null!=t&&t.outlets?t.outlets[ze]:""+t}function wt(t){return"object"!=typeof t[0]?(e={},e[ze]=t,e):void 0===t[0].outlets?(n={},n[ze]=t,n):t[0].outlets;var e,n}function xt(t,e,n){if(t||(t=new qe([],{})),0===t.segments.length&&t.hasChildren())return Et(t,e,n);var r=St(t,e,n),i=n.slice(r.commandIndex);if(r.match&&r.pathIndex<t.segments.length){var o=new qe(t.segments.slice(0,r.pathIndex),{});return o.children[ze]=new qe(t.segments.slice(r.pathIndex),t.children),Et(o,0,i)}return r.match&&0===i.length?new qe(t.segments,{}):r.match&&!t.hasChildren()?Tt(t,e,n):r.match?Et(t,0,i):Tt(t,e,n)}function Et(t,e,n){if(0===n.length)return new qe(t.segments,{});var r=wt(n),i={};return d(r,function(n,r){null!==n&&(i[r]=xt(t.children[r],e,n))}),d(t.children,function(t,e){void 0===r[e]&&(i[e]=t)}),new qe(t.segments,i)}function St(t,e,n){for(var r=0,i=e,o={match:!1,pathIndex:0,commandIndex:0};i<t.segments.length;){if(r>=n.length)return o;var s=t.segments[i],a=_t(n[r]),u=r<n.length-1?n[r+1]:null;if(i>0&&void 0===a)break;if(a&&u&&"object"==typeof u&&void 0===u.outlets){if(!Ot(a,u,s))return o;r+=2}else{if(!Ot(a,{},s))return o;r++}i++}return{match:!0,pathIndex:i,commandIndex:r}}function Tt(t,e,n){for(var r=t.segments.slice(0,e),i=0;i<n.length;){if("object"==typeof n[i]&&void 0!==n[i].outlets){var o=Mt(n[i].outlets);return new qe(r,o)}if(0===i&&dt(n[0])){var s=t.segments[e];r.push(new Ze(s.path,n[0])),i++}else{var a=_t(n[i]),u=i<n.length-1?n[i+1]:null;a&&u&&dt(u)?(r.push(new Ze(a,Ct(u))),i+=2):(r.push(new Ze(a,{})),i++)}}return new qe(r,{})}function Mt(t){var e={};return d(t,function(t,n){null!==t&&(e[n]=Tt(new qe([],{}),0,t))}),e}function Ct(t){var e={};return d(t,function(t,n){return e[n]=""+t}),e}function Ot(t,e,n){return t==n.path&&h(e,n.parameters)}function At(t,e,n,r){return new dn(t,e,n,r).recognize()}function Pt(t){t.sort(function(t,e){return t.value.outlet===ze?-1:e.value.outlet===ze?1:t.value.outlet.localeCompare(e.value.outlet)})}function Rt(t){return t.children?t.children:t.loadChildren?t._loadedConfig.routes:[]}function Lt(t,e,n){if(""===e.path){if("full"===e.pathMatch&&(t.hasChildren()||n.length>0))throw new fn;return{consumedSegments:[],lastChild:0,parameters:{}}}var r=e.matcher||s,i=r(n,t,e);if(!i)throw new fn;var o={};d(i.posParams,function(t,e){o[e]=t.path});var a=i.consumed.length>0?Object.assign({},o,i.consumed[i.consumed.length-1].parameters):o;return{consumedSegments:i.consumed,lastChild:i.consumed.length,parameters:a}}function Nt(t){var e={};t.forEach(function(t){var n=e[t.value.outlet];if(n){var r=n.url.map(function(t){return t.toString()}).join("/"),i=t.value.url.map(function(t){return t.toString()}).join("/");throw new Error("Two segments cannot have the same outlet name: '"+r+"' and '"+i+"'.")}e[t.value.outlet]=t.value})}function It(t){for(var e=t;e._sourceSegment;)e=e._sourceSegment;return e}function kt(t){for(var e=t,n=e._segmentIndexShift?e._segmentIndexShift:0;e._sourceSegment;)e=e._sourceSegment,n+=e._segmentIndexShift?e._segmentIndexShift:0;return n-1}function jt(t,e,n,r){if(n.length>0&&Ut(t,n,r)){var i=new qe(e,Ft(t,e,r,new qe(n,t.children)));return i._sourceSegment=t,i._segmentIndexShift=e.length,{segmentGroup:i,slicedSegments:[]}}if(0===n.length&&Bt(t,n,r)){var o=new qe(t.segments,Dt(t,n,r,t.children));return o._sourceSegment=t,o._segmentIndexShift=e.length,{segmentGroup:o,slicedSegments:n}}var s=new qe(t.segments,t.children);return s._sourceSegment=t,s._segmentIndexShift=e.length,{segmentGroup:s,slicedSegments:n}}function Dt(t,e,n,r){for(var i={},o=0,s=n;o<s.length;o++){var a=s[o];if(zt(t,e,a)&&!r[Vt(a)]){var u=new qe([],{});u._sourceSegment=t,u._segmentIndexShift=t.segments.length,i[Vt(a)]=u}}return Object.assign({},r,i)}function Ft(t,e,n,r){var i={};i[ze]=r,r._sourceSegment=t,r._segmentIndexShift=e.length;for(var o=0,s=n;o<s.length;o++){var a=s[o];if(""===a.path&&Vt(a)!==ze){var u=new qe([],{});u._sourceSegment=t,u._segmentIndexShift=e.length,i[Vt(a)]=u}}return i}function Ut(t,e,n){return n.some(function(n){return zt(t,e,n)&&Vt(n)!==ze})}function Bt(t,e,n){return n.some(function(n){return zt(t,e,n)})}function zt(t,e,n){return(!(t.hasChildren()||e.length>0)||"full"!==n.pathMatch)&&(""===n.path&&void 0===n.redirectTo)}function Vt(t){return t.outlet||ze}function Ht(t){return t.data||{}}function Gt(t){return t.resolve||{}}function Wt(t){throw t}function qt(t){return Object(de.of)(null)}
1function Zt(t){st(t.value),t.children.forEach(Zt)}function Xt(t){for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig;if(n&&n.component)return null}return null}function Kt(t){if(!t)return null;for(var e=t.parent;e;e=e.parent){var n=e._routeConfig;if(n&&n._loadedConfig)return n._loadedConfig}return null}function Yt(t){var e={};return t&&t.children.forEach(function(t){return e[t.value.outlet]=t}),e}function Jt(t){for(var e=0;e<t.length;e++){var n=t[e];if(null==n)throw new Error("The requested path contains "+n+" segment at index "+e)}}function Qt(t){return""===t||!!t}function $t(){return new le.F("Router",wn)}function te(t,e,n){return void 0===n&&(n={}),n.useHash?new ce.d(t,e):new ce.n(t,e)}function ee(t){if(t)throw new Error("RouterModule.forRoot() called twice. Lazy loaded modules should use RouterModule.forChild() instead.");return"guarded"}function ne(t){return[{provide:le.a,multi:!0,useValue:t},{provide:yn,multi:!0,useValue:t}]}function re(t,e,n,r,i,o,s,a,u,c,l){void 0===u&&(u={});var h=new wn(null,e,n,r,i,o,s,p(a));if(c&&(h.urlHandlingStrategy=c),l&&(h.routeReuseStrategy=l),u.errorHandler&&(h.errorHandler=u.errorHandler),u.enableTracing){var f=Object(Oe.u)();h.events.subscribe(function(t){f.logGroup("Router Event: "+t.constructor.name),f.log(t.toString()),f.log(t),f.logGroupEnd()})}return h}function ie(t){return t.routerState.root}function oe(t){return t.appInitializer.bind(t)}function se(t){return t.bootstrapListener.bind(t)}function ae(){return[Vn,{provide:le.d,multi:!0,useFactory:oe,deps:[Vn]},{provide:Hn,useFactory:se,deps:[Vn]},{provide:le.b,multi:!0,useExisting:Hn}]}n.d(e,"m",function(){return Mn}),n.d(e,"o",function(){return Cn}),n.d(e,"n",function(){return On}),n.d(e,"q",function(){return Rn}),n.d(e,"d",function(){return Re}),n.d(e,"k",function(){return mn}),n.d(e,"l",function(){return wn}),n.d(e,"j",function(){return yn}),n.d(e,"h",function(){return Fn}),n.d(e,"i",function(){return Hn}),n.d(e,"p",function(){return zn}),n.d(e,"b",function(){return Pn}),n.d(e,"e",function(){return kn}),n.d(e,"f",function(){return In}),n.d(e,"g",function(){return Nn}),n.d(e,"r",function(){return jn}),n.d(e,"a",function(){return un}),n.d(e,"s",function(){return bn}),n.d(e,"c",function(){return Ke}),n.d(e,"t",function(){return Xe}),n.d(e,"u",function(){return Un}),n.d(e,"A",function(){return Vn}),n.d(e,"B",function(){return oe}),n.d(e,"C",function(){return se}),n.d(e,"x",function(){return ee}),n.d(e,"w",function(){return te}),n.d(e,"z",function(){return ie}),n.d(e,"v",function(){return $t}),n.d(e,"y",function(){return re});var ue=n("6Xbx"),ce=n("qbdv"),le=n("/oeL"),he=n("gvep"),pe=(n.n(he),n("rlar")),fe=(n.n(pe),n("7JOC")),de=(n.n(fe),n("+zVg")),me=(n.n(de),n("TQn8")),ve=(n.n(me),n("THYR")),ye=(n.n(ve),n("1eQ7")),ge=(n.n(ye),n("WSkQ")),be=(n.n(ge),n("lx+J")),_e=(n.n(be),n("cPhF")),we=(n.n(_e),n("Tq0x")),xe=(n.n(we),n("bKpL")),Ee=(n.n(xe),n("ueUM")),Se=(n.n(Ee),n("I3ay")),Te=(n.n(Se),n("TpsG")),Me=(n.n(Te),n("QU9E")),Ce=(n.n(Me),n("TIdC")),Oe=(n.n(Ce),n("fc+i")),Ae=n("422b"),Pe=(n.n(Ae),function(){function t(t,e){this.id=t,this.url=e}return t.prototype.toString=function(){return"NavigationStart(id: "+this.id+", url: '"+this.url+"')"},t}()),Re=function(){function t(t,e,n){this.id=t,this.url=e,this.urlAfterRedirects=n}return t.prototype.toString=function(){return"NavigationEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"')"},t}(),Le=function(){function t(t,e,n){this.id=t,this.url=e,this.reason=n}return t.prototype.toString=function(){return"NavigationCancel(id: "+this.id+", url: '"+this.url+"')"},t}(),Ne=function(){function t(t,e,n){this.id=t,this.url=e,this.error=n}return t.prototype.toString=function(){return"NavigationError(id: "+this.id+", url: '"+this.url+"', error: "+this.error+")"},t}(),Ie=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"RoutesRecognized(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),ke=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadStart(path: "+this.route.path+")"},t}(),je=function(){function t(t){this.route=t}return t.prototype.toString=function(){return"RouteConfigLoadEnd(path: "+this.route.path+")"},t}(),De=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"GuardsCheckStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Fe=function(){function t(t,e,n,r,i){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r,this.shouldActivate=i}return t.prototype.toString=function(){return"GuardsCheckEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+", shouldActivate: "+this.shouldActivate+")"},t}(),Ue=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveStart(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),Be=function(){function t(t,e,n,r){this.id=t,this.url=e,this.urlAfterRedirects=n,this.state=r}return t.prototype.toString=function(){return"ResolveEnd(id: "+this.id+", url: '"+this.url+"', urlAfterRedirects: '"+this.urlAfterRedirects+"', state: "+this.state+")"},t}(),ze="primary",Ve=function(){function t(t){this.params=t||{}}return t.prototype.has=function(t){return this.params.hasOwnProperty(t)},t.prototype.get=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e[0]:e}return null},t.prototype.getAll=function(t){if(this.has(t)){var e=this.params[t];return Array.isArray(e)?e:[e]}return[]},Object.defineProperty(t.prototype,"keys",{get:function(){return Object.keys(this.params)},enumerable:!0,configurable:!0}),t}(),He="ngNavigationCancelingError",Ge=function(){function t(t,e){this.routes=t,this.module=e}return t}(),We=function(){function t(t,e,n){this.root=t,this.queryParams=e,this.fragment=n}return Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=r(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return Ye.serialize(this)},t}(),qe=function(){function t(t,e){var n=this;this.segments=t,this.children=e,this.parent=null,d(e,function(t,e){return t.parent=n})}return t.prototype.hasChildren=function(){return this.numberOfChildren>0},Object.defineProperty(t.prototype,"numberOfChildren",{get:function(){return Object.keys(this.children).length},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return O(this)},t}(),Ze=function(){function t(t,e){this.path=t,this.parameters=e}return Object.defineProperty(t.prototype,"parameterMap",{get:function(){return this._parameterMap||(this._parameterMap=r(this.parameters)),this._parameterMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return L(this)},t}(),Xe=function(){function t(){}return t.prototype.parse=function(t){},t.prototype.serialize=function(t){},t}(),Ke=function(){function t(){}return t.prototype.parse=function(t){var e=new tn(t);return new We(e.parseRootSegment(),e.parseQueryParams(),e.parseFragment())},t.prototype.serialize=function(t){return"/"+A(t.root,!0)+I(t.queryParams)+("string"==typeof t.fragment?"#"+encodeURI(t.fragment):"")},t}(),Ye=new Ke,Je=/^[^\/()?;=&#]+/,Qe=/^[^=?&#]+/,$e=/^[^?&#]+/,tn=function(){function t(t){this.url=t,this.remaining=t}return t.prototype.parseRootSegment=function(){return this.consumeOptional("/"),""===this.remaining||this.peekStartsWith("?")||this.peekStartsWith("#")?new qe([],{}):new qe([],this.parseChildren())},t.prototype.parseQueryParams=function(){var t={};if(this.consumeOptional("?"))do{this.parseQueryParam(t)}while(this.consumeOptional("&"));return t},t.prototype.parseFragment=function(){return this.consumeOptional("#")?decode
vendor: 3,050 bytes, line 1
1URI(this.remaining):null},t.prototype.parseChildren=function(){if(""===this.remaining)return{};this.consumeOptional("/");var t=[];for(this.peekStartsWith("(")||t.push(this.parseSegment());this.peekStartsWith("/")&&!this.peekStartsWith("//")&&!this.peekStartsWith("/(");)this.capture("/"),t.push(this.parseSegment());var e={};this.peekStartsWith("/(")&&(this.capture("/"),e=this.parseParens(!0));var n={};return this.peekStartsWith("(")&&(n=this.parseParens(!1)),(t.length>0||Object.keys(e).length>0)&&(n[ze]=new qe(t,e)),n},t.prototype.parseSegment=function(){var t=k(this.remaining);if(""===t&&this.peekStartsWith(";"))throw new Error("Empty path url segment cannot have parameters: '"+this.remaining+"'.");return this.capture(t),new Ze(R(t),this.parseMatrixParams())},t.prototype.parseMatrixParams=function(){for(var t={};this.consumeOptional(";");)this.parseParam(t);return t},t.prototype.parseParam=function(t){var e=k(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=k(this.remaining);r&&(n=r,this.capture(n))}t[R(e)]=R(n)}},t.prototype.parseQueryParam=function(t){var e=j(this.remaining);if(e){this.capture(e);var n="";if(this.consumeOptional("=")){var r=D(this.remaining);r&&(n=r,this.capture(n))}var i=R(e),o=R(n);if(t.hasOwnProperty(i)){var s=t[i];Array.isArray(s)||(s=[s],t[i]=s),s.push(o)}else t[i]=o}},t.prototype.parseParens=function(t){var e={};for(this.capture("(");!this.consumeOptional(")")&&this.remaining.length>0;){var n=k(this.remaining),r=this.remaining[n.length];if("/"!==r&&")"!==r&&";"!==r)throw new Error("Cannot parse url '"+this.url+"'");var i=void 0;n.indexOf(":")>-1?(i=n.substr(0,n.indexOf(":")),this.capture(i),this.capture(":")):t&&(i=ze);var o=this.parseChildren();e[i]=1===Object.keys(o).length?o[ze]:new qe([],o),this.consumeOptional("//")}return e},t.prototype.peekStartsWith=function(t){return this.remaining.startsWith(t)},t.prototype.consumeOptional=function(t){return!!this.peekStartsWith(t)&&(this.remaining=this.remaining.substring(t.length),!0)},t.prototype.capture=function(t){if(!this.consumeOptional(t))throw new Error('Expected "'+t+'".')},t}(),en=function(){function t(t){this.segmentGroup=t||null}return t}(),nn=function(){function t(t){this.urlTree=t}return t}(),rn=function(){function t(t,e,n,r,i){this.configLoader=e,this.urlSerializer=n,this.urlTree=r,this.config=i,this.allowRedirects=!0,this.ngModule=t.get(le.E)}return t.prototype.apply=function(){var t=this,e=this.expandSegmentGroup(this.ngModule,this.config,this.urlTree.root,ze),n=be.map.call(e,function(e){return t.createUrlTree(e,t.urlTree.queryParams,t.urlTree.fragment)});return Ee._catch.call(n,function(e){if(e instanceof nn)return t.allowRedirects=!1,t.match(e.urlTree);if(e instanceof en)throw t.noMatchError(e);throw e})},t.prototype.match=function(t){var e=this,n=this.expandSegmentGroup(this.ngModule,this.config,t.root,ze),r=be.map.call(n,function(n){return e.createUrlTree(n,t.queryParams,t.fragment)});return Ee._catch.call(r,function(t){if(t instanceof en)throw e.noMatchError(t);throw t})}
1,t.prototype.noMatchError=function(t){return new Error("Cannot match any routes. URL Segment: '"+t.segmentGroup+"'")},t.prototype.createUrlTree=function(t,e,n){var r=t.segments.length>0?new qe([],(i={},i[ze]=t,i)):t;return new We(r,e,n);var i},t.prototype.expandSegmentGroup=function(t,e,n,r){return 0===n.segments.length&&n.hasChildren()?be.map.call(this.expandChildren(t,e,n),function(t){return new qe([],t)}):this.expandSegment(t,n,e,n.segments,r,!0)},t.prototype.expandChildren=function(t,e,n){var r=this;return m(n.children,function(n,i){return r.expandSegmentGroup(t,e,i,n)})},t.prototype.expandSegment=function(t,e,n,r,i,o){var s=this,a=de.of.apply(void 0,n),u=be.map.call(a,function(a){var u=s.expandSegmentAgainstRoute(t,e,n,a,r,i,o);return Ee._catch.call(u,function(t){if(t instanceof en)return Object(de.of)(null);throw t})}),c=Se.concatAll.call(u),l=ye.first.call(c,function(t){return!!t});return Ee._catch.call(l,function(t,n){if(t instanceof Te.EmptyError){if(s.noLeftoversInUrl(e,r,i))return Object(de.of)(new qe([],{}));throw new en(e)}throw t})},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.expandSegmentAgainstRoute=function(t,e,n,r,i,o,s){return Q(r)!==o?F(e):void 0===r.redirectTo?this.matchSegmentAgainstRoute(t,e,r,i):s&&this.allowRedirects?this.expandSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o):F(e)},t.prototype.expandSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){return"**"===r.path?this.expandWildCardWithParamsAgainstRouteUsingRedirect(t,n,r,o):this.expandRegularSegmentAgainstRouteUsingRedirect(t,e,n,r,i,o)},t.prototype.expandWildCardWithParamsAgainstRouteUsingRedirect=function(t,e,n,r){var i=this,o=this.applyRedirectCommands([],n.redirectTo,{});return n.redirectTo.startsWith("/")?U(o):_e.mergeMap.call(this.lineralizeSegments(n,o),function(n){var o=new qe(n,{});return i.expandSegment(t,o,e,n,r,!1)})},t.prototype.expandRegularSegmentAgainstRouteUsingRedirect=function(t,e,n,r,i,o){var s=this,a=G(e,r,i),u=a.matched,c=a.consumedSegments,l=a.lastChild,h=a.positionalParamSegments;if(!u)return F(e);var p=this.applyRedirectCommands(c,r.redirectTo,h);return r.redirectTo.startsWith("/")?U(p):_e.mergeMap.call(this.lineralizeSegments(r,p),function(r){return s.expandSegment(t,e,n,r.concat(i.slice(l)),o,!1)})},t.prototype.matchSegmentAgainstRoute=function(t,e,n,r){var i=this;if("**"===n.path)return n.loadChildren?be.map.call(this.configLoader.load(t.injector,n),function(t){return n._loadedConfig=t,new qe(r,{})}):Object(de.of)(new qe(r,{}));var o=G(e,n,r),s=o.matched,a=o.consumedSegments,u=o.lastChild;if(!s)return F(e);var c=r.slice(u),l=this.getChildConfig(t,n);return _e.mergeMap.call(l,function(t){var n=t.module,r=t.routes,o=W(e,a,c,r),s=o.segmentGroup,u=o.slicedSegments;if(0===u.length&&s.hasChildren()){var l=i.expandChildren(n,r,s);return be.map.call(l,function(t){return new qe(a,t)})}if(0===r.length&&0===u.length)return Object(de.of)(new qe(a,{}));var h=i.expandSegment(n,s,r,u,ze,!0);return be.map.call(h,function(t){return new qe(a.concat(t.segments),t.children)})})},t.prototype.getChildConfig=function(t,e){var n=this;return e.children?Object(de.of)(new Ge(e.children,t)):e.loadChildren?void 0!==e._loadedConfig?Object(de.of)(e._loadedConfig):_e.mergeMap.call(H(t.injector,e),function(r){return r?be.map.call(n.configLoader.load(t.injector,e),function(t){return e._loadedConfig=t,t}):z(e)}):Object(de.of)(new Ge([],t))},t.prototype.lineralizeSegments=function(t,e){for(var n=[],r=e.root;;){if(n=n.concat(r.segments),0===r.numberOfChildren)return Object(de.of)(n);if(r.numberOfChildren>1||!r.children[ze])return B(t.redirectTo);r=r.children[ze]}},t.prototype.applyRedirectCommands=function(t,e,n){return this.applyRedirectCreatreUrlTree(e,this.urlSerializer.parse(e),t,n)},t.prototype.applyRedirectCreatreUrlTree=function(t,e,n,r){var i=this.createSegmentGroup(t,e.root,n,r);return new We(i,this.createQueryParams(e.queryParams,this.urlTree.queryParams),e.fragment)},t.prototype.createQueryParams=function(t,e){var n={};return d(t,function(t,r){if("string"==typeof t&&t.startsWith(":")){var i=t.substring(1);n[r]=e[i]}else n[r]=t}),n},t.prototype.createSegmentGroup=function(t,e,n,r){var i=this,o=this.createSegments(t,e.segments,n,r),s={};return d(e.children,function(e,o){s[o]=i.createSegmentGroup(t,e,n,r)}),new qe(o,s)},t.prototype.createSegments=function(t,e,n,r){var i=this;return e.map(function(e){return e.path.startsWith(":")?i.findPosParam(t,e,r):i.findOrReturn(e,n)})},t.prototype.findPosParam=function(t,e,n){var r=n[e.path.substring(1)];if(!r)throw new Error("Cannot redirect to '"+t+"'. Cannot find '"+e.path+"'.");return r},t.prototype.findOrReturn=function(t,e){for(var n=0,r=0,i=e;r<i.length;r++){var o=i[r];if(o.path===t.path)return e.splice(n),o;n++}return t},t}(),on=function(){function t(t){this._root=t}return Object.defineProperty(t.prototype,"root",{get:function(){return this._root.value},enumerable:!0,configurable:!0}),t.prototype.parent=function(t){var e=this.pathFromRoot(t);return e.length>1?e[e.length-2]:null}
vendor: 5,335 bytes, line 1
1,t.prototype.children=function(t){var e=$(t,this._root);return e?e.children.map(function(t){return t.value}):[]},t.prototype.firstChild=function(t){var e=$(t,this._root);return e&&e.children.length>0?e.children[0].value:null},t.prototype.siblings=function(t){var e=tt(t,this._root);return e.length<2?[]:e[e.length-2].children.map(function(t){return t.value}).filter(function(e){return e!==t})},t.prototype.pathFromRoot=function(t){return tt(t,this._root).map(function(t){return t.value})},t}(),sn=function(){function t(t,e){this.value=t,this.children=e}return t.prototype.toString=function(){return"TreeNode("+this.value+")"},t}(),an=function(t){function e(e,n){var r=t.call(this,e)||this;return r.snapshot=n,it(r,e),r}return ue.a(e,t),e.prototype.toString=function(){return this.snapshot.toString()},e}(on),un=function(){function t(t,e,n,r,i,o,s,a){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._futureSnapshot=a}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._futureSnapshot.routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=be.map.call(this.params,function(t){return r(t)})),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=be.map.call(this.queryParams,function(t){return r(t)})),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return this.snapshot?this.snapshot.toString():"Future("+this._futureSnapshot+")"},t}(),cn=function(){function t(t,e,n,r,i,o,s,a,u,c,l){this.url=t,this.params=e,this.queryParams=n,this.fragment=r,this.data=i,this.outlet=o,this.component=s,this._routeConfig=a,this._urlSegment=u,this._lastPathIndex=c,this._resolve=l}return Object.defineProperty(t.prototype,"routeConfig",{get:function(){return this._routeConfig},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"root",{get:function(){return this._routerState.root},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._routerState.parent(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"firstChild",{get:function(){return this._routerState.firstChild(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"children",{get:function(){return this._routerState.children(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pathFromRoot",{get:function(){return this._routerState.pathFromRoot(this)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"paramMap",{get:function(){return this._paramMap||(this._paramMap=r(this.params)),this._paramMap},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"queryParamMap",{get:function(){return this._queryParamMap||(this._queryParamMap=r(this.queryParams)),this._queryParamMap},enumerable:!0,configurable:!0}),t.prototype.toString=function(){return"Route(url:'"+this.url.map(function(t){return t.toString()}).join("/")+"', path:'"+(this._routeConfig?this._routeConfig.path:"")+"')"},t}(),ln=function(t){function e(e,n){var r=t.call(this,n)||this;return r.url=e,it(r,n),r}return ue.a(e,t),e.prototype.toString=function(){return ot(this._root)},e}(on),hn=function(){function t(t,e,n){if(this.isAbsolute=t,this.numberOfDoubleDots=e,this.commands=n,t&&n.length>0&&dt(n[0]))throw new Error("Root segment cannot have matrix parameters");var r=n.find(function(t){return"object"==typeof t&&null!=t&&t.outlets});if(r&&r!==f(n))throw new Error("{outlets:{}} has to be the last command")}return t.prototype.toRoot=function(){return this.isAbsolute&&1===this.commands.length&&"/"==this.commands[0]},t}(),pn=function(){function t(t,e,n){this.segmentGroup=t,this.processChildren=e,this.index=n}return t}(),fn=function(){function t(){}return t}(),dn=function(){function t(t,e,n,r){this.rootComponentType=t,this.config=e,this.urlTree=n,this.url=r}return t.prototype.recognize=function(){try{var t=jt(this.urlTree.root,[],[],this.config).segmentGroup,e=this.processSegmentGroup(this.config,t,ze),n=new cn([],Object.freeze({}),Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,{},ze,this.rootComponentType,null,this.urlTree.root,-1,{}),r=new sn(n,e),i=new ln(this.url,r);return this.inheritParamsAndData(i._root),Object(de.of)(i)}catch(t){return new xe.Observable(function(e){return e.error(t)})}},t.prototype.inheritParamsAndData=function(t){var e=this,n=t.value,r=rt(n);n.params=Object.freeze(r.params),n.data=Object.freeze(r.data),t.children.forEac
1h(function(t){return e.inheritParamsAndData(t)})},t.prototype.processSegmentGroup=function(t,e,n){return 0===e.segments.length&&e.hasChildren()?this.processChildren(t,e):this.processSegment(t,e,e.segments,n)},t.prototype.processChildren=function(t,e){var n=this,r=C(e,function(e,r){return n.processSegmentGroup(t,e,r)});return Nt(r),Pt(r),r},t.prototype.processSegment=function(t,e,n,r){for(var i=0,o=t;i<o.length;i++){var s=o[i];try{return this.processSegmentAgainstRoute(s,e,n,r)}catch(t){if(!(t instanceof fn))throw t}}if(this.noLeftoversInUrl(e,n,r))return[];throw new fn},t.prototype.noLeftoversInUrl=function(t,e,n){return 0===e.length&&!t.children[n]},t.prototype.processSegmentAgainstRoute=function(t,e,n,r){if(t.redirectTo)throw new fn;if((t.outlet||ze)!==r)throw new fn;if("**"===t.path){var i=n.length>0?f(n).parameters:{},o=new cn(n,i,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Ht(t),r,t.component,t,It(e),kt(e)+n.length,Gt(t));return[new sn(o,[])]}var s=Lt(e,t,n),a=s.consumedSegments,u=s.parameters,c=s.lastChild,l=n.slice(c),h=Rt(t),p=jt(e,a,l,h),d=p.segmentGroup,m=p.slicedSegments,v=new cn(a,u,Object.freeze(this.urlTree.queryParams),this.urlTree.fragment,Ht(t),r,t.component,t,It(e),kt(e)+a.length,Gt(t));if(0===m.length&&d.hasChildren()){var y=this.processChildren(h,d);return[new sn(v,y)]}if(0===h.length&&0===m.length)return[new sn(v,[])];var g=this.processSegment(h,d,m,ze);return[new sn(v,g)]},t}(),mn=function(){function t(){}return t.prototype.shouldDetach=function(t){},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){},t.prototype.retrieve=function(t){},t.prototype.shouldReuseRoute=function(t,e){},t}(),vn=function(){function t(){}return t.prototype.shouldDetach=function(t){return!1},t.prototype.store=function(t,e){},t.prototype.shouldAttach=function(t){return!1},t.prototype.retrieve=function(t){return null},t.prototype.shouldReuseRoute=function(t,e){return t.routeConfig===e.routeConfig},t}(),yn=new le.v("ROUTES"),gn=function(){function t(t,e,n,r){this.loader=t,this.compiler=e,this.onLoadStartListener=n,this.onLoadEndListener=r}return t.prototype.load=function(t,e){var n=this;this.onLoadStartListener&&this.onLoadStartListener(e);var r=this.loadModuleFactory(e.loadChildren);return be.map.call(r,function(r){n.onLoadEndListener&&n.onLoadEndListener(e);var i=r.create(t);return new Ge(p(i.injector.get(yn)),i)})},t.prototype.loadModuleFactory=function(t){var e=this;return"string"==typeof t?Object(Me.fromPromise)(this.loader.load(t)):_e.mergeMap.call(y(t()),function(t){return t instanceof le.C?Object(de.of)(t):Object(Me.fromPromise)(e.compiler.compileModuleAsync(t))})},t}(),bn=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){},t.prototype.extract=function(t){},t.prototype.merge=function(t,e){},t}(),_n=function(){function t(){}return t.prototype.shouldProcessUrl=function(t){return!0},t.prototype.extract=function(t){return t},t.prototype.merge=function(t,e){return t},t}(),wn=function(){function t(t,e,n,r,i,o,s,a){var u=this;this.rootComponentType=t,this.urlSerializer=e,this.rootContexts=n,this.location=r,this.config=a,this.navigations=new he.BehaviorSubject(null),this.routerEvents=new pe.Subject,this.navigationId=0,this.errorHandler=Wt,this.navigated=!1,this.hooks={beforePreactivation:qt,afterPreactivation:qt},this.urlHandlingStrategy=new _n,this.routeReuseStrategy=new vn;var c=function(t){return u.triggerEvent(new ke(t))},l=function(t){return u.triggerEvent(new je(t))};this.ngModule=i.get(le.E),this.resetConfig(a),this.currentUrlTree=g(),this.rawUrlTree=this.currentUrlTree,this.configLoader=new gn(o,s,c,l),this.currentRouterState=et(this.currentUrlTree,this.rootComponentType),this.processNavigations()}return t.prototype.resetRootComponentType=function(t){this.rootComponentType=t,this.currentRouterState.root.component=this.rootComponentType},t.prototype.initialNavigation=function(){this.setUpLocationChangeListener(),0===this.navigationId&&this.navigateByUrl(this.location.path(!0),{replaceUrl:!0})},t.prototype.setUpLocationChangeListener=function(){var t=this;this.locationSubscription||(this.locationSubscription=this.location.subscribe(Zone.current.wrap(function(e){var n=t.urlSerializer.parse(e.url),r="popstate"===e.type?"popstate":"hashchange";
1setTimeout(function(){t.scheduleNavigation(n,r,{replaceUrl:!0})},0)})))},Object.defineProperty(t.prototype,"routerState",{get:function(){return this.currentRouterState},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"url",{get:function(){return this.serializeUrl(this.currentUrlTree)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"events",{get:function(){return this.routerEvents},enumerable:!0,configurable:!0}),t.prototype.triggerEvent=function(t){this.routerEvents.next(t)},t.prototype.resetConfig=function(t){a(t),this.config=t,this.navigated=!1},t.prototype.ngOnDestroy=function(){this.dispose()},t.prototype.dispose=function(){this.locationSubscription&&(this.locationSubscription.unsubscribe(),this.locationSubscription=null)},t.prototype.createUrlTree=function(t,e){void 0===e&&(e={});var n=e.relativeTo,r=e.queryParams,i=e.fragment,o=e.preserveQueryParams,s=e.queryParamsHandling,a=e.preserveFragment;Object(le._6)()&&o&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead.");var u=n||this.routerState.root,c=a?this.currentUrlTree.fragment:i,l=null;if(s)switch(s){case"merge":l=Object.assign({},this.currentUrlTree.queryParams,r);break;case"preserve":l=this.currentUrlTree.queryParams;break;default:l=r||null}else l=o?this.currentUrlTree.queryParams:r||null;return ft(u,this.currentUrlTree,t,l,c)},t.prototype.navigateByUrl=function(t,e){void 0===e&&(e={skipLocationChange:!1});var n=t instanceof We?t:this.parseUrl(t),r=this.urlHandlingStrategy.merge(n,this.rawUrlTree);return this.scheduleNavigation(r,"imperative",e)},t.prototype.navigate=function(t,e){return void 0===e&&(e={skipLocationChange:!1}),Jt(t),"object"==typeof e.queryParams&&null!==e.queryParams&&(e.queryParams=this.removeEmptyProps(e.queryParams)),this.navigateByUrl(this.createUrlTree(t,e),e)},t.prototype.serializeUrl=function(t){return this.urlSerializer.serialize(t)},t.prototype.parseUrl=function(t){return this.urlSerializer.parse(t)},t.prototype.isActive=function(t,e){if(t instanceof We)return b(this.currentUrlTree,t,e);var n=this.urlSerializer.parse(t);return b(this.currentUrlTree,n,e)},t.prototype.removeEmptyProps=function(t){return Object.keys(t).reduce(function(e,n){var r=t[n];return null!==r&&void 0!==r&&(e[n]=r),e},{})},t.prototype.processNavigations=function(){var t=this;me.concatMap.call(this.navigations,function(e){return e?(t.executeScheduledNavigation(e),e.promise.catch(function(){})):Object(de.of)(null)}).subscribe(function(){})},t.prototype.scheduleNavigation=function(t,e,n){var r=this.navigations.value;if(r&&"imperative"!==e&&"imperative"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);if(r&&"hashchange"==e&&"popstate"===r.source&&r.rawUrl.toString()===t.toString())return Promise.resolve(!0);var i=null,o=null,s=new Promise(function(t,e){i=t,o=e}),a=++this.navigationId;return this.navigations.next({id:a,source:e,rawUrl:t,extras:n,resolve:i,reject:o,promise:s}),s.catch(function(t){return Promise.reject(t)})},t.prototype.executeScheduledNavigation=function(t){var e=this,n=t.id,r=t.rawUrl,i=t.extras,o=t.resolve,s=t.reject,a=this.urlHandlingStrategy.extract(r),u=!this.navigated||a.toString()!==this.currentUrlTree.toString();u&&this.urlHandlingStrategy.shouldProcessUrl(r)?(this.routerEvents.next(new Pe(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!!i.skipLocationChange,!!i.replaceUrl,n,null)}).then(o,s)):u&&this.rawUrlTree&&this.urlHandlingStrategy.shouldProcessUrl(this.rawUrlTree)?(this.routerEvents.next(new Pe(n,this.serializeUrl(a))),Promise.resolve().then(function(t){return e.runNavigate(a,r,!1,!1,n,et(a,e.rootComponentType).snapshot)}).then(o,s)):(this.rawUrlTree=r,o(null))},t.prototype.runNavigate=function(t,e,n,r,i,s){var a=this;return i!==this.navigationId?(this.location.go(this.urlSerializer.serialize(this.currentUrlTree)),this.routerEvents.next(new Le(i,this.serializeUrl(t),"Navigation ID "+i+" is not equal to the current navigation id "+this.navigationId)),Promise.resolve(!1)):new Promise(function(u,c){var l;if(s)l=Object(de.of)({appliedUrl:t,snapshot:s});else{var h=a.ngModule.injector,p=V(h,a.configLoader,a.urlSerializer,t,a.config);l=_e.mergeMap.call(p,function(e){return be.map.call(At(a.rootComponentType,a.
1config,e,a.serializeUrl(e)),function(n){return a.routerEvents.next(new Ie(i,a.serializeUrl(t),a.serializeUrl(e),n)),{appliedUrl:e,snapshot:n}})})}var f,d,m=_e.mergeMap.call(l,function(t){return be.map.call(a.hooks.beforePreactivation(t.snapshot),function(){return t})}),v=be.map.call(m,function(t){var e=t.appliedUrl,n=t.snapshot,r=a.ngModule.injector;return f=new Sn(n,a.currentRouterState.snapshot,r),f.traverse(a.rootContexts),{appliedUrl:e,snapshot:n}}),y=_e.mergeMap.call(v,function(e){var n=e.appliedUrl,r=e.snapshot;return a.navigationId!==i?Object(de.of)(!1):(a.triggerEvent(new De(i,a.serializeUrl(t),n,r)),be.map.call(f.checkGuards(),function(e){return a.triggerEvent(new Fe(i,a.serializeUrl(t),n,r,e)),{appliedUrl:n,snapshot:r,shouldActivate:e}}))}),g=_e.mergeMap.call(y,function(e){return a.navigationId!==i?Object(de.of)(!1):e.shouldActivate&&f.isActivating()?(a.triggerEvent(new Ue(i,a.serializeUrl(t),e.appliedUrl,e.snapshot)),be.map.call(f.resolveData(),function(){return a.triggerEvent(new Be(i,a.serializeUrl(t),e.appliedUrl,e.snapshot)),e})):Object(de.of)(e)}),b=_e.mergeMap.call(g,function(t){return be.map.call(a.hooks.afterPreactivation(t.snapshot),function(){return t})}),_=be.map.call(b,function(t){var e=t.appliedUrl,n=t.snapshot,r=t.shouldActivate;if(r){return{appliedUrl:e,state:ut(a.routeReuseStrategy,n,a.currentRouterState),shouldActivate:r}}return{appliedUrl:e,state:null,shouldActivate:r}}),w=a.currentRouterState,x=a.currentUrlTree;_.forEach(function(t){var o=t.appliedUrl,s=t.state;if(!t.shouldActivate||i!==a.navigationId)return void(d=!1);if(a.currentUrlTree=o,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.currentRouterState=s,!n){var u=a.urlSerializer.serialize(a.rawUrlTree);a.location.isCurrentPathEqualTo(u)||r?a.location.replaceState(u):a.location.go(u)}new Tn(a.routeReuseStrategy,s,w).activate(a.rootContexts),d=!0}).then(function(){d?(a.navigated=!0,a.routerEvents.next(new Re(i,a.serializeUrl(t),a.serializeUrl(a.currentUrlTree))),u(!0)):(a.resetUrlToCurrentUrlTree(),a.routerEvents.next(new Le(i,a.seri
1alizeUrl(t),"")),u(!1))},function(n){if(o(n))a.resetUrlToCurrentUrlTree(),a.navigated=!0,a.routerEvents.next(new Le(i,a.serializeUrl(t),n.message)),u(!1);else{a.routerEvents.next(new Ne(i,a.serializeUrl(t),n));try{u(a.errorHandler(n))}catch(t){c(t)}}a.currentRouterState=w,a.currentUrlTree=x,a.rawUrlTree=a.urlHandlingStrategy.merge(a.currentUrlTree,e),a.location.replaceState(a.serializeUrl(a.rawUrlTree))})})},t.prototype.resetUrlToCurrentUrlTree=function(){var t=this.urlSerializer.serialize(this.rawUrlTree);this.location.replaceState(t)},t}(),xn=function(){function t(t){this.path=t}return Object.defineProperty(t.prototype,"route",{get:function(){return this.path[this.path.length-1]},enumerable:!0,configurable:!0}),t}(),En=function(){function t(t,e){this.component=t,this.route=e}return t}(),Sn=function(){function t(t,e,n){this.future=t,this.curr=e,this.moduleInjector=n,this.canActivateChecks=[],this.canDeactivateChecks=[]}return t.prototype.traverse=function(t){var e=this.future._root,n=this.curr?this.curr._root:null;this.traverseChildRoutes(e,n,t,[e.value])},t.prototype.checkGuards=function(){var t=this;if(!this.isDeactivating()&&!this.isActivating())return Object(de.of)(!0);var e=this.runCanDeactivateChecks();return _e.mergeMap.call(e,function(e){return e?t.runCanActivateChecks():Object(de.of)(!1)})},t.prototype.resolveData=function(){var t=this;if(!this.isActivating())return Object(de.of)(null);var e=Object(fe.from)(this.canActivateChecks),n=me.concatMap.call(e,function(e){return t.runResolve(e.route)});return we.reduce.call(n,function(t,e){return t})},t.prototype.isDeactivating=function(){return 0!==this.canDeactivateChecks.length},t.prototype.isActivating=function(){return 0!==this.canActivateChecks.length},t.prototype.traverseChildRoutes=function(t,e,n,r){var i=this,o=Yt(e);t.children.forEach(function(t){i.traverseRoutes(t,o[t.value.outlet],n,r.concat([t.value])),delete o[t.value.outlet]}),d(o,function(t,e){return i.deactivateRouteAndItsChildren(t,n.getContext(e))})},t.prototype.traverseRoutes=function(t,e,n,r){var i=t.value,o=e?e.value:null,s=n?n.getContext(t.value.outlet):null;if(o&&i._routeConfig===o._routeConfig){var a=this.shouldRunGuardsAndResolvers(o,i,i._routeConfig.runGuardsAndResolvers);if(a?this.canActivateChecks.push(new xn(r)):(i.data=o.data,i._resolvedData=o._resolvedData),i.component?this.traverseChildRoutes(t,e,s?s.children:null,r):this.traverseChildRoutes(t,e,n,r),a){var u=s.outlet;this.canDeactivateChecks.push(new En(u.component,o))}}else o&&this.deactivateRouteAndItsChildren(e,s),this.canActivateChecks.push(new xn(r)),i.component?this.traverseChildRoutes(t,null,s?s.children:null,r):this.traverseChildRoutes(t,null,n,r)},t.prototype.shouldRunGuardsAndResolvers=function(t,e,n){switch(n){case"always":return!0;case"paramsOrQueryParamsChange":return!at(t,e)||!h(t.queryParams,e.queryParams);case"paramsChange":default:return!at(t,e)}},t.prototype.deactivateRouteAndItsChildren=function(t,e){var n=this,r=Yt(t),i=t.value;d(r,function(t,r){i.component?e?n.deactivateRouteAndItsChildren(t,e.children.getContext(r)):n.deactivateRouteAndItsChildren(t,null):n.deactivateRouteAndItsChildren(t,e)}),i.component&&e&&e.outlet&&e.outlet.isActivated?this.canDeactivateChecks.push(new En(e.outlet.component,i)):this.canDeactivateChecks.push(new En(null,i))},t.prototype.runCanDeactivateChecks=function(){var t=this,e=Object(fe.from)(this.canDeactivateChecks),n=_e.mergeMap.call(e,function(e){return t.runCanDeactivate(e.component,e.route)});return ve.every.call(n,function(t){return!0===t})},t.prototype.runCanActivateChecks=function(){var t=this,e=Object(fe.from)(this.canActivateChecks),n=me.concatMap.call(e,function(e){return v(Object(fe.from)([t.runCanActivateChild(e.path),t.runCanActivate(e.route)]))});return ve.every.call(n,function(t){return!0===t})},t.prototype.runCanActivate=function(t){var e=this,n=t._routeConfig?t._routeConfig.canActivate:null;return n&&0!==n.length?v(be.map.call(Object(fe.from)(n),function(n){var r,i=e.getToken(n,t);return r=y(i.canActivate?i.canActivate(t,e.future):i(t,e.future)),ye.first.call(r)})):Object(de.of)(!0)},t.prototype.runCanActivateChild=function(t){var e=this,n=t[t.length-1],r=t.slice(0,t.length-1).reverse().map(function(t){return e.extractCanActivateChild(t)}).filter(function(t){return null!==t});return v(be.map.call(Object(fe.from)(r),function(t){return v(be.map.call(Object(fe.from)(t.guards),function(r){var i,o=e.getToken(r,t.node);return i=y(o.canActivateChild?o.canActivateChild(n,e.future):o(n,e.future)),ye.first.call(i)}))}))},t.prototype.extractCanActivateChild=function(t){var e=t._routeConfig?t._routeConfig.canActivateChild:null;return e&&0!==e.length?{node:t,guards:e}:null},t.prototype.runCanDeactivate=function(t,e){var n=this,r=e&&e._routeConfig?e._routeConfig.canDeactivate:null;if(!r||0===r.length)return Object(de.of)(!0);var i=_e.mergeMap.call(Object(fe.from)(r),function(r){var i,o=n.getToken(r,e);return i=y(o.canDeactivate?o.canDeactivate(t,e,n.curr,n.future):o(t,e,n.curr,n.future)),ye.first.call(i)});return ve.every.call(i,function(t){return!0===t})},t.prototype.runResolve=function(t){var e=t._resolve;return be.map.call(this.resolveNode(e,t),function(e){return t._resolvedData=e,t.data=Object.assign({},t.data,rt(t).resolve),null})},t.prototype.resolveNode=function(t,e){var n=this,r=Object.keys(t);if(0===r.length)return Object(de.of)({});if(1===r.length){var i=r[0];return be.map.call(this.getResolver(t[i],e),function(t){return e={},e[i]=t,e;var e})}var o={},s=_e.mergeMap.call(Object(fe.from)(r),function(r){return be.map.call(n.getResolver(t[r],e),function(t){return o[r]=t,t})});return be.map.call(ge.last.call(s),function(){return o}
1)},t.prototype.getResolver=function(t,e){var n=this.getToken(t,e);return y(n.resolve?n.resolve(e,this.future):n(e,this.future))},t.prototype.getToken=function(t,e){var n=Kt(e);return(n?n.module.injector:this.moduleInjector).get(t)},t}(),Tn=function(){function t(t,e,n){this.routeReuseStrategy=t,this.futureState=e,this.currState=n}return t.prototype.activate=function(t){var e=this.futureState._root,n=this.currState?this.currState._root:null;this.deactivateChildRoutes(e,n,t),st(this.futureState.root),this.activateChildRoutes(e,n,t)},t.prototype.deactivateChildRoutes=function(t,e,n){var r=this,i=Yt(e);t.children.forEach(function(t){var e=t.value.outlet;r.deactivateRoutes(t,i[e],n),delete i[e]}),d(i,function(t,e){r.deactivateRouteAndItsChildren(t,n)})},t.prototype.deactivateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(r===i)if(r.component){var o=n.getContext(r.outlet);o&&this.deactivateChildRoutes(t,e,o.children)}else this.deactivateChildRoutes(t,e,n);else i&&this.deactivateRouteAndItsChildren(e,n)},t.prototype.deactivateRouteAndItsChildren=function(t,e){this.routeReuseStrategy.shouldDetach(t.value.snapshot)?this.detachAndStoreRouteSubtree(t,e):this.deactivateRouteAndOutlet(t,e)},t.prototype.detachAndStoreRouteSubtree=function(t,e){var n=e.getContext(t.value.outlet);if(n&&n.outlet){var r=n.outlet.detach(),i=n.children.onOutletDeactivated();this.routeReuseStrategy.store(t.value.snapshot,{componentRef:r,route:t,contexts:i})}},t.prototype.deactivateRouteAndOutlet=function(t,e){var n=this,r=e.getContext(t.value.outlet);if(r){var i=Yt(t),o=t.value.component?r.children:e;d(i,function(t,e){return n.deactivateRouteAndItsChildren(t,o)}),r.outlet&&(r.outlet.deactivate(),r.children.onOutletDeactivated())}},t.prototype.activateChildRoutes=function(t,e,n){var r=this,i=Yt(e);t.children.forEach(function(t){r.activateRoutes(t,i[t.value.outlet],n)})},t.prototype.activateRoutes=function(t,e,n){var r=t.value,i=e?e.value:null;if(st(r),r===i)if(r.component){var o=n.getOrCreateContext(r.outlet);this.activateChildRoutes(t,e,o.children)}else this.activateChildRoutes(t,e,n);else if(r.component){var o=n.getOrCreateContext(r.outlet);if(this.routeReuseStrategy.shouldAttach(r.snapshot)){var s=this.routeReuseStrategy.retrieve(r.snapshot);this.routeReuseStrategy.store(r.snapshot,null),o.children.onOutletReAttached(s.contexts),o.attachRef=s.componentRef,o.route=s.route.value,o.outlet&&o.outlet.attach(s.componentRef,s.route.value),Zt(s.route)}else{var a=Xt(r.snapshot),u=a?a.module.componentFactoryResolver:null;o.route=r,o.resolver=u,o.outlet&&o.outlet.activateWith(r,u),this.activateChildRoutes(t,null,o.children)}}else this.activateChildRoutes(t,null,n)},t}(),Mn=function(){function t(t,e,n,r,i){this.router=t,this.route=e,this.commands=[],null==n&&r.setAttribute(i.nativeElement,"tabindex","0")}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(le._6)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated!, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.onClick=function(){var t={skipLocationChange:Qt(this.skipLocationChange),replaceUrl:Qt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,t),!0},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Qt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Qt(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Mn.decorators=[{type:le.m,args:[{selector:":not(a)[routerLink]"}]}],Mn.ctorParameters=function(){return[{type:wn},{type:un},{type:void 0,decorators:[{type:le.h,args:["tabindex"]}]},{type:le.N},{type:le.n}]},Mn.propDecorators={queryParams:[{type:le.x}],fragment:[{type:le.x}],queryParamsHandling:[{type:le.x}],preserveFragment:[{type:le.x}],skipLocationChange:[{type:le.x}],replaceUrl:[{type:le.x}],routerLink:[{type:le.x}],preserveQueryParams:[{type:le.x}],onClick:[{type:le.s,args:["click"]}]};var Cn=function(){function t(t,e,n){var r=this;this.router=t,this.route=e,this.locationStrategy=n,this.commands=[],this.subscription=t.events.subscribe(function(t){t instanceof Re&&r.updateTargetUrlAndHref()})}return Object.defineProperty(t.prototype,"routerLink",{set:function(t){this.commands=null!=t?Array.isArray(t)?t:[t]:[]},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"preserveQueryParams",{set:function(t){Object(le._6)()&&console&&console.warn&&console.warn("preserveQueryParams is deprecated, use queryParamsHandling instead."),this.preserve=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.updateTargetUrlAndHref()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.onClick=function(t,e,n,r){if(0!==t||e||n||r)return!0;
1if("string"==typeof this.target&&"_self"!=this.target)return!0;var i={skipLocationChange:Qt(this.skipLocationChange),replaceUrl:Qt(this.replaceUrl)};return this.router.navigateByUrl(this.urlTree,i),!1},t.prototype.updateTargetUrlAndHref=function(){this.href=this.locationStrategy.prepareExternalUrl(this.router.serializeUrl(this.urlTree))},Object.defineProperty(t.prototype,"urlTree",{get:function(){return this.router.createUrlTree(this.commands,{relativeTo:this.route,queryParams:this.queryParams,fragment:this.fragment,preserveQueryParams:Qt(this.preserve),queryParamsHandling:this.queryParamsHandling,preserveFragment:Qt(this.preserveFragment)})},enumerable:!0,configurable:!0}),t}();Cn.decorators=[{type:le.m,args:[{selector:"a[routerLink]"}]}],Cn.ctorParameters=function(){return[{type:wn},{type:un},{type:ce.g}]},Cn.propDecorators={target:[{type:le.r,args:["attr.target"]},{type:le.x}],queryParams:[{type:le.x}],fragment:[{type:le.x}],queryParamsHandling:[{type:le.x}],preserveFragment:[{type:le.x}],skipLocationChange:[{type:le.x}],replaceUrl:[{type:le.x}],href:[{type:le.r}],routerLink:[{type:le.x}],preserveQueryParams:[{type:le.x}],onClick:[{type:le.s,args:["click",["$event.button","$event.ctrlKey","$event.metaKey","$event.shiftKey"]]}]};var On=function(){function t(t,e,n,r){var i=this;this.router=t,this.element=e,this.renderer=n,this.cdr=r,this.classes=[],this.active=!1,this.routerLinkActiveOptions={exact:!1},this.subscription=t.events.subscribe(function(t){t instanceof Re&&i.update()})}return Object.defineProperty(t.prototype,"isActive",{get:function(){return this.active},enumerable:!0,configurable:!0}),t.prototype.ngAfterContentInit=function(){var t=this;this.links.changes.subscribe(function(e){return t.update()}),this.linksWithHrefs.changes.subscribe(function(e){return t.update()}),this.update()},Object.defineProperty(t.prototype,"routerLinkActive",{set:function(t){var e=Array.isArray(t)?t:t.split(" ");this.classes=e.filter(function(t){return!!t})},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this.update()},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.update=function(){var t=this;this.links&&this.linksWithHrefs&&this.router.navigated&&Promise.resolve().then(function(){var e=t.hasActiveLinks();t.active!==e&&(t.active=e,t.classes.forEach(function(n){e?t.renderer.addClass(t.element.nativeElement,n):t.renderer.removeClass(t.element.nativeElement,n)}))})},t.prototype.isLinkActive=function(t){var e=this;return function(n){return t.isActive(n.urlTree,e.routerLinkActiveOptions.exact)}},t.prototype.hasActiveLinks=function(){return this.links.some(this.isLinkActive(this.router))||this.linksWithHrefs.some(this.isLinkActive(this.router))},t}();On.decorators=[{type:le.m,args:[{selector:"[routerLinkActive]",exportAs:"routerLinkActive"}]}],On.ctorParameters=function(){return[{type:wn},{type:le.n},{type:le.N},{type:le.i}]},On.propDecorators={links:[{type:le.l,args:[Mn,{descendants:!0}]}],linksWithHrefs:[{type:le.l,args:[Cn,{descendants:!0}]}],routerLinkActiveOptions:[{type:le.x}],routerLinkActive:[{type:le.x}]};var An=function(){function t(){this.outlet=null,this.route=null,this.resolver=null,this.children=new Pn,this.attachRef=null}return t}(),Pn=function(){function t(){this.contexts=new Map}return t.prototype.onChildOutletCreated=function(t,e){var n=this.getOrCreateContext(t);n.outlet=e,this.contexts.set(t,n)},t.prototype.onChildOutletDestroyed=function(t){var e=this.getContext(t);e&&(e.outlet=null)},t.prototype.onOutletDeactivated=function(){var t=this.contexts;return this.contexts=new Map,t},t.prototype.onOutletReAttached=function(t){this.contexts=t},t.prototype.getOrCreateContext=function(t){var e=this.getContext(t);return e||(e=new An,this.contexts.set(t,e)),e},t.prototype.getContext=function(t){return this.contexts.get(t)||null},t}(),Rn=function(){function t(t,e,n,r,i){this.parentContexts=t,this.location=e,this.resolver=n,this.changeDetector=i,this.activated=null,this._activatedRoute=null,this.activateEvents=new le.p,this.deactivateEvents=new le.p,this.name=r||ze,t.onChildOutletCreated(this.name,this)}return t.prototype.ngOnDestroy=function(){this.parentContexts.onChildOutletDestroyed(this.name)},t.prototype.ngOnInit=function(){if(!this.activated){var t=this.parentContexts.getContext(this.name);t&&t.route&&(t.attachRef?this.attach(t.attachRef,t.route):this.activateWith(t.route,t.resolver||null))}},Object.defineProperty(t.prototype,"locationInjector",{get:function(){return this.location.injector},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"locationFactoryResolver",{get:function(){return this.resolver},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"isActivated",{get:function(){return!!this.activated},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"component",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this.activated.instance},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRoute",{get:function(){if(!this.activated)throw new Error("Outlet is not activated");return this._activatedRoute},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"activatedRouteData",{get:function(){return this._activatedRoute?this._activatedRoute.snapshot.data:{}},enumerable:!0,configurable:!0}),t.prototype.detach=function(){if(!this.activated)throw new Error("Outlet is not activated");this.location.detach();var t=this.activated;return this.activated=null,this._activatedRoute=null,t},t.prototype.attach=function(t,e){this.activated=t,this._activatedRoute=e,this.location.insert(t.hostView)},t.prototype.deactivate=function(){if(this.activated){var t=this.component;this.activated.destroy(),this.activated=null,this._activatedRoute=null,this.deactivateEvents.emit(t)}},t.prototype.activateWith=function(t,e){if(this.isActivated)throw new Error("Cannot activate an already activated outlet");this._activatedRoute=t;
1var n=t._futureSnapshot,r=n._routeConfig.component;e=e||this.resolver;var i=e.resolveComponentFactory(r),o=this.parentContexts.getOrCreateContext(this.name).children,s=new Ln(t,o,this.location.injector);this.activated=this.location.createComponent(i,this.location.length,s),this.changeDetector.markForCheck(),this.activateEvents.emit(this.activated.instance)},t}();Rn.decorators=[{type:le.m,args:[{selector:"router-outlet",exportAs:"outlet"}]}],Rn.ctorParameters=function(){return[{type:Pn},{type:le.Z},{type:le.k},{type:void 0,decorators:[{type:le.h,args:["name"]}]},{type:le.i}]},Rn.propDecorators={activateEvents:[{type:le.I,args:["activate"]}],deactivateEvents:[{type:le.I,args:["deactivate"]}]};var Ln=function(){function t(t,e,n){this.route=t,this.childContexts=e,this.parent=n}return t.prototype.get=function(t,e){return t===un?this.route:t===Pn?this.childContexts:this.parent.get(t,e)},t}(),Nn=function(){function t(){}return t.prototype.preload=function(t,e){},t}(),In=function(){function t(){}return t.prototype.preload=function(t,e){return Ee._catch.call(e(),function(){return Object(de.of)(null)})},t}(),kn=function(){function t(){}return t.prototype.preload=function(t,e){return Object(de.of)(null)},t}(),jn=function(){function t(t,e,n,r,i){this.router=t,this.injector=r,this.preloadingStrategy=i;var o=function(e){return t.triggerEvent(new ke(e))},s=function(e){return t.triggerEvent(new je(e))};this.loader=new gn(e,n,o,s)}return t.prototype.setUpPreloading=function(){var t=this,e=Ae.filter.call(this.router.events,function(t){return t instanceof Re});this.subscription=me.concatMap.call(e,function(){return t.preload()}).subscribe(function(){})},t.prototype.preload=function(){var t=this.injector.get(le.E);return this.processRoutes(t,this.router.config)},t.prototype.ngOnDestroy=function(){this.subscription.unsubscribe()},t.prototype.processRoutes=function(t,e){for(var n=[],r=0,i=e;r<i.length;r++){var o=i[r];if(o.loadChildren&&!o.canLoad&&o._loadedConfig){var s=o._loadedConfig;n.push(this.processRoutes(s.module,s.routes))}else o.loadChildren&&!o.canLoad?n.push(this.preloadConfig(t,o)):o.children&&n.push(this.processRoutes(t,o.children))}return Ce.mergeAll.call(Object(fe.from)(n))},t.prototype.preloadConfig=function(t,e){var n=this;return this.preloadingStrategy.preload(e,function(){var r=n.loader.load(t.injector,e);return _e.mergeMap.call(r,function(t){return e._loadedConfig=t,n.processRoutes(t.module,t.routes)})})},t}();jn.decorators=[{type:le.u}],jn.ctorParameters=function(){return[{type:wn},{type:le.D},{type:le.j},{type:le.w},{type:Nn}]};var Dn=[Rn,Mn,Cn,On],Fn=new le.v("ROUTER_CONFIGURATION"),Un=new le.v("ROUTER_FORROOT_GUARD"),Bn=[ce.f,{provide:Xe,useClass:Ke},{provide:wn,useFactory:re,deps:[le.g,Xe,Pn,ce.f,le.w,le.D,le.j,yn,Fn,[bn,new le.H],[mn,new le.H]]},Pn,{provide:un,useFactory:ie,deps:[wn]},{provide:le.D,useClass:le.U},jn,kn,In,{provide:Fn,useValue:{enableTracing:!1}}],zn=function(){function t(t,e){}return t.forRoot=function(e,n){return{ngModule:t,providers:[Bn,ne(e),{provide:Un,useFactory:ee,deps:[[wn,new le.H,new le.T]]},{provide:Fn,useValue:n||{}},{provide:ce.g,useFactory:te,deps:[ce.o,[new le.t(ce.a),new le.H],Fn]},{provide:Nn,useExisting:n&&n.preloadingStrategy?n.preloadingStrategy:kn},{provide:le.F,multi:!0,useFactory:$t},ae()]}},t.forChild=function(e){return{ngModule:t,providers:[ne(e)]}},t}();zn.decorators=[{type:le.B,args:[{declarations:Dn,exports:Dn}]}],zn.ctorParameters=function(){return[{type:void 0,decorators:[{type:le.H},{type:le.t,args:[Un]}]},{type:wn,decorators:[{type:le.H}]}]};var Vn=function(){function t(t){this.injector=t,this.initNavigation=!1,this.resultOfPreactivationDone=new pe.Subject}return t.prototype.appInitializer=function(){var t=this;return this.injector.get(ce.e,Promise.resolve(null)).then(function(){var e=null,n=new Promise(function(t){return e=t}),r=t.injector.get(wn),i=t.injector.get(Fn);if(t.isLegacyDisabled(i)||t.isLegacyEnabled(i))e(!0);else if("disabled"===i.initialNavigation)r.setUpLocationChangeListener(),e(!0);else{if("enabled"!==i.initialNavigation)throw new Error("Invalid initialNavigation options: '"+i.initialNavigation+"'");r.hooks.afterPreactivation=function(){return t.initNavigation?Object(de.of)(null):(t.initNavigation=!0,e(!0),t.resultOfPreactivationDone)},r.initialNavigation()}return n})},t.prototype.bootstrapListener=function(t){var e=this.injector.get(Fn),n=this.injector.get(jn),r=this.injector.get(wn),i=this.injector.get(le.g);t===i.components[0]&&(this.isLegacyEnabled(e)?r.initialNavigation():this.isLegacyDisabled(e)&&r.setUpLocationChangeListener(),n.setUpPreloading(),r.resetRootComponentType(i.componentTypes[0]),this.resultOfPreactivationDone.next(null),this.resultOfPreactivationDone.complete())},t.prototype.isLegacyEnabled=function(t){return"legacy_enabled"===t.initialNavigation||!0===t.initialNavigation||void 0===t.initialNavigation},t.prototype.isLegacyDisabled=function(t){return"legacy_disabled"===t.initialNavigation||!1===t.initialNavigation},t}();Vn.decorators=[{type:le.u}],Vn.ctorParameters=function(){return[{type:le.w}]};var Hn=new le.v("Router Initializer");new le.Y("4.4.6")},BmTs:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("ZGtO"),o={NONE:-1,ROTATE:0,DOLLY:1,PAN:2,TOUCH_ROTATE:3,TOUCH_DOLLY:4,TOUCH_PAN:5},s={type:"change"},a={type:"start"},u={type:"end"},c=function(t){function e(e,n,r){var s=t.call(this)||this;return s.object=e,s.domElement=void 0!==n?n:document,s.window=void 0!==r?r:window,s.enabled=!0,s.target=new i.Vector3,s.minDistance=0,s.maxDistance=1/0,s.minZ
1oom=0,s.maxZoom=1/0,s.minPolarAngle=0,s.maxPolarAngle=Math.PI,s.minAzimuthAngle=-1/0,s.maxAzimuthAngle=1/0,s.enableDamping=!1,s.dampingFactor=.25,s.enableZoom=!0,s.zoomSpeed=1,s.enableRotate=!0,s.rotateSpeed=1,s.enablePan=!0,s.keyPanSpeed=7,s.autoRotate=!1,s.autoRotateSpeed=2,s.enableKeys=!0,s.keys={LEFT:37,UP:38,RIGHT:39,BOTTOM:40},s.mouseButtons={ORBIT:i.MOUSE.LEFT,ZOOM:i.MOUSE.MIDDLE,PAN:i.MOUSE.RIGHT},s.target0=s.target.clone(),s.position0=s.object.position.clone(),s.zoom0=s.object.zoom,s.updateOffset=new i.Vector3,s.updateQuat=(new i.Quaternion).setFromUnitVectors(e.up,new i.Vector3(0,1,0)),s.updateQuatInverse=s.updateQuat.clone().inverse(),s.updateLastPosition=new i.Vector3,s.updateLastQuaternion=new i.Quaternion,s.state=o.NONE,s.scale=1,s.spherical=new i.Spherical,s.sphericalDelta=new i.Spherical,s.panOffset=new i.Vector3,s.zoomChanged=!1,s.rotateStart=new i.Vector2,s.rotateEnd=new i.Vector2,s.rotateDelta=new i.Vector2,s.panStart=new i.Vector2,s.panEnd=new i.Vector2,s.panDelta=new i.Vector2,s.dollyStart=new i.Vector2,s.dollyEnd=new i.Vector2,s.dollyDelta=new i.Vector2,s.panLeftV=new i.Vector3,s.panUpV=new i.Vector3,s.panInternalOffset=new i.Vector3,s.onMouseDown=function(t){if(!1!==s.enabled){if(t.preventDefault(),t.button===s.mouseButtons.ORBIT){if(!1===s.enableRotate)return;s.rotateStart.set(t.clientX,t.clientY),s.state=o.ROTATE}else if(t.button===s.mouseButtons.ZOOM){if(!1===s.enableZoom)return;s.dollyStart.set(t.clientX,t.clientY),s.state=o.DOLLY}else if(t.button===s.mouseButtons.PAN){if(!1===s.enablePan)return;s.panStart.set(t.clientX,t.clientY),s.state=o.PAN}s.state!==o.NONE&&(document.addEventListener("mousemove",s.onMouseMove,!1),document.addEventListener("mouseup",s.onMouseUp,!1),s.dispatchEvent(a))}},s.onMouseMove=function(t){if(!1!==s.enabled)if(t.preventDefault(),s.state===o.ROTATE){if(!1===s.enableRotate)return;s.rotateEnd.set(t.clientX,t.clientY),s.rotateDelta.subVectors(s.rotateEnd,s.rotateStart);var e=s.domElement===document?s.domElement.body:s.domElement;s.rotateLeft(2*Math.PI*s.rotateDelta.x/e.clientWidth*s.rotateSpeed),s.rotateUp(2*Math.PI*s.rotateDelta.y/e.clientHeight*s.rotateSpeed),s.rotateStart.copy(s.rotateEnd),s.update()}else if(s.state===o.DOLLY){if(!1===s.enableZoom)return;s.dollyEnd.set(t.clientX,t.clientY),s.dollyDelta.subVectors(s.dollyEnd,s.dollyStart),s.dollyDelta.y>0?s.dollyIn(s.getZoomScale()):s.dollyDelta.y<0&&s.dollyOut(s.getZoomScale()),s.dollyStart.copy(s.dollyEnd),s.update()}else if(s.state===o.PAN){if(!1===s.enablePan)return;s.panEnd.set(t.clientX,t.clientY),s.panDelta.subVectors(s.panEnd,s.panStart),s.pan(s.panDelta.x,s.panDelta.y),s.panStart.copy(s.panEnd),s.update()}},s.onMouseUp=function(t){!1!==s.enabled&&(document.removeEventListener("mousemove",s.onMouseMove,!1),document.removeEventListener("mouseup",s.onMouseUp,!1),s.dispatchEvent(u),s.state=o.NONE)},s.onMouseWheel=function(t){!1===s.enabled||!1===s.enableZoom||s.state!==o.NONE&&s.state!==o.ROTATE||(t.preventDefault(),t.stopPropagation(),t.deltaY<0?s.dollyOut(s.getZoomScale()):t.deltaY>0&&s.dollyIn(s.getZoomScale()),s.update(),s.dispatchEvent(a),s.dispatchEvent(u))},s.onKeyDown=function(t){if(!1!==s.enabled&&!1!==s.enableKeys&&!1!==s.enablePan)switch(t.keyCode){case s.keys.UP:s.pan(0,s.keyPanSpeed),s.update();break;case s.keys.BOTTOM:s.pan(0,-s.keyPanSpeed),s.update();break;case s.keys.LEFT:s.pan(s.keyPanSpeed,0),s.update();break;case s.keys.RIGHT:s.pan(-s.keyPanSpeed,0),s.update()}},s.onTouchStart=function(t){if(!1!==s.enabled){switch(t.touches.length){case 1:if(!1===s.enableRotate)return;s.rotateStart.set(t.touches[0].pageX,t.touches[0].pageY),s.state=o.TOUCH_ROTATE;break;case 2:if(!1===s.enableZoom)return;var e=t.touches[0].pageX-t.touches[1].pageX,n=t.touches[0].pageY-t.touches[1].pageY,r=Math.sqrt(e*e+n*n);s.dollyStart.set(0,r),s.state=o.TOUCH_DOLLY;break;case 3:if(!1===s.enablePan)return;s.panStart.set(t.touches[0].pageX,t.touches[0].pageY),s.state=o.TOUCH_PAN;break;default:s.state=o.NONE}s.state!==o.NONE&&s.dispatchEvent(a)}},s.onTouchMove=function(t){if(!1!==s.enabled)switch(t.preventDefault(),t.stopPropagation(),t.touches.length){case 1:if(!1===s.enableRotate)return;if(s.state!==o.TOUCH_ROTATE)return;s.rotateEnd.set(t.touches[0].pageX,t.touches[0].pageY),s.rotateDelta.subVectors(s.rotateEnd,s.rotateStart);var e=s.domElement===document?s.domElement.body:s.domElement;s.rotateLeft(2*Math.PI*s.rotateDelta.x/e.clientWidth*s.rotateSpeed),s.rotateUp(2*Math.PI*s.rotateDelta.y/e.clientHeight*s.rotateSpeed),s.rotateStart.copy(s.rotateEnd),s.update();break;case 2:if(!1===s.enableZoom)return;if(s.state!==o.TOUCH_DOLLY)return;var n=t.touches[0].pageX-t.touches[1].pageX,r=t.touches[0].pageY-t.touches[1].pageY,
1i=Math.sqrt(n*n+r*r);s.dollyEnd.set(0,i),s.dollyDelta.subVectors(s.dollyEnd,s.dollyStart),s.dollyDelta.y>0?s.dollyOut(s.getZoomScale()):s.dollyDelta.y<0&&s.dollyIn(s.getZoomScale()),s.dollyStart.copy(s.dollyEnd),s.update();break;case 3:if(!1===s.enablePan)return;if(s.state!==o.TOUCH_PAN)return;s.panEnd.set(t.touches[0].pageX,t.touches[0].pageY),s.panDelta.subVectors(s.panEnd,s.panStart),s.pan(s.panDelta.x,s.panDelta.y),s.panStart.copy(s.panEnd),s.update();break;default:s.state=o.NONE}},s.onTouchEnd=function(t){!1!==s.enabled&&(s.dispatchEvent(u),s.state=o.NONE)},s.onContextMenu=function(t){t.preventDefault()},s.domElement.addEventListener("contextmenu",s.onContextMenu,!1),s.domElement.addEventListener("mousedown",s.onMouseDown,!1),s.domElement.addEventListener("wheel",s.onMouseWheel,!1),s.domElement.addEventListener("touchstart",s.onTouchStart,!1),s.domElement.addEventListener("touchend",s.onTouchEnd,!1),s.domElement.addEventListener("touchmove",s.onTouchMove,!1),s.window.addEventListener("keydown",s.onKeyDown,!1),s.update(),s}return r(e,t),e.prototype.update=function(){var t=this.object.position;return this.updateOffset.copy(t).sub(this.target),this.updateOffset.applyQuaternion(this.updateQuat),this.spherical.setFromVector3(this.updateOffset),this.autoRotate&&this.state===o.NONE&&this.rotateLeft(this.getAutoRotationAngle()),this.spherical.theta+=this.sphericalDelta.theta,this.spherical.phi+=this.sphericalDelta.phi,this.spherical.theta=Math.max(this.minAzimuthAngle,Math.min(this.maxAzimuthAngle,this.spherical.theta)),this.spherical.phi=Math.max(this.minPolarAngle,Math.min(this.maxPolarAngle,this.spherical.phi)),this.spherical.makeSafe(),this.spherical.radius*=this.scale,this.spherical.radius=Math.max(this.minDistance,Math.min(this.maxDistance,this.spherical.radius)),this.target.add(this.panOffset),this.updateOffset.setFromSpherical(this.spherical),this.updateOffset.applyQuaternion(this.updateQuatInverse),t.copy(this.target).add(this.updateOffset),this.object.lookAt(this.target),!0===this.enableDamping?(this.sphericalDelta.theta*=1-this.dampingFactor,this.sphericalDelta.phi*=1-this.dampingFactor):this.sphericalDelta.set(0,0,0),this.scale=1,this.panOffset.set(0,0,0),!!(this.zoomChanged||this.updateLastPosition.distanceToSquared(this.object.position)>1e-6||8*(1-this.updateLastQuaternion.dot(this.object.quaternion))>1e-6)&&(this.dispatchEvent(s),this.updateLastPosition.copy(this.object.position),this.updateLastQuaternion.copy(this.object.quaternion),this.zoomChanged=!1,!0)},e.prototype.panLeft=function(t,e){this.panLeftV.setFromMatrixColumn(e,0),this.panLeftV.multiplyScalar(-t),this.panOffset.add(this.panLeftV)},e.prototype.panUp=function(t,e){this.panUpV.setFromMatrixColumn(e,1),this.panUpV.multiplyScalar(t),this.panOffset.add(this.panUpV)},e.prototype.pan=function(t,e){var n=this.domElement===document?this.domElement.body:this.domElement;if(this.object instanceof i.PerspectiveCamera){var r=this.object.position;this.panInternalOffset.copy(r).sub(this.target);var o=this.panInternalOffset.length();o*=Math.tan(this.object.fov/2*Math.PI/180),this.panLeft(2*t*o/n.clientHeight,this.object.matrix),this.panUp(2*e*o/n.clientHeight,this.object.matrix)}
1else this.object instanceof i.OrthographicCamera?(this.panLeft(t*(this.object.right-this.object.left)/this.object.zoom/n.clientWidth,this.object.matrix),this.panUp(e*(this.object.top-this.object.bottom)/this.object.zoom/n.clientHeight,this.object.matrix)):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - pan disabled."),this.enablePan=!1)},e.prototype.dollyIn=function(t){this.object instanceof i.PerspectiveCamera?this.scale/=t:this.object instanceof i.OrthographicCamera?(this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom*t)),this.object.updateProjectionMatrix(),this.zoomChanged=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)},e.prototype.dollyOut=function(t){this.object instanceof i.PerspectiveCamera?this.scale*=t:this.object instanceof i.OrthographicCamera?(this.object.zoom=Math.max(this.minZoom,Math.min(this.maxZoom,this.object.zoom/t)),this.object.updateProjectionMatrix(),this.zoomChanged=!0):(console.warn("WARNING: OrbitControls.js encountered an unknown camera type - dolly/zoom disabled."),this.enableZoom=!1)},e.prototype.getAutoRotationAngle=function(){return 2*Math.PI/60/60*this.autoRotateSpeed},e.prototype.getZoomScale=function(){return Math.pow(.95,this.zoomSpeed)},e.prototype.rotateLeft=function(t){this.sphericalDelta.theta-=t},e.prototype.rotateUp=function(t){this.sphericalDelta.phi-=t},e.prototype.getPolarAngle=function(){return this.spherical.phi},e.prototype.getAzimuthalAngle=function(){return this.spherical.theta},e.prototype.dispose=function(){this.domElement.removeEventListener("contextmenu",this.onContextMenu,!1),this.domElement.removeEventListener("mousedown",this.onMouseDown,!1),this.domElement.removeEventListener("wheel",this.onMouseWheel,!1),this.domElement.removeEventListener("touchstart",this.onTouchStart,!1),this.domElement.removeEventListener("touchend",this.onTouchEnd,!1),this.domElement.removeEventListener("touchmove",this.onTouchMove,!1),document.removeEventListener("mousemove",this.onMouseMove,!1),document.removeEventListener("mouseup",this.onMouseUp,!1),this.window.removeEventListener("keydown",this.onKeyDown,!1)},e.prototype.reset=function(){this.target.copy(this.target0),this.object.position.copy(this.position0),this.object.zoom=this.zoom0,this.object.updateProjectionMatrix(),this.dispatchEvent(s),this.update(),this.state=o.NONE},Object.defineProperty(e.prototype,"center",{get:function(){return console.warn("THREE.OrbitControls: .center has been renamed to .target"),this.target},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"noZoom",{get:function(){return console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),!this.enableZoom},set:function(t){console.warn("THREE.OrbitControls: .noZoom has been deprecated. Use .enableZoom instead."),this.enableZoom=!t},enumerable:!0,configurable:!0}),e}(i.EventDispatcher);e.OrbitControls=c},C4ew:function(t,e,n){"use strict";function r(){return function(t){return t.lift(new s)}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.isEmpty=r;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return i(e,t),e.prototype.notifyComplete=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype._next=function(t){this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},C7jF:function(t,e,n){"use strict";function r(t){this.afterTransform=function(e,n){return i(t,e,n)},this.needTransform=!1,this.transforming=!1,this.writecb=null,this.writechunk=null,this.writeencoding=null}function i(t,e,n){var r=t._transformState;r.transforming=!1;var i=r.writecb;if(!i)return t.emit("error",new Error("write callback called multiple times"));r.writechunk=null,r.writecb=null,null!==n&&void 0!==n&&t.push(n),i(e);var o=t._readableState;o.reading=!1,(o.needReadable||o.length<o.highWaterMark)&&t._read(o.highWaterMark)}function o(t){if(!(this instanceof o))return new o(t);a.call(this,t),this._transformState=new r(this);var e=this;this._readableState.needReadable=!0,this._readableState.sync=!1,t&&("function"==typeof t.transform&&(this._transform=t.transform),"function"==typeof t.flush&&(this._flush=t.flush)),this.once("prefinish",function(){"function"==typeof this._flush?this._flush(function(t,n){s(e,t,n)}):s(e)})}function s(t,e,n){if(e)return t.emit("error",e);null!==n&&void 0!==n&&t.push(n);var r=t._writableState,i=t._transformState;if(r.length)throw new Error("Calling transform done when ws.length != 0");if(i.transforming)throw new Error("Calling transform done when still transforming");return t.push(null)}t.exports=o;var a=n("dJzE"),u=n("VIKU");u.inherits=n("lDCR"),u.inherits(o,a),o.prototype.push=function(t,e){return this._transformState.needTransform=!1,a.prototype.push.call(this,t,e)},o.prototype._transform=function(t,e,n){throw new Error("_transform() is not implemented")},o.prototype._write=function(t,e,n){var r=this._transformState;if(r.writecb=n,r.writechunk=t,r.writeencoding=e,!r.transforming){var i=this._readableState;(r.needTransform||i.needReadable||i.length<i.highWaterMark)&&this._read(i.highWaterMark)}},o.prototype._read=function(t){var e=this._transformState;null!==e.writechunk&&e.writecb&&!e.transforming?(e.transforming=!0,this._transform(e.writechunk,e.writeencoding,e.afterTransform)):e.needTransform=!0},o.prototype._destroy=function(t,e){var n=this;a.prototype._destroy.call(this,t,function(t){e(t),n.emit("close")})}},CDvF:function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},CE6k:function(t,e,n){"use strict";function r(){return i.share()(this)}var i=n("HwxE");
1e.share=r},"CH/r":function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=i.async),o.debounceTime(t,e)(this)}var i=n("IhB/"),o=n("Hr+Y");e.debounceTime=r},CPp0:function(t,e,n){"use strict";function r(t){if("string"!=typeof t)return t;switch(t.toUpperCase()){case"GET":return _.Get;case"POST":return _.Post;case"PUT":return _.Put;case"DELETE":return _.Delete;case"OPTIONS":return _.Options;case"HEAD":return _.Head;case"PATCH":return _.Patch}throw new Error('Invalid request method. The method "'+t+'" is not supported.')}function i(t){return"responseURL"in t?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function o(t){for(var e=new Uint16Array(t.length),n=0,r=t.length;n<r;n++)e[n]=t.charCodeAt(n);return e.buffer}function s(t){void 0===t&&(t="");var e=new Map;if(t.length>0){t.split("&").forEach(function(t){var n=t.indexOf("="),r=-1==n?[t,""]:[t.slice(0,n),t.slice(n+1)],i=r[0],o=r[1],s=e.get(i)||[];s.push(o),e.set(i,s)})}return e}function a(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function u(){var t="object"==typeof window?window:{};return null===D&&(D=t[j]={}),D}function c(t){var e=new L;return Object.keys(t).forEach(function(n){var r=t[n];r&&Array.isArray(r)?r.forEach(function(t){return e.append(n,t.toString())}):e.append(n,r.toString())}),e}function l(t,e){return t.createConnection(e).response}function h(t,e,n,r){var i=t;return e?i.merge(new K({method:e.method||n,url:e.url||r,search:e.search,params:e.params,headers:e.headers,body:e.body,withCredentials:e.withCredentials,responseType:e.responseType})):i.merge(new K({method:n,url:r}))}function p(){return new Z}function f(t,e){return new rt(t,e)}function d(t,e){return new it(t,e)}n.d(e,"c",function(){return b}),n.d(e,"h",function(){return X}),n.d(e,"a",function(){return Y}),n.d(e,"f",function(){return K}),n.d(e,"b",function(){return C}),n.d(e,"g",function(){return M}),n.d(e,"d",function(){return rt}),n.d(e,"e",function(){return ot}),n.d(e,"i",function(){return A}),n.d(e,"j",function(){return p}),n.d(e,"k",function(){return f});var m=n("6Xbx"),v=n("/oeL"),y=n("bKpL"),g=(n.n(y),n("fc+i")),b=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();b.decorators=[{type:v.u}],b.ctorParameters=function(){return[]};var _={};_.Get=0,_.Post=1,_.Put=2,_.Delete=3,_.Options=4,_.Head=5,_.Patch=6,_[_.Get]="Get",_[_.Post]="Post",_[_.Put]="Put",_[_.Delete]="Delete",_[_.Options]="Options",_[_.Head]="Head",_[_.Patch]="Patch";var w={};w.Unsent=0,w.Open=1,w.HeadersReceived=2,w.Loading=3,w.Done=4,w.Cancelled=5,w[w.Unsent]="Unsent",w[w.Open]="Open",w[w.HeadersReceived]="HeadersReceived",w[w.Loading]="Loading",w[w.Done]="Done",w[w.Cancelled]="Cancelled";var x={};x.Basic=0,x.Cors=1,x.Default=2,x.Error=3,x.Opaque=4,x[x.Basic]="Basic",x[x.Cors]="Cors",x[x.Default]="Default",x[x.Error]="Error",x[x.Opaque]="Opaque";var E={};E.NONE=0,E.JSON=1,E.FORM=2,E.FORM_DATA=3,E.TEXT=4,E.BLOB=5,E.ARRAY_BUFFER=6,E[E.NONE]="NONE",E[E.JSON]="JSON",E[E.FORM]="FORM",E[E.FORM_DATA]="FORM_DATA",E[E.TEXT]="TEXT",E[E.BLOB]="BLOB",E[E.ARRAY_BUFFER]="ARRAY_BUFFER";var S={};S.Text=0,S.Json=1,S.ArrayBuffer=2,S.Blob=3,S[S.Text]="Text",S[S.Json]="Json",S[S.ArrayBuffer]="ArrayBuffer",S[S.Blob]="Blob";var T=function(){function t(e){var n=this;if(this._headers=new Map,this._normalizedNames=new Map,e)return e instanceof t?void e.forEach(function(t,e){t.forEach(function(t){return n.append(e,t)})}):void Object.keys(e).forEach(function(t){var r=Array.isArray(e[t])?e[t]:[e[t]];n.delete(t),r.forEach(function(e){return n.append(t,e)})})}return t.fromResponseHeaderString=function(e){var n=new t;return e.split("\n").forEach(function(t){var e=t.indexOf(":");if(e>0){var r=t.slice(0,e),i=t.slice(e+1).trim();n.set(r,i)}}),n},t.prototype.append=function(t,e){var n=this.getAll(t);null===n?this.set(t,e):n.push(e)},t.prototype.delete=function(t){var e=t.toLowerCase();this._normalizedNames.delete(e),this._headers.delete(e)},t.prototype.forEach=function(t){var e=this;
1this._headers.forEach(function(n,r){return t(n,e._normalizedNames.get(r),e._headers)})},t.prototype.get=function(t){var e=this.getAll(t);return null===e?null:e.length>0?e[0]:null},t.prototype.has=function(t){return this._headers.has(t.toLowerCase())},t.prototype.keys=function(){return Array.from(this._normalizedNames.values())},t.prototype.set=function(t,e){Array.isArray(e)?e.length&&this._headers.set(t.toLowerCase(),[e.join(",")]):this._headers.set(t.toLowerCase(),[e]),this.mayBeSetNormalizedName(t)},t.prototype.values=function(){return Array.from(this._headers.values())},t.prototype.toJSON=function(){var t=this,e={};return this._headers.forEach(function(n,r){var i=[];n.forEach(function(t){return i.push.apply(i,t.split(","))}),e[t._normalizedNames.get(r)]=i}),e},t.prototype.getAll=function(t){return this.has(t)?this._headers.get(t.toLowerCase())||null:null},t.prototype.entries=function(){throw new Error('"entries" method is not implemented on Headers class')},t.prototype.mayBeSetNormalizedName=function(t){var e=t.toLowerCase();this._normalizedNames.has(e)||this._normalizedNames.set(e,t)},t}(),M=function(){function t(t){void 0===t&&(t={});var e=t.body,n=t.status,r=t.headers,i=t.statusText,o=t.type,s=t.url;this.body=null!=e?e:null,this.status=null!=n?n:null,this.headers=null!=r?r:null,this.statusText=null!=i?i:null,this.type=null!=o?o:null,this.url=null!=s?s:null}return t.prototype.merge=function(e){return new t({body:e&&null!=e.body?e.body:this.body,status:e&&null!=e.status?e.status:this.status,headers:e&&null!=e.headers?e.headers:this.headers,statusText:e&&null!=e.statusText?e.statusText:this.statusText,type:e&&null!=e.type?e.type:this.type,url:e&&null!=e.url?e.url:this.url})},t}(),C=function(t){function e(){return t.call(this,{status:200,statusText:"Ok",type:x.Default,headers:new T})||this}return m.a(e,t),e}(M);C.decorators=[{type:v.u}],C.ctorParameters=function(){return[]};var O=function(){function t(){}return t.prototype.createConnection=function(t){},t}(),A=(function(){function t(){}}(),function(){function t(){}return t.prototype.configureRequest=function(t){},t}()),P=function(t){return t>=200&&t<300},R=function(){function t(){}return t.prototype.encodeKey=function(t){return a(t)},t.prototype.encodeValue=function(t){return a(t)},t}(),L=function(){function t(t,e){void 0===t&&(t=""),void 0===e&&(e=new R),this.rawParams=t,this.queryEncoder=e,this.paramsMap=s(t)}return t.prototype.clone=function(){var e=new t("",this.queryEncoder);return e.appendAll(this),e},t.prototype.has=function(t){return this.paramsMap.has(t)},t.prototype.get=function(t){var e=this.paramsMap.get(t);return Array.isArray(e)?e[0]:null},t.prototype.getAll=function(t){return this.paramsMap.get(t)||[]},t.prototype.set=function(t,e){if(void 0===e||null===e)return void this.delete(t);var n=this.paramsMap.get(t)||[];n.length=0,n.push(e),this.paramsMap.set(t,n)},t.prototype.setAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0,r.push(t[0]),e.paramsMap.set(n,r)})},t.prototype.append=function(t,e){if(void 0!==e&&null!==e){var n=this.paramsMap.get(t)||[];n.push(e),this.paramsMap.set(t,n)}},t.prototype.appendAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){for(var r=e.paramsMap.get(n)||[],i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.replaceAll=function(t){var e=this;t.paramsMap.forEach(function(t,n){var r=e.paramsMap.get(n)||[];r.length=0;for(var i=0;i<t.length;++i)r.push(t[i]);e.paramsMap.set(n,r)})},t.prototype.toString=function(){var t=this,e=[];return this.paramsMap.forEach(function(n,r){n.forEach(function(n){return e.push(t.queryEncoder.encodeKey(r)+"="+t.queryEncoder.encodeValue(n))})}),e.join("&")},t.prototype.delete=function(t){this.paramsMap.delete(t)},t}(),N=function(){function t(){}return t.prototype.json=function(){return"string"==typeof this._body?JSON.parse(this._body):this._body instanceof ArrayBuffer?JSON.parse(this.text()):this._body},t.prototype.text=function(t){if(void 0===t&&(t="legacy"),this._body instanceof L)return this._body.toString();if(this._body instanceof ArrayBuffer)switch(t){case"legacy":return String.fromCharCode.apply(null,new Uint16Array(this._body));case"iso-8859":return String.fromCharCode.apply(null,new Uint8Array(this._body));default:throw new Error("Invalid value for encodingHint: "+t)}return null==this._body?"":"object"==typeof this._body?JSON.stringify(this._body,null,2):this._body.toString()},t.prototype.arrayBuffer=function(){return this._body instanceof ArrayBuffer?this._body:o(this.text())},t.prototype.blob=function(){if(this._body instanceof Blob)return this._body;if(this._body instanceof ArrayBuffer)return new Blob([this._body]);throw new Error("The request body isn't either a blob or an array buffer")},t}(),I=function(t){function e(e){var n=t.call(this)||this;return n._body=e.body,n.status=e.status,n.ok=n.status>=200&&n.status<=299,n.statusText=e.statusText,n.headers=e.headers,n.type=e.type,n.url=e.url,n}return m.a(e,t),e.prototype.toString=function(){return"Response with status: "+this.status+" "+this.statusText+" for URL: "+this.url},e}(N),k=0,j="__ng_jsonp__",D=null,F=function(){function t(){}return t.prototype.build=function(t){var e=document.createElement("script");return e.src=t,e},t.prototype.nextRequestID=function(){return"__req"+k++},t.prototype.requestCallback=function(t){return j+"."+t+".finished"}
1,t.prototype.exposeConnection=function(t,e){u()[t]=e},t.prototype.removeConnection=function(t){u()[t]=null},t.prototype.send=function(t){document.body.appendChild(t)},t.prototype.cleanup=function(t){t.parentNode&&t.parentNode.removeChild(t)},t}();F.decorators=[{type:v.u}],F.ctorParameters=function(){return[]};var U="JSONP injected script did not invoke callback.",B="JSONP requests must use GET request method.",z=function(){function t(){}return t.prototype.finished=function(t){},t}(),V=function(t){function e(e,n,r){var i=t.call(this)||this;if(i._dom=n,i.baseResponseOptions=r,i._finished=!1,e.method!==_.Get)throw new TypeError(B);return i.request=e,i.response=new y.Observable(function(t){i.readyState=w.Loading;var o=i._id=n.nextRequestID();n.exposeConnection(o,i);var s=n.requestCallback(i._id),a=e.url;a.indexOf("=JSONP_CALLBACK&")>-1?a=a.replace("=JSONP_CALLBACK&","="+s+"&"):a.lastIndexOf("=JSONP_CALLBACK")===a.length-"=JSONP_CALLBACK".length&&(a=a.substring(0,a.length-"=JSONP_CALLBACK".length)+"="+s);var u=i._script=n.build(a),c=function(e){if(i.readyState!==w.Cancelled){if(i.readyState=w.Done,n.cleanup(u),!i._finished){var o=new M({body:U,type:x.Error,url:a});return r&&(o=r.merge(o)),void t.error(new I(o))}var s=new M({body:i._responseData,url:a});i.baseResponseOptions&&(s=i.baseResponseOptions.merge(s)),t.next(new I(s)),t.complete()}},l=function(e){if(i.readyState!==w.Cancelled){i.readyState=w.Done,n.cleanup(u);var o=new M({body:e.message,type:x.Error});r&&(o=r.merge(o)),t.error(new I(o))}};return u.addEventListener("load",c),u.addEventListener("error",l),n.send(u),function(){i.readyState=w.Cancelled,u.removeEventListener("load",c),u.removeEventListener("error",l),i._dom.cleanup(u)}}),i}return m.a(e,t),e.prototype.finished=function(t){this._finished=!0,this._dom.removeConnection(this._id),this.readyState!==w.Cancelled&&(this._responseData=t)},e}(z),H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return m.a(e,t),e}(O),G=function(t){function e(e,n){var r=t.call(this)||this;return r._browserJSONP=e,r._baseResponseOptions=n,r}return m.a(e,t),e.prototype.createConnection=function(t){return new V(t,this._browserJSONP,this._baseResponseOptions)},e}(H);G.decorators=[{type:v.u}],G.ctorParameters=function(){return[{type:F},{type:M}]};var W=/^\)\]\}',?\n/,q=function(){function t(t,e,n){var r=this;this.request=t,this.response=new y.Observable(function(o){var s=e.build();s.open(_[t.method].toUpperCase(),t.url),null!=t.withCredentials&&(s.withCredentials=t.withCredentials);var a=function(){var e=1223===s.status?204:s.status,r=null;204!==e&&"string"==typeof(r=void 0===s.response?s.responseText:s.response)&&(r=r.replace(W,"")),0===e&&(e=r?200:0);var a=T.fromResponseHeaderString(s.getAllResponseHeaders()),u=i(s)||t.url,c=s.statusText||"OK",l=new M({body:r,status:e,headers:a,statusText:c,url:u});null!=n&&(l=n.merge(l));var h=new I(l);if(h.ok=P(e),h.ok)return o.next(h),void o.complete();o.error(h)},u=function(t){var e=new M({body:t,type:x.Error,status:s.status,statusText:s.statusText});null!=n&&(e=n.merge(e)),o.error(new I(e))};if(r.setDetectedContentType(t,s),null==t.headers&&(t.headers=new T),t.headers.has("Accept")||t.headers.append("Accept","application/json, text/plain, */*"),t.headers.forEach(function(t,e){return s.setRequestHeader(e,t.join(","))}),null!=t.responseType&&null!=s.responseType)switch(t.responseType){case S.ArrayBuffer:s.responseType="arraybuffer";break;case S.Json:s.responseType="json";break;case S.Text:s.responseType="text";break;case S.Blob:s.responseType="blob";break;default:throw new Error("The selected responseType is not supported")}return s.addEventListener("load",a),s.addEventListener("error",u),s.send(r.request.getBody()),function(){s.removeEventListener("load",a),s.removeEventListener("error",u),s.abort()}})}return t.prototype.setDetectedContentType=function(t,e){if(null==t.headers||null==t.headers.get("Content-Type"))switch(t.contentType){case E.NONE:break;case E.JSON:e.setRequestHeader("content-type","application/json");break;case E.FORM:e.setRequestHeader("content-type","application/x-www-form-urlencoded;charset=UTF-8");break;case E.TEXT:e.setRequestHeader("content-type","text/plain");break;case E.BLOB:var n=t.blob();n.type&&e.setRequestHeader("content-type",n.type)}},t}(),Z=function(){function t(t,e){void 0===t&&(t="XSRF-TOKEN"),void 0===e&&(e="X-XSRF-TOKEN"),this._cookieName=t,this._headerName=e}return t.prototype.configureRequest=function(t){var e=Object(g.u)().getCookie(this._cookieName);e&&t.headers.set(this._headerName,e)},t}(),X=function(){function t(t,e,n){this._browserXHR=t,this._baseResponseOptions=e,this._xsrfStrategy=n}return t.prototype.createConnection=function(t){return this._xsrfStrategy.configureRequest(t),new q(t,this._browserXHR,this._baseResponseOptions)},t}();X.decorators=[{type:v.u}],X.ctorParameters=function(){return[{type:b},{type:M},{type:A}]};var K=function(){function t(t){void 0===t&&(t={});var e=t.method,n=t.headers,i=t.body,o=t.url,s=t.search,a=t.params,u=t.withCredentials,c=t.responseType;this.method=null!=e?r(e):null,this.headers=null!=n?n:null,this.body=null!=i?i:null,this.url=null!=o?o:null,this.params=this._mergeSearchParams(a||s),this.withCredentials=null!=u?u:null,this.responseType=null!=c?c:null}return Object.defineProperty(t.prototype,"search",{get:function(){return this.params},set:function(t){this.params=t},enumerable:!0,configurable:!0}),t.prototype.merge=function(e){return new t({method:e&&null!=e.method?e.method:this.method,headers:e&&null!=e.headers?e.headers:new T(this.headers),body:e&&null!=e.body?e.body:this.body,url:e&&null!=e.url?e.url:this.url,params:e&&this._mergeSearchParams(e.params||e.search),withCredentials:e&&null!=e.withCredentials?e.withCredentials:this.withCredentials,responseType:e&&null!=e.responseType?e.responseType:this.responseType})},t.prototype._mergeSearchParams=function(t){return t?t instanceof L?t.clone():"string"==typeof t?new L(t):this._parseParams(t):this.params},t.prototype._parseParams=function(t){var e=this;void 0===t&&(t={});var n=new L;return Object.keys(t).forEach(function(r){var i=t[r];
1Array.isArray(i)?i.forEach(function(t){return e._appendParam(r,t,n)}):e._appendParam(r,i,n)}),n},t.prototype._appendParam=function(t,e,n){"string"!=typeof e&&(e=JSON.stringify(e)),n.append(t,e)},t}(),Y=function(t){function e(){return t.call(this,{method:_.Get,headers:new T})||this}return m.a(e,t),e}(K);Y.decorators=[{type:v.u}],Y.ctorParameters=function(){return[]};var J=function(t){function e(e){var n=t.call(this)||this,i=e.url;n.url=e.url;var o=e.params||e.search;if(o){var s=void 0;if(s="object"!=typeof o||o instanceof L?o.toString():c(o).toString(),s.length>0){var a="?";-1!=n.url.indexOf("?")&&(a="&"==n.url[n.url.length-1]?"":"&"),n.url=i+a+s}}return n._body=e.body,n.method=r(e.method),n.headers=new T(e.headers),n.contentType=n.detectContentType(),n.withCredentials=e.withCredentials,n.responseType=e.responseType,n}return m.a(e,t),e.prototype.detectContentType=function(){switch(this.headers.get("content-type")){case"application/json":return E.JSON;case"application/x-www-form-urlencoded":return E.FORM;case"multipart/form-data":return E.FORM_DATA;case"text/plain":case"text/html":return E.TEXT;case"application/octet-stream":return this._body instanceof nt?E.ARRAY_BUFFER:E.BLOB;default:return this.detectContentTypeFromBody()}},e.prototype.detectContentTypeFromBody=function(){return null==this._body?E.NONE:this._body instanceof L?E.FORM:this._body instanceof tt?E.FORM_DATA:this._body instanceof et?E.BLOB:this._body instanceof nt?E.ARRAY_BUFFER:this._body&&"object"==typeof this._body?E.JSON:E.TEXT},e.prototype.getBody=function(){switch(this.contentType){case E.JSON:case E.FORM:return this.text();case E.FORM_DATA:return this._body;case E.TEXT:return this.text();case E.BLOB:return this.blob();case E.ARRAY_BUFFER:return this.arrayBuffer();default:return null}},e}(N),Q=function(){},$="object"==typeof window?window:Q,tt=$.FormData||Q,et=$.Blob||Q,nt=$.ArrayBuffer||Q,rt=function(){function t(t,e){this._backend=t,this._defaultOptions=e}return t.prototype.request=function(t,e){var n;if("string"==typeof t)n=l(this._backend,new J(h(this._defaultOptions,e,_.Get,t)));else{if(!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");n=l(this._backend,t)}return n},t.prototype.get=function(t,e){return this.request(new J(h(this._defaultOptions,e,_.Get,t)))},t.prototype.post=function(t,e,n){return this.request(new J(h(this._defaultOptions.merge(new K({body:e})),n,_.Post,t)))},t.prototype.put=function(t,e,n){return this.request(new J(h(this._defaultOptions.merge(new K({body:e})),n,_.Put,t)))},t.prototype.delete=function(t,e){return this.request(new J(h(this._defaultOptions,e,_.Delete,t)))},t.prototype.patch=function(t,e,n){return this.request(new J(h(this._defaultOptions.merge(new K({body:e})),n,_.Patch,t)))},t.prototype.head=function(t,e){return this.request(new J(h(this._defaultOptions,e,_.Head,t)))},t.prototype.options=function(t,e){return this.request(new J(h(this._defaultOptions,e,_.Options,t)))},t}();rt.decorators=[{type:v.u}],rt.ctorParameters=function(){return[{type:O},{type:K}]};var it=function(t){function e(e,n){return t.call(this,e,n)||this}return m.a(e,t),e.prototype.request=function(t,e){if("string"==typeof t&&(t=new J(h(this._defaultOptions,e,_.Get,t))),!(t instanceof J))throw new Error("First argument must be a url string or Request instance.");if(t.method!==_.Get)throw new Error("JSONP requests must use GET request method.");return l(this._backend,t)},e}(rt);it.decorators=[{type:v.u}],it.ctorParameters=function(){return[{type:O},{type:K}]};var ot=function(){function t(){}return t}();ot.decorators=[{type:v.B,args:[{providers:[{provide:rt,useFactory:f,deps:[X,K]},b,{provide:K,useClass:Y},{provide:M,useClass:C},X,{provide:A,useFactory:p}]}]}],ot.ctorParameters=function(){return[]};var st=function(){function t(){}return t}();st.decorators=[{type:v.B,args:[{providers:[{provide:it,useFactory:d,deps:[H,K]},F,{provide:K,useClass:Y},{provide:M,useClass:C},{provide:H,useClass:G}]}]}],st.ctorParameters=function(){return[]};new v.Y("4.4.6")},CQyF:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=function(t){function e(e,n){t.call(this),this.error=e,this.scheduler
1=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.error;t.subscriber.error(e)},e.prototype._subscribe=function(t){var n=this.error,r=this.scheduler;if(t.syncErrorThrowable=!0,r)return r.schedule(e.dispatch,0,{error:n,subscriber:t});t.error(n)},e}(i.Observable);e.ErrorObservable=o},CXR1:function(t,e,n){"use strict";var r=n("bKpL"),i=n("tpuU");r.Observable.prototype.zipAll=i.zipAll},Cipy:function(t,e,n){"use strict";function r(t,e,n){return i.shareReplay(t,e,n)(this)}var i=n("Wxra");e.shareReplay=r},D84Q:function(t,e,n){"use strict";var r=n("bKpL"),i=n("NUku");r.Observable.prototype.buffer=i.buffer},DP67:function(t,e,n){"use strict";function r(t){var e,n=t.Symbol;return"function"==typeof n?n.observable?e=n.observable:(e=n("observable"),n.observable=e):e="@@observable",e}var i=n("zijX");e.getSymbolObservable=r,e.observable=r(i.root),e.$$observable=e.observable},De29:function(t,e,n){"use strict";var r=n("bKpL"),i=n("NgMz");r.Observable.prototype.findIndex=i.findIndex},Dqrr:function(t,e,n){"use strict";var r=n("rlar");e.Subject=r.Subject,e.AnonymousSubject=r.AnonymousSubject;var i=n("bKpL");e.Observable=i.Observable,n("amjc"),n("p3u8"),n("vJ3t"),n("JSgX"),n("VsKd"),n("hbO+"),n("GPwi"),n("XL2q"),n("Xtvq"),n("ZXBV"),n("7u+W"),n("d3kC"),n("okgN"),n("ACG2"),n("JNTq"),n("Af4u"),n("dyFf"),n("/zHi"),n("bprQ"),n("mjW1"),n("B/As"),n("W5L8"),n("S7im"),n("BdLl"),n("tcot"),n("o/OZ"),n("4JlW"),n("D84Q"),n("i4mq"),n("t8nJ"),n("LTTx"),n("UVHa"),n("xpf9"),n("rp90"),n("6DBm"),n("R0J0"),n("+Ve+"),n("7rqg"),n("oOL0"),n("vKg+"),n("E2ib"),n("p3bn"),n("azLz"),n("A1r7"),n("l3Q+"),n("TnjP"),n("9wNb"),n("MBEm"),n("mDYJ"),n("eqpX"),n("ptvE"),n("h+is"),n("89am"),n("afTc"),n("gbhw"),n("zc4d"),n("MaQZ"),n("De29"),n("ZQKz"),n("zZnE"),n("IpZT"),n("StS+"),n("pkLr"),n("qNQE"),n("dy5W"),n("ykQW"),n("r+/7"),n("5v8a"),n("iwys"),n("BBvl"),n("ScG9"),n("ub06"),n("5p6H"),n("RpuY"),n("srZQ"),n("SKRq"),n("pHO4"),n("PatI"),n("XR71"),n("NOvV"),n("Uvlg"),n("Lssd"),n("Ozq5"),n("VML3"),n("LClL"),n("HUu4"),n("vtHn"),n("dgXD"),n("Plqt"),n("UD+B"),n("/amm"),n("v6xs"),n("svCP"),n("+0Ji"),n("VXtB"),n("6NKQ"),n("9lCb"),n("qm+V"),n("g3vg"),n("z69B"),n("vfw3"),n("zdWg"),n("j8RC"),n("67Ck"),n("9jMf"),n("kIyd"),n("mvrJ"),n("Pic8"),n("1pbG"),n("5uCp"),n("bN7U"),n("q07K"),n("86mp"),n("OGSH"),n("YFUQ"),n("UbPm"),n("uGEk"),n("9mSN"),n("vNV3"),n("IUpl"),n("82j9"),n("Z2Sm"),n("eumZ"),n("RNRn"),n("sSYo"),n("kAWK"),n("asHm"),n("ItUe"),n("CXR1");var o=n("xFbG");e.Subscription=o.Subscription;var s=n("T14+");e.Subscriber=s.Subscriber;var a=n("l6Wf");e.AsyncSubject=a.AsyncSubject;var u=n("0imh");e.ReplaySubject=u.ReplaySubject;var c=n("gvep");e.BehaviorSubject=c.BehaviorSubject;var l=n("xKl2");e.ConnectableObservable=l.ConnectableObservable;var h=n("3lsR");e.Notification=h.Notification;var p=n("TpsG");e.EmptyError=p.EmptyError;var f=n("uT+d");e.ArgumentOutOfRangeError=f.ArgumentOutOfRangeError;var d=n("Lhvy");e.ObjectUnsubscribedError=d.ObjectUnsubscribedError;var m=n("0L2s");e.TimeoutError=m.TimeoutError;var v=n("Emqh");e.UnsubscriptionError=v.UnsubscriptionError;var y=n("H9QY");e.TimeInterval=y.TimeInterval;var g=n("xK8X");e.Timestamp=g.Timestamp;var b=n("MIR9");e.TestScheduler=b.TestScheduler;var _=n("I64N");
1e.VirtualTimeScheduler=_.VirtualTimeScheduler;var w=n("HPkd");e.AjaxResponse=w.AjaxResponse,e.AjaxError=w.AjaxError,e.AjaxTimeoutError=w.AjaxTimeoutError;var x=n("vxPf");e.pipe=x.pipe;var E=n("wEhC"),S=n("IhB/"),T=n("yR50"),M=n("ruZE"),C=n("dkwD"),O=n("2B7B"),A=n("DP67"),P=n("cAzY");e.operators=P;var R={asap:E.asap,queue:T.queue,animationFrame:M.animationFrame,async:S.async};e.Scheduler=R;var L={rxSubscriber:C.rxSubscriber,observable:A.observable,iterator:O.iterator};e.Symbol=L},DrEP:function(t,e,n){"use strict";function r(t,n){return void 0===n&&(n=e.defaultThrottleConfig),function(e){return e.lift(new a(t,n.leading,n.trailing))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.defaultThrottleConfig={leading:!0,trailing:!1},e.throttle=r;var a=function(){function t(t,e,n){this.durationSelector=t,this.leading=e,this.trailing=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.durationSelector,this.leading,this.trailing))},t}(),u=function(t){function e(e,n,r,i){t.call(this,e),this.destination=e,this.durationSelector=n,this._leading=r,this._trailing=i,this._hasTrailingValue=!1}return i(e,t),e.prototype._next=function(t){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t);else{var e=this.tryDurationSelector(t);e&&this.add(this.throttled=s.subscribeToResult(this,e)),this._leading&&(this.destination.next(t),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=t))}},e.prototype.tryDurationSelector=function(t){try{return this.durationSelector(t)}catch(t){return this.destination.error(t),null}},e.prototype._unsubscribe=function(){var t=this,e=t.throttled;t._trailingValue,t._hasTrailingValue,t._trailing;this._trailingValue=null,this._hasTrailingValue=!1,e&&(this.remove(e),this.throttled=null,e.unsubscribe())},e.prototype._sendTrailing=function(){var t=this,e=t.destination,n=t.throttled,r=t._trailing,i=t._trailingValue,o=t._hasTrailingValue;n&&r&&o&&(e.next(i),this._trailingValue=null,this._hasTrailingValue=!1)},e.prototype.notifyNext=function(t,e,n,r,i){this._sendTrailing(),this._unsubscribe()},e.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},e}(o.OuterSubscriber)},E2ib:function(t,e,n){"use strict";var r=n("bKpL"),i=n("SJ56");r.Observable.prototype.dematerialize=i.dematerialize},EJO3:function(t,e,n){t.exports=n("Osec").Transform},EOAD:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=s.async),function(e){return e.lift(new u(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("IhB/");e.timeInterval=r;var a=function(){function t(t,e){this.value=t,this.interval=e}return t}();e.TimeInterval=a;var u=function(){function t(t){this.scheduler=t}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.scheduler))},t}(),c=function(t){function e(e,n){t.call(this,e),this.scheduler=n,this.lastTime=0,this.lastTime=n.now()}return i(e,t),e.prototype._next=function(t){var e=this.scheduler.now(),n=e-this.lastTime;this.lastTime=e,this.destination.next(new a(t,n))},e}(o.Subscriber)},EUVd:function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=o.async);var n=s.isDate(t),r=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(r,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("IhB/"),s=n("6jp4"),a=n("T14+"),u=n("3lsR");e.delay=r;var c=function(){function t(t,e){this.delay=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delay,this.scheduler))},t}(),l=function(t){function e(e,n,r){t.call(this,e),this.delay=n,this.scheduler=r,this.queue=[],this.active=!1,this.errored=!1}return i(e,t),e.dispatch=function(t){for(var e=t.source,n=e.queue,r=t.scheduler,i=t.destination;n.length>0&&n[0].time-r.now()<=0;)n.shift().notification.observe(i);if(n.length>0){var o=Math.max(0,n[0].time-r.now());this.schedule(t,o)}else e.active=!1},e.prototype._schedule=function(t){this.active=!0,this.add(t.schedule(e.dis
1patch,this.delay,{source:this,destination:this.destination,scheduler:t}))},e.prototype.scheduleNotification=function(t){if(!0!==this.errored){var e=this.scheduler,n=new h(e.now()+this.delay,t);this.queue.push(n),!1===this.active&&this._schedule(e)}},e.prototype._next=function(t){this.scheduleNotification(u.Notification.createNext(t))},e.prototype._error=function(t){this.errored=!0,this.queue=[],this.destination.error(t)},e.prototype._complete=function(){this.scheduleNotification(u.Notification.createComplete())},e}(a.Subscriber),h=function(){function t(t,e){this.time=t,this.notification=e}return t}()},EmkH:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new a(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d");e.skipLast=r;var a=function(){function t(t){if(this._skipCount=t,this._skipCount<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return 0===this._skipCount?e.subscribe(new o.Subscriber(t)):e.subscribe(new u(t,this._skipCount))},t}(),u=function(t){function e(e,n){t.call(this,e),this._skipCount=n,this._count=0,this._ring=new Array(n)}return i(e,t),e.prototype._next=function(t){var e=this._skipCount,n=this._count++;if(n<e)this._ring[n]=t;else{var r=n%e,i=this._ring,o=i[r];i[r]=t,this.destination.next(o)}},e}(o.Subscriber)},Emqh:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(e){t.call(this),this.errors=e;var n=Error.call(this,e?e.length+" errors occurred during unsubscription:\n "+e.map(function(t,e){return e+1+") "+t.toString()}).join("\n "):"");this.name=n.name="UnsubscriptionError",this.stack=n.stack,this.message=n.message}return r(e,t),e}(Error);e.UnsubscriptionError=i},EsGe:function(t,e,n){"use strict";function r(t){return!i.isArray(t)&&t-parseFloat(t)+1>=0}var i=n("NSJx");e.isNumeric=r},EyWH:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=null),{type:2,steps:t,options:e}}function i(t){return{type:6,styles:t,offset:null}}function o(t){Promise.resolve(null).then(t)}n.d(e,"b",function(){return s}),n.d(e,"c",function(){return a}),n.d(e,"a",function(){return u}),n.d(e,"e",function(){return r}),n.d(e,"f",function(){return i}),n.d(e,"d",function(){return c}),n.d(e,"g",function(){return l}),n.d(e,"h",function(){return h});var s=function(){function t(){}return t.prototype.build=function(t){},t}(),a=function(){function t(){}return t.prototype.create=function(t,e){},t}(),u="*",c=function(){function t(){this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._started=!1,this._destroyed=!1,this._finished=!1,this.parentPlayer=null,this.totalTime=0}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.init=function(){},t.prototype.play=function(){this.hasStarted()||(this.triggerMicrotask(),this._onStart()),this._started=!0},t.prototype.triggerMicrotask=function(){var t=this;o(function(){return t._onFinish()})},t.prototype._onStart=function(){this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[]},t.prototype.pause=function(){},t.prototype.restart=function(){},t.prototype.finish=function(){this._onFinish()},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this.hasStarted()||this._onStart(),this.finish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){},t.prototype.setPosition=function(t){},t.prototype.getPosition=function(){return 0},t}(),l=function(){function t(t){var e=this;this._players=t,this._onDoneFns=[],this._onStartFns=[],this._finished=!1,this._started=!1,this._destroyed=!1,this._onDestroyFns=[],this.parentPlayer=null,this.totalTime=0;var n=0,r=0,i=0,s=this._players.length;0==s?o(function(){return e._onFinish()}
1):this._players.forEach(function(t){t.parentPlayer=e,t.onDone(function(){++n>=s&&e._onFinish()}),t.onDestroy(function(){++r>=s&&e._onDestroy()}),t.onStart(function(){++i>=s&&e._onStart()})}),this.totalTime=this._players.reduce(function(t,e){return Math.max(t,e.totalTime)},0)}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._players.forEach(function(t){return t.init()})},t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype._onStart=function(){this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this.parentPlayer||this.init(),this._onStart(),this._players.forEach(function(t){return t.play()})},t.prototype.pause=function(){this._players.forEach(function(t){return t.pause()})},t.prototype.restart=function(){this._players.forEach(function(t){return t.restart()})},t.prototype.finish=function(){this._onFinish(),this._players.forEach(function(t){return t.finish()})},t.prototype.destroy=function(){this._onDestroy()},t.prototype._onDestroy=function(){this._destroyed||(this._destroyed=!0,this._onFinish(),this._players.forEach(function(t){return t.destroy()}),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.reset=function(){this._players.forEach(function(t){return t.reset()}),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype.setPosition=function(t){var e=t*this.totalTime;this._players.forEach(function(t){var n=t.totalTime?Math.min(1,e/t.totalTime):1;t.setPosition(n)})},t.prototype.getPosition=function(){var t=0;return this._players.forEach(function(e){var n=e.getPosition();t=Math.min(n,t)}),t},Object.defineProperty(t.prototype,"players",{get:function(){return this._players},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){this.players.forEach(function(t){t.beforeDestroy&&t.beforeDestroy()})},t}(),h="!"},"F/7+":function(t,e,n){"use strict";var r=n("SBOU");e.zip=r.zipStatic},F9px:function(t,e,n){"use strict";function r(){return function(t){return t.lift(new s(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.refCount=r;var s=function(){function t(t){this.connectable=t}return t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new a(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i},t}(),a=function(t){function e(e,n){t.call(this,e),this.connectable=n}return i(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(o.Subscriber)},FTnw:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new a(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("xFbG");e.finalize=r;var a=function(){function t(t){this.callback=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.callback))},t}(),u=function(t){function e(e,n){t.call(this,e),this.add(new s.Subscription(n))}return i(e,t),e}(o.Subscriber)},Fhmd:function(t,e,n){"use strict";var r=n("jUlM");e.forkJoin=r.ForkJoinObservable.create},Fi2k:function(t,e,n){"use strict";function r(t,e){return i.windowToggle(t,e)(this)}var i=n("bLt9");e.windowToggle=r},Fpv1:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("Io40"),o=function(t){function e(e,n){t.call(this,e,n),this.scheduler
1=e,this.work=n}return r(e,t),e.prototype.schedule=function(e,n){return void 0===n&&(n=0),n>0?t.prototype.schedule.call(this,e,n):(this.delay=n,this.state=e,this.scheduler.flush(this),this)},e.prototype.execute=function(e,n){return n>0||this.closed?t.prototype.execute.call(this,e,n):this._execute(e,n)},e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0?t.prototype.requestAsyncId.call(this,e,n,r):e.flush(this)},e}(i.AsyncAction);e.QueueAction=o},Fq81:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("fclq"),o=n("bKpL"),s=n("xFbG"),a=function(t){function e(e,n,r){t.call(this),this.addHandler=e,this.removeHandler=n,this.selector=r}return r(e,t),e.create=function(t,n,r){return new e(t,n,r)},e.prototype._subscribe=function(t){var e=this,n=this.removeHandler,r=this.selector?function(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];e._callSelector(t,n)}:function(e){t.next(e)},o=this._callAddHandler(r,t);i.isFunction(n)&&t.add(new s.Subscription(function(){n(r,o)}))},e.prototype._callSelector=function(t,e){try{var n=this.selector.apply(this,e);t.next(n)}catch(e){t.error(e)}},e.prototype._callAddHandler=function(t,e){try{return this.addHandler(t)||null}catch(t){e.error(t)}},e}(o.Observable);e.FromEventPatternObservable=a},"GB+a":function(t,e,n){"use strict";function r(t,e){return i.sequenceEqual(t,e)(this)}var i=n("xJeO");e.sequenceEqual=r},GDiU:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),function(n){return n.lift(new a(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("3lsR");e.observeOn=r;var a=function(){function t(t,e){void 0===e&&(e=0),this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.scheduler,this.delay))},t}();e.ObserveOnOperator=a;var u=function(t){function e(e,n,r){void 0===r&&(r=0),t.call(this,e),this.scheduler=n,this.delay=r}return i(e,t),e.dispatch=function(t){var e=t.notification,n=t.destination;e.observe(n),this.unsubscribe()},e.prototype.scheduleMessage=function(t){this.add(this.scheduler.schedule(e.dispatch,this.delay,new c(t,this.destination)))},e.prototype._next=function(t){this.scheduleMessage(s.Notification.createNext(t))},e.prototype._error=function(t){this.scheduleMessage(s.Notification.createError(t))},e.prototype._complete=function(){this.scheduleMessage(s.Notification.createComplete())},e}(o.Subscriber);e.ObserveOnSubscriber=u;var c=function(){function t(t,e){this.notification=t,this.destination=e}return t}();e.ObserveOnMessage=c},GPwi:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Fhmd");r.Observable.forkJoin=i.forkJoin},GTdq:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=i.async),o.audit(function(){return s.timer(t,e)})}var i=n("IhB/"),o=n("tAjV"),s=n("vioa");e.auditTime=r},GeBq:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),function(n){return n.lift(new a(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("rlar");e.windowCount=r;var a=function(){function t(t,e){this.windowSize=t,this.startWindowEvery=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.windowSize,this.startWindowEvery))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.destination=e,this.windowSize=n,this.startWindowEvery=r,this.windows=[new s.Subject],this.count=0,e.next(this.windows[0])}return i(e,t),e.prototype._next=function(t){for(var e=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,n=this.destination,r=this.windowSize,i=this.windows,o=i.length,a=0;a<o&&!this.closed;a++)i[a].next(t);var u=this.count-r+1;if(u>=0&&u%e==0&&!this.closed&&i.shift().complete(),++this.count%e==0&&!this.closed){var c=new s.Subject;i.push(c),n.next(c)}},e.prototype._error=function(t){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().complete();this.destination.complete()},e.prototype._unsubscribe=function(){this.count=0,this.windows=null},e}(o.Subscriber)},GiTH:function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new s(t,e,n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.every=r;var s=function(){function t(t,e,n){this.predicate=t,this.thisArg=e,this.source=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg,this.source))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.predicate=n,this.thisArg=r,this.source=i,this.index=0,this.thisArg=r||this}return i(e,t),e.prototype.notifyComplete=function(t){this.destination.next(t),this.destination.complete()},e.prototype._next=function(t){var e=!1;try{e=this.predicate.call(this.thisArg,t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e||this.notifyComplete(!1)},e.prototype._complete=function(){this.notifyComplete(!0)},e}(o.Subscriber)},GoZW:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i.pluck.apply(void 0,t)(this)}var i=n("wcuQ");e.pluck=r},H1KZ:function(t,e,n){"use strict";function r(t,e){var n=!1;return arguments.length>=2&&(n=!0),function(r){return r.lift(new s(t,e,n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.scan=r;var s=function(){function t(t,e,n){void 0===n&&(n=!1),this.accumulator=t,this.seed=e,this.hasSeed=n}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.accumulator,this.seed,this.hasSeed))},t}(),a=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this._seed=r,this.hasSeed=i,this.index=0}return i(e,t),Object.defineProperty(e.prototype,"seed",{get:function(){return this._seed},set:function(t){this.hasSeed=!0,this._seed=t},enumerable:!0,configurable:!0}),e.prototype._next=function(t){if(this.hasSeed)return this._tryNext(t);this.seed=t,this.destination.next(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.accumulator(this.seed,t,n)}catch(t){this.destination.error(t)}this.seed=e,this.destination.next(e)},e}(o.Subscriber)},H4tt:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return"function"==typeof t[t.length-1]&&(n=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0].slice()),function(e){return e.lift.call(new o.ArrayObservable([e].concat(t)),new l(n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("wZOE"),s=n("NSJx"),a=n("yW9Z"),u=n("ktfo"),c={};e.combineLatest=r;var l=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.project))},t}();e.CombineLatestOperator=l;var h=function(t){function e(e,n){t.call(this,e),this.project=n,this.active=0,this.values=[],this.observables=[]}return i(e,t),e.prototype._next=function(t){this.values.push(c),this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{this.active=e,this.toRespond=e;for(var n=0;n<e;n++){var r=t[n];this.add(u.subscribeToResult(this,r,r,n))}}},e.prototype.notifyComplete=function(t){0==(this.active-=1)&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.values,s=o[n],a=this.toRespond?s===c?--this.toRespond:this.toRespond:0;o[n]=e,0===a&&(this.project?this._tryProject(o):this.destination.next(o.slice()))},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(a.OuterSubscriber);e.CombineLatestSubscriber=h},H6Sg:function(t,e,n){"use strict";function r(t){return null!=t&&"object"==typeof t}e.isObject=r},H9QY:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=i.async),o.timeInterval(t)(this)}var i=n("IhB/"),o=n("EOAD");e.TimeInterval=o.TimeInterval,e.timeInterval=r},HBVP:function(t,e,n){"use strict";function r(t,e){return i.distinctUntilChanged(function(n,r){return e?e(n[t],r[t]):n[t]===r[t]})}var i=n("2Sjb");e.distinctUntilKeyChanged=r},HHMl:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("I2Y9"),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e}(i.AsyncScheduler);
1e.QueueScheduler=o},HPkd:function(t,e,n){"use strict";function r(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;if(f.root.XDomainRequest)return new f.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function i(){if(f.root.XMLHttpRequest)return new f.root.XMLHttpRequest;var t=void 0;try{for(var e=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],n=0;n<3;n++)try{if(t=e[n],new f.root.ActiveXObject(t))break}catch(t){}return new f.root.ActiveXObject(t)}catch(t){throw new Error("XMLHttpRequest is not supported by your browser")}}function o(t,e){return void 0===e&&(e=null),new _({method:"GET",url:t,headers:e})}function s(t,e,n){return new _({method:"POST",url:t,body:e,headers:n})}function a(t,e){return new _({method:"DELETE",url:t,headers:e})}function u(t,e,n){return new _({method:"PUT",url:t,body:e,headers:n})}function c(t,e,n){return new _({method:"PATCH",url:t,body:e,headers:n})}function l(t,e){return b(new _({method:"GET",url:t,responseType:"json",headers:e}))}function h(t,e){switch(t){case"json":return"response"in e?e.responseType?e.response:JSON.parse(e.response||e.responseText||"null"):JSON.parse(e.responseText||"null");case"xml":return e.responseXML;case"text":default:return"response"in e?e.response:e.responseText}}var p=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},f=n("zijX"),d=n("RdI5"),m=n("XRvs"),v=n("bKpL"),y=n("T14+"),g=n("L8VJ");e.ajaxGet=o,e.ajaxPost=s,e.ajaxDelete=a,e.ajaxPut=u,e.ajaxPatch=c;var b=g.map(function(t,e){return t.response});e.ajaxGetJSON=l;var _=function(t){function e(e){t.call(this);var n={async:!0,createXHR:function(){return this.crossDomain?r.call(this):i()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof e)n.url=e;else for(var o in e)e.hasOwnProperty(o)&&(n[o]=e[o]);this.request=n}return p(e,t),e.prototype._subscribe=function(t){return new w(t,this.request)},e.create=function(){var t=function(t){return new e(t)};return t.get=o,t.post=s,t.delete=a,t.put=u,t.patch=c,t.getJSON=l,t}(),e}(v.Observable);e.AjaxObservable=_;var w=function(t){function e(e,n){t.call(this,e),this.request=n,this.done=!1;var r=n.headers=n.headers||{};n.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in r||f.root.FormData&&n.body instanceof f.root.FormData||void 0===n.body||(r["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),n.body=this.serializeBody(n.body,n.headers["Content-Type"]),this.send()}return p(e,t),e.prototype.next=function(t){this.done=!0;var e=this,n=e.xhr,r=e.request,i=e.destination,o=new x(t,n,r);i.next(o)},e.prototype.send=function(){var t=this,e=t.request,n=t.request,r=n.user,i=n.method,o=n.url,s=n.async,a=n.password,u=n.headers,c=n.body,l=e.createXHR,h=d.tryCatch(l).call(e);if(h===m.errorObject)this.error(m.errorObject.e);else{this.xhr=h,this.setupEvents(h,e);if((r?d.tryCatch(h.open).call(h,i,o,s,r,a):d.tryCatch(h.open).call(h,i,o,s))===m.errorObject)return this.error(m.errorObject.e),null;if(s&&(h.timeout=e.timeout,h.responseType=e.responseType),"withCredentials"in h&&(h.withCredentials=!!e.withCredentials),this.setHeaders(h,u),(c?d.tryCatch(h.send).call(h,c):d.tryCatch(h.send).call(h))===m.errorObject)return this.error(m.errorObject.e),null}return h},e.prototype.serializeBody=function(t,e){if(!t||"string"==typeof t)return t;if(f.root.FormData&&t instanceof f.root.FormData)return t;if(e){var n=e.indexOf(";");-1!==n&&(e=e.substring(0,n))}switch(e){case"application/x-www-form-urlencoded":return Object.keys(t).map(function(e){return encodeURI(e)+"="+encodeURI(t[e])}).join("&");case"application/json":return JSON.stringify(t);default:return t}},e.prototype.setHeaders=function(t,e){for(var n in e)e.hasOwnProperty(n)&&t.setRequestHeader(n,e[n])},e.prototype.setupEvents=function(t,e){function n(t){var e=n,r=e.subscriber,i=e.progressSubscriber,o=e.request;i&&i.error(t),r.error(new S(this,o))}function r(t){var e=r,n=e.subscriber,i=e.progressSubscriber,o=e.request;if(4===this.readyState){var s=1223===this.status?204:this.status,a="text"===this.responseType?this.response||this.responseText:this.response;0===s&&(s=a?200:0),200<=s&&s<300?(i&&i.complete(),n.next(t),n.complete()):(i&&i.error(t),n.error(new E("ajax error "+s,this,o)))}}var i=e.progressSubscriber;if(t.ontimeout=n,n.request=e,n.subscriber=this,n.progressSubscriber=i,t.upload&&"withCredentials"in t){if(i){var o;o=function(t){o.progressSubscriber.next(t)},f.root.XDomainRequest?t.onprogress=o:t.upload.onprogress=o,o.progressSubscriber=i}var s;s=function(t){var e=s,n=e.progressSubscriber,r=e.subscriber,i=e.request;n&&n.error(t),r.error(new E("ajax error",this,i))},t.onerror=s,s.request=e,s.subscriber=this,s.progressSubscriber=i}t.onreadystatechange=r,r.subscriber=this,r.progressSubscriber=i,r.request=e},e.prototype.unsubscribe=function(){var e=this,n=e.done,r=e.xhr;!n&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),t.prototype.unsubscribe.call(this)},e}(y.Subscriber);e.AjaxSubscriber=w;var x=function(){function t(t,e,n){this.originalEvent=t,this.xhr=e,this.request=n,this.status=e.status,this.responseType=e.responseType||n.responseType,this.response=h(this.responseType,e)}return t}();e.AjaxResponse=x;var E=function(t){function e(e,n,r){t.call(this,e),this.message=e,this.xhr=n,this.request=r,this.status=n.status,this.responseType=n.responseType||r.responseType,this.response=h(this.responseType,n)}return p(e,t),e}(Error);e.AjaxError=E;var S=function(t){function e(e,n){t.call(this,"ajax timeout",e,n)}return p(e,t),e}(E);e.AjaxTimeoutError=S},HTfL:function(t,e,n){"use strict";var r=n("CQyF");e._throw=r.ErrorObservable.create},HUu4:function(t,e,n){"use strict";var r=n("bKpL"),i=n("AzAY");r.Observable.prototype.publishReplay=i.publishReplay},Hd11:function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new s(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.filter=r;var s=function(){function t(t,e){this.predicate=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.thisArg))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.thisArg=r,this.count=0}return i(e,t),e.prototype._next=function(t){var e;try{e=this.predicate.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}e&&this.destination.next(t)},e}(o.Subscriber)},Hg2u:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=-1),function(e){return 0===t?new s.EmptyObservable:t<0?e.lift(new a(-1,e)):e.lift(new a(t-1,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("fcnB");e.repeat=r;var a=function(){function t(t,e){this.count=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.count,this.source))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.count=n,this.source=r}return i(e,t),e.prototype.complete=function(){if(!this.isStopped){var e=this,n=e.source,r=e.count;if(0===r)return t.prototype.complete.call(this);r>-1&&(this.count=r-1),n.subscribe(this._unsubscribeAndRecycle())}},e}(o.Subscriber)},HqJl:function(t,e,n){"use strict";function r(t){return(t>>>24&255)+(t>>>8&65280)+((65280&t)<<8)+((255&t)<<24)}function i(){this.mode=0,this.last=!1,this.wrap=0,this.havedict=!1,this.flags=0,this.dmax=0,this.check=0,this.total=0,this.head=null,this.wbits=0,this.wsize=0,this.whave=0,this.wnext=0,this.window=null,this.hold=0,this.bits=0,this.length=0,this.offset=0,this.extra=0,this.lencode=null,this.distcode=null,this.lenbits=0,this.distbits=0,this.ncode=0,this.nlen=0,this.ndist=0,this.have=0,this.next=null,this.lens=new g.Buf16(320),this.work=new g.Buf16(288),this.lendyn=null,this.distdyn=null,this.sane=0,this.back=0,this.was=0}function o(t){var e;return t&&t.state?(e=t.state,t.total_in=t.total_out=e.total=0,t.msg="",e.wrap&&(t.adler=1&e.wrap),e.mode=D,e.last=0,e.havedict=0,e.dmax=32768,e.head=null,e.hold=0,e.bits=0,e.lencode=e.lendyn=new g.Buf32(mt),e.distcode=e.distdyn=new g.Buf32(vt),e.sane=1,e.back=-1,A):L}function s(t){var e;return t&&t.state?(e=t.state,e.wsize=0,e.whave=0,e.wnext=0,o(t)):L}function a(t,e){var n,r;return t&&t.state?(r=t.state,e<0?(n=0,e=-e):(n=1+(e>>4),e<48&&(e&=15)),e&&(e<8||e>15)?L:(null!==r.window&&r.wbits!==e&&(r.window=null),r.wrap=n,r.wbits=e,s(t))):L}function u(t,e){var n,r;return t?(r=new i,t.state=r,r.window=null,n=a(t,e),n!==A&&(t.state=null),n):L}function c(t){return u(t,yt)}
vendor: 5,932 bytes, line 1
1function l(t){if(gt){var e;for(v=new g.Buf32(512),y=new g.Buf32(32),e=0;e<144;)t.lens[e++]=8;for(;e<256;)t.lens[e++]=9;for(;e<280;)t.lens[e++]=7;for(;e<288;)t.lens[e++]=8;for(x(S,t.lens,0,288,v,0,t.work,{bits:9}),e=0;e<32;)t.lens[e++]=5;x(T,t.lens,0,32,y,0,t.work,{bits:5}),gt=!1}t.lencode=v,t.lenbits=9,t.distcode=y,t.distbits=5}function h(t,e,n,r){var i,o=t.state;return null===o.window&&(o.wsize=1<<o.wbits,o.wnext=0,o.whave=0,o.window=new g.Buf8(o.wsize)),r>=o.wsize?(g.arraySet(o.window,e,n-o.wsize,o.wsize,0),o.wnext=0,o.whave=o.wsize):(i=o.wsize-o.wnext,i>r&&(i=r),g.arraySet(o.window,e,n-r,i,o.wnext),r-=i,r?(g.arraySet(o.window,e,n-r,r,0),o.wnext=r,o.whave=o.wsize):(o.wnext+=i,o.wnext===o.wsize&&(o.wnext=0),o.whave<o.wsize&&(o.whave+=i))),0}function p(t,e){var n,i,o,s,a,u,c,p,f,d,m,v,y,mt,vt,yt,gt,bt,_t,wt,xt,Et,St,Tt,Mt=0,Ct=new g.Buf8(4),Ot=[16,17,18,0,8,7,9,6,10,5,11,4,12,3,13,2,14,1,15];if(!t||!t.state||!t.output||!t.input&&0!==t.avail_in)return L;n=t.state,n.mode===X&&(n.mode=K),a=t.next_out,o=t.output,c=t.avail_out,s=t.next_in,i=t.input,u=t.avail_in,p=n.hold,f=n.bits,d=u,m=c,Et=A;t:for(;;)switch(n.mode){case D:if(0===n.wrap){n.mode=K;break}for(;f<16;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if(2&n.wrap&&35615===p){n.check=0,Ct[0]=255&p,Ct[1]=p>>>8&255,n.check=_(n.check,Ct,2,0),p=0,f=0,n.mode=F;break}if(n.flags=0,n.head&&(n.head.done=!1),!(1&n.wrap)||(((255&p)<<8)+(p>>8))%31){t.msg="incorrect header check",n.mode=pt;break}if((15&p)!==j){t.msg="unknown compression method",n.mode=pt;break}if(p>>>=4,f-=4,xt=8+(15&p),0===n.wbits)n.wbits=xt;else if(xt>n.wbits){t.msg="invalid window size",n.mode=pt;break}n.dmax=1<<xt,t.adler=n.check=1,n.mode=512&p?q:X,p=0,f=0;break;case F:for(;f<16;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if(n.flags=p,(255&n.flags)!==j){t.msg="unknown compression method",n.mode=pt;break}if(57344&n.flags){t.msg="unknown header flags set",n.mode=pt;break}n.head&&(n.head.text=p>>8&1),512&n.flags&&(Ct[0]=255&p,Ct[1]=p>>>8&255,n.check=_(n.check,Ct,2,0)),p=0,f=0,n.mode=U;case U:for(;f<32;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}n.head&&(n.head.time=p),512&n.flags&&(Ct[0]=255&p,Ct[1]=p>>>8&255,Ct[2]=p>>>16&255,Ct[3]=p>>>24&255,n.check=_(n.check,Ct,4,0)),p=0,f=0,n.mode=B;case B:for(;f<16;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}n.head&&(n.head.xflags=255&p,n.head.os=p>>8),512&n.flags&&(Ct[0]=255&p,Ct[1]=p>>>8&255,n.check=_(n.check,Ct,2,0)),p=0,f=0,n.mode=z;case z:if(1024&n.flags){for(;f<16;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}n.length=p,n.head&&(n.head.extra_len=p),512&n.flags&&(Ct[0]=255&p,Ct[1]=p>>>8&255,n.check=_(n.check,Ct,2,0)),p=0,f=0}else n.head&&(n.head.extra=null);n.mode=V;case V:if(1024&n.flags&&(v=n.length,v>u&&(v=u),v&&(n.head&&(xt=n.head.extra_len-n.length,n.head.extra||(n.head.extra=new Array(n.head.extra_len)),g.arraySet(n.head.extra,i,s,v,xt)),512&n.flags&&(n.check=_(n.check,i,v,s)),u-=v,s+=v,n.length-=v),n.length))break t;n.length=0,n.mode=H;case H:if(2048&n.flags){if(0===u)break t;v=0;do{xt=i[s+v++],n.head&&xt&&n.length<65536&&(n.head.name+=String.fromCharCode(xt))}while(xt&&v<u);if(512&n.flags&&(n.check=_(n.check,i,v,s)),u-=v,s+=v,xt)break t}else n.head&&(n.head.name=null);n.length=0,n.mode=G;case G:if(4096&n.flags){if(0===u)break t;v=0;do{xt=i[s+v++],n.head&&xt&&n.length<65536&&(n.head.comment+=String.fromCharCode(xt))}while(xt&&v<u);if(512&n.flags&&(n.check=_(n.check,i,v,s)),u-=v,s+=v,xt)break t}else n.head&&(n.head.comment=null);n.mode=W;case W:if(512&n.flags){for(;f<16;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if(p!==(65535&n.check)){t.msg="header crc mismatch",n.mode=pt;break}p=0,f=0}n.head&&(n.head.hcrc=n.flags>>9&1,n.head.done=!0),t.adler=n.check=0,n.mode=X;break;case q:for(;f<32;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}t.adler=n.check=r(p),p=0,f=0,n.mode=Z;case Z:if(0===n.havedict)return t.next_out=a,t.avail_out=c,t.next_in=s,t.avail_in=u,n.hold=p,n.bits=f,R;t.adler=n.check=1,n.mode=X;case X:if(e===C||e===O)break t;case K:if(n.last){p>>>=7&f,f-=7&f,n.mode=ct;break}for(;f<3;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}switch(n.last=1&p,p>>>=1,f-=1,3&p){case 0:n.mode=Y;break;case 1:if(l(n),n.mode=nt,e===O){p>>>=2,f-=2;break t}break;case 2:n.mode=$;break;case 3:t.msg="invalid block type",n.mode=pt}p>>>=2,f-=2;break;case Y:for(p>>>=7&f,f-=7&f;f<32;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if((65535&p)!=(p>>>16^65535)){t.msg="invalid stored block lengths",n.mode=pt;break}if(n.length=65535&p,p=0,f=0,n.mode=J,e===O)break t;case J:n.mode=Q;case Q:if(v=n.length){if(v>u&&(v=u),v>c&&(v=c),0===v)break t;g.arraySet(o,i,s,v,a),u-=v,s+=v,c-=v,a+=v,n.length-=v;break}n.mode=X;break;case $:for(;f<14;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if(n.nlen=257+(31&p),p>>>=5,f-=5,n.ndist=1+(31&p),p>>>=5,f-=5,n.ncode=4+(15&p),p>>>=4,f-=4,n.nlen>286||n.ndist>30){t.msg="too many length or distance symbols",n.mode=pt;break}n.have=0,n.mode=tt;case tt:for(;n.have<n.ncode;){for(;f<3;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}n.lens[Ot[n.have++]]=7&p,p>>>=3,f-=3}for(;n.have<19;)n.lens[Ot[n.have++]]=0;if(n.lencode=n.lendyn,n.lenbits=7,St={bits:n.lenbits},Et=x(E,n.lens,0,19,n.lencode,0,n.work,St),n.lenbits=St.bits,Et){t.msg="invalid code lengths set",n.mode=pt;break}n.have=0,n.mode=et;case et:for(;n.have<n.nlen+n.ndist;){for(;Mt=n.lencode[p&(1<<n.lenbits)-1],vt=Mt>>>24,yt=Mt>>>16&255,gt=65535&Mt,!(vt<=f);){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if(gt<16)p>>>=vt,f-=vt,n.lens[n.have++]=gt;else{if(16===gt){for(Tt=vt+2;f<Tt;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if(p>>>=vt,f-=vt,0===n.have){t.msg="invalid bit length repeat",n.mode=pt;break}xt=n.lens[n.have-1],v=3+(3&p),p>>>=2,f-=2}else if(17===gt){for(Tt=vt+3;f<Tt;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}p>>>=vt,f-=vt,xt=0,v=3+(7&p),p>>>=3,f-=3}else{for(Tt=vt+7;f<Tt;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}p>>>=vt,f-=vt,xt=0,v=11+(127&p),p>>>=7,f-=7}if(n.have+v>n.nlen+n.ndist){t.msg="invalid bit length repeat",n.mode=pt;break}for(;v--;)n.lens[n.have++]=xt}}if(n.mode===pt)break;
1if(0===n.lens[256]){t.msg="invalid code -- missing end-of-block",n.mode=pt;break}if(n.lenbits=9,St={bits:n.lenbits},Et=x(S,n.lens,0,n.nlen,n.lencode,0,n.work,St),n.lenbits=St.bits,Et){t.msg="invalid literal/lengths set",n.mode=pt;break}if(n.distbits=6,n.distcode=n.distdyn,St={bits:n.distbits},Et=x(T,n.lens,n.nlen,n.ndist,n.distcode,0,n.work,St),n.distbits=St.bits,Et){t.msg="invalid distances set",n.mode=pt;break}if(n.mode=nt,e===O)break t;case nt:n.mode=rt;case rt:if(u>=6&&c>=258){t.next_out=a,t.avail_out=c,t.next_in=s,t.avail_in=u,n.hold=p,n.bits=f,w(t,m),a=t.next_out,o=t.output,c=t.avail_out,s=t.next_in,i=t.input,u=t.avail_in,p=n.hold,f=n.bits,n.mode===X&&(n.back=-1);break}for(n.back=0;Mt=n.lencode[p&(1<<n.lenbits)-1],vt=Mt>>>24,yt=Mt>>>16&255,gt=65535&Mt,!(vt<=f);){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if(yt&&0==(240&yt)){for(bt=vt,_t=yt,wt=gt;Mt=n.lencode[wt+((p&(1<<bt+_t)-1)>>bt)],vt=Mt>>>24,yt=Mt>>>16&255,gt=65535&Mt,!(bt+vt<=f);){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}p>>>=bt,f-=bt,n.back+=bt}if(p>>>=vt,f-=vt,n.back+=vt,n.length=gt,0===yt){n.mode=ut;break}if(32&yt){n.back=-1,n.mode=X;break}if(64&yt){t.msg="invalid literal/length code",n.mode=pt;break}n.extra=15&yt,n.mode=it;case it:if(n.extra){for(Tt=n.extra;f<Tt;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}n.length+=p&(1<<n.extra)-1,p>>>=n.extra,f-=n.extra,n.back+=n.extra}n.was=n.length,n.mode=ot;case ot:for(;Mt=n.distcode[p&(1<<n.distbits)-1],vt=Mt>>>24,yt=Mt>>>16&255,gt=65535&Mt,!(vt<=f);){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if(0==(240&yt)){for(bt=vt,_t=yt,wt=gt;Mt=n.distcode[wt+((p&(1<<bt+_t)-1)>>bt)],vt=Mt>>>24,yt=Mt>>>16&255,gt=65535&Mt,!(bt+vt<=f);){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}p>>>=bt,f-=bt,n.back+=bt}if(p>>>=vt,f-=vt,n.back+=vt,64&yt){t.msg="invalid distance code",n.mode=pt;break}n.offset=gt,n.extra=15&yt,n.mode=st;case st:if(n.extra){for(Tt=n.extra;f<Tt;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}n.offset+=p&(1<<n.extra)-1,p>>>=n.extra,f-=n.extra,n.back+=n.extra}if(n.offset>n.dmax){t.msg="invalid distance too far back",n.mode=pt;break}n.mode=at;case at:if(0===c)break t;if(v=m-c,n.offset>v){if((v=n.offset-v)>n.whave&&n.sane){t.msg="invalid distance too far back",n.mode=pt;break}v>n.wnext?(v-=n.wnext,y=n.wsize-v):y=n.wnext-v,v>n.length&&(v=n.length),mt=n.window}else mt=o,y=a-n.offset,v=n.length;v>c&&(v=c),c-=v,n.length-=v;do{o[a++]=mt[y++]}while(--v);0===n.length&&(n.mode=rt);break;case ut:if(0===c)break t;o[a++]=n.length,c--,n.mode=rt;break;case ct:if(n.wrap){for(;f<32;){if(0===u)break t;u--,p|=i[s++]<<f,f+=8}if(m-=c,t.total_out+=m,n.total+=m,m&&(t.adler=n.check=n.flags?_(n.check,o,m,a-m):b(n.check,o,m,a-m)),m=c,(n.flags?p:r(p))!==n.check){t.msg="incorrect data check",n.mode=pt;break}p=0,f=0}n.mode=lt;case lt:if(n.wrap&&n.flags){for(;f<32;){if(0===u)break t;u--,p+=i[s++]<<f,f+=8}if(p!==(4294967295&n.total)){t.msg="incorrect length check",n.mode=pt;break}p=0,f=0}n.mode=ht;case ht:Et=P;break t;case pt:Et=N;break t;case ft:return I;case dt:default:return L}return t.next_out=a,t.avail_out=c,t.next_in=s,t.avail_in=u,n.hold=p,n.bits=f,(n.wsize||m!==t.avail_out&&n.mode<pt&&(n.mode<ct||e!==M))&&h(t,t.output,t.next_out,m-t.avail_out)?(n.mode=ft,I):(d-=t.avail_in,m-=t.avail_out,t.total_in+=d,t.total_out+=m,n.total+=m,n.wrap&&m&&(t.adler=n.check=n.flags?_(n.check,o,m,t.next_out-m):b(n.check,o,m,t.next_out-m)),t.data_type=n.bits+(n.last?64:0)+(n.mode===X?128:0)+(n.mode===nt||n.mode===J?256:0),(0===d&&0===m||e===M)&&Et===A&&(Et=k),Et)}function f(t){if(!t||!t.state)return L;var e=t.state;return e.window&&(e.window=null),t.state=null,A}function d(t,e){var n;return t&&t.state?(n=t.state,0==(2&n.wrap)?L:(n.head=e,e.done=!1,A)):L}function m(t,e){var n,r,i=e.length;return t&&t.state?(n=t.state,0!==n.wrap&&n.mode!==Z?L:n.mode===Z&&(r=1,(r=b(r,e,i,0))!==n.check)?N:h(t,e,i,i)?(n.mode=ft,I):(n.havedict=1,A)):L}var v,y,g=n("ZN67"),b=n("e/xH"),_=n("f8cP"),w=n("e6n3"),x=n("bawV"),E=0,S=1,T=2,M=4,C=5,O=6,A=0,P=1,R=2,L=-2,N=-3,I=-4,k=-5,j=8,D=1,F=2,U=3,B=4,z=5,V=6,H=7,G=8,W=9,q=10,Z=11,X=12,K=13,Y=14,J=15,Q=16,$=17,tt=18,et=19,nt=20,rt=21,it=22,ot=23,st=24,at=25,ut=26,ct=27,lt=28,ht=29,pt=30,ft=31,dt=32,mt=852,vt=592,yt=15,gt=!0;e.inflateReset=s,e.inflateReset2=a,e.inflateResetKeep=o,e.inflateInit=c,e.inflateInit2=u,e.inflate=p,e.inflateEnd=f,e.inflateGetHeader=d,e.inflateSetDictionary=m,e.inflateInfo="pako inflate (from Nodeca project)"},HqiZ:function(t,e,n){"use strict";function r(t){function e(e,n){return!(e<0||n<0||e>=r||n>=r)&&!!t[e][n]}function n(t,n,r){i[t][n]=1;var o=[];o.push(["M",n,t]);var s=t,a=n,u=0;do{switch(r){case"right":i[s][a]=1,e(s,a)?(i[s-1][a]=1,e(s-1,a)?(o.push(["h",u]),u=0,r="up"):(u++,a++)):(o.push(["h",u]),u=0,r="down");break;case"left":i[s-1][a-1]=1,e(s-1,a-1)?(i[s][a-1]=1,e(s,a-1)?(o.push(["h",-u]),u=0,r="down"):(u++,a--)):(o.push(["h",-u]),u=0,r="up");break;case"down":i[s][a-1]=1,e(s,a-1)?(i[s][a]=1,e(s,a)?(o.push(["v",u]),u=0,r="right"):(u++,s++)):(o.push(["v",u]),u=0,r="left");break;case"up":i[s-1][a]=1,e(s-1,a)?(i[s-1][a-1]=1,e(s-1,a-1)?(o.push(["v",-u]),u=0,r="left"):(u++,s--)):(o.push(["v",-u]),u=0,r="right")}}while(s!=t||a!=n);return o}for(var r=t.length,i=[],o=-1;o<=r;o++)i[o]=[];for(var s=[],o=0;o<r;o++)for(var a=0;a<r;
1a++)i[o][a]||(i[o][a]=1,e(o,a)?e(o-1,a)||s.push(n(o,a,"right")):e(o,a-1)&&s.push(n(o,a,"down")));return s}function i(t,e,n){r(t).forEach(function(t){for(var r="",i=0;i<t.length;i++){var o=t[i];switch(o[0]){case"M":r+="M"+(o[1]+n)+" "+(o[2]+n);break;default:r+=o.join("")}}r+="z",e.push(r)})}function o(t,e){var n=[];return i(t,n,e),{size:t.length+2*e,path:n.filter(Boolean).join("")}}function s(t,e,n,r){var o=t.length+2*n;if(e.push('<svg xmlns="http://www.w3.org/2000/svg" '),r>0){var s=o*r;e.push('width="'+s+'" height="'+s+'" ')}e.push('viewBox="0 0 '+o+" "+o+'">'),e.push('<path d="'),i(t,e,n),e.push('"/></svg>'),e.push(null)}function a(t,e,n){var i=t.length,o=9*(i+2*n);e.push(["%!PS-Adobe-3.0 EPSF-3.0","%%BoundingBox: 0 0 "+o+" "+o,"/h { 0 rlineto } bind def","/v { 0 exch neg rlineto } bind def","/M { neg "+(i+n)+" add moveto } bind def","/z { closepath } bind def","9 9 scale",""].join("\n")),r(t).forEach(function(t){for(var r="",i=0;i<t.length;i++){var o=t[i];switch(o[0]){case"M":r+=o[1]+n+" "+o[2]+" M ";break;default:r+=o[1]+" "+o[0]+" "}}r+="z\n",e.push(r)}),e.push("fill\n%%EOF\n"),e.push(null)}function u(t,e,n){var i=t.length,o=9*(i+2*n),s=["%PDF-1.0\n\n","1 0 obj << /Type /Catalog /Pages 2 0 R >> endobj\n","2 0 obj << /Type /Pages /Count 1 /Kids [ 3 0 R ] >> endobj\n"];s.push("3 0 obj << /Type /Page /Parent 2 0 R /Resources <<>> /Contents 4 0 R /MediaBox [ 0 0 "+o+" "+o+" ] >> endobj\n");var a="9 0 0 9 0 0 cm\n";a+=r(t).map(function(t){for(var e,r,o="",s=0;s<t.length;s++){var a=t[s];switch(a[0]){case"M":e=a[1]+n,r=i-a[2]+n,o+=e+" "+r+" m ";break;case"h":e+=a[1],o+=e+" "+r+" l ";break;case"v":r-=a[1],o+=e+" "+r+" l "}}return o+="h"}).join("\n"),a+="\nf\n",s.push("4 0 obj << /Length "+a.length+" >> stream\n"+a+"endstream\nendobj\n");for(var u="xref\n0 5\n0000000000 65535 f \n",c=1,l=s[0].length;c<5;c++)u+=("0000000000"+l).substr(-10)+" 00000 n \n",l+=s[c].length;s.push(u,"trailer << /Root 1 0 R /Size 5 >>\n","startxref\n"+l+"\n%%EOF\n"),e.push(s.join("")),e.push(null)}t.exports={svg:s,eps:a,pdf:u,svg_object:o}},"Hr+Y":function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=a.async),function(n){return n.lift(new u(t,e))}}function i(t){t.debouncedNext()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("T14+"),a=n("IhB/");e.debounceTime=r;var u=function(){function t(t,e){this.dueTime=t,this.scheduler=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.dueTime,this.scheduler))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.dueTime=n,this.scheduler=r,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return o(e,t),e.prototype._next=function(t){this.clearDebounce(),this.lastValue=t,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(i,this.dueTime,this))},e.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},e.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},e.prototype.clearDebounce=function(){var t=this.debouncedSubscription;null!==t&&(this.remove(t),t.unsubscribe(),this.debouncedSubscription=null)},e}(s.Subscriber)},HwxE:function(t,e,n){"use strict";function r(){return new a.Subject}function i(){return function(t){return s.refCount()(o.multicast(r)(t))}}var o=n("P02W"),s=n("F9px"),a=n("rlar");e.share=i},HyAm:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("I2Y9"),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.flush=function(t){this.active=!0,this.scheduled=void 0;var e,n=this.actions,r=-1,i=n.length;t=t||n.shift();do{if(e=t.execute(t.state,t.delay))break}while(++r<i&&(t=n.shift()));if(this.active=!1,e){for(;++r<i&&(t=n.shift());)t.unsubscribe();throw e}},e}(i.AsyncScheduler);
1e.AsapScheduler=o},I2Y9:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("1VPd"),o=function(t){function e(){t.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return r(e,t),e.prototype.flush=function(t){var e=this.actions;if(this.active)return void e.push(t);var n;this.active=!0;do{if(n=t.execute(t.state,t.delay))break}while(t=e.shift());if(this.active=!1,n){for(;t=e.shift();)t.unsubscribe();throw n}},e}(i.Scheduler);e.AsyncScheduler=o},I3ay:function(t,e,n){"use strict";function r(){return i.concatAll()(this)}var i=n("NiCh");e.concatAll=r},I64N:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("Io40"),o=n("I2Y9"),s=function(t){function e(e,n){var r=this;void 0===e&&(e=a),void 0===n&&(n=Number.POSITIVE_INFINITY),t.call(this,e,function(){return r.frame}),this.maxFrames=n,this.frame=0,this.index=-1}return r(e,t),e.prototype.flush=function(){for(var t,e,n=this,r=n.actions,i=n.maxFrames;(e=r.shift())&&(this.frame=e.delay)<=i&&!(t=e.execute(e.state,e.delay)););if(t){for(;e=r.shift();)e.unsubscribe();throw t}},e.frameTimeFactor=10,e}(o.AsyncScheduler);
vendor: 10,539 bytes, line 1
1e.VirtualTimeScheduler=s;var a=function(t){function e(e,n,r){void 0===r&&(r=e.index+=1),t.call(this,e,n),this.scheduler=e,this.work=n,this.index=r,this.active=!0,this.index=e.index=r}return r(e,t),e.prototype.schedule=function(n,r){if(void 0===r&&(r=0),!this.id)return t.prototype.schedule.call(this,n,r);this.active=!1;var i=new e(this.scheduler,this.work);return this.add(i),i.schedule(n,r)},e.prototype.requestAsyncId=function(t,n,r){void 0===r&&(r=0),this.delay=t.frame+r;var i=t.actions;return i.push(this),i.sort(e.sortActions),!0},e.prototype.recycleAsyncId=function(t,e,n){void 0===n&&(n=0)},e.prototype._execute=function(e,n){if(!0===this.active)return t.prototype._execute.call(this,e,n)},e.sortActions=function(t,e){return t.delay===e.delay?t.index===e.index?0:t.index>e.index?1:-1:t.delay>e.delay?1:-1},e}(i.AsyncAction);e.VirtualAction=a},INGy:function(t,e,n){"use strict";(function(e,r){function i(t){return D.from(t)}function o(t){return D.isBuffer(t)||t instanceof F}function s(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?I(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}function a(t,e){N=N||n("dJzE"),t=t||{},this.objectMode=!!t.objectMode,e instanceof N&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var r=t.highWaterMark,i=this.objectMode?16:16384;this.highWaterMark=r||0===r?r:i,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new H,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(V||(V=n("/cYh").StringDecoder),this.decoder=new V(t.encoding),this.encoding=t.encoding)}function u(t){if(N=N||n("dJzE"),!(this instanceof u))return new u(t);this._readableState=new a(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),j.call(this)}function c(t,e,n,r,o){var s=t._readableState;if(null===e)s.reading=!1,m(t,s);else{var a;o||(a=h(s,e)),a?t.emit("error",a):s.objectMode||e&&e.length>0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===D.prototype||(e=i(e)),r?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):l(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?l(t,s,e,!1):g(t,s)):l(t,s,e,!1))):r||(s.reading=!1)}return p(s)}function l(t,e,n,r){e.flowing&&0===e.length&&!e.sync?(t.emit("data",n),t.read(0)):(e.length+=e.objectMode?1:n.length,r?e.buffer.unshift(n):e.buffer.push(n),e.needReadable&&v(t)),g(t,e)}function h(t,e){var n;return o(e)||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk")),n}function p(t){return!t.ended&&(t.needReadable||t.length<t.highWaterMark||0===t.length)}function f(t){return t>=q?t=q:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}function d(t,e){return t<=0||0===e.length&&e.ended?0:e.objectMode?1:t!==t?e.flowing&&e.length?e.buffer.head.data.length:e.length:(t>e.highWaterMark&&(e.highWaterMark=f(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function m(t,e){if(!e.ended){if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,v(t)}}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(z("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?L(y,t):y(t))}function y(t){z("emit readable"),t.emit("readable"),S(t)}function g(t,e){e.readingMore||(e.readingMore=!0,L(b,t,e))}function b(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length<e.highWaterMark&&(z("maybeReadMore read 0"),t.read(0),n!==e.length);)n=e.length;e.readingMore=!1}function _(t){return function(){var e=t._readableState;z("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&k(t,"data")&&(e.flowing=!0,S(t))}}function w(t){z("readable nexttick read 0"),t.read(0)}function x(t,e){e.resumeScheduled||(e.resumeScheduled=!0,L(E,t,e))}function E(t,e){e.reading||(z("resume read 0"),t.read(0)),e.resumeScheduled=!1,e.awaitDrain=0,t.emit("resume"),S(t),e.flowing&&!e.reading&&t.read(0)}function S(t){var e=t._readableState;for(z("flow",e.flowing);e.flowing&&null!==t.read(););}function T(t,e){if(0===e.length)return null;var n;return e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=M(t,e.buffer,e.decoder),n}function M(t,e,n){var r;return t<e.head.data.length?(r=e.head.data.slice(0,t),e.head.data=e.head.data.slice(t)):r=t===e.head.data.length?e.shift():n?C(t,e):O(t,e),r}function C(t,e){var n=e.head,r=1,i=n.data;for(t-=i.length;n=n.next;){var o=n.data,s=t>o.length?o.length:t;if(s===o.length?i+=o:i+=o.slice(0,t),0===(t-=s)){s===o.length?(++r,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=o.slice(s));break}++r}return e.length-=r,i}function O(t,e){var n=D.allocUnsafe(t),r=e.head,i=1;for(r.data.copy(n),t-=r.data.length;r=r.next;){var o=r.data,s=t>o.length?o.length:t;if(o.copy(n,n.length-t,0,s),0===(t-=s)){s===o.length?(++i,r.next?e.head=r.next:e.head=e.tail=null):(e.head=r,r.data=o.slice(s));break}++i}return e.length-=i,n}function A(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,L(P,e,t))}function P(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function R(t,e){for(var n=0,r=t.length;n<r;n++)if(t[n]===e)return n;return-1}var L=n("1Rb4");t.exports=u;var N,I=n("CDvF");u.ReadableState=a;var k=(n("rOzH").EventEmitter,function(t,e){return t.listeners(e).length}),j=n("wHgO"),D=n("zOKz").Buffer,F=e.Uint8Array||function(){},U=n("VIKU");U.inherits=n("lDCR");var B=n(1),z=void 0;z=B&&B.debuglog?B.debuglog("stream"):function(){};var V,H=n("yY5i"),G=n("iAGO");U.inherits(u,j);var W=["error","close","destroy","pause","resume"];Object.defineProperty(u.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&this._readableState.destroyed},set:function(t){this._readableState&&(this._readableState.destroyed=t)}}),u.prototype.destroy=G.destroy,u.prototype._undestroy=G.undestroy,u.prototype._destroy=function(t,e){this.push(null),e(t)},u.prototype.push=function(t,e){var n,r=this._readableState;return r.objectMode?n=!0:"string"==typeof t&&(e=e||r.defaultEncoding,e!==r.encoding&&(t=D.from(t,e),e=""),n=!0),c(this,t,e,!1,n)},u.prototype.unshift=function(t){return c(this,t,null,!0,!1)},u.prototype.isPaused=function(){return!1===this._readableState.flowing},u.prototype.setEncoding=function(t){return V||(V=n("/cYh").StringDecoder),this._readableState.decoder=new V(t),this._readableState.encoding=t,this};var q=8388608;u.prototype.read=function(t){z("read",t),t=parseInt(t,10);var e=this._readableState,n=t;if(0!==t&&(e.emittedReadable=!1),0===t&&e.needReadable&&(e.length>=e.highWaterMark||e.ended))return z("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?A(this):v(this),null;if(0===(t=d(t,e))&&e.ended)return 0===e.length&&A(this),null;var r=e.needReadable;z("need readable",r),(0===e.length||e.length-t<e.highWaterMark)&&(r=!0,z("length less than watermark",r)),e.ended||e.reading?(r=!1,z("reading or ended",r)):r&&(z("do read"),e.reading=!0,e.sync=!0,0===e.length&&(e.needReadable=!0),this._read(e.highWaterMark),e.sync=!1,e.reading||(t=d(n,e)));var i;return i=t>0?T(t,e):null,null===i?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&A(this)),null!==i&&this.emit("data",i),i},u.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},u.prototype.pipe=function(t,e){function n(t,e){z("onunpipe"),t===p&&e&&!1===e.hasUnpiped&&(e.hasUnpiped=!0,o())}function i(){z("onend"),t.end()}function o(){z("cleanup"),t.removeListener("close",c),t.removeListener("finish",l),t.removeListener("drain",v),t.removeListener("error",u),t.removeListener("unpipe",n),p.removeListener("end",i),p.removeListener("end",h),p.removeListener("data",a),y=!0,!f.awaitDrain||t._writableState&&!t._writableState.needDrain||v()}function a(e){z("ondata"),g=!1,!1!==t.write(e)||g||((1===f.pipesCount&&f.pipes===t||f.pipesCount>1&&-1!==R(f.pipes,t))&&!y&&(z("false write response, pause",p._readableState.awaitDrain),p._readableState.awaitDrain++,g=!0),p.pause())}function u(e){z("onerror",e),h(),t.removeListener("error",u),0===k(t,"error")&&t.emit("error",e)}function c(){t.removeListener("finish",l),h()}function l(){z("onfinish"),t.removeListener("close",c),h()}function h(){z("unpipe"),p.unpipe(t)}var p=this,f=this._readableState;switch(f.pipesCount){case 0:f.pipes=t;break;case 1:f.pipes=[f.pipes,t];break;default:f.pipes.push(t)}f.pipesCount+=1,z("pipe count=%d opts=%j",f.pipesCount,e);var d=(!e||!1!==e.end)&&t!==r.stdout&&t!==r.stderr,m=d?i:h;f.endEmitted?L(m):p.once("end",m),t.on("unpipe",n);var v=_(p);t.on("drain",v);var y=!1,g=!1;return p.on("data",a),s(t,"error",u),t.once("close",c),t.once("finish",l),t.emit("pipe",p),f.flowing||(z("pipe resume"),p.resume()),t},u.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes?this:(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n),this);if(!t){var r=e.pipes,i=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var o=0;o<i;o++)r[o].emit("unpipe",this,n);return this}var s=R(e.pipes,t);return-1===s?this:(e.pipes.splice(s,1),e.pipesCount-=1,1===e.pipesCount&&(e.pipes=e.pipes[0]),t.emit("unpipe",this,n),this)},u.prototype.on=function(t,e){var n=j.prototype.on.call(this,t,e);if("data"===t)!1!==this._readableState.flowing&&this.resume();else if("readable"===t){var r=this._readableState;r.endEmitted||r.readableListening||(r.readableListening=r.needReadable=!0,r.emittedReadable=!1,r.reading?r.length&&v(this):L(w,this))}return n},u.prototype.addListener=u.prototype.on,u.prototype.resume=function(){var t=this._readableState;return t.flowing||(z("resume"),t.flowing=!0,x(this,t)),this},u.prototype.pause=function(){return z("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(z("pause"),this._readableState.flowing=!1,this.emit
1("pause")),this},u.prototype.wrap=function(t){var e=this._readableState,n=!1,r=this;t.on("end",function(){if(z("wrapped end"),e.decoder&&!e.ended){var t=e.decoder.end();t&&t.length&&r.push(t)}r.push(null)}),t.on("data",function(i){if(z("wrapped data"),e.decoder&&(i=e.decoder.write(i)),(!e.objectMode||null!==i&&void 0!==i)&&(e.objectMode||i&&i.length)){r.push(i)||(n=!0,t.pause())}});for(var i in t)void 0===this[i]&&"function"==typeof t[i]&&(this[i]=function(e){return function(){return t[e].apply(t,arguments)}}(i));for(var o=0;o<W.length;o++)t.on(W[o],r.emit.bind(r,W[o]));return r._read=function(e){z("wrapped _read",e),n&&(n=!1,t.resume())},r},u._fromList=T}).call(e,n("fRUx"),n("1WNV"))},IOeT:function(t,e,n){"use strict";function r(t){return i.combineAll(t)(this)}var i=n("7xz3");e.combineAll=r},IUpl:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Y+l6");r.Observable.prototype.toArray=i.toArray},IfwN:function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new i.FindValueOperator(t,n,!0,e))}}var i=n("0dhf");e.findIndex=r},"IhB/":function(t,e,n){"use strict";var r=n("Io40"),i=n("I2Y9");e.async=new i.AsyncScheduler(r.AsyncAction)},IkMW:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new i.ZipOperator(t))}}var i=n("SBOU");e.zipAll=r},Io40:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("zijX"),o=n("XNum"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n,this.pending=!1}return r(e,t),e.prototype.schedule=function(t,e){if(void 0===e&&(e=0),this.closed)return this;this.state=t,this.pending=!0;var n=this.id,r=this.scheduler;return null!=n&&(this.id=this.recycleAsyncId(r,n,e)),this.delay=e,this.id=this.id||this.requestAsyncId(r,this.id,e),this},e.prototype.requestAsyncId=function(t,e,n){return void 0===n&&(n=0),i.root.setInterval(t.flush.bind(t,this),n)},e.prototype.recycleAsyncId=function(t,e,n){return void 0===n&&(n=0),null!==n&&this.delay===n&&!1===this.pending?e:i.root.clearInterval(e)&&void 0||void 0},e.prototype.execute=function(t,e){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var n=this._execute(t,e);if(n)return n;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},e.prototype._execute=function(t,e){var n=!1,r=void 0;try{this.work(t)}catch(t){n=!0,r=!!t&&t||new Error(t)}if(n)return this.unsubscribe(),r},e.prototype._unsubscribe=function(){var t=this.id,e=this.scheduler,n=e.actions,r=n.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==r&&n.splice(r,1),null!=t&&(this.id=this.recycleAsyncId(e,t,null)),this.delay=null},e}(o.Action);e.AsyncAction=s},IpZT:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ZQVD");r.Observable.prototype.ignoreElements=i.ignoreElements},IqVs:function(t,e,n){"use strict";var r=n("zijX"),i=function(){function t(t){t.requestAnimationFrame?(this.cancelAnimationFrame=t.cancelAnimationFrame.bind(t),this.requestAnimationFrame=t.requestAnimationFrame.bind(t)):t.mozRequestAnimationFrame?(this.cancelAnimationFrame=t.mozCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.mozRequestAnimationFrame.bind(t)):t.webkitRequestAnimationFrame?(this.cancelAnimationFrame=t.webkitCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.webkitRequestAnimationFrame.bind(t)):t.msRequestAnimationFrame?(this.cancelAnimationFrame=t.msCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.msRequestAnimationFrame.bind(t)):t.oRequestAnimationFrame?(this.cancelAnimationFrame=t.oCancelAnimationFrame.bind(t),this.requestAnimationFrame=t.oRequestAnimationFrame.bind(t)):(this.cancelAnimationFrame=t.clearTimeout.bind(t),this.requestAnimationFrame=function(e){return t.setTimeout(e,1e3/60)})}return t}();e.RequestAnimationFrameDefinition=i,e.AnimationFrame=new i(r.root)},ItUe:function(t,e,n){"use strict";var r=n("bKpL"),i=n("0I3B");r.Observable.prototype.zip=i.zipProto},J8I8:function(t,e,n){"use strict";(function(e){function n(t,e){for(var n=e.length,r=0;r<n;r++){var o=i[t[3]^e[r]];t[3]=o[3]^t[2],t[2]=o[2]^t[1],t[1]=o[1]^t[0],t[0]=o[0]}}function r(){var t=arguments.length,r=new e(4);r.fill(255);for(var i=0;i<t;i++)n(r,new e(arguments[i]));return r[0]=255^r[0],r[1]=255^r[1],r[2]=255^r[2],r[3]=255^r[3],r.readUInt32BE(0)}for(var i=[],o=0;o<256;o++){var s=i[o]=new e(4);s.writeUInt32BE(o,0);for(var a=0;a<8;a++){var u=1&s[0],c=1&s[1],l=1&s[2],h=1&s[3];s[0]=s[0]>>1^(h?237:0),s[1]=s[1]>>1^(h?184:0)^(u?128:0),s[2]=s[2]>>1^(h?131:0)^(c?128:0),s[3]=s[3]>>1^(h?32:0)^(l?128:0)}}t.exports=r}).call(e,n("v0OU").Buffer)},JCyH:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("qIlB"),o=n("Io40"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler
1=e,this.work=n}return r(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=i.Immediate.setImmediate(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(i.Immediate.clearImmediate(n),e.scheduled=void 0)},e}(o.AsyncAction);e.AsapAction=s},JNTq:function(t,e,n){"use strict";var r=n("bKpL"),i=n("LEug");r.Observable.merge=i.merge},JSgX:function(t,e,n){"use strict";var r=n("bKpL"),i=n("7kbP");r.Observable.concat=i.concat},JwCl:function(t,e,n){"use strict";function r(t,e){return arguments.length>=2?function(n){return a.pipe(i.scan(t,e),o.takeLast(1),s.defaultIfEmpty(e))(n)}:function(e){return a.pipe(i.scan(function(e,n,r){return t(e,n,r+1)}),o.takeLast(1))(e)}}var i=n("H1KZ"),o=n("XvrG"),s=n("PbxL"),a=n("vxPf");e.reduce=r},K5Xx:function(t,e,n){"use strict";function r(t){return i.publish(t)(this)}var i=n("zBM/");e.publish=r},"Kt+M":function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i.concat.apply(void 0,t)(this)}var i=n("vNxK"),o=n("7kbP");e.concatStatic=o.concat,e.concat=r},Kuy3:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),i.subscribeOn(t,e)(this)}var i=n("qHrI");e.subscribeOn=r},L0Qg:function(t,e,n){"use strict";function r(){return function(t){return t.lift(new a)}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("3lsR");e.materialize=r;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e)}return i(e,t),e.prototype._next=function(t){this.destination.next(s.Notification.createNext(t))},e.prototype._error=function(t){var e=this.destination;e.next(s.Notification.createError(t)),e.complete()},e.prototype._complete=function(){var t=this.destination;t.next(s.Notification.createComplete()),t.complete()},e}(o.Subscriber)},L8VJ:function(t,e,n){"use strict";function r(t,e){return function(n){if("function"!=typeof t)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return n.lift(new s(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.map=r;var s=function(){function t(t,e){this.project=t,this.thisArg=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.project,this.thisArg))},t}();e.MapOperator=s;var a=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.count=0,this.thisArg=r||this}return i(e,t),e.prototype._next=function(t){var e;try{e=this.project.call(this.thisArg,t,this.count++)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.Subscriber)},LBqD:function(t,e,n){"use strict";function r(){return i.pairwise()(this)}var i=n("9FjR");e.pairwise=r},LClL:function(t,e,n){"use strict";var r=n("bKpL"),i=n("saEi");r.Observable.prototype.publishBehavior=i.publishBehavior},LEug:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=Number.POSITIVE_INFINITY,r=null,u=t[t.length-1];return s.isScheduler(u)?(r=t.pop(),t.length>1&&"number"==typeof t[t.length-1]&&(n=t.pop())):"number"==typeof u&&(n=t.pop()),null===r&&1===t.length&&t[0]instanceof i.Observable?t[0]:a.mergeAll(n)(new o.ArrayObservable(t,r))}var i=n("bKpL"),o=n("wZOE"),s=n("MicL"),a=n("8rcZ");e.merge=r},LTTx:function(t,e,n){"use strict";var r=n("bKpL"),i=n("xAqS");r.Observable.prototype.bufferToggle=i.bufferToggle},Lhvy:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"object unsubscribed");this.name=e.name="ObjectUnsubscribedError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ObjectUnsubscribedError=i},LiYJ:function(t,e,n){"use strict";e.empty={closed:!0,next:function(t){},error:function(t){throw t},complete:function(){}}},Lqs2:function(t,e,n){"use strict";function r(t){return i.take(t)(this)}var i=n("TQK7");e.take=r},Lssd:function(t,e,n){"use strict";var r=n("bKpL"),i=n("WmO6");r.Observable.prototype.partition=i.partition},M11L:function(t,e,n){"use strict";function r(){return function(){function t(){this._values=[]}return t.prototype.add=function(t){this.has(t)||this._values.push(t)},t.prototype.has=function(t){return-1!==this._values.indexOf(t)},Object.defineProperty(t.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),t.prototype.clear=function(){this._values.length=0},t}()}var i=n("zijX");e.minimalSetImpl=r,e.Set=i.root.Set||r()},MBEm:function(t,e,n){"use strict";var r=n("bKpL"),i=n("kGJb");r.Observable.prototype.distinctUntilChanged=i.distinctUntilChanged},MIR9:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("3lsR"),s=n("iH09"),a=n("XR5H"),u=n("OXmC"),c=n("I64N"),l=750,h=function(t){function e(e){t.call(this,c.VirtualAction,l),this.assertDeepEqual=e,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return r(e,t),e.prototype.createTime=function(t){var n=t.indexOf("|");if(-1===n)throw new Error('marble diagram for time should have a completion marker "|"');return n*e.frameTimeFactor},e.prototype.createColdObservable=function(t,n,r){if(-1!==t.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==t.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');
1var i=e.parseMarbles(t,n,r),o=new s.ColdObservable(i,this);return this.coldObservables.push(o),o},e.prototype.createHotObservable=function(t,n,r){if(-1!==t.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var i=e.parseMarbles(t,n,r),o=new a.HotObservable(i,this);return this.hotObservables.push(o),o},e.prototype.materializeInnerObservable=function(t,e){var n=this,r=[];return t.subscribe(function(t){r.push({frame:n.frame-e,notification:o.Notification.createNext(t)})},function(t){r.push({frame:n.frame-e,notification:o.Notification.createError(t)})},function(){r.push({frame:n.frame-e,notification:o.Notification.createComplete()})}),r},e.prototype.expectObservable=function(t,n){var r=this;void 0===n&&(n=null);var s,a=[],u={actual:a,ready:!1},c=e.parseMarblesAsSubscriptions(n).unsubscribedFrame;return this.schedule(function(){s=t.subscribe(function(t){var e=t;t instanceof i.Observable&&(e=r.materializeInnerObservable(e,r.frame)),a.push({frame:r.frame,notification:o.Notification.createNext(e)})},function(t){a.push({frame:r.frame,notification:o.Notification.createError(t)})},function(){a.push({frame:r.frame,notification:o.Notification.createComplete()})})},0),c!==Number.POSITIVE_INFINITY&&this.schedule(function(){return s.unsubscribe()},c),this.flushTests.push(u),{toBe:function(t,n,r){u.ready=!0,u.expected=e.parseMarbles(t,n,r,!0)}}},e.prototype.expectSubscriptions=function(t){var n={actual:t,ready:!1};return this.flushTests.push(n),{toBe:function(t){var r="string"==typeof t?[t]:t;n.ready=!0,n.expected=r.map(function(t){return e.parseMarblesAsSubscriptions(t)})}}},e.prototype.flush=function(){for(var e=this.hotObservables;e.length>0;)e.shift().setup();t.prototype.flush.call(this);for(var n=this.flushTests.filter(function(t){return t.ready});n.length>0;){var r=n.shift();this.assertDeepEqual(r.actual,r.expected)}},e.parseMarblesAsSubscriptions=function(t){if("string"!=typeof t)return new u.SubscriptionLog(Number.POSITIVE_INFINITY);for(var e=t.length,n=-1,r=Number.POSITIVE_INFINITY,i=Number.POSITIVE_INFINITY,o=0;o<e;o++){var s=o*this.frameTimeFactor,a=t[o];switch(a){case"-":case" ":break;case"(":n=s;break;case")":n=-1;break;case"^":if(r!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");r=n>-1?n:s;break;case"!":if(i!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");i=n>-1?n:s;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+a+"'.")}}return i<0?new u.SubscriptionLog(r):new u.SubscriptionLog(r,i)},e.parseMarbles=function(t,e,n,r){if(void 0===r&&(r=!1),-1!==t.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var i=t.length,a=[],u=t.indexOf("^"),c=-1===u?0:u*-this.frameTimeFactor,l="object"!=typeof e?function(t){return t}:function(t){return r&&e[t]instanceof s.ColdObservable?e[t].messages:e[t]},h=-1,p=0;p<i;p++){var f=p*this.frameTimeFactor+c,d=void 0,m=t[p];switch(m){case"-":case" ":break;case"(":h=f;break;case")":h=-1;break;case"|":d=o.Notification.createComplete();break;case"^":break;case"#":d=o.Notification.createError(n||"error");break;default:d=o.Notification.createNext(l(m))}d&&a.push({frame:h>-1?h:f,notification:d})}return a},e}(c.VirtualTimeScheduler);e.TestScheduler=h},MaQZ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("etEa");r.Observable.prototype.find=i.find},MicL:function(t,e,n){"use strict";function r(t){return t&&"function"==typeof t.schedule}e.isScheduler=r},MzWM:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e){t.call(this),this.observableFactory=e}return r(e,t),e.create=function(t){return new e(t)},e.prototype._subscribe=function(t){return new u(t,this.observableFactory)},e}(i.Observable);e.DeferObservable=a;var u=function(t){function e(e,n){t.call(this,e),this.factory=n,this.tryDefer()}return r(e,t),e.prototype.tryDefer=function(){try{this._callFactory()}catch(t){this._error(t)}},e.prototype._callFactory=function(){var t=this.factory();t&&this.add(o.subscribeToResult(this,t))},e}(s.OuterSubscriber)},"N+n4":function(t,e,n){(function(t,r){function i(t,n){var r={seen:[],stylize:s};return arguments.length>=3&&(r.depth=arguments[2]),arguments.length>=4&&(r.colors=arguments[3]),m(n)?r.showHidden=n:n&&e._extend(r,n),w(r.showHidden)&&(r.showHidden=!1),w(r.depth)&&(r.depth=2),w(r.colors)&&(r.colors=!1),w(r.customInspect)&&(r.customInspect=!0),r.colors&&(r.stylize=o),u(r,t,r.depth)}function o(t,e){var n=i.styles[e];return n?"\x1b["+i.colors[n][0]+"m"+t+"\x1b["+i.colors[n][1]+"m":t}function s(t,e){return t}function a(t){var e={};return t.forEach(function(t,n){e[t]=!0}),e}function u(t,n,r){if(t.customInspect&&n&&M(n.inspect)&&n.inspect!==e.inspect&&(!n.constructor||n.constructor.prototype!==n)){var i=n.inspect(r,t);return b(i)||(i=u(t,i,r)),i}var o=c(t,n);if(o)return o;var s=Object.keys(n),m=a(s);if(t.showHidden&&(s=Object.getOwnPropertyNames(n)),T(n)&&(s.indexOf("message")>=0||s.indexOf("description")>=0))return l(n);if(0===s.length){if(M(n)){var v=n.name?": "+n.name:"";return t.stylize("[Function"+v+"]","special")}if(x(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(S(n))return t.stylize(Date.prototype.toString.call(n),"date");if(T(n))return l(n)}var y="",g=!1,_=["{","}"];if(d(n)&&(g=!0,_=["[","]"]),M(n)){y=" [Function"+(n.name?": "+n.name:"")+"]"}if(x(n)&&(y=" "+RegExp.prototype.toString.call(n)),S(n)&&(y=" "+Date.prototype.toUTCString.call(n)),T(n)&&(y=" "+l(n)),0===s.length&&(!g||0==n.length))return _[0]+y+_[1];if(r<0)return x(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var w;return w=g?h(t,n,r,m,s):s.map(function(e){return p(t,n,r,m,e,g)}),t.seen.pop(),f(w,y,_)}function c(t,e){if(w(e))return t.stylize("undefined","undefined");if(b(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(n,"string")}return g(e)?t.stylize(""+e,"number"):m(e)?t.stylize(""+e,"boolean"):v(e)?t.stylize("null","null"):void 0}function l(t){return"["+Error.prototype.toString.call(t)+"]"}function h(t,e,n,r,i){for(var o=[],s=0,a=e.length;s<a;++s)R(e,String(s))?o.push(p(t,e,n,r,String(s),!0)):o.push("");
vendor: 3,942 bytes, line 1
1return i.forEach(function(i){i.match(/^\d+$/)||o.push(p(t,e,n,r,i,!0))}),o}function p(t,e,n,r,i,o){var s,a,c;if(c=Object.getOwnPropertyDescriptor(e,i)||{value:e[i]},c.get?a=c.set?t.stylize("[Getter/Setter]","special"):t.stylize("[Getter]","special"):c.set&&(a=t.stylize("[Setter]","special")),R(r,i)||(s="["+i+"]"),a||(t.seen.indexOf(c.value)<0?(a=v(n)?u(t,c.value,null):u(t,c.value,n-1),a.indexOf("\n")>-1&&(a=o?a.split("\n").map(function(t){return" "+t}).join("\n").substr(2):"\n"+a.split("\n").map(function(t){return" "+t}).join("\n"))):a=t.stylize("[Circular]","special")),w(s)){if(o&&i.match(/^\d+$/))return a;s=JSON.stringify(""+i),s.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(s=s.substr(1,s.length-2),s=t.stylize(s,"name")):(s=s.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),s=t.stylize(s,"string"))}return s+": "+a}function f(t,e,n){var r=0;return t.reduce(function(t,e){return r++,e.indexOf("\n")>=0&&r++,t+e.replace(/\u001b\[\d\d?m/g,"").length+1},0)>60?n[0]+(""===e?"":e+"\n ")+" "+t.join(",\n ")+" "+n[1]:n[0]+e+" "+t.join(", ")+" "+n[1]}function d(t){return Array.isArray(t)}function m(t){return"boolean"==typeof t}function v(t){return null===t}function y(t){return null==t}function g(t){return"number"==typeof t}function b(t){return"string"==typeof t}function _(t){return"symbol"==typeof t}function w(t){return void 0===t}function x(t){return E(t)&&"[object RegExp]"===O(t)}function E(t){return"object"==typeof t&&null!==t}function S(t){return E(t)&&"[object Date]"===O(t)}function T(t){return E(t)&&("[object Error]"===O(t)||t instanceof Error)}function M(t){return"function"==typeof t}function C(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function O(t){return Object.prototype.toString.call(t)}function A(t){return t<10?"0"+t.toString(10):t.toString(10)}function P(){var t=new Date,e=[A(t.getHours()),A(t.getMinutes()),A(t.getSeconds())].join(":");return[t.getDate(),k[t.getMonth()],e].join(" ")}function R(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var L=/%[sdj%]/g;e.format=function(t){if(!b(t)){for(var e=[],n=0;n<arguments.length;n++)e.push(i(arguments[n]));return e.join(" ")}for(var n=1,r=arguments,o=r.length,s=String(t).replace(L,function(t){if("%%"===t)return"%";if(n>=o)return t;switch(t){case"%s":return String(r[n++]);case"%d":return Number(r[n++]);case"%j":try{return JSON.stringify(r[n++])}catch(t){return"[Circular]"}default:return t}}),a=r[n];n<o;a=r[++n])v(a)||!E(a)?s+=" "+a:s+=" "+i(a);return s},e.deprecate=function(n,i){function o(){if(!s){if(r.throwDeprecation)throw new Error(i);r.traceDeprecation?console.trace(i):console.error(i),s=!0}return n.apply(this,arguments)}if(w(t.process))return function(){return e.deprecate(n,i).apply(this,arguments)};if(!0===r.noDeprecation)return n;var s=!1;return o};var N,I={};e.debuglog=function(t){if(w(N)&&(N=r.env.NODE_DEBUG||""),t=t.toUpperCase(),!I[t])if(new RegExp("\\b"+t+"\\b","i").test(N)){var n=r.pid;I[t]=function(){var r=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,r)}}else I[t]=function(){};return I[t]},e.inspect=i,i.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},i.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"},e.isArray=d,e.isBoolean=m,e.isNull=v,e.isNullOrUndefined=y,e.isNumber=g,e.isString=b,e.isSymbol=_,e.isUndefined=w,e.isRegExp=x,e.isObject=E,e.isDate=S,e.isError=T,e.isFunction=M,e.isPrimitive=C,e.isBuffer=n("PIb/");var k=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];e.log=function(){console.log("%s - %s",P(),e.format.apply(e,arguments))},e.inherits=n("RC4L"),e._extend=function(t,e){if(!e||!E(e))return t;for(var n=Object.keys(e),r=n.length;r--;)t[n[r]]=e[n[r]];return t}}
1).call(e,n("fRUx"),n("1WNV"))},NOvV:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Pf4u");r.Observable.prototype.onErrorResumeNext=i.onErrorResumeNext},NSJx:function(t,e,n){"use strict";e.isArray=Array.isArray||function(t){return t&&"number"==typeof t.length}},NUku:function(t,e,n){"use strict";function r(t){return i.buffer(t)(this)}var i=n("+vKo");e.buffer=r},NZPJ:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("MicL"),s=function(t){return t},a=function(t){function e(e,n,r,i,o){t.call(this),this.initialState=e,this.condition=n,this.iterate=r,this.resultSelector=i,this.scheduler=o}return r(e,t),e.create=function(t,n,r,i,a){return 1==arguments.length?new e(t.initialState,t.condition,t.iterate,t.resultSelector||s,t.scheduler):void 0===i||o.isScheduler(i)?new e(t,n,r,s,i):new e(t,n,r,i,a)},e.prototype._subscribe=function(t){var n=this.initialState;if(this.scheduler)return this.scheduler.schedule(e.dispatch,0,{subscriber:t,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:n});for(var r=this,i=r.condition,o=r.resultSelector,s=r.iterate;;){if(i){var a=void 0;try{a=i(n)}catch(e){return void t.error(e)}if(!a){t.complete();break}}var u=void 0;try{u=o(n)}catch(e){return void t.error(e)}if(t.next(u),t.closed)break;try{n=s(n)}catch(e){return void t.error(e)}}},e.dispatch=function(t){var e=t.subscriber,n=t.condition;if(!e.closed){if(t.needIterate)try{t.state=t.iterate(t.state)}catch(t){return void e.error(t)}else t.needIterate=!0;if(n){var r=void 0;try{r=n(t.state)}catch(t){return void e.error(t)}if(!r)return void e.complete();if(e.closed)return}var i;try{i=t.resultSelector(t.state)}catch(t){return void e.error(t)}if(!e.closed&&(e.next(i),!e.closed))return this.schedule(t)}},e}(i.Observable);e.GenerateObservable=a},NgMz:function(t,e,n){"use strict";function r(t,e){return i.findIndex(t,e)(this)}var i=n("IfwN");e.findIndex=r},NiCh:function(t,e,n){"use strict";function r(){return i.mergeAll(1)}var i=n("8rcZ");e.concatAll=r},NkQZ:function(t,e,n){"use strict";function r(t,e){return i.switchMapTo(t,e)(this)}var i=n("0lA3");e.switchMapTo=r},NzSV:function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new a(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.exhaustMap=r;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return i(e,t),e.prototype._next=function(t){this.hasSubscription||this.tryNext(t)},e.prototype.tryNext=function(t){var e=this.index++,n=this.destination;try{var r=this.project(t,e);this.hasSubscription=!0,this.add(s.subscribeToResult(this,r,t,e))}catch(t){n.error(t)}},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,n,r):a.next(e)},e.prototype.trySelectResult=function(t,e,n,r){var i=this,o=i.resultSelector,s=i.destination;try{var a=o(t,e,n,r);
1s.next(a)}catch(t){s.error(t)}},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},"O++o":function(t,e,n){"use strict";(function(e){function n(t){for(;t<0;)t+=255;for(;t>255;)t-=255;return o[t]}function r(t){if(t<1||t>255)throw Error("Bad log("+t+")");return s[t]}function i(t){if(c[t])return c[t];var e=i(t-1),o=[];o[0]=e[0];for(var s=1;s<=t;s++)o[s]=r(n(e[s])^n(e[s-1]+t-1));return c[t]=o,o}for(var o=[1],s=[],a=1;a<256;a++){var u=o[a-1]<<1;u>255&&(u^=285),o[a]=u}for(var a=0;a<255;a++)s[o[a]]=a;var c=[[0],[0,0],[0,25,1]];t.exports=function(t,o){t=[].slice.call(t);for(var s=i(o),a=0;a<o;a++)t.push(0);for(;t.length>o;)if(t[0]){for(var u=r(t[0]),a=0;a<=o;a++)t[a]=t[a]^n(s[a]+u);t.shift()}else t.shift();return new e(t)}}).call(e,n("v0OU").Buffer)},OADz:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i.withLatestFrom.apply(void 0,t)(this)}var i=n("p4do");e.withLatestFrom=r},OCM8:function(t,e,n){"use strict";function r(){return i.publishLast()(this)}var i=n("qfkx");e.publishLast=r},OGSH:function(t,e,n){"use strict";var r=n("bKpL"),i=n("c2EU");r.Observable.prototype.throttle=i.throttle},OWbQ:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("NSJx"),o=n("lhZu"),s=n("mUVF"),a=n("mihg"),u=n("TA58"),c=n("wZOE"),l=n("wCVK"),h=n("2B7B"),p=n("bKpL"),f=n("GDiU"),d=n("DP67"),m=function(t){function e(e,n){t.call(this,null),this.ish=e,this.scheduler=n}return r(e,t),e.create=function(t,n){if(null!=t){if("function"==typeof t[d.observable])return t instanceof p.Observable&&!n?t:new e(t,n);if(i.isArray(t))return new c.ArrayObservable(t,n);if(s.isPromise(t))return new a.PromiseObservable(t,n);if("function"==typeof t[h.iterator]||"string"==typeof t)return new u.IteratorObservable(t,n);if(o.isArrayLike(t))return new l.ArrayLikeObservable(t,n)}throw new TypeError((null!==t&&typeof t||t)+" is not observable")},e.prototype._subscribe=function(t){var e=this.ish,n=this.scheduler;return null==n?e[d.observable]().subscribe(t):e[d.observable]().subscribe(new f.ObserveOnSubscriber(t,n,0))},e}(p.Observable);e.FromObservable=m},OXmC:function(t,e,n){"use strict";var r=function(){function t(t,e){void 0===e&&(e=Number.POSITIVE_INFINITY),this.subscribedFrame=t,this.unsubscribedFrame=e}return t}();e.SubscriptionLog=r},Obns:function(t,e,n){"use strict";function r(t){return i.debounce(t)(this)}var i=n("2l91");e.debounce=r},OdUO:function(t,e,n){"use strict";function r(t,e){return i.elementAt(t,e)(this)}var i=n("k6cv");e.elementAt=r},Ohh6:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i.startWith.apply(void 0,t)(this)}var i=n("dtBE");e.startWith=r},Osec:function(t,e,n){e=t.exports=n("INGy"),e.Stream=e,e.Readable=e,e.Writable=n("6QZ3"),e.Duplex=n("dJzE"),e.Transform=n("C7jF"),e.PassThrough=n("5E84")},Ozq5:function(t,e,n){"use strict";var r=n("bKpL"),i=n("GoZW");r.Observable.prototype.pluck=i.pluck},"P+lj":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("wEhC"),s=n("EsGe"),a=function(t){function e(e,n,r){void 0===n&&(n=0),void 0===r&&(r=o.asap),t.call(this),this.source=e,this.delayTime=n,this.scheduler=r,(!s.isNumeric(n)||n<0)&&(this.delayTime=0),r&&"function"==typeof r.schedule||(this.scheduler=o.asap)}return r(e,t),e.create=function(t,n,r){return void 0===n&&(n=0),void 0===r&&(r=o.asap),new e(t,n,r)},e.dispatch=function(t){var e=t.source,n=t.subscriber;return this.add(e.subscribe(n))},e.prototype._subscribe=function(t){var n=this.delayTime,r=this.source;return this.scheduler.schedule(e.dispatch,n,{source:r,subscriber:t})},e}(i.Observable);e.SubscribeOnObservable=a},P02W:function(t,e,n){"use strict";function r(t,e){return function(n){var r;if(r="function"==typeof t?t:function(){return t},"function"==typeof e)return n.lift(new o(r,e));var s=Object.create(n,i.connectableObservableDescriptor);return s.source=n,s.subjectFactory=r,s}}var i=n("xKl2");e.multicast=r;var o=function(){function t(t,e){this.subjectFactory=t,this.selector=e}return t.prototype.call=function(t,e){var n=this.selector,r=this.subjectFactory(),i=n(r).subscribe(t);return i.add(e.subscribe(r)),i},t}();e.MulticastOperator=o},"PIb/":function(t,e){t.exports=function(t){return t&&"object"==typeof t&&"function"==typeof t.copy&&"function"==typeof t.fill&&"function"==typeof t.readUInt8}},PT4i:function(t,e,n){"use strict";var r=n("Yvsb");e.never=r.NeverObservable.create},PatI:function(t,e,n){"use strict";var r=n("bKpL"),i=n("gonN");r.Observable.prototype.multicast=i.multicast},PbxL:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=null),function(e){return e.lift(new s(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.defaultIfEmpty=r;var s=function(){function t(t){this.defaultValue=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.defaultValue))},t}(),a=function(t){function e(e,n){t.call(this,e),this.defaultValue=n,this.isEmpty=!0}return i(e,t),e.prototype._next=function(t){this.isEmpty=!1,this.destination.next(t)},e.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},e}(o.Subscriber)},Pf4u:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i.onErrorResumeNext.apply(void 0,t)(this)}var i=n("r6G9");e.onErrorResumeNext=r},Pic8:function(t,e,n){"use strict";var r=n("bKpL"),i=n("aCMF");r.Observable.prototype.switchMap=i.switchMap},Plqt:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Tq0x");r.Observable.prototype.reduce=i.reduce},PwNK:function(t,e,n){"use strict";function r(t){return i.audit(t)(this)}var i=n("tAjV");e.audit=r},QEDK:function(t,e,n){"use strict";(function(t,r){function i(t){if("number"!=typeof t||t<e.DEFLATE||t>e.UNZIP)throw new TypeError("Bad argument");this.dictionary=null,this.err=0,this.flush=0,this.init_done=!1,this.level=0,this.memLevel=0,this.mode=t,this.strategy=0,this.windowBits=0,this.write_in_progress=!1,this.pending_close=!1,this.gzip_id_bytes_read=0}var o=n("iw1t"),s=n("SBDi"),a=n("sZAi"),u=n("HqJl"),c=n("6Shc");for(var l in c)e[l]=c[l];e.NONE=0,e.DEFLATE=1,e.INFLATE=2,e.GZIP=3,e.GUNZIP=4,e.DEFLATERAW=5,e.INFLATERAW=6,e.UNZIP=7;i.prototype.close=function(){if(this.write_in_progress)return void(this.pending_close=!0);this.pending_close=!1,o(this.init_done,"close before init"),o(this.mode<=e.UNZIP),this.mode===e.DEFLATE||this.mode===e.GZIP||this.mode===e.DEFLATERAW?a.deflateEnd(this.strm):this.mode!==e.INFLATE&&this.mode!==e.GUNZIP&&this.mode!==e.INFLATERAW&&this.mode!==e.UNZIP||u.inflateEnd(this.strm),this.mode=e.NONE,this.dictionary=null},i.prototype.write=function(t,e,n,r,i,o,s){return this._write(!0,t,e,n,r,i,o,s)},i.prototype.writeSync=function(t,e,n,r,i,o,s){return this._write(!1,t,e,n,r,i,o,s)},i.prototype._write=function(n,i,s,a,u,c,l,h){if(o.equal(arguments.length,8),o(this.init_done,"write before init"),o(this.mode!==e.NONE,"already finalized"),o.equal(!1,this.write_in_progress,"write already in progress"),o.equal(!1,this.pending_close,"close is pending"),this.write_in_progress=!0,o.equal(!1,void 0===i,"must provide flush value"),this.write_in_progress=!0,i!==e.Z_NO_FLUSH&&i!==e.Z_PARTIAL_FLUSH&&i!==e.Z_SYNC_FLUSH&&i!==e.Z_FULL_FLUSH&&i!==e.Z_FINISH&&i!==e.Z_BLOCK)throw new Error("Invalid flush value");if(null==s&&(s=t.alloc(0),u=0,a=0),this.strm.avail_in=u,this.strm.input=s,this.strm.next_in=a,this.strm.avail_out=h,this.strm.output=c,this.strm.next_out=l,this.flush=i,n){var p=this;return r.nextTick(function(){p._process(),p._after()}),this}if(this._process(),this._checkError())return this._afterSync()},i.prototype._afterSync=function(){var t=this.strm.avail_out,e=this.strm.avail_in;return this.write_in_progress=!1,[e,t]},i.prototype._process=function(){var t=null;switch(this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflate(this.strm,this.flush);break;case e.UNZIP:switch(this.strm.avail_in>0&&(t=this.strm.next_in),this.gzip_id_bytes_read){case 0:if(null===t)break;
vendor: 4,172 bytes, line 1
1if(31!==this.strm.input[t]){this.mode=e.INFLATE;break}if(this.gzip_id_bytes_read=1,t++,1===this.strm.avail_in)break;case 1:if(null===t)break;139===this.strm.input[t]?(this.gzip_id_bytes_read=2,this.mode=e.GUNZIP):this.mode=e.INFLATE;break;default:throw new Error("invalid number of gzip magic number bytes read")}case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:for(this.err=u.inflate(this.strm,this.flush),this.err===e.Z_NEED_DICT&&this.dictionary&&(this.err=u.inflateSetDictionary(this.strm,this.dictionary),this.err===e.Z_OK?this.err=u.inflate(this.strm,this.flush):this.err===e.Z_DATA_ERROR&&(this.err=e.Z_NEED_DICT));this.strm.avail_in>0&&this.mode===e.GUNZIP&&this.err===e.Z_STREAM_END&&0!==this.strm.next_in[0];)this.reset(),this.err=u.inflate(this.strm,this.flush);break;default:throw new Error("Unknown mode "+this.mode)}},i.prototype._checkError=function(){switch(this.err){case e.Z_OK:case e.Z_BUF_ERROR:if(0!==this.strm.avail_out&&this.flush===e.Z_FINISH)return this._error("unexpected end of file"),!1;break;case e.Z_STREAM_END:break;case e.Z_NEED_DICT:return null==this.dictionary?this._error("Missing dictionary"):this._error("Bad dictionary"),!1;default:return this._error("Zlib error"),!1}return!0},i.prototype._after=function(){if(this._checkError()){var t=this.strm.avail_out,e=this.strm.avail_in;this.write_in_progress=!1,this.callback(e,t),this.pending_close&&this.close()}},i.prototype._error=function(t){this.strm.msg&&(t=this.strm.msg),this.onerror(t,this.err),this.write_in_progress=!1,this.pending_close&&this.close()},i.prototype.init=function(t,n,r,i,s){o(4===arguments.length||5===arguments.length,"init(windowBits, level, memLevel, strategy, [dictionary])"),o(t>=8&&t<=15,"invalid windowBits"),o(n>=-1&&n<=9,"invalid compression level"),o(r>=1&&r<=9,"invalid memlevel"),o(i===e.Z_FILTERED||i===e.Z_HUFFMAN_ONLY||i===e.Z_RLE||i===e.Z_FIXED||i===e.Z_DEFAULT_STRATEGY,"invalid strategy"),this._init(n,t,r,i,s),this._setDictionary()},i.prototype.params=function(){throw new Error("deflateParams Not supported")},i.prototype.reset=function(){this._reset(),this._setDictionary()},i.prototype._init=function(t,n,r,i,o){switch(this.level=t,this.windowBits=n,this.memLevel=r,this.strategy=i,this.flush=e.Z_NO_FLUSH,this.err=e.Z_OK,this.mode!==e.GZIP&&this.mode!==e.GUNZIP||(this.windowBits+=16),this.mode===e.UNZIP&&(this.windowBits+=32),this.mode!==e.DEFLATERAW&&this.mode!==e.INFLATERAW||(this.windowBits=-1*this.windowBits),this.strm=new s,this.mode){case e.DEFLATE:case e.GZIP:case e.DEFLATERAW:this.err=a.deflateInit2(this.strm,this.level,e.Z_DEFLATED,this.windowBits,this.memLevel,this.strategy);break;case e.INFLATE:case e.GUNZIP:case e.INFLATERAW:case e.UNZIP:this.err=u.inflateInit2(this.strm,this.windowBits);break;default:throw new Error("Unknown mode "+this.mode)}this.err!==e.Z_OK&&this._error("Init error"),this.dictionary=o,this.write_in_progress=!1,this.init_done=!0},i.prototype._setDictionary=function(){if(null!=this.dictionary){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:this.err=a.deflateSetDictionary(this.strm,this.dictionary)}this.err!==e.Z_OK&&this._error("Failed to set dictionary")}},i.prototype._reset=function(){switch(this.err=e.Z_OK,this.mode){case e.DEFLATE:case e.DEFLATERAW:case e.GZIP:this.err=a.deflateReset(this.strm);break;case e.INFLATE:case e.INFLATERAW:case e.GUNZIP:this.err=u.inflateReset(this.strm)}this.err!==e.Z_OK&&this._error("Failed to reset stream")},e.Zlib=i}).call(e,n("v0OU").Buffer,n("1WNV"))},QHK3:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(i.merge.apply(void 0,[e].concat(t)))}}var i=n("LEug"),o=n("LEug");e.mergeStatic=o.merge,e.merge=r},QRYi:function(t,e,n){t.exports=n("6QZ3")},QU9E:function(t,e,n){"use strict";var r=n("mihg");e.fromPromise=r.PromiseObservable.create},QgC4:function(t,e,n){"use strict";var r=n("yIff");e.webSocket=r.WebSocketSubject.create},QsbA:function(t,e,n){"use strict";function r(t){return i.windowWhen(t)(this)}var i=n("kqkQ");e.windowWhen=r},Qv0T:function(t,e,n){"use strict";function r(t){var e=t.obj,n=t.keys,r=t.length,i=t.index,o=t.subscriber;
1if(i===r)return void o.complete();var s=n[i];o.next([s,e[s]]),t.index=i+1,this.schedule(t)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("bKpL"),s=function(t){function e(e,n){t.call(this),this.obj=e,this.scheduler=n,this.keys=Object.keys(e)}return i(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=e.keys,i=e.scheduler,o=n.length;if(i)return i.schedule(r,0,{obj:this.obj,keys:n,length:o,index:0,subscriber:t});for(var s=0;s<o;s++){var a=n[s];t.next([a,this.obj[a]])}t.complete()},e}(o.Observable);e.PairsObservable=s},R0J0:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Kt+M");r.Observable.prototype.concat=i.concat},"R3/v":function(t,e,n){"use strict";function r(t){var e=i.async,n=null,r=Number.POSITIVE_INFINITY;return s.isScheduler(arguments[3])&&(e=arguments[3]),s.isScheduler(arguments[2])?e=arguments[2]:o.isNumeric(arguments[2])&&(r=arguments[2]),s.isScheduler(arguments[1])?e=arguments[1]:o.isNumeric(arguments[1])&&(n=arguments[1]),a.windowTime(t,n,r,e)(this)}var i=n("IhB/"),o=n("EsGe"),s=n("MicL"),a=n("dffx");e.windowTime=r},R61s:function(t,e,n){"use strict";var r=n("zijX"),i=n("wQte");e.Map=r.root.Map||function(){return i.MapPolyfill}()},RC4L:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},RNRn:function(t,e,n){"use strict";var r=n("bKpL"),i=n("R3/v");r.Observable.prototype.windowTime=i.windowTime},RdI5:function(t,e,n){"use strict";function r(){try{return o.apply(this,arguments)}catch(t){return s.errorObject.e=t,s.errorObject}}function i(t){return o=t,r}var o,s=n("XRvs");e.tryCatch=i},Rol4:function(t,e,n){"use strict";function r(t,e,n){return void 0===e&&(e=a.async),void 0===n&&(n=u.defaultThrottleConfig),function(r){return r.lift(new c(t,e,n.leading,n.trailing))}}function i(t){t.subscriber.clearThrottle()}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("T14+"),a=n("IhB/"),u=n("DrEP");e.throttleTime=r;var c=function(){function t(t,e,n,r){this.duration=t,this.scheduler=e,this.leading=n,this.trailing=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.duration,this.scheduler,this.leading,this.trailing))},t}(),l=function(t){function e(e,n,r,i,o){t.call(this,e),this.duration=n,this.scheduler=r,this.leading=i,this.trailing=o,this._hasTrailingValue=!1,this._trailingValue=null}return o(e,t),e.prototype._next=function(t){this.throttled?this.trailing&&(this._trailingValue=t,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(i,this.duration,{subscriber:this})),this.leading&&this.destination.next(t))},e.prototype.clearThrottle=function(){var t=this.throttled;t&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),t.unsubscribe(),this.remove(t),this.throttled=null)},e}(s.Subscriber)},RpuY:function(t,e,n){"use strict";var r=n("bKpL"),i=n("cPhF");r.Observable.prototype.mergeMap=i.mergeMap,r.Observable.prototype.flatMap=i.mergeMap},RvTY:function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),i.mergeMapTo(t,e,n)(this)}var i=n("j8LY");e.mergeMapTo=r},S08L:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e,n,r){t.call(this),this.condition=e,this.thenSource=n,this.elseSource=r}return r(e,t),e.create=function(t,n,r){return new e(t,n,r)},e.prototype._subscribe=function(t){var e=this,n=e.condition,r=e.thenSource,i=e.elseSource;return new u(t,n,r,i)},e}(i.Observable);e.IfObservable=a;var u=function(t){function e(e,n,r,i){t.call(this,e),this.condition=n,this.thenSource=r,this.elseSource=i,this.tryIf()}return r(e,t),e.prototype.tryIf=function(){var t,e=this,n=e.condition,r=e.thenSource,i=e.elseSource;try{t=n();var s=t?r:i;s?this.add(o.subscribeToResult(this,s)):this._complete()}catch(t){this._error(t)}},e}(s.OuterSubscriber)},S7im:function(t,e,n){"use strict";var r=n("bKpL"),i=n("HTfL");r.Observable.throw=i._throw},SBDi:function(t,e,n){"use strict";function r(){this.input=null,this.next_in=0,this.avail_in=0,this.total_in=0,this.output=null,this.next_out=0,this.avail_out=0,this.total_out=0,this.msg="",this.state=null,this.data_type=2,this.adler=0}t.exports=r},SBOU:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(i.apply(void 0,[e].concat(t)))}}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t[t.length-1];return"function"==typeof n&&t.pop(),new s.ArrayObservable(t).lift(new p(n))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("wZOE"),a=n("NSJx"),u=n("T14+"),c=n("yW9Z"),l=n("ktfo"),h=n("2B7B");e.zip=r,e.zipStatic=i;var p=function(){function t(t){this.project=t}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.project))},t}();e.ZipOperator=p;var f=function(t){function e(e,n,r){void 0===r&&(r=Object.create(null)),t.call(this,e),this.iterators=[],this.active=0,this.project="function"==typeof n?n:null,this.values=r}return o(e,t),e.prototype._next=function(t){var e=this.iterators;a.isArray(t)?e.push(new m(t)):"function"==typeof t[h.iterator]?e.push(new d(t[h.iterator]())):e.push(new v(this.destination,this,t))},e.prototype._complete=function(){var t=this.iterators,e=t.length;if(0===e)return void this.destination.complete();this.active=e;for(var n=0;n<e;n++){var r=t[n];r.stillUnsubscribed?this.add(r.subscribe(r,n)):this.active--}},e.prototype.notifyInactive=function(){0===--this.active&&this.destination.complete()},e.prototype.checkIterators=function(){for(var t=this.iterators,e=t.length,n=this.destination,r=0;r<e;r++){var i=t[r];
1if("function"==typeof i.hasValue&&!i.hasValue())return}for(var o=!1,s=[],r=0;r<e;r++){var i=t[r],a=i.next();if(i.hasCompleted()&&(o=!0),a.done)return void n.complete();s.push(a.value)}this.project?this._tryProject(s):n.next(s),o&&n.complete()},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(u.Subscriber);e.ZipSubscriber=f;var d=function(){function t(t){this.iterator=t,this.nextResult=t.next()}return t.prototype.hasValue=function(){return!0},t.prototype.next=function(){var t=this.nextResult;return this.nextResult=this.iterator.next(),t},t.prototype.hasCompleted=function(){var t=this.nextResult;return t&&t.done},t}(),m=function(){function t(t){this.array=t,this.index=0,this.length=0,this.length=t.length}return t.prototype[h.iterator]=function(){return this},t.prototype.next=function(t){var e=this.index++,n=this.array;return e<this.length?{value:n[e],done:!1}:{value:null,done:!0}},t.prototype.hasValue=function(){return this.array.length>this.index},t.prototype.hasCompleted=function(){return this.array.length===this.index},t}(),v=function(t){function e(e,n,r){t.call(this,e),this.parent=n,this.observable=r,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return o(e,t),e.prototype[h.iterator]=function(){return this},e.prototype.next=function(){var t=this.buffer;return 0===t.length&&this.isComplete?{value:null,done:!0}:{value:t.shift(),done:!1}},e.prototype.hasValue=function(){return this.buffer.length>0},e.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},e.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.buffer.push(e),this.parent.checkIterators()},e.prototype.subscribe=function(t,e){return l.subscribeToResult(this,this.observable,this,e)},e}(c.OuterSubscriber)},SJ56:function(t,e,n){"use strict";function r(){return i.dematerialize()(this)}var i=n("pguX");e.dematerialize=r},SKRq:function(t,e,n){"use strict";var r=n("bKpL"),i=n("fdVa");r.Observable.prototype.mergeScan=i.mergeScan},ScG9:function(t,e,n){"use strict";var r=n("bKpL"),i=n("a9bY");r.Observable.prototype.max=i.max},"StS+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("lc3y");r.Observable.prototype.isEmpty=i.isEmpty},"T14+":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("fclq"),o=n("xFbG"),s=n("LiYJ"),a=n("dkwD"),u=function(t){function e(n,r,i){switch(t.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=s.empty;break;case 1:if(!n){this.destination=s.empty;break}if("object"==typeof n){n instanceof e?(this.destination=n,this.destination.add(this)):(this.syncErrorThrowable=!0,this.destination=new c(this,n));break}default:this.syncErrorThrowable=!0,this.destination=new c(this,n,r,i)}}return r(e,t),e.prototype[a.rxSubscriber]=function(){return this},e.create=function(t,n,r){var i=new e(t,n,r);return i.syncErrorThrowable=!1,i},e.prototype.next=function(t){this.isStopped||this._next(t)},e.prototype.error=function(t){this.isStopped||(this.isStopped=!0,this._error(t))},e.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},e.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,t.prototype.unsubscribe.call(this))},e.prototype._next=function(t){this.destination.next(t)},e.prototype._error=function(t){this.destination.error(t),this.unsubscribe()},e.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},e.prototype._unsubscribeAndRecycle=function(){var t=this,e=t._parent,n=t._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=n,this},e}(o.Subscription);e.Subscriber=u;var c=function(t){function e(e,n,r,o){t.call(this),this._parentSubscriber=e;var a,u=this;i.isFunction(n)?a=n:n&&(a=n.next,r=n.error,o=n.complete,n!==s.empty&&(u=Object.create(n),i.isFunction(u.unsubscribe)&&this.add(u.unsubscribe.bind(u)),u.unsubscribe=this.unsubscribe.bind(this))),this._context=u,this._next=a,this._error=r,this._complete=o}return r(e,t),e.prototype.next=function(t){if(!this.isStopped&&this._next){var e=this._parentSubscriber;e.syncErrorThrowable?this.__tryOrSetError(e,this._next,t)&&this.unsubscribe():this.__tryOrUnsub(this._next,t)}},e.prototype.error=function(t){if(!this.isStopped){var e=this._parentSubscriber;if(this._error)e.syncErrorThrowable?(this.__tryOrSetError(e,this._error,t),this.unsubscribe()):(this.__tryOrUnsub(this._error,t),this.unsubscribe());else{if(!e.syncErrorThrowable)throw this.unsubscribe(),t;e.syncErrorValue=t,e.syncErrorThrown=!0,this.unsubscribe()}}},e.prototype.complete=function(){var t=this;if(!this.isStopped){var e=this._parentSubscriber;if(this._complete){var n=function(){return t._complete.call(t._context)};e.syncErrorThrowable?(this.__tryOrSetError(e,n),this.unsubscribe()):(this.__tryOrUnsub(n),this.unsubscribe())}else this.unsubscribe()}},e.prototype.__tryOrUnsub=function(t,e){try{t.call(this._context,e)}catch(t){throw this.unsubscribe(),t}}
1,e.prototype.__tryOrSetError=function(t,e,n){try{e.call(this._context,n)}catch(e){return t.syncErrorValue=e,t.syncErrorThrown=!0,!0}return!1},e.prototype._unsubscribe=function(){var t=this._parentSubscriber;this._context=null,this._parentSubscriber=null,t.unsubscribe()},e}(u)},T1tZ:function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function i(t){var e=t.err;t.subject.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("bKpL"),a=n("RdI5"),u=n("XRvs"),c=n("l6Wf"),l=function(t){function e(e,n,r,i,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=r,this.context=i,this.scheduler=o}return o(e,t),e.create=function(t,n,r){return void 0===n&&(n=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new e(t,n,i,this,r)}},e.prototype._subscribe=function(t){var n=this.callbackFunc,r=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(e.dispatch,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new c.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=t.source,i=r.selector,o=r.subject;if(i){var s=a.tryCatch(i).apply(this,e);s===u.errorObject?o.error(u.errorObject.e):(o.next(s),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;a.tryCatch(n).apply(this.context,r.concat(s))===u.errorObject&&o.error(u.errorObject.e)}return o.subscribe(t)},e.dispatch=function(t){var e=this,n=t.source,o=t.subscriber,s=t.context,l=n.callbackFunc,h=n.args,p=n.scheduler,f=n.subject;if(!f){f=n.subject=new c.AsyncSubject;var d=function t(){for(var n=[],o=0;o<arguments.length;o++)n[o-0]=arguments[o];var s=t.source,c=s.selector,l=s.subject;if(c){var h=a.tryCatch(c).apply(this,n);h===u.errorObject?e.add(p.schedule(i,0,{err:u.errorObject.e,subject:l})):e.add(p.schedule(r,0,{value:h,subject:l}))}else{var f=n.length<=1?n[0]:n;e.add(p.schedule(r,0,{value:f,subject:l}))}};d.source=n;a.tryCatch(l).apply(s,h.concat(d))===u.errorObject&&f.error(u.errorObject.e)}e.add(f.subscribe(o))},e}(s.Observable);e.BoundCallbackObservable=l},T5Q1:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("ktfo"),s=n("yW9Z"),a=function(t){function e(e,n){t.call(this),this.resourceFactory=e,this.observableFactory=n}return r(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e,n=this,r=n.resourceFactory,i=n.observableFactory;try{return e=r(),new u(t,e,i)}catch(e){t.error(e)}},e}(i.Observable);e.UsingObservable=a;var u=function(t){function e(e,n,r){t.call(this,e),this.resource=n,this.observableFactory=r,e.add(n),this.tryUse()}return r(e,t),e.prototype.tryUse=function(){try{var t=this.observableFactory.call(this,this.resource);t&&this.add(o.subscribeToResult(this,t))}catch(t){this._error(t)}},e}(s.OuterSubscriber)},TA58:function(t,e,n){"use strict";function r(t){var e=t[l.iterator];if(!e&&"string"==typeof t)return new p(t);if(!e&&void 0!==t.length)return new f(t);if(!e)throw new TypeError("object is not iterable");return t[l.iterator]()}function i(t){var e=+t.length;return isNaN(e)?0:0!==e&&o(e)?(e=s(e)*Math.floor(Math.abs(e)),e<=0?0:e>d?d:e):e}function o(t){return"number"==typeof t&&u.root.isFinite(t)}function s(t){var e=+t;return 0===e?e:isNaN(e)?e:e<0?-1:1}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n("zijX"),c=n("bKpL"),l=n("2B7B"),h=function(t){function e(e,n){if(t.call(this),this.scheduler=n,null==e)throw new Error("iterator cannot be null.");this.iterator=r(e)}return a(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.hasError,r=t.iterator,i=t.subscriber;if(n)return void i.error(t.error);var o=r.next();return o.done?void i.complete():(i.next(o.value),t.index=e+1,i.closed?void("function"==typeof r.return&&r.return()):void this.schedule(t))},e.prototype._subscribe=function(t){var n=this,r=n.iterator,i=n.scheduler;
1if(i)return i.schedule(e.dispatch,0,{index:0,iterator:r,subscriber:t});for(;;){var o=r.next();if(o.done){t.complete();break}if(t.next(o.value),t.closed){"function"==typeof r.return&&r.return();break}}},e}(c.Observable);e.IteratorObservable=h;var p=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=t.length),this.str=t,this.idx=e,this.len=n}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},t}(),f=function(){function t(t,e,n){void 0===e&&(e=0),void 0===n&&(n=i(t)),this.arr=t,this.idx=e,this.len=n}return t.prototype[l.iterator]=function(){return this},t.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},t}(),d=Math.pow(2,53)-1},THYR:function(t,e,n){"use strict";function r(t,e){return i.every(t,e)(this)}var i=n("GiTH");e.every=r},TIdC:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=Number.POSITIVE_INFINITY),i.mergeAll(t)(this)}var i=n("8rcZ");e.mergeAll=r},TQK7:function(t,e,n){"use strict";function r(t){return function(e){return 0===t?new a.EmptyObservable:e.lift(new u(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d"),a=n("fcnB");e.take=r;var u=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return i(e,t),e.prototype._next=function(t){var e=this.total,n=++this.count;n<=e&&(this.destination.next(t),n===e&&(this.destination.complete(),this.unsubscribe()))},e}(o.Subscriber)},TQn8:function(t,e,n){"use strict";function r(t,e){return i.concatMap(t,e)(this)}var i=n("+FJ1");e.concatMap=r},TnjP:function(t,e,n){"use strict";var r=n("bKpL"),i=n("XOyC");r.Observable.prototype.delayWhen=i.delayWhen},TpsG:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"no elements in sequence");this.name=e.name="EmptyError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.EmptyError=i},Tq0x:function(t,e,n){"use strict";function r(t,e){return arguments.length>=2?i.reduce(t,e)(this):i.reduce(t)(this)}var i=n("JwCl");e.reduce=r},TupL:function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new a(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.switchMap=r;var a=function(){function t(t,e){this.project=t,this.resultSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.project=n,this.resultSelector=r,this.index=0}return i(e,t),e.prototype._next=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){var r=this.innerSubscription;r&&r.unsubscribe(),this.add(this.innerSubscription=s.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){var e=this.innerSubscription;e&&!e.closed||t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.innerSubscription=null},e.prototype.notifyComplete=function(e){this.remove(e),this.innerSubscription=null,this.isStopped&&t.prototype._complete.call(this)},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._tryNotifyNext(t,e,n,r):this.destination.next(e)},e.prototype._tryNotifyNext=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e}(o.OuterSubscriber)},Txt5:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=i.async),o.auditTime(t,e)(this)}var i=n("IhB/"),o=n("GTdq");e.auditTime=r},"UD+B":function(t,e,n){"use strict";var r=n("bKpL"),i=n("wDL6");r.Observable.prototype.repeat=i.repeat},UHtL:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new a(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.skipUntil=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,n){t.call(this,e),this.hasValue=!1,this.isInnerStopped=!1,this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype._next=function(e){this.hasValue&&t.prototype._next.call(this,e)},e.prototype._complete=function(){this.isInnerStopped?t.prototype._complete.call(this):this.unsubscribe()},e.prototype.notifyNext=function(t,e,n,r,i){this.hasValue=!0},e.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&t.prototype._complete.call(this)},e}(o.OuterSubscriber)},UVHa:function(t,e,n){"use strict";var r=n("bKpL"),i=n("f7nC");r.Observable.prototype.bufferWhen=i.bufferWhen},UbPm:function(t,e,n){"use strict";var r=n("bKpL"),i=n("H9QY");r.Observable.prototype.timeInterval=i.timeInterval},Uvlg:function(t,e,n){"use strict";var r=n("bKpL"),i=n("LBqD");r.Observable.prototype.pairwise=i.pairwise},VIKU:function(t,e,n){(function(t){function n(t){return Array.isArray?Array.isArray(t):"[object Array]"===v(t)}function r(t){return"boolean"==typeof t}function i(t){return null===t}function o(t){return null==t}function s(t){return"number"==typeof t}function a(t){return"string"==typeof t}function u(t){return"symbol"==typeof t}function c(t){return void 0===t}function l(t){return"[object RegExp]"===v(t)}function h(t){return"object"==typeof t&&null!==t}function p(t){return"[object Date]"===v(t)}function f(t){return"[object Error]"===v(t)||t instanceof Error}function d(t){return"function"==typeof t}function m(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t}function v(t){return Object.prototype.toString.call(t)}e.isArray=n,e.isBoolean=r,e.isNull=i,e.isNullOrUndefined=o,e.isNumber=s,e.isString=a,e.isSymbol
1=u,e.isUndefined=c,e.isRegExp=l,e.isObject=h,e.isDate=p,e.isError=f,e.isFunction=d,e.isPrimitive=m,e.isBuffer=t.isBuffer}).call(e,n("v0OU").Buffer)},VML3:function(t,e,n){"use strict";var r=n("bKpL"),i=n("K5Xx");r.Observable.prototype.publish=i.publish},VXtB:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ytB7");r.Observable.prototype.sampleTime=i.sampleTime},ViUi:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i.merge.apply(void 0,t)(this)}var i=n("QHK3"),o=n("LEug");e.mergeStatic=o.merge,e.merge=r},VsKd:function(t,e,n){"use strict";var r=n("bKpL"),i=n("23I1");r.Observable.defer=i.defer},W5L8:function(t,e,n){"use strict";var r=n("bKpL"),i=n("7PW3");r.Observable.using=i.using},WAO4:function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=i.async),o.timeoutWith(t,e,n)(this)}var i=n("IhB/"),o=n("/h+r");e.timeoutWith=r},WSkQ:function(t,e,n){"use strict";function r(t,e,n){return i.last(t,e,n)(this)}var i=n("zrH4");e.last=r},WmO6:function(t,e,n){"use strict";function r(t,e){return i.partition(t,e)(this)}var i=n("hfga");e.partition=r},Wxra:function(t,e,n){"use strict";function r(t,e,n){return function(r){return r.lift(i(t,e,n))}}function i(t,e,n){var r,i,s=0,a=!1,u=!1;return function(c){s++,r&&!a||(a=!1,r=new o.ReplaySubject(t,e,n),i=c.subscribe({next:function(t){r.next(t)},error:function(t){a=!0,r.error(t)},complete:function(){u=!0,r.complete()}}));var l=r.subscribe(this);return function(){s--,l.unsubscribe(),i&&0===s&&u&&i.unsubscribe()}}}var o=n("0imh");e.shareReplay=r},XG4q:function(t,e,n){"use strict";function r(){return function(t){return t.lift(new a)}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("Z5ED");e.ignoreElements=r;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(){t.apply(this,arguments)}return i(e,t),e.prototype._next=function(t){s.noop()},e}(o.Subscriber)},XKz0:function(t,e,n){"use strict";function r(t,e){var n=new Map;if(t.length>0){t.split("&").forEach(function(t){var r=t.indexOf("="),i=-1==r?[e.decodeKey(t),""]:[e.decodeKey(t.slice(0,r)),e.decodeValue(t.slice(r+1))],o=i[0],s=i[1],a=n.get(o)||[];a.push(s),n.set(o,a)})}return n}function i(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/gi,"$").replace(/%2C/gi,",").replace(/%3B/gi,";").replace(/%2B/gi,"+").replace(/%3D/gi,"=").replace(/%3F/gi,"?").replace(/%2F/gi,"/")}function o(t){switch(t){case"DELETE":case"GET":case"HEAD":case"OPTIONS":case"JSONP":return!1;default:return!0}}function s(t){return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer}function a(t){return"undefined"!=typeof Blob&&t instanceof Blob}function u(t){return"undefined"!=typeof FormData&&t instanceof FormData}function c(t,e){return{body:e,headers:t.headers,observe:t.observe,params:t.params,reportProgress:t.reportProgress,responseType:t.responseType,withCredentials:t.withCredentials}}function l(t){return"responseURL"in t&&t.responseURL?t.responseURL:/^X-Request-URL:/m.test(t.getAllResponseHeaders())?t.getResponseHeader("X-Request-URL"):null}function h(t,e){return void 0===e&&(e=[]),e?e.reduceRight(function(t,e){return new N(t,e)},t):t}function p(){return"object"==typeof window?window:{}}n.d(e,"b",function(){return x}),n.d(e,"f",function(){return w}),n.d(e,"c",function(){return L}),n.d(e,"g",function(){return T}),n.d(e,"a",function(){return I}),n.d(e,"d",function(){return Y}),n.d(e,"e",function(){return K}),n.d(e,"q",function(){return h}),n.d(e,"h",function(){return S}),n.d(e,"i",function(){return H}),n.d(e,"k",function(){return z}),n.d(e,"j",function(){return q}),n.d(e,"l",function(){return V}),n.d(e,"o",function(){return Z}),n.d(e,"p",function(){return X}),n.d(e,"m",function(){return G}),n.d(e,"n",function(){return W});var f=n("6Xbx"),d=n("/oeL"),m=n("+zVg"),v=(n.n(m),n("TQn8")),y=(n.n(v),n("422b")),g=(n.n(y),n("lx+J")),b=(n.n(g),n("qbdv")),_=n("bKpL"),w=(n.n(_),function(){function t(){}return t.prototype.handle=function(t){},t}()),x=function(){function t(){}return t.prototype.handle=function(t){},t}(),E=function(){function t(){}return t.prototype.encodeKey=function(t){return i(t)},t.prototype.encodeValue=function(t){return i(t)},t.prototype.decodeKey=function(t){return decodeURIComponent(t)},t.prototype.decodeValue=function(t){return decodeURIComponent(t)},t}(),S=function(){function t(t){void 0===t&&(t={}),this.updates=null,this.cloneFrom=null,this.encoder=t.encoder||new E,this.map=t.fromString?r(t.fromString,this.encoder):null}return t.prototype.has=function(t){return this.init(),this.map.has(t)},t.prototype.get=function(t){this.init();var e=this.map.get(t);return e?e[0]:null},t.prototype.getAll=function(t){return this.init(),this.map.get(t)||null},t.prototype.keys=function(){return this.init(),Array.from(this.map.
vendor: 6,771 bytes, line 1
1keys())},t.prototype.append=function(t,e){return this.clone({param:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({param:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({param:t,value:e,op:"d"})},t.prototype.toString=function(){var t=this;return this.init(),this.keys().map(function(e){var n=t.encoder.encodeKey(e);return t.map.get(e).map(function(e){return n+"="+t.encoder.encodeValue(e)}).join("&")}).join("&")},t.prototype.clone=function(e){var n=new t({encoder:this.encoder});return n.cloneFrom=this.cloneFrom||this,n.updates=(this.updates||[]).concat([e]),n},t.prototype.init=function(){var t=this;null===this.map&&(this.map=new Map),null!==this.cloneFrom&&(this.cloneFrom.init(),this.cloneFrom.keys().forEach(function(e){return t.map.set(e,t.cloneFrom.map.get(e))}),this.updates.forEach(function(e){switch(e.op){case"a":case"s":var n=("a"===e.op?t.map.get(e.param):void 0)||[];n.push(e.value),t.map.set(e.param,n);break;case"d":if(void 0===e.value){t.map.delete(e.param);break}var r=t.map.get(e.param)||[],i=r.indexOf(e.value);-1!==i&&r.splice(i,1),r.length>0?t.map.set(e.param,r):t.map.delete(e.param)}}),this.cloneFrom=null)},t}(),T=function(){function t(t){var e=this;this.normalizedNames=new Map,this.lazyUpdate=null,t?this.lazyInit="string"==typeof t?function(){e.headers=new Map,t.split("\n").forEach(function(t){var n=t.indexOf(":");if(n>0){var r=t.slice(0,n),i=r.toLowerCase(),o=t.slice(n+1).trim();e.maybeSetNormalizedName(r,i),e.headers.has(i)?e.headers.get(i).push(o):e.headers.set(i,[o])}})}:function(){e.headers=new Map,Object.keys(t).forEach(function(n){var r=t[n],i=n.toLowerCase();"string"==typeof r&&(r=[r]),r.length>0&&(e.headers.set(i,r),e.maybeSetNormalizedName(n,i))})}:this.headers=new Map}return t.prototype.has=function(t){return this.init(),this.headers.has(t.toLowerCase())},t.prototype.get=function(t){this.init();var e=this.headers.get(t.toLowerCase());return e&&e.length>0?e[0]:null},t.prototype.keys=function(){return this.init(),Array.from(this.normalizedNames.values())},t.prototype.getAll=function(t){return this.init(),this.headers.get(t.toLowerCase())||null},t.prototype.append=function(t,e){return this.clone({name:t,value:e,op:"a"})},t.prototype.set=function(t,e){return this.clone({name:t,value:e,op:"s"})},t.prototype.delete=function(t,e){return this.clone({name:t,value:e,op:"d"})},t.prototype.maybeSetNormalizedName=function(t,e){this.normalizedNames.has(e)||this.normalizedNames.set(e,t)},t.prototype.init=function(){var e=this;this.lazyInit&&(this.lazyInit instanceof t?this.copyFrom(this.lazyInit):this.lazyInit(),this.lazyInit=null,this.lazyUpdate&&(this.lazyUpdate.forEach(function(t){return e.applyUpdate(t)}),this.lazyUpdate=null))},t.prototype.copyFrom=function(t){var e=this;t.init(),Array.from(t.headers.keys()).forEach(function(n){e.headers.set(n,t.headers.get(n)),e.normalizedNames.set(n,t.normalizedNames.get(n))})},t.prototype.clone=function(e){var n=new t;return n.lazyInit=this.lazyInit&&this.lazyInit instanceof t?this.lazyInit:this,n.lazyUpdate=(this.lazyUpdate||[]).concat([e]),n},t.prototype.applyUpdate=function(t){var e=t.name.toLowerCase();switch(t.op){case"a":case"s":var n=t.value;if("string"==typeof n&&(n=[n]),0===n.length)return;this.maybeSetNormalizedName(t.name,e);var r=("a"===t.op?this.headers.get(e):void 0)||[];r.push.apply(r,n),this.headers.set(e,r);break;case"d":var i=t.value;if(i){var o=this.headers.get(e);if(!o)return;o=o.filter(function(t){return-1===i.indexOf(t)}),0===o.length?(this.headers.delete(e),this.normalizedNames.delete(e)):this.headers.set(e,o)}else this.headers.delete(e),this.normalizedNames.delete(e)}},t.prototype.forEach=function(t){var e=this;this.init(),Array.from(this.normalizedNames.keys()).forEach(function(n){return t(e.normalizedNames.get(n),e.headers.get(n))})},t}(),M=function(){function t(t,e,n,r){this.url=e,this.body=null,this.reportProgress=!1,this.withCredentials=!1,this.responseType="json",this.method=t.toUpperCase();var i;if(o(this.method)||r?(this.body=n||null,i=r):i=n,i&&(this.reportProgress=!!i.reportProgress,this.withCredentials=!!i.withCredentials,i.responseType&&(this.responseType=i.responseType),i.headers&&(this.headers=i.headers),i.params&&(this.params=i.params)),this.headers||(this.headers=new T),this.params){var s=this.params.toString();if(0===s.length)this.urlWithParams=e;else{var a=e.indexOf("?"),u=-1===a?"?":a<e.length-1?"&":"";this.urlWithParams=e+u+s}}else this.params=new S,this.urlWithParams=e}return t.prototype.serializeBody=function(){return null===this.body?null:s(this.body)||a(this.body)||u(this.body)||"string"==typeof this.body?this.body:this.body instanceof S?this.body.toString():"object"==typeof this.body||"boolean"==typeof this.body||Array.isArray(this.body)?JSON.stringify(this.body):this.body.toString()},t.prototype.detectContentTypeHeader=function(){return null===this.body?null:u(this.body)?null:a(this.body)?this.body.type||null:s(this.body)?null:"string"==typeof this.body?"text/plain":this.body instanceof S?"application/x-www-form-urlencoded;charset=UTF-8":"object"==typeof this.body||"number"==typeof this.body||Array.isArray(this.body)?"application/json":null},t.prototype.clone=function(e){void 0===e&&(e={});var n=e.method||this.method,r=e.url||this.url,i=e.responseType||this.responseType,o=void 0!==e.body?e.body:this.body,s=void 0!==e.withCredentials?e.withCredentials:this.withCredentials,a=void 0!==e.reportProgress?e.reportProgress:this.reportProgress,u=e.headers||this.headers,c=e.params||this.params;return void 0!==e.setHeaders&&(u=Object.keys(e.setHeaders).reduce(function(t,n){return t.set(n,e.setHeaders[n])},u)),e.setParams&&(c=Object.keys(e.setParams).reduce(function(t,n){return t.set(n,e.setParams[n])},c)),new t(n,r,o,{params:c,headers:u,reportProgress:a,responseType:i,withCredentials:s})},t}(),C={};C.Sent=0,C.UploadProgress=1,C.ResponseHeader=2,C.DownloadProgress=3,C.Response=4,C.User=5,C[C.Sent]="Sent",C[C.UploadProgress]="UploadProgress",C[C.ResponseHeader]="ResponseHeader",C[C.DownloadProgress]="DownloadProgress",C[C.Response]="Response",C[C.User]="User";var O=function(){function t(t,e,n){void 0===e&&(e=200),void 0===n&&(n="OK"),this.headers=t.headers||new T,this.status=void 0!==t.status?t.status:e,this.statusText=t.statusText||n,this.url=t.url||null,this.ok=this.status>=200&&this.status<300}return t}(),A=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;return n.type=C.ResponseHeader,n}return f.a(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(O),P=function(t){function e(e){void 0===e&&(e={});var n=t.call(this,e)||this;
1return n.type=C.Response,n.body=e.body||null,n}return f.a(e,t),e.prototype.clone=function(t){return void 0===t&&(t={}),new e({body:void 0!==t.body?t.body:this.body,headers:t.headers||this.headers,status:void 0!==t.status?t.status:this.status,statusText:t.statusText||this.statusText,url:t.url||this.url||void 0})},e}(O),R=function(t){function e(e){var n=t.call(this,e,0,"Unknown Error")||this;return n.name="HttpErrorResponse",n.ok=!1,n.status>=200&&n.status<300?n.message="Http failure during parsing for "+(e.url||"(unknown url)"):n.message="Http failure response for "+(e.url||"(unknown url)")+": "+e.status+" "+e.statusText,n.error=e.error||null,n}return f.a(e,t),e}(O),L=function(){function t(t){this.handler=t}return t.prototype.request=function(t,e,n){var r=this;void 0===n&&(n={});var i;i=t instanceof M?t:new M(t,e,n.body||null,{headers:n.headers,params:n.params,reportProgress:n.reportProgress,responseType:n.responseType||"json",withCredentials:n.withCredentials});var o=v.concatMap.call(Object(m.of)(i),function(t){return r.handler.handle(t)});if(t instanceof M||"events"===n.observe)return o;var s=y.filter.call(o,function(t){return t instanceof P});switch(n.observe||"body"){case"body":switch(i.responseType){case"arraybuffer":return g.map.call(s,function(t){if(null!==t.body&&!(t.body instanceof ArrayBuffer))throw new Error("Response is not an ArrayBuffer.");return t.body});case"blob":return g.map.call(s,function(t){if(null!==t.body&&!(t.body instanceof Blob))throw new Error("Response is not a Blob.");return t.body});case"text":return g.map.call(s,function(t){if(null!==t.body&&"string"!=typeof t.body)throw new Error("Response is not a string.");return t.body});case"json":default:return g.map.call(s,function(t){return t.body})}case"response":return s;default:throw new Error("Unreachable: unhandled observe type "+n.observe+"}")}},t.prototype.delete=function(t,e){return void 0===e&&(e={}),this.request("DELETE",t,e)},t.prototype.get=function(t,e){return void 0===e&&(e={}),this.request("GET",t,e)},t.prototype.head=function(t,e){return void 0===e&&(e={}),this.request("HEAD",t,e)},t.prototype.jsonp=function(t,e){return this.request("JSONP",t,{params:(new S).append(e,"JSONP_CALLBACK"),observe:"body",responseType:"json"})},t.prototype.options=function(t,e){return void 0===e&&(e={}),this.request("OPTIONS",t,e)},t.prototype.patch=function(t,e,n){return void 0===n&&(n={}),this.request("PATCH",t,c(n,e))},t.prototype.post=function(t,e,n){return void 0===n&&(n={}),this.request("POST",t,c(n,e))},t.prototype.put=function(t,e,n){return void 0===n&&(n={}),this.request("PUT",t,c(n,e))},t}();L.decorators=[{type:d.u}],L.ctorParameters=function(){return[{type:w}]};var N=function(){function t(t,e){this.next=t,this.interceptor=e}return t.prototype.handle=function(t){return this.interceptor.intercept(t,this.next)},t}(),I=new d.v("HTTP_INTERCEPTORS"),k=function(){function t(){}return t.prototype.intercept=function(t,e){return e.handle(t)},t}();k.decorators=[{type:d.u}],k.ctorParameters=function(){return[]};var j=0,D=function(){function t(){}return t}(),F=function(){function t(t,e){this.callbackMap=t,this.document=e}return t.prototype.nextCallback=function(){return"ng_jsonp_callback_"+j++},t.prototype.handle=function(t){var e=this;if("JSONP"!==t.method)throw new Error("JSONP requests must use JSONP request method.");if("json"!==t.responseType)throw new Error("JSONP requests must use Json response type.");return new _.Observable(function(n){var r=e.nextCallback(),i=t.urlWithParams.replace(/=JSONP_CALLBACK(&|$)/,"="+r+"$1"),o=e.document.createElement("script");o.src=i;var s=null,a=!1,u=!1;e.callbackMap[r]=function(t){delete e.callbackMap[r],u||(s=t,a=!0)};var c=function(){o.parentNode&&o.parentNode.removeChild(o),delete e.callbackMap[r]},l=function(t){if(!u){if(c(),!a)return void n.error(new R({url:i,status:0,statusText:"JSONP Error",error:new Error("JSONP injected script did not invoke callback.")}));n.next(new P({body:s,status:200,statusText:"OK",url:i})),n.complete()}},h=function(t){u||(c(),n.error(new R({error:t,status:0,statusText:"JSONP Error",url:i})))};return o.addEventListener("load",l),o.addEventListener("error",h),e.document.body.appendChild(o),n.next({type:C.Sent}),function(){u=!0,o.removeEventListener("load",l),o.removeEventListener("error",h),c()}})},t}();F.decorators=[{type:d.u}],F.ctorParameters=function(){return[{type:D},{type:void 0,decorators:[{type:d.t,args:[b.c]}]}]};var U=function(){function t(t){this.jsonp=t}return t.prototype.intercept=function(t,e){return"JSONP"===t.method?this.jsonp.handle(t):e.handle(t)},t}();U.decorators=[{type:d.u}],U.ctorParameters=function(){return[{type:F}]};var B=/^\)\]\}',?\n/,z=function(){function t(){}return t.prototype.build=function(){},t}(),V=function(){function t(){}return t.prototype.build=function(){return new XMLHttpRequest},t}();V.decorators=[{type:d.u}],V.ctorParameters=function(){return[]};var H=function(){function t(t){this.xhrFactory=t}return t.prototype.handle=function(t){var e=this;if("JSONP"===t.method)throw new Error("Attempted to construct Jsonp request without JsonpClientModule installed.");return new _.Observable(function(n){var r=e.xhrFactory.build();if(r.open(t.method,t.urlWithParams),t.withCredentials&&(r.withCredentials=!0),t.headers.forEac
1h(function(t,e){return r.setRequestHeader(t,e.join(","))}),t.headers.has("Accept")||r.setRequestHeader("Accept","application/json, text/plain, */*"),!t.headers.has("Content-Type")){var i=t.detectContentTypeHeader();null!==i&&r.setRequestHeader("Content-Type",i)}if(t.responseType){var o=t.responseType.toLowerCase();r.responseType="json"!==o?o:"text"}var s=t.serializeBody(),a=null,u=function(){if(null!==a)return a;var e=1223===r.status?204:r.status,n=r.statusText||"OK",i=new T(r.getAllResponseHeaders()),o=l(r)||t.url;return a=new A({headers:i,status:e,statusText:n,url:o})},c=function(){var e=u(),i=e.headers,o=e.status,s=e.statusText,a=e.url,c=null;204!==o&&(c=void 0===r.response?r.responseText:r.response),0===o&&(o=c?200:0);var l=o>=200&&o<300;if(l&&"json"===t.responseType&&"string"==typeof c){c=c.replace(B,"");try{c=JSON.parse(c)}catch(t){l=!1,c={error:t,text:c}}}else if(!l&&"json"===t.responseType&&"string"==typeof c)try{c=JSON.parse(c)}catch(t){}l?(n.next(new P({body:c,headers:i,status:o,statusText:s,url:a||void 0})),n.complete()):n.error(new R({error:c,headers:i,status:o,statusText:s,url:a||void 0}))},h=function(t){var e=new R({error:t,status:r.status||0,statusText:r.statusText||"Unknown Error"});n.error(e)},p=!1,f=function(e){p||(n.next(u()),p=!0);var i={type:C.DownloadProgress,loaded:e.loaded};e.lengthComputable&&(i.total=e.total),"text"===t.responseType&&r.responseText&&(i.partialText=r.responseText),n.next(i)},d=function(t){var e={type:C.UploadProgress,loaded:t.loaded};t.lengthComputable&&(e.total=t.total),n.next(e)};return r.addEventListener("load",c),r.addEventListener("error",h),t.reportProgress&&(r.addEventListener("progress",f),null!==s&&r.upload&&r.upload.addEventListener("progress",d)),r.send(s),n.next({type:C.Sent}),function(){r.removeEventListener("error",h),r.removeEventListener("load",c),t.reportProgress&&(r.removeEventListener("progress",f),null!==s&&r.upload&&r.upload.removeEventListener("progress",d)),r.abort()}})},t}();H.decorators=[{type:d.u}],H.ctorParameters=function(){return[{type:z}]};var G=new d.v("XSRF_COOKIE_NAME"),W=new d.v("XSRF_HEADER_NAME"),q=function(){function t(){}return t.prototype.getToken=function(){},t}(),Z=function(){function t(t,e,n){this.doc=t,this.platform=e,this.cookieName=n,this.lastCookieString="",this.lastToken=null,this.parseCount=0}return t.prototype.getToken=function(){if("server"===this.platform)return null;var t=this.doc.cookie||"";return t!==this.lastCookieString&&(this.parseCount++,this.lastToken=Object(b.q)(t,this.cookieName),this.lastCookieString=t),this.lastToken},t}();Z.decorators=[{type:d.u}],Z.ctorParameters=function(){return[{type:void 0,decorators:[{type:d.t,args:[b.c]}]},{type:void 0,decorators:[{type:d.t,args:[d.J]}]},{type:void 0,decorators:[{type:d.t,args:[G]}]}]};var X=function(){function t(t,e){this.tokenService=t,this.headerName=e}return t.prototype.intercept=function(t,e){var n=t.url.toLowerCase();if("GET"===t.method||"HEAD"===t.method||n.startsWith("http://")||n.startsWith("https://"))return e.handle(t);var r=this.tokenService.getToken();return null===r||t.headers.has(this.headerName)||(t=t.clone({headers:t.headers.set(this.headerName,r)})),e.handle(t)},t}();X.decorators=[{type:d.u}],X.ctorParameters=function(){return[{type:q},{type:void 0,decorators:[{type:d.t,args:[W]}]}]};var K=function(){function t(){}return t.disable=function(){return{ngModule:t,providers:[{provide:X,useClass:k}]}},t.withOptions=function(e){return void 0===e&&(e={}),{ngModule:t,providers:[e.cookieName?{provide:G,useValue:e.cookieName}:[],e.headerName?{provide:W,useValue:e.headerName}:[]]}},t}();K.decorators=[{type:d.B,args:[{providers:[X,{provide:I,useExisting:X,multi:!0},{provide:q,useClass:Z},{provide:G,useValue:"XSRF-TOKEN"},{provide:W,useValue:"X-XSRF-TOKEN"}]}]}],K.ctorParameters=function(){return[]};var Y=function(){function t(){}return t}();Y.decorators=[{type:d.B,args:[{imports:[K.withOptions({cookieName:"XSRF-TOKEN",headerName:"X-XSRF-TOKEN"})],providers:[L,{provide:w,useFactory:h,deps:[x,[new d.H,new d.t(I)]]},H,{provide:x,useExisting:H},V,{provide:z,useExisting:V}]}]}],Y.ctorParameters=function(){return[]};var J=function(){function t(){}return t}();J.decorators=[{type:d.B,args:[{providers:[F,{provide:D,useFactory:p},{provide:I,useClass:U,multi:!0}]}]}],J.ctorParameters=function(){return[]}},XL2q:function(t,e,n){"use strict";var r=n("bKpL"),i=n("7JOC");r.Observable.from=i.from},XNum:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("xFbG"),o=function(t){function e(e,n){t.call(this)}return r(e,t),e.prototype.schedule=function(t,e){return void 0===e&&(e=0),this},e}(i.Subscription);e.Action=o},XOyC:function(t,e,n){"use strict";function r(t,e){return i.delayWhen(t,e)(this)}var i=n("aeUV");e.delayWhen=r},XR5H:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("xFbG"),s=n("Xga8"),a=n("p2y2"),u=function(t){function e(e,n){t.call(this),this.messages=e,this.subscriptions=[],this.scheduler
1=n}return r(e,t),e.prototype._subscribe=function(e){var n=this,r=n.logSubscribedFrame();return e.add(new o.Subscription(function(){n.logUnsubscribedFrame(r)})),t.prototype._subscribe.call(this,e)},e.prototype.setup=function(){for(var t=this,e=t.messages.length,n=0;n<e;n++)!function(){var e=t.messages[n];t.scheduler.schedule(function(){e.notification.observe(t)},e.frame)}()},e}(i.Subject);e.HotObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},XR71:function(t,e,n){"use strict";var r=n("bKpL"),i=n("AHF9");r.Observable.prototype.observeOn=i.observeOn},XRvs:function(t,e,n){"use strict";e.errorObject={e:{}}},XWpj:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return 1===t.length&&i.isArray(t[0])&&(t=t[0]),e.lift.call(o.race.apply(void 0,[e].concat(t)))}}var i=n("NSJx"),o=n("YofN");e.race=r},Xa8F:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),i.windowCount(t,e)(this)}var i=n("GeBq");e.windowCount=r},Xga8:function(t,e,n){"use strict";var r=n("OXmC"),i=function(){function t(){this.subscriptions=[]}return t.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new r.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},t.prototype.logUnsubscribedFrame=function(t){var e=this.subscriptions,n=e[t];e[t]=new r.SubscriptionLog(n.subscribedFrame,this.scheduler.now())},t}();e.SubscriptionLoggable=i},Xtvq:function(t,e,n){"use strict";var r=n("bKpL"),i=n("zGUx");r.Observable.fromEvent=i.fromEvent},XvLI:function(t,e,n){t.exports=n("dJzE")},XvrG:function(t,e,n){"use strict";function r(t){return function(e){return 0===t?new a.EmptyObservable:e.lift(new u(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d"),a=n("fcnB");e.takeLast=r;var u=function(){function t(t){if(this.total=t,this.total<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.total))},t}(),c=function(t){function e(e,n){t.call(this,e),this.total=n,this.ring=new Array,this.count=0}return i(e,t),e.prototype._next=function(t){var e=this.ring,n=this.total,r=this.count++;if(e.length<n)e.push(t);else{e[r%n]=t}},e.prototype._complete=function(){var t=this.destination,e=this.count;if(e>0)for(var n=this.count>=this.total?this.total:this.count,r=this.ring,i=0;i<n;i++){var o=e++%n;t.next(r[o])}t.complete()},e}(o.Subscriber)},"Y+l6":function(t,e,n){"use strict";function r(){return i.toArray()(this)}var i=n("Y4uv");e.toArray=r},Y4uv:function(t,e,n){"use strict";function r(t,e,n){return t.push(e),t}function i(){return o.reduce(r,[])}var o=n("JwCl");e.toArray=i},YFUQ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("BJqU");r.Observable.prototype.throttleTime=i.throttleTime},"Yj/5":function(t,e,n){"use strict";var r=n("Fq81");e.fromEventPattern=r.FromEventPatternObservable.create},YofN:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];if(1===t.length){if(!o.isArray(t[0]))return t[0];t=t[0]}return new s.ArrayObservable(t).lift(new c)}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("NSJx"),s=n("wZOE"),a=n("yW9Z"),u=n("ktfo");e.race=r;var c=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new l(t))},t}();e.RaceOperator=c;var l=function(t){function e(e){t.call(this,e),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return i(e,t),e.prototype._next=function(t){this.observables.push(t)},e.prototype._complete=function(){var t=this.observables,e=t.length;if(0===e)this.destination.complete();else{for(var n=0;n<e&&!this.hasFirst;n++){var r=t[n],i=u.subscribeToResult(this,r,r,n);this.subscriptions&&this.subscriptions.push(i),this.add(i)}this.observables=null}},e.prototype.notifyNext=function(t,e,n,r,i){if(!this.hasFirst){this.hasFirst=!0;for(var o=0;o<this.subscriptions.length;o++)if(o!==n){var s=this.subscriptions[o];s.unsubscribe(),this.remove(s)}this.subscriptions=null}this.destination.next(e)},e}(a.OuterSubscriber);e.RaceSubscriber=l},Yuqz:function(t,e,n){"use strict";function r(t){return t}e.identity=r},Yvsb:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("Z5ED"),s=function(t){function e(){t.call(this)}return r(e,t),e.create=function(){return new e},e.prototype._subscribe=function(t){o.noop()},e}(i.Observable);e.NeverObservable=s},Z2Sm:function(t,e,n){"use strict";var r=n("bKpL"),i=n("3N4h");r.Observable.prototype.window=i.window},Z5ED:function(t,e,n){"use strict";function r(){}e.noop=r},ZGtO:function(t,e,n){"use strict";function r(){}function i(t,e){this.x=t||0,this.y=e||0}function o(){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 s(t,e,n,r){this._x=t||0,this._y=e||0,this._z=n||0,this._w=void 0!==r?r:1}function a(t,e,n){this.x=t||0,this.y=e||0,this.z=n||0}function u(){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.")}function c(t,e,n,r,o,s,a,l,h,p){Object.defineProperty(this,"id",{value:ju++}),this.uuid=ku.generateUUID(),this.name="",this.image=void 0!==t?t:c.DEFAULT_IMAGE,this.mipmaps=[],this.mapping=void 0!==e?e:c.DEFAULT_MAPPING,this.wrapS=void 0!==n?n:da,this.wrapT=void 0!==r?r:da,this.magFilter=void 0!==o?o:ba,this.minFilter=void 0!==s?s:wa,this.anisotropy=void 0!==h?h:1,this.format=void 0!==a?a:ja,this.type=void 0!==l?l:xa,this.offset=new i(0,0),this.repeat=new i(1,1),this.center=new i(0,0),this.rotation=0,this.matrixAutoUpdate=!0,this.matrix=new u,this.generateMipmaps=!0,this.premultiplyAlpha=!1,this.flipY=!0,this.unpackAlignment=4,this.encoding=void 0!==p?p:Eu,this.version=0,this.onUpdate=null}function l(t,e,n,r){this.x=t||0,this.y=e||0,this.z=n||0,this.w=void 0!==r?r:1}function h(t,e,n){this.width=t,this.height=e,this.scissor=new l(0,0,t,e),this.scissorTest=!1,this.viewport=new l(0,0,t,e),n=n||{},void 0===n.minFilter&&(n.minFilter=ba),this.texture=new c(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.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 p(t,e,n){h.call(this,t,e,n),this.activeCubeFace=0,this.activeMipMapLevel=0}function f(t,e,n,r,i,o,s,a,u,l,h,p){c.call(this,null,o,s,a,u,l,r,i,h,p),this.image={data:t,width:e,height:n},this.magFilter=void 0!==u?u:va,this.minFilter=void 0!==l?l:va,this.generateMipmaps=!1,this.flipY=!1,this.unpackAlignment=1}function d(t,e){this.min=void 0!==t?t:new a(1/0,1/0,1/0),this.max=void 0!==e?e:new a(-1/0,-1/0,-1/0)}function m(t,e){this.center=void 0!==t?t:new a,this.radius=void 0!==e?e:0}function v(t,e){this.normal=void 0!==t?t:new a(1,0,0),this.constant=void 0!==e?e:0}function y(t,e,n,r,i,o){this.planes=[void 0!==t?t:new v,void 0!==e?e:new v,void 0!==n?n:new v,void 0!==r?r:new v,void 0!==i?i:new v,void 0!==o?o:new v]}function g(t,e,n){return void 0===e&&void 0===n?this.set(t):this.setRGB(t,e,n)}function b(){function t(i,o){!1!==n&&(r(i,o),e.requestAnimationFrame(t))}var e=null,n=!1,r=null;return{start:function(){!0!==n&&null!==r&&(e.requestAnimationFrame(t),n=!0)},stop:function(){n=!1},setAnimationLoop:function(t){r=t},setContext:function(t){e=t}}}
vendor: 9,615 bytes, line 1
1function _(t){function e(e,n){var r=e.array,i=e.dynamic?t.DYNAMIC_DRAW:t.STATIC_DRAW,o=t.createBuffer();t.bindBuffer(n,o),t.bufferData(n,r,i),e.onUploadCallback();var s=t.FLOAT;return r instanceof Float32Array?s=t.FLOAT:r instanceof Float64Array?console.warn("THREE.WebGLAttributes: Unsupported data buffer format: Float64Array."):r instanceof Uint16Array?s=t.UNSIGNED_SHORT:r instanceof Int16Array?s=t.SHORT:r instanceof Uint32Array?s=t.UNSIGNED_INT:r instanceof Int32Array?s=t.INT:r instanceof Int8Array?s=t.BYTE:r instanceof Uint8Array&&(s=t.UNSIGNED_BYTE),{buffer:o,type:s,bytesPerElement:r.BYTES_PER_ELEMENT,version:e.version}}function n(e,n,r){var i=n.array,o=n.updateRange;t.bindBuffer(r,e),!1===n.dynamic?t.bufferData(r,i,t.STATIC_DRAW):-1===o.count?t.bufferSubData(r,0,i):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(r,o.offset*i.BYTES_PER_ELEMENT,i.subarray(o.offset,o.offset+o.count)),o.count=-1)}function r(t){return t.isInterleavedBufferAttribute&&(t=t.data),s.get(t)}function i(e){e.isInterleavedBufferAttribute&&(e=e.data);var n=s.get(e);n&&(t.deleteBuffer(n.buffer),s.delete(e))}function o(t,r){t.isInterleavedBufferAttribute&&(t=t.data);var i=s.get(t);void 0===i?s.set(t,e(t,r)):i.version<t.version&&(n(i.buffer,t,r),i.version=t.version)}var s=new WeakMap;return{get:r,remove:i,update:o}}function w(t,e,n,r){this._x=t||0,this._y=e||0,this._z=n||0,this._order=r||w.DefaultOrder}function x(){this.mask=1}function E(){function t(){i.setFromEuler(r,!1)}function e(){r.setFromQuaternion(i,void 0,!1)}Object.defineProperty(this,"id",{value:Vu++}),this.uuid=ku.generateUUID(),this.name="",this.type="Object3D",this.parent=null,this.children=[],this.up=E.DefaultUp.clone();var n=new a,r=new w,i=new s,c=new a(1,1,1);r.onChange(t),i.onChange(e),Object.defineProperties(this,{position:{enumerable:!0,value:n},rotation:{enumerable:!0,value:r},quaternion:{enumerable:!0,value:i},scale:{enumerable:!0,value:c},modelViewMatrix:{value:new o},normalMatrix:{value:new u}}),this.matrix=new o,this.matrixWorld=new o,this.matrixAutoUpdate=E.DefaultMatrixAutoUpdate,this.matrixWorldNeedsUpdate=!1,this.layers=new x,this.visible=!0,this.castShadow=!1,this.receiveShadow=!1,this.frustumCulled=!0,this.renderOrder=0,this.userData={}}function S(){E.call(this),this.type="Camera",this.matrixWorldInverse=new o,this.projectionMatrix=new o}function T(t,e,n,r,i,o){S.call(this),this.type="OrthographicCamera",this.zoom=1,this.view=null,this.left=t,this.right=e,this.top=n,this.bottom=r,this.near=void 0!==i?i:.1,this.far=void 0!==o?o:2e3,this.updateProjectionMatrix()}function M(t,e,n,r,i,o){this.a=t,this.b=e,this.c=n,this.normal=r&&r.isVector3?r:new a,this.vertexNormals=Array.isArray(r)?r:[],this.color=i&&i.isColor?i:new g,this.vertexColors=Array.isArray(i)?i:[],this.materialIndex=void 0!==o?o:0}function C(){Object.defineProperty(this,"id",{value:Hu+=2}),this.uuid=ku.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 O(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 A(t,e,n){O.call(this,new Int8Array(t),e,n)}function P(t,e,n){O.call(this,new Uint8Array(t),e,n)}function R(t,e,n){O.call(this,new Uint8ClampedArray(t),e,n)}function L(t,e,n){O.call(this,new Int16Array(t),e,n)}function N(t,e,n){O.call(this,new Uint16Array(t),e,n)}function I(t,e,n){O.call(this,new Int32Array(t),e,n)}function k(t,e,n){O.call(this,new Uint32Array(t),e,n)}function j(t,e,n){O.call(this,new Float32Array(t),e,n)}function D(t,e,n){O.call(this,new Float64Array(t),e,n)}function F(){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 U(t){if(0===t.length)return-1/0;for(var e=t[0],n=1,r=t.length;n<r;++n)t[n]>e&&(e=t[n]);return e}function B(){Object.defineProperty(this,"id",{value:Gu+=2}),this.uuid=ku.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 z(t,e,n,r,i,o){C.call(this),this.type="BoxGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:r,heightSegments:i,depthSegments:o},this.fromBufferGeometry(new V(t,e,n,r,i,o)),this.mergeVertices()}function V(t,e,n,r,i,o){function s(t,e,n,r,i,o,s,m,v,y,g){var b,_,w=o/v,x=s/y,E=o/2,S=s/2,T=m/2,M=v+1,C=y+1,O=0,A=0,P=new a;for(_=0;_<C;_++){var R=_*x-S;for(b=0;b<M;b++){var L=b*w-E;P[t]=L*r,P[e]=R*i,P[n]=T,l.push(P.x,P.y,P.z),P[t]=0,P[e]=0,P[n]=m>0?1:-1,h.push(P.x,P.y,P.z),p.push(b/v),p.push(1-_/y),O+=1}}for(_=0;_<y;_++)for(b=0;b<v;b++){var N=f+b+M*_,I=f+b+M*(_+1),k=f+(b+1)+M*(_+1),j=f+(b+1)+M*_;c.push(N,I,j),c.push(I,k,j),A+=6}u.addGroup(d,A,g),d+=A,f+=O}B.call(this),this.type="BoxBufferGeometry",this.parameters={width:t,height:e,depth:n,widthSegments:r,heightSegments:i,depthSegments:o};var u=this;t=t||1,e=e||1,n=n||1,r=Math.floor(r)||1,i=Math.floor(i)||1,o=Math.floor(o)||1;var c=[],l=[],h=[],p=[],f=0,d=0;s("z","y","x",-1,-1,n,e,t,o,i,0),s("z","y","x",1,-1,n,e,-t,o,i,1),s("x","z","y",1,1,t,n,e,r,o,2),s("x","z","y",1,-1,t,n,-e,r,o,3),s("x","y","z",1,-1,t,e,n,r,i,4),s("x","y","z",-1,-1,t,e,-n,r,i,5),this.setIndex(c),this.addAttribute("position",new j(l,3)),this.addAttribute("normal",new j(h,3)),this.addAttribute("uv",new j(p,2))}function H(t,e,n,r){C.call(this),this.type="PlaneGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:r},this.fromBufferGeometry(new G(t,e,n,r)),this.mergeVertices()}function G(t,e,n,r){B.call(this),this.type="PlaneBufferGeometry",this.parameters={width:t,height:e,widthSegments:n,heightSegments:r},t=t||1,e=e||1;var i,o,s=t/2,a=e/2,u=Math.floor(n)||1,c=Math.floor(r)||1,l=u+1,h=c+1,p=t/u,f=e/c,d=[],m=[],v=[],y=[];for(o=0;o<h;o++){var g=o*f-a;for(i=0;i<l;i++){var b=i*p-s;m.push(b,-g,0),v.push(0,0,1),y.push(i/u),y.push(1-o/c)}}for(o=0;o<c;o++)for(i=0;i<u;i++){var _=i+l*o,w=i+l*(o+1),x=i+1+l*(o+1),E=i+1+l*o;d.push(_,w,E),d.push(w,x,E)}this.setIndex(d),this.addAttribute("position",new j(m,3)),this.addAttribute("normal",new j(v,3)),this.addAttribute("uv",new j(y,2))}function W(){Object.defineProperty(this,"id",{value:Wu++}),this.uuid=ku.generateUUID(),this.name="",this.type="Material",this.fog=!0,this.lights=!0,this.blending=xs,this.side=fs,this.flatShading=!1,this.vertexColors=gs,this.opacity=1,this.transparent=!1,this.blendSrc=js,this.blendDst=Ds,this.blendEquation=Cs,this.blendSrcAlpha=null,this.blendDstAlpha=null,this.blendEquationAlpha=null,this.depthFunc=qs,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.overdraw=0,this.visible=!0,this.userData={},this.needsUpdate=!0}function q(t){W.call(this),this.type="MeshBasicMaterial",this.color=new g(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=Js,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 Z(t){W.call(this),this.type="ShaderMaterial",this.defines={},this.uniforms={},this.vertexShader="void main() {\n\tgl_Position = projectionMatrix * modelViewMatrix * vec4( position, 1.0 );\n}",this.fragmentShader="void main() {\n\tgl_FragColor = vec4( 1.0, 0.0, 0.0, 1.0 );\n}",this.linewidth=1,this.wireframe=!1,this.wireframeLinewidth=1,this.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 X(t,e){this.origin=void 0!==t?t:new a,this.direction=void 0!==e?e:new a}function K(t,e){this.start=void 0!==t?t:new a,this.end=void 0!==e?e:new a}function Y(t,e,n){this.a=void 0!==t?t:new a,this.b=void 0!==e?e:new a,this.c=void 0!==n?n:new a}function J(t,e){E.call(this),this.type="Mesh",this.geometry=void 0!==t?t:new B,this.material=void 0!==e?e:new q({color:16777215*Math.random()}),this.drawMode=_u,this.updateMorphTargets()}function Q(t,e,n,r){function i(e,r,i,h){var p=r.background;
1null===p?o(c,l):p&&p.isColor&&(o(p,1),h=!0),(t.autoClear||h)&&t.clear(t.autoClearColor,t.autoClearDepth,t.autoClearStencil),p&&p.isCubeTexture?(void 0===u&&(u=new J(new V(1,1,1),new Z({uniforms:zu.cube.uniforms,vertexShader:zu.cube.vertexShader,fragmentShader:zu.cube.fragmentShader,side:ds,depthTest:!0,depthWrite:!1,fog:!1})),u.geometry.removeAttribute("normal"),u.geometry.removeAttribute("uv"),u.onBeforeRender=function(t,e,n){this.matrixWorld.copyPosition(n.matrixWorld)},n.update(u)),u.material.uniforms.tCube.value=p,e.push(u,u.geometry,u.material,0,null)):p&&p.isTexture&&(void 0===s&&(s=new T(-1,1,1,-1,0,1),a=new J(new G(2,2),new q({depthTest:!1,depthWrite:!1,fog:!1})),n.update(a)),a.material.map=p,t.renderBufferDirect(s,null,a.geometry,a.material,a,null))}function o(t,n){e.buffers.color.setClear(t.r,t.g,t.b,n,r)}var s,a,u,c=new g(0),l=0;return{getClearColor:function(){return c},setClearColor:function(t,e){c.set(t),l=void 0!==e?e:1,o(c,l)},getClearAlpha:function(){return l},setClearAlpha:function(t){l=t,o(c,l)},render:i}}function $(t,e,n){function r(t){s=t}function i(e,r){t.drawArrays(s,e,r),n.update(r,s)}function o(t,r,i){var o=e.get("ANGLE_instanced_arrays");if(null===o)return void console.error("THREE.WebGLBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");o.drawArraysInstancedANGLE(s,r,i,t.maxInstancedCount),n.update(i,s,t.maxInstancedCount)}var s;this.setMode=r,this.render=i,this.renderInstances=o}function tt(t,e,n){function r(){if(void 0!==o)return o;var n=e.get("EXT_texture_filter_anisotropic");return o=null!==n?t.getParameter(n.MAX_TEXTURE_MAX_ANISOTROPY_EXT):0}function i(e){if("highp"===e){if(t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.HIGH_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.HIGH_FLOAT).precision>0)return"highp";e="mediump"}return"mediump"===e&&t.getShaderPrecisionFormat(t.VERTEX_SHADER,t.MEDIUM_FLOAT).precision>0&&t.getShaderPrecisionFormat(t.FRAGMENT_SHADER,t.MEDIUM_FLOAT).precision>0?"mediump":"lowp"}var o,s=void 0!==n.precision?n.precision:"highp",a=i(s);a!==s&&(console.warn("THREE.WebGLRenderer:",s,"not supported, using",a,"instead."),s=a);var u=!0===n.logarithmicDepthBuffer,c=t.getParameter(t.MAX_TEXTURE_IMAGE_UNITS),l=t.getParameter(t.MAX_VERTEX_TEXTURE_IMAGE_UNITS),h=t.getParameter(t.MAX_TEXTURE_SIZE),p=t.getParameter(t.MAX_CUBE_MAP_TEXTURE_SIZE),f=t.getParameter(t.MAX_VERTEX_ATTRIBS),d=t.getParameter(t.MAX_VERTEX_UNIFORM_VECTORS),m=t.getParameter(t.MAX_VARYING_VECTORS),v=t.getParameter(t.MAX_FRAGMENT_UNIFORM_VECTORS),y=l>0,g=!!e.get("OES_texture_float");return{getMaxAnisotropy:r,getMaxPrecision:i,precision:s,logarithmicDepthBuffer:u,maxTextures:c,maxVertexTextures:l,maxTextureSize:h,maxCubemapSize:p,maxAttributes:f,maxVertexUniforms:d,maxVaryings:m,maxFragmentUniforms:v,vertexTextures:y,floatFragmentTextures:g,floatVertexTextures:y&&g}}function et(){function t(){l.value!==r&&(l.value=r,l.needsUpdate=i>0),n.numPlanes=i,n.numIntersection=0}function e(t,e,r,i){var o=null!==t?t.length:0,s=null;if(0!==o){if(s=l.value,!0!==i||null===s){var u=r+4*o,h=e.matrixWorldInverse;c.getNormalMatrix(h),(null===s||s.length<u)&&(s=new Float32Array(u));for(var p=0,f=r;p!==o;++p,f+=4)a.copy(t[p]).applyMatrix4(h,c),a.normal.toArray(s,f),s[f+3]=a.constant}l.value=s,l.needsUpdate=!0}return n.numPlanes=o,s}var n=this,r=null,i=0,o=!1,s=!1,a=new v,c=new u,l={value:null,needsUpdate:!1};this.uniform=l,this.numPlanes=0,this.numIntersection=0,this.init=function(t,n,s){var a=0!==t.length||n||0!==i||o;return o=n,r=e(t,s,0),i=t.length,a},this.beginShadows=function(){s=!0,e(null)},this.endShadows=function(){s=!1,t()},this.setState=function(n,a,u,c,h,p){if(!o||null===n||0===n.length||s&&!u)s?e(null):t();else{var f=s?0:i,d=4*f,m=h.clippingState||null;l.value=m,m=e(n,c,d,p);for(var v=0;v!==d;++v)m[v]=r[v];h.clippingState=m,this.numIntersection=a?this.numPlanes:0,this.numPlanes+=f}}}function nt(t){var e={};return{get:function(n){if(void 0!==e[n])return e[n];var r;switch(n){case"WEBGL_depth_texture":r=t.getExtension("WEBGL_depth_texture")||t.getExtension("MOZ_WEBGL_depth_texture")||t.getExtension("WEBKIT_WEBGL_depth_texture");break;case"EXT_texture_filter_anisotropic":r=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":r=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":r=t.getExtension("WEBGL_compressed_texture_pvrtc")||t.getExtension("WEBKIT_WEBGL_compressed_texture_pvrtc");break;default:r=t.getExtension(n)}return null===r&&console.warn("THREE.WebGLRenderer: "+n+" extension not supported."),e[n]=r,r}}}function rt(t,e,n){function r(t){var i=t.target,o=a[i.id];null!==o.index&&e.remove(o.index);for(var s in o.attributes)e.remove(o.attributes[s]);i.removeEventListener("dispose",r),delete a[i.id];var c=u[i.id];c&&(e.remove(c),delete u[i.id]),c=u[o.id],c&&(e.remove(c),delete u[o.id]),n.memory.geometries--}function i(t,e){var i=a[e.id];
1return i||(e.addEventListener("dispose",r),e.isBufferGeometry?i=e:e.isGeometry&&(void 0===e._bufferGeometry&&(e._bufferGeometry=(new B).setFromObject(t)),i=e._bufferGeometry),a[e.id]=i,n.memory.geometries++,i)}function o(n){var r=n.index,i=n.attributes;null!==r&&e.update(r,t.ELEMENT_ARRAY_BUFFER);for(var o in i)e.update(i[o],t.ARRAY_BUFFER);var s=n.morphAttributes;for(var o in s)for(var a=s[o],u=0,c=a.length;u<c;u++)e.update(a[u],t.ARRAY_BUFFER)}function s(n){var r=u[n.id];if(r)return r;var i=[],o=n.index,s=n.attributes;if(null!==o)for(var a=o.array,c=0,l=a.length;c<l;c+=3){var h=a[c+0],p=a[c+1],f=a[c+2];i.push(h,p,p,f,f,h)}else for(var a=s.position.array,c=0,l=a.length/3-1;c<l;c+=3){var h=c+0,p=c+1,f=c+2;i.push(h,p,p,f,f,h)}return r=new(U(i)>65535?k:N)(i,1),e.update(r,t.ELEMENT_ARRAY_BUFFER),u[n.id]=r,r}var a={},u={};return{get:i,update:o,getWireframeAttribute:s}}function it(t,e,n){function r(t){a=t}function i(t){u=t.type,c=t.bytesPerElement}function o(e,r){t.drawElements(a,r,u,e*c),n.update(r,a)}function s(t,r,i){var o=e.get("ANGLE_instanced_arrays");if(null===o)return void console.error("THREE.WebGLIndexedBufferRenderer: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_instanced_arrays.");o.drawElementsInstancedANGLE(a,i,u,r*c,t.maxInstancedCount),n.update(i,a,t.maxInstancedCount)}var a,u,c;this.setMode=r,this.setIndex=i,this.render=o,this.renderInstances=s}function ot(t){function e(e,n,r){switch(r=r||1,i.calls++,n){case t.TRIANGLES:i.triangles+=r*(e/3);break;case t.TRIANGLE_STRIP:case t.TRIANGLE_FAN:i.triangles+=r*(e-2);break;case t.LINES:i.lines+=r*(e/2);break;case t.LINE_STRIP:i.lines+=r*(e-1);break;case t.LINE_LOOP:i.lines+=r*e;break;case t.POINTS:i.points+=r*e;break;default:console.error("THREE.WebGLInfo: Unknown draw mode:",n)}}function n(){i.frame++,i.calls=0,i.triangles=0,i.points=0,i.lines=0}var r={geometries:0,textures:0},i={frame:0,calls:0,triangles:0,points:0,lines:0};return{memory:r,render:i,programs:null,autoReset:!0,reset:n,update:e}}function st(t,e){return Math.abs(e[1])-Math.abs(t[1])}function at(t){function e(e,i,o,s){var a=e.morphTargetInfluences,u=a.length,c=n[i.id];if(void 0===c){c=[];for(var l=0;l<u;l++)c[l]=[l,0];n[i.id]=c}for(var h=o.morphTargets&&i.morphAttributes.position,p=o.morphNormals&&i.morphAttributes.normal,l=0;l<u;l++){var f=c[l];0!==f[1]&&(h&&i.removeAttribute("morphTarget"+l),p&&i.removeAttribute("morphNormal"+l))}for(var l=0;l<u;l++){var f=c[l];f[0]=l,f[1]=a[l]}c.sort(st);for(var l=0;l<8;l++){var f=c[l];if(f){var d=f[0],m=f[1];if(m){h&&i.addAttribute("morphTarget"+l,h[d]),p&&i.addAttribute("morphNormal"+l,p[d]),r[l]=m;continue}}r[l]=0}s.getUniforms().setValue(t,"morphTargetInfluences",r)}var n={},r=new Float32Array(8);return{update:e}}function ut(t,e){function n(n){var r=e.render.frame,o=n.geometry,s=t.get(n,o);return i[s.id]!==r&&(o.isGeometry&&s.updateFromObject(n),t.update(s),i[s.id]=r),s}function r(){i={}}var i={};return{update:n,dispose:r}}function ct(t,e,n,r,i,o,s,a,u,l){t=void 0!==t?t:[],e=void 0!==e?e:sa,c.call(this,t,e,n,r,i,o,s,a,u,l),this.flipY=!1}function lt(){this.seq=[],this.map={}}function ht(t,e,n){var r=t[0];if(r<=0||r>0)return t;var i=e*n,o=Xu[i];if(void 0===o&&(o=new Float32Array(i),Xu[i]=o),0!==e){r.toArray(o,0);for(var s=1,a=0;s!==e;++s)a+=n,t[s].toArray(o,a)}return o}function pt(t,e){if(t.length!==e.length)return!1;for(var n=0,r=t.length;n<r;n++)if(t[n]!==e[n])return!1;return!0}function ft(t,e){for(var n=0,r=e.length;n<r;n++)t[n]=e[n]}function dt(t,e){var n=Ku[e];void 0===n&&(n=new Int32Array(e),Ku[e]=n);for(var r=0;r!==e;++r)n[r]=t.allocTextureUnit();return n}function mt(t,e){var n=this.cache;n[0]!==e&&(t.uniform1f(this.addr,e),n[0]=e)}function vt(t,e){var n=this.cache;n[0]!==e&&(t.uniform1i(this.addr,e),n[0]=e)}function yt(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(pt(n,e))return;t.uniform2fv(this.addr,e),ft(n,e)}}function gt(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(pt(n,e))return;t.uniform3fv(this.addr,e),ft(n,e)}}function bt(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(pt(n,e))return;t.uniform4fv(this.addr,e),ft(n,e)}}function _t(t,e){var n=this.cache,r=e.elements;if(void 0===r){if(pt(n,e))return;t.uniformMatrix2fv(this.addr,!1,e),ft(n,e)}else{if(pt(n,r))return;Qu.set(r),t.uniformMatrix2fv(this.addr,!1,Qu),ft(n,r)}}function wt(t,e){var n=this.cache,r=e.elements;if(void 0===r){if(pt(n,e))return;t.uniformMatrix3fv(this.addr,!1,e),ft(n,e)}else{if(pt(n,r))return;Ju.set(r),t.uniformMatrix3fv(this.addr,!1,Ju),ft(n,r)}}function xt(t,e){var n=this.cache,r=e.elements;if(void 0===r){if(pt(n,e))return;t.uniformMatrix4fv(this.addr,!1,e),ft(n,e)}else{if(pt(n,r))return;Yu.set(r),t.uniformMatrix4fv(this.addr,!1,Yu),ft(n,r)}}function Et(t,e,n){var r=this.cache,i=n.allocTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTexture2D(e||qu,i)}function St(t,e,n){var r=this.cache,i=n.allocTextureUnit();r[0]!==i&&(t.uniform1i(this.addr,i),r[0]=i),n.setTextureCube(e||Zu,i)}function Tt(t,e){var n=this.cache;pt(n,e)||(t.uniform2iv(this.addr,e),ft(n,e))}function Mt(t,e){var n=this.cache;pt(n,e)||(t.uniform3iv(this.addr,e),ft(n,e))}function Ct(t,e){var n=this.cache;pt(n,e)||(t.uniform4iv(this.addr,e),ft(n,e))}function Ot(t){switch(t){case 5126:return mt;case 35664:return yt;case 35665:return gt;case 35666:return bt;case 35674:return _t;case 35675:return wt;case 35676:return xt;case 35678:case 36198:return Et;case 35680:return St;case 5124:case 35670:return vt;case 35667:case 35671:return Tt;case 35668:case 35672:return Mt;case 35669:case 35673:return Ct}}function At(t,e){var n=this.cache;pt(n,e)||(t.uniform1fv(this.addr,e),ft(n,e))}function Pt(t,e){var n=this.cache;pt(n,e)||(t.uniform1iv(this.addr,e),ft(n,e))}function Rt(t,e){var n=this.cache,r=ht(e,this.size,2);pt(n,r)||(t.uniform2fv(this.addr,r),this.updateCache(r))}function Lt(t,e){var n=this.cache,r=ht(e,this.size,3);pt(n,r)||(t.uniform3fv(this.addr,r),this.updateCache(r))}function Nt(t,e){var n=this.cache,r=ht(e,this.size,4);pt(n,r)||(t.uniform4fv(this.addr,r),this.updateCache(r))}function It(t,e){var n=this.cache,r=ht(e,this.size,4);pt(n,r)||(t.uniformMatrix2fv(this.addr,!1,r),this.updateCache(r))}function kt(t,e){var n=this.cache,r=ht(e,this.size,9);pt(n,r)||(t.uniformMatrix3fv(this.addr,!1,r),this.updateCache(r))}function jt(t,e){var n=this.cache,r=ht(e,this.size,16);pt(n,r)||(t.uniformMatrix4fv(this.addr,!1,r),this.updateCache(r))}function Dt(t,e,n){var r=this.cache,i=e.length,o=dt(n,i);!1===pt(r,o)&&(t.uniform1iv(this.addr,o),ft(r,o));for(var s=0;s!==i;++s)n.setTexture2D(e[s]||qu,o[s])}function Ft(t,e,n){var r=this.cache,i=e.length,o=dt(n,i);!1===pt(r,o)&&(t.uniform1iv(this.addr,o),ft(r,o));for(var s=0;s!==i;++s)n.setTextureCube(e[s]||Zu,o[s])}function Ut(t){switch(t){case 5126:return At;case 35664:return Rt;case 35665:return Lt;case 35666:return Nt;case 35674:return It;case 35675:return kt;case 35676:return jt;case 35678:return Dt;case 35680:return Ft;case 5124:case 35670:return Pt;case 35667:case 35671:return Tt;case 35668:case 35672:return Mt;case 35669:case 35673:return Ct}}function Bt(t,e,n){this.id=t,this.addr=n,this.cache=[],this.setValue=Ot(e.type)}function zt(t,e,n){this.id=t,this.addr=n,this.cache=[],this.size=e.size,this.setValue=Ut(e.type)}function Vt(t){this.id=t,lt.call(this)}function Ht(t,e){t.seq.push(e),t.map[e.id]=e}function Gt(t,e,n){var r=t.name,i=r.length;for($u.lastIndex=0;;){var o=$u.exec(r),s=$u.lastIndex,a=o[1],u="]"===o[2],c=o[3];if(u&&(a|=0),void 0===c||"["===c&&s+2===i){Ht(n,void 0===c?new Bt(a,t,e):new zt(a,t,e));break}var l=n.map,h=l[a];void 0===h&&(h=new Vt(a),Ht(n,h)),n=h}}function Wt(t,e,n){lt.call(this),this.renderer=n;for(var r=t.getProgramParameter(e,t.ACTIVE_UNIFORMS),i=0;i<r;++i){var o=t.getActiveUniform(e,i);Gt(o,t.getUniformLocation(e,o.name),this)}}function qt(t){for(var e=t.split("\n"),n=0;n<e.length;n++)e[n]=n+1+": "+e[n];return e.join("\n")}function Zt(t,e,n){var r=t.createShader(e);return t.shaderSource(r,n),t.compileShader(r),!1===t.getShaderParameter(r,t.COMPILE_STATUS)&&console.error("THREE.WebGLShader: Shader couldn't compile."),""!==t.getShaderInfoLog(r)&&console.warn("THREE.WebGLShader: gl.getShaderInfoLog()",e===t.VERTEX_SHADER?"vertex":"fragment",t.getShaderInfoLog(r),qt(n)),r}function Xt(t){switch(t){case Eu:return["Linear","( value )"];case Su:return["sRGB","( value )"];case Mu:return["RGBE","( value )"];case Ou:return["RGBM","( value, 7.0 )"];case Au:return["RGBM","( value, 16.0 )"];case Pu:return["RGBD","( value, 256.0 )"];case Tu:return["Gamma","( value, float( GAMMA_FACTOR ) )"];default:throw new Error("unsupported encoding: "+t)}}function Kt(t,e){var n=Xt(e);return"vec4 "+t+"( vec4 value ) { return "+n[0]+"ToLinear"+n[1]+"; }"}function Yt(t,e){var n=Xt(e);return"vec4 "+t+"( vec4 value ) { return LinearTo"+n[0]+n[1]+"; }"}function Jt(t,e){var n;switch(e){case ea:n="Linear";break;case na:n="Reinhard";break;case ra:n="Uncharted2";break;case ia:n="OptimizedCineon";break;default:throw new Error("unsupported toneMapping: "+e)}return"vec3 "+t+"( vec3 color ) { return "+n+"ToneMapping( color ); }"}function Qt(t,e,n){return t=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(ee).join("\n")}function $t(t){var e=[];for(var n in t){var r=t[n];!1!==r&&e.push("#define "+n+" "+r)}return e.join("\n")}function te(t,e){for(var n={},r=t.getProgramParameter(e,t.ACTIVE_ATTRIBUTES),i=0;i<r;i++){var o=t.getActiveAttrib(e,i),s=o.name;n[s]=t.getAttribLocation(e,s)}return n}function ee(t){return""!==t}function ne(t,e){return t.replace(/NUM_DIR_LIGHTS/g,e.numDirLights).replace(/NUM_SPOT_L
1IGHTS/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 re(t,e){return t.replace(/NUM_CLIPPING_PLANES/g,e.numClippingPlanes).replace(/UNION_CLIPPING_PLANES/g,e.numClippingPlanes-e.numClipIntersection)}function ie(t){function e(t,e){var n=Du[e];if(void 0===n)throw new Error("Can not resolve #include <"+e+">");return ie(n)}var n=/^[ \t]*#include +<([\w\d.]+)>/gm;return t.replace(n,e)}function oe(t){function e(t,e,n,r){for(var i="",o=parseInt(e);o<parseInt(n);o++)i+=r.replace(/\[ i \]/g,"[ "+o+" ]");return i}var n=/#pragma unroll_loop[\s]+?for \( int i \= (\d+)\; i < (\d+)\; i \+\+ \) \{([\s\S]+?)(?=\})\}/g;return t.replace(n,e)}function se(t,e,n,r,i,o){var s=t.context,a=r.defines,u=i.vertexShader,c=i.fragmentShader,l="SHADOWMAP_TYPE_BASIC";o.shadowMapType===hs?l="SHADOWMAP_TYPE_PCF":o.shadowMapType===ps&&(l="SHADOWMAP_TYPE_PCF_SOFT");var h="ENVMAP_TYPE_CUBE",p="ENVMAP_MODE_REFLECTION",f="ENVMAP_BLENDING_MULTIPLY";if(o.envMap){switch(r.envMap.mapping){case sa:case aa:h="ENVMAP_TYPE_CUBE";break;case ha:case pa:h="ENVMAP_TYPE_CUBE_UV";break;case ua:case ca:h="ENVMAP_TYPE_EQUIREC";break;case la:h="ENVMAP_TYPE_SPHERE"}switch(r.envMap.mapping){case aa:case ca:p="ENVMAP_MODE_REFRACTION"}switch(r.combine){case Js:f="ENVMAP_BLENDING_MULTIPLY";break;case Qs:f="ENVMAP_BLENDING_MIX";break;case $s:f="ENVMAP_BLENDING_ADD"}}var d,m,v=t.gammaFactor>0?t.gammaFactor:1,y=Qt(r.extensions,o,e),g=$t(a),b=s.createProgram();r.isRawShaderMaterial?(d=[g].filter(ee).join("\n"),d.length>0&&(d+="\n"),m=[y,g].filter(ee).join("\n"),m.length>0&&(m+="\n")):(d=["precision "+o.precision+" float;","precision "+o.precision+" int;","#define SHADER_NAME "+i.name,g,o.supportsVertexTextures?"#define VERTEX_TEXTURES":"","#define GAMMA_FACTOR "+v,"#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 "+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.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.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 "+l:"",o.sizeAttenuation?"#define USE_SIZEATTENUATION":"",o.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",o.logarithmicDepthBuffer&&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_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(ee).join("\n"),m=[y,"precision "+o.precision+" float;","precision "+o.precision+" int;","#define SHADER_NAME "+i.name,g,o.alphaTest?"#define ALPHATEST "+o.alph
1aTest+(o.alphaTest%1?"":".0"):"","#define GAMMA_FACTOR "+v,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 "+h:"",o.envMap?"#define "+p:"",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.specularMap?"#define USE_SPECULARMAP":"",o.roughnessMap?"#define USE_ROUGHNESSMAP":"",o.metalnessMap?"#define USE_METALNESSMAP":"",o.alphaMap?"#define USE_ALPHAMAP":"",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 "+l:"",o.premultipliedAlpha?"#define PREMULTIPLIED_ALPHA":"",o.physicallyCorrectLights?"#define PHYSICALLY_CORRECT_LIGHTS":"",o.logarithmicDepthBuffer?"#define USE_LOGDEPTHBUF":"",o.logarithmicDepthBuffer&&e.get("EXT_frag_depth")?"#define USE_LOGDEPTHBUF_EXT":"",o.envMap&&e.get("EXT_shader_texture_lod")?"#define TEXTURE_LOD_EXT":"","uniform mat4 viewMatrix;","uniform vec3 cameraPosition;",o.toneMapping!==ta?"#define TONE_MAPPING":"",o.toneMapping!==ta?Du.tonemapping_pars_fragment:"",o.toneMapping!==ta?Jt("toneMapping",o.toneMapping):"",o.dithering?"#define DITHERING":"",o.outputEncoding||o.mapEncoding||o.envMapEncoding||o.emissiveMapEncoding?Du.encodings_pars_fragment:"",o.mapEncoding?Kt("mapTexelToLinear",o.mapEncoding):"",o.envMapEncoding?Kt("envMapTexelToLinear",o.envMapEncoding):"",o.emissiveMapEncoding?Kt("emissiveMapTexelToLinear",o.emissiveMapEncoding):"",o.outputEncoding?Yt("linearToOutputTexel",o.outputEncoding):"",o.depthPacking?"#define DEPTH_PACKING "+r.depthPacking:"","\n"].filter(ee).join("\n")),u=ie(u),u=ne(u,o),u=re(u,o),c=ie(c),c=ne(c,o),c=re(c,o),u=oe(u),c=oe(c);var _=d+u,w=m+c,x=Zt(s,s.VERTEX_SHADER,_),E=Zt(s,s.FRAGMENT_SHADER,w);s.attachShader(b,x),s.attachShader(b,E),void 0!==r.index0AttributeName?s.bindAttribLocation(b,0,r.index0AttributeName):!0===o.morphTargets&&s.bindAttribLocation(b,0,"position"),s.linkProgram(b);var S=s.getProgramInfoLog(b).trim(),T=s.getShaderInfoLog(x).trim(),M=s.getShaderInfoLog(E).trim(),C=!0,O=!0;!1===s.getProgramParameter(b,s.LINK_STATUS)?(C=!1,console.error("THREE.WebGLProgram: shader error: ",s.getError(),"gl.VALIDATE_STATUS",s.getProgramParameter(b,s.VALIDATE_STATUS),"gl.getProgramInfoLog",S,T,M)):""!==S?console.warn("THREE.WebGLProgram: gl.getProgramInfoLog()",S):""!==T&&""!==M||(O=!1),O&&(this.diagnostics={runnable:C,material:r,programLog:S,vertexShader:{log:T,prefix:d},fragmentShader:{log:M,prefix:m}}),s.deleteShader(x),s.deleteShader(E);var A;this.getUniforms=function(){return void 0===A&&(A=new Wt(s,b,t)),A};var P;return this.getAttributes=function(){return void 0===P&&(P=te(s,b)),P},this.destroy=function(){s.deleteProgram(b),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=i.name,this.id=tc++,this.code=n,this.usedTimes=1,this.program=b,this.vertexShader=x,this.fragmentShader=E,this}function ae(t,e,n){function r(t){var e=t.skeleton,r=e.bones;if(n.floatVertexTextures)return 1024;var i=n.maxVertexUniforms,o=Math.floor((i-20)/4),s=Math.min(o,r.length);return s<r.length?(console.warn("THREE.WebGLRenderer: Skeleton has "+r.length+" bones. This GPU supports "+s+"."),0):s}function i(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=Eu,n===Eu&&e&&(n=Tu),n}var o=[],s={MeshDepthMaterial:"depth",MeshDistanceMaterial:"distanceRGBA",MeshNormalMaterial:"normal",MeshBasicMaterial:"basic",MeshLambertMaterial:"lambert",MeshPhongMaterial:"phong",MeshToonMaterial:"phong",MeshStandardMaterial:"physical",MeshPhysicalMaterial:"physical",LineBasicMaterial:"basic",LineDashedMaterial:"dashed",PointsMaterial:"points",ShadowMaterial:"shadow"},a=["precision","supportsVertexTextures","map","mapEncoding","envMap","envMapMode","envMapEncoding","lightMap","aoMap","emissiveMap","emissiveMapEncoding","bumpMap","normalMap","objectSpaceNormalMap","displacementMap","specularMap","roughnessMap","metalnessMap","gradientMap","alphaMap","combine","vertexColors","fog","useFog","fogExp","flatShading","sizeAttenuation","logarithmicDepthBuffer","skinning","maxBones","useVertexTexture","morphTargets","morphNormals","maxMorphTargets","maxMorphNormals","premultipliedAlpha","numDirLights","numPointLights","numSpotLights","numHemiLights","numRectAreaLights","shadowMapEnabled","shadowMapType","toneMapping","physicallyCorrectLights","alphaTest","doubleSided","flipSided","numClippingPlanes","numClipIntersection","depthPacking","dithering"];this.getParameters=function(e,o,a,u,c,l,h){var p=s[e.type],f=h.isSkinnedMesh?r(h):0,d=n.precision;null!==e.precision&&(d=n.getMaxPrecision(e.precision))!==e.precision&&console.warn("THREE.WebGLProgram.getParameters:",e.precision,"not supported, using",d,"instead.");var m=t.getRenderTarget();return{shaderID:p,precision:d,supportsVertexTextures:n.vertexTextures,outputEncoding:i(m?m.texture:null,t.gammaOutput),map:!!e.map,mapEncoding:i(e.map,t.gammaInput),envMap:!!e.envMap,envMapMode:e.envMap&&e.envMap.mapping,envMapEncoding:i(e.envMap,t.gammaInput),envMapCubeUV:!!e.envMap&&(e.envMap.mapping===ha||e.envMap.mapping===pa),lightMap:!!e.lightMap,aoMap:!!e.aoMap,emissiveMap:!!e.emissiveMap,emissiveMapEncoding:i(e.emissiveMap,t.gammaInput),bumpMap:!!e.bumpMap,normalMap:!!e.normalMap,objectSpaceNormalMap:e.normalMapType===Iu,displacementMap:!!e.displacementMap,roughnessMap:!!e.roughnessMap,metalnessMap:!!e.metalnessMap,specularMap:!!e.specularMap,alph
1aMap:!!e.alphaMap,gradientMap:!!e.gradientMap,combine:e.combine,vertexColors:e.vertexColors,fog:!!u,useFog:e.fog,fogExp:u&&u.isFogExp2,flatShading:e.flatShading,sizeAttenuation:e.sizeAttenuation,logarithmicDepthBuffer:n.logarithmicDepthBuffer,skinning:e.skinning&&f>0,maxBones:f,useVertexTexture:n.floatVertexTextures,morphTargets:e.morphTargets,morphNormals:e.morphNormals,maxMorphTargets:t.maxMorphTargets,maxMorphNormals:t.maxMorphNormals,numDirLights:o.directional.length,numPointLights:o.point.length,numSpotLights:o.spot.length,numRectAreaLights:o.rectArea.length,numHemiLights:o.hemi.length,numClippingPlanes:c,numClipIntersection:l,dithering:e.dithering,shadowMapEnabled:t.shadowMap.enabled&&h.receiveShadow&&a.length>0,shadowMapType:t.shadowMap.type,toneMapping:t.toneMapping,physicallyCorrectLights:t.physicallyCorrectLights,premultipliedAlpha:e.premultipliedAlpha,alphaTest:e.alphaTest,doubleSided:e.side===ms,flipSided:e.side===ds,depthPacking:void 0!==e.depthPacking&&e.depthPacking}},this.getProgramCode=function(e,n){var r=[];if(n.shaderID?r.push(n.shaderID):(r.push(e.fragmentShader),r.push(e.vertexShader)),void 0!==e.defines)for(var i in e.defines)r.push(i),r.push(e.defines[i]);for(var o=0;o<a.length;o++)r.push(n[a[o]]);return r.push(e.onBeforeCompile.toString()),r.push(t.gammaOutput),r.join()},this.acquireProgram=function(n,r,i,s){for(var a,u=0,c=o.length;u<c;u++){var l=o[u];if(l.code===s){a=l,++a.usedTimes;break}}return void 0===a&&(a=new se(t,e,s,n,r,i),o.push(a)),a},this.releaseProgram=function(t){if(0==--t.usedTimes){var e=o.indexOf(t);o[e]=o[o.length-1],o.pop(),t.destroy()}},this.programs=o}function ue(){function t(t){var e=i.get(t);return void 0===e&&(e={},i.set(t,e)),e}function e(t){i.delete(t)}function n(t,e,n){i.get(t)[e]=n}function r(){i=new WeakMap}var i=new WeakMap;return{get:t,remove:e,update:n,dispose:r}}function ce(t,e){return 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 le(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:t.id-e.id}function he(){function t(){i=0,o.length=0,s.length=0}function e(t,e,n,a,u){var c=r[i];void 0===c?(c={id:t.id,object:t,geometry:e,material:n,program:n.program,renderOrder:t.renderOrder,z:a,group:u},r[i]=c):(c.id=t.id,c.object=t,c.geometry=e,c.material=n,c.program=n.program,c.renderOrder=t.renderOrder,c.z=a,c.group=u),(!0===n.transparent?s:o).push(c),i++}function n(){o.length>1&&o.sort(ce),s.length>1&&s.sort(le)}var r=[],i=0,o=[],s=[];return{opaque:o,transparent:s,init:t,push:e,sort:n}}function pe(){function t(t,e){var r=t.id+","+e.id,i=n[r];return void 0===i&&(i=new he,n[r]=i),i}function e(){n={}}var n={};return{get:t,dispose:e}}function fe(){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 a,color:new g,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new i};break;case"SpotLight":n={position:new a,direction:new a,color:new g,distance:0,coneCos:0,penumbraCos:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new i};break;case"PointLight":n={position:new a,color:new g,distance:0,decay:0,shadow:!1,shadowBias:0,shadowRadius:1,shadowMapSize:new i,shadowCameraNear:1,shadowCameraFar:1e3};break;case"HemisphereLight":n={direction:new a,skyColor:new g,groundColor:new g};break;case"RectAreaLight":n={color:new g,position:new a,halfWidth:new a,halfHeight:new a}}return t[e.id]=n,n}}}function de(){function t(t,o,a){for(var u=0,c=0,l=0,h=0,p=0,f=0,d=0,m=0,v=a.matrixWorldInverse,y=0,g=t.length;y<g;y++){var b=t[y],_=b.color,w=b.intensity,x=b.distance,E=b.shadow&&b.shadow.map?b.shadow.map.texture:null;if(b.isAmbientLight)u+=_.r*w,c+=_.g*w,l+=_.b*w;else if(b.isDirectionalLight){var S=e.get(b);if(S.color.copy(b.color).multiplyScalar(b.intensity),S.direction.setFromMatrixPosition(b.matrixWorld),r.setFromMatrixPosition(b.target.matrixWorld),S.direction.sub(r),S.direction.transformDirection(v),S.shadow=b.castShadow,b.castShadow){var T=b.shadow;S.shadowBias=T.bias,S.shadowRadius=T.radius,S.shadowMapSize=T.mapSize}n.directionalShadowMap[h]=E,n.directionalShadowMatrix[h]=b.shadow.matrix,n.directional[h]=S,h++}else if(b.isSpotLight){var S=e.get(b);if(S.position.setFromMatrixPosition(b.matrixWorld),S.position.applyMatrix4(v),S.color.copy(_).multiplyScalar(w),S.distance=x,S.direction.setFromMatrixPosition(b.matrixWorld),r.setFromMatrixPosition(b.target.matrixWorld),S.direction.sub(r),S.direction.transformDirection(v),S.coneCos=Math.cos(b.angle),S.penumbraCos=Math.cos(b.angle*(1-b.penumbra)),S.decay=0===b.distance?0:b.decay,S.shadow=b.castShadow,b.castShadow){var T=b.shadow;S.shadowBias=T.bias,S.shadowRadius=T.radius,S.shadowMapSize=T.mapSize}n.spotShadowMap[f]=E,n.spotShadowMatrix[f]=b.shadow.matrix,n.spot[f]=S,f++}else if(b.isRectAreaLight){var S=e.get(b);S.color.copy(_).multiplyScalar(w),S.position.setFromMatrixPosition(b.matrixWorld),S.position.applyMatrix4(v),s.identity(),i.copy(b.matrixWorld),i.premultiply(v),s.extractRotation(i),S.halfWidth.set(.5*b.width,0,0),S.halfHeight.set(0,.5*b.height,0),S.halfWidth.applyMatrix4(s),S.halfHeight.applyMatrix4(s),n.rectArea[d]=S,d++}else if(b.isPointLight){var S=e.get(b);if(S.position.setFromMatrixPosition(b.matrixWorld),S.position.applyMatrix4(v),S.color.copy(b.color).multiplyScalar(b.intensity),S.distance=b.distance,S.decay=0===b.distance?0:b.decay,S.shadow=b.castShadow,b.castShadow){var T=b.shadow;S.shadowBias=T.bias,S.shadowRadius=T.radius,S.shadowMapSize=T.mapSize,S.shadowCameraNear=T.camera.near,S.shadowCameraFar=T.camera.far}n.pointShadowMap[p]=E,n.pointShadowMatrix[p]=b.shadow.matrix,n.point[p]=S,p++}else if(b.isHemisphereLight){var S=e.get(b);S.direction.setFromMatrixPosition(b.matrixWorld),S.direction.transformDirection(v),S.direction.normalize(),S.skyColor.copy(b.color).multiplyScalar(w),S.groundColor.copy(b.groundColor).multiplyScalar(w),n.hemi[m]=S,m++}}n.ambient[0]=u,n.ambient[1]=c,n.ambient[2]=l,n.directional.length=h,n.spot.length=f,n.rectArea.length=d,n.point.length=p,n.hemi.length=m,n.hash=n.id+","+h+","+p+","+f+","+d+","+m+","+o.length}var e=new fe,n={id:ec++,hash:"",ambient:[0,0,0],directional:[],directionalShadowMap:[],directionalShadowMatrix:[],spot:[],spotShadowMap:[],spotShadowMatrix:[],rectArea:[],point:[],pointShadowMap:[],pointShadowMatrix:[],hemi:[]},r=new a,i=new o,s=new o;return{setup:t,state:n}}function me(){function t(){s.length=0,a.length=0,u.length=0}function e(t){s.push(t)}function n(t){a.push(t)}function r(t){u.push(t)}function i(t){o.setup(s,a,t)}var o=new de,s=[],a=[],u=[];return{init:t,state:{lightsArray:s,shadowsArray:a,spritesArray:u,lights:o},setupLights:i,pushLight:e,pushShadow:n,pushSprite:r}}function ve(){function t(t,e){var r=t.id+","+e.id,i=n[r];return void 0===i&&(i=new me,n[r]=i),i}function e(){n={}}var n={};return{get:t,dispose:e}}function ye(t){W.call(this),this.type="MeshDepthMaterial",this.depthPacking=Ru,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 ge(t){W.call(this),this.type="MeshDistanceMaterial",this.referencePosition=new a,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 be(t,e,n){function r(e,n,r,i,o,s){var a=e.geometry,u=null,c=_,l=e.customDepthMaterial;if(r&&(c=w,l=e.customDistanceMaterial),l)u=l;else{var h=!1;n.morphTargets&&(a&&a.isBufferGeometry?h=a.morphAttributes&&a.morphAttributes.position&&a.morphAttributes.position.length>0:a&&a.isGeometry&&(h=a.morphTargets&&a.morphTargets.length>
10)),e.isSkinnedMesh&&!1===n.skinning&&console.warn("THREE.WebGLShadowMap: THREE.SkinnedMesh with material.skinning set to false:",e);var p=e.isSkinnedMesh&&n.skinning,f=0;h&&(f|=v),p&&(f|=g),u=c[f]}if(t.localClippingEnabled&&!0===n.clipShadows&&0!==n.clippingPlanes.length){var d=u.uuid,m=n.uuid,y=x[d];void 0===y&&(y={},x[d]=y);var b=y[m];void 0===b&&(b=u.clone(),y[m]=b),u=b}return u.visible=n.visible,u.wireframe=n.wireframe,u.side=null!=n.shadowSide?n.shadowSide:E[n.side],u.clipShadows=n.clipShadows,u.clippingPlanes=n.clippingPlanes,u.clipIntersection=n.clipIntersection,u.wireframeLinewidth=n.wireframeLinewidth,u.linewidth=n.linewidth,r&&u.isMeshDistanceMaterial&&(u.referencePosition.copy(i),u.nearDistance=o,u.farDistance=s),u}function s(n,i,o,a){if(!1!==n.visible){if(n.layers.test(i.layers)&&(n.isMesh||n.isLine||n.isPoints)&&n.castShadow&&(!n.frustumCulled||u.intersectsObject(n))){n.modelViewMatrix.multiplyMatrices(o.matrixWorldInverse,n.matrixWorld);var c=e.update(n),l=n.material;if(Array.isArray(l))for(var h=c.groups,p=0,f=h.length;p<f;p++){var d=h[p],v=l[d.materialIndex];if(v&&v.visible){var y=r(n,v,a,m,o.near,o.far);t.renderBufferDirect(o,null,c,y,n,d)}}else if(l.visible){var y=r(n,l,a,m,o.near,o.far);t.renderBufferDirect(o,null,c,y,n,null)}}for(var g=n.children,b=0,_=g.length;b<_;b++)s(g[b],i,o,a)}}for(var u=new y,c=new o,p=new i,f=new i(n,n),d=new a,m=new a,v=1,g=2,b=1+(v|g),_=new Array(b),w=new Array(b),x={},E={0:ds,1:fs,2:ms},S=[new a(1,0,0),new a(-1,0,0),new a(0,0,1),new a(0,0,-1),new a(0,1,0),new a(0,-1,0)],T=[new a(0,1,0),new a(0,1,0),new a(0,1,0),new a(0,1,0),new a(0,0,1),new a(0,0,-1)],M=[new l,new l,new l,new l,new l,new l],C=0;C!==b;++C){var O=0!=(C&v),A=0!=(C&g),P=new ye({depthPacking:Lu,morphTargets:O,skinning:A});_[C]=P;var R=new ge({morphTargets:O,skinning:A});w[C]=R}var L=this;this.enabled=!1,this.autoUpdate=!0,this.needsUpdate=!1,this.type=hs,this.render=function(e,n,r){if(!1!==L.enabled&&(!1!==L.autoUpdate||!1!==L.needsUpdate)&&0!==e.length){var i=t.context,o=t.state;o.disable(i.BLEND),o.buffers.color.setClear(1,1,1,1),o.buffers.depth.setTest(!0),o.setScissorTest(!1);for(var a,l=0,v=e.length;l<v;l++){var y=e[l],g=y.shadow,b=y&&y.isPointLight;if(void 0!==g){var _=g.camera;if(p.copy(g.mapSize),p.min(f),b){var w=p.x,x=p.y;M[0].set(2*w,x,w,x),M[1].set(0,x,w,x),M[2].set(3*w,x,w,x),M[3].set(w,x,w,x),M[4].set(3*w,0,w,x),M[5].set(w,0,w,x),p.x*=4,p.y*=2}if(null===g.map){var E={minFilter:va,magFilter:va,format:ja};g.map=new h(p.x,p.y,E),g.map.texture.name=y.name+".shadowMap",_.updateProjectionMatrix()}g.isSpotLightShadow&&g.update(y);var C=g.map,O=g.matrix;m.setFromMatrixPosition(y.matrixWorld),_.position.copy(m),b?(a=6,O.makeTranslation(-m.x,-m.y,-m.z)):(a=1,d.setFromMatrixPosition(y.target.matrixWorld),_.lookAt(d),_.updateMatrixWorld(),O.set(.5,0,0,.5,0,.5,0,.5,0,0,.5,.5,0,0,0,1),O.multiply(_.projectionMatrix),O.multiply(_.matrixWorldInverse)),t.setRenderTarget(C),t.clear();for(var A=0;A<a;A++){if(b){d.copy(_.position),d.add(S[A]),_.up.copy(T[A]),_.lookAt(d),_.updateMatrixWorld();var P=M[A];o.viewport(P)}c.multiplyMatrices(_.projectionMatrix,_.matrixWorldInverse),u.setFromMatrix(c),s(n,r,_,b)}}else console.warn("THREE.WebGLShadowMap:",y,"has no shadow.")}L.needsUpdate=!1}}}function _e(t,e,n,r,i,o,s,a,u){c.call(this,t,e,n,r,i,o,s,a,u),this.needsUpdate=!0}function we(t,e,n,r,i){function o(){var t=new Float32Array([-.5,-.5,0,0,.5,-.5,1,0,.5,.5,1,1,-.5,.5,0,1]),n=new Uint16Array([0,1,2,0,2,3]);l=e.createBuffer(),h=e.createBuffer(),e.bindBuffer(e.ARRAY_BUFFER,l),e.bufferData(e.ARRAY_BUFFER,t,e.STATIC_DRAW),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,h),e.bufferData(e.ELEMENT_ARRAY_BUFFER,n,e.STATIC_DRAW),p=u(),f={position:e.getAttribLocation(p,"position"),uv:e.getAttribLocation(p,"uv")},d={uvOffset:e.getUniformLocation(p,"uvOffset"),uvScale:e.getUniformLocation(p,"uvScale"),rotation:e.getUniformLocation(p,"rotation"),center:e.getUniformLocation(p,"center"),scale:e.getUniformLocation(p,"scale"),color:e.getUniformLocation(p,"color"),map:e.getUniformLocation(p,"map"),opacity:e.getUniformLocation(p,"opacity"),modelViewMatrix:e.getUniformLocation(p,"modelViewMatrix"),projectionMatrix:e.getUniformLocation(p,"projectionMatrix"),fogType:e.getUniformLocation(p,"fogType"),fogDensity:e.getUniformLocation(p,"fogDensity"),fogNear:e.getUniformLocation(p,"fogNear"),fogFar:e.getUniformLocation(p,"fogFar"),fogColor:e.getUniformLocation(p,"fogColor"),fogDepth:e.getUniformLocation(p,"fogDepth"),alphaTest:e.getUniformLocation(p,"alphaTest")};var r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=8,r.height=8;var i=r.getContext("2d");i.fillStyle="white",i.fillRect(0,0,8,8),m=new _e(r)}function u(){var t=e.createProgram(),n=e.createShader(e.VERTEX_SHADER),r=e.createShader(e.FRAGMENT_SHADER);return e.shaderSource(n,["precision "+i.precision+" float;","#define SHADER_NAME SpriteMaterial","uniform mat4 modelViewMatrix;","uniform mat4 projectionMatrix;","uniform float rotation;","uniform vec2 center;","uniform vec2 scale;","uniform vec2 uvOffset;","uniform vec2 uvScale;","attribute vec2 position;","attribute vec2 uv;","varying vec2 vUV;","varying float fogDepth;","void main() {","\tvUV = uvOffset + uv * uvScale;","\tvec2 alignedPosition = ( position - center ) * scale;","\tvec2 rotatedPosition;","\trotatedPosition.x = cos( rotation ) * alignedPosition.x - sin( rotation ) * alignedPosition.y;","\trotatedPosition.y = sin( rotation ) * alignedPosition.x + cos( rotation ) * alignedPosition.y;","\tvec4 mvPosition;","\tmvPosition = modelViewMatrix * vec4( 0.0, 0.0, 0.0, 1.0 );","\tmvPosition.xy += rotatedPosition;","\tgl_Position = projectionMatrix * mvPosition;","\tfogDepth = - mvPosition.z;","}"].join("\n")),e.shaderSource(r,["precision "+i.precision+" float;","#define SHADER_NAME SpriteMaterial","uniform vec3 color;","uniform sampler2D map;","uniform float opacity;","uniform int fogType;","uniform vec3 fogColor;","uniform float fogDensity;","uniform float fogNear;","uniform float fogFar;","uniform float alphaTest;","varying vec2 vUV;","varying float fogDepth;","void main() {","\tvec4 texture = texture2D( map, vUV );","\tgl_FragColor = vec4( color * texture.xyz, texture.a * opacity );","\tif ( gl_FragColor.a < alphaTest ) discard;","\tif ( fogType > 0 ) {","\t\tfloat fogFactor = 0.0;","\t\tif ( fogType == 1 ) {","\t\t\tfogFactor = smoothstep( fogNear, fogFar, fogDepth );","\t\t} else {","\t\t\tconst float LOG2 = 1.442695;","\t\t\tfogFactor = exp2( - fogDensity * fogDensity * fogDepth * fogDepth * LOG2 );","\t\t\tfogFactor = 1.0 - clamp( fogFactor, 0.0, 1.0 );","\t\t}","\t\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );","\t}","}"].join("\n")),e.compileShader(n),e.compileShader(r),e.attachShader(t,n),e.attachShader(t,r),e.linkProgram(t),t}function c(t,e){return t.renderOrder!==e.renderOrder?t.renderOrder-e.renderOrder:t.z!==e.z?e.z-t.z:e.id-t.id}var l,h,p,f,d,m,v=new a,y=new s,g=new a;this.render=function(i,s,a){if(0!==i.length){void 0===p&&o(),n.useProgram(p),n.initAttributes(),n.enableAttribute(f.position),n.enableAttribute(f.uv),n.disableUnusedAttributes(),n.disable(e.CULL_FACE),n.enable(e.BLEND),e.bindBuffer(e.ARRAY_BUFFER,l),e.vertexAttribPointer(f.position,2,e.FLOAT,!1,16,0),e.vertexAttribPointer(f.uv,2,e.FLOAT,!1,16,8),e.bindBuffer(e.ELEMENT_ARRAY_BUFFER,h),e.uniformMatrix4fv(d.projectionMatrix,!1,a.projectionMatrix.elements),n.activeTexture(e.TEXTURE0),e.uniform1i(d.map,0);var u=0,b=0,_=s.fog;_?(e.uniform3f(d.fogColor,_.color.r,_.color.g,_.color.b),_.isFog?(e.uniform1f(d.fogNear,_.near),e.uniform1f(d.fogFar,_.far),e.uniform1i(d.fogType,1),u=1,b=1):_.isFogExp2&&(e.uniform1f(d.fogDensity,_.density),e.uniform1i(d.fogType,2),u=2,b=2)):(e.uniform1i(d.fogType,0),u=0,b=0);for(var w=0,x=i.length;w<x;w++){var E=i[w];E.modelViewMatrix.multiplyMatrices(a.matrixWorldInverse,E.matrixWorld),E.z=-E.modelViewMatrix.elements[14]}i.sort(c);for(var S=[],T=[],w=0,x=i.length;w<x;w++){var E=i[w],M=E.material;if(!1!==M.visible){E.onBeforeRender(t,s,a,void 0,M,void 0),e.uniform1f(d.alphaTest,M.alphaTest),e.uniformMatrix4fv(d.modelViewMatrix,!1,E.modelViewMatrix.elements),E.matrixWorld.decompose(v,y,g),S[0]=g.x,S[1]=g.y,T[0]=E.center.x-.5,T[1]=E.center.y-.5;var C=0;s.fog&&M.fog&&(C=b),u!==C&&(e.uniform1i(d.fogType,C),u=C),null!==M.map?(e.uniform2f(d.uvOffset,M.map.offset.x,M.map.offset.y),e.uniform2f(d.uvScale,M.map.repeat.x,M.map.repeat.y)):(e.uniform2f(d.uvOffset,0,0),e.uniform2f(d.uvScale,1,1)),e.uniform1f(d.opacity,M.opacity),e.uniform3f(d.color,M.color.r,M.color.g,M.color.b),e.uniform1f(d.rotation,M.rotation),e.uniform2fv(d.center,T),e.uniform2fv(d.scale,S),n.setBlending(M.blending,M.blendEquation,M.blendSrc,M.blendDst,M.blendEquationAlpha,M.blendSrcAlpha,M.blendDstAlpha,M.premultipliedAlpha),n.buffers.depth.setTest(M.depthTest),n.buffers.depth.setMask(M.depthWrite),n.buffers.color.setMask(M.colorWrite),r.setTexture2D(M.map||m,0),e.drawElements(e.TRIANGLES,6,e.UNSIGNED_SHORT,0),E.onAfterRender(t,s,a,void 0,M,void 0)}}n.enable(e.CULL_FACE),n.reset()}}}function xe(t,e,n){function r(){var e=!1,n=new l,r=null,i=new l(0,0,0,0);return{setMask:function(n){r===n||e||(t.colorMask(n,n,n,n),r=n)},setLocked:function(t){e=t},setClear:function(e,r,o,s,a){!0===a&&(e*=s,r*=s,o*=s),n.set(e,r,o,s),!1===i.equals(n)&&(t.clearColor(e,r,o,s),i.copy(n))},reset:function(){e=!1,r=null,i.set(-1,0,0,0)}}}function i(){var e=!1,n=null,r=null,i=null;return{setTest:function(e){e?p(t.DEPTH_TEST):f(t.DEPTH_TEST)},setMask:function(r){n===r||e||(t.depthMask(r),n=r)},setFunc:function(e){if(r!==e){if(e)switch(e){case Hs:t.depthFunc(t.NEVER);break;case Gs:t.depthFunc(t.ALWAYS);break;case Ws:t.depthFunc(t.LESS);break;case qs:t.depthFunc(t.LEQUAL);break;case Zs:t.depthFunc(t.EQUAL);break;case Xs:t.depthFunc(t.GEQUAL);break;case Ks:t.depthFunc(t.GREATER);break;case Ys:t.depthFunc(t.NOTEQUAL);break;default:t.depthFunc(t.LEQUAL)}else t.depthFunc(t.LEQUAL);r=e}}
1,setLocked:function(t){e=t},setClear:function(e){i!==e&&(t.clearDepth(e),i=e)},reset:function(){e=!1,n=null,r=null,i=null}}}function o(){var e=!1,n=null,r=null,i=null,o=null,s=null,a=null,u=null,c=null;return{setTest:function(e){e?p(t.STENCIL_TEST):f(t.STENCIL_TEST)},setMask:function(r){n===r||e||(t.stencilMask(r),n=r)},setFunc:function(e,n,s){r===e&&i===n&&o===s||(t.stencilFunc(e,n,s),r=e,i=n,o=s)},setOp:function(e,n,r){s===e&&a===n&&u===r||(t.stencilOp(e,n,r),s=e,a=n,u=r)},setLocked:function(t){e=t},setClear:function(e){c!==e&&(t.clearStencil(e),c=e)},reset:function(){e=!1,n=null,r=null,i=null,o=null,s=null,a=null,u=null,c=null}}}function s(e,n,r){var i=new Uint8Array(4),o=t.createTexture();t.bindTexture(e,o),t.texParameteri(e,t.TEXTURE_MIN_FILTER,t.NEAREST),t.texParameteri(e,t.TEXTURE_MAG_FILTER,t.NEAREST);for(var s=0;s<r;s++)t.texImage2D(n+s,0,t.RGBA,1,1,0,t.RGBA,t.UNSIGNED_BYTE,i);return o}function a(){for(var t=0,e=I.length;t<e;t++)I[t]=0}function u(t){c(t,0)}function c(n,r){if(I[n]=1,0===k[n]&&(t.enableVertexAttribArray(n),k[n]=1),j[n]!==r){e.get("ANGLE_instanced_arrays").vertexAttribDivisorANGLE(n,r),j[n]=r}}function h(){for(var e=0,n=k.length;e!==n;++e)k[e]!==I[e]&&(t.disableVertexAttribArray(e),k[e]=0)}function p(e){!0!==D[e]&&(t.enable(e),D[e]=!0)}function f(e){!1!==D[e]&&(t.disable(e),D[e]=!1)}function d(){if(null===F&&(F=[],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(t.COMPRESSED_TEXTURE_FORMATS),r=0;r<n.length;r++)F.push(n[r]);return F}function m(e){return U!==e&&(t.useProgram(e),U=e,!0)}function v(e,r,i,o,s,a,u,c){if(e!==ws?p(t.BLEND):f(t.BLEND),e!==Ms){if(e!==B||c!==Z)switch(e){case Es:c?(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ONE,t.ONE,t.ONE,t.ONE)):(t.blendEquation(t.FUNC_ADD),t.blendFunc(t.SRC_ALPHA,t.ONE));break;case Ss:c?(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ZERO,t.ZERO,t.ONE_MINUS_SRC_COLOR,t.ONE_MINUS_SRC_ALPHA)):(t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ZERO,t.ONE_MINUS_SRC_COLOR));break;case Ts:c?(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ZERO,t.SRC_COLOR,t.ZERO,t.SRC_ALPHA)):(t.blendEquation(t.FUNC_ADD),t.blendFunc(t.ZERO,t.SRC_COLOR));break;default:c?(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.ONE,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA)):(t.blendEquationSeparate(t.FUNC_ADD,t.FUNC_ADD),t.blendFuncSeparate(t.SRC_ALPHA,t.ONE_MINUS_SRC_ALPHA,t.ONE,t.ONE_MINUS_SRC_ALPHA))}z=null,V=null,H=null,G=null,W=null,q=null}else s=s||r,a=a||i,u=u||o,r===z&&s===G||(t.blendEquationSeparate(n.convert(r),n.convert(s)),z=r,G=s),i===V&&o===H&&a===W&&u===q||(t.blendFuncSeparate(n.convert(i),n.convert(o),n.convert(a),n.convert(u)),V=i,H=o,W=a,q=u);B=e,Z=c}function y(e,n){e.side===ms?f(t.CULL_FACE):p(t.CULL_FACE);var r=e.side===ds;n&&(r=!r),g(r),e.blending===xs&&!1===e.transparent?v(ws):v(e.blending,e.blendEquation,e.blendSrc,e.blendDst,e.blendEquationAlpha,e.blendSrcAlpha,e.blendDstAlpha,e.premultipliedAlpha),R.setFunc(e.depthFunc),R.setTest(e.depthTest),R.setMask(e.depthWrite),P.setMask(e.colorWrite),w(e.polygonOffset,e.polygonOffsetFactor,e.polygonOffsetUnits)}function g(e){X!==e&&(e?t.frontFace(t.CW):t.frontFace(t.CCW),X=e)}function b(e){e!==is?(p(t.CULL_FACE),e!==K&&(e===os?t.cullFace(t.BACK):e===ss?t.cullFace(t.FRONT):t.cullFace(t.FRONT_AND_BACK))):f(t.CULL_FACE),K=e}function _(e){e!==Y&&(tt&&t.lineWidth(e),Y=e)}function w(e,n,r){e?(p(t.POLYGON_OFFSET_FILL),J===n&&Q===r||(t.polygonOffset(n,r),J=n,Q=r)):f(t.POLYGON_OFFSET_FILL)}function x(e){e?p(t.SCISSOR_TEST):f(t.SCISSOR_TEST)}function E(e){void 0===e&&(e=t.TEXTURE0+$-1),rt!==e&&(t.activeTexture(e),rt=e)}function S(e,n){null===rt&&E();var r=it[rt];void 0===r&&(r={type:void 0,texture:void 0},it[rt]=r),r.type===e&&r.texture===n||(t.bindTexture(e,n||at[e]),r.type=e,r.texture=n)}function T(){try{t.compressedTexImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function M(){try{t.texImage2D.apply(t,arguments)}catch(t){console.error("THREE.WebGLState:",t)}}function C(e){!1===ot.equals(e)&&(t.scissor(e.x,e.y,e.z,e.w),ot.copy(e))}function O(e){!1===st.equals(e)&&(t.viewport(e.x,e.y,e.z,e.w),st.copy(e))}function A(){for(var e=0;e<k.length;e++)1===k[e]&&(t.disableVertexAttribArray(e),k[e]=0);D={},F=null,rt=null,it={},U=null,B=null,X=null,K=null,P.reset(),R.reset(),L.reset()}var P=new r,R=new i,L=new o,N=t.getParameter(t.MAX_VERTEX_ATTRIBS),I=new Uint8Array(N),k=new Uint8Array(N),j=new Uint8Array(N),D={},F=null,U=null,B=null,z=null,V=null,H=null,G=null,W=null,q=null,Z=!1,X=null,K=null,Y=null,J=null,Q=null,$=t.getParameter(t.MAX_COMBINED_TEXTURE_IMAGE_UNITS),tt=!1,et=0,nt=t.getParameter(t.VERSION);-1!==nt.indexOf("WebGL")?(et=parseFloat(/^WebGL\ ([0-9])/.exec(nt)[1]),tt=et>=1):-1!==nt.indexOf("OpenGL ES")&&(et=parseFloat(/^OpenGL\ ES\ ([0-9])/.exec(nt)[1]),tt=et>=2);var rt=null,it={},ot=new l,st=new l,at={};return at[t.TEXTURE_2D]=s(t.TEXTURE_2D,t.TEXTURE_2D,1),at[t.TEXTURE_CUBE_MAP]=s(t.TEXTURE_CUBE_MAP,t.TEXTURE_CUBE_MAP_POSITIVE_X,6),P.setClear(0,0,0,1),R.setClear(1),L.setClear(0),p(t.DEPTH_TEST),R.setFunc(qs),g(!1),b(os),p(t.CULL_FACE),p(t.BLEND),v(xs),{buffers:{color:P,depth:R,stencil:L},initAttributes:a,enableAttribute:u,enableAttributeAndDivisor:c,disableUnusedAttributes:h,enable:p,disable:f,getCompressedTextureFormats:d,useProgram:m,setBlending:v,setMaterial:y,setFlipSided:g,setCullFace:b,setLineWidth:_,setPolygonOffset:w,setScissorTest:x,activeTexture:E,bindTexture:S,compressedTexImage2D:T,texImage2D:M,scissor:C,viewport:O,reset:A}}function Ee(t,e,n,r,i,o,s){function a(t,e){if(t.width>e||t.height>e){if("data"in t)return void console.warn("THREE.WebGLRenderer: image in DataTexture is too big ("+t.width+"x"+t.height+").");var n=e/Math.max(t.width,t.height),r=document.createElementNS("http://www.w3.org/1999/xhtml","canvas");r.width=Math.floor(t.width*n),r.height=Math.floor(t.height*n);return r.getContext("2d").drawImage(t,0,0,t.width,t.height,0,0,r.width,r.height),console.warn("THREE.WebGLRenderer: image is too big ("+t.width+"x"+t.height+"). Resized to "+r.width+"x"+r.height,t),r}return t}function u(t){return ku.isPowerOfTwo(t.width)&&ku.isPowerOfTwo(t.height)}function c(t){if(t instanceof HTMLImageElement||t instanceof HTMLCanvasElement||t instanceof ImageBitmap){void 0===P&&(P=document.createElementNS("http://www.w3.org/1999/xhtml","canvas")),P.width=ku.floorPowerOfTwo(t.width),P.height=ku.floorPowerOfTwo(t.height);return P.getContext("2d").drawImage(t,0,0,P.width,P.height),console.warn("THREE.WebGLRenderer: image is not power of two ("+t.width+"x"+t.height+"). Resized to "+P.width+"x"+P.height,t),P}return t}function l(t){return t.wrapS!==da||t.wrapT!==da||t.minFilter!==va&&t.minFilter!==ba}function h(t,e){return t.generateMipmaps&&e&&t.minFilter!==va&&t.minFilter!==ba}function p(e,n,i,o){t.generateMipmap(e),r.get(n).__maxMipLevel=Math.log(Math.max(i,o))*Math.LOG2E}function f(e){return e===va||e===ya||e===ga?t.NEAREST:t.LINEAR}function d(t){var e=t.target;e.removeEventListener("dispose",d),v(e),e.isVideoTexture&&delete L[e.id],s.memory.textures--}function m(t){var e=t.target;e.removeEventListener("dispose",m),y(e),s.memory.textures--}function v(e){var n=r.get(e);if(e.image&&n.__image__webglTextureCube)t.deleteTexture(n.__image__webglTextureCube);else{if(void 0===n.__webglInit)return;t.deleteTexture(n.__webglTexture)}r.remove(e)}function y(e){var n=r.get(e),i=r.get(e.texture);if(e){if(void 0!==i.__webglTexture&&t.deleteTexture(i.__webglTexture),e.depthTexture&&e.depthTexture.dispose(),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);r.remove(e.texture),r.remove(e)}}function g(e,i){var o=r.get(e);if(e.isVideoTexture&&A(e),e.version>0&&o.__version!==e.version){var s=e.image;if(void 0===s)console.warn("THREE.WebGLRenderer: Texture marked for update but image is undefined",e);else{if(!1!==s.complete)return void x(o,e,i);console.warn("THREE.WebGLRenderer: Texture marked for update but image is incomplete",e)}}n.activeTexture(t.TEXTURE0+i),n.bindTexture(t.TEXTURE_2D,o.__webglTexture)}function b(e,c){var l=r.get(e);if(6===e.image.length)if(e.version>0&&l.__version!==e.version){l.__image__webglTextureCube||(e.addEventListener("dispose",d),l.__image__webglTextureCube=t.createTexture(),s.memory.textures++),n.activeTexture(t.TEXTURE0+c),n.bindTexture(t.TEXTURE_CUBE_MAP,l.__image__webglTextureCube),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,e.flipY);for(var f=e&&e.isCompressedTexture,m=e.image[0]&&e.image[0].isDataTexture,v=[],y=0;y<6;y++)v[y]=f||m?m?e.image[y].image:e.image[y]:a(e.image[y],i.maxCubemapSize);var g=v[0],b=u(g),_=o.convert(e.format),x=o.convert(e.type);w(t.TEXTURE_CUBE_MAP,e,b);for(var y=0;y<6;y++)if(f)for(var E,S=v[y].mipmaps,T=0,M=S.length;T<M;T++)E=S[T],e.format!==ja&&e.format!==ka?n.getCompressedTextureFormats().indexOf(_)>-1?n.compressedTexImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+y,T,_,E.width,E.height,0,E.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .setTextureCube()"):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+y,T,_,E.width,E.height,0,_,x,E.data);else m?n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+y,0,_,v[y].width,v[y].height,0,_,x,v[y].data):n.texImage2D(t.TEXTURE_CUBE_MAP_POSITIVE_X+y,0,_,_,x,v[y]);l.__maxMipLevel=f?S.length-1:0,h(e,b)&&p(t.TEXTURE_CUBE_MAP,e,g.width,g.height),l.__version=e.version,e.onUpdate&&e.onUpdate(e)}else n.activeTexture(t.TEXTURE0+c),n.bindTexture(t.TEXTURE_CUBE_MAP,l.__image__webglTextureCube)}function _(e,i){n.activeTexture(t.TEXTURE0+i),n.bindTexture(t.TEXTURE_CUBE_MAP,r.get(e).__webglTexture)}function w(n,s,a){var u;if(a?(t.texParameteri(n,t.TEXTURE_WRAP_S,o.convert(s.wrapS)),t.texParameteri(n,t.TEXTURE_WRAP_T,o.convert(s.wrapT)),t.texParameteri(n,t.TEXTURE_MAG_FILTER,o.convert(s.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,o.convert(s.minFilter))):(t.texParameteri(n,t.TEXTURE_WRAP_S,t.CLAMP_TO_EDGE),t.texParameteri(n,t.TEXTURE_WRAP_T,t.CLAMP_TO_EDGE),s.wrapS===da&&s.wrapT===da||console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.wrapS and Texture.wrapT should be set to THREE.ClampToEdgeWrapping.",s),t.texParameteri(n,t.TEXTURE_MAG_FILTER,f(s.magFilter)),t.texParameteri(n,t.TEXTURE_MIN_FILTER,f(s.minFilter)),s.minFilter!==va&&s.minFilter!==ba&&console.warn("THREE.WebGLRenderer: Texture is not power of two. Texture.minFilter should be set to THREE.NearestFilter or THREE.LinearFilter.",s)),u=e.get("EXT_texture_filter_anisotropic")){if(s.type===Oa&&null===e.get("OES_texture_float_linear"))return;if(s.type===Aa&&null===e.get("OES_texture_half_float_linear"))return;(s.anisotropy>1||r.get(s).__currentAnisotropy)&&(t.texParameterf(n,u.TEXTURE_MAX_ANISOTROPY_EXT,Math.min(s.anisotropy,i.getMaxAnisotropy())),r.get(s).__currentAnisotropy=s.anisotropy)}}function x(e,r,f){void 0===e.__webglInit&&(e.__webglInit=!0,r.addEventListener("dispose",d),e.__webglTexture=t.createTexture(),s.memory.textures++),n.activeTexture(t.TEXTURE0+f),n.bindTexture(t.TEXTURE_2D,e.__webglTexture),t.pixelStorei(t.UNPACK_FLIP_Y_WEBGL,r.flipY),t.pixelStorei(t.UNPACK_PREMULTIPLY_ALPHA_WEBGL,r.premultiplyAlpha),t.pixelStorei(t.UNPACK_ALIGNMENT,r.unpackAlignment);var m=a(r.image,i.maxTextureSize);l(r)&&!1===u(m)&&(m=c(m));var v=u(m),y=o.convert(r.format),g=o.convert(r.type);w(t.TEXTURE_2D,r,v);var b,_=r.mipmaps;if(r.isDepthTexture){var x=t.DEPTH_COMPONENT;if(r.type===Oa){if(!R)throw new Error("Float Depth Texture only supported in WebGL2.0");x=t.DEPTH_COMPONENT32F}else R&&(x=t.DEPTH_COMPONENT16);r.format===Ba&&x===t.DEPTH_COMPONENT&&r.type!==Ta&&r.type!==Ca&&(console.warn("THREE.WebGLRenderer: Use UnsignedShortType or UnsignedIntType for DepthFormat DepthTexture."),r.type=Ta,g=o.convert(r.type)),r.format===za&&(x=t.DEPTH_STENCIL,r.type!==Na&&(console.warn("THREE.WebGLRenderer: Use UnsignedInt248Type for DepthStencilFormat DepthTexture."),r.type=Na,g=o.convert(r.type))),n.texImage2D(t.TEXTURE_2D,0,x,m.width,m.height,0,y,g,null)}else if(r.isDataTexture)if(_.length>0&&v){for(var E=0,S=_.length;E<S;E++)b=_[E],n.texImage2D(t.TEXTURE_2D,E,y,b.width,b.height,0,y,g,b.data);r.generateMipmaps=!1,e.__maxMipLevel=_.length-1}else n.texImage2D(t.TEXTURE_2D,0,y,m.width,m.height,0,y,g,m.data),e.__maxMipLevel=0;else if(r.isCompressedTexture){for(var E=0,S=_.length;E<S;E++)b=_[E],r.format!==ja&&r.format!==ka?n.getCompressedTextureFormats().indexOf(y)>-1?n.compressedTexImage2D(t.TEXTURE_2D,E,y,b.width,b.height,0,b.data):console.warn("THREE.WebGLRenderer: Attempt to load unsupported compressed texture format in .uploadTexture()"):n.texImage2D(t.TEXTURE_2D,E,y,b.width,b.height,0,y,g,b.data);e.__maxMipLevel=_.length-1}else if(_.length>0&&v){for(var E=0,S=_.length;E<S;E++)b=_[E],n.texImage2D(t.TEXTURE_2D,E,y,y,g,b);r.generateMipmaps=!1,e.__maxMipLevel=_.length-1}else n.texImage2D(t.TEXTURE_2D,0,y,y,g,m),e.__maxMipLevel=0;h(r,v)&&p(t.TEXTURE_2D,r,m.width,m.height),e.__version=r.version,r.onUpdate&&r.onUpdate(r)}function E(e,i,s,a){var u=o.convert(i.texture.format),c=o.convert(i.texture.type);n.texImage2D(a,0,u,i.width,i.height,0,u,c,null),t.bindFramebuffer(t.FRAMEBUFFER,e),t.framebufferTexture2D(t.FRAMEBUFFER,s,a,r.get(i.texture).__webglTexture,0),t.bindFramebuffer(t.FRAMEBUFFER,null)}function S(e,n){t.bindRenderbuffer(t.RENDERBUFFER,e),n.depthBuffer&&!n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_COMPONENT16,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.RENDERBUFFER,e)):n.depthBuffer&&n.stencilBuffer?(t.renderbufferStorage(t.RENDERBUFFER,t.DEPTH_STENCIL,n.width,n.height),t.framebufferRenderbuffer(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.RENDERBUFFER,e)):t.renderbufferStorage(t.RENDERBUFFER,t.RGBA4,n.width,n.height),t.bindRenderbuffer(t.RENDERBUFFER,null)}function T(e,n){if(n&&n.isWebGLRenderTargetCube)throw new Error("Depth Texture with cube render targets is not supported");if(t.bindFramebuffer(t.FRAMEBUFFER,e),!n.depthTexture||!n.depthTexture.isDepthTexture)throw new Error("renderTarget.depthTexture must be an instance of THREE.DepthTexture");r.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),g(n.depthTexture,0);var i=r.get(n.depthTexture).__webglTexture;if(n.depthTexture.format===Ba)t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_ATTACHMENT,t.TEXTURE_2D,i,0);else{if(n.depthTexture.format!==za)throw new Error("Unknown depthTexture format");t.framebufferTexture2D(t.FRAMEBUFFER,t.DEPTH_STENCIL_ATTACHMENT,t.TEXTURE_2D,i,0)}}function M(e){var n=r.get(e),i=!0===e.isWebGLRenderTargetCube;if(e.depthTexture){if(i)throw new Error("target.depthTexture not supported in Cube render targets");T(n.__webglFramebuffer,e)}else if(i){n.__webglDepthbuffer=[];for(var o=0;o<6;o++)t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer[o]),n.__webglDepthbuffer[o]=t.createRenderbuffer(),S(n.__webglDepthbuffer[o],e)}else t.bindFramebuffer(t.FRAMEBUFFER,n.__webglFramebuffer),n.__webglDepthbuffer=t.createRenderbuffer(),S(n.__webglDepthbuffer,e);t.bindFramebuffer(t.FRAMEBUFFER,null)}function C(e){var i=r.get(e),o=r.get(e.texture);e.addEventListener("dispose",m),o.__webglTexture=t.createTexture(),s.memory.textures++;var a=!0===e.isWebGLRenderTargetCube,c=u(e);if(a){i.__webglFramebuffer=[];for(var l=0;l<6;l++)i.__webglFramebuffer[l]=t.createFramebuffer()}else i.__webglFramebuffer=t.createFramebuffer();if(a){n.bindTexture(t.TEXTURE_CUBE_MAP,o.__webglTexture),w(t.TEXTURE_CUBE_MAP,e.texture,c);for(var l=0;l<6;l++)E(i.__webglFramebuffer[l],e,t.COLOR_ATTACHMENT0,t.TEXTURE_CUBE_MAP_POSITIVE_X+l);h(e.texture,c)&&p(t.TEXTURE_CUBE_MAP,e.texture,e.width,e.height),n.bindTexture(t.TEXTURE_CUBE_MAP,null)}else n.bindTexture(t.TEXTURE_2D,o.__webglTexture),w(t.TEXTURE_2D,e.texture,c),E(i.__webglFramebuffer,e,t.COLOR_ATTACHMENT0,t.TEXTURE_2D),h(e.texture,c)&&p(t.TEXTURE_2D,e.texture,e.width,e.height),n.bindTexture(t.TEXTURE_2D,null);e.depthBuffer&&M(e)}function O(e){var i=e.texture;if(h(i,u(e))){var o
1=e.isWebGLRenderTargetCube?t.TEXTURE_CUBE_MAP:t.TEXTURE_2D,s=r.get(i).__webglTexture;n.bindTexture(o,s),p(o,i,e.width,e.height),n.bindTexture(o,null)}}function A(t){var e=t.id,n=s.render.frame;L[e]!==n&&(L[e]=n,t.update())}var P,R="undefined"!=typeof WebGL2RenderingContext&&t instanceof WebGL2RenderingContext,L={};this.setTexture2D=g,this.setTextureCube=b,this.setTextureCubeDynamic=_,this.setupRenderTarget=C,this.updateRenderTargetMipmap=O}function Se(t,e){function n(n){var r;if(n===fa)return t.REPEAT;if(n===da)return t.CLAMP_TO_EDGE;if(n===ma)return t.MIRRORED_REPEAT;if(n===va)return t.NEAREST;if(n===ya)return t.NEAREST_MIPMAP_NEAREST;if(n===ga)return t.NEAREST_MIPMAP_LINEAR;if(n===ba)return t.LINEAR;if(n===_a)return t.LINEAR_MIPMAP_NEAREST;if(n===wa)return t.LINEAR_MIPMAP_LINEAR;if(n===xa)return t.UNSIGNED_BYTE;if(n===Pa)return t.UNSIGNED_SHORT_4_4_4_4;if(n===Ra)return t.UNSIGNED_SHORT_5_5_5_1;if(n===La)return t.UNSIGNED_SHORT_5_6_5;if(n===Ea)return t.BYTE;if(n===Sa)return t.SHORT;if(n===Ta)return t.UNSIGNED_SHORT;if(n===Ma)return t.INT;if(n===Ca)return t.UNSIGNED_INT;if(n===Oa)return t.FLOAT;if(n===Aa&&null!==(r=e.get("OES_texture_half_float")))return r.HALF_FLOAT_OES;if(n===Ia)return t.ALPHA;if(n===ka)return t.RGB;if(n===ja)return t.RGBA;if(n===Da)return t.LUMINANCE;if(n===Fa)return t.LUMINANCE_ALPHA;if(n===Ba)return t.DEPTH_COMPONENT;if(n===za)return t.DEPTH_STENCIL;if(n===Cs)return t.FUNC_ADD;if(n===Os)return t.FUNC_SUBTRACT;if(n===As)return t.FUNC_REVERSE_SUBTRACT;if(n===Ls)return t.ZERO;if(n===Ns)return t.ONE;if(n===Is)return t.SRC_COLOR;if(n===ks)return t.ONE_MINUS_SRC_COLOR;if(n===js)return t.SRC_ALPHA;if(n===Ds)return t.ONE_MINUS_SRC_ALPHA;if(n===Fs)return t.DST_ALPHA;if(n===Us)return t.ONE_MINUS_DST_ALPHA;if(n===Bs)return t.DST_COLOR;if(n===zs)return t.ONE_MINUS_DST_COLOR;if(n===Vs)return t.SRC_ALPHA_SATURATE;if((n===Va||n===Ha||n===Ga||n===Wa)&&null!==(r=e.get("WEBGL_compressed_texture_s3tc"))){if(n===Va)return r.COMPRESSED_RGB_S3TC_DXT1_EXT;if(n===Ha)return r.COMPRESSED_RGBA_S3TC_DXT1_EXT;if(n===Ga)return r.COMPRESSED_RGBA_S3TC_DXT3_EXT;if(n===Wa)return r.COMPRESSED_RGBA_S3TC_DXT5_EXT}if((n===qa||n===Za||n===Xa||n===Ka)&&null!==(r=e.get("WEBGL_compressed_texture_pvrtc"))){if
1(n===qa)return r.COMPRESSED_RGB_PVRTC_4BPPV1_IMG;if(n===Za)return r.COMPRESSED_RGB_PVRTC_2BPPV1_IMG;if(n===Xa)return r.COMPRESSED_RGBA_PVRTC_4BPPV1_IMG;if(n===Ka)return r.COMPRESSED_RGBA_PVRTC_2BPPV1_IMG}if(n===Ya&&null!==(r=e.get("WEBGL_compressed_texture_etc1")))return r.COMPRESSED_RGB_ETC1_WEBGL;if((n===Ja||n===Qa||n===$a||n===tu||n===eu||n===nu||n===ru||n===iu||n===ou||n===su||n===au||n===uu||n===cu||n===lu)&&null!==(r=e.get("WEBGL_compressed_texture_astc")))return n;if((n===Ps||n===Rs)&&null!==(r=e.get("EXT_blend_minmax"))){if(n===Ps)return r.MIN_EXT;if(n===Rs)return r.MAX_EXT}return n===Na&&null!==(r=e.get("WEBGL_depth_texture"))?r.UNSIGNED_INT_24_8_WEBGL:0}return{convert:n}}function Te(){E.call(this),this.type="Group"}function Me(t,e,n,r){S.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!==r?r:2e3,this.focus=10,this.aspect=void 0!==e?e:1,this.view=null,this.filmGauge=35,this.filmOffset=0,this.updateProjectionMatrix()}function Ce(t){Me.call(this),this.cameras=t||[]}function Oe(t){function e(){return null!==c&&!0===c.isPresenting}function n(){if(e()){var n=c.getEyeParameters("left"),r=n.renderWidth,i=n.renderHeight;S=t.getPixelRatio(),E=t.getSize(),t.setDrawingBufferSize(2*r,i,1),M.start()}else u.enabled&&(t.setDrawingBufferSize(E.width,E.height,S),M.stop())}function r(t){for(var e=navigator.getGamepads&&navigator.getGamepads(),n=0,r=0,i=e.length;n<i;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(r===t)return o;r++}}}function i(){for(var t=0;t<f.length;t++){var e=f[t],n=r(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(d),e.matrix.decompose(e.position,e.quaternion,e.scale),e.matrixWorldNeedsUpdate=!0,e.visible=!0;var o="Daydream Controller"===n.id?0:1;T!==n.buttons[o].pressed&&(T=n.buttons[o].pressed,T?e.dispatchEvent({type:"selectstart"}):(e.dispatchEvent({type:"selectend"}),e.dispatchEvent({type:"select"})))}else e.visible=!1}}var u=this,c=null,h=null,p=null,f=[],d=new o,m=new o;"undefined"!=typeof window&&"VRFrameData"in window&&(h=new window.VRFrameData,window.addEventListener("vrdisplaypresentchange",n,!1));var v=new o,y=new s,g=new a,_=new Me;_.bounds=new l(0,0,.5,1),_.layers.enable(1);var w=new Me;w.bounds=new l(.5,0,.5,1),w.layers.enable(2);var x=new Ce([_,w]);x.layers.enable(1),x.layers.enable(2);var E,S,T=!1;this.enabled=!1,this.userHeight=1.6,this.getController=function(t){var e=f[t];return void 0===e&&(e=new Te,e.matrixAutoUpdate=!1,e.visible=!1,f[t]=e),e},this.getDevice=function(){return c},this.setDevice=function(t){void 0!==t&&(c=t),M.setContext(t)},this.setPoseTarget=function(t){void 0!==t&&(p=t)},this.getCamera=function(t){if(null===c)return t.position.set(0,u.userHeight,0),t;c.depthNear=t.near,c.depthFar=t.far,c.getFrameData(h);var e=c.stageParameters;e?d.fromArray(e.sittingToStandingTransform):d.makeTranslation(0,u.userHeight,0);var n=h.pose,r=null!==p?p:t;if(r.matrix.copy(d),r.matrix.decompose(r.position,r.quaternion,r.scale),null!==n.orientation&&(y.fromArray(n.orientation),r.quaternion.multiply(y)),null!==n.position&&(y.setFromRotationMatrix(d),g.fromArray(n.position),g.applyQuaternion(y),r.position.add(g)),r.updateMatrixWorld(),!1===c.isPresenting)return t;_.near=t.near,w.near=t.near,_.far=t.far,w.far=t.far,x.matrixWorld.copy(t.matrixWorld),x.matrixWorldInverse.copy(t.matrixWorldInverse),_.matrixWorldInverse.fromArray(h.leftViewMatrix),w.matrixWorldInverse.fromArray(h.rightViewMatrix),m.getInverse(d),_.matrixWorldInverse.multiply(m),w.matrixWorldInverse.multiply(m);var o=r.parent;null!==o&&(v.getInverse(o.matrixWorld),_.matrixWorldInverse.multiply(v),w.matrixWorldInverse.multiply(v)),_.matrixWorld.getInverse(_.matrixWorldInverse),w.matrixWorld.getInverse(w.matrixWorldInverse),_.projectionMatrix.fromArray(h.leftProjectionMatrix),w.projectionMatrix.fromArray(h.rightProjectionMatrix),x.projectionMatrix.copy(_.projectionMatrix);var s=c.getLayers();if(s.length){var a=s[0];null!==a.leftBounds&&4===a.leftBounds.length&&_.bounds.fromArray(a.leftBounds),null!==a.rightBounds&&4===a.rightBounds.length&&w.bounds.fromArray(a.rightBounds)}return i(),x}
1,this.getStandingMatrix=function(){return d},this.isPresenting=e;var M=new b;this.setAnimationLoop=function(t){M.setAnimationLoop(t)},this.submitFrame=function(){e()&&c.submitFrame()},this.dispose=function(){"undefined"!=typeof window&&window.removeEventListener("vrdisplaypresentchange",n)}}function Ae(t){function e(){return null!==u&&null!==c}function n(t){var e=p[f.indexOf(t.inputSource)];e&&e.dispatchEvent({type:t.type})}function r(){t.setFramebuffer(null),g.stop()}function i(t,e){null===e?t.matrixWorld.copy(t.matrix):t.matrixWorld.multiplyMatrices(e.matrixWorld,t.matrix),t.matrixWorldInverse.getInverse(t.matrixWorld)}function o(t,e){if(null!==(h=e.getDevicePose(c)))for(var n=u.baseLayer,r=e.views,i=0;i<r.length;i++){var o=r[i],s=n.getViewport(o),a=h.getViewMatrix(o),l=v.cameras[i];l.matrix.fromArray(a).getInverse(l.matrix),l.projectionMatrix.fromArray(o.projectionMatrix),l.viewport.set(s.x,s.y,s.width,s.height),0===i&&(v.matrix.copy(l.matrix),v.projectionMatrix.copy(l.projectionMatrix))}for(var i=0;i<p.length;i++){var d=p[i],m=f[i];if(m){var g=e.getInputPose(m,c);if(null!==g){d.matrix.elements=g.pointerMatrix,d.matrix.decompose(d.position,d.rotation,d.scale),d.visible=!0;continue}}d.visible=!1}y&&y(t)}var s=t.context,a=null,u=null,c=null,h=null,p=[],f=[],d=new Me;d.layers.enable(1),d.viewport=new l;var m=new Me;m.layers.enable(2),m.viewport=new l;var v=new Ce([d,m]);v.layers.enable(1),v.layers.enable(2),this.enabled=!1,this.getController=function(t){var e=p[t];return void 0===e&&(e=new Te,e.matrixAutoUpdate=!1,e.visible=!1,p[t]=e),e},this.getDevice=function(){return a},this.setDevice=function(t){void 0!==t&&(a=t),s.setCompatibleXRDevice(t)},this.setSession=function(e,i){null!==(u=e)&&(u.addEventListener("select",n),u.addEventListener("selectstart",n),u.addEventListener("selectend",n),u.addEventListener("end",r),u.baseLayer=new XRWebGLLayer(u,s),u.requestFrameOfReference(i.frameOfReferenceType).then(function(e){c=e,t.setFramebuffer(u.baseLayer.framebuffer),g.setContext(u),g.start()}),f=u.getInputSources(),u.addEventListener("inputsourceschange",function(){f=u.getInputSources(),console.log(f)}))},this.getCamera=function(t){if(e()){var n=t.parent,r=v.cameras;i(v,n);for(var o=0;o<r.length;o++)i(r[o],n);t.matrixWorld.copy(v.matrixWorld);for(var s=t.children,o=0,a=s.length;o<a;o++)s[o].updateMatrixWorld(!0);return v}return t},this.isPresenting=e;var y=null,g=new b;g.setAnimationLoop(o),this.setAnimationLoop=function(t){y=t},this.dispose=function(){},this.getStandingMatrix=function(){return console.warn("THREE.WebXRManager: getStandingMatrix() is no longer needed."),new THREE.Matrix4},this.submitFrame=function(){}}function Pe(t){function e(){return null===ct?wt:1}function n(){Lt=new nt(K),Lt.get("WEBGL_depth_texture"),Lt.get("OES_texture_float"),Lt.get("OES_texture_float_linear"),Lt.get("OES_texture_half_float"),Lt.get("OES_texture_half_float_linear"),Lt.get("OES_standard_derivatives"),Lt.get("OES_element_index_uint"),Lt.get("ANGLE_instanced_arrays"),Yt=new Se(K,Lt),Nt=new tt(K,Lt,t),It=new xe(K,Lt,Yt),It.scissor(vt.copy(Et).multiplyScalar(wt)),It.viewport(mt.copy(xt).multiplyScalar(wt)),kt=new ot(K),jt=new ue,Dt=new Ee(K,Lt,It,jt,Nt,Yt,kt),Ft=new _(K),Ut=new rt(K,Ft,kt),Bt=new ut(Ut,kt),qt=new at(K),zt=new ae(Y,Lt,Nt),Vt=new pe,Ht=new ve,Gt=new Q(Y,It,Bt,G),Zt=new $(K,Lt,kt),Xt=new it(K,Lt,kt),Kt=new we(Y,K,It,Dt,Nt),kt.programs=zt.programs,Y.context=K,Y.capabilities=Nt,Y.extensions=Lt,Y.properties=jt,Y.renderLists=Vt,Y.state=It,Y.info=kt}function r(t){t.preventDefault(),console.log("THREE.WebGLRenderer: Context Lost."),J=!0}function i(){console.log("THREE.WebGLRenderer: Context Restored."),J=!1,n()}function s(t){var e=t.target;e.removeEventListener("dispose",s),u(e)}function u(t){c(t),jt.remove(t)}function c(t){var e=jt.get(t).program;t.program=void 0,void 0!==e&&zt.releaseProgram(e)}function h(t,e,n){t.render(function(t){Y.renderBufferImmediate(t,e,n)})}function p(t,e,n){if(n&&n.isInstancedBufferGeometry&&null===Lt.get("ANGLE_instanced_arrays"))return void console.error("THREE.WebGLRenderer.setupVertexAttributes: using THREE.InstancedBufferGeometry but hardware does not support extension ANGLE_
1instanced_arrays.");It.initAttributes();var r=n.attributes,i=e.getAttributes(),o=t.defaultAttributeValues;for(var s in i){var a=i[s];if(a>=0){var u=r[s];if(void 0!==u){var c=u.normalized,l=u.itemSize,h=Ft.get(u);if(void 0===h)continue;var p=h.buffer,f=h.type,d=h.bytesPerElement;if(u.isInterleavedBufferAttribute){var m=u.data,v=m.stride,y=u.offset;m&&m.isInstancedInterleavedBuffer?(It.enableAttributeAndDivisor(a,m.meshPerAttribute),void 0===n.maxInstancedCount&&(n.maxInstancedCount=m.meshPerAttribute*m.count)):It.enableAttribute(a),K.bindBuffer(K.ARRAY_BUFFER,p),K.vertexAttribPointer(a,l,f,c,v*d,y*d)}else u.isInstancedBufferAttribute?(It.enableAttributeAndDivisor(a,u.meshPerAttribute),void 0===n.maxInstancedCount&&(n.maxInstancedCount=u.meshPerAttribute*u.count)):It.enableAttribute(a),K.bindBuffer(K.ARRAY_BUFFER,p),K.vertexAttribPointer(a,l,f,c,0,0)}else if(void 0!==o){var g=o[s];if(void 0!==g)switch(g.length){case 2:K.vertexAttrib2fv(a,g);break;case 3:K.vertexAttrib3fv(a,g);break;case 4:K.vertexAttrib4fv(a,g);break;default:K.vertexAttrib1fv(a,g)}}}}It.disableUnusedAttributes()}function d(t){Jt.isPresenting()||$t&&$t(t)}function m(t,e,n){if(!1!==t.visible){if(t.layers.test(e.layers))if(t.isLight)X.pushLight(t),t.castShadow&&X.pushShadow(t);else if(t.isSprite)t.frustumCulled&&!Tt.intersectsSprite(t)||X.pushSprite(t);else if(t.isImmediateRenderObject)n&&Pt.setFromMatrixPosition(t.matrixWorld).applyMatrix4(At),Z.push(t,null,t.material,Pt.z,null);else if((t.isMesh||t.isLine||t.isPoints)&&(t.isSkinnedMesh&&t.skeleton.update(),!t.frustumCulled||Tt.intersectsObject(t))){n&&Pt.setFromMatrixPosition(t.matrixWorld).applyMatrix4(At);var r=Bt.update(t),i=t.material;if(Array.isArray(i))for(var o=r.groups,s=0,a=o.length;s<a;s++){var u=o[s],c=i[u.materialIndex];c&&c.visible&&Z.push(t,r,c,Pt.z,u)}else i.visible&&Z.push(t,r,i,Pt.z,null)}for(var l=t.children,s=0,a=l.length;s<a;s++)m(l[s],e,n)}}function v(t,e,n,r){for(var i=0,o=t.length;i<o;i++){var s=t[i],a=s.object,u=s.geometry,c=void 0===r?s.material:r,l=s.group;if(n.isArrayCamera){dt=n;for(var h=n.cameras,p=0,f=h.length;p<f;p++){var d=h[p];if(a.layers.test(d.layers)){if("viewport"in d)It.viewport(mt.copy(d.viewport));else{var m=d.bounds,v=m.x*bt,y=m.y*_t,b=m.z*bt,_=m.w*_t;It.viewport(mt.set(v,y,b,_).multiplyScalar(wt))}g(a,e,d,u,c,l)}}}else dt=null,g(a,e,n,u,c,l)}}function g(t,e,n,r,i,o){if(t.onBeforeRender(Y,e,n,r,i,o),X=Ht.get(e,dt||n),t.modelViewMatrix.multiplyMatrices(n.matrixWorldInverse,t.matrixWorld),t.normalMatrix.getNormalMatrix(t.modelViewMatrix),t.isImmediateRenderObject){var s=t.isMesh&&t.matrixWorld.determinant()<0;It.setMaterial(i,s);var a=x(n,e.fog,i,t);pt="",h(t,a,i)}else Y.renderBufferDirect(n,e.fog,r,i,t,o);t.onAfterRender(Y,e,n,r,i,o),X=Ht.get(e,dt||n)}function w(t,e,n){var r=jt.get(t),i=X.state.lights,o=X.state.shadowsArray,a=zt.getParameters(t,i.state,o,e,Mt.numPlanes,Mt.numIntersection,n),u=zt.getProgramCode(t,a),l=r.program,h=!0;if(void 0===l)t.addEventListener("dispose",s);else if(l.code!==u)c(t);else if(r.lightsHash!==i.state.hash)jt.update(t,"lightsHash",i.state.hash),h=!1;else{if(void 0!==a.shaderID)return;h=!1}if(h){if(a.shaderID){var p=zu[a.shaderID];r.shader={name:t.type,uniforms:Fu.clone(p.uniforms),vertexShader:p.vertexShader,fragmentShader:p.fragmentShader}}else r.shader={name:t.type,uniforms:t.uniforms,vertexShader:t.vertexShader,fragmentShader:t.fragmentShader};t.onBeforeCompile(r.shader,Y),l=zt.acquireProgram(t,r.shader,a,u),r.program=l,t.program=l}var f=l.getAttributes();if(t.morphTargets){t.numSupportedMorphTargets=0;for(var d=0;d<Y.maxMorphTargets;d++)f["morphTarget"+d]>=0&&t.numSupportedMorphTargets++}if(t.morphNormals){t.numSupportedMorphNormals=0;for(var d=0;d<Y.maxMorphNormals;d++)f["morphNormal"+d]>=0&&t.numSupportedMorphNormals++}var m=r.shader.uniforms;(t.isShaderMaterial||t.isRawShaderMaterial)&&!0!==t.clipping||(r.numClippingPlanes=Mt.numPlanes,r.numIntersection=Mt.numIntersection,m.clippingPlanes=Mt.uniform),r.fog=e,r.lightsHash=i.state.hash,t.lights&&(m.ambientLightColor.value=i.state.ambient,m.directionalLights.value=i.state.directional,m.
vendor: 2,904 bytes, line 1
1spotLights.value=i.state.spot,m.rectAreaLights.value=i.state.rectArea,m.pointLights.value=i.state.point,m.hemisphereLights.value=i.state.hemi,m.directionalShadowMap.value=i.state.directionalShadowMap,m.directionalShadowMatrix.value=i.state.directionalShadowMatrix,m.spotShadowMap.value=i.state.spotShadowMap,m.spotShadowMatrix.value=i.state.spotShadowMatrix,m.pointShadowMap.value=i.state.pointShadowMap,m.pointShadowMatrix.value=i.state.pointShadowMatrix);var v=r.program.getUniforms(),y=Wt.seqWithValue(v.seq,m);r.uniformsList=y}function x(t,e,n,r){gt=0;var i=jt.get(n),o=X.state.lights;if(Ct&&(Ot||t!==ft)){var s=t===ft&&n.id===ht;Mt.setState(n.clippingPlanes,n.clipIntersection,n.clipShadows,t,i,s)}!1===n.needsUpdate&&(void 0===i.program?n.needsUpdate=!0:n.fog&&i.fog!==e?n.needsUpdate=!0:n.lights&&i.lightsHash!==o.state.hash?n.needsUpdate=!0:void 0===i.numClippingPlanes||i.numClippingPlanes===Mt.numPlanes&&i.numIntersection===Mt.numIntersection||(n.needsUpdate=!0)),n.needsUpdate&&(w(n,e,r),n.needsUpdate=!1);var a=!1,u=!1,c=!1,l=i.program,h=l.getUniforms(),p=i.shader.uniforms;if(It.useProgram(l.program)&&(a=!0,u=!0,c=!0),n.id!==ht&&(ht=n.id,u=!0),a||t!==ft){if(h.setValue(K,"projectionMatrix",t.projectionMatrix),Nt.logarithmicDepthBuffer&&h.setValue(K,"logDepthBufFC",2/(Math.log(t.far+1)/Math.LN2)),ft!==(dt||t)&&(ft=dt||t,u=!0,c=!0),n.isShaderMaterial||n.isMeshPhongMaterial||n.isMeshStandardMaterial||n.envMap){var d=h.map.cameraPosition;void 0!==d&&d.setValue(K,Pt.setFromMatrixPosition(t.matrixWorld))}(n.isMeshPhongMaterial||n.isMeshLambertMaterial||n.isMeshBasicMaterial||n.isMeshStandardMaterial||n.isShaderMaterial||n.skinning)&&h.setValue(K,"viewMatrix",t.matrixWorldInverse)}if(n.skinning){h.setOptional(K,r,"bindMatrix"),h.setOptional(K,r,"bindMatrixInverse");var m=r.skeleton;if(m){var v=m.bones;if(Nt.floatVertexTextures){if(void 0===m.boneTexture){var y=Math.sqrt(4*v.length);y=ku.ceilPowerOfTwo(y),y=Math.max(y,4);var g=new Float32Array(y*y*4);g.set(m.boneMatrices);var b=new f(g,y,y,ja,Oa);b.needsUpdate=!0,m.boneMatrices=g,m.boneTexture=b,m.boneTextureSize=y}h.setValue(K,"boneTexture",m.boneTexture),h.setValue(K,"boneTextureSize",m.boneTextureSize)}else h.setOptional(K,m,"boneMatrices")}}return u&&(h.setValue(K,"toneMappingExposure",Y.toneMappingExposure),h.setValue(K,"toneMappingWhitePoint",Y.toneMappingWhitePoint),n.lights&&j(p,c),e&&n.fog&&C(p,e),n.isMeshBasicMaterial?E(p,n):n.isMeshLambertMaterial?(E(p,n),O(p,n)):n.isMeshPhongMaterial?(E(p,n),n.isMeshToonMaterial?P(p,n):A(p,n)):n.isMeshStandardMaterial?(E(p,n),n.isMeshPhysicalMaterial?L(p,n):R(p,n)):n.isMeshDepthMaterial?(E(p,n),N(p,n)):n.isMeshDistanceMaterial?(E(p,n),I(p,n)):n.isMeshNormalMaterial?(E(p,n),k(p,n)):n.isLineBasicMaterial?(S(p,n),n.isLineDashedMaterial&&T(p,n)):n.isPointsMaterial?M(p,n):n.isShadowMaterial&&(p.color.value=n.color,p.opacity.value=n.opacity),void 0!==p.ltc_1&&(p.ltc_1.value=
1Bu.LTC_1),void 0!==p.ltc_2&&(p.ltc_2.value=Bu.LTC_2),Wt.upload(K,i.uniformsList,p,Y)),n.isShaderMaterial&&!0===n.uniformsNeedUpdate&&(Wt.upload(K,i.uniformsList,p,Y),n.uniformsNeedUpdate=!1),h.setValue(K,"modelViewMatrix",r.modelViewMatrix),h.setValue(K,"normalMatrix",r.normalMatrix),h.setValue(K,"modelMatrix",r.matrixWorld),l}function E(t,e){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&&e.envMap.isCubeTexture?-1:1,t.reflectivity.value=e.reflectivity,t.refractionRatio.value=e.refractionRatio,t.maxMipLevel.value=jt.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);var n;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 S(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity}function T(t,e){t.dashSize.value=e.dashSize,t.totalSize.value=e.dashSize+e.gapSize,t.scale.value=e.scale}function M(t,e){t.diffuse.value=e.color,t.opacity.value=e.opacity,t.size.value=e.size*wt,t.scale.value=.5*_t,t.map.value=e.map,null!==e.map&&(!0===e.map.matrixAutoUpdate&&e.map.updateMatrix(),t.uvTransform.value.copy(e.map.matrix))}function C(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)}function O(t,e){e.emissiveMap&&(t.emissiveMap.value=e.emissiveMap)}function A(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===ds&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===ds&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function P(t,e){A(t,e),e.gradientMap&&(t.gradientMap.value=e.gradientMap)}function R(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===ds&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===ds&&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)}function L(t,e){R(t,e),t.reflectivity.value=e.reflectivity,t.clearCoat.value=e.clearCoat,t.clearCoatRoughness.value=e.clearCoatRoughness}function N(t,e){e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function I(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}function k(t,e){e.bumpMap&&(t.bumpMap.value=e.bumpMap,t.bumpScale.value=e.bumpScale,e.side===ds&&(t.bumpScale.value*=-1)),e.normalMap&&(t.normalMap.value=e.normalMap,t.normalScale.value.copy(e.normalScale),e.side===ds&&t.normalScale.value.negate()),e.displacementMap&&(t.displacementMap.value=e.displacementMap,t.displacementScale.value=e.displacementScale,t.displacementBias.value=e.displacementBias)}function j(t,e){t.ambientLightColor.needsUpdate=e,t.directionalLights.needsUpdate=e,t.pointLights.needsUpdate=e,t.spotLights.needsUpdate=e,t.rectAreaLights.needsUpdate=e,t.hemisphereLights.needsUpdate=e}function D(){var t=gt;return t>=Nt.maxTextures&&console.warn("THREE.WebGLRenderer: Trying to use "+t+" texture units while this GPU supports only "+Nt.maxTextures),gt+=1,t}console.log("THREE.WebGLRenderer",ns),t=t||{};var F=void 0!==t.canvas?t.canvas:document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),U=void 0!==t.context?t.context:null,B=void 0!==t.alpha&&t.alpha,z=void 0===t.depth||t.depth,V=void 0===t.stencil||t.stencil,H=void 0!==t.antialias&&t.antialias,G=void 0===t.premultipliedAlpha||t.premultipliedAlpha,W=void 0!==t.preserveDrawingBuffer&&t.preserveDrawingBuffer,q=void 0!==t.powerPreference?t.powerPreference:"default",Z=null,X=null;this.domElement=F,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=ea,this.toneMappingExposure=1,this.toneMappingWhitePoint=1,this.maxMorphTargets=8,this.maxMorphNormals=4;var K,Y=this,J=!1,st=null,ct=null,lt=null,ht=-1,pt="",ft=null,dt=null,mt=new l,vt=new l,yt=null,gt=0,bt=F.width,_t=F.height,wt=1,xt=new l(0,0,bt,_t),Et=ne
1w l(0,0,bt,_t),St=!1,Tt=new y,Mt=new et,Ct=!1,Ot=!1,At=new o,Pt=new a;try{var Rt={alpha:B,depth:z,stencil:V,antialias:H,premultipliedAlpha:G,preserveDrawingBuffer:W,powerPreference:q};if(F.addEventListener("webglcontextlost",r,!1),F.addEventListener("webglcontextrestored",i,!1),null===(K=U||F.getContext("webgl",Rt)||F.getContext("experimental-webgl",Rt)))throw null!==F.getContext("webgl")?new Error("Error creating WebGL context with your selected attributes."):new Error("Error creating WebGL context.");void 0===K.getShaderPrecisionFormat&&(K.getShaderPrecisionFormat=function(){return{rangeMin:1,rangeMax:1,precision:1}})}catch(t){console.error("THREE.WebGLRenderer: "+t.message)}var Lt,Nt,It,kt,jt,Dt,Ft,Ut,Bt,zt,Vt,Ht,Gt,qt,Zt,Xt,Kt,Yt;n();var Jt="xr"in navigator?new Ae(Y):new Oe(Y);this.vr=Jt;var Qt=new be(Y,Bt,Nt.maxTextureSize);this.shadowMap=Qt,this.getContext=function(){return K},this.getContextAttributes=function(){return K.getContextAttributes()},this.forceContextLoss=function(){var t=Lt.get("WEBGL_lose_context");t&&t.loseContext()},this.forceContextRestore=function(){var t=Lt.get("WEBGL_lose_context");t&&t.restoreContext()},this.getPixelRatio=function(){return wt},this.setPixelRatio=function(t){void 0!==t&&(wt=t,this.setSize(bt,_t,!1))},this.getSize=function(){return{width:bt,height:_t}},this.setSize=function(t,e,n){if(Jt.isPresenting())return void console.warn("THREE.WebGLRenderer: Can't change size while VR device is presenting.");bt=t,_t=e,F.width=t*wt,F.height=e*wt,!1!==n&&(F.style.width=t+"px",F.style.height=e+"px"),this.setViewport(0,0,t,e)},this.getDrawingBufferSize=function(){return{width:bt*wt,height:_t*wt}},this.setDrawingBufferSize=function(t,e,n){bt=t,_t=e,wt=n,F.width=t*n,F.height=e*n,this.setViewport(0,0,t,e)},this.getCurrentViewport=function(){return mt},this.setViewport=function(t,e,n,r){xt.set(t,_t-e-r,n,r),It.viewport(mt.copy(xt).multiplyScalar(wt))},this.setScissor=function(t,e,n,r){Et.set(t,_t-e-r,n,r),It.scissor(vt.copy(Et).multiplyScalar(wt))},this.setScissorTest=function(t){It.setScissorTest(St=t)},this.getClearColor=function(){return Gt.getClearColor()},this.setClearColor=function(){Gt.setClearColor.apply(Gt,arguments)},this.getClearAlpha=function(){return Gt.getClearAlpha()},this.setClearAlpha=function(){Gt.setClearAlpha.apply(Gt,arguments)},this.clear=function(t,e,n){var r=0;(void 0===t||t)&&(r|=K.COLOR_BUFFER_BIT),(void 0===e||e)&&(r|=K.DEPTH_BUFFER_BIT),(void 0===n||n)&&(r|=K.STENCIL_BUFFER_BIT),K.clear(r)},this.clearColor=function(){this.clear(!0,!1,!1)},this.clearDepth=function(){this.clear(!1,!0,!1)},this.clearStencil=function(){this.clear(!1,!1,!0)},this.clearTarget=function(t,e,n,r){this.setRenderTarget(t),this.clear(e,n,r)},this.dispose=function(){F.removeEventListener("webglcontextlost",r,!1),F.removeEventListener("webglcontextrestored",i,!1),Vt.dispose(),Ht.dispose(),jt.dispose(),Bt.dispose(),Jt.dispose(),te.stop()},this.renderBufferImmediate=function(t,e,n){It.initAttributes();var r=jt.get(t);t.hasPositions&&!r.position&&(r.position=K.createBuffer()),t.hasNormals&&!r.normal&&(r.normal=K.createBuffer()),t.hasUvs&&!r.uv&&(r.uv=K.createBuffer()),t.hasColors&&!r.color&&(r.color=K.createBuffer());var i=e.getAttributes();if(t.hasPositions&&(K.bindBuffer(K.ARRAY_BUFFER,r.position),K.bufferData(K.ARRAY_BUFFER,t.positionArray,K.DYNAMIC_DRAW),It.enableAttribute(i.position),K.vertexAttribPointer(i.position,3,K.FLOAT,!1,0,0)),t.hasNormals){if(K.bindBuffer(K.ARRAY_BUFFER,r.normal),!n.isMeshPhongMaterial&&!n.isMeshStandardMaterial&&!n.isMeshNormalMaterial&&!0===n.flatShading)for(var o=0,s=3*t.count;o<s;o+=9){var a=t.normalArray,u=(a[o+0]+a[o+3]+a[o+6])/3,c=(a[o+1]+a[o+4]+a[o+7])/3,l=(a[o+2]+a[o+5]+a[o+8])/3;a[o+0]=u,a[o+1]=c,a[o+2]=l,a[o+3]=u,a[o+4]=c,a[o+5]=l,a[o+6]=u,a[o+7]=c,a[o+8]=l}K.bufferData(K.ARRAY_BUFFER,t.normalArray,K.DYNAMIC_DRAW),It.enableAttribute(i.normal),K.vertexAttribPointer(i.normal,3,K.FLOAT,!1,0,0)}t.hasUvs&&n.map&&(K.bindBuffer(K.ARRAY_BUFFER,r.uv),K.bufferData(K.ARRAY_BUFFER,t.uvArray,K.DYNAMIC_DRAW),It.enableAttribute(i.uv),K.vertexAttribPointer(i.uv,2,K.FLOAT,!1,0,0)),t.hasColors&&n.vertexColors!==gs&&(K.bindBuffer(K.ARRAY_BUFFER,r.color),K.bufferData(K.ARRAY_BUFFER,t.colorArray,K.DYNAMIC_DRAW),It.enableAttribute(i.color),K.vertexAttribPointer(i.color,3,K.FLOAT,!1,0,0)),It.disableUnusedAttributes(),K.drawArrays(K.TRIANGLES,0,t.count),t.count=0},this.renderBufferDirect=function(t,n,r,i,o,s){var a=o.isMesh&&o.matrixWorld.determinant()<0;It.setMaterial(i,a);var u=x(t,n,i,o),c=r.id+"_"+u.id+"_"+(!0===i.wireframe),l=!1;c!==pt&&(pt=c,l=!0),o.morphTargetInfluences&&(qt.update(o,r,i,u),l=!0);var h=r.index,f=r.attributes.position,d=1;!0===i.wireframe&&(h=Ut.getWireframeAttribute(r),d=2);var m,v=Zt;null!==h&&(m=Ft.get(h),v=Xt,v.setIndex(m)),l&&(p(i,u,r),null!==h&&K.bindBuffer(K.ELEMENT_ARRAY_BUFFER,m.buffer));var y=1/0;null!==h?y=h.count:void 0!==f&&(y=f.count);var g=r.drawRange.start*d,b=r.drawRange.count*d,_=null!==s?s.start*d:0,w=null!==s?s.count*d:1/0,E=Math.max(g,_),S=Math.min(y,g+b,_+w)-1,T=Math.max(0,S-E+1);if(0!==T){if(o.isMesh)if(!0===i.wireframe)It.setLineWidth(i.wireframeLinewidth*e()),v.setMode(K.LINES);else switch(o.drawMode){case _u:v.setMode(K.TRIANGLES);break;case wu:v.setMode(K.TRIANGLE_STRIP);break;case xu:v.setMode(K.TRIANGLE_FAN)}else if(o.isLine){var M=i.linewidth;void 0===M&&(M=1),It.setLineWidth(M*e()),o.isLineSegments?v.setMode(K.LINES):o.isLine
1Loop?v.setMode(K.LINE_LOOP):v.setMode(K.LINE_STRIP)}else o.isPoints&&v.setMode(K.POINTS);r&&r.isInstancedBufferGeometry?r.maxInstancedCount>0&&v.renderInstances(r,E,T):v.render(E,T)}},this.compile=function(t,e){X=Ht.get(t,e),X.init(),t.traverse(function(t){t.isLight&&(X.pushLight(t),t.castShadow&&X.pushShadow(t))}),X.setupLights(e),t.traverse(function(e){if(e.material)if(Array.isArray(e.material))for(var n=0;n<e.material.length;n++)w(e.material[n],t.fog,e);else w(e.material,t.fog,e)})};var $t=null,te=new b;te.setAnimationLoop(d),"undefined"!=typeof window&&te.setContext(window),this.setAnimationLoop=function(t){$t=t,Jt.setAnimationLoop(t),te.start()},this.render=function(t,e,n,r){if(!e||!e.isCamera)return void console.error("THREE.WebGLRenderer.render: camera is not an instance of THREE.Camera.");if(!J){pt="",ht=-1,ft=null,!0===t.autoUpdate&&t.updateMatrixWorld(),null===e.parent&&e.updateMatrixWorld(),Jt.enabled&&(e=Jt.getCamera(e)),X=Ht.get(t,e),X.init(),t.onBeforeRender(Y,t,e,n),At.multiplyMatrices(e.projectionMatrix,e.matrixWorldInverse),Tt.setFromMatrix(At),Ot=this.localClippingEnabled,Ct=Mt.init(this.clippingPlanes,Ot,e),Z=Vt.get(t,e),Z.init(),m(t,e,Y.sortObjects),!0===Y.sortObjects&&Z.sort(),Ct&&Mt.beginShadows();var i=X.state.shadowsArray;Qt.render(i,t,e),X.setupLights(e),Ct&&Mt.endShadows(),this.info.autoReset&&this.info.reset(),void 0===n&&(n=null),this.setRenderTarget(n),Gt.render(Z,t,e,r);var o=Z.opaque,s=Z.transparent;if(t.overrideMaterial){var a=t.overrideMaterial;o.length&&v(o,t,e,a),s.length&&v(s,t,e,a)}else o.length&&v(o,t,e),s.length&&v(s,t,e);var u=X.state.spritesArray;Kt.render(u,t,e),n&&Dt.updateRenderTargetMipmap(n),It.buffers.depth.setTest(!0),It.buffers.depth.setMask(!0),It.buffers.color.setMask(!0),It.setPolygonOffset(!1),t.onAfterRender(Y,t,e),Jt.enabled&&Jt.submitFrame(),Z=null,X=null}},this.allocTextureUnit=D,this.setTexture2D=function(){var t=!1;return function(e,n){e&&e.isWebGLRenderTarget&&(t||(console.warn("THREE.WebGLRenderer.setTexture2D: don't use render targets as textures. Use their .texture property instead."),t=!0),e=e.texture),Dt.setTexture2D(e,n)}}(),this.setTexture=function(){var t=!1;return function(e,n){t||(console.warn("THREE.WebGLRenderer: .setTexture is deprecated, use setTexture2D instead."),t=!0),Dt.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?Dt.setTextureCube(e,n):Dt.setTextureCubeDynamic(e,n)}}(),this.setFramebuffer=function(t){st=t},this.getRenderTarget=function(){return ct},this.setRenderTarget=function(t){ct=t,t&&void 0===jt.get(t).__webglFramebuffer&&Dt.setupRenderTarget(t);var e=st,n=!1;if(t){var r=jt.get(t).__webglFramebuffer;t.isWebGLRenderTargetCube?(e=r[t.activeCubeFace],n=!0):e=r,mt.copy(t.viewport),vt.copy(t.scissor),yt=t.scissorTest}else mt.copy(xt).multiplyScalar(wt),vt.copy(Et).multiplyScalar(wt),yt=St;if(lt!==e&&(K.bindFramebuffer(K.FRAMEBUFFER,e),lt=e),It.viewport(mt),It.scissor(vt),It.setScissorTest(yt),n){var i=jt.get(t.texture);K.framebufferTexture2D(K.FRAMEBUFFER,K.COLOR_ATTACHMENT0,K.TEXTURE_CUBE_MAP_POSITIVE_X+t.activeCubeFace,i.__webglTexture,t.activeMipMapLevel)}},this.readRenderTargetPixels=function(t,e,n,r,i,o){if(!t||!t.isWebGLRenderTarget)return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not THREE.WebGLRenderTarget.");var s=jt.get(t).__webglFramebuffer;if(s){var a=!1;s!==lt&&(K.bindFramebuffer(K.FRAMEBUFFER,s),a=!0);try{var u=t.texture,c=u.format,l=u.type;if(c!==ja&&Yt.convert(c)!==K.getParameter(K.IMPLEMENTATION_COLOR_READ_FORMAT))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in RGBA or implementation defined format.");if(!(l===xa||Yt.convert(l)===K.getParameter(K.IMPLEMENTATION_COLOR_READ_TYPE)||l===Oa&&(Lt.get("OES_texture_float")||Lt.get("WEBGL_color_buffer_float"))||l===Aa&&Lt.get("EXT_color_buffer_half_float")))return void console.error("THREE.WebGLRenderer.readRenderTargetPixels: renderTarget is not in UnsignedByteType or implementation defined type.");K.checkFramebufferStatus(K.FRAMEBUFFER)===K.FRAMEBUFFER_COMPLETE?e>=0&&e<=t.width-r&&n>=0&&n<=t.height-i&&K.readPixels(e,n,r,i,Yt.convert(c),Yt.convert(l),o):console.error("THREE.WebGLRenderer.readRenderTargetPixels: readPixels from renderTarget failed. Framebuffer not complete.")}finally{a&&K.bindFramebuffer(K.FRAMEBUFFER,lt)}}},this.copyFramebufferToTexture=function(t,e,n){var r=e.image.width,i=e.image.height,o=Yt.convert(e.format);this.setTexture2D(e,0),K.copyTexImage2D(K.TEXTURE_2D,n||0,o,t.x,t.y,r,i,0)},this.copyTextureToTexture=function(t,e,n,r){var i=e.image.width,o=e.image.height,s=Yt.convert(n.format),a=Yt.convert(n.type);this.setTexture2D(n,0),e.isDataTexture?K.texSubImage2D(K.TEXTURE_2D,r||0,t.x,t.y,i,o,s,a,e.image.data):K.texSubImage2D(K.TEXTURE_2D,r||0,t.x,t.y,s,a,e.image)}}function Re(t,e){this.name="",this.color=new g(t),this.density=void 0!==e?e:25e-5}function Le(t,e,n){this.name="",this.color=new g(t),this.near=void 0!==e?e:1,this.far=void 0!==n?n:1e3}
vendor: 8,788 bytes, line 1
1function Ne(){E.call(this),this.type="Scene",this.background=null,this.fog=null,this.overrideMaterial=null,this.autoUpdate=!0}function Ie(t){W.call(this),this.type="SpriteMaterial",this.color=new g(16777215),this.map=null,this.rotation=0,this.fog=!1,this.lights=!1,this.setValues(t)}function ke(t){E.call(this),this.type="Sprite",this.material=void 0!==t?t:new Ie,this.center=new i(.5,.5)}function je(){E.call(this),this.type="LOD",Object.defineProperties(this,{levels:{enumerable:!0,value:[]}})}function De(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,r=this.bones.length;n<r;n++)this.boneInverses.push(new o)}}function Fe(){E.call(this),this.type="Bone"}function Ue(t,e){J.call(this,t,e),this.type="SkinnedMesh",this.bindMode="attached",this.bindMatrix=new o,this.bindMatrixInverse=new o;var n=this.initBones(),r=new De(n);this.bind(r,this.matrixWorld),this.normalizeSkinWeights()}function Be(t){W.call(this),this.type="LineBasicMaterial",this.color=new g(16777215),this.linewidth=1,this.linecap="round",this.linejoin="round",this.lights=!1,this.setValues(t)}function ze(t,e,n){if(1===n)return console.warn("THREE.Line: parameter THREE.LinePieces no longer supported. Created THREE.LineSegments instead."),new Ve(t,e);E.call(this),this.type="Line",this.geometry=void 0!==t?t:new B,this.material=void 0!==e?e:new Be({color:16777215*Math.random()})}function Ve(t,e){ze.call(this,t,e),this.type="LineSegments"}function He(t,e){ze.call(this,t,e),this.type="LineLoop"}function Ge(t){W.call(this),this.type="PointsMaterial",this.color=new g(16777215),this.map=null,this.size=1,this.sizeAttenuation=!0,this.morphTargets=!1,this.lights=!1,this.setValues(t)}function We(t,e){E.call(this),this.type="Points",this.geometry=void 0!==t?t:new B,this.material=void 0!==e?e:new Ge({color:16777215*Math.random()})}function qe(t,e,n,r,i,o,s,a,u){c.call(this,t,e,n,r,i,o,s,a,u),this.generateMipmaps=!1}function Ze(t,e,n,r,i,o,s,a,u,l,h,p){c.call(this,null,o,s,a,u,l,r,i,h,p),this.image={width:e,height:n},this.mipmaps=t,this.flipY=!1,this.generateMipmaps=!1}function Xe(t,e,n,r,i,o,s,a,u,l){if((l=void 0!==l?l:Ba)!==Ba&&l!==za)throw new Error("DepthTexture format must be either THREE.DepthFormat or THREE.DepthStencilFormat");void 0===n&&l===Ba&&(n=Ta),void 0===n&&l===za&&(n=Na),c.call(this,null,r,i,o,s,a,l,n,u),this.image={width:t,height:e},this.magFilter=void 0!==s?s:va,this.minFilter=void 0!==a?a:va,this.flipY=!1,this.generateMipmaps=!1}function Ke(t){B.call(this),this.type="WireframeGeometry";var e,n,r,i,o,s,u,c,l,h,p=[],f=[0,0],d={},m=["a","b","c"];if(t&&t.isGeometry){var v=t.faces;for(e=0,r=v.length;e<r;e++){var y=v[e];for(n=0;n<3;n++)u=y[m[n]],c=y[m[(n+1)%3]],f[0]=Math.min(u,c),f[1]=Math.max(u,c),l=f[0]+","+f[1],void 0===d[l]&&(d[l]={index1:f[0],index2:f[1]})}for(l in d)s=d[l],h=t.vertices[s.index1],p.push(h.x,h.y,h.z),h=t.vertices[s.index2],p.push(h.x,h.y,h.z)}else if(t&&t.isBufferGeometry){var g,b,_,w,x,E,S,T;if(h=new a,null!==t.index){for(g=t.attributes.position,b=t.index,_=t.groups,0===_.length&&(_=[{start:0,count:b.count,materialIndex:0}]),i=0,o=_.length;i<o;++i)for(w=_[i],x=w.start,E=w.count,e=x,r=x+E;e<r;e+=3)for(n=0;n<3;n++)u=b.getX(e+n),c=b.getX(e+(n+1)%3),f[0]=Math.min(u,c),f[1]=Math.max(u,c),l=f[0]+","+f[1],void 0===d[l]&&(d[l]={index1:f[0],index2:f[1]});for(l in d)s=d[l],h.fromBufferAttribute(g,s.index1),p.push(h.x,h.y,h.z),h.fromBufferAttribute(g,s.index2),p.push(h.x,h.y,h.z)}else for(g=t.attributes.position,e=0,r=g.count/3;e<r;e++)for(n=0;n<3;n++)S=3*e+n,h.fromBufferAttribute(g,S),p.push(h.x,h.y,h.z),T=3*e+(n+1)%3,h.fromBufferAttribute(g,T),p.push(h.x,h.y,h.z)}this.addAttribute("position",new j(p,3))}function Ye(t,e,n){C.call(this),this.type="ParametricGeometry",this.parameters={func:t,slices:e,stacks:n},this.fromBufferGeometry(new Je(t,e,n)),this.mergeVertices()}function Je(t,e,n){B.call(this),this.type="ParametricBufferGeometry",this.parameters={func:t,slices:e,stacks:n};var r,i,o=[],s=[],u=[],c=[],l=new a,h=new a,p=new a,f=new a,d=new a;t.length<3&&console.error("THREE.ParametricGeometry: Function must now modify a Vector3 as third parameter.");var m=e+1;for(r=0;r<=n;r++){var v=r/n;for(i=0;i<=e;i++){var y=i/e;t(y,v,h),s.push(h.x,h.y,h.z),y-1e-5>=0?(t(y-1e-5,v,p),f.subVectors(h,p)):(t(y+1e-5,v,p),f.subVectors(p,h)),v-1e-5>=0?(t(y,v-1e-5,p),d.subVectors(h,p)):(t(y,v+1e-5,p),d.subVectors(p,h)),l.crossVectors(f,d).normalize(),u.push(l.x,l.y,l.z),c.push(y,v)}}for(r=0;r<n;r++)for(i=0;i<e;i++){var g=r*m+i,b=r*m+i+1,_=(r+1)*m+i+1,w=(r+1)*m+i;o.push(g,b,w),o.push(b,_,w)}this.setIndex(o),this.addAttribute("position",new j(s,3)),this.addAttribute("normal",new j(u,3)),this.addAttribute("uv",new j(c,2))}function Qe(t,e,n,r){C.call(this),this.type="PolyhedronGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:r},this.fromBufferGeometry(new $e(t,e,n,r)),this.mergeVertices()}function $e(t,e,n,r){function o(t,e,n,r){var i,o,s=Math.pow(2,r),a=[];for(i=0;i<=s;i++){a[i]=[];var c=t.clone().lerp(n,i/s),l=e.clone().lerp(n,i/s),h=s-i;for(o=0;o<=h;o++)a[i][o]=0===o&&i===s?c:c.clone().lerp(l,o/h)}for(i=0;i<s;i++)for(o=0;o<2*(s-i)-1;o++){var p=Math.floor(o/2);o%2==0?(u(a[i][p+1]),u(a[i+1][p]),u(a[i][p])):(u(a[i][p+1]),u(a[i+1][p+1]),u(a[i+1][p]))}}function s(){for(var t=0;t<m.length;t+=6){var e=m[t+0],n=m[t+2],r=m[t+4],i=Math.max(e,n,r),o=Math.min(e,n,r);i>.9&&o<.1&&(e<.2&&(m[t+0]+=1),n<.2&&(m[t+2]+=1),r<.2&&(m[t+4]+=1))}}function u(t){d.push(t.x,t.y,t.z)}function c(e,n){var r=3*e;n.x=t[r+0],n.y=t[r+1],n.z=t[r+2]}function l(){for(var t=new a,e=new a,n=new a,r=new a,o=new i,s=new i,u=new i,c=0,l=0;c<d.length;c+=9,l+=6){t.set(d[c+0],d[c+1],d[c+2]),e.set(d[c+3],d[c+4],d[c+5]),n.set(d[c+6],d[c+7],d[c+8]),o.set(m[l+0],m[l+1]),s.set(m[l+2],m[l+3]),u.set(m[l+4],m[l+5]),r.copy(t).add(e).add(n).divideScalar(3);var f=p(r);h(o,l+0,t,f),h(s,l+2,e,f),h(u,l+4,n,f)}}function h(t,e,n,r){r<0&&1===t.x&&(m[e]=t.x-1),0===n.x&&0===n.z&&(m[e]=r/2/Math.PI+.5)}function p(t){return Math.atan2(t.z,-t.x)}function f(t){return Math.atan2(-t.y,Math.sqrt(t.x*t.x+t.z*t.z))}B.call(this),this.type="PolyhedronBufferGeometry",this.parameters={vertices:t,indices:e,radius:n,detail:r},n=n||1,r=r||0;var d=[],m=[];!function(t){for(var n=new a,r=new a,i=new a,s=0;s<e.length;s+=3)c(e[s+0],n),c(e[s+1],r),c(e[s+2],i),o(n,r,i,t)}(r),function(t){for(var e=new a,n=0;n<d.length;n+=3)e.x=d[n+0],e.y=d[n+1],e.z=d[n+2],e.normalize().multiplyScalar(t),d[n+0]=e.x,d[n+1]=e.y,d[n+2]=e.z}(n),function(){for(var t=new a,e=0;e<d.length;e+=3){t.x=d[e+0],t.y=d[e+1],t.z=d[e+2];var n=p(t)/2/Math.PI+.5,r=f(t)/Math.PI+.5;m.push(n,1-r)}l(),s()}(),this.addAttribute("position",new j(d,3)),this.addAttribute("normal",new j(d.slice(),3)),this.addAttribute("uv",new j(m,2)),0===r?this.computeVertexNormals():this.normalizeNormals()}function tn(t,e){C.call(this),this.type="TetrahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new en(t,e)),this.mergeVertices()}function en(t,e){var n=[1,1,1,-1,-1,1,-1,1,-1,1,-1,-1],r=[2,1,0,0,3,2,1,3,0,2,3,1];$e.call(this,n,r,t,e),this.type="TetrahedronBufferGeometry",this.parameters={radius:t,detail:e}}function nn(t,e){C.call(this),this.type="OctahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new rn(t,e)),this.mergeVertices()}function rn(t,e){var n=[1,0,0,-1,0,0,0,1,0,0,-1,0,0,0,1,0,0,-1],r=[0,2,4,0,4,3,0,3,5,0,5,2,1,2,5,1,5,3,1,3,4,1,4,2];$e.call(this,n,r,t,e),this.type="OctahedronBufferGeometry",this.parameters={radius:t,detail:e}}function on(t,e){C.call(this),this.type="IcosahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new sn(t,e)),this.mergeVertices()}function sn(t,e){var n=(1+Math.sqrt(5))/2,r=[-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],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];$e.call(this,r,i,t,e),this.type="IcosahedronBufferGeometry",this.parameters={radius:t,detail:e}}function an(t,e){C.call(this),this.type="DodecahedronGeometry",this.parameters={radius:t,detail:e},this.fromBufferGeometry(new un(t,e)),this.mergeVertices()}function un(t,e){var n=(1+Math.sqrt(5))/2,r=1/n,i=[-1,-1,-1,-1,-1,1,-1,1,-1,-1,1,1,1,-1,-1,1,-1,1,1,1,-1,1,1,1,0,-r,-n,0,-r,n,0,r,-n,0,r,n,-r,-n,0,-r,n,0,r,-n,0,r,n,0,-n,0,-r,n,0,-r,-n,0,r,n,0,r],o=[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,
vendor: 4,354 bytes, line 1
119,5,14,19,14,4,19,4,17,1,12,14,1,14,5,1,5,9];$e.call(this,i,o,t,e),this.type="DodecahedronBufferGeometry",this.parameters={radius:t,detail:e}}function cn(t,e,n,r,i,o){C.call(this),this.type="TubeGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:r,closed:i},void 0!==o&&console.warn("THREE.TubeGeometry: taper has been removed.");var s=new ln(t,e,n,r,i);this.tangents=s.tangents,this.normals=s.normals,this.binormals=s.binormals,this.fromBufferGeometry(s),this.mergeVertices()}function ln(t,e,n,r,o){function s(i){v=t.getPointAt(i/e,v);var o=l.normals[i],s=l.binormals[i];for(p=0;p<=r;p++){var a=p/r*Math.PI*2,u=Math.sin(a),c=-Math.cos(a);d.x=c*o.x+u*s.x,d.y=c*o.y+u*s.y,d.z=c*o.z+u*s.z,d.normalize(),g.push(d.x,d.y,d.z),f.x=v.x+n*d.x,f.y=v.y+n*d.y,f.z=v.z+n*d.z,y.push(f.x,f.y,f.z)}}function u(){for(p=1;p<=e;p++)for(h=1;h<=r;h++){var t=(r+1)*(p-1)+(h-1),n=(r+1)*p+(h-1),i=(r+1)*p+h,o=(r+1)*(p-1)+h;_.push(t,n,o),_.push(n,i,o)}}function c(){for(h=0;h<=e;h++)for(p=0;p<=r;p++)m.x=h/e,m.y=p/r,b.push(m.x,m.y)}B.call(this),this.type="TubeBufferGeometry",this.parameters={path:t,tubularSegments:e,radius:n,radialSegments:r,closed:o},e=e||64,n=n||1,r=r||8,o=o||!1;var l=t.computeFrenetFrames(e,o);this.tangents=l.tangents,this.normals=l.normals,this.binormals=l.binormals;var h,p,f=new a,d=new a,m=new i,v=new a,y=[],g=[],b=[],_=[];!function(){for(h=0;h<e;h++)s(h);s(!1===o?e:0),c(),u()}(),this.setIndex(_),this.addAttribute("position",new j(y,3)),this.addAttribute("normal",new j(g,3)),this.addAttribute("uv",new j(b,2))}function hn(t,e,n,r,i,o,s){C.call(this),this.type="TorusKnotGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:r,p:i,q:o},void 0!==s&&console.warn("THREE.TorusKnotGeometry: heightScale has been deprecated. Use .scale( x, y, z ) instead."),this.fromBufferGeometry(new pn(t,e,n,r,i,o)),this.mergeVertices()}function pn(t,e,n,r,i,o){function s(t,e,n,r,i){var o=Math.cos(t),s=Math.sin(t),a=n/e*t,u=Math.cos(a);i.x=r*(2+u)*.5*o,i.y=r*(2+u)*s*.5,i.z=r*Math.sin(a)*.5}B.call(this),this.type="TorusKnotBufferGeometry",this.parameters={radius:t,tube:e,tubularSegments:n,radialSegments:r,p:i,q:o},t=t||1,e=e||.4,n=Math.floor(n)||64,r=Math.floor(r)||8,i=i||2,o=o||3;var u,c,l=[],h=[],p=[],f=[],d=new a,m=new a,v=new a,y=new a,g=new a,b=new a,_=new a;for(u=0;u<=n;++u){var w=u/n*i*Math.PI*2;for(s(w,i,o,t,v),s(w+.01,i,o,t,y),b.subVectors(y,v),_.addVectors(y,v),g.crossVectors(b,_),_.crossVectors(g,b),g.normalize(),_.normalize(),c=0;c<=r;++c){var x=c/r*Math.PI*2,E=-e*Math.cos(x),S=e*Math.sin(x);d.x=v.x+(E*_.x+S*g.x),d.y=v.y+(E*_.y+S*g.y),d.z=v.z+(E*_.z+S*g.z),h.push(d.x,d.y,d.z),m.subVectors(d,v).normalize(),p.push(m.x,m.y,m.z),f.push(u/n),f.push(c/r)}}for(c=1;c<=n;c++)for(u=1;u<=r;u++){var T=(r+1)*(c-1)+(u-1),M=(r+1)*c+(u-1),C=(r+1)*c+u,O=(r+1)*(c-1)+u;l.push(T,M,O),l.push(M,C,O)}this.setIndex(l),this.addAttribute("position",new j(h,3)),this.addAttribute("normal",new j(p,3)),this.addAttribute("uv",new j(f,2))}function fn(t,e,n,r,i){C.call(this),this.type="TorusGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:r,arc:i},this.fromBufferGeometry(new dn(t,e,n,r,i)),this.mergeVertices()}function dn(t,e,n,r,i){B.call(this),this.type="TorusBufferGeometry",this.parameters={radius:t,tube:e,radialSegments:n,tubularSegments:r,arc:i},t=t||1,e=e||.4,n=Math.floor(n)||8,r=Math.floor(r)||6,i=i||2*Math.PI;var o,s,u=[],c=[],l=[],h=[],p=new a,f=new a,d=new a;for(o=0;o<=n;o++)for(s=0;s<=r;s++){var m=s/r*i,v=o/n*Math.PI*2;f.x=(t+e*Math.cos(v))*Math.cos(m),f.y=(t+e*Math.cos(v))*Math.sin(m),f.z=e*Math.sin(v),c.push(f.x,f.y,f.z),p.x=t*Math.cos(m),p.y=t*Math.sin(m),d.subVectors(f,p).normalize(),l.push(d.x,d.y,d.z),h.push(s/r),h.push(o/n)}for(o=1;o<=n;o++)for(s=1;s<=r;s++){var y=(r+1)*o+s-1,g=(r+1)*(o-1)+s-1,b=(r+1)*(o-1)+s,_=(r+1)*o+s;u.push(y,g,_),u.push(g,b,_)}this.setIndex(u),this.addAttribute("position",new j(c,3)),this.addAttribute("normal",new j(l,3)),this.addAttribute("uv",new j(h,2))}function mn(t,e,n,r,i){var o,s;if(i===Vn(t,e,n,r)>0)for(o=e;o<n;o+=r)s=Un(o,t[o],t[o+1],s);else for(o=n-r;o>=e;o-=r)s=Un(o,t[o],t[o+1],s);return s&&Nn(s,s.next)&&(Bn(s),s=s.next),s}function vn(t,e){if(!t)return t;e||(e=t);var n,r=t;do{if(n=!1,r.steiner||!Nn(r,r.next)&&0!==Ln(r.prev,r,r.next))r=r.next;else{if(Bn(r),(r=e=r.prev)===r.next)break;n=!0}}while(n||r!==e);return e}
vendor: 1,913 bytes, line 1
1function yn(t,e,n,r,i,o,s){if(t){!s&&o&&Mn(t,r,i,o);for(var a,u,c=t;t.prev!==t.next;)if(a=t.prev,u=t.next,o?bn(t,r,i,o):gn(t))e.push(a.i/n),e.push(t.i/n),e.push(u.i/n),Bn(t),t=u.next,c=u.next;else if((t=u)===c){s?1===s?(t=_n(t,e,n),yn(t,e,n,r,i,o,2)):2===s&&wn(t,e,n,r,i,o):yn(vn(t),e,n,r,i,o,1);break}}}function gn(t){var e=t.prev,n=t,r=t.next;if(Ln(e,n,r)>=0)return!1;for(var i=t.next.next;i!==t.prev;){if(Pn(e.x,e.y,n.x,n.y,r.x,r.y,i.x,i.y)&&Ln(i.prev,i,i.next)>=0)return!1;i=i.next}return!0}function bn(t,e,n,r){var i=t.prev,o=t,s=t.next;if(Ln(i,o,s)>=0)return!1;for(var a=i.x<o.x?i.x<s.x?i.x:s.x:o.x<s.x?o.x:s.x,u=i.y<o.y?i.y<s.y?i.y:s.y:o.y<s.y?o.y:s.y,c=i.x>o.x?i.x>s.x?i.x:s.x:o.x>s.x?o.x:s.x,l=i.y>o.y?i.y>s.y?i.y:s.y:o.y>s.y?o.y:s.y,h=On(a,u,e,n,r),p=On(c,l,e,n,r),f=t.nextZ;f&&f.z<=p;){if(f!==t.prev&&f!==t.next&&Pn(i.x,i.y,o.x,o.y,s.x,s.y,f.x,f.y)&&Ln(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&&Pn(i.x,i.y,o.x,o.y,s.x,s.y,f.x,f.y)&&Ln(f.prev,f,f.next)>=0)return!1;f=f.prevZ}return!0}function _n(t,e,n){var r=t;do{var i=r.prev,o=r.next.next;!Nn(i,o)&&In(i,r,r.next,o)&&jn(i,o)&&jn(o,i)&&(e.push(i.i/n),e.push(r.i/n),e.push(o.i/n),Bn(r),Bn(r.next),r=t=o),r=r.next}while(r!==t);return r}function wn(t,e,n,r,i,o){var s=t;do{for(var a=s.next.next;a!==s.prev;){if(s.i!==a.i&&Rn(s,a)){var u=Fn(s,a);return s=vn(s,s.next),u=vn(u,u.next),yn(s,e,n,r,i,o),void yn(u,e,n,r,i,o)}a=a.next}s=s.next}while(s!==t)}function xn(t,e,n,r){var i,o,s,a,u,c=[];for(i=0,o=e.length;i<o;i++)s=e[i]*r,a=i<o-1?e[i+1]*r:t.length,u=mn(t,s,a,r,!1),u===u.next&&(u.steiner=!0),c.push(An(u));for(c.sort(En),i=0;i<c.length;i++)Sn(c[i],n),n=vn(n,n.next);return n}function En(t,e){return t.x-e.x}function Sn(t,e){if(e=Tn(t,e)){var n=Fn(e,t);vn(n,n.next)}}function Tn(t,e){var n,r=e,i=t.x,o=t.y,s=-1/0;do{if(o<=r.y&&o>=r.next.y&&r.next.y!==r.y){var a=r.x+(o-r.y)*(r.next.x-r.x)/(r.next.y-r.y
vendor: 5,143 bytes, line 1
1);if(a<=i&&a>s){if(s=a,a===i){if(o===r.y)return r;if(o===r.next.y)return r.next}n=r.x<r.next.x?r:r.next}}r=r.next}while(r!==e);if(!n)return null;if(i===s)return n.prev;var u,c=n,l=n.x,h=n.y,p=1/0;for(r=n.next;r!==c;)i>=r.x&&r.x>=l&&i!==r.x&&Pn(o<h?i:s,o,l,h,o<h?s:i,o,r.x,r.y)&&((u=Math.abs(o-r.y)/(i-r.x))<p||u===p&&r.x>n.x)&&jn(r,t)&&(n=r,p=u),r=r.next;return n}function Mn(t,e,n,r){var i=t;do{null===i.z&&(i.z=On(i.x,i.y,e,n,r)),i.prevZ=i.prev,i.nextZ=i.next,i=i.next}while(i!==t);i.prevZ.nextZ=null,i.prevZ=null,Cn(i)}function Cn(t){var e,n,r,i,o,s,a,u,c=1;do{for(n=t,t=null,o=null,s=0;n;){for(s++,r=n,a=0,e=0;e<c&&(a++,r=r.nextZ);e++);for(u=c;a>0||u>0&&r;)0!==a&&(0===u||!r||n.z<=r.z)?(i=n,n=n.nextZ,a--):(i=r,r=r.nextZ,u--),o?o.nextZ=i:t=i,i.prevZ=o,o=i;n=r}o.nextZ=null,c*=2}while(s>1);return t}function On(t,e,n,r,i){return t=32767*(t-n)*i,e=32767*(e-r)*i,t=16711935&(t|t<<8),t=252645135&(t|t<<4),t=858993459&(t|t<<2),t=1431655765&(t|t<<1),e=16711935&(e|e<<8),e=252645135&(e|e<<4),e=858993459&(e|e<<2),e=1431655765&(e|e<<1),t|e<<1}function An(t){var e=t,n=t;do{e.x<n.x&&(n=e),e=e.next}while(e!==t);return n}function Pn(t,e,n,r,i,o,s,a){return(i-s)*(e-a)-(t-s)*(o-a)>=0&&(t-s)*(r-a)-(n-s)*(e-a)>=0&&(n-s)*(o-a)-(i-s)*(r-a)>=0}function Rn(t,e){return t.next.i!==e.i&&t.prev.i!==e.i&&!kn(t,e)&&jn(t,e)&&jn(e,t)&&Dn(t,e)}function Ln(t,e,n){return(e.y-t.y)*(n.x-e.x)-(e.x-t.x)*(n.y-e.y)}function Nn(t,e){return t.x===e.x&&t.y===e.y}function In(t,e,n,r){return!!(Nn(t,e)&&Nn(n,r)||Nn(t,r)&&Nn(n,e))||Ln(t,e,n)>0!=Ln(t,e,r)>0&&Ln(n,r,t)>0!=Ln(n,r,e)>0}function kn(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&&In(n,n.next,t,e))return!0;n=n.next}while(n!==t);return!1}function jn(t,e){return Ln(t.prev,t,t.next)<0?Ln(t,e,t.next)>=0&&Ln(t,t.prev,e)>=0:Ln(t,e,t.prev)<0||Ln(t,t.next,e)<0}function Dn(t,e){var n=t,r=!1,i=(t.x+e.x)/2,o=(t.y+e.y)/2;do{n.y>o!=n.next.y>o&&n.next.y!==n.y&&i<(n.next.x-n.x)*(o-n.y)/(n.next.y-n.y)+n.x&&(r=!r),n=n.next}while(n!==t);return r}function Fn(t,e){var n=new zn(t.i,t.x,t.y),r=new zn(e.i,e.x,e.y),i=t.next,o=e.prev;return t.next=e,e.prev=t,n.next=i,i.prev=n,r.next=n,n.prev=r,o.next=r,r.prev=o,r}function Un(t,e,n,r){var i=new zn(t,e,n);return r?(i.next=r.next,i.prev=r,r.next.prev=i,r.next=i):(i.prev=i,i.next=i),i}function Bn(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 zn(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}function Vn(t,e,n,r){for(var i=0,o=e,s=n-r;o<n;o+=r)i+=(t[s]-t[o])*(t[o+1]+t[s+1]),s=o;return i}function Hn(t){var e=t.length;e>2&&t[e-1].equals(t[0])&&t.pop()}function Gn(t,e){for(var n=0;n<e.length;n++)t.push(e[n].x),t.push(e[n].y)}function Wn(t,e){C.call(this),this.type="ExtrudeGeometry",this.parameters={shapes:t,options:e},this.fromBufferGeometry(new qn(t,e)),this.mergeVertices()}function qn(t,e){B.call(this),this.type="ExtrudeBufferGeometry",this.parameters={shapes:t,options:e},t=Array.isArray(t)?t:[t];for(var n=this,r=[],o=[],s=0,u=t.length;s<u;s++){var c=t[s];!function(t){function s(t,e,n){return e||console.error("THREE.ExtrudeGeometry: vec does not exist"),e.clone().multiplyScalar(n).add(t)}function u(t,e,n){var r,o,s,a=t.x-e.x,u=t.y-e.y,c=n.x-t.x,l=n.y-t.y,h=a*a+u*u,p=a*l-u*c;if(Math.abs(p)>Number.EPSILON){var f=Math.sqrt(h),d=Math.sqrt(c*c+l*l),m=e.x-u/f,v=e.y+a/f,y=n.x-l/d,g=n.y+c/d,b=((y-m)*l-(g-v)*c)/(a*l-u*c);r=m+a*b-t.x,o=v+u*b-t.y;var _=r*r+o*o;if(_<=2)return new i(r,o);s=Math.sqrt(_/2)}else{var w=!1;a>Number.EPSILON?c>Number.EPSILON&&(w=!0):a<-Number.EPSILON?c<-Number.EPSILON&&(w=!0):Math.sign(u)===Math.sign(l)&&(w=!0),w?(r=-u,o=a,s=Math.sqrt(h)):(r=a,o=u,s=Math.sqrt(h/2))}return new i(r/s,o/s)}function c(t,e){var n,r;for(X=t.length;--X>=0;){n=X,(r=X-1)<0&&(r=t.length-1);var i=0,o=y+2*x;for(i=0;i<o;i++){var s=W*i,a=W*(i+1);p(e+n+s,e+r+s,e+r+a,e+n+a)}}}function l(t,e,n){m.push(t),m.push(e),m.push(n)}function h(t,e,i){f(t),f(e),f(i);var o=r.length/3,s=S.generateTopUV(n,r,o-3,o-2,o-1);d(s[0]),d(s[1]),d(s[2])}function p(t,e,i,o){f(t),f(e),f(o),f(e),f(i),f(o);var s=r.length/3,a=S.generateSideWallUV(n,r,s-6,s-3,s-2,s-1);d(a[0]),d(a[1]),d(a[3]),d(a[1]),d(a[2]),d(a[3])}function f(t){r.push(m[3*t+0]),r.push(m[3*t+1]),r.push(m[3*t+2])}function d(t){o.push(t.x),o.push(t.y)}var m=[],v=void 0!==e.curveSegments?e.curveSegments:12,y=void 0!==e.steps?e.steps:1,g=void 0!==e.depth?e.depth:100,b=void 0===e.bevelEnabled||e.bevelEnabled,_=void 0!==e.bevelThickness?e.bevelThickness:6,w=void 0!==e.bevelSize?e.bevelSize:_-2,x=void 0!==e.bevelSegments?e.bevelSegments:3,E=e.extrudePath,S=void 0!==e.UVGenerator?e.UVGenerator:ic;void 0!==e.amount&&(console.warn("THREE.ExtrudeBufferGeometry: amount has been renamed to depth."),g=e.amount);var T,M,C,O,A,P=!1;E&&(T=E.getSpacedPoints(y),P=!0,b=!1,M=E.computeFrenetFrames(y,!1),C=new a,O=new a,A=new a),b||(x=0,_=0,w=0);var R,L,N,I=t.extractPoints(v),k=I.shape,j=I.holes;if(!rc.isClockWise(k))for(k=k.reverse(),L=0,N=j.length;L<N;L++)R=j[L],rc.isClockWise(R)&&(j[L]=R.reverse());var D=rc.triangulateShape(k,j),F=k;for(L=0,N=j.length;L<N;
vendor: 4,145 bytes, line 1
1L++)R=j[L],k=k.concat(R);for(var U,B,z,V,H,G,W=k.length,q=D.length,Z=[],X=0,K=F.length,Y=K-1,J=X+1;X<K;X++,Y++,J++)Y===K&&(Y=0),J===K&&(J=0),Z[X]=u(F[X],F[Y],F[J]);var Q,$=[],tt=Z.concat();for(L=0,N=j.length;L<N;L++){for(R=j[L],Q=[],X=0,K=R.length,Y=K-1,J=X+1;X<K;X++,Y++,J++)Y===K&&(Y=0),J===K&&(J=0),Q[X]=u(R[X],R[Y],R[J]);$.push(Q),tt=tt.concat(Q)}for(U=0;U<x;U++){for(z=U/x,V=_*Math.cos(z*Math.PI/2),B=w*Math.sin(z*Math.PI/2),X=0,K=F.length;X<K;X++)H=s(F[X],Z[X],B),l(H.x,H.y,-V);for(L=0,N=j.length;L<N;L++)for(R=j[L],Q=$[L],X=0,K=R.length;X<K;X++)H=s(R[X],Q[X],B),l(H.x,H.y,-V)}for(B=w,X=0;X<W;X++)H=b?s(k[X],tt[X],B):k[X],P?(O.copy(M.normals[0]).multiplyScalar(H.x),C.copy(M.binormals[0]).multiplyScalar(H.y),A.copy(T[0]).add(O).add(C),l(A.x,A.y,A.z)):l(H.x,H.y,0);var et;for(et=1;et<=y;et++)for(X=0;X<W;X++)H=b?s(k[X],tt[X],B):k[X],P?(O.copy(M.normals[et]).multiplyScalar(H.x),C.copy(M.binormals[et]).multiplyScalar(H.y),A.copy(T[et]).add(O).add(C),l(A.x,A.y,A.z)):l(H.x,H.y,g/y*et);for(U=x-1;U>=0;U--){for(z=U/x,V=_*Math.cos(z*Math.PI/2),B=w*Math.sin(z*Math.PI/2),X=0,K=F.length;X<K;X++)H=s(F[X],Z[X],B),l(H.x,H.y,g+V);for(L=0,N=j.length;L<N;L++)for(R=j[L],Q=$[L],X=0,K=R.length;X<K;X++)H=s(R[X],Q[X],B),P?l(H.x,H.y+T[y-1].y,T[y-1].x+V):l(H.x,H.y,g+V)}!function(){var t=r.length/3;if(b){var e=0,i=W*e;for(X=0;X<q;X++)G=D[X],h(G[2]+i,G[1]+i,G[0]+i);for(e=y+2*x,i=W*e,X=0;X<q;X++)G=D[X],h(G[0]+i,G[1]+i,G[2]+i)}else{for(X=0;X<q;X++)G=D[X],h(G[2],G[1],G[0]);for(X=0;X<q;X++)G=D[X],h(G[0]+W*y,G[1]+W*y,G[2]+W*y)}n.addGroup(t,r.length/3-t,0)}(),function(){var t=r.length/3,e=0;for(c(F,e),e+=F.length,L=0,N=j.length;L<N;L++)R=j[L],c(R,e),e+=R.length;n.addGroup(t,r.length/3-t,1)}()}(c)}this.addAttribute("position",new j(r,3)),this.addAttribute("uv",new j(o,2)),this.computeVertexNormals()}function Zn(t,e,n){if(n.shapes=[],Array.isArray(t))for(var r=0,i=t.length;r<i;r++){var o=t[r];n.shapes.push(o.uuid)}else n.shapes.push(t.uuid);return void 0!==e.extrudePath&&(n.options.extrudePath=e.extrudePath.toJSON()),n}function Xn(t,e){C.call(this),this.type="TextGeometry",this.parameters={text:t,parameters:e},this.fromBufferGeometry(new Kn(t,e)),this.mergeVertices()}function Kn(t,e){e=e||{};var n=e.font;if(!n||!n.isFont)return console.error("THREE.TextGeometry: font parameter is not an instance of THREE.Font."),new C;var r=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),qn.call(this,r,e),this.type="TextBufferGeometry"}function Yn(t,e,n,r,i,o,s){C.call(this),this.type="SphereGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:r,phiLength:i,thetaStart:o,thetaLength:s},this.fromBufferGeometry(new Jn(t,e,n,r,i,o,s)),this.mergeVertices()}function Jn(t,e,n,r,i,o,s){B.call(this),this.type="SphereBufferGeometry",this.parameters={radius:t,widthSegments:e,heightSegments:n,phiStart:r,phiLength:i,thetaStart:o,thetaLength:s},t=t||1,e=Math.max(3,Math.floor(e)||8),n=Math.max(2,Math.floor(n)||6),r=void 0!==r?r:0,i=void 0!==i?i:2*Math.PI,o=void 0!==o?o:0,s=void 0!==s?s:Math.PI;var u,c,l=o+s,h=0,p=[],f=new a,d=new a,m=[],v=[],y=[],g=[];for(c=0;c<=n;c++){var b=[],_=c/n;for(u=0;u<=e;u++){var w=u/e;f.x=-t*Math.cos(r+w*i)*Math.sin(o+_*s),f.y=t*Math.cos(o+_*s),f.z=t*Math.sin(r+w*i)*Math.sin(o+_*s),v.push(f.x,f.y,f.z),d.set(f.x,f.y,f.z).normalize(),y.push(d.x,d.y,d.z),g.push(w,1-_),b.push(h++)}p.push(b)}for(c=0;c<n;c++)for(u=0;u<e;u++){var x=p[c][u+1],E=p[c][u],S=p[c+1][u],T=p[c+1][u+1];(0!==c||o>0)&&m.push(x,E,T),(c!==n-1||l<Math.PI)&&m.push(E,S,T)}this.setIndex(m),this.addAttribute("position",new j(v,3)),this.addAttribute("normal",new j(y,3)),this.addAttribute("uv",new j(g,2))}function Qn(t,e,n,r,i,o){C.call(this),this.type="RingGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:r,thetaStart:i,thetaLength:o},this.fromBufferGeometry(new $n(t,e,n,r,i,o)),this.mergeVertices()}function $n(t,e,n,r,o,s){B.call(this),this.type="RingBufferGeometry",this.parameters={innerRadius:t,outerRadius:e,thetaSegments:n,phiSegments:r,thetaStart:
vendor: 4,511 bytes, line 1
1o,thetaLength:s},t=t||.5,e=e||1,o=void 0!==o?o:0,s=void 0!==s?s:2*Math.PI,n=void 0!==n?Math.max(3,n):8,r=void 0!==r?Math.max(1,r):1;var u,c,l,h=[],p=[],f=[],d=[],m=t,v=(e-t)/r,y=new a,g=new i;for(c=0;c<=r;c++){for(l=0;l<=n;l++)u=o+l/n*s,y.x=m*Math.cos(u),y.y=m*Math.sin(u),p.push(y.x,y.y,y.z),f.push(0,0,1),g.x=(y.x/e+1)/2,g.y=(y.y/e+1)/2,d.push(g.x,g.y);m+=v}for(c=0;c<r;c++){var b=c*(n+1);for(l=0;l<n;l++){u=l+b;var _=u,w=u+n+1,x=u+n+2,E=u+1;h.push(_,w,E),h.push(w,x,E)}}this.setIndex(h),this.addAttribute("position",new j(p,3)),this.addAttribute("normal",new j(f,3)),this.addAttribute("uv",new j(d,2))}function tr(t,e,n,r){C.call(this),this.type="LatheGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:r},this.fromBufferGeometry(new er(t,e,n,r)),this.mergeVertices()}function er(t,e,n,r){B.call(this),this.type="LatheBufferGeometry",this.parameters={points:t,segments:e,phiStart:n,phiLength:r},e=Math.floor(e)||12,n=n||0,r=r||2*Math.PI,r=ku.clamp(r,0,2*Math.PI);var o,s,u,c=[],l=[],h=[],p=1/e,f=new a,d=new i;for(s=0;s<=e;s++){var m=n+s*p*r,v=Math.sin(m),y=Math.cos(m);for(u=0;u<=t.length-1;u++)f.x=t[u].x*v,f.y=t[u].y,f.z=t[u].x*y,l.push(f.x,f.y,f.z),d.x=s/e,d.y=u/(t.length-1),h.push(d.x,d.y)}for(s=0;s<e;s++)for(u=0;u<t.length-1;u++){o=u+s*t.length;var g=o,b=o+t.length,_=o+t.length+1,w=o+1;c.push(g,b,w),c.push(b,_,w)}if(this.setIndex(c),this.addAttribute("position",new j(l,3)),this.addAttribute("uv",new j(h,2)),this.computeVertexNormals(),r===2*Math.PI){var x=this.attributes.normal.array,E=new a,S=new a,T=new a;for(o=e*t.length*3,s=0,u=0;s<t.length;s++,u+=3)E.x=x[u+0],E.y=x[u+1],E.z=x[u+2],S.x=x[o+u+0],S.y=x[o+u+1],S.z=x[o+u+2],T.addVectors(E,S).normalize(),x[u+0]=x[o+u+0]=T.x,x[u+1]=x[o+u+1]=T.y,x[u+2]=x[o+u+2]=T.z}}function nr(t,e){C.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 rr(t,e)),this.mergeVertices()}function rr(t,e){function n(t){var n,a,c,l=i.length/3,h=t.extractPoints(e),p=h.shape,f=h.holes;if(!1===rc.isClockWise(p))for(p=p.reverse(),n=0,a=f.length;n<a;n++)c=f[n],!0===rc.isClockWise(c)&&(f[n]=c.reverse());var d=rc.triangulateShape(p,f);for(n=0,a=f.length;n<a;n++)c=f[n],p=p.concat(c);for(n=0,a=p.length;n<a;n++){var m=p[n];i.push(m.x,m.y,0),o.push(0,0,1),s.push(m.x,m.y)}for(n=0,a=d.length;n<a;n++){var v=d[n],y=v[0]+l,g=v[1]+l,b=v[2]+l;r.push(y,g,b),u+=3}}B.call(this),this.type="ShapeBufferGeometry",this.parameters={shapes:t,curveSegments:e},e=e||12;var r=[],i=[],o=[],s=[],a=0,u=0;if(!1===Array.isArray(t))n(t);else for(var c=0;c<t.length;c++)n(t[c]),this.addGroup(a,u,c),a+=u,u=0;this.setIndex(r),this.addAttribute("position",new j(i,3)),this.addAttribute("normal",new j(o,3)),this.addAttribute("uv",new j(s,2))}function ir(t,e){if(e.shapes=[],Array.isArray(t))for(var n=0,r=t.length;n<r;n++){var i=t[n];e.shapes.push(i.uuid)}else e.shapes.push(t.uuid);return e}function or(t,e){B.call(this),this.type="EdgesGeometry",this.parameters={thresholdAngle:e},e=void 0!==e?e:1;var n,r,i,o,s=[],a=Math.cos(ku.DEG2RAD*e),u=[0,0],c={},l=["a","b","c"];t.isBufferGeometry?(o=new C,o.fromBufferGeometry(t)):o=t.clone(),o.mergeVertices(),o.computeFaceNormals();for(var h=o.vertices,p=o.faces,f=0,d=p.length;f<d;f++)for(var m=p[f],v=0;v<3;v++)n=m[l[v]],r=m[l[(v+1)%3]],u[0]=Math.min(n,r),u[1]=Math.max(n,r),i=u[0]+","+u[1],void 0===c[i]?c[i]={index1:u[0],index2:u[1],face1:f,face2:void 0}:c[i].face2=f;for(i in c){var y=c[i];if(void 0===y.face2||p[y.face1].normal.dot(p[y.face2].normal)<=a){var g=h[y.index1];s.push(g.x,g.y,g.z),g=h[y.index2],s.push(g.x,g.y,g.z)}}this.addAttribute("position",new j(s,3))}function sr(t,e,n,r,i,o,s,a){C.call(this),this.type="CylinderGeometry",this.parameters={radiusTop:t,radiusBottom:e,height:n,radialSegments:r,heightSegments:i,openEnded:o,thetaStart:s,thetaLength:a},this.fromBufferGeometry(new ar(t,e,n,r,i,o,s,a)),this.mergeVertices()}function ar(t,e,n,r,o,s,u,c){function l(n){var o,s,l,y=new i,_=new a,w=0,x=!0===n?t:e,E=!0===n?1:-1;for(s=v,o=1;o<=r;o++)f.push(0,g*E,0),d.push(0,E,0),m.push(.5,.5),v++;for(l=v,o=0;o<=r;o++){var S=o/r,T=S*c+u,M=Math.cos(T),C=Math.sin(T);_.x=x*C,_.y=g*E,_.z=x*M,f.push(_.x,_.y,_.z),d.push(0,E,0),y.x=.5*M+.5,y.y=.5*C*E+.5,m.push(y.x,y.y),v++}for(o=0;o<r;o++){var O=s+o,A=l+o;!0===n?p.push(A,A+1,O):p.push(A+1,A,O),w+=3}h.addGroup(b,w,!0===n?1:2),b+=w}B.call(this),this.type="CylinderBufferGeometry",this.parameters={radiu
vendor: 1,151 bytes, line 1
1sTop:t,radiusBottom:e,height:n,radialSegments:r,heightSegments:o,openEnded:s,thetaStart:u,thetaLength:c};var h=this;t=void 0!==t?t:1,e=void 0!==e?e:1,n=n||1,r=Math.floor(r)||8,o=Math.floor(o)||1,s=void 0!==s&&s,u=void 0!==u?u:0,c=void 0!==c?c:2*Math.PI;var p=[],f=[],d=[],m=[],v=0,y=[],g=n/2,b=0;!function(){var i,s,l=new a,_=new a,w=0,x=(e-t)/n;for(s=0;s<=o;s++){var E=[],S=s/o,T=S*(e-t)+t;for(i=0;i<=r;i++){var M=i/r,C=M*c+u,O=Math.sin(C),A=Math.cos(C);_.x=T*O,_.y=-S*n+g,_.z=T*A,f.push(_.x,_.y,_.z),l.set(O,x,A).normalize(),d.push(l.x,l.y,l.z),m.push(M,1-S),E.push(v++)}y.push(E)}for(i=0;i<r;i++)for(s=0;s<o;s++){var P=y[s][i],R=y[s+1][i],L=y[s+1][i+1],N=y[s][i+1];p.push(P,R,N),p.push(R,L,N),w+=6}h.addGroup(b,w,0),b+=w}(),!1===s&&(t>0&&l(!0),e>0&&l(!1)),this.setIndex(p),this.addAttribute("position",new j(f,3)),this.addAttribute("normal",new j(d,3)),this.addAttribute("uv",new j(m,2))}function ur(t,e,n,r,i,o,s){sr.call(this,0,t,e,n,r,i,o,s),this.type="ConeGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:o,thetaLength:s}}function cr(t,e,n,r,i,o,s){ar.call(this,0,t,e,n,r,i,o,s),this.type="C
1oneBufferGeometry",this.parameters={radius:t,height:e,radialSegments:n,heightSegments:r,openEnded:i,thetaStart:o,thetaLength:s}}function lr(t,e,n,r){C.call(this),this.type="CircleGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:r},this.fromBufferGeometry(new hr(t,e,n,r)),this.mergeVertices()}function hr(t,e,n,r){B.call(this),this.type="CircleBufferGeometry",this.parameters={radius:t,segments:e,thetaStart:n,thetaLength:r},t=t||1,e=void 0!==e?Math.max(3,e):8,n=void 0!==n?n:0,r=void 0!==r?r:2*Math.PI;var o,s,u=[],c=[],l=[],h=[],p=new a,f=new i;for(c.push(0,0,0),l.push(0,0,1),h.push(.5,.5),s=0,o=3;s<=e;s++,o+=3){var d=n+s/e*r;p.x=t*Math.cos(d),p.y=t*Math.sin(d),c.push(p.x,p.y,p.z),l.push(0,0,1),f.x=(c[o]/t+1)/2,f.y=(c[o+1]/t+1)/2,h.push(f.x,f.y)}for(o=1;o<=e;o++)u.push(o,o+1,0);this.setIndex(u),this.addAttribute("position",new j(c,3)),this.addAttribute("normal",new j(l,3)),this.addAttribute("uv",new j(h,2))}function pr(t){W.call(this),this.type="ShadowMaterial",this.color=new g(0),this.transparent=!0,this.setValues(t)}function fr(t){Z.call(this,t),this.type="RawShaderMaterial"}function dr(t){W.call(this),this.defines={STANDARD:""},this.type="MeshStandardMaterial",this.color=new g(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 g(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Nu,this.normalScale=new i(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 mr(t){dr.call(this),this.defines={PHYSICAL:""},this.type="MeshPhysicalMaterial",this.reflectivity=.5,this.clearCoat=0,this.clearCoatRoughness=0,this.setValues(t)}function vr(t){W.call(this),this.type="MeshPhongMaterial",this.color=new g(16777215),this.specular=new g(1118481),this.shininess=30,this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new g(0),this.emissiveIntensity=1,this.emissiveMap=null,this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Nu,this.normalScale=new i(1,1),this.displacementMap=null,this.displacementScale=1,this.displacementBias=0,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Js,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 yr(t){vr.call(this),this.defines={TOON:""},this.type="MeshToonMaterial",this.gradientMap=null,this.setValues(t)}function gr(t){W.call(this),this.type="MeshNormalMaterial",this.bumpMap=null,this.bumpScale=1,this.normalMap=null,this.normalMapType=Nu,this.normalScale=new i(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 br(t){W.call(this),this.type="MeshLambertMaterial",this.color=new g(16777215),this.map=null,this.lightMap=null,this.lightMapIntensity=1,this.aoMap=null,this.aoMapIntensity=1,this.emissive=new g(0),this.emissiveIntensity=1,this.emissiveMap=null,this.specularMap=null,this.alphaMap=null,this.envMap=null,this.combine=Js,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 _r(t){Be.call(this),this.type="LineDashedMaterial",this.scale=1,this.dashSize=3,this.gapSize=1,this.setValues(t)}function wr(t,e,n){var r=this,i=!1,o=0,s=0,a=void 0;this.onStart=void 0,this.onLoad=t,this.onProgress=e,this.onError=n,this.itemStart=function(t){s++,!1===i&&void 0!==r.onStart&&r.onStart(t,o,s),i=!0},this.itemEnd=function(t){o++,void 0!==r.onProgress&&r.onProgress(t,o,s),o===s&&(i=!1,void 0!==r.onLoad&&r.onLoad())},this.itemError=function(t){void 0!==r.onError&&r.onError(t)},this.resolveURL=function(t){return a?a(t):t},this.setURLModifier=function(t){return a=t,this}}function xr(t){this.manager=void 0!==t?t:uc}function Er(t){this.manager=void 0!==t?t:uc,this._parser=null}function Sr(t){this.manager=void 0!==t?t:uc,this._parser=null}function Tr(t){this.manager=void 0!==t?t:uc}function Mr(t){this.manager=void 0!==t?t:uc}function Cr(t){this.manager=void 0!==t?t:uc}function Or(){this.type="Curve",this.arcLengthDivisions=200}function Ar(t,e,n,r,i,o,s,a){Or.call(this),this.type="EllipseCurve",this.aX=t||0,this.aY=e||0,this.xRadius=n||1,this.yRadius=r||1,this.aStartAngle=i||0,this.aEndAngle=o||2*Math.PI,this.aClockwise=s||!1,this.aRotation=a||0}function Pr(t,e,n,r,i,o){Ar.call(this,t,e,n,n,r,i,o),this.type="ArcCurve"}function Rr(){function t(t,o,s,a){e=t,n=s,r=-3*t+3*o-2*s-a,i=2*t-2*o+s+a}var e=0,n=0,r=0,i=0;return{initCatmullRom:function(e,n,r,i,o){t(n,r,o*(r-e),o*(i-n))},initNonuniformCatmullRom:function(e,n,r,i,o,s,a){var u=(n-e)/o-(r-e)/(o+s)+(r-n)/s,c=(r-n)/s-(i-n)/(s+a)+(i-r)/a;u*=s,c*=s,t(n,r,u,c)},calc:function(t){var o=t*t;return e+n*t+r*o+i*(o*t)}}}function Lr(t,e,n,r){Or.call(this),this.type="CatmullRomCurve3",this.points=t||[],this.closed=e||!1,this.curveType=n||"centripetal",this.tension=r||.5}function Nr(t,e,n,r,i){var o=.5*(r-e),s=.5*(i-n),a=t*t;
vendor: 22,543 bytes, line 1
1return(2*n-2*r+o+s)*(t*a)+(-3*n+3*r-2*o-s)*a+o*t+n}function Ir(t,e){var n=1-t;return n*n*e}function kr(t,e){return 2*(1-t)*t*e}function jr(t,e){return t*t*e}function Dr(t,e,n,r){return Ir(t,e)+kr(t,n)+jr(t,r)}function Fr(t,e){var n=1-t;return n*n*n*e}function Ur(t,e){var n=1-t;return 3*n*n*t*e}function Br(t,e){return 3*(1-t)*t*t*e}function zr(t,e){return t*t*t*e}function Vr(t,e,n,r,i){return Fr(t,e)+Ur(t,n)+Br(t,r)+zr(t,i)}function Hr(t,e,n,r){Or.call(this),this.type="CubicBezierCurve",this.v0=t||new i,this.v1=e||new i,this.v2=n||new i,this.v3=r||new i}function Gr(t,e,n,r){Or.call(this),this.type="CubicBezierCurve3",this.v0=t||new a,this.v1=e||new a,this.v2=n||new a,this.v3=r||new a}function Wr(t,e){Or.call(this),this.type="LineCurve",this.v1=t||new i,this.v2=e||new i}function qr(t,e){Or.call(this),this.type="LineCurve3",this.v1=t||new a,this.v2=e||new a}function Zr(t,e,n){Or.call(this),this.type="QuadraticBezierCurve",this.v0=t||new i,this.v1=e||new i,this.v2=n||new i}function Xr(t,e,n){Or.call(this),this.type="QuadraticBezierCurve3",this.v0=t||new a,this.v1=e||new a,this.v2=n||new a}function Kr(t){Or.call(this),this.type="SplineCurve",this.points=t||[]}function Yr(){Or.call(this),this.type="CurvePath",this.curves=[],this.autoClose=!1}function Jr(t){Yr.call(this),this.type="Path",this.currentPoint=new i,t&&this.setFromPoints(t)}function Qr(t){Jr.call(this,t),this.uuid=ku.generateUUID(),this.type="Shape",this.holes=[]}function $r(t,e){E.call(this),this.type="Light",this.color=new g(t),this.intensity=void 0!==e?e:1,this.receiveShadow=void 0}function ti(t,e,n){$r.call(this,t,n),this.type="HemisphereLight",this.castShadow=void 0,this.position.copy(E.DefaultUp),this.updateMatrix(),this.groundColor=new g(e)}function ei(t){this.camera=t,this.bias=0,this.radius=1,this.mapSize=new i(512,512),this.map=null,this.matrix=new o}function ni(){ei.call(this,new Me(50,1,.5,500))}function ri(t,e,n,r,i,o){$r.call(this,t,e),this.type="SpotLight",this.position.copy(E.DefaultUp),this.updateMatrix(),this.target=new E,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!==r?r:Math.PI/3,this.penumbra=void 0!==i?i:0,this.decay=void 0!==o?o:1,this.shadow=new ni}function ii(t,e,n,r){$r.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!==r?r:1,this.shadow=new ei(new Me(90,1,.5,500))}function oi(){ei.call(this,new T(-5,5,5,-5,.5,500))}function si(t,e){$r.call(this,t,e),this.type="DirectionalLight",this.position.copy(E.DefaultUp),this.updateMatrix(),this.target=new E,this.shadow=new oi}function ai(t,e){$r.call(this,t,e),this.type="AmbientLight",this.castShadow=void 0}function ui(t,e,n,r){$r.call(this,t,e),this.type="RectAreaLight",this.width=void 0!==n?n:10,this.height=void 0!==r?r:10}function ci(t,e,n,r){bi.call(this,t,e,n,r)}function li(t,e,n){bi.call(this,t,e,n)}function hi(t,e,n,r){this.parameterPositions=t,this._cachedIndex=0,this.resultBuffer=void 0!==r?r:new e.constructor(n),this.sampleValues=e,this.valueSize=n}function pi(t,e,n,r){hi.call(this,t,e,n,r)}function fi(t,e,n,r){bi.call(this,t,e,n,r)}function di(t,e,n,r){bi.call(this,t,e,n,r)}function mi(t,e,n,r){bi.call(this,t,e,n,r)}function vi(t,e,n,r){hi.call(this,t,e,n,r),this._weightPrev=-0,this._offsetPrev=-0,this._weightNext=-0,this._offsetNext=-0}function yi(t,e,n,r){hi.call(this,t,e,n,r)}function gi(t,e,n,r){hi.call(this,t,e,n,r)}function bi(t,e,n,r){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=mc.convertArray(e,this.TimeBufferType),this.values=mc.convertArray(n,this.ValueBufferType),this.setInterpolation(r||this.DefaultInterpolation),this.validate(),this.optimize()}function _i(t,e,n,r){bi.call(this,t,e,n,r)}function wi(t,e,n){this.name=t,this.tracks=n,this.duration=void 0!==e?e:-1,this.uuid=ku.generateUUID(),this.duration<0&&this.resetDuration(),this.optimize()}function xi(t){this.manager=void 0!==t?t:uc,this.textures={}}function Ei(t){this.manager=void 0!==t?t:uc}function Si(){}function Ti(t){"boolean"==typeof t&&(console.warn("THREE.JSONLoader: showStatus parameter has been removed from constructor."),t=void 0),this.manager=void 0!==t?t:uc,this.withCredentials=!1}function Mi(t){this.manager=void 0!==t?t:uc,this.texturePath=""}function Ci(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:uc,this.options=void 0}function Oi(){this.type="ShapePath",this.color=new g,this.subPaths=[],this.currentPath=null}function Ai(t){this.type="Font",this.data=t}function Pi(t,e,n){for(var r=Array.from?Array.from(t):String(t).split(""),i=e/n.resolution,o=(n.boundingBox.yMax-n.boundingBox.yMin+n.underlineThickness)*i,s=[],a=0,u=0,c=0;c<r.length;c++){var l=r[c];if("\n"===l)a=0,u-=o;else{var h=Ri(l,i,a,u,n);a+=h.offsetX,s.push(h.path)}}return s}function Ri(t,e,n,r,i){var o=i.glyphs[t]||i.glyphs["?"];if(o){var s,a,u,c,l,h,p,f,d=new Oi;if(o.o)for(var m=o._cachedOutline||(o._cachedOutline=o.o.split(" ")),v=0,y=m.length;v<y;){var g=m[v++];switch(g){case"m":s=m[v++]*e+n,a=m[v++]*e+r,d.moveTo(s,a);break;case"l":s=m[v++]*e+n,a=m[v++]*e+r,d.lineTo(s,a);break;case"q":u=m[v++]*e+n,c=m[v++]*e+r,l=m[v++]*e+n,h=m[v++]*e+r,d.quadraticCurveTo(l,h,u,c);break;case"b":u=m[v++]*e+n,c=m[v++]*e+r,l=m[v++]*e+n,h=m[v++]*e+r,p=m[v++]*e+n,f=m[v++]*e+r,d.bezierCurveTo(l,h,p,f,u,c)}}return{offsetX:o.ha*e,path:d}}}function Li(t){this.manager=void 0!==t?t:uc}function Ni(t){this.manager=void 0!==t?t:uc}function Ii(){this.type="StereoCamera",this.aspect=1,this.eyeSep=.064,this.cameraL=new Me,this.cameraL.layers.enable(1),this.cameraL.matrixAutoUpdate=!1,this.cameraR=new Me,this.cameraR.layers.enable(2),this.cameraR.matrixAutoUpdate=!1}function ki(t,e,n){E.call(this),this.type="CubeCamera";var r=new Me(90,1,t,e);r.up.set(0,-1,0),r.lookAt(new a(1,0,0)),this.add(r);var i=new Me(90,1,t,e);i.up.set(0,-1,0),i.lookAt(new a(-1,0,0)),this.add(i);var o=new Me(90,1,t,e);o.up.set(0,0,1),o.lookAt(new a(0,1,0)),this.add(o);var s=new Me(90,1,t,e);s.up.set(0,0,-1),s.lookAt(new a(0,-1,0)),this.add(s);var u=new Me(90,1,t,e);u.up.set(0,-1,0),u.lookAt(new a(0,0,1)),this.add(u);var c=new Me(90,1,t,e);c.up.set(0,-1,0),c.lookAt(new a(0,0,-1)),this.add(c);var l={format:ka,magFilter:ba,minFilter:ba};this.renderTarget=new p(n,n,l),this.renderTarget.texture.name="CubeCamera",this.update=function(t,e){null===this.parent&&this.updateMatrixWorld();var n=this.renderTarget,a=n.texture.generateMipmaps;n.texture.generateMipmaps=!1,n.activeCubeFace=0,t.render(e,r,n),n.activeCubeFace=1,t.render(e,i,n),n.activeCubeFace=2,t.render(e,o,n),n.activeCubeFace=3,t.render(e,s,n),n.activeCubeFace=4,t.render(e,u,n),n.texture.generateMipmaps=a,n.activeCubeFace=5,t.render(e,c,n),t.setRenderTarget(null)},this.clear=function(t,e,n,r){for(var i=this.renderTarget,o=0;o<6;o++)i.activeCubeFace=o,t.setRenderTarget(i),t.clear(e,n,r);t.setRenderTarget(null)}}function ji(){E.call(this),this.type="AudioListener",this.context=xc.getContext(),this.gain=this.context.createGain(),this.gain.connect(this.context.destination),this.filter=null}function Di(t){E.call(this),this.type="Audio",this.context=t.context,this.gain=this.context.createGain(),this.gain.connect(t.getInput()),this.autoplay=!1,this.buffer=null,this.loop=!1,this.startTime=0,this.offset=0,this.playbackRate=1,this.isPlaying=!1,this.hasPlaybackControl=!0,this.sourceType="empty",this.filters=[]}function Fi(t){Di.call(this,t),this.panner=this.context.createPanner(),this.panner.connect(this.gain)}function Ui(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 Bi(t,e,n){this.binding=t,this.valueSize=n;var r,i=Float64Array;switch(e){case"quaternion":r=this._slerp;break;case"string":case"bool":i=Array,r=this._select;break;default:r=this._lerp}this.buffer=new i(4*n),this._mixBufferRegion=r,this.cumulativeWeight=0,this.useCount=0,this.referenceCount=0}function zi(t,e,n){var r=n||Vi.parseTrackName(e);this._targetGroup=t,this._bindings=t.subscribe_(e,r)}function Vi(t,e,n){this.path=e,this.parsedPath=n||Vi.parseTrackName(e),this.node=Vi.findNode(t,this.parsedPath.nodeName)||t,this.rootNode=t}function Hi(){this.uuid=ku.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 r=this;this.stats={objects:{get total(){return r._objects.length},get inUse(){return this.total-r.nCachedObjects_}},get bindingsPerObject(){return r._bindings.length}}}function Gi(t,e,n){this._mixer=t,this._clip=e,this._localRoot=n||null;for(var r=e.tracks,i=r.length,o=new Array(i),s={endingStart:yu,endingEnd:yu},a=0;a!==i;++a){var u=r[a].createInterpolant(null);o[a]=u,u.settings=s}this._interpolantSettings=s,this._interpolants=o,this._propertyBindings=new Array(i),this._cacheIndex=null,this._byClipCacheIndex=null,this._timeScaleInterpolant=null,this._weightInterpolant=null,this.loop=pu,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 Wi(t){this._root=t,this._initMemoryManager(),this._accuIndex=0,this.time=0,this.timeScale=1}function qi(t){"string"==typeof t&&(console.warn("THREE.Uniform: Type parameter is no longer needed."),t=arguments[1]),this.value=t}function Zi(){B.call(this),this.type="InstancedBufferGeometry",this.maxInstancedCount=void 0}function Xi(t,e,n,r){this.data=t,this.itemSize=e,this.offset=n,this.normalized=!0===r}function Ki(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 Yi(t,e,n){Ki.call(this,t,e),this.meshPerAttribute=n||1}function Ji(t,e,n){O.call(this,t,e),this.meshPerAttribute=n||1}function Qi(t,e,n,r){this.ray=new X(t,e),this.near=n||0,this.far=r||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 $i(t,e){return t.distance-e.distance}function to(t,e,n,r){if(!1!==t.visible&&(t.raycast(e,n),!0===r))for(var i=t.children,o=0,s=i.length;o<s;o++)to(i[o],e,n,!0)}function eo(t){this.autoStart=void 0===t||t,this.startTime=0,this.oldTime=0,this.elapsedTime=0,this.running=!1}function no(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 ro(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 io(t,e){this.min=void 0!==t?t:new i(1/0,1/0),this.max=void 0!==e?e:new i(-1/0,-1/0)}function oo(t){E.call(this),this.material=t,this.render=function(){}}function so(t,e,n,r){this.object=t,this.size=void 0!==e?e:1;var i=void 0!==n?n:16711680,o=void 0!==r?r:1,s=0,a=this.object.geometry;a&&a.isGeometry?s=3*a.faces.length:a&&a.isBufferGeometry&&(s=a.attributes.normal.count);var u=new B,c=new j(2*s*3,3);u.addAttribute("position",c),Ve.call(this,u,new Be({color:i,linewidth:o})),this.matrixAutoUpdate=!1,this.update()}function ao(t,e){E.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e;for(var n=new B,r=[0,0,0,0,0,1,0,0,0,1,0,1,0,0,0,-1,0,1,0,0,0,0,1,1,0,0,0,0,-1,1],i=0,o=1;i<32;i++,o++){var s=i/32*Math.PI*2,a=o/32*Math.PI*2;r.push(Math.cos(s),Math.sin(s),1,Math.cos(a),Math.sin(a),1)}n.addAttribute("position",new j(r,3));var u=new Be({fog:!1});this.cone=new Ve(n,u),this.add(this.cone),this.update()}function uo(t){var e=[];t&&t.isBone&&e.push(t);for(var n=0;n<t.children.length;n++)e.push.apply(e,uo(t.children[n]));return e}function co(t){for(var e=uo(t),n=new B,r=[],i=[],o=new g(0,0,1),s=new g(0,1,0),a=0;a<e.length;a++){var u=e[a];u.parent&&u.parent.isBone&&(r.push(0,0,0),r.push(0,0,0),i.push(o.r,o.g,o.b),i.push(s.r,s.g,s.b))}n.addAttribute("position",new j(r,3)),n.addAttribute("color",new j(i,3));var c=new Be({vertexColors:_s,depthTest:!1,depthWrite:!1,transparent:!0});Ve.call(this,n,c),this.root=t,this.bones=e,this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1}function lo(t,e,n){this.light=t,this.light.updateMatrixWorld(),this.color=n;var r=new Jn(e,4,2),i=new q({wireframe:!0,fog:!1});J.call(this,r,i),this.matrix=this.light.matrixWorld,this.matrixAutoUpdate=!1,this.update()}function ho(t,e){E.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=e;var n=new Be({fog:!1}),r=new B;r.addAttribute("position",new O(new Float32Array(15),3)),this.line=new ze(r,n),this.add(this.line),this.update()}function po(t,e,n){E.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n;var r=new rn(e);r.rotateY(.5*Math.PI),this.material=new q({wireframe:!0,fog:!1}),void 0===this.color&&(this.material.vertexColors=_s);var i=r.getAttribute("position"),o=new Float32Array(3*i.count);r.addAttribute("color",new O(o,3)),this.add(new J(r,this.material)),this.update()}function fo(t,e,n,r){t=t||10,e=e||10,n=new g(void 0!==n?n:4473924),r=new g(void 0!==r?r:8947848);for(var i=e/2,o=t/e,s=t/2,a=[],u=[],c=0,l=0,h=-s;c<=e;c++,h+=o){a.push(-s,0,h,s,0,h),a.push(h,0,-s,h,0,s);var p=c===i?n:r;p.toArray(u,l),l+=3,p.toArray(u,l),l+=3,p.toArray(u,l),l+=3,p.toArray(u,l),l+=3}var f=new B;f.addAttribute("position",new j(a,3)),f.addAttribute("color",new j(u,3));var d=new Be({vertexColors:_s});Ve.call(this,f,d)}function mo(t,e,n,r,i,o){t=t||10,e=e||16,n=n||8,r=r||64,i=new g(void 0!==i?i:4473924),o=new g(void 0!==o?o:8947848);var s,a,u,c,l,h,p,f=[],d=[];for(c=0;c<=e;c++)u=c/e*(2*Math.PI),s=Math.sin(u)*t,a=Math.cos(u)*t,f.push(0,0,0),f.push(s,0,a),p=1&c?i:o,d.push(p.r,p.g,p.b),d.push(p.r,p.g,p.b);for(c=0;c<=n;c++)for(p=1&c?i:o,h=t-t/n*c,l=0;l<r;l++)u=l/r*(2*Math.PI),s=Math.sin(u)*h,a=Math.cos(u)*h,f.push(s,0,a),d.push(p.r,p.g,p.b),u=(l+1)/r*(2*Math.PI),s=Math.sin(u)*h,a=Math.cos(u)*h,f.push(s,0,a),d.push(p.r,p.g,p.b);var m=new B;m.addAttribute("position",new j(f,3)),m.addAttribute("color",new j(d,3));var v=new Be({vertexColors:_s});Ve.call(this,m,v)}function vo(t,e,n,r){this.object=t,this.size=void 0!==e?e:1;var i=void 0!==n?n:16776960,o=void 0!==r?r:1,s=0,a=this.object.geometry;a&&a.isGeometry?s=a.faces.length:console.warn("THREE.FaceNormalsHelper: only THREE.Geometry is supported. Use THREE.VertexNormalsHelper, instead.");var u=new B,c=new j(2*s*3,3);u.addAttribute("position",c),Ve.call(this,u,new Be({color:i,linewidth:o})),this.matrixAutoUpdate=!1,this.update()}function yo(t,e,n){E.call(this),this.light=t,this.light.updateMatrixWorld(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.color=n,void 0===e&&(e=1);var r=new B;r.addAttribute("position",new j([-e,e,0,e,e,0,e,-e,0,-e,-e,0,-e,e,0],3));var i=new Be({fog:!1});this.lightPlane=new ze(r,i),this.add(this.lightPlane),r=new B,r.addAttribute("position",new j([0,0,0,0,0,1],3)),this.targetLine=new ze(r,i),this.add(this.targetLine),this.update()}function go(t){function e(t,e,r){n(t,r),n(e,r)}function n(t,e){o.push(0,0,0),s.push(e.r,e.g,e.b),void 0===a[t]&&(a[t]=[]),a[t].push(o.length/3-1)}var r=new B,i=new Be({color:16777215,vertexColors:bs}),o=[],s=[],a={},u=new g(16755200),c=new g(16711680),l=new g(43775),h=new g(16777215),p=new g(3355443);e("n1","n2",u),e("n2","n4",u),e("n4","n3",u),e("n3","n1",u),e("f1","f2",u),e("f2","f4",u),e("f4","f3",u),e("f3","f1",u),e("n1","f1",u),e("n2","f2",u),e("n3","f3",u),e("n4","f4",u),e("p","n1",c),e("p","n2",c),e("p","n3",c),e("p","n4",c),e("u1","u2",l),e("u2","u3",l),e("u3","u1",l),e("c","t",h),e("p","c",p),e("cn1","cn2",p),e("cn3","cn4",p),e("cf1","cf2",p),e("cf3","cf4",p),r.addAttribute("position",new j(o,3)),r.addAttribute("color",new j(s,3)),Ve.call(this,r,i),this.camera=t,this.camera.updateProjectionMatrix&&this.camera.updateProjectionMatrix(),this.matrix=t.matrixWorld,this.matrixAutoUpdate=!1,this.pointMap=a,this.update()}function bo(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]),r=new Float32Array(24),i=new B;i.setIndex(new O(n,1)),i.addAttribute("position",new O(r,3)),Ve.call(this,i,new Be({color:e})),this.matrixAutoUpdate=!1,this.update()}function _o(t,e){this.type="Box3Helper",this.box=t;var n=void 0!==e?e:16776960,r=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=[1,1,1,-1,1,1,-1,-1,1,1,-1,1,1,1,-1,-1,1,-1,-1,-1,-1,1,-1,-1],o=new B;o.setIndex(new O(r,1)),o.addAttribute("position",new j(i,3)),Ve.call(this,o,new Be({color:n})),this.geometry.computeBoundingSphere()}function wo(t,e,n){this.type="PlaneHelper",this.plane=t,this.size=void 0===e?1:e;var r=void 0!==n?n:16776960,i=[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],o=new B;o.addAttribute("position",new j(i,3)),o.computeBoundingSphere(),ze.call(this,o,new Be({color:r}));var s=[1,1,1,-1,1,1,-1,-1,1,1,1,1,-1,-1,1,1,-1,1],a=new B;a.addAttribute("position",new j(s,3)),a.computeBoundingSphere(),this.add(new J(a,new q({color:r,opacity:.2,transparent:!0,depthWrite:!1})))}function xo(t,e,n,r,i,o){E.call(this),void 0===r&&(r=16776960),void 0===n&&(n=1),void 0===i&&(i=.2*n),void 0===o&&(o=.2*i),void 0===Sc&&(Sc=new B,Sc.addAttribute("position",new j([0,0,0,0,1,0],3)),Tc=new ar(0,.5,1,5,1),Tc.translate(0,-.5,0)),this.position.copy(e),this.line=new ze(Sc,new Be({color:r})),this.line.matrixAutoUpdate=!1,this.add(this.line),this.cone=new J(Tc,new q({color:r})),this.cone.matrixAutoUpdate=!1,this.add(this.cone),this.setDirection(t),this.setLength(n,i,o)}function Eo(t){t=t||1;var e=[0,0,0,t,0,0,0,0,0,0,t,0,0,0,0,0,0,t],n=[1,0,0,1,.6,0,0,1,0,.6,1,0,0,0,1,0,.6,1],r=new B;r.addAttribute("position",new j(e,3)),r.addAttribute("color",new j(n,3));var i=new Be({vertexColors:_s});Ve.call(this,r,i)}function So(t,e,n,r,i,o,s){return console.warn("THREE.Face4 has been removed. A THREE.Face3 will be created instead."),new M(t,e,n,i,o,s)}function To(t){return console.warn("THREE.MeshFaceMaterial has been removed. Use an Array instead."),t}function Mo(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 Co(t,e){return console.warn("THREE.PointCloud has been renamed to THREE.Points."),new We(t,e)}function Oo(t){return console.warn("THREE.Particle has been renamed to THREE.Sprite."),new ke(t)}function Ao(t,e){return console.warn("THREE.ParticleSystem has been renamed to THREE.Points."),new We(t,e)}function Po(t){return console.warn("THREE.PointCloudMaterial has been renamed to THREE.PointsMaterial."),new Ge(t)}function Ro(t){return console.warn("THREE.ParticleBasicMaterial has been renamed to THREE.PointsMaterial."),new Ge(t)}function Lo(t){return console.warn("THREE.ParticleSystemMaterial has been renamed to THREE.PointsMaterial."),new Ge(t)}function No(t,e,n){return console.warn("THREE.Vertex has been removed. Use THREE.Vector3 instead."),new a(t,e,n)}function Io(t,e){return console.warn("THREE.DynamicBufferAttribute has been removed. Use new THREE.BufferAttribute().setDynamic( true ) instead."),new O(t,e).setDynamic(!0)}function ko(t,e){return console.warn("THREE.Int8Attribute has been removed. Use new THREE.Int8BufferAttribute() instead."),new A(t,e)}function jo(t,e){return console.warn("THREE.Uint8Attribute has been removed. Use new THREE.Uint8BufferAttribute() instead."),new P(t,e)}function Do(t,e){return console.warn("THREE.Uint8ClampedAttribute has been removed. Use new THREE.Uint8ClampedBufferAttribute() instead."),new R(t,e)}function Fo(t,e){return console.warn("THREE.Int16Attribute has been removed. Use new THREE.Int16BufferAttribute() instead."),new L(t,e)}function Uo(t,e){return console.warn("THREE.Uint16Attribute has been removed. Use new THREE.Uint16BufferAttribute() instead."),new N(t,e)}function Bo(t,e){return console.warn("THREE.Int32Attribute has been removed. Use new THREE.Int32BufferAttribute() instead."),new I(t,e)}function zo(t,e){return console.warn("THREE.Uint32Attribute has been removed. Use new THREE.Uint32BufferAttribute() instead."),new k(t,e)}function Vo(t,e){return console.warn("THREE.Float32Attribute has been removed. Use new THREE.Float32BufferAttribute() instead."),new j(t,e)}function Ho(t,e){return console.warn("THREE.Float64Attribute has been removed. Use new THREE.Float64BufferAttribute() instead."),new D(t,e)}function Go(t){console.warn("THREE.ClosedSplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),Lr.call(this,t),this.type="catmullrom",this.closed=!0}function Wo(t){console.warn("THREE.SplineCurve3 has been deprecated. Use THREE.CatmullRomCurve3 instead."),Lr.call(this,t),this.type="catmullrom"}function qo(t){console.warn("THREE.Spline has been removed. Use THREE.CatmullRomCurve3 instead."),Lr.call(this,t),this.type="catmullrom"}function Zo(t){return console.warn("THREE.AxisHelper has been renamed to THREE.AxesHelper."),new Eo(t)}function Xo(t,e){return console.warn("THREE.BoundingBoxHelper has been deprecated. Creating a THREE.BoxHelper instead."),new bo(t,e)}function Ko(t,e){return console.warn("THREE.EdgesHelper has been removed. Use THREE.EdgesGeometry instead."),new Ve(new or(t.geometry),new Be({color:void 0!==e?e:16777215}))}function Yo(t,e){return console.warn("THREE.WireframeHelper has been removed. Use THREE.WireframeGeometry instead."),new Ve(new Ke(t.geometry),new Be({color:void 0!==e?e:16777215}))}function Jo(t){return console.warn("THREE.XHRLoader has been renamed to THREE.FileLoader."),new xr(t)}function Qo(t){return console.warn("THREE.BinaryTextureLoader has been renamed to THREE.DataTextureLoader."),new Sr(t)}function $o(){console.error("THREE.Projector has been moved to /examples/js/renderers/Projector.js."),this.project
1Vector=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 ts(){console.error("THREE.CanvasRenderer has been moved to /examples/js/renderers/CanvasRenderer.js"),this.domElement=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),this.clear=function(){},this.render=function(){},this.setClearColor=function(){},this.setSize=function(){}}function es(){console.error("THREE.LensFlare has been moved to /examples/js/objects/Lensflare.js")}Object.defineProperty(e,"__esModule",{value:!0}),n.d(e,"WebGLRenderTargetCube",function(){return p}),n.d(e,"WebGLRenderTarget",function(){return h}),n.d(e,"WebGLRenderer",function(){return Pe}),n.d(e,"ShaderLib",function(){return zu}),n.d(e,"UniformsLib",function(){return Bu}),n.d(e,"UniformsUtils",function(){return Fu}),n.d(e,"ShaderChunk",function(){return Du}),n.d(e,"FogExp2",function(){return Re}),n.d(e,"Fog",function(){return Le}),n.d(e,"Scene",function(){return Ne}),n.d(e,"Sprite",function(){return ke}),n.d(e,"LOD",function(){return je}),n.d(e,"SkinnedMesh",function(){return Ue}),n.d(e,"Skeleton",function(){return De}),n.d(e,"Bone",function(){return Fe}),n.d(e,"Mesh",function(){return J}),n.d(e,"LineSegments",function(){return Ve}),n.d(e,"LineLoop",function(){return He}),n.d(e,"Line",function(){return ze}),n.d(e,"Points",function(){return We}),n.d(e,"Group",function(){return Te}),n.d(e,"VideoTexture",function(){return qe}),n.d(e,"DataTexture",function(){return f}),n.d(e,"CompressedTexture",function(){return Ze}),n.d(e,"CubeTexture",function(){return ct}),n.d(e,"CanvasTexture",function(){return _e}),n.d(e,"DepthTexture",function(){return Xe}),n.d(e,"Texture",function(){return c}),n.d(e,"CompressedTextureLoader",function(){return Er}),n.d(e,"DataTextureLoader",function(){return Sr}),n.d(e,"CubeTextureLoader",function(){return Mr}),n.d(e,"TextureLoader",function(){return Cr}),n.d(e,"ObjectLoader",function(){return Mi}),n.d(e,"MaterialLoader",function(){return xi}),n.d(e,"BufferGeometryLoader",function(){return Ei}),n.d(e,"DefaultLoadingManager",function(){return uc}),n.d(e,"LoadingManager",function(){return wr}),n.d(e,"JSONLoader",function(){return Ti}),n.d(e,"ImageLoader",function(){return Tr}),n.d(e,"ImageBitmapLoader",function(){return Ci}),n.d(e,"FontLoader",function(){return Li}),n.d(e,"FileLoader",function(){return xr}),n.d(e,"Loader",function(){return Si}),n.d(e,"LoaderUtils",function(){return yc}),n.d(e,"Cache",function(){return ac}),n.d(e,"AudioLoader",function(){return Ni}),n.d(e,"SpotLightShadow",function(){return ni}),n.d(e,"SpotLight",function(){return ri}),n.d(e,"PointLight",function(){return ii}),n.d(e,"RectAreaLight",function(){return ui}),n.d(e,"HemisphereLight",function(){return ti}),n.d(e,"DirectionalLightShadow",function(){return oi}),n.d(e,"DirectionalLight",function(){return si}),n.d(e,"AmbientLight",function(){return ai}),n.d(e,"LightShadow",function(){return ei}),n.d(e,"Light",function(){return $r}),n.d(e,"StereoCamera",function(){return Ii}),n.d(e,"PerspectiveCamera",function(){return Me}),n.d(e,"OrthographicCamera",function(){return T}),n.d(e,"CubeCamera",function(){return ki}),n.d(e,"ArrayCamera",function(){return Ce}),n.d(e,"Camera",function(){return S}),n.d(e,"AudioListener",function(){return ji}),n.d(e,"PositionalAudio",function(){return Fi}),n.d(e,"AudioContext",function(){return xc}),n.d(e,"AudioAnalyser",function(){return Ui}),n.d(e,"Audio",function(){return Di}),n.d(e,"VectorKeyframeTrack",function(){return _i}),n.d(e,"StringKeyframeTrack",function(){return ci}),n.d(e,"QuaternionKeyframeTrack",function(){return fi}),n.d(e,"NumberKeyframeTrack",function(){return mi}),n.d(e,"ColorKeyframeTrack",function(){return di}),n.d(e,"BooleanKeyframeTrack",function(){return li}),n.d(e,"PropertyMixer",function(){return Bi}),n.d(e,"PropertyBinding",function(){return Vi}),n.d(e,"KeyframeTrack",function(){return bi}),n.d(e,"AnimationUtils",function(){return mc}),n.d(e,"AnimationObjectGroup",function(){return Hi}),n.d(e,"AnimationMixer",function(){return Wi}),n.d(e,"AnimationClip",function(){return wi}),n.d(e,"Uniform",function(){return qi}),n.d(e,"InstancedBufferGeometry",function(){return Zi}),n.d(e,"BufferGeometry",function(){return B}),n.d(e,"Geometry",function(){return C}),n.d(e,"InterleavedBufferAttribute",function(){return Xi}),n.d(e,"InstancedInterleavedBuffer",function(){return Yi}),n.d(e,"InterleavedBuffer",function(){return Ki}),n.d(e,"InstancedBufferAttribute",function(){return Ji}),n.d(e,"Face3",function(){return M}),n.d(e,"Object3D",function(){return E}),n.d(e,"Raycaster",function(){return Qi}),n.d(e,"Layers",function(){return x}),n.d(e,"EventDispatcher",function(){return r}),n.d(e,"Clock",function(){return eo}),n.d(e,"QuaternionLinearInterpolant",function(){return pi}),n.d(e,"LinearInterpolant",function(){return yi}),n.d(e,"DiscreteInterpolant",function(){return gi}),n.d(e,"CubicInterpolant",function(){return vi}),n.d(e,"Interpolant",function(){return hi}),n.d(e,"Triangle",function(){return Y}),n.d(e,"Math",function(){return ku}),n.d(e,"Spherical",function(){return no}),n.d(e,"Cylindrical",function(){return ro}),n.d(e,"Plane",function(){return v}),n.d(e,"Frustum",function(){return y}),n.d(e,"Sphere",function(){return m}),n.d(e,"Ray",function(){return X}),n.d(e,"Matrix4",function(){return o}
1),n.d(e,"Matrix3",function(){return u}),n.d(e,"Box3",function(){return d}),n.d(e,"Box2",function(){return io}),n.d(e,"Line3",function(){return K}),n.d(e,"Euler",function(){return w}),n.d(e,"Vector4",function(){return l}),n.d(e,"Vector3",function(){return a}),n.d(e,"Vector2",function(){return i}),n.d(e,"Quaternion",function(){return s}),n.d(e,"Color",function(){return g}),n.d(e,"ImmediateRenderObject",function(){return oo}),n.d(e,"VertexNormalsHelper",function(){return so}),n.d(e,"SpotLightHelper",function(){return ao}),n.d(e,"SkeletonHelper",function(){return co}),n.d(e,"PointLightHelper",function(){return lo}),n.d(e,"RectAreaLightHelper",function(){return ho}),n.d(e,"HemisphereLightHelper",function(){return po}),n.d(e,"GridHelper",function(){return fo}),n.d(e,"PolarGridHelper",function(){return mo}),n.d(e,"FaceNormalsHelper",function(){return vo}),n.d(e,"DirectionalLightHelper",function(){return yo}),n.d(e,"CameraHelper",function(){return go}),n.d(e,"BoxHelper",function(){return bo}),n.d(e,"Box3Helper",function(){return _o}),n.d(e,"PlaneHelper",function(){return wo}),n.d(e,"ArrowHelper",function(){return xo}),n.d(e,"AxesHelper",function(){return Eo}),n.d(e,"Shape",function(){return Qr}),n.d(e,"Path",function(){return Jr}),n.d(e,"ShapePath",function(){return Oi}),n.d(e,"Font",function(){return Ai}),n.d(e,"CurvePath",function(){return Yr}),n.d(e,"Curve",function(){return Or}),n.d(e,"ShapeUtils",function(){return rc}),n.d(e,"WebGLUtils",function(){return Se}),n.d(e,"WireframeGeometry",function(){return Ke}),n.d(e,"ParametricGeometry",function(){return Ye}),n.d(e,"ParametricBufferGeometry",function(){return Je}),n.d(e,"TetrahedronGeometry",function(){return tn}),n.d(e,"TetrahedronBufferGeometry",function(){return en}),n.d(e,"OctahedronGeometry",function(){return nn}),n.d(e,"OctahedronBufferGeometry",function(){return rn}),n.d(e,"IcosahedronGeometry",function(){return on}),n.d(e,"IcosahedronBufferGeometry",function(){return sn}),n.d(e,"DodecahedronGeometry",function(){return an}),n.d(e,"DodecahedronBufferGeometry",function(){return un}),n.d(e,"PolyhedronGeometry",function(){return Qe}),n.d(e,"PolyhedronBufferGeometry",function(){return $e}),n.d(e,"TubeGeometry",function(){return cn}),n.d(e,"TubeBufferGeometry",function(){return ln}),n.d(e,"TorusKnotGeometry",function(){return hn}),n.d(e,"TorusKnotBufferGeometry",function(){return pn}),n.d(e,"TorusGeometry",function(){return fn}),n.d(e,"TorusBufferGeometry",function(){return dn}),n.d(e,"TextGeometry",function(){return Xn}),n.d(e,"TextBufferGeometry",function(){return Kn}),n.d(e,"SphereGeometry",function(){return Yn}),n.d(e,"SphereBufferGeometry",function(){return Jn}),n.d(e,"RingGeometry",function(){return Qn}),n.d(e,"RingBufferGeometry",function(){return $n}),n.d(e,"PlaneGeometry",function(){return H}),n.d(e,"PlaneBufferGeometry",function(){return G}),n.d(e,"LatheGeometry",function(){return tr}),n.d(e,"LatheBufferGeometry",function(){return er}),n.d(e,"ShapeGeometry",function(){return nr}),n.d(e,"ShapeBufferGeometry",function(){return rr}),n.d(e,"ExtrudeGeometry",function(){return Wn}),n.d(e,"ExtrudeBufferGeometry",function(){return qn}),n.d(e,"EdgesGeometry",function(){return or}),n.d(e,"ConeGeometry",function(){return ur}),n.d(e,"ConeBufferGeometry",function(){return cr}),n.d(e,"CylinderGeometry",function(){return sr}),n.d(e,"CylinderBufferGeometry",function(){return ar}),n.d(e,"CircleGeometry",function(){return lr}),n.d(e,"CircleBufferGeometry",function(){return hr}),n.d(e,"BoxGeometry",function(){return z}),n.d(e,"BoxBufferGeometry",function(){return V}),n.d(e,"ShadowMaterial",function(){return pr}),n.d(e,"SpriteMaterial",function(){return Ie}),n.d(e,"RawShaderMaterial",function(){return fr}),n.d(e,"ShaderMaterial",function(){return Z}),n.d(e,"PointsMaterial",function(){return Ge}),n.d(e,"MeshPhysicalMaterial",function(){return mr}),n.d(e,"MeshStandardMaterial",function(){return dr}),n.d(e,"MeshPhongMaterial",function(){return vr}),n.d(e,"MeshToonMaterial",function(){return yr}),n.d(e,"MeshNormalMaterial",function(){return gr}),n.d(e,"MeshLambertMaterial",function(){return br}),n.d(e,"MeshDepthMaterial",function(){return ye}),n.d(e,"MeshDistanceMaterial",function(){return ge}),n.d(e,"MeshBasicMaterial",function(){return q});n.d(e,"LineDashedMaterial",function(){return _r}),n.d(e,"LineBasicMaterial",function(){return Be}),n.d(e,"Material",function(){return W}),n.d(e,"Float64BufferAttribute",function(){return D}),n.d(e,"Float32BufferAttribute",function(){return j}),n.d(e,"Uint32BufferAttribute",function(){return k}),n.d(e,"Int32BufferAttribute",function(){return I}),n.d(e,"Uint16BufferAttribute",function(){return N}),n.d(e,"Int16BufferAttribute",function(){return L}),n.d(e,"Uint8ClampedBufferAttribute",function(){return R}),n.d(e,"Uint8BufferAttribute",function(){return P}),n.d(e,"Int8BufferAttribute",function(){return A}),n.d(e,"BufferAttribute",function(){return O}),n.d(e,"ArcCurve",function(){return Pr}),n.d(e,"CatmullRomCurve3",function(){return Lr}),n.d(e,"CubicBezierCurve",function(){return Hr}),n.d(e,"CubicBezierCurve3",function(){return Gr}),n.d(e,"EllipseCurve",function(){return Ar}),n.d(e,"LineCurve",function(){return Wr}),n.d(e,"LineCurve3",function(){return qr}),n.d(e,"QuadraticBezierCurve",function(){return Zr}),n.d(e,"QuadraticBezierCurve3",function(){return Xr}),n.d(e,"SplineCurve",function(){return Kr}),n.d(e,"REVISION",function(){return ns}),n.d(e,"MOUSE",function(){return rs}),n.d(e,"CullFaceNone",function(){return is}),n.d(e,"CullFaceBack",function(){return os}),n.d(e,"CullFaceFront",function(){return ss}),n.d(e,"CullFaceFrontBack",function(){return as}),n.d(e,"FrontFaceDirectionCW",function(){return us}),n.d(e,"FrontFaceDirectionCCW",function(){return cs}),n.d(e,"BasicShadowMap",function(){return ls}),n.d(e,"PCFShadowMap",function(){return hs}
1),n.d(e,"PCFSoftShadowMap",function(){return ps}),n.d(e,"FrontSide",function(){return fs}),n.d(e,"BackSide",function(){return ds}),n.d(e,"DoubleSide",function(){return ms}),n.d(e,"FlatShading",function(){return vs}),n.d(e,"SmoothShading",function(){return ys}),n.d(e,"NoColors",function(){return gs}),n.d(e,"FaceColors",function(){return bs}),n.d(e,"VertexColors",function(){return _s}),n.d(e,"NoBlending",function(){return ws}),n.d(e,"NormalBlending",function(){return xs}),n.d(e,"AdditiveBlending",function(){return Es}),n.d(e,"SubtractiveBlending",function(){return Ss}),n.d(e,"MultiplyBlending",function(){return Ts}),n.d(e,"CustomBlending",function(){return Ms}),n.d(e,"AddEquation",function(){return Cs}),n.d(e,"SubtractEquation",function(){return Os}),n.d(e,"ReverseSubtractEquation",function(){return As}),n.d(e,"MinEquation",function(){return Ps}),n.d(e,"MaxEquation",function(){return Rs}),n.d(e,"ZeroFactor",function(){return Ls}),n.d(e,"OneFactor",function(){return Ns}),n.d(e,"SrcColorFactor",function(){return Is}),n.d(e,"OneMinusSrcColorFactor",function(){return ks}),n.d(e,"SrcAlphaFactor",function(){return js}),n.d(e,"OneMinusSrcAlphaFactor",function(){return Ds}),n.d(e,"DstAlphaFactor",function(){return Fs}),n.d(e,"OneMinusDstAlphaFactor",function(){return Us}),n.d(e,"DstColorFactor",function(){return Bs}),n.d(e,"OneMinusDstColorFactor",function(){return zs}),n.d(e,"SrcAlphaSaturateFactor",function(){return Vs}),n.d(e,"NeverDepth",function(){return Hs}),n.d(e,"AlwaysDepth",function(){return Gs}),n.d(e,"LessDepth",function(){return Ws}),n.d(e,"LessEqualDepth",function(){return qs}),n.d(e,"EqualDepth",function(){return Zs}),n.d(e,"GreaterEqualDepth",function(){return Xs}),n.d(e,"GreaterDepth",function(){return Ks}),n.d(e,"NotEqualDepth",function(){return Ys}),n.d(e,"MultiplyOperation",function(){return Js}),n.d(e,"MixOperation",function(){return Qs}),n.d(e,"AddOperation",function(){return $s}),n.d(e,"NoToneMapping",function(){return ta}),n.d(e,"LinearToneMapping",function(){return ea}),n.d(e,"ReinhardToneMapping",function(){return na}),n.d(e,"Uncharted2ToneMapping",function(){return ra}),n.d(e,"CineonToneMapping",function(){return ia}),n.d(e,"UVMapping",function(){return oa}),n.d(e,"CubeReflectionMapping",function(){return sa}),n.d(e,"CubeRefractionMapping",function(){return aa}),n.d(e,"EquirectangularReflectionMapping",function(){return ua}),n.d(e,"EquirectangularRefractionMapping",function(){return ca}),n.d(e,"SphericalReflectionMapping",function(){return la}),n.d(e,"CubeUVReflectionMapping",function(){return ha}),n.d(e,"CubeUVRefractionMapping",function(){return pa}),n.d(e,"RepeatWrapping",function(){return fa}),n.d(e,"ClampToEdgeWrapping",function(){return da}),n.d(e,"MirroredRepeatWrapping",function(){return ma}),n.d(e,"NearestFilter",function(){return va}),n.d(e,"NearestMipMapNearestFilter",function(){return ya}),n.d(e,"NearestMipMapLinearFilter",function(){return ga}),n.d(e,"LinearFilter",function(){return ba}),n.d(e,"LinearMipMapNearestFilter",function(){return _a}),n.d(e,"LinearMipMapLinearFilter",function(){return wa}),n.d(e,"UnsignedByteType",function(){return xa}),n.d(e,"ByteType",function(){return Ea}),n.d(e,"ShortType",function(){return Sa}),n.d(e,"UnsignedShortType",function(){return Ta}),n.d(e,"IntType",function(){return Ma}),n.d(e,"UnsignedIntType",function(){return Ca}),n.d(e,"FloatType",function(){return Oa}),n.d(e,"HalfFloatType",function(){return Aa}),n.d(e,"UnsignedShort4444Type",function(){return Pa}),n.d(e,"UnsignedShort5551Type",function(){return Ra}),n.d(e,"UnsignedShort565Type",function(){return La}),n.d(e,"UnsignedInt248Type",function(){return Na}),n.d(e,"AlphaFormat",function(){return Ia}),n.d(e,"RGBFormat",function(){return ka}),n.d(e,"RGBAFormat",function(){return ja}),n.d(e,"LuminanceFormat",function(){return Da}),n.d(e,"LuminanceAlphaFormat",function(){return Fa}),n.d(e,"RGBEFormat",function(){return Ua}),n.d(e,"DepthFormat",function(){return Ba}),n.d(e,"DepthStencilFormat",function(){return za}),n.d(e,"RGB_S3TC_DXT1_Format",function(){return Va}),n.d(e,"RGBA_S3TC_DXT1_Format",function(){return Ha}),n.d(e,"RGBA_S3TC_DXT3_Format",function(){return Ga}),n.d(e,"RGBA_S3TC_DXT5_Format",function(){return Wa}),n.d(e,"RGB_PVRTC_4BPPV1_Format",function(){return qa}),n.d(e,"RGB_PVRTC_2BPPV1_Format",function(){return Za}),n.d(e,"RGBA_PVRTC_4BPPV1_Format",function(){return Xa}),n.d(e,"RGBA_PVRTC_2BPPV1_Format",function(){return Ka}),n.d(e,"RGB_ETC1_Format",function(){return Ya}),n.d(e,"RGBA_ASTC_4x4_Format",function(){return Ja}),n.d(e,"RGBA_ASTC_5x4_Format",function(){return Qa}),n.d(e,"RGBA_ASTC_5x5_Format",function(){return $a}),n.d(e,"RGBA_ASTC_6x5_Format",function(){return tu}),n.d(e,"RGBA_ASTC_6x6_Format",function(){return eu}),n.d(e,"RGBA_ASTC_8x5_Format",function(){return nu}),n.d(e,"RGBA_ASTC_8x6_Format",function(){return ru}),n.d(e,"RGBA_ASTC_8x8_Format",function(){return iu}),n.d(e,"RGBA_ASTC_10x5_Format",function(){return ou}),n.d(e,"RGBA_ASTC_10x6_Format",function(){return su}),n.d(e,"RGBA_ASTC_10x8_Format",function(){return au}),n.d(e,"RGBA_ASTC_10x10_Format",function(){return uu}),n.d(e,"RGBA_ASTC_12x10_Format",function(){return cu}),n.d(e,"RGBA_ASTC_12x12_Format",function(){return lu}),n.d(e,"LoopOnce",function(){return hu}),n.d(e,"LoopRepeat",function(){return pu}),n.d(e,"LoopPingPong",function(){return fu}),n.d(e,"InterpolateDiscrete",function(){return du}),n.d(e,"InterpolateLinear",function(){return mu}),n.d(e,"InterpolateSmooth",function(){return vu}),n.d(e,"ZeroCurvatureEnding",function(){return yu}),n.d(e,"ZeroSlopeEnding",function(){return gu}),n.d(e,"WrapAroundEnding",function(){return bu}),n.d(e,"TrianglesDrawMode",function(){return _u}),n.d(e,"TriangleStripDrawMode",function(){return wu}),n.d(e,"TriangleFanDrawMode",function(){return xu}),n.d(e,"LinearEncoding",function(){return Eu}
vendor: 5,625 bytes, line 1
1),n.d(e,"sRGBEncoding",function(){return Su}),n.d(e,"GammaEncoding",function(){return Tu}),n.d(e,"RGBEEncoding",function(){return Mu}),n.d(e,"LogLuvEncoding",function(){return Cu}),n.d(e,"RGBM7Encoding",function(){return Ou}),n.d(e,"RGBM16Encoding",function(){return Au}),n.d(e,"RGBDEncoding",function(){return Pu}),n.d(e,"BasicDepthPacking",function(){return Ru}),n.d(e,"RGBADepthPacking",function(){return Lu}),n.d(e,"TangentSpaceNormalMap",function(){return Nu}),n.d(e,"ObjectSpaceNormalMap",function(){return Iu}),n.d(e,"CubeGeometry",function(){return z}),n.d(e,"Face4",function(){return So}),n.d(e,"LineStrip",function(){return Mc}),n.d(e,"LinePieces",function(){return Cc}),n.d(e,"MeshFaceMaterial",function(){return To}),n.d(e,"MultiMaterial",function(){return Mo}),n.d(e,"PointCloud",function(){return Co}),n.d(e,"Particle",function(){return Oo}),n.d(e,"ParticleSystem",function(){return Ao}),n.d(e,"PointCloudMaterial",function(){return Po}),n.d(e,"ParticleBasicMaterial",function(){return Ro}),n.d(e,"ParticleSystemMaterial",function(){return Lo}),n.d(e,"Vertex",function(){return No}),n.d(e,"DynamicBufferAttribute",function(){return Io}),n.d(e,"Int8Attribute",function(){return ko}),n.d(e,"Uint8Attribute",function(){return jo}),n.d(e,"Uint8ClampedAttribute",function(){return Do}),n.d(e,"Int16Attribute",function(){return Fo}),n.d(e,"Uint16Attribute",function(){return Uo}),n.d(e,"Int32Attribute",function(){return Bo}),n.d(e,"Uint32Attribute",function(){return zo}),n.d(e,"Float32Attribute",function(){return Vo}),n.d(e,"Float64Attribute",function(){return Ho}),n.d(e,"ClosedSplineCurve3",function(){return Go}),n.d(e,"SplineCurve3",function(){return Wo}),n.d(e,"Spline",function(){return qo}),n.d(e,"AxisHelper",function(){return Zo}),n.d(e,"BoundingBoxHelper",function(){return Xo}),n.d(e,"EdgesHelper",function(){return Ko}),n.d(e,"WireframeHelper",function(){return Yo}),n.d(e,"XHRLoader",function(){return Jo}),n.d(e,"BinaryTextureLoader",function(){return Qo}),n.d(e,"GeometryUtils",function(){return Oc}),n.d(e,"ImageUtils",function(){return Ac}),n.d(e,"Projector",function(){return $o}),n.d(e,"CanvasRenderer",function(){return ts});n.d(e,"SceneUtils",function(){return Pc}),n.d(e,"LensFlare",function(){return es}),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&&function(){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 r=arguments[n];if(void 0!==r&&null!==r)for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i])}return e}}(),Object.assign(r.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,r=n[t];if(void 0!==r){var i=r.indexOf(e);-1!==i&&r.splice(i,1)}}},dispatchEvent:function(t){if(void 0!==this._listeners){var e=this._listeners,n=e[t.type];if(void 0!==n){t.target=this;for(var r=n.slice(0),i=0,o=r.length;i<o;i++)r[i].call(this,t)}}}});var ns="94",rs={LEFT:0,MIDDLE:1,RIGHT:2},is=0,os=1,ss=2,as=3,us=0,cs=1,ls=0,hs=1,ps=2,fs=0,ds=1,ms=2,vs=1,ys=2,gs=0,bs=1,_s=2,ws=0,xs=1,Es=2,Ss=3,Ts=4,Ms=5,Cs=100,Os=101,As=102,Ps=103,Rs=104,Ls=200,Ns=201,Is=202,ks=203,js=204,Ds=205,Fs=206,Us=207,Bs=208,zs=209,Vs=210,Hs=0,Gs=1,Ws=2,qs=3,Zs=4,Xs=5,Ks=6,Ys=7,Js=0,Qs=1,$s=2,ta=0,ea=1,na=2,ra=3,ia=4,oa=300,sa=301,aa=302,ua=303,ca=304,la=305,ha=306,pa=307,fa=1e3,da=1001,ma=1002,va=1003,ya=1004,ga=1005,ba=1006,_a=1007,wa=1008,xa=1009,Ea=1010,Sa=1011,Ta=1012,Ma=1013,Ca=1014,Oa=1015,Aa=1016,Pa=1017,Ra=1018,La=1019,Na=1020,Ia=1021,ka=1022,ja=1023,Da=1024,Fa=1025,Ua=ja,Ba=1026,za=1027,Va=33776,Ha=33777,Ga=33778,Wa=33779,qa=35840,Za=35841,Xa=35842,Ka=35843,Ya=36196,Ja=37808,Qa=37809,$a=37810,tu=37811,eu=37812,nu=37813,ru=37814,iu=37815,ou=37816,su=37817,au=37818,uu=37819,cu=37820,lu=37821,hu=2200,pu=2201,fu=2202,du=2300,mu=2301,vu=2302,yu=2400,gu=2401,bu=2402,_u=0,wu=1,xu=2,Eu=3e3,Su=3001,Tu=3007,Mu=3002,Cu=3003,Ou=3004,Au=3005,Pu=3006,Ru=3200,Lu=3201,Nu=0,Iu=1,ku={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,r=4294967295*Math.random()|0,i=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&r|128]+t[r>>8&255]+"-"+t[r>>16&255]+t[r>>24&255]+t[255&i]+t[i>>8&255]+t[i>>16&255]+t[i>>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,r,i){return r+(t-e)*(i-r)/(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)}
vendor: 32,210 bytes, line 1
1,randFloatSpread:function(t){return t*(.5-Math.random())},degToRad:function(t){return t*ku.DEG2RAD},radToDeg:function(t){return t*ku.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))}};Object.defineProperties(i.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(i.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,r=t.elements;return this.x=r[0]*e+r[3]*n+r[6],this.y=r[1]*e+r[4]*n+r[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:function(){var t=new i,e=new i;return function(n,r){return t.set(n,n),e.set(r,r),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},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},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),r=Math.sin(e),i=this.x-t.x,o=this.y-t.y;return this.x=i*n-o*r+t.x,this.y=i*r+o*n+t.y,this}}),Object.assign(o.prototype,{isMatrix4:!0,set:function(t,e,n,r,i,o,s,a,u,c,l,h,p,f,d,m){var v=this.elements;return v[0]=t,v[4]=e,v[8]=n,v[12]=r,v[1]=i,v[5]=o,v[9]=s,v[13]=a,v[2]=u,v[6]=c,v[10]=l,v[14]=h,v[3]=p,v[7]=f,v[11]=d,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 o).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:function(){var t=new a;return function(e){var n=this.elements,r=e.elements,i=1/t.setFromMatrixColumn(e,0).length(),o=1/t.setFromMatrixColumn(e,1).length(),s=1/t.setFromMatrixColumn(e,2).length();return n[0]=r[0]*i,n[1]=r[1]*i,n[2]=r[2]*i,n[3]=0,n[4]=r[4]*o,n[5]=r[5]*o,n[6]=r[6]*o,n[7]=0,n[8]=r[8]*s,n[9]=r[9]*s,n[10]=r[10]*s,n[11]=0,n[12]=0,n[13]=0,n[14]=0,n[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,r=t.y,i=t.z,o=Math.cos(n),s=Math.sin(n),a=Math.cos(r),u=Math.sin(r),c=Math.cos(i),l=Math.sin(i);if("XYZ"===t.order){var h=o*c,p=o*l,f=s*c,d=s*l;e[0]=a*c,e[4]=-a*l,e[8]=u,e[1]=p+f*u,e[5]=h-d*u,e[9]=-s*a,e[2]=d-h*u,e[6]=f+p*u,e[10]=o*a}else if("YXZ"===t.order){var m=a*c,v=a*l,y=u*c,g=u*l;e[0]=m+g*s,e[4]=y*s-v,e[8]=o*u,e[1]=o*l,e[5]=o*c,e[9]=-s,e[2]=v*s-y,e[6]=g+m*s,e[10]=o*a}else if("ZXY"===t.order){var m=a*c,v=a*l,y=u*c,g=u*l;e[0]=m-g*s,e[4]=-o*l,e[8]=y+v*s,e[1]=v+y*s,e[5]=o*c,e[9]=g-m*s,e[2]=-o*u,e[6]=s,e[10]=o*a}else if("ZYX"===t.order){var h=o*c,p=o*l,f=s*c,d=s*l;e[0]=a*c,e[4]=f*u-p,e[8]=h*u+d,e[1]=a*l,e[5]=d*u+h,e[9]=p*u-f,e[2]=-u,e[6]=s*a,e[10]=o*a}else if("YZX"===t.order){var b=o*a,_=o*u,w=s*a,x=s*u;e[0]=a*c,e[4]=x-b*l,e[8]=w*l+_,e[1]=l,e[5]=o*c,e[9]=-s*c,e[2]=-u*c,e[6]=_*l+w,e[10]=b-x*l}else if("XZY"===t.order){var b=o*a,_=o*u,w=s*a,x=s*u;e[0]=a*c,e[4]=-l,e[8]=u*c,e[1]=b*l+x,e[5]=o*c,e[9]=_*l-w,e[2]=w*l-_,e[6]=s*c,e[10]=x*l+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:function(){var t=new a(0,0,0),e=new a(1,1,1);return function(n){return this.compose(t,n,e)}}(),lookAt:function(){var t=new a,e=new a,n=new a;return function(r,i,o){var s=this.elements;return n.subVectors(r,i),0===n.lengthSq()&&(n.z=1),n.normalize(),t.crossVectors(o,n),0===t.lengthSq()&&(1===Math.abs(o.z)?n.x+=1e-4:n.z+=1e-4,n.normalize(),t.crossVectors(o,n)),t.normalize(),e.crossVectors(n,t),s[0]=t.x,s[4]=e.x,s[8]=n.x,s[1]=t.y,s[5]=e.y,s[9]=n.y,s[2]=t.z,s[6]=e.z,s[10]=n.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,r=e.elements,i=this.elements,o=n[0],s=n[4],a=n[8],u=n[12],c=n[1],l=n[5],h=n[9],p=n[13],f=n[2],d=n[6],m=n[10],v=n[14],y=n[3],g=n[7],b=n[11],_=n[15],w=r[0],x=r[4],E=r[8],S=r[12],T=r[1],M=r[5],C=r[9],O=r[13],A=r[2],P=r[6],R=r[10],L=r[14],N=r[3],I=r[7],k=r[11],j=r[15];return i[0]=o*w+s*T+a*A+u*N,i[4]=o*x+s*M+a*P+u*I,i[8]=o*E+s*C+a*R+u*k,i[12]=o*S+s*O+a*L+u*j,i[1]=c*w+l*T+h*A+p*N,i[5]=c*x+l*M+h*P+p*I,i[9]=c*E+l*C+h*R+p*k,i[13]=c*S+l*O+h*L+p*j,i[2]=f*w+d*T+m*A+v*N,i[6]=f*x+d*M+m*P+v*I,i[10]=f*E+d*C+m*R+v*k,i[14]=f*S+d*O+m*L+v*j,i[3]=y*w+g*T+b*A+_*N,i[7]=y*x+g*M+b*P+_*I,i[11]=y*E+g*C+b*R+_*k,i[15]=y*S+g*O+b*L+_*j,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 a;return function(e){for(var n=0,r=e.count;n<r;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],r=t[8],i=t[12],o=t[1],s=t[5],a=t[9],u=t[13],c=t[2],l=t[6],h=t[10],p=t[14];return t[3]*(+i*a*l-r*u*l-i*s*h+n*u*h+r*s*p-n*a*p)+t[7]*(+e*a*p-e*u*h+i*o*h-r*o*p+r*u*c-i*a*c)+t[11]*(+e*u*l-e*s*p-i*o*l+n*o*p+i*s*c-n*u*c)+t[15]*(-r*s*c-e*a*l+e*s*h+r*o*l-n*o*h+n*a*c)},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,r=t.elements,i=r[0],o=r[1],s=r[2],a=r[3],u=r[4],c=r[5],l=r[6],h=r[7],p=r[8],f=r[9],d=r[10],m=r[11],v=r[12],y=r[13],g=r[14],b=r[15],_=f*g*h-y*d*h+y*l*m-c*g*m-f*l*b+c*d*b,w=v*d*h-p*g*h-v*l*m+u*g*m+p*l*b-u*d*b,x=p*y*h-v*f*h+v*c*m-u*y*m-p*c*b+u*f*b,E=v*f*l-p*y*l-v*c*d+u*y*d+p*c*g-u*f*g,S=i*_+o*w+s*x+a*E;if(0===S){var T="THREE.Matrix4: .getInverse() can't invert matrix, determinant is 0";if(!0===e)throw new Error(T);return console.warn(T),this.identity()}var M=1/S;return n[0]=_*M,n[1]=(y*d*a-f*g*a-y*s*m+o*g*m+f*s*b-o*d*b)*M,n[2]=(c*g*a-y*l*a+y*s*h-o*g*h-c*s*b+o*l*b)*M,n[3]=(f*l*a-c*d*a-f*s*h+o*d*h+c*s*m-o*l*m)*M,n[4]=w*M,n[5]=(p*g*a-v*d*a+v*s*m-i*g*m-p*s*b+i*d*b)*M,n[6]=(v*l*a-u*g*a-v*s*h+i*g*h+u*s*b-i*l*b)*M,n[7]=(u*d*a-p*l*a+p*s*h-i*d*h-u*s*m+i*l*m)*M,n[8]=x*M,n[9]=(v*f*a-p*y*a-v*o*m+i*y*m+p*o*b-i*f*b)*M,n[10]=(u*y*a-v*c*a+v*o*h-i*y*h-u*o*b+i*c*b)*M,n[11]=(p*c*a-u*f*a-p*o*h+i*f*h+u*o*m-i*c*m)*M,n[12]=E*M,n[13]=(p*y*s-v*f*s+v*o*d-i*y*d-p*o*g+i*f*g)*M,n[14]=(v*c*s-u*y*s-v*o*l+i*y*l+u*o*g-i*c*g)*M,n[15]=(u*f*s-p*c*s+p*o*l-i*f*l-u*o*d+i*c*d)*M,this},scale:function(t){var e=this.elements,n=t.x,r=t.y,i=t.z;return e[0]*=n,e[4]*=r,e[8]*=i,e[1]*=n,e[5]*=r,e[9]*=i,e[2]*=n,e[6]*=r,e[10]*=i,e[3]*=n,e[7]*=r,e[11]*=i,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],r=t[8]*t[8]+t[9]*t[9]+t[10]*t[10];return Math.sqrt(Math.max(e,n,r))},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),r=Math.sin(e),i=1-n,o=t.x,s=t.y,a=t.z,u=i*o,c=i*s;return this.set(u*o+n,u*s-r*a,u*a+r*s,0,u*s+r*a,c*s+n,c*a-r*o,0,u*a-r*s,c*a+r*o,i*a*a+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 r=this.elements,i=e._x,o=e._y,s=e._z,a=e._w,u=i+i,c=o+o,l=s+s,h=i*u,p=i*c,f=i*l,d=o*c,m=o*l,v=s*l,y=a*u,g=a*c,b=a*l,_=n.x,w=n.y,x=n.z;return r[0]=(1-(d+v))*_,r[1]=(p+b)*_,r[2]=(f-g)*_,r[3]=0,r[4]=(p-b)*w,r[5]=(1-(h+v))*w,r[6]=(m+y)*w,r[7]=0,r[8]=(f+g)*x,r[9]=(m-y)*x,r[10]=(1-(h+d))*x,r[11]=0,r[12]=t.x,r[13]=t.y,r[14]=t.z,r[15]=1,this},decompose:function(){var t=new a,e=new o;return function(n,r,i){var o=this.elements,s=t.set(o[0],o[1],o[2]).length(),a=t.set(o[4],o[5],o[6]).length(),u=t.set(o[8],o[9],o[10]).length();this.determinant()<0&&(s=-s),n.x=o[12],n.y=o[13],n.z=o[14],e.copy(this);var c=1/s,l=1/a,h=1/u;return e.elements[0]*=c,e.elements[1]*=c,e.elements[2]*=c,e.elements[4]*=l,e.elements[5]*=l,e.elements[6]*=l,e.elements[8]*=h,e.elements[9]*=h,e.elements[10]*=h,r.setFromRotationMatrix(e),i.x=s,i.y=a,i.z=u,this}}(),makePerspective:function(t,e,n,r,i,o){void 0===o&&console.warn("THREE.Matrix4: .makePerspective() has been redefined and has a new signature. Please check the docs.");var s=this.elements,a=2*i/(e-t),u=2*i/(n-r),c=(e+t)/(e-t),l=(n+r)/(n-r),h=-(o+i)/(o-i),p=-2*o*i/(o-i);return s[0]=a,s[4]=0,s[8]=c,s[12]=0,s[1]=0,s[5]=u,s[9]=l,s[13]=0,s[2]=0,s[6]=0,s[10]=h,s[14]=p,s[3]=0,s[7]=0,s[11]=-1,s[15]=0,this},makeOrthographic:function(t,e,n,r,i,o){var s=this.elements,a=1/(e-t),u=1/(n-r),c=1/(o-i),l=(e+t)*a,h=(n+r)*u,p=(o+i)*c;return s[0]=2*a,s[4]=0,s[8]=0,s[12]=-l,s[1]=0,s[5]=2*u,s[9]=0,s[13]=-h,s[2]=0,s[6]=0,s[10]=-2*c,s[14]=-p,s[3]=0,s[7]=0,s[11]=0,s[15]=1,this},equals:function(t){for(var e=this.elements,n=t.elements,r=0;r<16;r++)if(e[r]!==n[r])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(s,{slerp:function(t,e,n,r){return n.copy(t).slerp(e,r)},slerpFlat:function(t,e,n,r,i,o,s){var a=n[r+0],u=n[r+1],c=n[r+2],l=n[r+3],h=i[o+0],p=i[o+1],f=i[o+2],d=i[o+3];if(l!==d||a!==h||u!==p||c!==f){var m=1-s,v=a*h+u*p+c*f+l*d,y=v>=0?1:-1,g=1-v*v;if(g>Number.EPSILON){var b=Math.sqrt(g),_=Math.atan2(b,v*y);m=Math.sin(m*_)/b,s=Math.sin(s*_)/b}var w=s*y;if(a=a*m+h*w,u=u*m+p*w,c=c*m+f*w,l=l*m+d*w,m===1-s){var x=1/Math.sqrt(a*a+u*u+c*c+l*l);a*=x,u*=x,c*=x,l*=x}}t[e]=a,t[e+1]=u,t[e+2]=c,t[e+3]=l}}),Object.defineProperties(s.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(s.prototype,{set:function(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._w=r,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,r=t._y,i=t._z,o=t.order,s=Math.cos,a=Math.sin,u=s(n/2),c=s(r/2),l=s(i/2),h=a(n/2),p=a(r/2),f=a(i/2);return"XYZ"===o?(this._x=h*c*l+u*p*f,this._y=u*p*l-h*c*f,this._z=u*c*f+h*p*l,this._w=u*c*l-h*p*f):"YXZ"===o?(this._x=h*c*l+u*p*f,this._y=u*p*l-h*c*f,this._z=u*c*f-h*p*l,this._w=u*c*l+h*p*f):"ZXY"===o?(this._x=h*c*l-u*p*f,this._y=u*p*l+h*c*f,this._z=u*c*f+h*p*l,this._w=u*c*l-h*p*f):"ZYX"===o?(this._x=h*c*l-u*p*f,this._y=u*p*l+h*c*f,this._z=u*c*f-h*p*l,this._w=u*c*l+h*p*f):"YZX"===o?(this._x=h*c*l+u*p*f,this._y=u*p*l+h*c*f,this._z=u*c*f-h*p*l,this._w=u*c*l-h*p*f):"XZY"===o&&(this._x=h*c*l-u*p*f,this._y=u*p*l-h*c*f,this._z=u*c*f+h*p*l,this._w=u*c*l+h*p*f),!1!==e&&this.onChangeCallback(),this},setFromAxisAngle:function(t,e){var n=e/2,r=Math.sin(n);return this._x=t.x*r,this._y=t.y*r,this._z=t.z*r,this._w=Math.cos(n),this.onChangeCallback(),this},setFromRotationMatrix:function(t){var e,n=t.elements,r=n[0],i=n[4],o=n[8],s=n[1],a=n[5],u=n[9],c=n[2],l=n[6],h=n[10],p=r+a+h;return p>0?(e=.5/Math.sqrt(p+1),this._w=.25/e,this._x=(l-u)*e,this._y=(o-c)*e,this._z=(s-i)*e):r>a&&r>h?(e=2*Math.sqrt(1+r-a-h),this._w=(l-u)/e,this._x=.25*e,this._y=(i+s)/e,this._z=(o+c)/e):a>h?(e=2*Math.sqrt(1+a-r-h),this._w=(o-c)/e,this._x=(i+s)/e,this._y=.25*e,this._z=(u+l)/e):(e=2*Math.sqrt(1+h-r-a),this._w=(s-i)/e,this._x=(o+c)/e,this._y=(u+l)/e,this._z=.25*e),this.onChangeCallback(),this},setFromUnitVectors:function(){var t,e=new a;return function(n,r){return void 0===e&&(e=new a),t=n.dot(r)+1,t<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,r),this._x=e.x,this._y=e.y,this._z=e.z,this._w=t,this.normalize()}}(),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,r=t._y,i=t._z,o=t._w,s=e._x,a=e._y,u=e._z,c=e._w;return this._x=n*c+o*s+r*u-i*a,this._y=r*c+o*a+i*s-n*u,this._z=i*c+o*u+n*a-r*s,this._w=o*c-n*s-r*a-i*u,this.onChangeCallback(),this},slerp:function(t,e){if(0===e)return this;if(1===e)return this.copy(t);var n=this._x,r=this._y,i=this._z,o=this._w,s=o*t._w+n*t._x+r*t._y+i*t._z;if(s<0?(this._w=-t._w,this._x=-t._x,this._y=-t._y,this._z=-t._z,s=-s):this.copy(t),s>=1)return this._w=o,this._x=n,this._y=r,this._z=i,this;var a=1-s*s;if(a<=Number.EPSILON){var u=1-e;return this._w=u*o+e*this._w,this._x=u*n+e*this._x,this._y=u*r+e*this._y,this._z=u*i+e*this._z,this.normalize()}var c=Math.sqrt(a),l=Math.atan2(c,s),h=Math.sin((1-e)*l)/c,p=Math.sin(e*l)/c;return this._w=o*h+this._w*p,this._x=n*h+this._x*p,this._y=r*h+this._y*p,this._z=i*h+this._z*p,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(a.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:function(){var t=new s;return function(e){return e&&e.isEuler||console.error("THREE.Vector3: .applyEuler() now expects an Euler rotation rather than a Vector3 and order."),this.applyQuaternion(t.setFromEuler(e))}}(),applyAxisAngle:function(){var t=new s;return function(e,n){return this.applyQuaternion(t.setFromAxisAngle(e,n))}}(),applyMatrix3:function(t){var e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[3]*n+i[6]*r,this.y=i[1]*e+i[4]*n+i[7]*r,this.z=i[2]*e+i[5]*n+i[8]*r,this},applyMatrix4:function(t){var e=this.x,n=this.y,r=this.z,i=t.elements,o=1/(i[3]*e+i[7]*n+i[11]*r+i[15]);return this.x=(i[0]*e+i[4]*n+i[8]*r+i[12])*o,this.y=(i[1]*e+i[5]*n+i[9]*r+i[13])*o,this.z=(i[2]*e+i[6]*n+i[10]*r+i[14])*o,this},applyQuaternion:function(t){var e=this.x,n=this.y,r=this.z,i=t.x,o=t.y,s=t.z,a=t.w,u=a*e+o*r-s*n,c=a*n+s*e-i*r,l=a*r+i*n-o*e,h=-i*e-o*n-s*r;return this.x=u*a+h*-i+c*-s-l*-o,this.y=c*a+h*-o+l*-i-u*-s,this.z=l*a+h*-s+u*-o-c*-i,this},project:function(){var t=new o;return function(e){return t.multiplyMatrices(e.projectionMatrix,t.getInverse(e.matrixWorld)),this.applyMatrix4(t)}}(),unproject:function(){var t=new o;return function(e){return t.multiplyMatrices(e.matrixWorld,t.getInverse(e.projectionMatrix)),this.applyMatrix4(t)}}(),transformDirection:function(t){var e=this.x,n=this.y,r=this.z,i=t.elements;return this.x=i[0]*e+i[4]*n+i[8]*r,this.y=i[1]*e+i[5]*n+i[9]*r,this.z=i[2]*e+i[6]*n+i[10]*r,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 a,e=new a;return function(n,r){return t.set(n,n,n),e.set(r,r,r),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,r=t.y,i=t.z,o=e.x,s=e.y,a=e.z;return this.x=r*a-i*s,this.y=i*o-n*a,this.z=n*s-r*o,this},projectOnVector:function(t){var e=t.dot(this)/t.lengthSq();return this.copy(t).multiplyScalar(e)},projectOnPlane:function(){var t=new a;return function(e){return t.copy(this).projectOnVector(e),this.sub(t)}}(),reflect:function(){var t=new a;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(ku.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,r=this.z-t.z;return e*e+n*n+r*r},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){var e=Math.sin(t.phi)*t.radius;return this.x=e*Math.sin(t.theta),this.y=Math.cos(t.phi)*t.radius,this.z=e*Math.cos(t.theta),this},setFromCylindrical:function(t){return this.x=t.radius*Math.sin(t.theta),this.y=t.y,this.z=t.radius*Math.cos(t.theta),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(),r=this.setFromMatrixColumn(t,2).length();return this.x=e,this.y=n,this.z=r,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(u.prototype,{isMatrix3:!0,set:function(t,e,n,r,i,o,s,a,u){var c=this.elements;return c[0]=t,c[1]=r,c[2]=s,c[3]=e,c[4]=i,c[5]=a,c[6]=n,c[7]=o,c[8]=u,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 a;return function(e){for(var n=0,r=e.count;n<r;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,r=e.elements,i=this.elements,o=n[0],s=n[3],a=n[6],u=n[1],c=n[4],l=n[7],h=n[2],p=n[5],f=n[8],d=r[0],m=r[3],v=r[6],y=r[1],g=r[4],b=r[7],_=r[2],w=r[5],x=r[8];return i[0]=o*d+s*y+a*_,i[3]=o*m+s*g+a*w,i[6]=o*v+s*b+a*x,i[1]=u*d+c*y+l*_,i[4]=u*m+c*g+l*w,i[7]=u*v+c*b+l*x,i[2]=h*d+p*y+f*_,i[5]=h*m+p*g+f*w,i[8]=h*v+p*b+f*x,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],r=t[2],i=t[3],o=t[4],s=t[5],a=t[6],u=t[7],c=t[8];return e*o*c-e*s*u-n*i*c+n*s*a+r*i*u-r*o*a},getInverse:function(t,e){t&&t.isMatrix4&&console.error("THREE.Matrix3: .getInverse() no longer takes a Matrix4 argument.");var n=t.elements,r=this.elements,i=n[0],o=n[1],s=n[2],a=n[3],u=n[4],c=n[5],l=n[6],h=n[7],p=n[8],f=p*u-c*h,d=c*l-p*a,m=h*a-u*l,v=i*f+o*d+s*m;if(0===v){var y="THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0";if(!0===e)throw new Error(y);return console.warn(y),this.identity()}var g=1/v;return r[0]=f*g,r[1]=(s*h-p*o)*g,r[2]=(c*o-s*u)*g,r[3]=d*g,r[4]=(p*i-s*l)*g,r[5]=(s*a-c*i)*g,r[6]=m*g,r[7]=(o*l-h*i)*g,r[8]=(u*i-o*a)*g,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,r,i,o,s){var a=Math.cos(i),u=Math.sin(i);this.set(n*a,n*u,-n*(a*o+u*s)+o+t,-r*u,r*a,-r*(-u*o+a*s)+s+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),r=this.elements,i=r[0],o=r[3],s=r[6],a=r[1],u=r[4],c=r[7];return r[0]=e*i+n*a,r[3]=e*o+n*u,r[6]=e*s+n*c,r[1]=-n*i+e*a,r[4]=-n*o+e*u,r[7]=-n*s+e*c,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,r=0;r<9;r++)if(e[r]!==n[r])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 ju=0;c.DEFAULT_IMAGE=void 0,c.DEFAULT_MAPPING=oa,c.prototype=Object.assign(Object.create(r.prototype),{constructor:c,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){function e(t){var e;if(t instanceof HTMLCanvasElement)e=t;else{e=document.createElementNS("http://www.w3.org/1999/xhtml","canvas"),e.width=t.width,e.height=t.height;var n=e.getContext("2d");t instanceof ImageData?n.putImageData(t,0,0):n.drawImage(t,0,0,t.width,t.height)}return e.width>2048||e.height>2048?e.toDataURL("image/jpeg",.6):e.toDataURL("image/png")}var n=void 0===t||"string"==typeof t;if(!n&&void 0!==t.textures[this.uuid])return t.textures[this.uuid];var r={metadata:{version:4.5,type:"Texture",generator:"Texture.toJSON"},uuid:this.uuid,name:this.name,mapping:this.mapping,repeat:[this.repeat.x,this.repeat.y],offset:[this.offset.x,this.offset.y],center:[this.center.x,this.center.y],rotation:this.rotation,wrap:[this.wrapS,this.wrapT],format:this.format,minFilter:this.minFilter,magFilter:this.magFilter,anisotropy:this.anisotropy,flipY:this.flipY};if(void 0!==this.image){var i=this.image;if(void 0===i.uuid&&(i.uuid=ku.generateUUID()),!n&&void 0===t.images[i.uuid]){var o;if(Array.isArray(i)){o=[];for(var s=0,a=i.length;s<a;s++)o.push(e(i[s]))}else o=e(i);t.images[i.uuid]={uuid:i.uuid,url:o}}r.image=i.uuid}return n||(t.textures[this.uuid]=r),r},dispose:function(){this.dispatchEvent({type:"dispose"})},transformUv:function(t){if(this.mapping===oa){if(t.applyMatrix3(this.matrix
vendor: 4,582 bytes, line 1
1),t.x<0||t.x>1)switch(this.wrapS){case fa:t.x=t.x-Math.floor(t.x);break;case da:t.x=t.x<0?0:1;break;case ma: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 fa:t.y=t.y-Math.floor(t.y);break;case da:t.y=t.y<0?0:1;break;case ma:1===Math.abs(Math.floor(t.y)%2)?t.y=Math.ceil(t.y)-t.y:t.y=t.y-Math.floor(t.y)}this.flipY&&(t.y=1-t.y)}}}),Object.defineProperty(c.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(l.prototype,{isVector4:!0,set:function(t,e,n,r){return this.x=t,this.y=e,this.z=n,this.w=r,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,r=this.z,i=this.w,o=t.elements;return this.x=o[0]*e+o[4]*n+o[8]*r+o[12]*i,this.y=o[1]*e+o[5]*n+o[9]*r+o[13]*i,this.z=o[2]*e+o[6]*n+o[10]*r+o[14]*i,this.w=o[3]*e+o[7]*n+o[11]*r+o[15]*i,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,r,i,o=t.elements,s=o[0],a=o[4],u=o[8],c=o[1],l=o[5],h=o[9],p=o[2],f=o[6],d=o[10];if(Math.abs(a-c)<.01&&Math.abs(u-p)<.01&&Math.abs(h-f)<.01){if(Math.abs(a+c)<.1&&Math.abs(u+p)<.1&&Math.abs(h+f)<.1&&Math.abs(s+l+d-3)<.1)return this.set(1,0,0,0),this;e=Math.PI;var m=(s+1)/2,v=(l+1)/2,y=(d+1)/2,g=(a+c)/4,b=(u+p)/4,_=(h+f)/4;return m>v&&m>y?m<.01?(n=0,r=.707106781,i=.707106781):(n=Math.sqrt(m),r=g/n,i=b/n):v>y?v<.01?(n=.707106781,r=0,i=.707106781):(r=Math.sqrt(v),n=g/r,i=_/r):y<.01?(n=.707106781,r=.707106781,i=0):(i=Math.sqrt(y),n=b/i,r=_/i),this.set(n,r,i,e),this}var w=Math.sqrt((f-h)*(f-h)+(u-p)*(u-p)+(c-a)*(c-a));return Math.abs(w)<.001&&(w=1),this.x=(f-h)/w,this.y=(u-p)/w,this.z=(c-a)/w,this.w=Math.acos((s+l+d-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,r){return void 0===t&&(t=new l,e=new l),t.set(n,n,n,n),e.set(r,r,r,r),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}
vendor: 5,668 bytes, line 1
1,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}}),h.prototype=Object.assign(Object.create(r.prototype),{constructor:h,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"})}}),p.prototype=Object.create(h.prototype),p.prototype.constructor=p,p.prototype.isWebGLRenderTargetCube=!0,f.prototype=Object.create(c.prototype),f.prototype.constructor=f,f.prototype.isDataTexture=!0,Object.assign(d.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,r=1/0,i=-1/0,o=-1/0,s=-1/0,a=0,u=t.length;a<u;a+=3){var c=t[a],l=t[a+1],h=t[a+2];c<e&&(e=c),l<n&&(n=l),h<r&&(r=h),c>i&&(i=c),l>o&&(o=l),h>s&&(s=h)}return this.min.set(e,n,r),this.max.set(i,o,s),this},setFromBufferAttribute:function(t){for(var e=1/0,n=1/0,r=1/0,i=-1/0,o=-1/0,s=-1/0,a=0,u=t.count;a<u;a++){var c=t.getX(a),l=t.getY(a),h=t.getZ(a);c<e&&(e=c),l<n&&(n=l),h<r&&(r=h),c>i&&(i=c),l>o&&(o=l),h>s&&(s=h)}return this.min.set(e,n,r),this.max.set(i,o,s),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 a;return function(e,n){var r=t.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(r),this.max.copy(e).add(r),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 a),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 a),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(){function t(t){var o=t.geometry;if(void 0!==o)if(o.isGeometry){var s=o.vertices;for(n=0,r=s.length;n<r;n++)i.copy(s[n]),i.applyMatrix4(t.matrixWorld),e.expandByPoint(i)}else if(o.isBufferGeometry){var a=o.attributes.position;if(void 0!==a)for(n=0,r=a.count;n<r;n++)i.fromBufferAttribute(a,n).applyMatrix4(t.matrixWorld),e.expandByPoint(i)}}var e,n,r,i=new a;return function(n){return e=this,n.updateMatrixWorld(!0),n.traverse(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||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 a),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:function(){var t=new a;return function(e){return this.clampPoint(e.center,t),t.distanceToSquared(e.center)<=e.radius*e.radiu
vendor: 9,085 bytes, line 1
1s}}(),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(){function t(t){var i,o;for(i=0,o=t.length-3;i<=o;i+=3){u.fromArray(t,i);var s=l.x*Math.abs(u.x)+l.y*Math.abs(u.y)+l.z*Math.abs(u.z),a=e.dot(u),c=n.dot(u),h=r.dot(u);if(Math.max(-Math.max(a,c,h),Math.min(a,c,h))>s)return!1}return!0}var e=new a,n=new a,r=new a,i=new a,o=new a,s=new a,u=new a,c=new a,l=new a,h=new a;return function(a){if(this.isEmpty())return!1;this.getCenter(c),l.subVectors(this.max,c),e.subVectors(a.a,c),n.subVectors(a.b,c),r.subVectors(a.c,c),i.subVectors(n,e),o.subVectors(r,n),s.subVectors(e,r);var u=[0,-i.z,i.y,0,-o.z,o.y,0,-s.z,s.y,i.z,0,-i.x,o.z,0,-o.x,s.z,0,-s.x,-i.y,i.x,0,-o.y,o.x,0,-s.y,s.x,0];return!!t(u)&&(u=[1,0,0,0,1,0,0,0,1],!!t(u)&&(h.crossVectors(i,o),u=[h.x,h.y,h.z],t(u)))}}(),clampPoint:function(t,e){return void 0===e&&(console.warn("THREE.Box3: .clampPoint() target is now required"),e=new a),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new a;return function(e){return t.copy(e).clamp(this.min,this.max).sub(e).length()}}(),getBoundingSphere:function(){var t=new a;return function(e){return void 0===e&&(console.warn("THREE.Box3: .getBoundingSphere() target is now required"),e=new m),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:function(t){if(this.isEmpty())return this;var e=t.elements,n=e[0]*this.min.x,r=e[1]*this.min.x,i=e[2]*this.min.x,o=e[0]*this.max.x,s=e[1]*this.max.x,a=e[2]*this.max.x,u=e[4]*this.min.y,c=e[5]*this.min.y,l=e[6]*this.min.y,h=e[4]*this.max.y,p=e[5]*this.max.y,f=e[6]*this.max.y,d=e[8]*this.min.z,m=e[9]*this.min.z,v=e[10]*this.min.z,y=e[8]*this.max.z,g=e[9]*this.max.z,b=e[10]*this.max.z;return this.min.x=Math.min(n,o)+Math.min(u,h)+Math.min(d,y)+e[12],this.min.y=Math.min(r,s)+Math.min(c,p)+Math.min(m,g)+e[13],this.min.z=Math.min(i,a)+Math.min(l,f)+Math.min(v,b)+e[14],this.max.x=Math.max(n,o)+Math.max(u,h)+Math.max(d,y)+e[12],this.max.y=Math.max(r,s)+Math.max(c,p)+Math.max(m,g)+e[13],this.max.z=Math.max(i,a)+Math.max(l,f)+Math.max(v,b)+e[14],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(m.prototype,{set:function(t,e){return this.center.copy(t),this.radius=e,this},setFromPoints:function(){var t=new d;return function(e,n){var r=this.center;void 0!==n?r.copy(n):t.setFromPoints(e).getCenter(r);for(var i=0,o=0,s=e.length;o<s;o++)i=Math.max(i,r.distanceToSquared(e[o]));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 a),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 d),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(v.prototype,{set:function(t,e){return this.normal.copy(t),this.constant=e,this},setComponents:function(t,e,n,r){return this.normal.set(t,e,n),this.constant=r,this},setFromNormalAndCoplanarPoint:function(t,e){return this.normal.copy(t),this.constant=-e.dot(this.normal),this},setFromCoplanarPoints:function(){var t=new a,e=new a;return function(n,r,i){var o=t.subVectors(i,r).cross(e.subVectors(n,r)).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 a),e.copy(this.normal).multiplyScalar(-this.distanceToPoint(t)).add(t)},intersectLine:function(){var t=new a;return function(e,n){void 0===n&&(console.warn("THREE.Plane: .intersectLine() target is now required"),n=new a);var r=e.delta(t),i=this.normal.dot(r);if(0!==i){var o=-(e.start.dot(this.normal)+this.constant)/i;if(!(o<0||o>1))return n.copy(r).multiplyScalar(o).add(e.start)}else if(0===this.distanceToPoint(e.start))return n.copy(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 a),t.copy(this.normal).multiplyScalar(-this.constant)},applyMatrix4:function(){var t=new a,e=new u;return function(n,r){var i=r||e.getNormalMatrix(n),o=this.coplanarPoint(t).applyMatrix4(n),s=this.normal.applyMatrix3(i).normalize();return this.constant=-o.dot(s),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(y.prototype,{set:function(t,e,n,r,i,o){var s=this.planes;return s[0].copy(t),s[1].copy(e),s[2].copy(n),s[3].copy(r),s[4].copy(i),s[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,r=n[0],i=n[1],o=n[2],s=n[3],a=n[4],u=n[5],c=n[6],l=n[7],h=n[8],p=n[9],f=n[10],d=n[11],m=n[12],v=n[13],y=n[14],g=n[15];return e[0].setComponents(s-r,l-a,d-h,g-m).normalize(),e[1].setComponents(s+r,l+a,d+h,g+m).normalize(),e[2].setComponents(s+i,l+u,d+p,g+v).normalize(),e[3].setComponents(s-i,l-u,d-p,g-v).normalize(),e[4].setComponents(s-o,l-c,d-f,g-y).normalize(),e[5].setComponents(s+o,l+c,d+f,g+y).normalize(),this},intersectsObject:function(){var t=new m;return function(e){var n=e.geometry;return null===n.boundingSphere&&n.computeBoundingSphere(),t.copy(n.boundingSphere).applyMatrix4(e.matrixWorld),this.intersectsSphere(t)}}(),intersectsSprite:function(){var t=new m;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,r=-t.radius,i=0;i<6;i++){if(e[i].distanceToPoint(n)<r)return!1}return!0},intersectsBox:function(){var t=new a,e=new a;return function(n){for(var r=this.planes,i=0;i<6;i++){var o=r[i];t.x=o.normal.x>0?n.min.x:n.max.x,e.x=o.normal.x>0?n.max.x:n.min.x,t.y=o.normal.y>0?n.min.y:n.max.y,e.y=o.normal.y>0?n.max.y:n.min.y,t.z=o.normal.z>0?n.min.z:n.max.z,e.z=o.normal.z>0?n.max.z:n.min.z;var s=o.distanceToPoint(t),a=o.distanceToPoint(e);if(s<0&&a<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 Du={alphamap_fragment:"#ifdef USE_ALPHAMAP\n\tdiffuseColor.a *= texture2D( alphaMap, vUv ).g;\n#endif\n",alphamap_pars_fragment:"#ifdef USE_ALPHAMAP\n\tuniform sampler2D alphaMap;\n#endif\n",alphatest_fragment:"#ifdef ALPHATEST\n\tif ( diffuseColor.a < ALPHATEST ) discard;\n#endif\n",aomap_fragment:"#ifdef USE_AOMAP\n\tfloat ambientOcclusion = ( texture2D( aoMap, vUv2 ).r - 1.0 ) * aoMapIntensity + 1.0;\n\treflectedLight.indirectDiffuse *= ambientOcclusion;\n\t#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\t\tfloat dotNV = saturate( dot
1( geometry.normal, geometry.viewDir ) );\n\t\treflectedLight.indirectSpecular *= computeSpecularOcclusion( dotNV, ambientOcclusion, material.specularRoughness );\n\t#endif\n#endif\n",aomap_pars_fragment:"#ifdef USE_AOMAP\n\tuniform sampler2D aoMap;\n\tuniform float aoMapIntensity;\n#endif",begin_vertex:"\nvec3 transformed = vec3( position );\n",beginnormal_vertex:"\nvec3 objectNormal = vec3( normal );\n",bsdfs:"float punctualLightIntensityToIrradianceFactor( const in float lightDistance, const in float cutoffDistance, const in float decayExponent ) {\n\tif( decayExponent > 0.0 ) {\n#if defined ( PHYSICALLY_CORRECT_LIGHTS )\n\t\tfloat distanceFalloff = 1.0 / max( pow( lightDistance, decayExponent ), 0.01 );\n\t\tfloat maxDistanceCutoffFactor = pow2( saturate( 1.0 - pow4( lightDistance / cutoffDistance ) ) );\n\t\treturn distanceFalloff * maxDistanceCutoffFactor;\n#else\n\t\treturn pow( saturate( -lightDistance / cutoffDistance + 1.0 ), decayExponent );\n#endif\n\t}\n\treturn 1.0;\n}\nvec3 BRDF_Diffuse_Lambert( const in vec3 diffuseColor ) {\n\treturn RECIPROCAL_PI * diffuseColor;\n}\nvec3 F_Schlick( const in vec3 specularColor, const in float dotLH ) {\n\tfloat fresnel = exp2( ( -5.55473 * dotLH - 6.98316 ) * dotLH );\n\treturn ( 1.0 - specularColor ) * fresnel + specularColor;\n}\nfloat G_GGX_Smith( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gl = dotNL + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\tfloat gv = dotNV + sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\treturn 1.0 / ( gl * gv );\n}\nfloat G_GGX_SmithCorrelated( const in float alpha, const in float dotNL, const in float dotNV ) {\n\tfloat a2 = pow2( alpha );\n\tfloat gv = dotNL * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNV ) );\n\tfloat gl = dotNV * sqrt( a2 + ( 1.0 - a2 ) * pow2( dotNL ) );\n\treturn 0.5 / max( gv + gl, EPSILON );\n}\nfloat D_GGX( const in float alpha, const in float dotNH ) {\n\tfloat a2 = pow2( alpha );\n\tfloat denom = pow2( dotNH ) * ( a2 - 1.0 ) + 1.0;\n\treturn RECIPROCAL_PI * a2 / pow2( denom );\n}\nvec3 BRDF_Specular_GGX( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float roughness ) {\n\tfloat alpha = pow2( roughness );\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNL = saturate( dot( geometry.normal, incidentLight.direction ) );\n\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );
1\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\tconst vec4 c0 = vec4( - 1, - 0.0275, - 0.572, 0.022 );\n\tconst vec4 c1 = vec4( 1, 0.0425, 1.04, - 0.04 );\n\tvec4 r = roughness * c0 + c1;\n\tfloat a004 = min( r.x * r.x, exp2( - 9.28 * dotNV ) ) * r.x + r.y;\n\tvec2 AB = vec2( -1.04, 1.04 ) * a004 + r.zw;\n\treturn specularColor * AB.x + AB.y;\n}\nfloat G_BlinnPhong_Implicit( ) {\n\treturn 0.25;\n}\nfloat D_BlinnPhong( const in float shininess, const in float dotNH ) {\n\treturn RECIPROCAL_PI * ( shininess * 0.5 + 1.0 ) * pow( dotNH, shininess );\n}\nvec3 BRDF_Specular_BlinnPhong( const in IncidentLight incidentLight, const in GeometricContext geometry, const in vec3 specularColor, const in float shininess ) {\n\tvec3 halfDir = normalize( incidentLight.direction + geometry.viewDir );\n\tfloat dotNH = saturate( dot( geometry.normal, halfDir ) );\n\tfloat dotLH = saturate( dot( incidentLight.direction, halfDir ) );\n\tvec3 F = F_Schlick( specularColor, dotLH );\n\tfloat G = G_BlinnPhong_Implicit( );\n\tfloat D = D_BlinnPhong( shininess, dotNH );\n\treturn F * ( G * D );\n}\nfloat GGXRoughnessToBlinnExponent( const in float ggxRoughness ) {\n\treturn ( 2.0 / pow2( ggxRoughness + 0.0001 ) - 2.0 );\n}\nfloat BlinnExponentToGGXRoughness( const in float blinnExponent ) {\n\treturn sqrt( 2.0 / ( blinnExponent + 2.0 ) );\n}\n",bumpmap_pars_fragment:"#ifdef USE_BUMPMAP\n\tuniform sampler2D bumpMap;\n\tuniform float bumpScale;\n\tvec2 dHdxy_fwd() {\n\t\tvec2 dSTdx = dFdx( vUv );\n\t\tvec2 dSTdy = dFdy( vUv );\n\t\tfloat Hll = bumpScale * texture2D( bumpMap, vUv ).x;\n\t\tfloat dBx = bumpScale * texture2D( bumpMap, vUv + dSTdx ).x - Hll;\n\t\tfloat dBy = bumpScale * texture2D( bumpMap, vUv + dSTdy ).x - Hll;\n\t\treturn vec2( dBx, dBy );\n\t}
1\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\n",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\n",clipping_planes_pars_fragment:"#if NUM_CLIPPING_PLANES > 0\n\t#if ! defined( PHYSICAL ) && ! defined( PHONG )\n\t\tvarying vec3 vViewPosition;\n\t#endif\n\tuniform vec4 clippingPlanes[ NUM_CLIPPING_PLANES ];\n#endif\n",clipping_planes_pars_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\n\tvarying vec3 vViewPosition;\n#endif\n",clipping_planes_vertex:"#if NUM_CLIPPING_PLANES > 0 && ! defined( PHYSICAL ) && ! defined( PHONG )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n",color_fragment:"#ifdef USE_COLOR\n\tdiffuseColor.rgb *= vColor;\n#endif",color_pars_fragment:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif\n",color_pars_vertex:"#ifdef USE_COLOR\n\tvarying vec3 vColor;\n#endif",color_vertex:"#ifdef USE_COLOR\n\tvColor.xyz = color.xyz;\n#endif",common:"#define PI 3.14159265359\n#define PI2 6.28318530718\n#define PI_HALF 1.5707963267949\n#define RECIPROCAL_PI 0.31830988618\n#define RECIPROCAL_PI2 0.15915494\n#define LOG2 1.442695\n#define EPSILON 1e-6\n#define saturate(a) clamp( a, 0.0, 1.0 )\n#define whiteCompliment(a) ( 1.0 - saturate( a ) )\nfloat pow2( const in float x ) { return x*x; }\nfloat pow3( const in float x ) { return x*x*x; }\nfloat pow4( const in float x ) { float x2 = x*x; return x2*x2; }\nfloat average( const in vec3 color ) { return dot( color, vec3( 0.3333 ) ); }\nhighp float rand( const in vec2 uv ) {\n\tconst highp float a = 12.9898, b = 78.233, c = 43758.5453;\n\thighp float dt = dot( uv.xy, vec2( a,b ) ), sn = mod( dt, PI );\n\treturn fract(sin(sn) * c);\n}\nstruct IncidentLight {\n\tvec3 color;\n\tvec3 direction;\n\tbool visible;\n};\nstruct ReflectedLight {\n\tvec3 directDiffuse;\n\tvec3 directSpecular;\n\tvec3 indirectDiffuse;\n\tvec3 indirectSpecular;\n};\nstruct GeometricContext {\n\tvec3 position;\n\tvec3 normal;\n\tvec3 viewDir;\n};\nvec3 transformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( matrix * vec4( dir, 0.0 ) ).xyz );\n}\nvec3 inverseTransformDirection( in vec3 dir, in mat4 matrix ) {\n\treturn normalize( ( vec4( dir, 0.0 ) * matrix ).xyz );\n}\nvec3 projectOnPlane(in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\tfloat distance = dot( planeNormal, point - pointOnPlane );\n\treturn - distance * planeNormal + point;\n}\nfloat sideOfPlane( in vec3 point, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn sign( dot( point - pointOnPlane, planeNormal ) );\n}\nvec3 linePlaneIntersect( in vec3 pointOnLine, in vec3 lineDirection, in vec3 pointOnPlane, in vec3 planeNormal ) {\n\treturn lineDirection * ( dot( planeNormal, pointOnPlane - pointOnLine ) / dot( planeNormal, lineDirection ) ) + pointOnLine;\n}\nmat3 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}\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);
1\n\tfloat mipLevel = 0.5 * log2(d);\n\treturn vec2(floor(mipLevel), fract(mipLevel));\n}\n#define cubeUV_maxLods2 (log2(cubeUV_textureSize*0.25) - 2.0)\n#define cubeUV_rcpTextureSize (1.0 / cubeUV_textureSize)\nvec2 getCubeUV(vec3 direction, float roughnessLevel, float mipLevel) {\n\tmipLevel = roughnessLevel > cubeUV_maxLods2 - 3.0 ? 0.0 : mipLevel;\n\tfloat a = 16.0 * cubeUV_rcpTextureSize;\n\tvec2 exp2_packed = exp2( vec2( roughnessLevel, mipLevel ) );\n\tvec2 rcp_exp2_packed = vec2( 1.0 ) / exp2_packed;\n\tfloat powScale = exp2_packed.x * exp2_packed.y;\n\tfloat scale = rcp_exp2_packed.x * rcp_exp2_packed.y * 0.25;\n\tfloat mipOffset = 0.75*(1.0 - rcp_exp2_packed.y) * rcp_exp2_packed.x;\n\tbool bRes = mipLevel == 0.0;\n\tscale = bRes && (scale < a) ? a : scale;\n\tvec3 r;\n\tvec2 offset;\n\tint face = getFaceFromDirection(direction);\n\tfloat rcpPowScale = 1.0 / powScale;\n\tif( face == 0) {\n\t\tr = vec3(direction.x, -direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 1) {\n\t\tr = vec3(direction.y, direction.x, direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 2) {\n\t\tr = vec3(direction.z, direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.75 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? a : offset.y;\n\t}\n\telse if( face == 3) {\n\t\tr = vec3(direction.x, direction.z, direction.y);\n\t\toffset = vec2(0.0+mipOffset,0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\telse if( face == 4) {\n\t\tr = vec3(direction.y, direction.x, -direction.z);\n\t\toffset = vec2(scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\telse {\n\t\tr = vec3(direction.z, -direction.x, direction.y);\n\t\toffset = vec2(2.0*scale+mipOffset, 0.5 * rcpPowScale);\n\t\toffset.y = bRes && (offset.y < 2.0*a) ? 0.0 : offset.y;\n\t}\n\tr = normalize(r);\n\tfloat texelOffset = 0.5 * cubeUV_rcpTextureSize;\n\tvec2 s = ( r.yz / abs( r.x ) + vec2( 1.0 ) ) * 0.5;\n\tvec2 base = offset + vec2( texelOffset );\n\treturn base + s * ( scale - 2.0 * texelOffset );\n}\n#define cubeUV_maxLods3 (log2(cubeUV_textureSize*0.25) - 3.0)\nvec4 textureCubeUV(vec3 reflectedDirection, float roughness ) {\n\tfloat roughnessVal = roughness* cubeUV_maxLods3;\n\tfloat r1 = floor(roughnessVal);\n\tfloat r2 = r1 + 1.0;\n\tfloat t = fract(roughnessVal);\n\tvec2 mipInfo = MipLevelInfo(reflectedDirection, r1, roughness);\n\tfloat s = mipInfo.y;\n\tfloat level0 = mipInfo.x;\n\tfloat level1 = level0 + 1.0;\n\tlevel1 = level1 > 5.0 ? 5.0 : level1;\n\tlevel0 += min( floor( s + 0.5 ), 5.0 );\n\tvec2 uv_10 = getCubeUV(reflectedDirection, r1, level0);\n\tvec4 color10 = envMapTexelToLinear(texture2D(envMap, uv_10));\n\tvec2 uv_20 = getCubeUV(reflectedDirection, r2, level0);\n\tvec4 color20 = envMapTexelToLinear(texture2D(envMap, uv_20));\n\tvec4 result = mix(color10, color20, t);\n\treturn vec4(result.rgb, 1.0);\n}\n#endif\n",defaultnormal_vertex:"vec3 transformedNormal = normalMatrix * objectNormal;\n#ifdef FLIP_SIDED\n\ttransformedNormal = - transformedNormal;\n#endif\n",displacementmap_pars_vertex:"#ifdef USE_DISPLACEMENTMAP\n\tuniform sampler2D displacementMap;\n\tuniform float displacementScale;\n\tuniform float displacementBias;\n#endif\n",displacementmap_vertex:"#ifdef USE_DISPLACEMENTMAP\n\ttransformed += normalize( objectNormal ) * ( texture2D( displacementMap, uv ).x * displacementScale + displacementBias );\n#endif\n",emissivemap_fragment:"#ifdef USE_EMISSIVEMAP\n\tvec4 emissiveColor = texture2D( emissiveMap, vUv );\n\temissiveColor.rgb = emissiveMapTexelToLinear( emissiveColor ).rgb;\n\ttotalEmissiveRadiance *= emissiveColor.rgb;\n#endif\n",emissivemap_pars_fragment:"#ifdef USE_EMISSIVEMAP\n\tuniform sampler2D emissiveMap;\n#endif\n",encodings_fragment:" gl_FragColor = linearToOutputTexel( gl_FragColor );\n",encodings_pars_fragment:"\nvec4 LinearToLinear( in vec4 value ) {\n\treturn value;\n}\nvec4 GammaToLinear( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.xyz, vec3( gammaFactor ) ), value.w );\n}\nvec4 LinearToGamma( in vec4 value, in float gammaFactor ) {\n\treturn vec4( pow( value.xyz, vec3( 1.0 / gammaFactor ) ), value.w );\n}\nvec4 sRGBToLinear( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb * 0.9478672986 + vec3( 0.0521327014 ), vec3( 2.4 ) ), value.rgb * 0.0773993808, vec3( lessThanEqual( value.rgb, vec3( 0.04045 ) ) ) ), value.w );\n}\nvec4 LinearTosRGB( in vec4 value ) {\n\treturn vec4( mix( pow( value.rgb, vec3( 0.41666 ) ) * 1.055 - vec3( 0.055 ), value.rgb * 12.92, vec3( lessThanEqual( value.rgb, vec3( 0.0031308 ) ) ) ), value.w );\n}\nvec4 RGBEToLinear( in vec4 value ) {\n\treturn vec4( value.rgb * exp2( value.a * 255.0 - 128.0 ), 1.0 );\n}
1\nvec4 LinearToRGBE( in vec4 value ) {\n\tfloat maxComponent = max( max( value.r, value.g ), value.b );\n\tfloat fExp = clamp( ceil( log2( maxComponent ) ), -128.0, 127.0 );\n\treturn vec4( value.rgb / exp2( fExp ), ( fExp + 128.0 ) / 255.0 );\n}\nvec4 RGBMToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.xyz * value.w * maxRange, 1.0 );\n}\nvec4 LinearToRGBM( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\n\tfloat M = clamp( maxRGB / maxRange, 0.0, 1.0 );\n\tM = ceil( M * 255.0 ) / 255.0;\n\treturn vec4( value.rgb / ( M * maxRange ), M );\n}\nvec4 RGBDToLinear( in vec4 value, in float maxRange ) {\n\treturn vec4( value.rgb * ( ( maxRange / 255.0 ) / value.a ), 1.0 );\n}\nvec4 LinearToRGBD( in vec4 value, in float maxRange ) {\n\tfloat maxRGB = max( value.x, max( value.g, value.b ) );\n\tfloat D = max( maxRange / maxRGB, 1.0 );\n\tD = min( floor( D ) / 255.0, 1.0 );\n\treturn vec4( value.rgb * ( D * ( 255.0 / maxRange ) ), D );\n}\nconst mat3 cLogLuvM = mat3( 0.2209, 0.3390, 0.4184, 0.1138, 0.6780, 0.7319, 0.0102, 0.1130, 0.2969 );\nvec4 LinearToLogLuv( in vec4 value ) {\n\tvec3 Xp_Y_XYZp = value.rgb * cLogLuvM;\n\tXp_Y_XYZp = max(Xp_Y_XYZp, vec3(1e-6, 1e-6, 1e-6));\n\tvec4 vResult;\n\tvResult.xy = Xp_Y_XYZp.xy / Xp_Y_XYZp.z;\n\tfloat Le = 2.0 * log2(Xp_Y_XYZp.y) + 127.0;\n\tvResult.w = fract(Le);\n\tvResult.z = (Le - (floor(vResult.w*255.0))/255.0)/255.0;\n\treturn vResult;\n}\nconst mat3 cLogLuvInverseM = mat3( 6.0014, -2.7008, -1.7996, -1.3320, 3.1029, -5.7721, 0.3008, -1.0882, 5.6268 );\nvec4 LogLuvToLinear( in vec4 value ) {\n\tfloat Le = value.z * 255.0 + value.w;\n\tvec3 Xp_Y_XYZp;\n\tXp_Y_XYZp.y = exp2((Le - 127.0) / 2.0);\n\tXp_Y_XYZp.z = Xp_Y_XYZp.y / value.y;\n\tXp_Y_XYZp.x = value.x * Xp_Y_XYZp.z;\n\tvec3 vRGB = Xp_Y_XYZp.rgb * cLogLuvInverseM;\n\treturn vec4( max(vRGB, 0.0), 1.0 );\n}\n",envmap_fragment:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvec3 cameraToVertex = normalize( vWorldPosition - cameraPosition );\n\t\tvec3 worldNormal = inverseTransformDirection( normal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#else\n\t\tvec3 reflectVec = vReflect;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tvec4 envColor = textureCube( envMap, vec3( flipEnvMap * reflectVec.x, reflectVec.yz ) );\n\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\tvec2 sampleUV;\n\t\treflectVec = normalize( reflectVec );\n\t\tsampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\t\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\tvec4 envColor = texture2D( envMap, sampleUV );\n\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\treflectVec = normalize( reflectVec );\n\t\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0, 0.0, 1.0 ) );\n\t\tvec4 envColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5 );\n\t#else\n\t\tvec4 envColor = vec4( 0.0 );\n\t#endif\n\tenvColor = envMapTexelToLinear( envColor );\n\t#ifdef ENVMAP_BLENDING_MULTIPLY\n\t\toutgoingLight = mix( outgoingLight, outgoingLight * envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_MIX )\n\t\toutgoingLight = mix( outgoingLight, envColor.xyz, specularStrength * reflectivity );\n\t#elif defined( ENVMAP_BLENDING_ADD )\n\t\toutgoingLight += envColor.xyz * specularStrength * reflectivity;\n\t#endif\n#endif\n",envmap_pars_fragment:"#if defined( USE_ENVMAP ) || defined( PHYSICAL )\n\tuniform float reflectivity;\n\tuniform float envMapIntensity;\n#endif\n#ifdef USE_ENVMAP\n\t#if ! defined( PHYSICAL ) && ( defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG ) )\n\t\tvarying vec3 vWorldPosition;\n\t#endif\n\t#ifdef ENVMAP_TYPE_CUBE\n\t\tuniform samplerCube envMap;\n\t#else\n\t\tuniform sampler2D envMap;\n\t#endif\n\tuniform float flipEnvMap;\n\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\n",envmap_pars_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvarying vec3 vWorldPosition;\n\t#else\n\t\tvarying vec3 vReflect;\n\t\tuniform float refractionRatio;\n\t#endif\n#endif\n",envmap_vertex:"#ifdef USE_ENVMAP\n\t#if defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( PHONG )\n\t\tvWorldPosition = worldPosition.xyz;
1\n\t#else\n\t\tvec3 cameraToVertex = normalize( worldPosition.xyz - cameraPosition );\n\t\tvec3 worldNormal = inverseTransformDirection( transformedNormal, viewMatrix );\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvReflect = reflect( cameraToVertex, worldNormal );\n\t\t#else\n\t\t\tvReflect = refract( cameraToVertex, worldNormal, refractionRatio );\n\t\t#endif\n\t#endif\n#endif\n",fog_vertex:"\n#ifdef USE_FOG\nfogDepth = -mvPosition.z;\n#endif",fog_pars_vertex:"#ifdef USE_FOG\n varying float fogDepth;\n#endif\n",fog_fragment:"#ifdef USE_FOG\n\t#ifdef FOG_EXP2\n\t\tfloat fogFactor = whiteCompliment( exp2( - fogDensity * fogDensity * fogDepth * fogDepth * LOG2 ) );\n\t#else\n\t\tfloat fogFactor = smoothstep( fogNear, fogFar, fogDepth );\n\t#endif\n\tgl_FragColor.rgb = mix( gl_FragColor.rgb, fogColor, fogFactor );\n#endif\n",fog_pars_fragment:"#ifdef USE_FOG\n\tuniform vec3 fogColor;\n\tvarying float fogDepth;\n\t#ifdef FOG_EXP2\n\t\tuniform float fogDensity;\n\t#else\n\t\tuniform float fogNear;\n\t\tuniform float fogFar;\n\t#endif\n#endif\n",gradientmap_pars_fragment:"#ifdef TOON\n\tuniform sampler2D gradientMap;\n\tvec3 getGradientIrradiance( vec3 normal, vec3 lightDirection ) {\n\t\tfloat dotNL = dot( normal, lightDirection );\n\t\tvec2 coord = vec2( dotNL * 0.5 + 0.5, 0.0 );\n\t\t#ifdef USE_GRADIENTMAP\n\t\t\treturn texture2D( gradientMap, coord ).rgb;\n\t\t#else\n\t\t\treturn ( coord.x < 0.7 ) ? vec3( 0.7 ) : vec3( 1.0 );\n\t\t#endif\n\t}\n#endif\n",lightmap_fragment:"#ifdef USE_LIGHTMAP\n\treflectedLight.indirectDiffuse += PI * texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n#endif\n",lightmap_pars_fragment:"#ifdef USE_LIGHTMAP\n\tuniform sampler2D lightMap;\n\tuniform float lightMapIntensity;\n#endif",lights_lambert_vertex:"vec3 diffuse = vec3( 1.0 );\nGeometricContext geometry;\ngeometry.position = mvPosition.xyz;\ngeometry.normal = normalize( transformedNormal );\ngeometry.viewDir = normalize( -mvPosition.xyz );\nGeometricContext backGeometry;\nbackGeometry.position = geometry.position;\nbackGeometry.normal = -geometry.normal;\nbackGeometry.viewDir = geometry.viewDir;\nvLightFront = vec3( 0.0 );\n#ifdef DOUBLE_SIDED\n\tvLightBack = vec3( 0.0 );\n#endif\nIncidentLight directLight;\nfloat dotNL;\nvec3 directLightColor_Diffuse;\n#if NUM_POINT_LIGHTS > 0\n\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\tvLightFront += getHemisphereLightIrradiance( hemisphereLights[ i ], geometry );\n\t\t#ifdef DOUBLE_SIDED\n\t\t\tvLightBack += getHemisphereLightIrradiance( hemisphereLights[ i ], backGeometry );\n\t\t#endif\n\t}\n#endif\n",lights_pars_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}
1\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\n",lights_pars_maps:"#if defined( USE_ENVMAP ) && defined( PHYSICAL )\n\tvec3 getLightProbeIndirectIrradiance( const in GeometricContext geometry, const in int maxMIPLevel ) {\n\t\tvec3 worldNormal = inverseTransformDirection( geometry.normal, viewMatrix );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryVec, float( maxMIPLevel ) );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryVec = vec3( flipEnvMap * worldNormal.x, worldNormal.yz );\n\t\t\tvec4 envMapColor = textureCubeUV( queryVec, 1.0 );\n\t\t#else\n\t\t\tvec4 envMapColor = vec4( 0.0 );\n\t\t#endif\n\t\treturn PI * envMapColor.rgb * envMapIntensity;\n\t}\n\tfloat getSpecularMIPLevel( const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\tfloat maxMIPLevelScalar = float( maxMIPLevel );\n\t\tfloat desiredMIPLevel = maxMIPLevelScalar + 0.79248 - 0.5 * log2( pow2( blinnShininessExponent ) + 1.0 );\n\t\treturn clamp( desiredMIPLevel, 0.0, maxMIPLevelScalar );\n\t}\n\tvec3 getLightProbeIndirectRadiance( const in GeometricContext geometry, const in float blinnShininessExponent, const in int maxMIPLevel ) {\n\t\t#ifdef ENVMAP_MODE_REFLECTION\n\t\t\tvec3 reflectVec = reflect( -geometry.viewDir, geometry.normal );\n\t\t#else\n\t\t\tvec3 reflectVec = refract( -geometry.viewDir, geometry.normal, refractionRatio );\n\t\t#endif\n\t\treflectVec = inverseTransformDirection( reflectVec, viewMatrix );\n\t\tfloat specularMIPLevel = getSpecularMIPLevel( blinnShininessExponent, maxMIPLevel );\n\t\t#ifdef ENVMAP_TYPE_CUBE\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = textureCubeLodEXT( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = textureCube( envMap, queryReflectVec, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_CUBE_UV )\n\t\t\tvec3 queryReflectVec = vec3( flipEnvMap * reflectVec.x, reflectVec.yz );\n\t\t\tvec4 envMapColor = textureCubeUV(queryReflectVec, BlinnExponentToGGXRoughness(blinnShinine
1ssExponent));\n\t\t#elif defined( ENVMAP_TYPE_EQUIREC )\n\t\t\tvec2 sampleUV;\n\t\t\tsampleUV.y = asin( clamp( reflectVec.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\t\t\tsampleUV.x = atan( reflectVec.z, reflectVec.x ) * RECIPROCAL_PI2 + 0.5;\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, sampleUV, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, sampleUV, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#elif defined( ENVMAP_TYPE_SPHERE )\n\t\t\tvec3 reflectView = normalize( ( viewMatrix * vec4( reflectVec, 0.0 ) ).xyz + vec3( 0.0,0.0,1.0 ) );\n\t\t\t#ifdef TEXTURE_LOD_EXT\n\t\t\t\tvec4 envMapColor = texture2DLodEXT( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#else\n\t\t\t\tvec4 envMapColor = texture2D( envMap, reflectView.xy * 0.5 + 0.5, specularMIPLevel );\n\t\t\t#endif\n\t\t\tenvMapColor.rgb = envMapTexelToLinear( envMapColor ).rgb;\n\t\t#endif\n\t\treturn envMapColor.rgb * envMapIntensity;\n\t}\n#endif\n",lights_phong_fragment:"BlinnPhongMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb;\nmaterial.specularColor = specular;\nmaterial.specularShininess = shininess;\nmaterial.specularStrength = specularStrength;\n",lights_phong_pars_fragment:"varying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\nstruct BlinnPhongMaterial {\n\tvec3\tdiffuseColor;\n\tvec3\tspecularColor;\n\tfloat\tspecularShininess;\n\tfloat\tspecularStrength;\n};\nvoid RE_Direct_BlinnPhong( const in IncidentLight directLight, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\t#ifdef TOON\n\t\tvec3 irradiance = getGradientIrradiance( geometry.normal, directLight.direction ) * directLight.color;\n\t#else\n\t\tfloat dotNL = saturate( dot( geometry.normal, directLight.direction ) );\n\t\tvec3 irradiance = dotNL * directLight.color;\n\t#endif\n\t#ifndef PHYSICALLY_CORRECT_LIGHTS\n\t\tirradiance *= PI;\n\t#endif\n\treflectedLight.directDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n\treflectedLight.directSpecular += irradiance * BRDF_Specular_BlinnPhong( directLight, geometry, material.specularColor, material.specularShininess ) * material.specularStrength;\n}\nvoid RE_IndirectDiffuse_BlinnPhong( const in vec3 irradiance, const in GeometricContext geometry, const in BlinnPhongMaterial material, inout ReflectedLight reflectedLight ) {\n\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\n#define RE_Direct\t\t\t\tRE_Direct_BlinnPhong\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_BlinnPhong\n#define Material_LightProbeLOD( material )\t(0)\n",lights_physical_fragment:"PhysicalMaterial material;\nmaterial.diffuseColor = diffuseColor.rgb * ( 1.0 - metalnessFactor );\nmaterial.specularRoughness = clamp( roughnessFactor, 0.04, 1.0 );\n#ifdef STANDARD\n\tmaterial.specularColor = mix( vec3( DEFAULT_SPECULAR_COEFFICIENT ), diffuseColor.rgb, metalnessFactor );\n#else\n\tmaterial.specularColor = mix( vec3( MAXIMUM_SPECULAR_COEFFICIENT * pow2( reflectivity ) ), diffuseColor.rgb, metalnessFactor );\n\tmaterial.clearCoat = saturate( clearCoat );\tmaterial.clearCoatRoughness = clamp( clearCoatRoughness, 0.04, 1.0 );\n#endif\n",lights_physical_pars_fragment:"struct PhysicalMaterial {\n\tvec3\tdiffuseColor;\n\tfloat\tspecularRoughness;\n\tvec3\tspecularColor;\n\t#ifndef STANDARD\n\t\tfloat clearCoat;\n\t\tfloat clearCoatRoughness;\n\t#endif\n};\n#define MAXIMUM_SPECULAR_COEFFICIENT 0.16\n#define DEFAULT_SPECULAR_COEFFICIENT 0.04\nfloat clearCoatDHRApprox( const in float roughness, const in float dotNL ) {\n\treturn DEFAULT_SPECULAR_COEFFICIENT + ( 1.0 - DEFAULT_SPECULAR_COEFFICIENT ) * ( pow( 1.0 - dotNL, 5.0 ) * pow( 1.0 - roughness, 2.0 ) );\n}\n#if NUM_RECT_AREA_LIGHTS > 0\n\tvoid RE_Direct_RectArea_Physical( const in RectAreaLight rectAreaLight, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t\tvec3 normal = geometry.normal;\n\t\tvec3 viewDir = geometry.viewDir;\n\t\tvec3 position = geometry.position;
1\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\treflectedLight.indirectDiffuse += irradiance * BRDF_Diffuse_Lambert( material.diffuseColor );\n}\nvoid RE_IndirectSpecular_Physical( const in vec3 radiance, const in vec3 clearCoatRadiance, const in GeometricContext geometry, const in PhysicalMaterial material, inout ReflectedLight reflectedLight ) {\n\t#ifndef STANDARD\n\t\tfloat dotNV = saturate( dot( geometry.normal, geometry.viewDir ) );\n\t\tfloat dotNL = dotNV;\n\t\tfloat clearCoatDHR = material.clearCoat * clearCoatDHRApprox( material.clearCoatRoughness, dotNL );\n\t#else\n\t\tfloat clearCoatDHR = 0.0;\n\t#endif\n\treflectedLight.indirectSpecular += ( 1.0 - clearCoatDHR ) * radiance * BRDF_Specular_GGX_Environment( geometry, material.specularColor, material.specularRoughness );\n\t#ifndef STANDARD\n\t\treflectedLight.indirectSpecular += clearCoatRadiance * material.clearCoat * BRDF_Specular_GGX_Environment( geometry, vec3( DEFAULT_SPECULAR_COEFFICIENT ), material.clearCoatRoughness );\n\t#endif\n}\n#define RE_Direct\t\t\t\tRE_Direct_Physical\n#define RE_Direct_RectArea\t\tRE_Direct_RectArea_Physical\n#define RE_IndirectDiffuse\t\tRE_IndirectDiffuse_Physical\n#define RE_IndirectSpecular\t\tRE_IndirectSpecular_Physical\n#define Material_BlinnShininessExponent( material ) GGXRoughnessToBlinnExponent( material.specularRoughness )\n#define Material_ClearCoat_BlinnShininessExponent( material ) GGXRoughnessToBlinnExponent( material.clearCoatRoughness )\nfloat computeSpecularOcclusion( const in float dotNV, const in float ambientOcclusion, const in float roughness ) {\n\treturn saturate( pow( dotNV + ambientOcclusion, exp2( - 16.0 * roughness - 1.0 ) ) - 1.0 + ambientOcclusion );\n}\n",lights_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}
1\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\n",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\n",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, clearCoatRadiance, geometry, material, reflectedLight );\n#endif\n",logdepthbuf_fragment:"#if defined( USE_LOGDEPTHBUF ) && defined( USE_LOGDEPTHBUF_EXT )\n\tgl_FragDepthEXT = log2( vFragDepth ) * logDepthBufFC * 0.5;\n#endif",logdepthbuf_pars_fragment:"#ifdef USE_LOGDEPTHBUF\n\tuniform float logDepthBufFC;\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n#endif\n",logdepthbuf_pars_vertex:"#ifdef USE_LOGDEPTHBUF\n\t#ifdef USE_LOGDEPTHBUF_EXT\n\t\tvarying float vFragDepth;\n\t#endif\n\tuniform float logDepthBufFC;\n#endif",logdepthbuf_vertex:"#ifdef USE_LOGDEPTHBUF\n\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\n",map_fragment:"#ifdef USE_MAP\n\tvec4 texelColor = texture2D( map, vUv );\n\ttexelColor = mapTexelToLinear( texelColor );\n\tdiffuseColor *= texelColor;\n#endif\n",map_pars_fragment:"#ifdef USE_MAP\n\tuniform sampler2D map;\n#endif\n",map_particle_fragment:"#ifdef USE_MAP\n\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\n",map_particle_pars_fragment:"#ifdef USE_MAP\n\tuniform mat3 uvTransform;\n\tuniform sampler2D map;\n#endif\n",metalnessmap_fragment:"float metalnessFactor = metalness;\n#ifdef USE_METALNESSMAP\n\tvec4 texelMetalness = texture2D( metalnessMap, vUv );\n\tmetalnessFactor *= texelMetalness.b;\n#endif\n",metalnessmap_pars_fragment:"#ifdef USE_METALNESSMAP\n\tuniform sampler2D metalnessMap;\n#endif",morphnormal_vertex:"#ifdef USE_MORPHNORMALS\n\tobjectNormal += ( morphNormal0 - normal ) * morphTargetInfluences[ 0 ];\n\tobjectNormal += ( morphNormal1 - normal ) * morphTargetInfluences[ 1 ];\n\tobjectNormal += ( morphNormal2 - normal ) * morphTargetInfluences[ 2 ];\n\tobjectNormal += ( morphNormal3 - normal ) * morphTargetInfluences[ 3 ];\n#endif\n",morphtarget_pars_vertex:"#ifdef USE_MORPHTARGETS\n\t#ifndef USE_MORPHNORMALS\n\tuniform float morphTargetInfluences[ 8 ];\n\t#else\n\tuniform float morphTargetInfluences[ 4 ];\n\t#endif\n#endif",morphtarget_vertex:"#ifdef USE_MORPHTARGETS\n\ttransformed += ( morphTarget0 - position ) * morphTargetInfluences[ 0 ];\n\ttransformed += ( morphTarget1 - position ) * morphTargetInfluences[ 1 ];\n\ttransformed += ( morphTarget2 - position ) * morphTargetInfluences[ 2 ];\n\ttransformed += ( morphTarget3 - position ) * morphTargetInfluences[ 3 ];\n\t#ifndef USE_MORPHNORMALS\n\ttransformed += ( morphTarget4 - position ) * morphTargetInfluences[ 4 ];\n\ttransformed += ( morphTarget5 - position ) * morphTargetInfluences[ 5 ];\n\ttransformed += ( morphTarget6 - position ) * morphTargetInfluences[ 6 ];\n\ttransformed += ( morphTarget7 - position ) * morphTargetInfluences[ 7 ];\n\t#endif\n#endif\n",normal_fragment_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#endif\n",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 );
1\n\t#else\n\t\tnormal = perturbNormal2Arb( -vViewPosition, normal );\n\t#endif\n#elif defined( USE_BUMPMAP )\n\tnormal = perturbNormalArb( -vViewPosition, normal, dHdxy_fwd() );\n#endif\n",normalmap_pars_fragment:"#ifdef USE_NORMALMAP\n\tuniform sampler2D normalMap;\n\tuniform vec2 normalScale;\n\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\n",packing:"vec3 packNormalToRGB( const in vec3 normal ) {\n\treturn normalize( normal ) * 0.5 + 0.5;\n}\nvec3 unpackRGBToNormal( const in vec3 rgb ) {\n\treturn 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}\n",premultiplied_alpha_fragment:"#ifdef PREMULTIPLIED_ALPHA\n\tgl_FragColor.rgb *= gl_FragColor.a;\n#endif\n",project_vertex:"vec4 mvPosition = modelViewMatrix * vec4( transformed, 1.0 );\ngl_Position = projectionMatrix * mvPosition;\n",dithering_fragment:"#if defined( DITHERING )\n gl_FragColor.rgb = dithering( gl_FragColor.rgb );\n#endif\n",dithering_pars_fragment:"#if defined( DITHERING )\n\tvec3 dithering( vec3 color ) {\n\t\tfloat grid_position = rand( gl_FragCoord.xy );\n\t\tvec3 dither_shift_RGB = vec3( 0.25 / 255.0, -0.25 / 255.0, 0.25 / 255.0 );\n\t\tdither_shift_RGB = mix( 2.0 * dither_shift_RGB, -2.0 * dither_shift_RGB, grid_position );\n\t\treturn color + dither_shift_RGB;\n\t}\n#endif\n",roughnessmap_fragment:"float roughnessFactor = roughness;\n#ifdef USE_ROUGHNESSMAP\n\tvec4 texelRoughness = texture2D( roughnessMap, vUv );\n\troughnessFactor *= texelRoughness.g;\n#endif\n",roughnessmap_pars_fragment:"#ifdef USE_ROUGHNESSMAP\n\tuniform sampler2D roughnessMap;\n#endif",shadowmap_pars_fragment:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform sampler2D directionalShadowMap[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform sampler2D spotShadowMap[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform sampler2D pointShadowMap[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n\tfloat texture2DCompare( sampler2D depths, vec2 uv, float compare ) {\n\t\treturn step( compare, unpackRGBAToDepth( texture2D( depths, uv ) ) );\n\t}\n\tfloat texture2DShadowLerp( sampler2D depths, vec2 size, vec2 uv, float compare ) {\n\t\tconst vec2 offset = vec2( 0.0, 1.0 );\n\t\tvec2 texelSize = vec2( 1.0 ) / size;\n\t\tvec2 centroidUV = floor( uv * size + 0.5 ) / size;\n\t\tfloat lb = texture2DCompare( depths, centroidUV + texelSize * offset.xx, compare );\n\t\tfloat lt = texture2DCompare( depths, centroidUV + texelSize * offset.xy, compare );\n\t\tfloat rb = texture2DCompare( depths, centroidUV + texelSize * offset.yx, compare );\n\t\tfloat rt = texture2DCompare( depths, centroidUV + texelSize * offset.yy, compare );\n\t\tvec2 f = fract( uv * size + 0.5 );\n\t\tfloat a = mix( lb, lt, f.y );\n\t\tfloat b = mix( rb, rt, f.y );\n\t\tfloat c = mix( a, b, f.x );\n\t\treturn c;\n\t}\n\tfloat getShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord ) {\n\t\tfloat shadow = 1.0;\n\t\tshadowCoord.xyz /= shadowCoord.w;\n\t\tshadowCoord.z += shadowBias;\n\t\tbvec4 inFrustumVec = bvec4 ( shadowCoord.x >= 0.0, shadowCoord.x <= 1.0, shadowCoord.y >= 0.0, shadowCoord.y <= 1.0 );\n\t\tbool inFrustum = all( inFrustumVec );\n\t\tbvec2 frustumTestVec = bvec2( inFrustum, shadowCoord.z <= 1.0 );\n\t\tbool frustumTest = all( frustumTestVec );\n\t\tif ( frustumTest ) {\n\t\t#if defined( SHADOWMAP_TYPE_PCF )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tshadow = (\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DCompare( shadowMap, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#elif defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 texelSize = vec2( 1.0 ) / shadowMapSize;\n\t\t\tfloat dx0 = - texelSize.x * shadowRadius;\n\t\t\tfloat dy0 = - texelSize.y * shadowRadius;\n\t\t\tfloat dx1 = + texelSize.x * shadowRadius;\n\t\t\tfloat dy1 = + texelSize.y * shadowRadius;\n\t\t\tshadow = (\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy, shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, 0.0 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( 0.0, dy1 ), shadowCoord.z ) +\n\t\t\t\ttexture2DShadowLerp( shadowMap, shadowMapSize, shadowCoord.xy + vec2( dx1, dy1 ), shadowCoord.z )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\tshadow = texture2DCompare( shadowMap, shadowCoord.xy, shadowCoord.z );\n\t\t#endif\n\t\t}\n\t\treturn shadow;\n\t}\n\tvec2 cubeToUV( vec3 v, float texelSizeY ) {\n\t\tvec3 absV = abs( v );\n\t\tfloat scaleToCube = 1.0 / max( absV.x, max( absV.y, absV.z ) );\n\t\tabsV *= scaleToCube;\n\t\tv *= scaleToCube * ( 1.0 - 2.0 * texelSizeY );\n\t\tvec2 planar = v.xy;\n\t\tfloat almostATexel = 1.5 * texelSizeY;\n\t\tfloat almostOne = 1.0 - almostATexel;\n\t\tif ( absV.z >= almostOne ) {\n\t\t\tif ( v.z > 0.0 )\n\t\t\t\tplanar.x = 4.0 - v.x;\n\t\t} else if ( absV.x >= almostOne ) {\n\t\t\tfloat signX = sign( v.x );\n\t\t\tplanar.x = v.z * signX + 2.0 * signX;\n\t\t} else if ( absV.y >= almostOne ) {\n\t\t\tfloat signY = sign( v.y );\n\t\t\tplanar.x = v.x + 2.0 * signY + 2.0;\n\t\t\tplanar.y = v.z * signY - 2.0;\n\t\t}\n\t\treturn vec2( 0.125, 0.25 ) * planar + vec2( 0.375, 0.75 );\n\t}\n\tfloat getPointShadow( sampler2D shadowMap, vec2 shadowMapSize, float shadowBias, float shadowRadius, vec4 shadowCoord, float shadowCameraNear, float shadowCameraFar ) {\n\t\tvec2 texelSize = vec2( 1.0 ) / ( shadowMapSize * vec2( 4.0, 2.0 ) );\n\t\tvec3 lightToPosition = shadowCoord.xyz;\n\t\tfloat dp = ( length( lightToPosition ) - shadowCameraNear ) / ( shadowCameraFar - shadowCameraNear );
1\t\tdp += shadowBias;\n\t\tvec3 bd3D = normalize( lightToPosition );\n\t\t#if defined( SHADOWMAP_TYPE_PCF ) || defined( SHADOWMAP_TYPE_PCF_SOFT )\n\t\t\tvec2 offset = vec2( - 1, 1 ) * shadowRadius * texelSize.y;\n\t\t\treturn (\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yyx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxy, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.xxx, texelSize.y ), dp ) +\n\t\t\t\ttexture2DCompare( shadowMap, cubeToUV( bd3D + offset.yxx, texelSize.y ), dp )\n\t\t\t) * ( 1.0 / 9.0 );\n\t\t#else\n\t\t\treturn texture2DCompare( shadowMap, cubeToUV( bd3D, texelSize.y ), dp );\n\t\t#endif\n\t}\n#endif\n",shadowmap_pars_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\t\tuniform mat4 directionalShadowMatrix[ NUM_DIR_LIGHTS ];\n\t\tvarying vec4 vDirectionalShadowCoord[ NUM_DIR_LIGHTS ];\n\t#endif\n\t#if NUM_SPOT_LIGHTS > 0\n\t\tuniform mat4 spotShadowMatrix[ NUM_SPOT_LIGHTS ];\n\t\tvarying vec4 vSpotShadowCoord[ NUM_SPOT_LIGHTS ];\n\t#endif\n\t#if NUM_POINT_LIGHTS > 0\n\t\tuniform mat4 pointShadowMatrix[ NUM_POINT_LIGHTS ];\n\t\tvarying vec4 vPointShadowCoord[ NUM_POINT_LIGHTS ];\n\t#endif\n#endif\n",shadowmap_vertex:"#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\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\n",shadowmask_pars_fragment:"float getShadowMask() {\n\tfloat shadow = 1.0;\n\t#ifdef USE_SHADOWMAP\n\t#if NUM_DIR_LIGHTS > 0\n\tDirectionalLight directionalLight;\n\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}\n",skinbase_vertex:"#ifdef USE_SKINNING\n\tmat4 boneMatX = getBoneMatrix( skinIndex.x );\n\tmat4 boneMatY = getBoneMatrix( skinIndex.y );\n\tmat4 boneMatZ = getBoneMatrix( skinIndex.z );\n\tmat4 boneMatW = getBoneMatrix( skinIndex.w );\n#endif",skinning_pars_vertex:"#ifdef USE_SKINNING\n\tuniform mat4 bindMatrix;\n\tuniform mat4 bindMatrixInverse;\n\t#ifdef BONE_TEXTURE\n\t\tuniform sampler2D boneTexture;\n\t\tuniform int boneTextureSize;\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tfloat j = i * 4.0;\n\t\t\tfloat x = mod( j, float( boneTextureSize ) );\n\t\t\tfloat y = floor( j / float( boneTextureSize ) );\n\t\t\tfloat dx = 1.0 / float( boneTextureSize );\n\t\t\tfloat dy = 1.0 / float( boneTextureSize );\n\t\t\ty = dy * ( y + 0.5 );\n\t\t\tvec4 v1 = texture2D( boneTexture, vec2( dx * ( x + 0.5 ), y ) );\n\t\t\tvec4 v2 = texture2D( boneTexture, vec2( dx * ( x + 1.5 ), y ) );\n\t\t\tvec4 v3 = texture2D( boneTexture, vec2( dx * ( x + 2.5 ), y ) );\n\t\t\tvec4 v4 = texture2D( boneTexture, vec2( dx * ( x + 3.5 ), y ) );\n\t\t\tmat4 bone = mat4( v1, v2, v3, v4 );\n\t\t\treturn bone;\n\t\t}\n\t#else\n\t\tuniform mat4 boneMatrices[ MAX_BONES ];\n\t\tmat4 getBoneMatrix( const in float i ) {\n\t\t\tmat4 bone = boneMatrices[ int(i) ];\n\t\t\treturn bone;\n\t\t}\n\t#endif\n#endif\n",skinning_vertex:"#ifdef USE_SKINNING\n\tvec4 skinVertex = bindMatrix * vec4( transformed, 1.0 );\n\tvec4 skinned = vec4( 0.0 );\n\tskinned += boneMatX * skinVertex * skinWeight.x;\n\tskinned += boneMatY * skinVertex * skinWeight.y;\n\tskinned += boneMatZ * skinVertex * skinWeight.z;\n\tskinned += boneMatW * skinVertex * skinWeight.w;\n\ttransformed = ( bindMatrixInverse * skinned ).xyz;\n#endif\n",skinnormal_vertex:"#ifdef USE_SKINNING\n\tmat4 skinMatrix = mat4( 0.0 );\n\tskinMatrix += skinWeight.x * boneMatX;\n\tskinMatrix += skinWeight.y * boneMatY;\n\tskinMatrix += skinWeight.z * boneMatZ;\n\tskinMatrix += skinWeight.w * boneMatW;
1\n\tskinMatrix = bindMatrixInverse * skinMatrix * bindMatrix;\n\tobjectNormal = vec4( skinMatrix * vec4( objectNormal, 0.0 ) ).xyz;\n#endif\n",specularmap_fragment:"float specularStrength;\n#ifdef USE_SPECULARMAP\n\tvec4 texelSpecular = texture2D( specularMap, vUv );\n\tspecularStrength = texelSpecular.r;\n#else\n\tspecularStrength = 1.0;\n#endif",specularmap_pars_fragment:"#ifdef USE_SPECULARMAP\n\tuniform sampler2D specularMap;\n#endif",tonemapping_fragment:"#if defined( TONE_MAPPING )\n gl_FragColor.rgb = toneMapping( gl_FragColor.rgb );\n#endif\n",tonemapping_pars_fragment:"#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}\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\n",uv_vertex:"#if defined( USE_MAP ) || defined( USE_BUMPMAP ) || defined( USE_NORMALMAP ) || defined( USE_SPECULARMAP ) || defined( USE_ALPHAMAP ) || defined( USE_EMISSIVEMAP ) || defined( USE_ROUGHNESSMAP ) || defined( USE_METALNESSMAP )\n\tvUv = ( 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\n",cube_frag:"uniform samplerCube tCube;\nuniform float tFlip;\nuniform float opacity;\nvarying vec3 vWorldPosition;\nvoid main() {\n\tgl_FragColor = textureCube( tCube, vec3( tFlip * vWorldPosition.x, vWorldPosition.yz ) );\n\tgl_FragColor.a *= opacity;\n}\n",cube_vert:"varying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n\tgl_Position.z = gl_Position.w;\n}\n",depth_frag:"#if DEPTH_PACKING == 3200\n\tuniform float opacity;\n#endif\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#if DEPTH_PACKING == 3200\n\t\tdiffuseColor.a = opacity;\n\t#endif\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <logdepthbuf_fragment>\n\t#if DEPTH_PACKING == 3200\n\t\tgl_FragColor = vec4( vec3( 1.0 - gl_FragCoord.z ), opacity );\n\t#elif DEPTH_PACKING == 3201\n\t\tgl_FragColor = packDepthToRGBA( gl_FragCoord.z );\n\t#endif\n}\n",depth_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n}\n",distanceRGBA_frag:"#define DISTANCE\nuniform vec3 referencePosition;\nuniform float nearDistance;\nuniform float farDistance;\nvarying vec3 vWorldPosition;\n#include <common>\n#include <packing>\n#include <uv_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main () {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( 1.0 );\n\t#include <map_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\tfloat dist = length( vWorldPosition - referencePosition );\n\tdist = ( dist - nearDistance ) / ( farDistance - nearDistance );\n\tdist = saturate( dist );\n\tgl_FragColor = packDepthToRGBA( dist );\n}\n",distanceRGBA_vert:"#define DISTANCE\nvarying vec3 vWorldPosition;\n#include <common>\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_DISPLACEMENTMAP\n\t\t#include <beginnormal_vertex>\n\t\t#include <morphnormal_vertex>\n\t\t#include <skinnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\tvWorldPosition = worldPosition.xyz;\n}\n",equirect_frag:"uniform sampler2D tEquirect;\nvarying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvec3 direction = normalize( vWorldPosition );\n\tvec2 sampleUV;\n\tsampleUV.y = asin( clamp( direction.y, - 1.0, 1.0 ) ) * RECIPROCAL_PI + 0.5;\n\tsampleUV.x = atan( direction.z, direction.x ) * RECIPROCAL_PI2 + 0.5;\n\tgl_FragColor = texture2D( tEquirect, sampleUV );\n}\n",equirect_vert:"varying vec3 vWorldPosition;\n#include <common>\nvoid main() {\n\tvWorldPosition = transformDirection( position, modelMatrix );\n\t#include <begin_vertex>\n\t#include <project_vertex>\n}\n",linedashed_frag:"uniform vec3 diffuse;\nuniform float opacity;\nuniform float dashSize;\nuniform float totalSize;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tif ( mod( vLineDistance, totalSize ) > dashSize ) {\n\t\tdiscard;\n\t}\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <color_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",linedashed_vert:"uniform float scale;\nattribute float lineDistance;\nvarying float vLineDistance;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <color_vertex>\n\tvLineDistance = scale * lineDistance;\n\tvec4 mvPosition = modelViewMatrix * vec4( position, 1.0 );\n\tgl_Position = projectionMatrix * mvPosition;\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <fog_vertex>\n}\n",meshbasic_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <specularmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_fragment>\n\t#include <color_fragment>\n\t#include <alphamap_fragment>\n\t#include <alphatest_fragment>\n\t#include <specularmap_fragment>\n\tReflectedLight reflectedLight = ReflectedLight( vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ), vec3( 0.0 ) );\n\t#ifdef USE_LIGHTMAP\n\t\treflectedLight.indirectDiffuse += texture2D( lightMap, vUv2 ).xyz * lightMapIntensity;\n\t#else\n\t\treflectedLight.indirectDiffuse += vec3( 1.0 );\n\t#endif\n\t#include <aomap_fragment>\n\treflectedLight.indirectDiffuse *= diffuseColor.rgb;\n\tvec3 outgoingLight = reflectedLight.indirectDiffuse;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",meshbasic_vert:"#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <skinbase_vertex>\n\t#ifdef USE_ENVMAP\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n\t#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <worldpos_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <envmap_vertex>\n\t#include <fog_vertex>\n}\n",meshlambert_frag:"uniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float opacity;\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <bsdfs>\n#include <lights_pars_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#include <lightmap_fragment>\n\treflectedLight.indirectDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb );\n\t#ifdef DOUBLE_SIDED\n\t\treflectedLight.directDiffuse = ( gl_FrontFacing ) ? vLightFront : vLightBack;\n\t#else\n\t\treflectedLight.directDiffuse = vLightFront;\n\t#endif\n\treflectedLight.directDiffuse *= BRDF_Diffuse_Lambert( diffuseColor.rgb ) * getShadowMask();\n\t#include <aomap_fragment>\n\tvec3 outgoingLight = reflectedLight.directDiffuse + reflectedLight.indirectDiffuse + totalEmissiveRadiance;\n\t#include <envmap_fragment>\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n\t#include <premultiplied_alpha_fragment>\n\t#include <dithering_fragment>\n}\n",meshlambert_vert:"#define LAMBERT\nvarying vec3 vLightFront;\n#ifdef DOUBLE_SIDED\n\tvarying vec3 vLightBack;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <envmap_pars_vertex>\n#include <bsdfs>\n#include <lights_pars_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}\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}\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 <log
1depthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <envmap_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",meshphysical_frag:"#define PHYSICAL\nuniform vec3 diffuse;\nuniform vec3 emissive;\nuniform float roughness;\nuniform float metalness;\nuniform float opacity;\n#ifndef STANDARD\n\tuniform float clearCoat;\n\tuniform float clearCoatRoughness;\n#endif\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <packing>\n#include <dithering_pars_fragment>\n#include <color_pars_fragment>\n#include <uv_pars_fragment>\n#include <uv2_pars_fragment>\n#include <map_pars_fragment>\n#include <alphamap_pars_fragment>\n#include <aomap_pars_fragment>\n#include <lightmap_pars_fragment>\n#include <emissivemap_pars_fragment>\n#include <envmap_pars_fragment>\n#include <fog_pars_fragment>\n#include <bsdfs>\n#include <cube_uv_reflection_fragment>\n#include <lights_pars_begin>\n#include <lights_pars_maps>\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}\n",meshphysical_vert:"#define PHYSICAL\nvarying vec3 vViewPosition;\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <common>\n#include <uv_pars_vertex>\n#include <uv2_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <shadowmap_pars_vertex>\n#include <logdepthbuf_pars_vertex>\n#include <clipping_planes_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <uv2_vertex>\n\t#include <color_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\tvViewPosition = - mvPosition.xyz;\n\t#include <worldpos_vertex>\n\t#include <shadowmap_vertex>\n\t#include <fog_vertex>\n}\n",normal_frag:"#define NORMAL\nuniform float opacity;\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvarying vec3 vViewPosition;\n#endif\n#ifndef FLAT_SHADED\n\tvarying vec3 vNormal;\n#endif\n#include <packing>\n#include <uv_pars_fragment>\n#include <bumpmap_pars_fragment>\n#include <normalmap_pars_fragment>\n#include <logdepthbuf_pars_fragment>\nvoid main() {\n\t#include <logdepthbuf_fragment>\n\t#include <normal_fragment_begin>\n\t#include <normal_fragment_maps>\n\tgl_FragColor = vec4( packNormalToRGB( normal ), opacity );\n}\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#endif\n#include <uv_pars_vertex>\n#include <displacementmap_pars_vertex>\n#include <morphtarget_pars_vertex>\n#include <skinning_pars_vertex>\n#include <logdepthbuf_pars_vertex>\nvoid main() {\n\t#include <uv_vertex>\n\t#include <beginnormal_vertex>\n\t#include <morphnormal_vertex>\n\t#include <skinbase_vertex>\n\t#include <skinnormal_vertex>\n\t#include <defaultnormal_vertex>\n#ifndef FLAT_SHADED\n\tvNormal = normalize( transformedNormal );\n#endif\n\t#include <begin_vertex>\n\t#include <morphtarget_vertex>\n\t#include <skinning_vertex>\n\t#include <displacementmap_vertex>\n\t#include <project_vertex>\n\t#include <logdepthbuf_vertex>\n#if defined( FLAT_SHADED ) || defined( USE_BUMPMAP ) || ( defined( USE_NORMALMAP ) && ! defined( OBJECTSPACE_NORMALMAP ) )\n\tvViewPosition = - mvPosition.xyz;\n#endif\n}\n",points_frag:"uniform vec3 diffuse;\nuniform float opacity;\n#include <common>\n#include <packing>\n#include <color_pars_fragment>\n#include <map_particle_pars_fragment>\n#include <fog_pars_fragment>\n#include <logdepthbuf_pars_fragment>\n#include <clipping_planes_pars_fragment>\nvoid main() {\n\t#include <clipping_planes_fragment>\n\tvec3 outgoingLight = vec3( 0.0 );\n\tvec4 diffuseColor = vec4( diffuse, opacity );\n\t#include <logdepthbuf_fragment>\n\t#include <map_particle_fragment>\n\t#include <color_fragment>\n\t#include <alphatest_fragment>\n\toutgoingLight = diffuseColor.rgb;\n\tgl_FragColor = vec4( outgoingLight, diffuseColor.a );\n\t#include <premultiplied_alpha_fragment>\n\t#include <tonemapping_fragment>\n\t#include <encodings_fragment>\n\t#include <fog_fragment>\n}\n",points_vert:"uniform float size;\nuniform float scale;\n#include <common>\n#include <color_pars_vertex>\n#include <fog_pars_vertex>\n#include <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\t#ifdef USE_SIZEATTENUATION\n\t\tgl_PointSize = size * ( scale / - mvPosition.z );\n\t#else\n\t\tgl_PointSize = size;\n\t#endif\n\t#include <logdepthbuf_vertex>\n\t#include <clipping_planes_vertex>\n\t#include <worldpos_vertex>\n\t#include <fog_vertex>\n}\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}\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}\n"},Fu={merge:function(t){for(var e={},n=0;n<t.length;n++){var r=this.clone(t[n]);for(var i in r)e[i]=r[i]}return e},clone:function(t){var e={};for(var n in t){e[n]={};for(var r in t[n]){var i=t[n][r];i&&(i.isColor||i.isMatrix3||i.isMatrix4||i.isVector2||i.isVector3||i.isVector4||i.isTexture)?e[n][r]=i.clone():Array.isArray(i)?e[n][r]=i.slice():e[n][r]=i}}return e}},Uu={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};Object.assign(g.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,r){if(e=ku.euclideanModulo(e,1),n=ku.clamp(n,0,1),r=ku.clamp(r,0,1),0===n)this.r=this.g=this.b=r;else{var i=r<=.5?r*(1+n):r+n-r*n,o=2*r-i;
vendor: 20,604 bytes, line 1
1this.r=t(o,i,e+1/3),this.g=t(o,i,e),this.b=t(o,i,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 r,i=n[1],o=n[2];switch(i){case"rgb":case"rgba":if(r=/^(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(o))return this.r=Math.min(255,parseInt(r[1],10))/255,this.g=Math.min(255,parseInt(r[2],10))/255,this.b=Math.min(255,parseInt(r[3],10))/255,e(r[5]),this;if(r=/^(\d+)\%\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(o))return this.r=Math.min(100,parseInt(r[1],10))/100,this.g=Math.min(100,parseInt(r[2],10))/100,this.b=Math.min(100,parseInt(r[3],10))/100,e(r[5]),this;break;case"hsl":case"hsla":if(r=/^([0-9]*\.?[0-9]+)\s*,\s*(\d+)\%\s*,\s*(\d+)\%\s*(,\s*([0-9]*\.?[0-9]+)\s*)?$/.exec(o)){var s=parseFloat(r[1])/360,a=parseInt(r[2],10)/100,u=parseInt(r[3],10)/100;return e(r[5]),this.setHSL(s,a,u)}}}else if(n=/^\#([A-Fa-f0-9]+)$/.exec(t)){var c=n[1],l=c.length;if(3===l)return this.r=parseInt(c.charAt(0)+c.charAt(0),16)/255,this.g=parseInt(c.charAt(1)+c.charAt(1),16)/255,this.b=parseInt(c.charAt(2)+c.charAt(2),16)/255,this;if(6===l)return this.r=parseInt(c.charAt(0)+c.charAt(1),16)/255,this.g=parseInt(c.charAt(2)+c.charAt(3),16)/255,this.b=parseInt(c.charAt(4)+c.charAt(5),16)/255,this}if(t&&t.length>0){var c=Uu[t];void 0!==c?this.setHex(c):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,r=this.r,i=this.g,o=this.b,s=Math.max(r,i,o),a=Math.min(r,i,o),u=(a+s)/2;if(a===s)e=0,n=0;else{var c=s-a;switch(n=u<=.5?c/(s+a):c/(2-s-a),s){case r:e=(i-o)/c+(i<o?6:0);break;case i:e=(o-r)/c+2;break;case o:e=(r-i)/c+4}e/=6}return t.h=e,t.s=n,t.l=u,t},getStyle:function(){return"rgb("+(255*this.r|0)+","+(255*this.g|0)+","+(255*this.b|0)+")"},offsetHSL:function(){var t={};return function(e,n,r){return this.getHSL(t),t.h+=e,t.s+=n,t.l+=r,this.setHSL(t.h,t.s,t.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},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 Bu={common:{diffuse:{value:new g(15658734)},opacity:{value:1},map:{value:null},uvTransform:{value:new u},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 i(1,1)}},displacementmap:{displacementMap:{value:null},displacementScale:{value:1},displacementBias:{value:0}},roughnessmap:{roughnessMap:{value:null}},metalnessmap:{metalnessMap:{value:null}},gradientmap:{gradientMap:{value:null}},fog:{fogDensity:{value:25e-5},fogNear:{value:1},fogFar:{value:2e3},fogColor:{value:new g(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 g(15658734)},opacity:{value:1},size:{value:1},scale:{value:1},map:{value:null},uvTransform:{value:new u}}},zu={basic:{uniforms:Fu.merge([Bu.common,Bu.specularmap,Bu.envmap,Bu.aomap,Bu.lightmap,Bu.fog]),vertexShader:Du.meshbasic_vert,fragmentShader:Du.meshbasic_frag},lambert:{uniforms:Fu.merge([Bu.common,Bu.specularmap,Bu.envmap,Bu.aomap,Bu.lightmap,Bu.emissivemap,Bu.fog,Bu.lights,{emissive:{value:new g(0)}}]),vertexShader:Du.meshlambert_vert,fragmentShader:Du.meshlambert_frag},phong:{uniforms:Fu.merge([Bu.common,Bu.specularmap,Bu.envmap,Bu.aomap,Bu.lightmap,Bu.emissivemap,Bu.bumpmap,Bu.normalmap,Bu.displacementmap,Bu.gradientmap,Bu.fog,Bu.lights,{emissive:{value:new g(0)},specular:{value:new g(1118481)},shininess:{value:30}}]),vertexShader:Du.meshphong_vert,fragmentShader:Du.meshphong_frag},standard:{uniforms:Fu.merge([Bu.common,Bu.envmap,Bu.aomap,Bu.lightmap,Bu.emissivemap,Bu.bumpmap,Bu.normalmap,Bu.displacementmap,Bu.roughnessmap,Bu.metalnessmap,Bu.fog,Bu.lights,{emissive:{value:new g(0)},roughness:{value:.5},metalness:{value:.5},envMapIntensity:{value:1}}]),vertexShader:Du.meshphysical_vert,fragmentShader:Du.meshphysical_frag},points:{uniforms:Fu.merge([Bu.points,Bu.fog]),vertexShader:Du.points_vert,fragmentShader:Du.points_frag},dashed:{uniforms:Fu.merge([Bu.common,Bu.fog,{scale:{value:1},dashSize:{value:1},totalSize:{value:2}}]),vertexShader:Du.linedashed_vert,fragmentShader:Du.linedashed_frag},depth:{uniforms:Fu.merge([Bu.common,Bu.displacementmap]),vertexShader:Du.depth_vert,fragmentShader:Du.depth_frag},normal:{uniforms:Fu.merge([Bu.common,Bu.bumpmap,Bu.normalmap,Bu.displacementmap,{opacity:{value:1}}]),vertexShader:Du.normal_vert,fragmentShader:Du.normal_frag},cube:{uniforms:{tCube:{value:null},tFlip:{value:-1},opacity:{value:1}},vertexShader:Du.cube_vert,fragmentShader:Du.cube_frag},equirect:{uniforms:{tEquirect:{value:null}},vertexShader:Du.equirect_vert,fragmentShader:Du.equirect_frag},distanceRGBA:{uniforms:Fu.merge([Bu.common,Bu.displacementmap,{referencePosition:{value:new a},nearDistance:{value:1},farDistance:{value:1e3}}]),vertexShader:Du.distanceRGBA_vert,fragmentShader:Du.distanceRGBA_frag},shadow:{uniforms:Fu.merge([Bu.lights,Bu.fog,{color:{value:new g(0)},opacity:{value:1}}]),vertexShader:Du.shadow_vert,fragmentShader:Du.shadow_frag}};zu.physical={uniforms:Fu.merge([zu.standard.uniforms,{clearCoat:{value:0},clearCoatRoughness:{value:0}}]),vertexShader:Du.meshphysical_vert,fragmentShader:Du.meshphysical_frag},w.RotationOrders=["XYZ","YZX","ZXY","XZY","YXZ","ZYX"],w.DefaultOrder="XYZ",Object.defineProperties(w.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(w.prototype,{isEuler:!0,set:function(t,e,n,r){return this._x=t,this._y=e,this._z=n,this._order=r||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 r=ku.clamp,i=t.elements,o=i[0],s=i[4],a=i[8],u=i[1],c=i[5],l=i[9],h=i[2],p=i[6],f=i[10];return e=e||this._order,"XYZ"===e?(this._y=Math.asin(r(a,-1,1)),Math.abs(a)<.99999?(this._x=Math.atan2(-l,f),this._z=Math.atan2(-s,o)):(this._x=Math.atan2(p,c),this._z=0)):"YXZ"===e?(this._x=Math.asin(-r(l,-1,1)),Math.abs(l)<.99999?(this._y=Math.atan2(a,f),this._z=Math.atan2(u,c)):(this._y=Math.atan2(-h,o),this._z=0)):"ZXY"===e?(this._x=Math.asin(r(p,-1,1)),Math.abs(p)<.99999?(this._y=Math.atan2(-h,f),this._z=Math.atan2(-s,c)):(this._y=0,this._z=Math.atan2(u,o))):"ZYX"===e?(this._y=Math.asin(-r(h,-1,1)),Math.abs(h)<.99999?(this._x=Math.atan2(p,f),this._z=Math.atan2(u,o)):(this._x=0,this._z=Math.atan2(-s,c))):"YZX"===e?(this._z=Math.asin(r(u,-1,1)),Math.abs(u)<.99999?(this._x=Math.atan2(-l,c),this._y=Math.atan2(-h,o)):(this._x=0,this._y=Math.atan2(a,f))):"XZY"===e?(this._z=Math.asin(-r(s,-1,1)),Math.abs(s)<.99999?(this._x=Math.atan2(p,c),this._y=Math.atan2(a,o)):(this._x=Math.atan2(-l,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 o;return function(e,n,r){return t.makeRotationFromQuaternion(e),this.setFromRotationMatrix(t,n,r)}}(),setFromVector3:function(t,e){return this.set(t.x,t.y,t.z,e||this._order)},reorder:function(){var t=new s;return function(e){return t.setFromEuler(this),this.setFromQuaternion(t,e)}}(),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 a(this._x,this._y,this._z)},onChange:function(t){return this.onChangeCallback=t,this},onChangeCallback:function(){}}),Object.assign(x.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 Vu=0;E.DefaultUp=new a(0,1,0),E.DefaultMatrixAutoUpdate=!0,E.prototype=Object.assign(Object.create(r.prototype),{constructor:E,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:function(){var t=new s;return function(e,n){return t.setFromAxisAngle(e,n),this.quaternion.multiply(t),this}}(),rotateOnWorldAxis:function(){var t=new s;return function(e,n){return t.setFromAxisAngle(e,n),this.quaternion.premultiply(t),this}}(),rotateX:function(){var t=new a(1,0,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateY:function(){var t=new a(0,1,0);return function(e){return this.rotateOnAxis(t,e)}}(),rotateZ:function(){var t=new a(0,0,1);return function(e){return this.rotateOnAxis(t,e)}}(),translateOnAxis:function(){var t=new a;return function(e,n){return t.copy(e).applyQuaternion(this.quaternion),this.position.add(t.multiplyScalar(n)),this}}(),translateX:function(){var t=new a(1,0,0);return function(e){return this.translateOnAxis(t,e)}}(),translateY:function(){var t=new a(0,1,0);return function(e){return this.translateOnAxis(t,e)}}(),translateZ:function(){var t=new a(0,0,1);return function(e){return this.translateOnAxis(t,e)}}(),localToWorld:function(t){return t.applyMatrix4(this.matrixWorld)},worldToLocal:function(){var t=new o;return function(e){return e.applyMatrix4(t.getInverse(this.matrixWorld))}}(),lookAt:function(){var t=new o,e=new a;return function(n,r,i){n.isVector3?e.copy(n):e.set(n,r,i),this.isCamera?t.lookAt(this.position,e,this.up):t.lookAt(e,this.position,this.up),this.quaternion.setFromRotationMatrix(t)}}(),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,r=this.children.length;n<r;n++){var i=this.children[n],o=i.getObjectByProperty(t,e);if(void 0!==o)return o}},getWorldPosition:function(t){return void 0===t&&(console.warn("THREE.Object3D: .getWorldPosition() target is now required"),t=new a),this.updateMatrixWorld(!0),t.setFromMatrixPosition(this.matrixWorld)},getWorldQuaternion:function(){var t=new a,e=new a;return function(n){return void 0===n&&(console.warn("THREE.Object3D: .getWorldQuaternion() target is now required"),n=new s),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,n,e),n}}(),getWorldScale:function(){var t=new a,e=new s;return function(n){return void 0===n&&(console.warn("THREE.Object3D: .getWorldScale() target is now required"),n=new a),this.updateMatrixWorld(!0),this.matrixWorld.decompose(t,e,n),n}}(),getWorldDirection:function(){var t=new s;return function(e){return void 0===e&&(console.warn("THREE.Object3D: .getWorldDirection() target is now required"),e=new a),this.getWorldQuaternion(t),e.set(0,0,1).applyQuaternion(t)}}(),raycast:function(){},traverse:function(t){t(this);for(var e=this.children,n=0,r=e.length;n<r;n++)e[n].traverse(t)},traverseVisible:function(t){if(!1!==this.visible){t(this);for(var e=this.children,n=0,r=e.length;n<r;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,r=e.length;n<r;n++)e[n].updateMatrixWorld(t)},toJSON:function(t){function e(e,n){return void 0===e[n.uuid]&&(e[n.uuid]=n.toJSON(t)),n.uuid}function n(t){var e=[];for(var n in t){var r=t[n];delete r.metadata,e.push(r)}return e}var r=void 0===t||"string"==typeof t,i={};r&&(t={geometries:{},materials:{},textures:{},images:{},shapes:{}},i.metadata={version:4.5,type:"Object",generator:"Object3D.toJSON"});var o={};if(o.uuid=this.uuid,o.type=this.type,""!==this.name&&(o.name=this.name),!0===this.castShadow&&(o.castShadow=!0),!0===this.receiveShadow&&(o.receiveShadow=!0),!1===this.visible&&(o.visible=!1),!1===this.frustumCulled&&(o.frustumCulled=!1),0!==this.renderOrder&&(o.renderOrder=this.renderOrder),"{}"!==JSON.stringify(this.userData)&&(o.userData=this.userData),o.layers=this.layers.mask,o.matrix=this.matrix.toArray(),!1===this.matrixAutoUpdate&&(o.matrixAutoUpdate=!1),void 0!==this.geometry){o.geometry=e(t.geometries,this.geometry);var s=this.geometry.parameters;if(void 0!==s&&void 0!==s.shapes){var a=s.shapes;if(Array.isArray(a))for(var u=0,c=a.length;u<c;u++){var l=a[u];e(t.shapes,l)}else e(t.shapes,a)}}if(void 0!==this.material)if(Array.isArray(this.material)){for(var h=[],u=0,c=this.material.length;u<c;u++)h.push(e(t.materials,this.material[u]));o.material=h}else o.material=e(t.materials,this.material);if(this.children.length>0){o.children=[];for(var u=0;u<this.children.length;u++)o.children.push(this.children[u].toJSON(t).object)}if(r){var p=n(t.geometries),f=n(t.materials),d=n(t.textures),m=n(t.images),a=n(t.shapes);p.length>0&&(i.geometries=p),f.length>0&&(i.materials=f),d.length>0&&(i.textures=d),m.length>0&&(i.images=m),a.length>0&&(i.shapes=a)}return i.object=o,i},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 r=t.children[n];this.add(r.clone())}return this}}),S.prototype=Object.assign(Object.create(E.prototype),{constructor:S,isCamera:!0,copy:function(t,e){return E.prototype.copy.call(this,t,e),this.matrixWorldInverse.copy(t.matrixWorldInverse),this.projectionMatrix.copy(t.projectionMatrix),this},getWorldDirection:function(){var t=new s;return function(e){return void 0===e&&(console.warn("THREE.Camera: .getWorldDirection() target is now required"),e=new a),this.getWorldQuaternion(t),e.set(0,0,-1).applyQuaternion(t)}}(),updateMatrixWorld:function(t){E.prototype.updateMatrixWorld.call(this,t),this.matrixWorldInverse.getInverse(this.matrixWorld)},clone:function(){return(new this.constructor).copy(this)}}),T.prototype=Object.assign(Object.create(S.prototype),{constructor:T,isOrthographicCamera:!0,copy:function(t,e){return S.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,r,i,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=r,this.view.width=i,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,r=(this.top+this.bottom)/2,i=n-t,o=n+t,s=r+e,a=r-e;if(null!==this.view&&this.view.enabled){var u=this.zoom/(this.view.width/this.view.fullWidth),c=this.zoom/(this.view.height/this.view.fullHeight),l=(this.right-this.left)/this.view.width,h=(this.top-this.bottom)/this.view.height;i+=l*(this.view.offsetX/u),o=i+l*(this.view.width/u),s-=h*(this.view.offsetY/c),a=s-h*(this.view.height/c)}
1this.projectionMatrix.makeOrthographic(i,o,s,a,this.near,this.far)},toJSON:function(t){var e=E.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}}),Object.assign(M.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(var e=0,n=t.vertexColors.length;e<n;e++)this.vertexColors[e]=t.vertexColors[e].clone();return this}});var Hu=0;C.prototype=Object.assign(Object.create(r.prototype),{constructor:C,isGeometry:!0,applyMatrix:function(t){for(var e=(new u).getNormalMatrix(t),n=0,r=this.vertices.length;n<r;n++){this.vertices[n].applyMatrix4(t)}for(var n=0,r=this.faces.length;n<r;n++){var i=this.faces[n];i.normal.applyMatrix3(e).normalize();for(var o=0,s=i.vertexNormals.length;o<s;o++)i.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 o;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new o;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new o;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new o;return function(e,n,r){return t.makeTranslation(e,n,r),this.applyMatrix(t),this}}(),scale:function(){var t=new o;return function(e,n,r){return t.makeScale(e,n,r),this.applyMatrix(t),this}}(),lookAt:function(){var t=new E;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),fromBufferGeometry:function(t){function e(t,e,r,i){var o=void 0!==u?[p[t].clone(),p[e].clone(),p[r].clone()]:[],s=void 0!==c?[n.colors[t].clone(),n.colors[e].clone(),n.colors[r].clone()]:[],a=new M(t,e,r,o,s,i);n.faces.push(a),void 0!==l&&n.faceVertexUvs[0].push([f[t].clone(),f[e].clone(),f[r].clone()]),void 0!==h&&n.faceVertexUvs[1].push([d[t].clone(),d[e].clone(),d[r].clone()])}var n=this,r=null!==t.index?t.index.array:void 0,o=t.attributes,s=o.position.array,u=void 0!==o.normal?o.normal.array:void 0,c=void 0!==o.color?o.color.array:void 0,l=void 0!==o.uv?o.uv.array:void 0,h=void 0!==o.uv2?o.uv2.array:void 0;void 0!==h&&(this.faceVertexUvs[1]=[]);for(var p=[],f=[],d=[],m=0,v=0;m<s.length;m+=3,v+=2)n.vertices.push(new a(s[m],s[m+1],s[m+2])),void 0!==u&&p.push(new a(u[m],u[m+1],u[m+2])),void 0!==c&&n.colors.push(new g(c[m],c[m+1],c[m+2])),void 0!==l&&f.push(new i(l[v],l[v+1])),void 0!==h&&d.push(new i(h[v],h[v+1]));var y=t.groups;if(y.length>0)for(var m=0;m<y.length;m++)for(var b=y[m],_=b.start,w=b.count,v=_,x=_+w;v<x;v+=3)void 0!==r?e(r[v],r[v+1],r[v+2],b.materialIndex):e(v,v+1,v+2,b.materialIndex);else if(void 0!==r)for(var m=0;m<r.length;m+=3)e(r[m],r[m+1],r[m+2]);else for(var m=0;m<s.length/3;m+=3)e(m,m+1,m+2);return this.computeFaceNormals(),null!==t.boundingBox&&(this.boundingBox=t.boundingBox.clone()),null!==t.boundingSphere&&(this.boundingSphere=t.boundingSphere.clone()),this},center:function(){var t=new a;return function(){return this.computeBoundingBox(),this.boundingBox.getCenter(t).negate(),this.translate(t.x,t.y,t.z),this}}(),normalize:function(){this.computeBoundingSphere();var t=this.boundingSphere.center,e=this.boundingSphere.radius,n=0===e?1:1/e,r=new o;return r.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(r),this},computeFaceNormals:function(){for(var t=new a,e=new a,n=0,r=this.faces.length;n<r;n++){var i=this.faces[n],o=this.vertices[i.a],s=this.vertices[i.b],u=this.vertices[i.c];t.subVectors(u,s),e.subVectors(o,s),t.cross(e),t.normalize(),i.normal.copy(t)}},computeVertexNormals:function(t){void 0===t&&(t=!0);var e,n,r,i,o,s;for(s=new Array(this.vertices.length),e=0,n=this.vertices.length;e<n;e++)s[e]=new a;
vendor: 1,111 bytes, line 1
1if(t){var u,c,l,h=new a,p=new a;for(r=0,i=this.faces.length;r<i;r++)o=this.faces[r],u=this.vertices[o.a],c=this.vertices[o.b],l=this.vertices[o.c],h.subVectors(l,c),p.subVectors(u,c),h.cross(p),s[o.a].add(h),s[o.b].add(h),s[o.c].add(h)}else for(this.computeFaceNormals(),r=0,i=this.faces.length;r<i;r++)o=this.faces[r],s[o.a].add(o.normal),s[o.b].add(o.normal),s[o.c].add(o.normal);for(e=0,n=this.vertices.length;e<n;e++)s[e].normalize();for(r=0,i=this.faces.length;r<i;r++){o=this.faces[r];var f=o.vertexNormals;3===f.length?(f[0].copy(s[o.a]),f[1].copy(s[o.b]),f[2].copy(s[o.c])):(f[0]=s[o.a].clone(),f[1]=s[o.b].clone(),f[2]=s[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++){n=this.faces[t];var r=n.vertexNormals;3===r.length?(r[0].copy(n.normal),r[1].copy(n.normal),r[2].copy(n.normal)):(r[0]=n.normal.clone(),r[1]=n.normal.clone(),r[2]=n.normal.clone())}this.faces.length>0&&(this.normalsNeedUpdate=!0)},computeMorphNormals:function(){var t,e,n,r,i;for(n=0,r=this.faces.length;n<r;
vendor: 1,082 bytes, line 1
1n++)for(i=this.faces[n],i.__originalFaceNormal?i.__originalFaceNormal.copy(i.normal):i.__originalFaceNormal=i.normal.clone(),i.__originalVertexNormals||(i.__originalVertexNormals=[]),t=0,e=i.vertexNormals.length;t<e;t++)i.__originalVertexNormals[t]?i.__originalVertexNormals[t].copy(i.vertexNormals[t]):i.__originalVertexNormals[t]=i.vertexNormals[t].clone();var o=new C;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 s,u,c=this.morphNormals[t].faceNormals,l=this.morphNormals[t].vertexNormals;for(n=0,r=this.faces.length;n<r;n++)s=new a,u={a:new a,b:new a,c:new a},c.push(s),l.push(u)}var h=this.morphNormals[t];o.vertices=this.morphTargets[t].vertices,o.computeFaceNormals(),o.computeVertexNormals();var s,u;for(n=0,r=this.faces.length;n<r;n++)i=this.faces[n],s=h.faceNormals[n],u=h.vertexNormals[n],s.copy(i.normal),u.a.copy(i.vertexNormals[0]),u.b.copy(i.vertexNormals[1]),u.c.copy(i.vertexNormals[2])}for(n=0,r=this.faces.length;n<r;
1n++)i=this.faces[n],i.normal=i.__originalFaceNormal,i.vertexNormals=i.__originalVertexNormals},computeBoundingBox:function(){null===this.boundingBox&&(this.boundingBox=new d),this.boundingBox.setFromPoints(this.vertices)},computeBoundingSphere:function(){null===this.boundingSphere&&(this.boundingSphere=new m),this.boundingSphere.setFromPoints(this.vertices)},merge:function(t,e,n){if(!t||!t.isGeometry)return void console.error("THREE.Geometry.merge(): geometry not an instance of THREE.Geometry.",t);var r,i=this.vertices.length,o=this.vertices,s=t.vertices,a=this.faces,c=t.faces,l=this.faceVertexUvs[0],h=t.faceVertexUvs[0],p=this.colors,f=t.colors;void 0===n&&(n=0),void 0!==e&&(r=(new u).getNormalMatrix(e));for(var d=0,m=s.length;d<m;d++){var v=s[d],y=v.clone();void 0!==e&&y.applyMatrix4(e),o.push(y)}for(var d=0,m=f.length;d<m;d++)p.push(f[d].clone());for(d=0,m=c.length;d<m;d++){var g,b,_,w=c[d],x=w.vertexNormals,E=w.vertexColors;g=new M(w.a+i,w.b+i,w.c+i),g.normal.copy(w.normal),void 0!==r&&g.normal.applyMatrix3(r).normalize();for(var S=0,T=x.length;S<T;
1S++)b=x[S].clone(),void 0!==r&&b.applyMatrix3(r).normalize(),g.vertexNormals.push(b);g.color.copy(w.color);for(var S=0,T=E.length;S<T;S++)_=E[S],g.vertexColors.push(_.clone());g.materialIndex=w.materialIndex+n,a.push(g)}for(d=0,m=h.length;d<m;d++){var C=h[d],O=[];if(void 0!==C){for(var S=0,T=C.length;S<T;S++)O.push(C[S].clone());l.push(O)}}},mergeMesh:function(t){if(!t||!t.isMesh)return void console.error("THREE.Geometry.mergeMesh(): mesh not an instance of THREE.Mesh.",t);t.matrixAutoUpdate&&t.updateMatrix(),this.merge(t.geometry,t.matrix)},mergeVertices:function(){var t,e,n,r,i,o,s,a,u={},c=[],l=[],h=Math.pow(10,4);for(n=0,r=this.vertices.length;n<r;n++)t=this.vertices[n],e=Math.round(t.x*h)+"_"+Math.round(t.y*h)+"_"+Math.round(t.z*h),void 0===u[e]?(u[e]=n,c.push(this.vertices[n]),l[n]=c.length-1):l[n]=l[u[e]];var p=[];for(n=0,r=this.faces.length;n<r;n++){i=this.faces[n],i.a=l[i.a],i.b=l[i.b],i.c=l[i.c],o=[i.a,i.b,i.c];for(var f=0;f<3;f++)if(o[f]===o[(f+1)%3]){p.push(n);break}}for(n=p.length-1;n>=0;n--){var d=p[n];for(this.faces.splice(d,1),s=0,a=this.faceVertexUvs.length;s<a;s++)this.faceVertexUvs[s].splice(d,1)}var m=this.vertices.length-c.length;return this.vertices=c,m},setFromPoints:function(t){this.vertices=[];for(var e=0,n=t.length;e<n;e++){var r=t[e];this.vertices.push(new a(r.x,r.y,r.z||0))}return this},sortFacesByMaterialIndex:function(){function t(t,e){return t.materialIndex-e.materialIndex}for(var e=this.faces,n=e.length,r=0;r<n;r++)e[r]._id=r;e.sort(t);var i,o,s=this.faceVertexUvs[0],a=this.faceVertexUvs[1];s&&s.length===n&&(i=[]),a&&a.length===n&&(o=[]);for(var r=0;r<n;r++){var u=e[r]._id;i&&i.push(s[u]),o&&o.push(a[u])}i&&(this.faceVertexUvs[0]=i),o&&(this.faceVertexUvs[1]=o)},toJSON:function(){function t(t,e,n){return n?t|1<<e:t&~(1<<e)}function e(t){var e=t.x.toString()+t.y.toString()+t.z.toString();return void 0!==p[e]?p[e]:(p[e]=h.length/3,h.push(t.x,t.y,t.z),p[e])}function n(t){var e=t.r.toString()+t.g.toString()+t.b.toString();return void 0!==d[e]?d[e]:(d[e]=f.length,f.push(t.getHex()),d[e])}function r(t){var e=t.x.toString()+t.y.toString();return void 0!==v[e]?v[e]:(v[e]=m.length/2,m.push(t.x,t.y),v[e])}var i={metadata:{version:4.5,type:"Geometry",generator:"Geometry.toJSON"}};
vendor: 11,181 bytes, line 1
1if(i.uuid=this.uuid,i.type=this.type,""!==this.name&&(i.name=this.name),void 0!==this.parameters){var o=this.parameters;for(var s in o)void 0!==o[s]&&(i[s]=o[s]);return i}for(var a=[],u=0;u<this.vertices.length;u++){var c=this.vertices[u];a.push(c.x,c.y,c.z)}for(var l=[],h=[],p={},f=[],d={},m=[],v={},u=0;u<this.faces.length;u++){var y=this.faces[u],g=void 0!==this.faceVertexUvs[0][u],b=y.normal.length()>0,_=y.vertexNormals.length>0,w=1!==y.color.r||1!==y.color.g||1!==y.color.b,x=y.vertexColors.length>0,E=0;if(E=t(E,0,0),E=t(E,1,!0),E=t(E,2,!1),E=t(E,3,g),E=t(E,4,b),E=t(E,5,_),E=t(E,6,w),E=t(E,7,x),l.push(E),l.push(y.a,y.b,y.c),l.push(y.materialIndex),g){var S=this.faceVertexUvs[0][u];l.push(r(S[0]),r(S[1]),r(S[2]))}if(b&&l.push(e(y.normal)),_){var T=y.vertexNormals;l.push(e(T[0]),e(T[1]),e(T[2]))}if(w&&l.push(n(y.color)),x){var M=y.vertexColors;l.push(n(M[0]),n(M[1]),n(M[2]))}}return i.data={},i.data.vertices=a,i.data.normals=h,f.length>0&&(i.data.colors=f),m.length>0&&(i.data.uvs=[m]),i.data.faces=l,i},clone:function(){return(new C).copy(this)},copy:function(t){var e,n,r,i,o,s;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 a=t.vertices;for(e=0,n=a.length;e<n;e++)this.vertices.push(a[e].clone());var u=t.colors;for(e=0,n=u.length;e<n;e++)this.colors.push(u[e].clone());var c=t.faces;for(e=0,n=c.length;e<n;e++)this.faces.push(c[e].clone());for(e=0,n=t.faceVertexUvs.length;e<n;e++){var l=t.faceVertexUvs[e];for(void 0===this.faceVertexUvs[e]&&(this.faceVertexUvs[e]=[]),r=0,i=l.length;r<i;r++){var h=l[r],p=[];for(o=0,s=h.length;o<s;o++){var f=h[o];p.push(f.clone())}this.faceVertexUvs[e].push(p)}}var d=t.morphTargets;for(e=0,n=d.length;e<n;e++){var m={};if(m.name=d[e].name,void 0!==d[e].vertices)for(m.vertices=[],r=0,i=d[e].vertices.length;r<i;r++)m.vertices.push(d[e].vertices[r].clone());if(void 0!==d[e].normals)for(m.normals=[],r=0,i=d[e].normals.length;r<i;r++)m.normals.push(d[e].normals[r].clone());this.morphTargets.push(m)}var v=t.morphNormals;for(e=0,n=v.length;e<n;e++){var y={};if(void 0!==v[e].vertexNormals)for(y.vertexNormals=[],r=0,i=v[e].vertexNormals.length;r<i;r++){var g=v[e].vertexNormals[r],b={};b.a=g.a.clone(),b.b=g.b.clone(),b.c=g.c.clone(),y.vertexNormals.push(b)}if(void 0!==v[e].faceNormals)for(y.faceNormals=[],r=0,i=v[e].faceNormals.length;r<i;r++)y.faceNormals.push(v[e].faceNormals[r].clone());this.morphNormals.push(y)}var _=t.skinWeights;for(e=0,n=_.length;e<n;e++)this.skinWeights.push(_[e].clone());var w=t.skinIndices;for(e=0,n=w.length;e<n;e++)this.skinIndices.push(w[e].clone());var x=t.lineDistances;for(e=0,n=x.length;e<n;e++)this.lineDistances.push(x[e]);var E=t.boundingBox;null!==E&&(this.boundingBox=E.clone());var S=t.boundingSphere;return null!==S&&(this.boundingSphere=S.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(O.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(O.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 r=0,i=this.itemSize;r<i;r++)this.array[t+r]=e.array[n+r];return this},copyArray:function(t){return this.array.set(t),this},copyColorsArray:function(t){for(var e=this.array,n=0,r=0,i=t.length;r<i;r++){var o=t[r];void 0===o&&(console.warn("THREE.BufferAttribute.copyColorsArray(): color is undefined",r),o=new g),e[n++]=o.r,e[n++]=o.g,e[n++]=o.b}return this},copyVector2sArray:function(t){for(var e=this.array,n=0,r=0,o=t.length;r<o;r++){var s=t[r];void 0===s&&(console.warn("THREE.BufferAttribute.copyVector2sArray(): vector is undefined",r),s=new i),e[n++]=s.x,e[n++]=s.y}return this},copyVector3sArray:function(t){for(var e=this.array,n=0,r=0,i=t.length;r<i;r++){var o=t[r];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector3sArray(): vector is undefined",r),o=new a),e[n++]=o.x,e[n++]=o.y,e[n++]=o.z}return this},copyVector4sArray:function(t){for(var e=this.array,n=0,r=0,i=t.length;r<i;r++){var o=t[r];void 0===o&&(console.warn("THREE.BufferAttribute.copyVector4sArray(): vector is undefined",r),o=new l),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,r){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this},setXYZW:function(t,e,n,r,i){return t*=this.itemSize,this.array[t+0]=e,this.array[t+1]=n,this.array[t+2]=r,this.array[t+3]=i,this},onUpload:function(t){return this.onUploadCallback=t,this},clone:function(){return new this.constructor(this.array,this.itemSize).copy(this)}}),A.prototype=Object.create(O.prototype),A.prototype.constructor=A,P.prototype=Object.create(O.prototype),P.prototype.constructor=P,R.prototype=Object.create(O.prototype),R.prototype.constructor=R,L.prototype=Object.create(O.prototype),L.prototype.constructor=L,N.prototype=Object.create(O.prototype),N.prototype.constructor=N,I.prototype=Object.create(O.prototype),I.prototype.constructor=I,k.prototype=Object.create(O.prototype),k.prototype.constructor=k,j.prototype=Object.create(O.prototype),j.prototype.constructor=j,D.prototype=Object.create(O.prototype),D.prototype.constructor=D,Object.assign(F.prototype,{computeGroups:function(t){for(var e,n=[],r=void 0,i=t.faces,o=0;o<i.length;o++){var s=i[o];s.materialIndex!==r&&(r=s.materialIndex,void 0!==e&&(e.count=3*o-e.start,n.push(e)),e={start:3*o,materialIndex:r})}void 0!==e&&(e.count=3*o-e.start,n.push(e)),this.groups=n},fromGeometry:function(t){var e,n=t.faces,r=t.vertices,o=t.faceVertexUvs,s=o[0]&&o[0].length>0,a=o[1]&&o[1].length>0,u=t.morphTargets,c=u.length;if(c>0){e=[];for(var l=0;l<c;l++)e[l]=[];this.morphTargets.position=e}var h,p=t.morphNormals,f=p.length;if(f>0){h=[];for(var l=0;l<f;l++)h[l]=[];this.morphTargets.normal=h}var d=t.skinIndices,m=t.skinWeights,v=d.length===r.length,y=m.length===r.length;r.length>0&&0===n.length&&console.error("THREE.DirectGeometry: Faceless geometries are not supported.");for(var l=0;l<n.length;l++){var g=n[l];this.vertices.push(r[g.a],r[g.b],r[g.c]);var b=g.vertexNormals;if(3===b.length)this.normals.push(b[0],b[1],b[2]);else{var _=g.normal;this.normals.push(_,_,_)}var w=g.vertexColors;if(3===w.length)this.colors.push(w[0],w[1],w[2]);else{var x=g.color;this.colors.push(x,x,x)}if(!0===s){var E=o[0][l];void 0!==E?this.uvs.push(E[0],E[1],E[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv ",l),this.uvs.push(new i,new i,new i))}if(!0===a){var E=o[1][l];void 0!==E?this.uvs2.push(E[0],E[1],E[2]):(console.warn("THREE.DirectGeometry.fromGeometry(): Undefined vertexUv2 ",l),this.uvs2.push(new i,new i,new i))}for(var S=0;S<c;S++){var T=u[S].vertices;e[S].push(T[g.a],T[g.b],T[g.c])}for(var S=0;S<f;S++){var M=p[S].vertexNormals[l];h[S].push(M.a,M.b,M.c)}v&&this.skinIndices.push(d[g.a],d[g.b],d[g.c]),y&&this.skinWeights.push(m[g.a],m[g.b],m[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 Gu=1;B.prototype=Object.assign(Object.create(r.prototype),{constructor:B,isBufferGeometry:!0,getIndex:function(){return this.index},setIndex:function(t){Array.isArray(t)?this.index=new(U(t)>65535?k:N)(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 O(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;if(void 0!==n){(new u).getNormalMatrix(t).applyToBufferAttribute(n),n.needsUpdate=!0}return null!==this.boundingBox&&this.computeBoundingBox(),null!==this.boundingSphere&&this.computeBoundingSphere(),this},rotateX:function(){var t=new o;return function(e){return t.makeRotationX(e),this.applyMatrix(t),this}}(),rotateY:function(){var t=new o;return function(e){return t.makeRotationY(e),this.applyMatrix(t),this}}(),rotateZ:function(){var t=new o;return function(e){return t.makeRotationZ(e),this.applyMatrix(t),this}}(),translate:function(){var t=new o;return function(e,n,r){return t.makeTranslation(e,n,r),this.applyMatrix(t),this}}(),scale:function(){var t=new o;return function(e,n,r){return t.makeScale(e,n,r),this.applyMatrix(t),this}}(),lookAt:function(){var t=new E;return function(e){t.lookAt(e),t.updateMatrix(),this.applyMatrix(t.matrix)}}(),center:function(){var t=new a;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 j(3*e.vertices.length,3),r=new j(3*e.colors.length,3);if(this.addAttribute("position",n.copyVector3sArray(e.vertices)),this.addAttribute("color",r.copyColorsArray(e.colors)),e.lineDistances&&e.lineDistances.length===e.vertices.length){var i=new j(e.lineDistances.length,1);this.addAttribute("lineDistance",i.copyArray(e.lineDistances))}null!==e.boundingSphere&&(this.boundingSphere=e.boundingSphere.clone()),null!==e.boundingBox&&
1(this.boundingBox=e.boundingBox.clone())}else t.isMesh&&e&&e.isGeometry&&this.fromGeometry(e);return this},setFromPoints:function(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n];e.push(i.x,i.y,i.z||0)}return this.addAttribute("position",new j(e,3)),this},updateFromObject:function(t){var e=t.geometry;if(t.isMesh){var n=e.__directGeometry;if(!0===e.elementsNeedUpdate&&(n=void 0,e.elementsNeedUpdate=!1),void 0===n)return this.fromGeometry(e);n.verticesNeedUpdate=e.verticesNeedUpdate,n.normalsNeedUpdate=e.normalsNeedUpdate,n.colorsNeedUpdate=e.colorsNeedUpdate,n.uvsNeedUpdate=e.uvsNeedUpdate,n.groupsNeedUpdate=e.groupsNeedUpdate,e.verticesNeedUpdate=!1,e.normalsNeedUpdate=!1,e.colorsNeedUpdate=!1,e.uvsNeedUpdate=!1,e.groupsNeedUpdate=!1,e=n}var r;return!0===e.verticesNeedUpdate&&(r=this.attributes.position,void 0!==r&&(r.copyVector3sArray(e.vertices),r.needsUpdate=!0),e.verticesNeedUpdate=!1),!0===e.normalsNeedUpdate&&(r=this.attributes.normal,void 0!==r&&(r.copyVector3sArray(e.normals),r.needsUpdate=!0),e.normalsNeedUpdate=!1),!0===e.colorsNeedUpdate&&(r=this.attributes.color,void 0!==r&&(r.copyColorsArray(e.colors),r.needsUpdate=!0),e.colorsNeedUpdate=!1),e.uvsNeedUpdate&&(r=this.attributes.uv,void 0!==r&&(r.copyVector2sArray(e.uvs),r.needsUpdate=!0),e.uvsNeedUpdate=!1),e.lineDistancesNeedUpdate&&(r=this.attributes.lineDistance,void 0!==r&&(r.copyArray(e.lineDistances),r.needsUpdate=!0),e.lineDistancesNeedUpdate=!1),e.groupsNeedUpdate&&(e.computeGroups(t.geometry),this.groups=e.groups,e.groupsNeedUpdate=!1),this},fromGeometry:function(t){return t.__directGeometry=(new F).fromGeometry(t),this.fromDirectGeometry(t.__directGeometry)},fromDirectGeometry:function(t){var e=new Float32Array(3*t.vertices.length);if(this.addAttribute("position",new O(e,3).copyVector3sArray(t.vertices)),t.normals.length>0){var n=new Float32Array(3*t.normals.length);this.addAttribute("normal",new O(n,3).copyVector3sArray(t.normals))}if(t.colors.length>0){var r=new Float32Array(3*t.colors.length);this.addAttribute("color",new O(r,3).copyColorsArray(t.colors))}if(t.uvs.length>0){var i=new Float32Array(2*t.uvs.length);this.addAttribute("uv",new O(i,2).copyVector2sArray(t.uvs))}if(t.uvs2.length>0){var o=new Float32Array(2*t.uvs2.length);this.addAttribute("uv2",new O(o,2).copyVector2sArray(t.uvs2))}this.groups=t.groups;for(var s in t.morphTargets){for(var a=[],u=t.morphTargets[s],c=0,l=u.length;c<l;c++){var h=u[c],p=new j(3*h.length,3);a.push(p.copyVector3sArray(h))}this.morphAttributes[s]=a}if(t.skinIndices.length>0){var f=new j(4*t.skinIndices.length,4);this.addAttribute("skinIndex",f.copyVector4sArray(t.skinIndices))}if(t.skinWeights.length>0){var d=new j(4*t.skinWeights.length,4);this.addAttribute("skinWeight",d.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 d);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 d,e=new a;return function(){null===this.boundingSphere&&(this.boundingSphere=new m);var n=this.attributes.position;if(n){var r=this.boundingSphere.center;t.setFromBufferAttribute(n),t.getCenter(r);for(var i=0,o=0,s=n.count;o<s;o++)e.x=n.getX(o),e.y=n.getY(o),e.z=n.getZ(o),i=Math.max(i,r.distanceToSquared(e));this.boundingSphere.radius=Math.sqrt(i),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,n=this.groups;if(e.position){var r=e.position.array;if(void 0===e.normal)this.addAttribute("normal",new O(new Float32Array(r.length),3));else for(var i=e.normal.array,o=0,s=i.length;o<s;o++)i[o]=0;var u,c,l,h=e.normal.array,p=new a,f=new a,d=new a,m=new a,v=new a;
1if(t){var y=t.array;0===n.length&&this.addGroup(0,y.length);for(var g=0,b=n.length;g<b;++g)for(var _=n[g],w=_.start,x=_.count,o=w,s=w+x;o<s;o+=3)u=3*y[o+0],c=3*y[o+1],l=3*y[o+2],p.fromArray(r,u),f.fromArray(r,c),d.fromArray(r,l),m.subVectors(d,f),v.subVectors(p,f),m.cross(v),h[u]+=m.x,h[u+1]+=m.y,h[u+2]+=m.z,h[c]+=m.x,h[c+1]+=m.y,h[c+2]+=m.z,h[l]+=m.x,h[l+1]+=m.y,h[l+2]+=m.z}else for(var o=0,s=r.length;o<s;o+=9)p.fromArray(r,o),f.fromArray(r,o+3),d.fromArray(r,o+6),m.subVectors(d,f),v.subVectors(p,f),m.cross(v),h[o]=m.x,h[o+1]=m.y,h[o+2]=m.z,h[o+3]=m.x,h[o+4]=m.y,h[o+5]=m.z,h[o+6]=m.x,h[o+7]=m.y,h[o+8]=m.z;this.normalizeNormals(),e.normal.needsUpdate=!0}},merge:function(t,e){if(!t||!t.isBufferGeometry)return void console.error("THREE.BufferGeometry.merge(): geometry not an instance of THREE.BufferGeometry.",t);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 r in n)if(void 0!==t.attributes[r])for(var i=n[r],o=i.array,s=t.attributes[r],a=s.array,u=s.itemSize,c=0,l=u*e;c<a.length;c++,l++)o[l]=a[c];return this},normalizeNormals:function(){var t=new a;return function(){for(var e=this.attributes.normal,n=0,r=e.count;n<r;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(){if(null===this.index)return console.warn("THREE.BufferGeometry.toNonIndexed(): Geometry is already non-indexed."),this;var t=new B,e=this.index.array,n=this.attributes;for(var r in n){for(var i=n[r],o=i.array,s=i.itemSize,a=new o.constructor(e.length*s),u=0,c=0,l=0,h=e.length;l<h;l++){u=e[l]*s;for(var p=0;p<s;
vendor: 11,388 bytes, line 1
1p++)a[c++]=o[u++]}t.addAttribute(r,new O(a,s))}for(var f=this.groups,l=0,h=f.length;l<h;l++){var d=f[l];t.addGroup(d.start,d.count,d.materialIndex)}return t},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 r=this.index;if(null!==r){var i=Array.prototype.slice.call(r.array);t.data.index={type:r.array.constructor.name,array:i}}var o=this.attributes;for(var n in o){var s=o[n],i=Array.prototype.slice.call(s.array);t.data.attributes[n]={itemSize:s.itemSize,type:s.array.constructor.name,array:i,normalized:s.normalized}}var a=this.groups;a.length>0&&(t.data.groups=JSON.parse(JSON.stringify(a)));var u=this.boundingSphere;return null!==u&&(t.data.boundingSphere={center:u.center.toArray(),radius:u.radius}),t},clone:function(){return(new B).copy(this)},copy:function(t){var e,n,r;this.index=null,this.attributes={},this.morphAttributes={},this.groups=[],this.boundingBox=null,this.boundingSphere=null,this.name=t.name;var i=t.index;null!==i&&this.setIndex(i.clone());var o=t.attributes;for(e in o){var s=o[e];this.addAttribute(e,s.clone())}var a=t.morphAttributes;for(e in a){var u=[],c=a[e];for(n=0,r=c.length;n<r;n++)u.push(c[n].clone());this.morphAttributes[e]=u}var l=t.groups;for(n=0,r=l.length;n<r;n++){var h=l[n];this.addGroup(h.start,h.count,h.materialIndex)}var p=t.boundingBox;null!==p&&(this.boundingBox=p.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"})}}),z.prototype=Object.create(C.prototype),z.prototype.constructor=z,V.prototype=Object.create(B.prototype),V.prototype.constructor=V,H.prototype=Object.create(C.prototype),H.prototype.constructor=H,G.prototype=Object.create(B.prototype),G.prototype.constructor=G;var Wu=0;W.prototype=Object.assign(Object.create(r.prototype),{constructor:W,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 r=this[e];void 0!==r?r&&r.isColor?r.set(n):r&&r.isVector3&&n&&n.isVector3?r.copy(n):this[e]="overdraw"===e?Number(n):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===vs;else console.warn("THREE.Material: '"+e+"' parameter is undefined.")}},toJSON:function(t){function e(t){var e=[];for(var n in t){var r=t[n];delete r.metadata,e.push(r)}return e}var n=void 0===t||"string"==typeof t;n&&(t={textures:{},images:{}});var r={metadata:{version:4.5,type:"Material",generator:"Material.toJSON"}};if(r.uuid=this.uuid,r.type=this.type,""!==this.name&&(r.name=this.name),this.color&&this.color.isColor&&(r.color=this.color.getHex()),void 0!==this.roughness&&(r.roughness=this.roughness),void 0!==this.metalness&&(r.metalness=this.metalness),this.emissive&&this.emissive.isColor&&(r.emissive=this.emissive.getHex()),1!==this.emissiveIntensity&&(r.emissiveIntensity=this.emissiveIntensity),this.specular&&this.specular.isColor&&(r.specular=this.specular.getHex()),void 0!==this.shininess&&(r.shininess=this.shininess),void 0!==this.clearCoat&&(r.clearCoat=this.clearCoat),void 0!==this.clearCoatRoughness&&(r.clearCoatRoughness=this.clearCoatRoughness),this.map&&this.map.isTexture&&(r.map=this.map.toJSON(t).uuid),this.alphaMap&&this.alphaMap.isTexture&&(r.alphaMap=this.alphaMap.toJSON(t).uuid),this.lightMap&&this.lightMap.isTexture&&(r.lightMap=this.lightMap.toJSON(t).uuid),this.aoMap&&this.aoMap.isTexture&&(r.aoMap=this.aoMap.toJSON(t).uuid,r.aoMapIntensity=this.aoMapIntensity),this.bumpMap&&this.bumpMap.isTexture&&(r.bumpMap=this.bumpMap.toJSON(t).uuid,r.bumpScale=this.bumpScale),this.normalMap&&this.normalMap.isTexture&&(r.normalMap=this.normalMap.toJSON(t).uuid,r.normalMapType=this.normalMapType,r.normalScale=this.normalScale.toArray()),this.displacementMap&&this.displacementMap.isTexture&&(r.displacementMap=this.displacementMap.toJSON(t).uuid,r.displacementScale=this.displacementScale,r.displacementBias=this.displacementBias),this.roughnessMap&&this.roughnessMap.isTexture&&(r.roughnessMap=this.roughnessMap.toJSON(t).uuid),this.metalnessMap&&this.metalnessMap.isTexture&&(r.metalnessMap=this.metalnessMap.toJSON(t).uuid),this.emissiveMap&&this.emissiveMap.isTexture&&(r.emissiveMap=this.emissiveMap.toJSON(t).uuid),this.specularMap&&this.specularMap.isTexture&&(r.specularMap=this.specularMap.toJSON(t).uuid),this.envMap&&this.envMap.isTexture&&(r.envMap=this.envMap.toJSON(t).uuid,r.reflectivity=this.reflectivity),this.gradientMap&&this.gradientMap.isTexture&&(r.gradientMap=this.gradientMap.toJSON(t).uuid),void 0!==this.size&&(r.size=this.size),void 0!==this.sizeAttenuation&&(r.sizeAttenuation=this.sizeAttenuation),this.blending!==xs&&(r.blending=this.blending),!0===this.flatShading&&(r.flatShading=this.flatShading),this.side!==fs&&(r.side=this.side),this.vertexColors!==gs&&(r.vertexColors=this.vertexColors),this.opacity<1&&(r.opacity=this.opacity),!0===this.transparent&&(r.transparent=this.transparent),r.depthFunc=this.depthFunc,r.depthTest=this.depthTest,r.depthWrite=this.depthWrite,0!==this.rotation&&(r.rotation=this.rotation),1!==this.linewidth&&(r.linewidth=this.linewidth),void 0!==this.dashSize&&(r.dashSize=this.dashSize),void 0!==this.gapSize&&(r.gapSize=this.gapSize),void 0!==this.scale&&(r.scale=this.scale),!0===this.dithering&&(r.dithering=!0),this.alphaTest>0&&(r.alphaTest=this.alphaTest),!0===this.premultipliedAlpha&&(r.premultipliedAlpha=this.premultipliedAlpha),!0===this.wireframe&&(r.wireframe=this.wireframe),this.wireframeLinewidth>1&&(r.wireframeLinewidth=this.wireframeLinewidth),"round"!==this.wireframeLinecap&&(r.wireframeLinecap=this.wireframeLinecap),"round"!==this.wireframeLinejoin&&(r.wireframeLinejoin=this.wireframeLinejoin),!0===this.morphTargets&&(r.morphTargets=!0),!0===this.skinning&&(r.skinning=!0),!1===this.visible&&(r.visible=!1),"{}"!==JSON.stringify(this.userData)&&(r.userData=this.userData),n){var i=e(t.textures),o=e(t.images);i.length>0&&(r.textures=i),o.length>0&&(r.images=o)}return r},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.overdraw=t.overdraw,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 r=e.length;n=new Array(r);for(var i=0;i!==r;++i)n[i]=e[i].clone()}return this.clippingPlanes=n,this.shadowSide=t.shadowSide,this},dispose:function(){this.dispatchEvent({type:"dispose"})}}),q.prototype=Object.create(W.prototype),q.prototype.constructor=q,q.prototype.isMeshBasicMaterial=!0,q.prototype.copy=function(t){return W.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},Z.prototype=Object.create(W.prototype),Z.prototype.constructor=Z,Z.prototype.isShaderMaterial=!0,Z.prototype.copy=function(t){return W.prototype.copy.call(this,t),this.fragmentShader=t.fragmentShader,this.vertexShader=t.vertexShader,this.uniforms=Fu.clone(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},Z.prototype.toJSON=function(t){var e=W.prototype.toJSON.call(this,t);return e.uniforms=this.uniforms,e.vertexShader=this.vertexShader,e.fragmentShader=this.fragmentShader,e},Object.assign(X.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 a),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 a;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 a),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 a;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:function(){var t=new a,e=new a,n=new a;return function(r,i,o,s){t.copy(r).add(i).multiplyScalar(.5),e.copy(i).sub(r).normalize(),n.copy(this.origin).sub(t);var a,u,c,l,h=.5*r.distanceTo(i),p=-this.direction.dot(e),f=n.dot(this.direction),d=-n.dot(e),m=n.lengthSq(),v=Math.abs(1-p*p);if(v>0)if(a=p*d-f,u=p*f-d,l=h*v,a>=0)if(u>=-l)if(u<=l){var y=1/v;a*=y,u*=y,c=a*(a+p*u+2*f)+u*(p*a+u+2*d)+m}else u=h,a=Math.max(0,-(p*u+f)),c=-a*a+u*(u+2*d)+m;else u=-h,a=Math.max(0,-(p*u+f)),c=-a*a+u*(u+2*d)+m;else u<=-l?(a=Math.max(0,-(-p*h+f)),u=a>0?-h:Math.min(Math.max(-h,-d),h),c=-a*a+u*(u+2*d)+m):u<=l?(a=0,u=Math.min(Math.max(-h,-d),h),c=u*(u+2*d)+m):(a=Math.max(0,-(p*h+f)),u=a>0?h:Math.min(Math.max(-h,-d),h),c=-a*a+u*(u+2*d)+m);else u=p>0?-h:h,a=Math.max(0,-(p*u+f)),c=-a*a+u*(u+2*d)+m;return o&&o.copy(this.direction).multiplyScalar(a).add(this.origin),s&&s.copy(e).multiplyScalar(u).add(t),c}}(),intersectSphere:function(){var t=new a;return function(e,n){t.subVectors(e.center,this.origin);
vendor: 9,792 bytes, line 1
1var r=t.dot(this.direction),i=t.dot(t)-r*r,o=e.radius*e.radius;if(i>o)return null;var s=Math.sqrt(o-i),a=r-s,u=r+s;return a<0&&u<0?null:a<0?this.at(u,n):this.at(a,n)}}(),intersectsSphere:function(t){return this.distanceToPoint(t.center)<=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,r,i,o,s,a,u=1/this.direction.x,c=1/this.direction.y,l=1/this.direction.z,h=this.origin;return u>=0?(n=(t.min.x-h.x)*u,r=(t.max.x-h.x)*u):(n=(t.max.x-h.x)*u,r=(t.min.x-h.x)*u),c>=0?(i=(t.min.y-h.y)*c,o=(t.max.y-h.y)*c):(i=(t.max.y-h.y)*c,o=(t.min.y-h.y)*c),n>o||i>r?null:((i>n||n!==n)&&(n=i),(o<r||r!==r)&&(r=o),l>=0?(s=(t.min.z-h.z)*l,a=(t.max.z-h.z)*l):(s=(t.max.z-h.z)*l,a=(t.min.z-h.z)*l),n>a||s>r?null:((s>n||n!==n)&&(n=s),(a<r||r!==r)&&(r=a),r<0?null:this.at(n>=0?n:r,e)))},intersectsBox:function(){var t=new a;return function(e){return null!==this.intersectBox(e,t)}}(),intersectTriangle:function(){var t=new a,e=new a,n=new a,r=new a;return function(i,o,s,a,u){e.subVectors(o,i),n.subVectors(s,i),r.crossVectors(e,n);var c,l=this.direction.dot(r);if(l>0){if(a)return null;c=1}else{if(!(l<0))return null;c=-1,l=-l}t.subVectors(this.origin,i);var h=c*this.direction.dot(n.crossVectors(t,n));if(h<0)return null;var p=c*this.direction.dot(e.cross(t));if(p<0)return null;if(h+p>l)return null;var f=-c*t.dot(r);return f<0?null:this.at(f/l,u)}}(),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(K.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 a),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 a),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 a),this.delta(e).multiplyScalar(t).add(this.start)},closestPointToPointParameter:function(){var t=new a,e=new a;return function(n,r){t.subVectors(n,this.start),e.subVectors(this.end,this.start);var i=e.dot(e),o=e.dot(t),s=o/i;return r&&(s=ku.clamp(s,0,1)),s}}(),closestPointToPoint:function(t,e,n){var r=this.closestPointToPointParameter(t,e);return void 0===n&&(console.warn("THREE.Line3: .closestPointToPoint() target is now required"),n=new a),this.delta(n).multiplyScalar(r).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)}}),Object.assign(Y,{getNormal:function(){var t=new a;return function(e,n,r,i){void 0===i&&(console.warn("THREE.Triangle: .getNormal() target is now required"),i=new a),i.subVectors(r,n),t.subVectors(e,n),i.cross(t);var o=i.lengthSq();return o>0?i.multiplyScalar(1/Math.sqrt(o)):i.set(0,0,0)}}(),getBarycoord:function(){var t=new a,e=new a,n=new a;return function(r,i,o,s,u){t.subVectors(s,i),e.subVectors(o,i),n.subVectors(r,i);var c=t.dot(t),l=t.dot(e),h=t.dot(n),p=e.dot(e),f=e.dot(n),d=c*p-l*l;if(void 0===u&&(console.warn("THREE.Triangle: .getBarycoord() target is now required"),u=new a),0===d)return u.set(-2,-1,-1);var m=1/d,v=(p*h-l*f)*m,y=(c*f-l*h)*m;return u.set(1-v-y,y,v)}}(),containsPoint:function(){var t=new a;return function(e,n,r,i){return Y.getBarycoord(e,n,r,i,t),t.x>=0&&t.y>=0&&t.x+t.y<=1}}()}),Object.assign(Y.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,r){return this.a.copy(t[e]),this.b.copy(t[n]),this.c.copy(t[r]),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 a,e=new a;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 a),t.addVectors(this.a,this.b).add(this.c).multiplyScalar(1/3)},getNormal:function(t){return Y.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 a),t.setFromCoplanarPoints(this.a,this.b,this.c)},getBarycoord:function(t,e){return Y.getBarycoord(t,this.a,this.b,this.c,e)},containsPoint:function(t){return Y.containsPoint(t,this.a,this.b,this.c)},intersectsBox:function(t){return t.intersectsTriangle(this)},closestPointToPoint:function(){var t=new v,e=[new K,new K,new K],n=new a,r=new a;return function(i,o){void 0===o&&(console.warn("THREE.Triangle: .closestPointToPoint() target is now required"),o=new a);var s=1/0;if(t.setFromCoplanarPoints(this.a,this.b,this.c),t.projectPoint(i,n),!0===this.containsPoint(n))o.copy(n);else{e[0].set(this.a,this.b),e[1].set(this.b,this.c),e[2].set(this.c,this.a);for(var u=0;u<e.length;u++){e[u].closestPointToPoint(n,!0,r);var c=n.distanceToSquared(r);c<s&&(s=c,o.copy(r))}}return o}}(),equals:function(t){return t.a.equals(this.a)&&t.b.equals(this.b)&&t.c.equals(this.c)}}),J.prototype=Object.assign(Object.create(E.prototype),{constructor:J,isMesh:!0,setDrawMode:function(t){this.drawMode=t},copy:function(t){return E.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,r=this.geometry;if(r.isBufferGeometry){var i=r.morphAttributes,o=Object.keys(i);if(o.length>0){var s=i[o[0]];if(void 0!==s)for(this.morphTargetInfluences=[],this.morphTargetDictionary={},t=0,e=s.length;t<e;t++)n=s[t].name||String(t),this.morphTargetInfluences.push(0),this.morphTargetDictionary[n]=t}}else{var a=r.morphTargets;if(void 0!==a&&a.length>0)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}},raycast:function(){function t(t,e,n,r,i,o,s){return Y.getBarycoord(t,e,n,r,b),i.multiplyScalar(b.x),o.multiplyScalar(b.y),s.multiplyScalar(b.z),i.add(o).add(s),i.clone()}function e(t,e,n,r,i,o,s,a){if(null===(e.side===ds?r.intersectTriangle(s,o,i,!0,a):r.intersectTriangle(i,o,s,e.side!==ms,a)))return null;w.copy(a),w.applyMatrix4(t.matrixWorld);var u=n.ray.origin.distanceTo(w);return u<n.near||u>n.far?null:{distance:u,point:w.clone(),object:t}}function n(n,r,i,o,s,a,u,p,f){c.fromBufferAttribute(s,u),l.fromBufferAttribute(s,p),h.fromBufferAttribute(s,f);var d=e(n,r,i,o,c,l,h,_);if(d){a&&(v.fromBufferAttribute(a,u),y.fromBufferAttribute(a,p),g.fromBufferAttribute(a,f),d.uv=t(_,c,l,h,v,y,g));var m=new M(u,p,f);Y.getNormal(c,l,h,m.normal),d.face=m}return d}var r=new o,s=new X,u=new m,c=new a,l=new a,h=new a,p=new a,f=new a,d=new a,v=new i,y=new i,g=new i,b=new a,_=new a,w=new a;return function(i,o){var a=this.geometry,m=this.material,b=this.matrixWorld;if(void 0!==m&&(null===a.boundingSphere&&a.computeBoundingSphere(),u.copy(a.boundingSphere),u.applyMatrix4(b),!1!==i.ray.intersectsSphere(u)&&(r.getInverse(b),s.copy(i.ray).applyMatrix4(r),null===a.boundingBox||!1!==s.intersectsBox(a.boundingBox)))){var w;if(a.isBufferGeometry){var x,E,S,T,M,C,O,A,P,R,L,N=a.index,I=a.attributes.position,k=a.attributes.uv,j=a.groups,D=a.drawRange;if(null!==N)if(Array.isArray(m))for(T=0,C=j.length;T<C;T++)for(A=j[T],P=m[A.materialIndex],R=Math.max(A.start,D.start),L=Math.min(A.start+A.count,D.start+D.count),M=R,O=L;M<O;M+=3)x=N.getX(T),E=N.getX(T+1),S=N.getX(T+2),(w=n(this,P,i,s,I,k,x,E,S))&&(w.faceIndex=Math.floor(T/3),o.push(w));else for(R=Math.max(0,D.start),L=Math.min(N.count,D.start+D.count),T=R,C=L;T<C;T+=3)x=N.getX(T),E=N.getX(T+1),S=N.getX(T+2),(w=n(this,m,i,s,I,k,x,E,S))&&(w.faceIndex=Math.floor(T/3),o.push(w));else if(void 0!==I)if(Array.isArray(m))for(T=0,C=j.length;T<C;T++)for(A=j[T],P=m[A.materialIndex],R=Math.max(A.start,D.start),L=Math.min(A.start+A.count,D.start+D.count),M=R,O=L;M<O;M+=3)x=M,E=M+1,S=M+2,(w=n(this,P,i,s,I,k,x,E,S))&&(w.faceIndex=Math.floor(T/3),o.push(w));else for(R=Math.max(0,D.start),L=Math.min(I.count,D.start+D.count),T=R,C=L;T<C;T+=3)x=T,E=T+1,S=T+2,(w=n(this,m,i,s,I,k,x,E,S))&&(w.faceIndex=Math.floor(T/3),o.push(w))}else if(a.isGeometry){var F,U,B,z,V=Array.isArray(m),H=a.vertices,G=a.faces,W=a.faceVertexUvs[0];W.length>0&&(z=W);for(var q=0,Z=G.length;q<Z;q++){var X=G[q],K=V?m[X.materialIndex]:m;if(void 0!==K){if(F=H[X.a],U=H[X.b],B=H[X.c],!0===K.morphTargets){var Y=a.morphTargets,J=this.morphTargetInfluences;c.set(0,0,0),l.set(0,0,0),h.set(0,0,0);for(var Q=0,$=Y.length;Q<$;Q++){var tt=J[Q];if(0!==tt){var et=Y[Q].vertices;c.addScaledVector(p.subVectors(et[X.a],F),tt),l.addScaledVector(f.subVectors(et[X.b],U),tt),h.addScaledVector(d.subVectors(et[X.c],B),tt)}}c.add(F),l.add(U),h.add(B),F=c,U=l,B=h}if(w=e(this,K,i,s,F,U,B,_)){if(z&&z[q]){var nt=z[q];
1v.copy(nt[0]),y.copy(nt[1]),g.copy(nt[2]),w.uv=t(_,F,U,B,v,y,g)}w.face=X,w.faceIndex=q,o.push(w)}}}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),ct.prototype=Object.create(c.prototype),ct.prototype.constructor=ct,ct.prototype.isCubeTexture=!0,Object.defineProperty(ct.prototype,"images",{get:function(){return this.image},set:function(t){this.image=t}});var qu=new c,Zu=new ct,Xu=[],Ku=[],Yu=new Float32Array(16),Ju=new Float32Array(9),Qu=new Float32Array(4);zt.prototype.updateCache=function(t){var e=this.cache;t instanceof Float32Array&&e.length!==t.length&&(this.cache=new Float32Array(t.length)),ft(e,t)},Vt.prototype.setValue=function(t,e){for(var n=this.seq,r=0,i=n.length;r!==i;++r){var o=n[r];o.setValue(t,e[o.id])}};var $u=/([\w\d_]+)(\])?(\[|\.)?/g;Wt.prototype.setValue=function(t,e,n){var r=this.map[e];void 0!==r&&r.setValue(t,n,this.renderer)},Wt.prototype.setOptional=function(t,e,n){var r=e[n];void 0!==r&&this.setValue(t,n,r)},Wt.upload=function(t,e,n,r){for(var i=0,o=e.length;i!==o;++i){var s=e[i],a=n[s.id];!1!==a.needsUpdate&&s.setValue(t,a.value,r)}},Wt.seqWithValue=function(t,e){for(var n=[],r=0,i=t.length;r!==i;++r){var o=t[r];o.id in e&&n.push(o)}return n};var tc=0,ec=0;ye.prototype=Object.create(W.prototype),ye.prototype.constructor=ye,ye.prototype.isMeshDepthMaterial=!0,ye.prototype.copy=function(t){return W.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},ge.prototype=Object.create(W.prototype),ge.prototype.constructor=ge,ge.prototype.isMeshDistanceMaterial=!0,ge.prototype.copy=function(t){return W.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},_e.prototype=Object.create(c.prototype),_e.prototype.constructor=_e,_e.prototype.isCanvasTexture=!0,Te.prototype=Object.assign(Object.create(E.prototype),{constructor:Te,isGroup:!0}),Me.prototype=Object.assign(Object.create(S.prototype),{constructor:Me,isPerspectiveCamera:!0,copy:function(t,e){return S.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*ku.RAD2DEG*Math.atan(e),this.updateProjectionMatrix()},getFocalLength:function(){var t=Math.tan(.5*ku.DEG2RAD*this.fov);return.5*this.getFilmHeight()/t},getEffectiveFOV:function(){return 2*ku.RAD2DEG*Math.atan(Math.tan(.5*ku.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)}
vendor: 9,222 bytes, line 1
1,setViewOffset:function(t,e,n,r,i,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=r,this.view.width=i,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*ku.DEG2RAD*this.fov)/this.zoom,n=2*e,r=this.aspect*n,i=-.5*r,o=this.view;if(null!==this.view&&this.view.enabled){var s=o.fullWidth,a=o.fullHeight;i+=o.offsetX*r/s,e-=o.offsetY*n/a,r*=o.width/s,n*=o.height/a}var u=this.filmOffset;0!==u&&(i+=t*u/this.getFilmWidth()),this.projectionMatrix.makePerspective(i,i+r,e,e-n,t,this.far)},toJSON:function(t){var e=E.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}}),Ce.prototype=Object.assign(Object.create(Me.prototype),{constructor:Ce,isArrayCamera:!0}),Re.prototype.isFogExp2=!0,Re.prototype.clone=function(){return new Re(this.color,this.density)},Re.prototype.toJSON=function(){return{type:"FogExp2",color:this.color.getHex(),density:this.density}},Le.prototype.isFog=!0,Le.prototype.clone=function(){return new Le(this.color,this.near,this.far)},Le.prototype.toJSON=function(){return{type:"Fog",color:this.color.getHex(),near:this.near,far:this.far}},Ne.prototype=Object.assign(Object.create(E.prototype),{constructor:Ne,copy:function(t,e){return E.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=E.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}}),Ie.prototype=Object.create(W.prototype),Ie.prototype.constructor=Ie,Ie.prototype.isSpriteMaterial=!0,Ie.prototype.copy=function(t){return W.prototype.copy.call(this,t),this.color.copy(t.color),this.map=t.map,this.rotation=t.rotation,this},ke.prototype=Object.assign(Object.create(E.prototype),{constructor:ke,isSprite:!0,raycast:function(){function t(t,e,n,r,i,o){s.subVectors(t,n).addScalar(.5).multiply(r),void 0!==i?(u.x=o*s.x-i*s.y,u.y=i*s.x+o*s.y):u.copy(s),t.copy(e),t.x+=u.x,t.y+=u.y,t.applyMatrix4(c)}var e=new a,n=new a,r=new a,s=new i,u=new i,c=new o,l=new a,h=new a,p=new a;return function(i,o){n.setFromMatrixScale(this.matrixWorld),c.getInverse(this.modelViewMatrix).premultiply(this.matrixWorld),r.setFromMatrixPosition(this.modelViewMatrix);var s,a,u=this.material.rotation;0!==u&&(a=Math.cos(u),s=Math.sin(u));var f=this.center;t(l.set(-.5,-.5,0),r,f,n,s,a),t(h.set(.5,-.5,0),r,f,n,s,a),t(p.set(.5,.5,0),r,f,n,s,a);var d=i.ray.intersectTriangle(l,h,p,!1,e);if(null!==d||(t(h.set(-.5,.5,0),r,f,n,s,a),null!==(d=i.ray.intersectTriangle(l,p,h,!1,e)))){var m=i.ray.origin.distanceTo(e);m<i.near||m>i.far||o.push({distance:m,point:e.clone(),face:null,object:this})}}}(),clone:function(){return new this.constructor(this.material).copy(this)},copy:function(t){return E.prototype.copy.call(this,t),void 0!==t.center&&this.center.copy(t.center),this}}),je.prototype=Object.assign(Object.create(E.prototype),{constructor:je,copy:function(t){E.prototype.copy.call(this,t,!1);for(var e=t.levels,n=0,r=e.length;n<r;n++){var i=e[n];this.addLevel(i.object.clone(),i.distance)}return this},addLevel:function(t,e){void 0===e&&(e=0),e=Math.abs(e);for(var n=this.levels,r=0;r<n.length&&!(e<n[r].distance);r++);n.splice(r,0,{distance:e,object:t}),this.add(t)},getObjectForDistance:function(t){for(var e=this.levels,n=1,r=e.length;n<r&&!(t<e[n].distance);n++);return e[n-1].object},raycast:function(){var t=new a;return function(e,n){t.setFromMatrixPosition(this.matrixWorld);var r=e.ray.origin.distanceTo(t);this.getObjectForDistance(r).raycast(e,n)}}(),update:function(){var t=new a,e=new a;return function(n){var r=this.levels;if(r.length>1){t.setFromMatrixPosition(n.matrixWorld),e.setFromMatrixPosition(this.matrixWorld);var i=t.distanceTo(e);r[0].object.visible=!0;for(var o=1,s=r.length;o<s&&i>=r[o].distance;o++)r[o-1].object.visible=!1,r[o].object.visible=!0;for(;o<s;o++)r[o].object.visible=!1}}}(),toJSON:function(t){var e=E.prototype.toJSON.call(this,t);e.object.levels=[];for(var n=this.levels,r=0,i=n.length;r<i;r++){var o=n[r];e.object.levels.push({object:o.object.uuid,distance:o.distance})}return e}}),Object.assign(De.prototype,{calculateInverses:function(){this.boneInverses=[];for(var t=0,e=this.bones.length;t<e;t++){var n=new o;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:function(){var t=new o,e=new o;return function(){for(var n=this.bones,r=this.boneInverses,i=this.boneMatrices,o=this.boneTexture,s=0,a=n.length;s<a;s++){var u=n[s]?n[s].matrixWorld:e;t.multiplyMatrices(u,r[s]),t.toArray(i,16*s)}void 0!==o&&(o.needsUpdate=!0)}}(),clone:function(){return new De(this.bones,this.boneInverses)},getBoneByName:function(t){for(var e=0,n=this.bones.length;e<n;e++){var r=this.bones[e];if(r.name===t)return r}}}),Fe.prototype=Object.assign(Object.create(E.prototype),{constructor:Fe,isBone:!0}),Ue.prototype=Object.assign(Object.create(J.prototype),{constructor:Ue,isSkinnedMesh:!0,initBones:function(){var t,e,n,r,i=[];if(this.geometry&&void 0!==this.geometry.bones){for(n=0,r=this.geometry.bones.length;n<r;n++)e=this.geometry.bones[n],t=new Fe,i.push(t),t.name=e.name,t.position.fromArray(e.pos),t.quaternion.fromArray(e.rotq),void 0!==e.scl&&t.scale.fromArray(e.scl);for(n=0,r=this.geometry.bones.length;n<r;n++)e=this.geometry.bones[n],-1!==e.parent&&null!==e.parent&&void 0!==i[e.parent]?i[e.parent].add(i[n]):this.add(i[n])}return this.updateMatrixWorld(!0),i},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(){var t,e;if(this.geometry&&this.geometry.isGeometry)for(e=0;e<this.geometry.skinWeights.length;e++){var n=this.geometry.skinWeights[e];t=1/n.manhattanLength(),t!==1/0?n.multiplyScalar(t):n.set(1,0,0,0)}else if(this.geometry&&this.geometry.isBufferGeometry){var r=new l,i=this.geometry.attributes.skinWeight;for(e=0;e<i.count;e++)r.x=i.getX(e),r.y=i.getY(e),r.z=i.getZ(e),r.w=i.getW(e),t=1/r.manhattanLength(),t!==1/0?r.multiplyScalar(t):r.set(1,0,0,0),i.setXYZW(e,r.x,r.y,r.z,r.w)}},updateMatrixWorld:function(t){J.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)}}),Be.prototype=Object.create(W.prototype),Be.prototype.constructor=Be,Be.prototype.isLineBasicMaterial=!0,Be.prototype.copy=function(t){return W.prototype.copy.call(this,t),this.color.copy(t.color),this.linewidth=t.linewidth,this.linecap=t.linecap,this.linejoin=t.linejoin,this},ze.prototype=Object.assign(Object.create(E.prototype),{constructor:ze,isLine:!0,computeLineDistances:function(){var t=new a,e=new a;return function(){var n=this.geometry;if(n.isBufferGeometry)if(null===n.index){for(var r=n.attributes.position,i=[0],o=1,s=r.count;o<s;o++)t.fromBufferAttribute(r,o-1),e.fromBufferAttribute(r,o),i[o]=i[o-1],i[o]+=t.distanceTo(e);n.addAttribute("lineDistance",new j(i,1))}else console.warn("THREE.Line.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(n.isGeometry){var a=n.vertices,i=n.lineDistances;i[0]=0;for(var o=1,s=a.length;o<s;o++)i[o]=i[o-1],i[o]+=a[o-1].distanceTo(a[o])}return this}}(),raycast:function(){var t=new o,e=new X,n=new m;return function(r,i){var o=r.linePrecision,s=o*o,u=this.geometry,c=this.matrixWorld;if(null===u.boundingSphere&&u.computeBoundingSphere(),n.copy(u.boundingSphere),n.applyMatrix4(c),!1!==r.ray.intersectsSphere(n)){t.getInverse(c),e.copy(r.ray).applyMatrix4(t);var l=new a,h=new a,p=new a,f=new a,d=this&&this.isLineSegments?2:1;if(u.isBufferGeometry){var m=u.index,v=u.attributes,y=v.position.array;if(null!==m)for(var g=m.array,b=0,_=g.length-1;b<_;b+=d){var w=g[b],x=g[b+1];l.fromArray(y,3*w),h.fromArray(y,3*x);var E=e.distanceSqToSegment(l,h,f,p);if(!(E>
1s)){f.applyMatrix4(this.matrixWorld);var S=r.ray.origin.distanceTo(f);S<r.near||S>r.far||i.push({distance:S,point:p.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}else for(var b=0,_=y.length/3-1;b<_;b+=d){l.fromArray(y,3*b),h.fromArray(y,3*b+3);var E=e.distanceSqToSegment(l,h,f,p);if(!(E>s)){f.applyMatrix4(this.matrixWorld);var S=r.ray.origin.distanceTo(f);S<r.near||S>r.far||i.push({distance:S,point:p.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}else if(u.isGeometry)for(var T=u.vertices,M=T.length,b=0;b<M-1;b+=d){var E=e.distanceSqToSegment(T[b],T[b+1],f,p);if(!(E>s)){f.applyMatrix4(this.matrixWorld);var S=r.ray.origin.distanceTo(f);S<r.near||S>r.far||i.push({distance:S,point:p.clone().applyMatrix4(this.matrixWorld),index:b,face:null,faceIndex:null,object:this})}}}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),Ve.prototype=Object.assign(Object.create(ze.prototype),{constructor:Ve,isLineSegments:!0,computeLineDistances:function(){var t=new a,e=new a;return function(){var n=this.geometry;if(n.isBufferGeometry)if(null===n.index){for(var r=n.attributes.position,i=[],o=0,s=r.count;o<s;o+=2)t.fromBufferAttribute(r,o),e.fromBufferAttribute(r,o+1),i[o]=0===o?0:i[o-1],i[o+1]=i[o]+t.distanceTo(e);n.addAttribute("lineDistance",new j(i,1))}else console.warn("THREE.LineSegments.computeLineDistances(): Computation only possible with non-indexed BufferGeometry.");else if(n.isGeometry)for(var a=n.vertices,i=n.lineDistances,o=0,s=a.length;o<s;o+=2)t.copy(a[o]),e.copy(a[o+1]),i[o]=0===o?0:i[o-1],i[o+1]=i[o]+t.distanceTo(e);return this}}()}),He.prototype=Object.assign(Object.create(ze.prototype),{constructor:He,isLineLoop:!0}),Ge.prototype=Object.create(W.prototype),Ge.prototype.constructor=Ge,Ge.prototype.isPointsMaterial=!0,Ge.prototype.copy=function(t){return W.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},We.prototype=Object.assign(Object.create(E.prototype),{constructor:We,isPoints:!0,raycast:function(){var t=new o,e=new X,n=new m;return function(r,i){function o(t,n){var o=e.distanceSqToPoint(t);if(o<p){e.closestPointToPoint(t,d),d.applyMatrix4(c);var a=r.ray.origin.distanceTo(d);if(a<r.near||a>r.far)return;i.push({distance:a,distanceToRay:Math.sqrt(o),point:d.clone(),index:n,face:null,object:s})}}var s=this,u=this.geometry,c=this.matrixWorld,l=r.params.Points.threshold;if(null===u.boundingSphere&&u.computeBoundingSphere(),n.copy(u.boundingSphere),n.applyMatrix4(c),n.radius+=l,!1!==r.ray.intersectsSphere(n)){t.getInverse(c),e.copy(r.ray).applyMatrix4(t);var h=l/((this.scale.x+this.scale.y+this.scale.z)/3),p=h*h,f=new a,d=new a;if(u.isBufferGeometry){var m=u.index,v=u.attributes,y=v.position.array;if(null!==m)for(var g=m.array,b=0,_=g.length;b<_;b++){var w=g[b];f.fromArray(y,3*w),o(f,w)}else for(var b=0,x=y.length/3;b<x;b++)f.fromArray(y,3*b),o(f,b)}else for(var E=u.vertices,b=0,x=E.length;b<x;b++)o(E[b],b)}}}(),clone:function(){return new this.constructor(this.geometry,this.material).copy(this)}}),qe.prototype=Object.assign(Object.create(c.prototype),{constructor:qe,isVideoTexture:!0,update:function(){var t=this.image;t.readyState>=t.HAVE_CURRENT_DATA&&(this.needsUpdate=!0)}}),Ze.prototype=Object.create(c.prototype),Ze.prototype.constructor=Ze,Ze.prototype.isCompressedTexture=!0,Xe.prototype=Object.create(c.prototype),Xe.prototype.constructor=Xe,Xe.prototype.isDepthTexture=!0,Ke.prototype=Object.create(B.prototype),Ke.prototype.constructor=Ke,Ye.prototype=Object.create(C.prototype),Ye.prototype.constructor=Ye,Je.prototype=Object.create(B.prototype),Je.prototype.constructor=Je,Qe.prototype=Object.create(C.prototype),Qe.prototype.constructor=Qe,$e.prototype=Object.create(B.prototype),$e.prototype.constructor=$e,tn.prototype=Object.create(C.prototype),tn.prototype.constructor=tn,en.prototype=Object.create($e.prototype),en.prototype.constructor=en,nn.prototype=Object.create(C.prototype),nn.prototype.constructor=nn,rn.prototype=Object.create($e.prototype),rn.prototype.constructor=rn,on.prototype=Object.create(C.prototype),on.prototype.constructor=on,sn.prototype=Object.create($e.prototype),sn.prototype.constructor=sn,an.prototype=Object.create(C.prototype),an.prototype.constructor=an,un.prototype=Object.create($e.prototype),un.prototype.constructor=un,cn.prototype=Object.create(C.prototype),cn.prototype.constructor=cn,ln.prototype=Object.create(B.prototype),ln.prototype.constructor=ln,hn.prototype=Object.create(C.prototype),hn.prototype.constructor=hn,pn.prototype=Object.create(B.prototype),pn.prototype.constructor=pn,fn.prototype=Object.create(C.prototype),fn.prototype.constructor=fn,dn.prototype=Object.create(B.prototype),dn.prototype.constructor=dn;var nc={triangulate:function(t,e,n){n=n||2;var r=e&&e.length,i=r?e[0]*n:t.length,o=mn(t,0,i,n,!0),s=[];if(!o)return s;var a,u,c,l,h,p,f;if(r&&(o=xn(t,e,o,n)),t.length>80*n){a=c=t[0],u=l=t[1];for(var d=n;d<i;d+=n)h=t[d],p=t[d+1],h<a&&(a=h),p<u&&(u=p),h>c&&(c=h),p>l&&(l=p);f=Math.max(c-a,l-u),f=0!==f?1/f:0}return yn(o,s,n,a,u,f),s}},rc={area:function(t){for(var e=t.length,n=0,r=e-1,i=0;i<e;r=i++)n+=t[r].x*t[i].y-t[i].x*t[r].y;return.5*n},isClockWise:function(t){return rc.area(t)<0},triangulateShape:function(t,e){var n=[],r=[],i=[];Hn(t),Gn(n,t);var o=t.length;e.forEach(Hn);for(var s=0;s<e.length;s++)r.push(o),o+=e[s].length,Gn(n,e[s]);for(var a=nc.triangulate(n,r),s=0;s<a.length;s+=3)i.push(a.slice(s,s+3));return i}};Wn.prototype=Object.create(C.prototype),Wn.prototype.constructor=Wn,Wn.prototype.toJSON=function(){var t=C.prototype.toJSON.call(this);return Zn(this.parameters.shapes,this.parameters.options,t)},qn.prototype=Object.create(B.prototype),qn.prototype.constructor=qn,qn.prototype.toJSON=function(){var t=B.prototype.toJSON.call(this);return Zn(this.parameters.shapes,this.parameters.options,t)};
vendor: 16,740 bytes, line 1
1var ic={generateTopUV:function(t,e,n,r,o){var s=e[3*n],a=e[3*n+1],u=e[3*r],c=e[3*r+1],l=e[3*o],h=e[3*o+1];return[new i(s,a),new i(u,c),new i(l,h)]},generateSideWallUV:function(t,e,n,r,o,s){var a=e[3*n],u=e[3*n+1],c=e[3*n+2],l=e[3*r],h=e[3*r+1],p=e[3*r+2],f=e[3*o],d=e[3*o+1],m=e[3*o+2],v=e[3*s],y=e[3*s+1],g=e[3*s+2];return Math.abs(u-h)<.01?[new i(a,1-c),new i(l,1-p),new i(f,1-m),new i(v,1-g)]:[new i(u,1-c),new i(h,1-p),new i(d,1-m),new i(y,1-g)]}};Xn.prototype=Object.create(C.prototype),Xn.prototype.constructor=Xn,Kn.prototype=Object.create(qn.prototype),Kn.prototype.constructor=Kn,Yn.prototype=Object.create(C.prototype),Yn.prototype.constructor=Yn,Jn.prototype=Object.create(B.prototype),Jn.prototype.constructor=Jn,Qn.prototype=Object.create(C.prototype),Qn.prototype.constructor=Qn,$n.prototype=Object.create(B.prototype),$n.prototype.constructor=$n,tr.prototype=Object.create(C.prototype),tr.prototype.constructor=tr,er.prototype=Object.create(B.prototype),er.prototype.constructor=er,nr.prototype=Object.create(C.prototype),nr.prototype.constructor=nr,nr.prototype.toJSON=function(){var t=C.prototype.toJSON.call(this);return ir(this.parameters.shapes,t)},rr.prototype=Object.create(B.prototype),rr.prototype.constructor=rr,rr.prototype.toJSON=function(){var t=B.prototype.toJSON.call(this);return ir(this.parameters.shapes,t)},or.prototype=Object.create(B.prototype),or.prototype.constructor=or,sr.prototype=Object.create(C.prototype),sr.prototype.constructor=sr,ar.prototype=Object.create(B.prototype),ar.prototype.constructor=ar,ur.prototype=Object.create(sr.prototype),ur.prototype.constructor=ur,cr.prototype=Object.create(ar.prototype),cr.prototype.constructor=cr,lr.prototype=Object.create(C.prototype),lr.prototype.constructor=lr,hr.prototype=Object.create(B.prototype),hr.prototype.constructor=hr;var oc=Object.freeze({WireframeGeometry:Ke,ParametricGeometry:Ye,ParametricBufferGeometry:Je,TetrahedronGeometry:tn,TetrahedronBufferGeometry:en,OctahedronGeometry:nn,OctahedronBufferGeometry:rn,IcosahedronGeometry:on,IcosahedronBufferGeometry:sn,DodecahedronGeometry:an,DodecahedronBufferGeometry:un,PolyhedronGeometry:Qe,PolyhedronBufferGeometry:$e,TubeGeometry:cn,TubeBufferGeometry:ln,TorusKnotGeometry:hn,TorusKnotBufferGeometry:pn,TorusGeometry:fn,TorusBufferGeometry:dn,TextGeometry:Xn,TextBufferGeometry:Kn,SphereGeometry:Yn,SphereBufferGeometry:Jn,RingGeometry:Qn,RingBufferGeometry:$n,PlaneGeometry:H,PlaneBufferGeometry:G,LatheGeometry:tr,LatheBufferGeometry:er,ShapeGeometry:nr,ShapeBufferGeometry:rr,ExtrudeGeometry:Wn,ExtrudeBufferGeometry:qn,EdgesGeometry:or,ConeGeometry:ur,ConeBufferGeometry:cr,CylinderGeometry:sr,CylinderBufferGeometry:ar,CircleGeometry:lr,CircleBufferGeometry:hr,BoxGeometry:z,BoxBufferGeometry:V});pr.prototype=Object.create(W.prototype),pr.prototype.constructor=pr,pr.prototype.isShadowMaterial=!0,pr.prototype.copy=function(t){return W.prototype.copy.call(this,t),this.color.copy(t.color),this},fr.prototype=Object.create(Z.prototype),fr.prototype.constructor=fr,fr.prototype.isRawShaderMaterial=!0,dr.prototype=Object.create(W.prototype),dr.prototype.constructor=dr,dr.prototype.isMeshStandardMaterial=!0,dr.prototype.copy=function(t){return W.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},mr.prototype=Object.create(dr.prototype),mr.prototype.constructor=mr,mr.prototype.isMeshPhysicalMaterial=!0,mr.prototype.copy=function(t){return dr.prototype.copy.call(this,t),this.defines={PHYSICAL:""},this.reflectivity=t.reflectivity,this.clearCoat=t.clearCoat,this.clearCoatRoughness=t.clearCoatRoughness,this},vr.prototype=Object.create(W.prototype),vr.prototype.constructor=vr,vr.prototype.isMeshPhongMaterial=!0,vr.prototype.copy=function(t){return W.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},yr.prototype=Object.create(vr.prototype),yr.prototype.constructor=yr,yr.prototype.isMeshToonMaterial=!0,yr.prototype.copy=function(t){return vr.prototype.copy.call(this,t),this.gradientMap=t.gradientMap,this},gr.prototype=Object.create(W.prototype),gr.prototype.constructor=gr,gr.prototype.isMeshNormalMaterial=!0,gr.prototype.copy=function(t){return W.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},br.prototype=Object.create(W.prototype),br.prototype.constructor=br,br.prototype.isMeshLambertMaterial=!0,br.prototype.copy=function(t){return W.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},_r.prototype=Object.create(Be.prototype),_r.prototype.constructor=_r,_r.prototype.isLineDashedMaterial=!0,_r.prototype.copy=function(t){return Be.prototype.copy.call(this,t),this.scale=t.scale,this.dashSize=t.dashSize,this.gapSize=t.gapSize,this};var sc=Object.freeze({ShadowMaterial:pr,SpriteMaterial:Ie,RawShaderMaterial:fr,ShaderMaterial:Z,PointsMaterial:Ge,MeshPhysicalMaterial:mr,MeshStandardMaterial:dr,MeshPhongMaterial:vr,MeshToonMaterial:yr,MeshNormalMaterial:gr,MeshLambertMaterial:br,MeshDepthMaterial:ye,MeshDistanceMaterial:ge,MeshBasicMaterial:q,LineDashedMaterial:_r,LineBasicMaterial:Be,Material:W}),ac={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={}}},uc=new wr,cc={};Object.assign(xr.prototype,{load:function(t,e,n,r){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var i=this,o=ac.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout(function(){e&&e(o),i.manager.itemEnd(t)},0),o;if(void 0!==cc[t])return void cc[t].push({onLoad:e,onProgress:n,onError:r});var s=/^data:(.*?)(;base64)?,(.*)$/,a=t.match(s);if(a){var u=a[1],c=!!a[2],l=a[3];l=window.decodeURIComponent(l),c&&(l=window.atob(l));try{var h,p=(this.responseType||"").toLowerCase();switch(p){case"arraybuffer":case"blob":for(var f=new Uint8Array(l.length),d=0;d<l.length;d++)f[d]=l.charCodeAt(d);h="blob"===p?new Blob([f.buffer],{type:u}):f.buffer;break;case"document":var m=new DOMParser;h=m.parseFromString(l,u);break;case"json":h=JSON.parse(l);break;default:h=l}window.setTimeout(function(){e&&e(h),i.manager.itemEnd(t)},0)}catch(e){window.setTimeout(function(){r&&r(e),i.manager.itemEnd(t),i.manager.itemError(t)},0)}}else{cc[t]=[],cc[t].push({onLoad:e,onProgress:n,onError:r});var v=new XMLHttpRequest;v.open("GET",t,!0),v.addEventListener("load",function(e){var n=this.response;ac.add(t,n);var r=cc[t];if(delete cc[t],200===this.status||0===this.status){0===this.status&&console.warn("THREE.FileLoader: HTTP Status 0 received.");for(var o=0,s=r.length;o<s;o++){var a=r[o];a.onLoad&&a.onLoad(n)}i.manager.itemEnd(t)}else{for(var o=0,s=r.length;o<s;o++){var a=r[o];a.onError&&a.onError(e)}i.manager.itemEnd(t),i.manager.itemError(t)}},!1),v.addEventListener("progress",function(e){for(var n=cc[t],r=0,i=n.length;r<i;r++){var o=n[r];o.onProgress&&o.onProgress(e)}},!1),v.addEventListener("error",function(e){var n=cc[t];delete cc[t];for(var r=0,o=n.length;r<o;r++){var s=n[r];s.onError&&s.onError(e)}i.manager.itemEnd(t),i.manager.itemError(t)},!1),void 0!==this.responseType&&(v.responseType=this.responseType),void 0!==this.withCredentials&&(v.withCredentials=this.withCredentials),v.overrideMimeType&&v.overrideMimeType(void 0!==this.mimeType?this.mimeType:"text/plain");for(var y in this.requestHeader)v.setRequestHeader(y,this.requestHeader[y]);v.send(null)}return i.manager.itemStart(t),v},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(Er.prototype,{load:function(t,e,n,r){var i=this,o=[],s=new Ze;s.image=o;var a=new xr(this.manager);if(a.setPath(this.path),a.setResponseType("arraybuffer"),Array.isArray(t))for(var u=0,c=0,l=t.length;c<l;++c)!function(c){a.load(t[c],function(t){var n=i._parser(t,!0);o[c]={width:n.width,height:n.height,format:n.format,mipmaps:n.mipmaps},6===(u+=1)&&(1===n.mipmapCount&&(s.minFilter=ba),s.format=n.format,s.needsUpdate=!0,e&&e(s))},n,r)}(c);else a.load(t,function(t){var n=i._parser(t,!0);if(n.isCubemap)for(var r=n.mipmaps.length/n.mipmapCount,a=0;a<r;a++){o[a]={mipmaps:[]};for(var u=0;u<n.mipmapCount;u++)o[a].mipmaps.push(n.mipmaps[a*n.mipmapCount+u]),o[a].format=n.format,o[a].width=n.width,o[a].height=n.height}else s.image.width=n.width,s.image.height=n.height,s.mipmaps=n.mipmaps;1===n.mipmapCount&&(s.minFilter=ba),s.format=n.format,s.needsUpdate=!0,e&&e(s)},n,r);return s},setPath:function(t){return this.path=t,this}}),Object.assign(Sr.prototype,{load:function(t,e,n,r){var i=this,o=new f,s=new xr(this.manager);return s.setResponseType("arraybuffer"),s.load(t,function(t){var n=i._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:da,o.wrapT=void 0!==n.wrapT?n.wrapT:da,o.magFilter=void 0!==n.magFilter?n.magFilter:ba,o.minFilter=void 0!==n.minFilter?n.minFilter:wa,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=ba),o.needsUpdate=!0,e&&e(o,n))},n,r),o}}),Object.assign(Tr.prototype,{crossOrigin:"anonymous",load:function(t,e,n,r){function i(){u.removeEventListener("load",i,!1),u.removeEventListener("error",o,!1),ac.add(t,this),e&&e(this),s.manager.itemEnd(t)}function o(e){u.removeEventListener("load",i,!1),u.removeEventListener("error",o,!1),r&&r(e),s.manager.itemEnd(t),s.manager.itemError(t)}void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var s=this,a=ac.get(t);if(void 0!==a)return s.manager.itemStart(t),setTimeout(function(){e&&e(a),s.manager.itemEnd(t)},0),a;var u=document.createElementNS("http://www.w3.org/1999/xhtml","img");return u.addEventListener("load",i,!1),u.addEventListener("error",o,!1),"data:"!==t.substr(0,5)&&void 0!==this.crossOrigin&&(u.crossOrigin=this.crossOrigin),s.manager.itemStart(t),u.src=t,u},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Mr.prototype,{crossOrigin:"anonymous",load:function(t,e,n,r){var i=new ct,o=new Tr(this.manager);o.setCrossOrigin(this.crossOrigin),o.setPath(this.path);for(var s=0,a=0;a<t.length;++a)!function(n){o.load(t[n],function(t){i.images[n]=t,6==++s&&(i.needsUpdate=!0,e&&e(i))},void 0,r)}(a);return i},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Cr.prototype,{crossOrigin:"anonymous",load:function(t,e,n,r){var i=new c,o=new Tr(this.manager);return o.setCrossOrigin(this.crossOrigin),o.setPath(this.path),o.load(t,function(n){i.image=n;var r=t.search(/\.(jpg|jpeg)$/)>0||0===t.search(/^data\:image\/jpeg/);i.format=r?ka:ja,i.needsUpdate=!0,void 0!==e&&e(i)},n,r),i},setCrossOrigin:function(t){return this.crossOrigin=t,this},setPath:function(t){return this.path=t,this}}),Object.assign(Or.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,r=[],i=this.getPoint(0),o=0;for(r.push(0),n=1;n<=t;n++)e=this.getPoint(n/t),o+=e.distanceTo(i),r.push(o),i=e;return this.cacheArcLengths=r,r},updateArcLengths:function(){this.needsUpdate=!0,this.getLengths()},getUtoTmapping:function(t,e){var n,r=this.getLengths(),i=0,o=r.length;n=e||t*r[o-1];for(var s,a=0,u=o-1;a<=u;)if(i=Math.floor(a+(u-a)/2),(s=r[i]-n)<0)a=i+1;else{if(!(s>0)){u=i;break}u=i-1}if(i=u,r[i]===n)return i/(o-1);var c=r[i];return(i+(n-c)/(r[i+1]-c))/(o-1)},getTangent:function(t){var e=t-1e-4,n=t+1e-4;e<0&&(e=0),n>1&&(n=1);var r=this.getPoint(e);return this.getPoint(n).clone().sub(r).normalize()},getTangentAt:function(t){var e=this.getUtoTmapping(t);return this.getTangent(e)},computeFrenetFrames:function(t,e){var n,r,i,s=new a,u=[],c=[],l=[],h=new a,p=new o;for(n=0;n<=t;n++)r=n/t,u[n]=this.getTangentAt(r),u[n].normalize();c[0]=new a,l[0]=new a;var f=Number.MAX_VALUE,d=Math.abs(u[0].x),m=Math.abs(u[0].y),v=Math.abs(u[0].z);for(d<=f&&(f=d,s.set(1,0,0)),m<=f&&(f=m,s.set(0,1,0)),v<=f&&s.set(0,0,1),h.crossVectors(u[0],s).normalize(),c[0].crossVectors(u[0],h),l[0].crossVectors(u[0],c[0]),n=1;n<=t;n++)c[n]=c[n-1].clone(),l[n]=l[n-1].clone(),h.crossVectors(u[n-1],u[n]),h.length()>Number.EPSILON&&(h.normalize(),i=Math.acos(ku.clamp(u[n-1].dot(u[n]),-1,1)),c[n].applyMatrix4(p.makeRotationAxis(h,i))),l[n].crossVectors(u[n],c[n]);if(!0===e)for(i=Math.acos(ku.clamp(c[0].dot(c[t]),-1,1)),i/=t,u[0].dot(h.crossVectors(c[0],c[t]))>0&&(i=-i),n=1;n<=t;n++)c[n].applyMatrix4(p.makeRotationAxis(u[n],i*n)),l[n].crossVectors(u[n],c[n]);return{tangents:u,normals:c,binormals:l}},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.t
vendor: 16,384 bytes, line 1
1ype,t},fromJSON:function(t){return this.arcLengthDivisions=t.arcLengthDivisions,this}}),Ar.prototype=Object.create(Or.prototype),Ar.prototype.constructor=Ar,Ar.prototype.isEllipseCurve=!0,Ar.prototype.getPoint=function(t,e){for(var n=e||new i,r=2*Math.PI,o=this.aEndAngle-this.aStartAngle,s=Math.abs(o)<Number.EPSILON;o<0;)o+=r;for(;o>r;)o-=r;o<Number.EPSILON&&(o=s?0:r),!0!==this.aClockwise||s||(o===r?o=-r:o-=r);var a=this.aStartAngle+t*o,u=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),h=Math.sin(this.aRotation),p=u-this.aX,f=c-this.aY;u=p*l-f*h+this.aX,c=p*h+f*l+this.aY}return n.set(u,c)},Ar.prototype.copy=function(t){return Or.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},Ar.prototype.toJSON=function(){var t=Or.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},Ar.prototype.fromJSON=function(t){return Or.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},Pr.prototype=Object.create(Ar.prototype),Pr.prototype.constructor=Pr,Pr.prototype.isArcCurve=!0;var lc=new a,hc=new Rr,pc=new Rr,fc=new Rr;Lr.prototype=Object.create(Or.prototype),Lr.prototype.constructor=Lr,Lr.prototype.isCatmullRomCurve3=!0,Lr.prototype.getPoint=function(t,e){var n=e||new a,r=this.points,i=r.length,o=(i-(this.closed?0:1))*t,s=Math.floor(o),u=o-s;this.closed?s+=s>0?0:(Math.floor(Math.abs(s)/i)+1)*i:0===u&&s===i-1&&(s=i-2,u=1);var c,l,h,p;if(this.closed||s>0?c=r[(s-1)%i]:(lc.subVectors(r[0],r[1]).add(r[0]),c=lc),l=r[s%i],h=r[(s+1)%i],this.closed||s+2<i?p=r[(s+2)%i]:(lc.subVectors(r[i-1],r[i-2]).add(r[i-1]),p=lc),"centripetal"===this.curveType||"chordal"===this.curveType){var f="chordal"===this.curveType?.5:.25,d=Math.pow(c.distanceToSquared(l),f),m=Math.pow(l.distanceToSquared(h),f),v=Math.pow(h.distanceToSquared(p),f);m<1e-4&&(m=1),d<1e-4&&(d=m),v<1e-4&&(v=m),hc.initNonuniformCatmullRom(c.x,l.x,h.x,p.x,d,m,v),pc.initNonuniformCatmullRom(c.y,l.y,h.y,p.y,d,m,v),fc.initNonuniformCatmullRom(c.z,l.z,h.z,p.z,d,m,v)}else"catmullrom"===this.curveType&&(hc.initCatmullRom(c.x,l.x,h.x,p.x,this.tension),pc.initCatmullRom(c.y,l.y,h.y,p.y,this.tension),fc.initCatmullRom(c.z,l.z,h.z,p.z,this.tension));return n.set(hc.calc(u),pc.calc(u),fc.calc(u)),n},Lr.prototype.copy=function(t){Or.prototype.copy.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++){var r=t.points[e];this.points.push(r.clone())}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},Lr.prototype.toJSON=function(){var t=Or.prototype.toJSON.call(this);t.points=[];for(var e=0,n=this.points.length;e<n;e++){var r=this.points[e];t.points.push(r.toArray())}return t.closed=this.closed,t.curveType=this.curveType,t.tension=this.tension,t},Lr.prototype.fromJSON=function(t){Or.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++){var r=t.points[e];this.points.push((new a).fromArray(r))}return this.closed=t.closed,this.curveType=t.curveType,this.tension=t.tension,this},Hr.prototype=Object.create(Or.prototype),Hr.prototype.constructor=Hr,Hr.prototype.isCubicBezierCurve=!0,Hr.prototype.getPoint=function(t,e){var n=e||new i,r=this.v0,o=this.v1,s=this.v2,a=this.v3;return n.set(Vr(t,r.x,o.x,s.x,a.x),Vr(t,r.y,o.y,s.y,a.y)),n},Hr.prototype.copy=function(t){return Or.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},Hr.prototype.toJSON=function(){var t=Or.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},Hr.prototype.fromJSON=function(t){return Or.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},Gr.prototype=Object.create(Or.prototype),Gr.prototype.constructor=Gr,Gr.prototype.isCubicBezierCurve3=!0,Gr.prototype.getPoint=function(t,e){var n=e||new a,r=this.v0,i=this.v1,o=this.v2,s=this.v3;return n.set(Vr(t,r.x,i.x,o.x,s.x),Vr(t,r.y,i.y,o.y,s.y),Vr(t,r.z,i.z,o.z,s.z)),n},Gr.prototype.copy=function(t){return Or.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},Gr.prototype.toJSON=function(){var t=Or.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},Gr.prototype.fromJSON=function(t){return Or.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},Wr.prototype=Object.create(Or.prototype),Wr.prototype.constructor=Wr,Wr.prototype.isLineCurve=!0,Wr.prototype.getPoint=function(t,e){var n=e||new i;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n},Wr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},Wr.prototype.getTangent=function(){return this.v2.clone().sub(this.v1).normalize()},Wr.prototype.copy=function(t){return Or.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Wr.prototype.toJSON=function(){var t=Or.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Wr.prototype.fromJSON=function(t){return Or.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},qr.prototype=Object.create(Or.prototype),qr.prototype.constructor=qr,qr.prototype.isLineCurve3=!0,qr.prototype.getPoint=function(t,e){var n=e||new a;return 1===t?n.copy(this.v2):(n.copy(this.v2).sub(this.v1),n.multiplyScalar(t).add(this.v1)),n},qr.prototype.getPointAt=function(t,e){return this.getPoint(t,e)},qr.prototype.copy=function(t){return Or.prototype.copy.call(this,t),this.v1.copy(t.v1),this.v2.copy(t.v2),this},qr.prototype.toJSON=function(){var t=Or.prototype.toJSON.call(this);return t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},qr.prototype.fromJSON=function(t){return Or.prototype.fromJSON.call(this,t),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Zr.prototype=Object.create(Or.prototype),Zr.prototype.constructor=Zr,Zr.prototype.isQuadraticBezierCurve=!0,Zr.prototype.getPoint=function(t,e){var n=e||new i,r=this.v0,o=this.v1,s=this.v2;return n.set(Dr(t,r.x,o.x,s.x),Dr(t,r.y,o.y,s.y)),n},Zr.prototype.copy=function(t){return Or.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Zr.prototype.toJSON=function(){var t=Or.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Zr.prototype.fromJSON=function(t){return Or.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Xr.prototype=Object.create(Or.prototype),Xr.prototype.constructor=Xr,Xr.prototype.isQuadraticBezierCurve3=!0,Xr.prototype.getPoint=function(t,e){var n=e||new a,r=this.v0,i=this.v1,o=this.v2;return n.set(Dr(t,r.x,i.x,o.x),Dr(t,r.y,i.y,o.y),Dr(t,r.z,i.z,o.z)),n},Xr.prototype.copy=function(t){return Or.prototype.copy.call(this,t),this.v0.copy(t.v0),this.v1.copy(t.v1),this.v2.copy(t.v2),this},Xr.prototype.toJSON=function(){var t=Or.prototype.toJSON.call(this);return t.v0=this.v0.toArray(),t.v1=this.v1.toArray(),t.v2=this.v2.toArray(),t},Xr.prototype.fromJSON=function(t){return Or.prototype.fromJSON.call(this,t),this.v0.fromArray(t.v0),this.v1.fromArray(t.v1),this.v2.fromArray(t.v2),this},Kr.prototype=Object.create(Or.prototype),Kr.prototype.constructor=Kr,Kr.prototype.isSplineCurve=!0,Kr.prototype.getPoint=function(t,e){var n=e||new i,r=this.points,o=(r.length-1)*t,s=Math.floor(o),a=o-s,u=r[0===s?s:s-1],c=r[s],l=r[s>r.length-2?r.length-1:s+1],h=r[s>r.length-3?r.length-1:s+2];return n.set(Nr(a,u.x,c.x,l.x,h.x),Nr(a,u.y,c.y,l.y,h.y)),n},Kr.prototype.copy=function(t){Or.prototype.copy.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++){var r=t.points[e];this.points.push(r.clone())}return this},Kr.prototype.toJSON=function(){var t=Or.prototype.toJSON.call(this);t.points=[];for(var e=0,n=this.points.length;e<n;e++){var r=this.points[e];t.points.push(r.toArray())}return t},Kr.prototype.fromJSON=function(t){Or.prototype.fromJSON.call(this,t),this.points=[];for(var e=0,n=t.points.length;e<n;e++){var r=t.points[e];this.points.push((new i).fromArray(r))}return this};var dc=Object.freeze({ArcCurve:Pr,CatmullRomCurve3:Lr,CubicBezierCurve:Hr,CubicBezierCurve3:Gr,EllipseCurve:Ar,LineCurve:Wr,LineCurve3:qr,QuadraticBezierCurve:Zr,QuadraticBezierCurve3:Xr,SplineCurve:Kr});Yr.prototype=Object.assign(Object.create(Or.prototype),{constructor:Yr,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 Wr(e,t))},getPoint:function(t){for(var e=t*this.getLength(),n=this.getCurveLengths(),r=0;r<n.length;){if(n[r]>=e){var i=n[r]-e,o=this.curves[r],s=o.getLength(),a=0===s?0:1-i/s;return o.getPointAt(a)}r++}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,r=this.curves.length;n<r;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=[],r=0,i=this.curves;r<i.length;r++)for(var o=i[r],s=o&&o.isEllipseCurve?2*t:o&&(o.isLineCurve||o.isLineCurve3)?1:o&&o.isSplineCurve?t*o.points.length:t,a=o.getPoints(s),u=0;u<a.length;u++){var c=a[u];e&&e.equals(c)||(n.push(c),e=c)}return this.autoClose&&n.length>1&&!n[n.length-1].equals(n[0])&&n.push(n[0]),n},copy:function(t){Or.prototype.copy.call(this,t),this.curves=[];for(var e=0,n=t.curves.length;e<n;e++){var r=t.curves[e];this.curves.push(r.clone())}return this.autoClose=t.autoClose,this},toJSON:function(){var t=Or.prototype.toJSON.call(this);t.autoClose=this.autoClose,t.curves=[];for(var e=0,n=this.curves.length;e<n;e++){var r=this.curves[e];t.curves.push(r.toJSON())}return t},fromJSON:function(t){Or.prototype.fromJSON.call(this,t),this.autoClose=t.autoClose,this.curves=[];for(var e=0,n=t.curves.length;e<n;e++){var r=t.curves[e];this.curves.push((new dc[r.type]).fromJSON(r))}return this}}),Jr.prototype=Object.assign(Object.create(Yr.prototype),{constructor:Jr,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 Wr(this.currentPoint.clone(),new i(t,e));this.curves.push(n),this.currentPoint.set(t,e)},quadraticCurveTo:function(t,e,n,r){var o=new Zr(this.currentPoint.clone(),new i(t,e),new i(n,r));this.curves.push(o),this.currentPoint.set(n,r)},bezierCurveTo:function(t,e,n,r,o,s){var a=new Hr(this.currentPoint.clone(),new i(t,e),new i(n,r),new i(o,s));this.curves.push(a),this.currentPoint.set(o,s)},splineThru:function(t){var e=[this.currentPoint.clone()].concat(t),n=new Kr(e);this.curves.push(n),this.currentPoint.copy(t[t.length-1])},arc:function(t,e,n,r,i,o){var s=this.currentPoint.x,a=this.currentPoint.y;this.absarc(t+s,e+a,n,r,i,o)},absarc:function(t,e,n,r,i,o){this.absellipse(t,e,n,n,r,i,o)},ellipse:function(t,e,n,r,i,o,s,a){var u=this.currentPoint.x,c=this.currentPoint.y;this.absellipse(t+u,e+c,n,r,i,o,s,a)},absellipse:function(t,e,n,r,i,o,s,a){var u=new Ar(t,e,n,r,i,o,s,a);if(this.curves.length>0){var c=u.getPoint(0);c.equals(this.currentPoint)||this.lineTo(c.x,c.y)}this.curves.push(u);var l=u.getPoint(1);this.currentPoint.copy(l)},copy:function(t){return Yr.prototype.copy.call(this,t),this.currentPoint.copy(t.currentPoint),this},toJSON:function(){var t=Yr.prototype.toJSON.call(this);return t.currentPoint=this.currentPoint.toArray(),t},fromJSON:function(t){return Yr.prototype.fromJSON.call(this,t),this.currentPoint.fromArray(t.currentPoint),this}}),Qr.prototype=Object.assign(Object.create(Jr.prototype),{constructor:Qr,getPointsHoles:function(t){for(var e=[],n=0,r=this.holes.length;n<r;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){Jr.prototype.copy.call(this,t),this.holes=[];for(var e=0,n=t.holes.length;e<n;e++){var r=t.holes[e];this.holes.push(r.clone())}return this},toJSON:function(){var t=Jr.prototype.toJSON.call(this);t.uuid=this.uuid,t.holes=[];for(var e=0,n=this.holes.length;e<n;e++){var r=this.holes[e];t.holes.push(r.toJSON())}return t},fromJSON:function(t){Jr.prototype.fromJSON.call(this,t),this.uuid=t.uuid,this.holes=[];for(var e=0,n=t.holes.length;e<n;e++){var r=t.holes[e];this.holes.push((new Jr).fromJSON(r))}return this}}),$r.prototype=Object.assign(Object.create(E.prototype),{constructor:$r,isLight:!0,copy:function(t){return E.prototype.copy.call(this,t),this.color.copy(t.color),this.intensity=t.intensity,this},toJSON:function(t){var e=E.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}}),ti.prototype=Object.assign(Object.create($r.prototype),{constructor:ti,isHemisphereLight:!0,copy:function(t){return $r.prototype.copy.call(this,t),this.groundColor.copy(t.groundColor),this}}),Object.assign(ei.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}}),ni.prototype=Object.assign(Object.create(ei.prototype),{constructor:ni,isSpotLightShadow:!0,update:function(t){var e=this.camera,n=2*ku.RAD2DEG*t.angle,r=this.mapSize.width/this.mapSize.height,i=t.distance||e.far;n===e.fov&&r===e.aspect&&i===e.far||(e.fov=n,e.aspect=r,e.far=i,e.updateProjectionMatrix())}}),ri.prototype=Object.assign(Object.create($r.prototype),{constructor:ri,isSpotLight:!0,copy:function(t){return $r.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}}),ii.prototype=Object.assign(Object.create($r.prototype),{constructor:ii,isPointLight:!0,copy:function(t){return $r.prototype.copy.call(this,t),this.distance=t.distance,this.decay=t.decay,this.shadow=t.shadow.clone(),this}}),oi.prototype=Object.assign(Object.create(ei.prototype),{constructor:oi}),si.prototype=Object.assign(Object.create($r.prototype),{constructor:si,isDirectionalLight:!0,copy:function(t){return $r.prototype.copy.call(this,t),this.target=t.target.clone(),this.shadow=t.shadow.clone(),this}}),ai.prototype=Object.assign(Object.create($r.prototype),{constructor:ai,isAmbientLight:!0}),ui.prototype=Object.assign(Object.create($r.prototype),{constructor:ui,isRectAreaLight:!0,copy:function(t){return $r.prototype.copy.call(this,t),this.width=t.width,this.height=t.height,this},toJSON:function(t){var e=$r.prototype.toJSON.call(this,t);return e.object.width=this.width,e.object.height=this.height,e}}),ci.prototype=Object.assign(Object.create(bi.prototype),{constructor:ci,ValueTypeName:"string",ValueBufferType:Array,DefaultInterpolation:du,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMe
vendor: 5,347 bytes, line 1
1thodSmooth:void 0}),li.prototype=Object.assign(Object.create(bi.prototype),{constructor:li,ValueTypeName:"bool",ValueBufferType:Array,DefaultInterpolation:du,InterpolantFactoryMethodLinear:void 0,InterpolantFactoryMethodSmooth:void 0}),Object.assign(hi.prototype,{evaluate:function(t){var e=this.parameterPositions,n=this._cachedIndex,r=e[n],i=e[n-1];t:{e:{var o;n:{r:if(!(t<r)){for(var s=n+2;;){if(void 0===r){if(t<i)break r;return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,t,i)}if(n===s)break;if(i=r,r=e[++n],t<r)break e}o=e.length;break n}{if(t>=i)break t;var a=e[1];t<a&&(n=2,i=a);for(var s=n-2;;){if(void 0===i)return this._cachedIndex=0,this.beforeStart_(0,t,r);if(n===s)break;if(r=i,i=e[--n-1],t>=i)break e}o=n,n=0}}for(;n<o;){var u=n+o>>>1;t<e[u]?o=u:n=u+1}if(r=e[n],void 0===(i=e[n-1]))return this._cachedIndex=0,this.beforeStart_(0,t,r);if(void 0===r)return n=e.length,this._cachedIndex=n,this.afterEnd_(n-1,i,t)}this._cachedIndex=n,this.intervalChanged_(n,i,r)}return this.interpolate_(n,i,t,r)},settings:null,DefaultSettings_:{},getSettings_:function(){return this.settings||this.DefaultSettings_},copySampleValue_:function(t){for(var e=this.resultBuffer,n=this.sampleValues,r=this.valueSize,i=t*r,o=0;o!==r;++o)e[o]=n[i+o];return e},interpolate_:function(){throw new Error("call to abstract method")},intervalChanged_:function(){}}),Object.assign(hi.prototype,{beforeStart_:hi.prototype.copySampleValue_,afterEnd_:hi.prototype.copySampleValue_}),pi.prototype=Object.assign(Object.create(hi.prototype),{constructor:pi,interpolate_:function(t,e,n,r){for(var i=this.resultBuffer,o=this.sampleValues,a=this.valueSize,u=t*a,c=(n-e)/(r-e),l=u+a;u!==l;u+=4)s.slerpFlat(i,0,o,u-a,o,u,c);return i}}),fi.prototype=Object.assign(Object.create(bi.prototype),{constructor:fi,ValueTypeName:"quaternion",DefaultInterpolation:mu,InterpolantFactoryMethodLinear:function(t){return new pi(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:void 0}),di.prototype=Object.assign(Object.create(bi.prototype),{constructor:di,ValueTypeName:"color"}),mi.prototype=Object.assign(Object.create(bi.prototype),{constructor:mi,ValueTypeName:"number"}),vi.prototype=Object.assign(Object.create(hi.prototype),{constructor:vi,DefaultSettings_:{endingStart:yu,endingEnd:yu},intervalChanged_:function(t,e,n){var r=this.parameterPositions,i=t-2,o=t+1,s=r[i],a=r[o];if(void 0===s)switch(this.getSettings_().endingStart){case gu:i=t,s=2*e-n;break;case bu:i=r.length-2,s=e+r[i]-r[i+1];break;default:i=t,s=n}if(void 0===a)switch(this.getSettings_().endingEnd){case gu:o=t,a=2*n-e;break;case bu:o=1,a=n+r[1]-r[0];break;default:o=t-1,a=e}var u=.5*(n-e),c=this.valueSize;this._weightPrev=u/(e-s),this._weightNext=u/(a-n),this._offsetPrev=i*c,this._offsetNext=o*c},interpolate_:function(t,e,n,r){for(var i=this.resultBuffer,o=this.sampleValues,s=this.valueSize,a=t*s,u=a-s,c=this._offsetPrev,l=this._offsetNext,h=this._weightPrev,p=this._weightNext,f=(n-e)/(r-e),d=f*f,m=d*f,v=-h*m+2*h*d-h*f,y=(1+h)*m+(-1.5-2*h)*d+(-.5+h)*f+1,g=(-1-p)*m+(1.5+p)*d+.5*f,b=p*m-p*d,_=0;_!==s;++_)i[_]=v*o[c+_]+y*o[u+_]+g*o[a+_]+b*o[l+_];return i}}),yi.prototype=Object.assign(Object.create(hi.prototype),{constructor:yi,interpolate_:function(t,e,n,r){for(var i=this.resultBuffer,o=this.sampleValues,s=this.valueSize,a=t*s,u=a-s,c=(n-e)/(r-e),l=1-c,h=0;h!==s;++h)i[h]=o[u+h]*l+o[a+h]*c;return i}}),gi.prototype=Object.assign(Object.create(hi.prototype),{constructor:gi,interpolate_:function(t){return this.copySampleValue_(t-1)}});var mc={arraySlice:function(t,e,n){return mc.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){function e(e,n){return t[e]-t[n]}for(var n=t.length,r=new Array(n),i=0;i!==n;++i)r[i]=i;return r.sort(e),r},sortedArray:function(t,e,n){for(var r=t.length,i=new t.constructor(r),o=0,s=0;s!==r;++o)for(var a=n[o]*e,u=0;u!==e;++u)i[s++]=t[a+u];return i},flattenJSON:function(t,e,n,r){for(var i=1,o=t[0];void 0!==o&&void 0===o[r];)o=t[i++];if(void 0!==o){var s=o[r];if(void 0!==s)if(Array.isArray(s))do{s=o[r],void 0!==s&&(e.push(o.time),n.push.apply(n,s)),o=t[i++]}while(void 0!==o);else if(void 0!==s.toArray)do{s=o[r],void 0!==s&&(e.push(o.time),s.toArray(n,n.length)),o=t[i++]}while(void 0!==o);else do{s=o[r],void 0!==s&&(e.push(o.time),n.push(s)),o=t[i++]}while(void 0!==o)}}};Object.assign(bi,{parse:function(t){if(void 0===t.type)throw new Error("THREE.KeyframeTrack: track type undefined, can not parse");var e=bi._getTrackTypeForValueTypeName(t.type);if(void 0===t.times){var n=[],r=[];mc.flattenJSON(t.keys,n,r,"value"),t.times=n,t.values=r}return void 0!==e.parse?e.parse(t):new e(t.name,t.times,t.values,t.interpolation)},toJSON:function(t){var e,n=t.constructor;if(void 0!==n.toJSON)e=n.toJSON(t);else{e={name:t.name,times:mc.convertArray(t.times,Array),values:mc.convertArray(t.values,Array)};var r=t.getInterpolation();r!==t.DefaultInterpolation&&(e.interpolation=r)}return e.type=t.ValueTypeName,e},_getTrackTypeForValueTypeName:function(t){switch(t.toLowerCase()){case"scalar":case"double":case"float":case"number":case"integer":return mi;
vendor: 9,241 bytes, line 1
1case"vector":case"vector2":case"vector3":case"vector4":return _i;case"color":return di;case"quaternion":return fi;case"bool":case"boolean":return li;case"string":return ci}throw new Error("THREE.KeyframeTrack: Unsupported typeName: "+t)}}),Object.assign(bi.prototype,{constructor:bi,TimeBufferType:Float32Array,ValueBufferType:Float32Array,DefaultInterpolation:mu,InterpolantFactoryMethodDiscrete:function(t){return new gi(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodLinear:function(t){return new yi(this.times,this.values,this.getValueSize(),t)},InterpolantFactoryMethodSmooth:function(t){return new vi(this.times,this.values,this.getValueSize(),t)},setInterpolation:function(t){var e;switch(t){case du:e=this.InterpolantFactoryMethodDiscrete;break;case mu:e=this.InterpolantFactoryMethodLinear;break;case vu: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 void console.warn("THREE.KeyframeTrack:",n)}this.createInterpolant=e},getInterpolation:function(){switch(this.createInterpolant){case this.InterpolantFactoryMethodDiscrete:return du;case this.InterpolantFactoryMethodLinear:return mu;case this.InterpolantFactoryMethodSmooth:return vu}},getValueSize:function(){return this.values.length/this.times.length},shift:function(t){if(0!==t)for(var e=this.times,n=0,r=e.length;n!==r;++n)e[n]+=t;return this},scale:function(t){if(1!==t)for(var e=this.times,n=0,r=e.length;n!==r;++n)e[n]*=t;return this},trim:function(t,e){for(var n=this.times,r=n.length,i=0,o=r-1;i!==r&&n[i]<t;)++i;for(;-1!==o&&n[o]>e;)--o;if(++o,0!==i||o!==r){i>=o&&(o=Math.max(o,1),i=o-1);var s=this.getValueSize();this.times=mc.arraySlice(n,i,o),this.values=mc.arraySlice(this.values,i*s,o*s)}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,r=this.values,i=n.length;0===i&&(console.error("THREE.KeyframeTrack: Track is empty.",this),t=!1);for(var o=null,s=0;s!==i;s++){var a=n[s];if("number"==typeof a&&isNaN(a)){console.error("THREE.KeyframeTrack: Time is not a valid number.",this,s,a),t=!1;break}if(null!==o&&o>a){console.error("THREE.KeyframeTrack: Out of order keys.",this,s,a,o),t=!1;break}o=a}if(void 0!==r&&mc.isTypedArray(r))for(var s=0,u=r.length;s!==u;++s){var c=r[s];if(isNaN(c)){console.error("THREE.KeyframeTrack: Value is not a valid number.",this,s,c),t=!1;break}}return t},optimize:function(){for(var t=this.times,e=this.values,n=this.getValueSize(),r=this.getInterpolation()===vu,i=1,o=t.length-1,s=1;s<o;++s){var a=!1,u=t[s];if(u!==t[s+1]&&(1!==s||u!==u[0]))if(r)a=!0;else for(var c=s*n,l=c-n,h=c+n,p=0;p!==n;++p){var f=e[c+p];if(f!==e[l+p]||f!==e[h+p]){a=!0;break}}if(a){if(s!==i){t[i]=t[s];for(var d=s*n,m=i*n,p=0;p!==n;++p)e[m+p]=e[d+p]}++i}}if(o>0){t[i]=t[o];for(var d=o*n,m=i*n,p=0;p!==n;++p)e[m+p]=e[d+p];++i}return i!==t.length&&(this.times=mc.arraySlice(t,0,i),this.values=mc.arraySlice(e,0,i*n)),this}}),_i.prototype=Object.assign(Object.create(bi.prototype),{constructor:_i,ValueTypeName:"vector"}),Object.assign(wi,{parse:function(t){for(var e=[],n=t.tracks,r=1/(t.fps||1),i=0,o=n.length;i!==o;++i)e.push(bi.parse(n[i]).scale(r));return new wi(t.name,t.duration,e)},toJSON:function(t){for(var e=[],n=t.tracks,r={name:t.name,duration:t.duration,tracks:e,uuid:t.uuid},i=0,o=n.length;i!==o;++i)e.push(bi.toJSON(n[i]));return r},CreateFromMorphTargetSequence:function(t,e,n,r){for(var i=e.length,o=[],s=0;s<i;s++){var a=[],u=[];a.push((s+i-1)%i,s,(s+1)%i),u.push(0,1,0);var c=mc.getKeyframeOrder(a);a=mc.sortedArray(a,1,c),u=mc.sortedArray(u,1,c),r||0!==a[0]||(a.push(i),u.push(u[0])),o.push(new mi(".morphTargetInfluences["+e[s].name+"]",a,u).scale(1/n))}return new wi(t,-1,o)},findByName:function(t,e){var n=t;if(!Array.isArray(t)){var r=t;n=r.geometry&&r.geometry.animations||r.animations}for(var i=0;i<n.length;i++)if(n[i].name===e)return n[i];return null},CreateClipsFromMorphTargetSequences:function(t,e,n){for(var r={},i=/^([\w-]*?)([\d]+)$/,o=0,s=t.length;o<s;o++){var a=t[o],u=a.name.match(i);if(u&&u.length>1){var c=u[1],l=r[c];l||(r[c]=l=[]),l.push(a)}}var h=[];for(var c in r)h.push(wi.CreateFromMorphTargetSequence(c,r[c],e,n));return h},parseAnimation:function(t,e){if(!t)return console.error("THREE.AnimationClip: No animation in JSONLoader data."),null;for(var n=function(t,e,n,r,i){if(0!==n.length){var o=[],s=[];mc.flattenJSON(n,o,s,r),0!==o.length&&i.push(new t(e,o,s))}},r=[],i=t.name||"default",o=t.length||-1,s=t.fps||30,a=t.hierarchy||[],u=0;u<a.length;u++){var c=a[u].keys;if(c&&0!==c.length)if(c[0].morphTargets){for(var l={},h=0;h<c.length;h++)if(c[h].morphTargets)for(var p=0;p<c[h].morphTargets.length;p++)l[c[h].morphTargets[p]]=-1;for(var f in l){for(var d=[],m=[],p=0;p!==c[h].morphTargets.length;++p){var v=c[h];d.push(v.time),m.push(v.morphTarget===f?1:0)}r.push(new mi(".morphTargetInfluence["+f+"]",d,m))}o=l.length*(s||1)}else{var y=".bones["+e[u].name+"]";n(_i,y+".position",c,"pos",r),n(fi,y+".quaternion",c,"rot",r),n(_i,y+".scale",c,"scl",r)}}return 0===r.length?null:new wi(i,o,r)}}),Object.assign(wi.prototype,{resetDuration:function(){for(var t=this.tracks,e=0,n=0,r=t.length;n!==r;++n){var i=this.tracks[n];e=Math.max(e,i.times[i.times.length-1])}this.duration=e},trim:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].trim(0,this.duration);return this},optimize:function(){for(var t=0;t<this.tracks.length;t++)this.tracks[t].optimize();return this}}),Object.assign(xi.prototype,{load:function(t,e,n,r){var i=this;new xr(i.manager).load(t,function(t){e(i.parse(JSON.parse(t)))},n,r)},setTextures:function(t){this.textures=t},parse:function(t){function e(t){return void 0===n[t]&&console.warn("THREE.MaterialLoader: Undefined texture",t),n[t]}var n=this.textures,r=new sc[t.type];if(void 0!==t.uuid&&(r.uuid=t.uuid),void 0!==t.name&&(r.name=t.name),void 0!==t.color&&r.color.setHex(t.color),void 0!==t.roughness&&(r.roughness=t.roughness),void 0!==t.metalness&&(r.metalness=t.metalness),void 0!==t.emissive&&r.emissive.setHex(t.emissive),void 0!==t.specular&&r.specular.setHex(t.specular),void 0!==t.shininess&&(r.shininess=t.shininess),void 0!==t.clearCoat&&(r.clearCoat=t.clearCoat),void 0!==t.clearCoatRoughness&&(r.clearCoatRoughness=t.clearCoatRoughness),void 0!==t.uniforms&&(r.uniforms=t.uniforms),void 0!==t.vertexShader&&(r.vertexShader=t.vertexShader),void 0!==t.fragmentShader&&(r.fragmentShader=t.fragmentShader),void 0!==t.vertexColors&&(r.vertexColors=t.vertexColors),void 0!==t.fog&&(r.fog=t.fog),void 0!==t.flatShading&&(r.flatShading=t.flatShading),void 0!==t.blending&&(r.blending=t.blending),void 0!==t.side&&(r.side=t.side),void 0!==t.opacity&&(r.opacity=t.opacity),void 0!==t.transparent&&(r.transparent=t.transparent),void 0!==t.alphaTest&&(r.alphaTest=t.alphaTest),void 0!==t.depthTest&&(r.depthTest=t.depthTest),void 0!==t.depthWrite&&(r.depthWrite=t.depthWrite),void 0!==t.colorWrite&&(r.colorWrite=t.colorWrite),void 0!==t.wireframe&&(r.wireframe=t.wireframe),void 0!==t.wireframeLinewidth&&(r.wireframeLinewidth=t.wireframeLinewidth),void 0!==t.wireframeLinecap&&(r.wireframeLinecap=t.wireframeLinecap),void 0!==t.wireframeLinejoin&&(r.wireframeLinejoin=t.wireframeLinejoin),void 0!==t.rotation&&(r.rotation=t.rotation),1!==t.linewidth&&(r.linewidth=t.linewidth),void 0!==t.dashSize&&(r.dashSize=t.dashSize),void 0!==t.gapSize&&(r.gapSize=t.gapSize),void 0!==t.scale&&(r.scale=t.scale),void 0!==t.polygonOffset&&(r.polygonOffset=t.polygonOffset),void 0!==t.polygonOffsetFactor&&(r.polygonOffsetFactor=t.polygonOffsetFactor),void 0!==t.polygonOffsetUnits&&(r.polygonOffsetUnits=t.polygonOffsetUnits),void 0!==t.skinning&&(r.skinning=t.skinning),void 0!==t.morphTargets&&(r.morphTargets=t.morphTargets),void 0!==t.dithering&&(r.dithering=t.dithering),void 0!==t.visible&&(r.visible=t.visible),void 0!==t.userData&&(r.userData=t.userData),void 0!==t.shading&&(r.flatShading=1===t.shading),void 0!==t.size&&(r.size=t.size),void 0!==t.sizeAttenuation&&(r.sizeAttenuation=t.sizeAttenuation),void 0!==t.map&&(r.map=e(t.map)),void 0!==t.alphaMap&&(r.alphaMap=e(t.alphaMap),r.transparent=!0),void 0!==t.bumpMap&&(r.bumpMap=e(t.bumpMap)),void 0!==t.bumpScale&&(r.bumpScale=t.bumpScale),void 0!==t.normalMap&&(r.normalMap=e(t.normalMap)),void 0!==t.normalMapType&&(r.normalMapType=t.normalMapType),void 0!==t.normalScale){var o=t.normalScale;!1===Array.isArray(o)&&(o=[o,o]),r.normalScale=(new i).fromArray(o)}return void 0!==t.displacementMap&&(r.displacementMap=e(t.displacementMap)),void 0!==t.displacementScale&&(r.displacementScale=t.displacementScale),void 0!==t.displacementBias&&(r.displacementBias=t.displacementBias),void 0!==t.roughnessMap&&(r.roughnessMap=e(t.roughnessMap)),void 0!==t.metalnessMap&&(r.metalnessMap=e(t.metalnessMap)),void 0!==t.emissiveMap&&(r.emissiveMap=e(t.emissiveMap)),void 0!==t.emissiveIntensity&&(r.emissiveIntensity=t.emissiveIntensity),void 0!==t.specularMap&&(r.specularMap=e(t.specularMap)),void 0!==t.envMap&&(r.envMap=e(t.envMap)
vendor: 5,116 bytes, line 1
1),void 0!==t.reflectivity&&(r.reflectivity=t.reflectivity),void 0!==t.lightMap&&(r.lightMap=e(t.lightMap)),void 0!==t.lightMapIntensity&&(r.lightMapIntensity=t.lightMapIntensity),void 0!==t.aoMap&&(r.aoMap=e(t.aoMap)),void 0!==t.aoMapIntensity&&(r.aoMapIntensity=t.aoMapIntensity),void 0!==t.gradientMap&&(r.gradientMap=e(t.gradientMap)),r}}),Object.assign(Ei.prototype,{load:function(t,e,n,r){var i=this;new xr(i.manager).load(t,function(t){e(i.parse(JSON.parse(t)))},n,r)},parse:function(t){var e=new B,n=t.data.index;if(void 0!==n){var r=new vc[n.type](n.array);e.setIndex(new O(r,1))}var i=t.data.attributes;for(var o in i){var s=i[o],r=new vc[s.type](s.array);e.addAttribute(o,new O(r,s.itemSize,s.normalized))}var u=t.data.groups||t.data.drawcalls||t.data.offsets;if(void 0!==u)for(var c=0,l=u.length;c!==l;++c){var h=u[c];e.addGroup(h.start,h.count,h.materialIndex)}var p=t.data.boundingSphere;if(void 0!==p){var f=new a;void 0!==p.center&&f.fromArray(p.center),e.boundingSphere=new m(f,p.radius)}return e}});var vc={Int8Array:Int8Array,Uint8Array:Uint8Array,Uint8ClampedArray:"undefined"!=typeof Uint8ClampedArray?Uint8ClampedArray:Uint8Array,Int16Array:Int16Array,Uint16Array:Uint16Array,Int32Array:Int32Array,Uint32Array:Uint32Array,Float32Array:Float32Array,Float64Array:Float64Array};Si.Handlers={handlers:[],add:function(t,e){this.handlers.push(t,e)},get:function(t){for(var e=this.handlers,n=0,r=e.length;n<r;n+=2){var i=e[n],o=e[n+1];if(i.test(t))return o}return null}},Object.assign(Si.prototype,{crossOrigin:"anonymous",onLoadStart:function(){},onLoadProgress:function(){},onLoadComplete:function(){},initMaterials:function(t,e,n){for(var r=[],i=0;i<t.length;++i)r[i]=this.createMaterial(t[i],e,n);return r},createMaterial:function(){var t={NoBlending:ws,NormalBlending:xs,AdditiveBlending:Es,SubtractiveBlending:Ss,MultiplyBlending:Ts,CustomBlending:Ms},e=new g,n=new Cr,r=new xi;return function(i,o,s){function a(t,e,r,i,a){var c,l=o+t,h=Si.Handlers.get(l);null!==h?c=h.load(l):(n.setCrossOrigin(s),c=n.load(l)),void 0!==e&&(c.repeat.fromArray(e),1!==e[0]&&(c.wrapS=fa),1!==e[1]&&(c.wrapT=fa)),void 0!==r&&c.offset.fromArray(r),void 0!==i&&("repeat"===i[0]&&(c.wrapS=fa),"mirror"===i[0]&&(c.wrapS=ma),"repeat"===i[1]&&(c.wrapT=fa),"mirror"===i[1]&&(c.wrapT=ma)),void 0!==a&&(c.anisotropy=a);var p=ku.generateUUID();return u[p]=c,p}var u={},c={uuid:ku.generateUUID(),type:"MeshLambertMaterial"};for(var l in i){var h=i[l];switch(l){case"DbgColor":case"DbgIndex":case"opticalDensity":case"illumination":break;case"DbgName":c.name=h;break;case"blending":c.blending=t[h];break;case"colorAmbient":case"mapAmbient":console.warn("THREE.Loader.createMaterial:",l,"is no longer supported.");break;case"colorDiffuse":c.color=e.fromArray(h).getHex();break;case"colorSpecular":c.specular=e.fromArray(h).getHex();break;case"colorEmissive":c.emissive=e.fromArray(h).getHex();break;case"specularCoef":c.shininess=h;break;case"shading":"basic"===h.toLowerCase()&&(c.type="MeshBasicMaterial"),"phong"===h.toLowerCase()&&(c.type="MeshPhongMaterial"),"standard"===h.toLowerCase()&&(c.type="MeshStandardMaterial");break;case"mapDiffuse":c.map=a(h,i.mapDiffuseRepeat,i.mapDiffuseOffset,i.mapDiffuseWrap,i.mapDiffuseAnisotropy);break;case"mapDiffuseRepeat":case"mapDiffuseOffset":case"mapDiffuseWrap":case"mapDiffuseAnisotropy":break;case"mapEmissive":c.emissiveMap=a(h,i.mapEmissiveRepeat,i.mapEmissiveOffset,i.mapEmissiveWrap,i.mapEmissiveAnisotropy);break;case"mapEmissiveRepeat":case"mapEmissiveOffset":case"mapEmissiveWrap":case"mapEmissiveAnisotropy":break;case"mapLight":c.lightMap=a(h,i.mapLightRepeat,i.mapLightOffset,i.mapLightWrap,i.mapLightAnisotropy);break;case"mapLightRepeat":case"mapLightOffset":case"mapLightWrap":case"mapLightAnisotropy":break;case"mapAO":c.aoMap=a(h,i.mapAORepeat,i.mapAOOffset,i.mapAOWrap,i.mapAOAnisotropy);break;case"mapAORepeat":case"mapAOOffset":case"mapAOWrap":case"mapAOAnisotropy":break;case"mapBump":c.bumpMap=a(h,i.mapBumpRepeat,i.mapBumpOffset,i.mapBumpWrap,i.mapBumpAnisotropy);break;case"mapBumpScale":c.bumpScale=h;break;case"mapBumpRepeat":case"mapBumpOffset":case"mapBumpWrap":case"mapBumpAnisotropy":break;case"mapNormal":c.normalMap=a(h,i.mapNormalRepeat,i.mapNormalOffset,i.mapNormalWrap,i.mapNormalAnisotropy);break;case"mapNormalFactor":c.normalScale=h;break;case"mapNormalRepeat":case"mapNormalOffset":case"mapNormalWrap":case"mapNormalAnisotropy":break;case"mapSpecular":c.specularMap=a(h,i.mapSpecularRepeat,i.mapSpecularOffset,i.mapSpecularWrap,i.mapSpecularAnisotropy);break;case"mapSpecularRepeat":case"mapSpecularOffset":case"mapSpecularWrap":case"mapSpecularAnisotropy":break;case"mapMetalness":c.metalnessMap=a(h,i.mapMetalnessRepeat,i.mapMetalnessOffset,i.mapMetalnessWrap,i.mapMetalnessAnisotropy);break;case"mapMetalnessRepeat":case"mapMetalnessOffset":case"mapMetalnessWrap":case"mapMetalnessAnisotropy":break;case"mapRoughness":c.roughnessMap=a(h,i.mapRoughnessRepeat,i.mapRoughnessOffset,i.mapRoughnessWrap,i.mapRoughnessAnisotropy);break;case"mapRoughnessRepeat":case"mapRoughnessOffset":case"mapRoughnessWrap":case"mapRoughnessAnisotropy":break;
1case"mapAlpha":c.alphaMap=a(h,i.mapAlphaRepeat,i.mapAlphaOffset,i.mapAlphaWrap,i.mapAlphaAnisotropy);break;case"mapAlphaRepeat":case"mapAlphaOffset":case"mapAlphaWrap":case"mapAlphaAnisotropy":break;case"flipSided":c.side=ds;break;case"doubleSided":c.side=ms;break;case"transparency":console.warn("THREE.Loader.createMaterial: transparency has been renamed to opacity"),c.opacity=h;break;case"depthTest":case"depthWrite":case"colorWrite":case"opacity":case"reflectivity":case"transparent":case"visible":case"wireframe":c[l]=h;break;case"vertexColors":!0===h&&(c.vertexColors=_s),"face"===h&&(c.vertexColors=bs);break;default:console.error("THREE.Loader.createMaterial: Unsupported",l,h)}}return"MeshBasicMaterial"===c.type&&delete c.emissive,"MeshPhongMaterial"!==c.type&&delete c.specular,c.opacity<1&&(c.transparent=!0),r.setTextures(u),r.parse(c)}}()});var yc={decodeText:function(t){if("undefined"!=typeof TextDecoder)return(new TextDecoder).decode(t);for(var e="",n=0,r=t.length;n<r;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)}};Object.assign(Ti.prototype,{crossOrigin:"anonymous",load:function(t,e,n,r){var i=this,o=this.texturePath&&"string"==typeof this.texturePath?this.texturePath:yc.extractUrlBase(t),s=new xr(this.manager);s.setWithCredentials(this.withCredentials),s.load(t,function(n){var r=JSON.parse(n),s=r.metadata;if(void 0!==s){var a=s.type;if(void 0!==a&&"object"===a.toLowerCase())return void console.error("THREE.JSONLoader: "+t+" should be loaded with THREE.ObjectLoader instead.")}var u=i.parse(r,o);e(u.geometry,u.materials)},n,r)},setCrossOrigin:function(t){return this.crossOrigin=t,this},setTexturePath:function(t){return this.texturePath=t,this},parse:function(){function t(t,e){function n(t,e){return t&1<<e}var r,o,s,u,c,l,h,p,f,d,m,v,y,b,_,w,x,E,S,T,C,O,A,P,R,L,N,I=t.faces,k=t.vertices,j=t.normals,D=t.colors,F=t.scale,U=0;if(void 0!==t.uvs){for(r=0;r<t.uvs.length;r++)t.uvs[r].length&&U++;for(r=0;r<U;r++)e.faceVertexUvs[r]=[]}for(u=0,c=k.length;u<c;)E=new a,E.x=k[u++]*F,E.y=k[u++]*F,E.z=k[u++]*F,e.vertices.push(E);for(u=0,c=I.length;u<c;)if(d=I[u++],m=n(d,0),v=n(d,1),y=n(d,3),b=n(d,4),_=n(d,5),w=n(d,6),x=n(d,7),m){if(T=new M,T.a=I[u],T.b=I[u+1],T.c=I[u+3],C=new M,C.a=I[u+1],C.b=I[u+2],C.c=I[u+3],u+=4,v&&(f=I[u++],T.materialIndex=f,C.materialIndex=f),s=e.faces.length,y)for(r=0;r<U;r++)for(P=t.uvs[r],e.faceVertexUvs[r][s]=[],e.faceVertexUvs[r][s+1]=[],o=0;o<4;o++)p=I[u++],L=P[2*p],N=P[2*p+1],R=new i(L,N),2!==o&&e.faceVertexUvs[r][s].push(R),0!==o&&e.faceVertexUvs[r][s+1].push(R);if(b&&(h=3*I[u++],T.normal.set(j[h++],j[h++],j[h]),C.normal.copy(T.normal)),_)for(r=0;r<4;r++)h=3*I[u++],A=new a(j[h++],j[h++],j[h]),2!==r&&T.vertexNormals.push(A),0!==r&&C.vertexNormals.push(A);if(w&&(l=I[u++],O=D[l],T.color.setHex(O),C.color.setHex(O)),x)for(r=0;r<4;r++)l=I[u++],O=D[l],2!==r&&T.vertexColors.push(new g(O)),0!==r&&C.vertexColors.push(new g(O));e.faces.push(T),e.faces.push(C)}else{if(S=new M,S.a=I[u++],S.b=I[u++],S.c=I[u++],v&&(f=I[u++],S.materialIndex=f),s=e.faces.length,y)for(r=0;r<U;r++)for(P=t.uvs[r],e.faceVertexUvs[r][s]=[],o=0;o<3;o++)p=I[u++],L=P[2*p],N=P[2*p+1],R=new i(L,N),e.faceVertexUvs[r][s].push(R);if(b&&(h=3*I[u++],S.normal.set(j[h++],j[h++],j[h])),_)for(r=0;r<3;r++)h=3*I[u++],A=new a(j[h++],j[h++],j[h]),S.vertexNormals.push(A);if(w&&(l=I[u++],S.color.setHex(D[l])),x)for(r=0;r<3;r++)l=I[u++],S.vertexColors.push(new g(D[l]));e.faces.push(S)}}function e(t,e){var n=void 0!==t.influencesPerVertex?t.influencesPerVertex:2;if(t.skinWeights)for(var r=0,i=t.skinWeights.length;r<i;r+=n){var o=t.skinWeights[r],s=n>1?t.skinWeights[r+1]:0,a=n>2?t.skinWeights[r+2]:0,u=n>3?t.skinWeights[r+3]:0;e.skinWeights.push(new l(o,s,a,u))}if(t.skinIndices)for(var r=0,i=t.skinIndices.length;r<i;r+=n){var c=t.skinIndices[r],h=n>1?t.skinIndices[r+1]:0,p=n>2?t.skinIndices[r+2]:0,f=n>3?t.skinIndices[r+3]:0;e.skinIndices.push(new l(c,h,p,f))}e.bones=t.bones,e.bones&&e.bones.length>0&&(e.skinWeights.length!==e.skinIndices.length||e.skinIndices.length!==e.vertices.length)&&console.warn("When skinning, number of vertices ("+e.vertices.length+"), skinIndices ("+e.skinIndices.length+"), and skinWeights ("+e.skinWeights.length+") should match.")}function n(t,e){var n=t.scale;if(void 0!==t.morphTargets)for(var r=0,i=t.morphTargets.length;r<i;r++){e.morphTargets[r]={},e.morphTargets[r].name=t.morphTargets[r].name,e.morphTargets[r].vertices=[];for(var o=e.morphTargets[r].vertices,s=t.morphTargets[r].vertices,u=0,c=s.length;u<c;u+=3){var l=new a;l.x=s[u]*n,l.y=s[u+1]*n,l.z=s[u+2]*n,o.push(l)}}if(void 0!==t.morphColors&&t.morphColors.length>0){console.warn('THREE.JSONLoader: "morphColors" no longer supported. Using them as face colors.');for(var h=e.faces,p=t.morphColors[0].colors,r=0,i=h.length;r<i;r++)h[r].color.fromArray(p,3*r)}}function r(t,e){var n=[],r=[];void 0!==t.animation&&r.push(t.animation),void 0!==t.animations&&(t.animations.length?r=r.concat(t.animations):r.push(t.animations));for(var i=0;i<r.length;i++){var o=wi.parseAnimation(r[i],e.bones);o&&n.push(o)}if(e.morphTargets){var s=wi.CreateClipsFromMorphTargetSequences(e.morphTargets,10);n=n.concat(s)}n.length>0&&(e.animations=n)}return function(i,o){void 0!==i.data&&(i=i.data),void 0!==i.scale?i.scale=1/i.scale:i.scale=1;var s=new C;return t(i,s),e(i,s),n(i,s),r(i,s),s.computeFaceNormals(),s.computeBoundingSphere(),void 0===i.materials||0===i.materials.length?{geometry:s}:{geometry:s,materials:Si.prototype.initMaterials(i.materials,o,this.crossOrigin)}}}()}),Object.assign(Mi.prototype,{crossOrigin:"anonymous",load:function(t,e,n,r){""===this.texturePath&&(this.texturePath=t.substring(0,t.lastIndexOf("/")+1));var i=this;new xr(i.manager).load(t,function(n){var o=null;try{o=JSON.parse(n)}catch(e){return void 0!==r&&r(e),void console.error("THREE:ObjectLoader: Can't parse "+t+".",e.message)}var s=o.metadata;if(void 0===s||void 0===s.type||"geometry"===s.type.toLowerCase())return void console.error("THREE.ObjectLoader: Can't load "+t+". Use THREE.JSONLoader instead.");i.parse(o,e)},n,r)},setTexturePath:function(t){return this.texturePath=t,this},setCrossOrigin:function(t){return this.crossOrigin=t,this}
vendor: 9,730 bytes, line 1
1,parse:function(t,e){var n=this.parseShape(t.shapes),r=this.parseGeometries(t.geometries,n),i=this.parseImages(t.images,function(){void 0!==e&&e(a)}),o=this.parseTextures(t.textures,i),s=this.parseMaterials(t.materials,o),a=this.parseObject(t.object,r,s);return t.animations&&(a.animations=this.parseAnimations(t.animations)),void 0!==t.images&&0!==t.images.length||void 0!==e&&e(a),a},parseShape:function(t){var e={};if(void 0!==t)for(var n=0,r=t.length;n<r;n++){var i=(new Qr).fromJSON(t[n]);e[i.uuid]=i}return e},parseGeometries:function(t,e){var n={};if(void 0!==t)for(var r=new Ti,i=new Ei,o=0,s=t.length;o<s;o++){var a,u=t[o];switch(u.type){case"PlaneGeometry":case"PlaneBufferGeometry":a=new oc[u.type](u.width,u.height,u.widthSegments,u.heightSegments);break;case"BoxGeometry":case"BoxBufferGeometry":case"CubeGeometry":a=new oc[u.type](u.width,u.height,u.depth,u.widthSegments,u.heightSegments,u.depthSegments);break;case"CircleGeometry":case"CircleBufferGeometry":a=new oc[u.type](u.radius,u.segments,u.thetaStart,u.thetaLength);break;case"CylinderGeometry":case"CylinderBufferGeometry":a=new oc[u.type](u.radiusTop,u.radiusBottom,u.height,u.radialSegments,u.heightSegments,u.openEnded,u.thetaStart,u.thetaLength);break;case"ConeGeometry":case"ConeBufferGeometry":a=new oc[u.type](u.radius,u.height,u.radialSegments,u.heightSegments,u.openEnded,u.thetaStart,u.thetaLength);break;case"SphereGeometry":case"SphereBufferGeometry":a=new oc[u.type](u.radius,u.widthSegments,u.heightSegments,u.phiStart,u.phiLength,u.thetaStart,u.thetaLength);break;case"DodecahedronGeometry":case"DodecahedronBufferGeometry":case"IcosahedronGeometry":case"IcosahedronBufferGeometry":case"OctahedronGeometry":case"OctahedronBufferGeometry":case"TetrahedronGeometry":case"TetrahedronBufferGeometry":a=new oc[u.type](u.radius,u.detail);break;case"RingGeometry":case"RingBufferGeometry":a=new oc[u.type](u.innerRadius,u.outerRadius,u.thetaSegments,u.phiSegments,u.thetaStart,u.thetaLength);break;case"TorusGeometry":case"TorusBufferGeometry":a=new oc[u.type](u.radius,u.tube,u.radialSegments,u.tubularSegments,u.arc);break;case"TorusKnotGeometry":case"TorusKnotBufferGeometry":a=new oc[u.type](u.radius,u.tube,u.tubularSegments,u.radialSegments,u.p,u.q);break;case"LatheGeometry":case"LatheBufferGeometry":a=new oc[u.type](u.points,u.segments,u.phiStart,u.phiLength);break;case"PolyhedronGeometry":case"PolyhedronBufferGeometry":a=new oc[u.type](u.vertices,u.indices,u.radius,u.details);break;case"ShapeGeometry":case"ShapeBufferGeometry":for(var c=[],l=0,h=u.shapes.length;l<h;l++){var p=e[u.shapes[l]];c.push(p)}a=new oc[u.type](c,u.curveSegments);break;case"ExtrudeGeometry":case"ExtrudeBufferGeometry":for(var c=[],l=0,h=u.shapes.length;l<h;l++){var p=e[u.shapes[l]];c.push(p)}var f=u.options.extrudePath;void 0!==f&&(u.options.extrudePath=(new dc[f.type]).fromJSON(f)),a=new oc[u.type](c,u.options);break;case"BufferGeometry":a=i.parse(u);break;case"Geometry":a=r.parse(u,this.texturePath).geometry;break;default:console.warn('THREE.ObjectLoader: Unsupported geometry type "'+u.type+'"');continue}a.uuid=u.uuid,void 0!==u.name&&(a.name=u.name),!0===a.isBufferGeometry&&void 0!==u.userData&&(a.userData=u.userData),n[u.uuid]=a}return n},parseMaterials:function(t,e){var n={};if(void 0!==t){var r=new xi;r.setTextures(e);for(var i=0,o=t.length;i<o;i++){var s=t[i];if("MultiMaterial"===s.type){for(var a=[],u=0;u<s.materials.length;u++)a.push(r.parse(s.materials[u]));n[s.uuid]=a}else n[s.uuid]=r.parse(s)}}return n},parseAnimations:function(t){for(var e=[],n=0;n<t.length;n++){var r=t[n],i=wi.parse(r);void 0!==r.uuid&&(i.uuid=r.uuid),e.push(i)}return e},parseImages:function(t,e){function n(t){return r.manager.itemStart(t),s.load(t,function(){r.manager.itemEnd(t)},void 0,function(){r.manager.itemEnd(t),r.manager.itemError(t)})}var r=this,i={};if(void 0!==t&&t.length>0){var o=new wr(e),s=new Tr(o);s.setCrossOrigin(this.crossOrigin);for(var a=0,u=t.length;a<u;a++){var c=t[a],l=c.url;if(Array.isArray(l)){i[c.uuid]=[];for(var h=0,p=l.length;h<p;h++){var f=l[h],d=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(f)?f:r.texturePath+f;i[c.uuid].push(n(d))}}else{var d=/^(\/\/)|([a-z]+:(\/\/)?)/i.test(c.url)?c.url:r.texturePath+c.url;i[c.uuid]=n(d)}}}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 r={};if(void 0!==t)for(var i=0,o=t.length;i<o;i++){var s=t[i];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);var a;a=Array.isArray(e[s.image])?new ct(e[s.image]):new c(e[s.image]),a.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],bc),a.wrapT=n(s.wrap[1],bc)),void 0!==s.format&&(a.format=s.format),void 0!==s.minFilter&&(a.minFilter=n(s.minFilter,_c)),void 0!==s.magFilter&&(a.magFilter=n(s.magFilter,_c)),void 0!==s.anisotropy&&(a.anisotropy=s.anisotropy),void 0!==s.flipY&&(a.flipY=s.flipY),r[s.uuid]=a}return r},parseObject:function(t,e,n){function r(t){return void 0===e[t]&&console.warn("THREE.ObjectLoader: Undefined geometry",t),e[t]}function i(t){if(void 0!==t){if(Array.isArray(t)){for(var e=[],r=0,i=t.length;r<i;r++){var o=t[r];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]}}var o;switch(t.type){case"Scene":o=new Ne,void 0!==t.background&&Number.isInteger(t.background)&&(o.background=new g(t.background)),void 0!==t.fog&&("Fog"===t.fog.type?o.fog=new Le(t.fog.color,t.fog.near,t.fog.far):"FogExp2"===t.fog.type&&(o.fog=new Re(t.fog.color,t.fog.density)));break;case"PerspectiveCamera":o=new Me(t.fov,t.aspect,t.near,t.far),void 0!==t.focus&&(o.focus=t.focus),void 0!==t.zoom&&(o.zoom=t.zoom),void 0!==t.filmGauge&&(o.filmGauge=t.filmGauge),void 0!==t.filmOffset&&(o.filmOffset=t.filmOffset),void 0!==t.view&&(o.view=Object.assign({},t.view));break;case"OrthographicCamera":o=new T(t.left,t.right,t.top,t.bottom,t.near,t.far),void 0!==t.zoom&&(o.zoom=t.zoom),void 0!==t.view&&(o.view=Object.assign({},t.view));break;case"AmbientLight":o=new ai(t.color,t.intensity);break;case"DirectionalLight":o=new si(t.color,t.intensity);break;case"PointLight":o=new ii(t.color,t.intensity,t.distance,t.decay);break;case"RectAreaLight":o=new ui(t.color,t.intensity,t.width,t.height);break;case"SpotLight":o=new ri(t.color,t.intensity,t.distance,t.angle,t.penumbra,t.decay);break;case"HemisphereLight":o=new ti(t.color,t.groundColor,t.intensity);break;case"SkinnedMesh":console.warn("THREE.ObjectLoader.parseObject() does not support SkinnedMesh yet.");case"Mesh":var s=r(t.geometry),a=i(t.material);o=s.bones&&s.bones.length>0?new Ue(s,a):new J(s,a);break;case"LOD":o=new je;break;case"Line":o=new ze(r(t.geometry),i(t.material),t.mode);break;case"LineLoop":o=new He(r(t.geometry),i(t.material));break;case"LineSegments":o=new Ve(r(t.geometry),i(t.material));break;case"PointCloud":case"Points":o=new We(r(t.geometry),i(t.material));break;case"Sprite":o=new ke(i(t.material));break;case"Group":o=new Te;break;default:o=new E}if(o.uuid=t.uuid,void 0!==t.name&&(o.name=t.name),void 0!==t.matrix?(o.matrix.fromArray(t.matrix),void 0!==t.matrixAutoUpdate&&(o.matrixAutoUpdate=t.matrixAutoUpdate),o.matrixAutoUpdate&&o.matrix.decompose(o.position,o.quaternion,o.scale)):(void 0!==t.position&&o.position.fromArray(t.position),void 0!==t.rotation&&o.rotation.fromArray(t.rotation),void 0!==t.quaternion&&o.quaternion.fromArray(t.quaternion),void 0!==t.scale&&o.scale.fromArray(t.scale)),void 0!==t.castShadow&&(o.castShadow=t.castShadow),void 0!==t.receiveShadow&&(o.receiveShadow=t.receiveShadow),t.shadow&&(void 0!==t.shadow.bias&&(o.shadow.bias=t.shadow.bias),void 0!==t.shadow.radius&&(o.shadow.radius=t.shadow.radius),void 0!==t.shadow.mapSize&&o.shadow.mapSize.fromArray(t.shadow.mapSize),void 0!==t.shadow.camera&&(o.shadow.camera=this.parseObject(t.shadow.camera))),void 0!==t.visible&&(o.visible=t.visible),void 0!==t.frustumCulled&&(o.frustumCulled=t.frustumCulled),void 0!==t.renderOrder&&(o.renderOrder=t.renderOrder),void 0!==t.userData&&(o.userData=t.userData),void 0!==t.layers&&(o.layers.mask=t.layers),void 0!==t.children)for(var u=t.children,c=0;c<u.length;c++)o.add(this.parseObject(u[c],e,n));if("LOD"===t.type)for(var l=t.levels,h=0;h<l.length;h++){var p=l[h],f=o.getObjectByProperty("uuid",p.object);void 0!==f&&o.addLevel(f,p.distance)}return o}});var gc={UVMapping:oa,CubeReflectionMapping:sa,CubeRefractionMapping:aa,EquirectangularReflectionMapping:ua,EquirectangularRefractionMapping:ca,SphericalReflectionMapping:la,CubeUVReflectionMapping:ha,CubeUVRefractionMapping:pa},bc={RepeatWrapping:fa,ClampToEdgeWrapping:da,MirroredRepeatWrapping:ma},_c={NearestFilter:va,NearestMipMapNearestFilter:ya,NearestMipMapLinearFilter:ga,LinearFilter:ba,LinearMipMapNearestFilter:_a,LinearMipMapLinearFilter:wa};Ci.prototype={constructor:Ci,setOptions:function(t){return this.options=t,this},load:function(t,e,n,r){void 0===t&&(t=""),void 0!==this.path&&(t=this.path+t),t=this.manager.resolveURL(t);var i=this,o=ac.get(t);if(void 0!==o)return i.manager.itemStart(t),setTimeout(function(){e&&e(o),i.manager.itemEnd(t)},0),o;fetch(t).then(function(t){return t.blob()}).then(function(t){return createImageBitmap(t,i.options)}).then(function(n){ac.add(t,n),e&&e(n),i.manager.itemEnd(t)}
vendor: 12,513 bytes, line 1
1).catch(function(e){r&&r(e),i.manager.itemEnd(t),i.manager.itemError(t)})},setCrossOrigin:function(){return this},setPath:function(t){return this.path=t,this}},Object.assign(Oi.prototype,{moveTo:function(t,e){this.currentPath=new Jr,this.subPaths.push(this.currentPath),this.currentPath.moveTo(t,e)},lineTo:function(t,e){this.currentPath.lineTo(t,e)},quadraticCurveTo:function(t,e,n,r){this.currentPath.quadraticCurveTo(t,e,n,r)},bezierCurveTo:function(t,e,n,r,i,o){this.currentPath.bezierCurveTo(t,e,n,r,i,o)},splineThru:function(t){this.currentPath.splineThru(t)},toShapes:function(t,e){function n(t){for(var e=[],n=0,r=t.length;n<r;n++){var i=t[n],o=new Qr;o.curves=i.curves,e.push(o)}return e}var r=rc.isClockWise,i=this.subPaths;if(0===i.length)return[];if(!0===e)return n(i);var o,s,a,u=[];if(1===i.length)return s=i[0],a=new Qr,a.curves=s.curves,u.push(a),u;var c=!r(i[0].getPoints());c=t?!c:c;var l,h=[],p=[],f=[],d=0;p[d]=void 0,f[d]=[];for(var m=0,v=i.length;m<v;m++)s=i[m],l=s.getPoints(),o=r(l),o=t?!o:o,o?(!c&&p[d]&&d++,p[d]={s:new Qr,p:l},p[d].s.curves=s.curves,c&&d++,f[d]=[]):f[d].push({h:s,p:l[0]});if(!p[0])return n(i);if(p.length>1){for(var y=!1,g=[],b=0,_=p.length;b<_;b++)h[b]=[];for(var b=0,_=p.length;b<_;b++)for(var w=f[b],x=0;x<w.length;x++){for(var E=w[x],S=!0,T=0;T<p.length;T++)(function(t,e){for(var n=e.length,r=!1,i=n-1,o=0;o<n;i=o++){var s=e[i],a=e[o],u=a.x-s.x,c=a.y-s.y;if(Math.abs(c)>Number.EPSILON){if(c<0&&(s=e[o],u=-u,a=e[i],c=-c),t.y<s.y||t.y>a.y)continue;if(t.y===s.y){if(t.x===s.x)return!0}else{var l=c*(t.x-s.x)-u*(t.y-s.y);if(0===l)return!0;if(l<0)continue;r=!r}}else{if(t.y!==s.y)continue;if(a.x<=t.x&&t.x<=s.x||s.x<=t.x&&t.x<=a.x)return!0}}return r})(E.p,p[T].p)&&(b!==T&&g.push({froms:b,tos:T,hole:x}),S?(S=!1,h[T].push(E)):y=!0);S&&h[b].push(E)}g.length>0&&(y||(f=h))}for(var M,m=0,C=p.length;m<C;m++){a=p[m].s,u.push(a),M=f[m];for(var O=0,A=M.length;O<A;O++)a.holes.push(M[O].h)}return u}}),Object.assign(Ai.prototype,{isFont:!0,generateShapes:function(t,e){void 0===e&&(e=100);for(var n=[],r=Pi(t,e,this.data),i=0,o=r.length;i<o;i++)Array.prototype.push.apply(n,r[i].toShapes());return n}}),Object.assign(Li.prototype,{load:function(t,e,n,r){var i=this,o=new xr(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 r=i.parse(n);e&&e(r)},n,r)},parse:function(t){return new Ai(t)},setPath:function(t){return this.path=t,this}});var wc,xc={getContext:function(){return void 0===wc&&(wc=new(window.AudioContext||window.webkitAudioContext)),wc},setContext:function(t){wc=t}};Object.assign(Ni.prototype,{load:function(t,e,n,r){var i=new xr(this.manager);i.setResponseType("arraybuffer"),i.load(t,function(t){var n=t.slice(0);xc.getContext().decodeAudioData(n,function(t){e(t)})},n,r)}}),Object.assign(Ii.prototype,{update:function(){var t,e,n,r,i,s,a,u,c=new o,l=new o;return function(o){if(t!==this||e!==o.focus||n!==o.fov||r!==o.aspect*this.aspect||i!==o.near||s!==o.far||a!==o.zoom||u!==this.eyeSep){t=this,e=o.focus,n=o.fov,r=o.aspect*this.aspect,i=o.near,s=o.far,a=o.zoom;var h=o.projectionMatrix.clone();u=this.eyeSep/2;var p,f,d=u*i/e,m=i*Math.tan(ku.DEG2RAD*n*.5)/a;l.elements[12]=-u,c.elements[12]=u,p=-m*r+d,f=m*r+d,h.elements[0]=2*i/(f-p),h.elements[8]=(f+p)/(f-p),this.cameraL.projectionMatrix.copy(h),p=-m*r-d,f=m*r-d,h.elements[0]=2*i/(f-p),h.elements[8]=(f+p)/(f-p),this.cameraR.projectionMatrix.copy(h)}this.cameraL.matrixWorld.copy(o.matrixWorld).multiply(l),this.cameraR.matrixWorld.copy(o.matrixWorld).multiply(c)}}()}),ki.prototype=Object.create(E.prototype),ki.prototype.constructor=ki,ji.prototype=Object.assign(Object.create(E.prototype),{constructor:ji,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 a,e=new s,n=new a,r=new a;return function(i){E.prototype.updateMatrixWorld.call(this,i);var o=this.context.listener,s=this.up;this.matrixWorld.decompose(t,e,n),r.set(0,0,-1).applyQuaternion(e),o.positionX?(o.positionX.setValueAtTime(t.x,this.context.currentTime),o.positionY.setValueAtTime(t.y,this.context.currentTime),o.positionZ.setValueAtTime(t.z,this.context.currentTime),o.forwardX.setValueAtTime(r.x,this.context.currentTime),o.forwardY.setValueAtTime(r.y,this.context.currentTime),o.forwardZ.setValueAtTime(r.z,this.context.currentTime),o.upX.setValueAtTime(s.x,this.context.currentTime),o.upY.setValueAtTime(s.y,this.context.currentTime),o.upZ.setValueAtTime(s.z,this.context.currentTime)):(o.setPosition(t.x,t.y,t.z),o.setOrientation(r.x,r.y,r.z,s.x,s.y,s.z))}}()}),Di.prototype=Object.assign(Object.create(E.prototype),{constructor:Di,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)return void console.warn("THREE.Audio: Audio is already playing.");if(!1===this.hasPlaybackControl)return void console.warn("THREE.Audio: this Audio has no playback control.");var t=this.context.createBufferSource();return t.buffer=this.buffer,t.loop=this.loop,t.onended=this.onEnded.bind(this),t.playbackRate.setValueAtTime(this.playbackRate,this.startTime),this.startTime=this.context.currentTime,t.start(this.startTime,this.offset),this.isPlaying=!0,this.source=t,this.connect()},pause:function(){return!1===this.hasPlaybackControl?void console.warn("THREE.Audio: this Audio has no playback control."):(!0===this.isPlaying&&(this.source.stop(),this.offset+=(this.context.currentTime-this.startTime)*this.playbackRate,this.isPlaying=!1),this)},stop:function(){return!1===this.hasPlaybackControl?void console.warn("THREE.Audio: this Audio has no playback control."):(this.source.stop(),this.offset=0,this.isPlaying=!1,this)},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},getFilter:function(){return this.getFilters()[0]},setFilter:function(t){return this.setFilters(t?[t]:[])},setPlaybackRate:function(t){return!1===this.hasPlaybackControl?void console.warn("THREE.Audio: this Audio has no playback control."):(this.playbackRate=t,!0===this.isPlaying&&this.source.playbackRate.setValueAtTime(this.playbackRate,this.context.currentTime),this)},getPlaybackRate:function(){return this.playbackRate},onEnded:function(){this.isPlaying=!1},getLoop:function(){return!1===this.hasPlaybackControl?(console.warn("THREE.Audio: this Audio has no playback control."),!1):this.loop},setLoop:function(t){return!1===this.hasPlaybackControl?void console.warn("THREE.Audio: this Audio has no playback control."):(this.loop=t,!0===this.isPlaying&&(this.source.loop=this.loop),this)},getVolume:function(){return this.gain.gain.value},setVolume:function(t){return this.gain.gain.setTargetAtTime(t,this.context.currentTime,.01),this}}),Fi.prototype=Object.assign(Object.create(Di.prototype),{constructor:Fi,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 a,e=new s,n=new a,r=new a;return function(i){E.prototype.updateMatrixWorld.call(this,i);var o=this.panner;this.matrixWorld.decompose(t,e,n),r.set(0,0,1).applyQuaternion(e),o.setPosition(t.x,t.y,t.z),o.setOrientation(r.x,r.y,r.z)}}()}),Object.assign(Ui.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(Bi.prototype,{accumulate:function(t,e){var n=this.buffer,r=this.valueSize,i=t*r+r,o=this.cumulativeWeight;if(0===o){for(var s=0;s!==r;++s)n[i+s]=n[s];o=e}else{o+=e;var a=e/o;this._mixBufferRegion(n,i,0,a,r)}this.cumulativeWeight=o},apply:function(t){var e=this.valueSize,n=this.buffer,r=t*e+e,i=this.cumulativeWeight,o=this.binding;if(this.cumulativeWeight=0,i<1){var s=3*e;this._mixBufferRegion(n,r,s,1-i,e)}for(var a=e,u=e+e;a!==u;++a)if(n[a]!==n[a+e]){o.setValue(n,r);break}},saveOriginalState:function(){var t=this.binding,e=this.buffer,n=this.valueSize,r=3*n;t.getValue(e,r);for(var i=n,o=r;i!==o;++i)e[i]=e[r+i%n];this.cumulativeWeight=0},restoreOriginalState:function(){var t=3*this.valueSize;this.binding.setValue(this.buffer,t)},_select:function(t,e,n,r,i){if(r>=.5)for(var o=0;o!==i;++o)t[e+o]=t[n+o]},_slerp:function(t,e,n,r){s.slerpFlat(t,e,t,e,t,n,r)},_lerp:function(t,e,n,r,i){for(var o=1-r,s=0;s!==i;++s){var a=e+s;t[a]=t[a]*o+t[n+s]*r}}});var Ec="\\[\\]\\.:\\/";Object.assign(zi.prototype,{getValue:function(t,e){this.bind();var n=this._targetGroup.nCachedObjects_,r=this._bindings[n];void 0!==r&&r.getValue(t,e)},setValue:function(t,e){for(var n=this._bindings,r=this._targetGroup.nCachedObjects_,i=n.length;r!==i;++r)n[r].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(Vi,{Composite:zi,create:function(t,e,n){return t&&t.isAnimationObjectGroup?new Vi.Composite(t,e,n):new Vi(t,e,n)},sanitizeNodeName:function(){var t=new RegExp("["+Ec+"]","g");return function(e){return e.replace(/\s/g,"_").replace(t,"")}}(),parseTrackName:function(){var t="[^"+Ec+"]",e="[^"+Ec.replace("\\.","")+"]",n=/((?:WC+[\/:])*)/.source.replace("WC",t),r=/(WCOD+)?/.source.replace("WCOD",e),i=/(?:\.(WC+)(?:\[(.+)\])?)?/.source.replace("WC",t),o=/\.(WC+)(?:\[(.+)\])?/.source.replace("WC",t),s=new RegExp("^"+n+r+i+o+"$"),a=["material","materials","bones"];return function(t){var e=s.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]},r=n.nodeName&&n.nodeName.lastIndexOf(".");if(void 0!==r&&-1!==r){var i=n.nodeName.substring(r+1);-1!==a.indexOf(i)&&(n.nodeName=n.nodeName.substring(0,r),n.objectName=i)}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);
vendor: 5,747 bytes, line 1
1if(void 0!==n)return n}if(t.children){var r=function(t){for(var n=0;n<t.length;n++){var i=t[n];if(i.name===e||i.uuid===e)return i;var o=r(i.children);if(o)return o}return null},i=r(t.children);if(i)return i}return null}}),Object.assign(Vi.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,r=0,i=n.length;r!==i;++r)t[e++]=n[r]},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,r=0,i=n.length;r!==i;++r)n[r]=t[e++]},function(t,e){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=t[e++];this.targetObject.needsUpdate=!0},function(t,e){for(var n=this.resolvedProperty,r=0,i=n.length;r!==i;++r)n[r]=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,r=e.propertyName,i=e.propertyIndex;if(t||(t=Vi.findNode(this.rootNode,e.nodeName)||this.rootNode,this.node=t),this.getValue=this._getValue_unavailable,this.setValue=this._setValue_unavailable,!t)return void console.error("THREE.PropertyBinding: Trying to update node for track: "+this.path+" but it wasn't found.");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 s=0;s<t.length;s++)if(t[s].name===o){o=s;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 a=t[r];if(void 0===a){var u=e.nodeName;return void console.error("THREE.PropertyBinding: Trying to update property for track: "+u+"."+r+" but it wasn't found.",t)}var c=this.Versioning.None;void 0!==t.needsUpdate?(c=this.Versioning.NeedsUpdate,this.targetObject=t):void 0!==t.matrixWorldNeedsUpdate&&(c=this.Versioning.MatrixWorldNeedsUpdate,this.targetObject=t);var l=this.BindingType.Direct;if(void 0!==i){if("morphTargetInfluences"===r){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(var s=0;s<this.node.geometry.morphAttributes.position.length;s++)if(t.geometry.morphAttributes.position[s].name===i){i=s;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(var s=0;s<this.node.geometry.morphTargets.length;s++)if(t.geometry.morphTargets[s].name===i){i=s;break}}}l=this.BindingType.ArrayElement,this.resolvedProperty=a,this.propertyIndex=i}else void 0!==a.fromArray&&void 0!==a.toArray?(l=this.BindingType.HasFromToArray,this.resolvedProperty=a):Array.isArray(a)?(l=this.BindingType.EntireArray,this.resolvedProperty=a):this.propertyName=r;this.getValue=this.GetterByBindingType[l],this.setValue=this.SetterByBindingTypeAndVersioning[l][c]},unbind:function(){this.node=null,this.getValue=this._getValue_unbound,this.setValue=this._setValue_unbound}}),Object.assign(Vi.prototype,{_getValue_unbound:Vi.prototype.getValue,_setValue_unbound:Vi.prototype.setValue}),Object.assign(Hi.prototype,{isAnimationObjectGroup:!0,add:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._paths,o=this._parsedPaths,s=this._bindings,a=s.length,u=void 0,c=0,l=arguments.length;c!==l;++c){var h=arguments[c],p=h.uuid,f=r[p];if(void 0===f){f=e++,r[p]=f,t.push(h);for(var d=0,m=a;d!==m;++d)s[d].push(new Vi(h,i[d],o[d]))}else if(f<n){u=t[f];var v=--n,y=t[v];r[y.uuid]=f,t[f]=y,r[p]=v,t[v]=h;for(var d=0,m=a;d!==m;++d){var g=s[d],b=g[v],_=g[f];g[f]=b,void 0===_&&(_=new Vi(h,i[d],o[d])),g[v]=_}}else t[f]!==u&&console.error("THREE.AnimationObjectGroup: Different objects with the same UUID detected. Clean the caches or recreate your infrastru
1cture when reloading scenes.")}this.nCachedObjects_=n},remove:function(){for(var t=this._objects,e=this.nCachedObjects_,n=this._indicesByUUID,r=this._bindings,i=r.length,o=0,s=arguments.length;o!==s;++o){var a=arguments[o],u=a.uuid,c=n[u];if(void 0!==c&&c>=e){var l=e++,h=t[l];n[h.uuid]=c,t[c]=h,n[u]=l,t[l]=a;for(var p=0,f=i;p!==f;++p){var d=r[p],m=d[l],v=d[c];d[c]=m,d[l]=v}}}this.nCachedObjects_=e},uncache:function(){for(var t=this._objects,e=t.length,n=this.nCachedObjects_,r=this._indicesByUUID,i=this._bindings,o=i.length,s=0,a=arguments.length;s!==a;++s){var u=arguments[s],c=u.uuid,l=r[c];if(void 0!==l)if(delete r[c],l<n){var h=--n,p=t[h],f=--e,d=t[f];r[p.uuid]=l,t[l]=p,r[d.uuid]=h,t[h]=d,t.pop();for(var m=0,v=o;m!==v;++m){var y=i[m],g=y[h],b=y[f];y[l]=g,y[h]=b,y.pop()}}else{var f=--e,d=t[f];r[d.uuid]=l,t[l]=d,t.pop();for(var m=0,v=o;m!==v;++m){var y=i[m];y[l]=y[f],y.pop()}}}this.nCachedObjects_=n},subscribe_:function(t,e){var n=this._bindingsIndicesByPath,r=n[t],i=this._bindings;if(void 0!==r)return i[r];var o=this._paths,s=this._parsedPaths,a=this._objects,u=a.length,c=this.nCachedObjects_,l=new Array(u);r=i.length,n[t]=r,o.push(t),s.push(e),i.push(l);for(var h=c,p=a.length;h!==p;++h){var f=a[h];l[h]=new Vi(f,t,e)}return l},unsubscribe_:function(t){var e=this._bindingsIndicesByPath,n=e[t];if(void 0!==n){var r=this._paths,i=this._parsedPaths,o=this._bindings,s=o.length-1,a=o[s];e[t[s]]=n,o[n]=a,o.pop(),i[n]=i[s],i.pop(),r[n]=r[s],r.pop()}}}),Object.assign(Gi.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 r=this._clip.duration,i=t._clip.duration,o=i/r,s=r/i;t.warp(1,o,e),this.warp(s,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 r=this._mixer,i=r.time,o=this._timeScaleInterpolant,s=this.timeScale;null===o&&(o=r._lendControlInterpolant(),this._timeScaleInterpolant=o);var a=o.parameterPositions,u=o.sampleValues;return a[0]=i,a[1]=i+n,u[0]=t/s,u[1]=e/s,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,r){if(!this.enabled)return void this._updateWeight(t);var i=this._startTime;if(null!==i){var o=(t-i)*n;if(o<0||0===n)return;this._startTime=null,e=n*o}e*=this._updateTimeScale(t);var s=this._updateTime(e),a=this._updateWeight(t);if(a>0)for(var u=this._interpolants,c=this._propertyBindings,l=0,h=u.length;l!==h;++l)u[l].evaluate(s),c[l].accumulate(r,a)},_updateWeight:function(t){var e=0;if(this.enabled){e=this.weight;var n=this._weightInterpolant;if(null!==n){var r=n.evaluate(t)[0];e*=r,t>n.parameterPositions[1]&&(this.stopFading(),0===r&&(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;if(0===t)return e;var n=this._clip.duration,r=this.loop,i=this._loopCount;if(r===hu){-1===i&&(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{var o=r===fu;if(-1===i&&(t>=0?(i=0,this._setEndings(!0,0===this.repetitions,o)):this._setEndings(0===this.repetitions,!0,o)),e>=n||e<0){var s=Math.floor(e/n);e-=n*s,i+=Math.abs(s);var a=this.repetitions-i;if(a<=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===a){var u=t<0;this._setEndings(u,!u,o)}else this._setEndings(!1,!1,o);this._loopCount=i,this._mixer.dispatchEvent({type:"loop",action:this,loopDelta:s})}}if(o&&1==(1&i))return this.time=e,n-e}return this.time=e,e},_setEndings:function(t,e,n){var r=this._interpolantSettings;n?(r.endingStart=gu,r.endingEnd=gu):(r.endingStart=t?this.zeroSlopeAtStart?gu:yu:bu,r.endingEnd=e?this.zeroSlopeAtEnd?gu:yu:bu)},_scheduleFading:function(t,e,n){var r=this._mixer,i=r.time,o=this._weightInterpolant;null===o&&(o=r._lendControlInterpolant(),this._weightInterpolant=o);var s=o.parameterPositions,a=o.sampleValues;return s[0]=i,a[0]=e,s[1]=i+t,a[1]=n,this}}),Wi.prototype=Object.assign(Object.create(r.prototype),{constructor:Wi,_bindAction:function(t,e){var n=t._localRoot||this._root,r=t._clip.tracks,i=r.length,o=t._propertyBindings,s=t._interpolants,a=n.uuid,u=this._bindingsByRootAndName,c=u[a];void 0===c&&(c={},u[a]=c);for(var l=0;l!==i;++l){var h=r[l],p=h.name,f=c[p];if(void 0!==f)o[l]=f;else{if(void 0!==(f=o[l])){null===f._cacheIndex&&(++f.referenceCount,this._addInactiveBinding(f,a,p));continue}var d=e&&e._propertyBindings[l].binding.parsedPath;f=new Bi(Vi.create(n,p,d),h.ValueTypeName,h.getValueSize()),++f.referenceCount,this._addInactiveBinding(f,a,p),o[l]=f}s[l].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,r
vendor: 8,684 bytes, line 1
1=this._actionsByClip[n];this._bindAction(t,r&&r.knownActions[0]),this._addInactiveAction(t,n,e)}for(var i=t._propertyBindings,o=0,s=i.length;o!==s;++o){var a=i[o];0==a.useCount++&&(this._lendBinding(a),a.saveOriginalState())}this._lendAction(t)}},_deactivateAction:function(t){if(this._isActiveAction(t)){for(var e=t._propertyBindings,n=0,r=e.length;n!==r;++n){var i=e[n];0==--i.useCount&&(i.restoreOriginalState(),this._takeBackBinding(i))}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 r=this._actions,i=this._actionsByClip,o=i[e];if(void 0===o)o={knownActions:[t],actionByRoot:{}},t._byClipCacheIndex=0,i[e]=o;else{var s=o.knownActions;t._byClipCacheIndex=s.length,s.push(t)}t._cacheIndex=r.length,r.push(t),o.actionByRoot[n]=t},_removeInactiveAction:function(t){var e=this._actions,n=e[e.length-1],r=t._cacheIndex;n._cacheIndex=r,e[r]=n,e.pop(),t._cacheIndex=null;var i=t._clip.uuid,o=this._actionsByClip,s=o[i],a=s.knownActions,u=a[a.length-1],c=t._byClipCacheIndex;u._byClipCacheIndex=c,a[c]=u,a.pop(),t._byClipCacheIndex=null,delete s.actionByRoot[(t._localRoot||this._root).uuid],0===a.length&&delete o[i],this._removeInactiveBindingsForAction(t)},_removeInactiveBindingsForAction:function(t){for(var e=t._propertyBindings,n=0,r=e.length;n!==r;++n){var i=e[n];0==--i.referenceCount&&this._removeInactiveBinding(i)}},_lendAction:function(t){var e=this._actions,n=t._cacheIndex,r=this._nActiveActions++,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i},_takeBackAction:function(t){var e=this._actions,n=t._cacheIndex,r=--this._nActiveActions,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i},_addInactiveBinding:function(t,e,n){var r=this._bindingsByRootAndName,i=r[e],o=this._bindings;void 0===i&&(i={},r[e]=i),i[n]=t,t._cacheIndex=o.length,o.push(t)},_removeInactiveBinding:function(t){var e=this._bindings,n=t.binding,r=n.rootNode.uuid,i=n.path,o=this._bindingsByRootAndName,s=o[r],a=e[e.length-1],u=t._cacheIndex;a._cacheIndex=u,e[u]=a,e.pop(),delete s[i];t:{for(var c in s)break t;delete o[r]}},_lendBinding:function(t){var e=this._bindings,n=t._cacheIndex,r=this._nActiveBindings++,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i},_takeBackBinding:function(t){var e=this._bindings,n=t._cacheIndex,r=--this._nActiveBindings,i=e[r];t._cacheIndex=r,e[r]=t,i._cacheIndex=n,e[n]=i},_lendControlInterpolant:function(){var t=this._controlInterpolants,e=this._nActiveControlInterpolants++,n=t[e];return void 0===n&&(n=new yi(new Float32Array(2),new Float32Array(2),1,this._controlInterpolantsResultBuffer),n.__cacheIndex=e,t[e]=n),n},_takeBackControlInterpolant:function(t){var e=this._controlInterpolants,n=t.__cacheIndex,r=--this._nActiveControlInterpolants,i=e[r];t.__cacheIndex=r,e[r]=t,i.__cacheIndex=n,e[n]=i},_controlInterpolantsResultBuffer:new Float32Array(1),clipAction:function(t,e){var n=e||this._root,r=n.uuid,i="string"==typeof t?wi.findByName(n,t):t,o=null!==i?i.uuid:t,s=this._actionsByClip[o],a=null;if(void 0!==s){var u=s.actionByRoot[r];if(void 0!==u)return u;a=s.knownActions[0],null===i&&(i=a._clip)}if(null===i)return null;var c=new Gi(this,i,e);return this._bindAction(c,a),this._addInactiveAction(c,o,r),c},existingAction:function(t,e){var n=e||this._root,r=n.uuid,i="string"==typeof t?wi.findByName(n,t):t,o=i?i.uuid:t,s=this._actionsByClip[o];return void 0!==s?s.actionByRoot[r]||null:null},stopAllAction:function(){var t=this._actions,e=this._nActiveActions,n=this._bindings,r=this._nActiveBindings;this._nActiveActions=0,this._nActiveBindings=0;for(var i=0;i!==e;++i)t[i].reset();for(var i=0;i!==r;++i)n[i].useCount=0;return this},update:function(t){t*=this.timeScale;for(var e=this._actions,n=this._nActiveActions,r=this.time+=t,i=Math.sign(t),o=this._accuIndex^=1,s=0;s!==n;++s){e[s]._update(r,t,i,o)}for(var a=this._bindings,u=this._nActiveBindings,s=0;s!==u;++s)a[s].apply(o);return this},getRoot:function(){return this._root},uncacheClip:function(t){var e=this._actions,n=t.uuid,r=this._actionsByClip,i=r[n];if(void 0!==i){for(var o=i.knownActions,s=0,a=o.length;s!==a;++s){var u=o[s];this._deactivateAction(u);var c=u._cacheIndex,l=e[e.length-1];u._cacheIndex=null,u._byClipCacheIndex=null,l._cacheIndex=c,e[c]=l,e.pop(),this._removeInactiveBindingsForAction(u)}delete r[n]}},uncacheRoot:function(t){var e=t.uuid,n=this._actionsByClip;for(var r in n){var i=n[r].actionByRoot,o=i[e];void 0!==o&&(this._deactivateAction(o),this._removeInactiveAction(o))}var s=this._bindingsByRootAndName,a=s[e];if(void 0!==a)for(var u in a){var c=a[u];c.restoreOriginalState(),this._removeInactiveBinding(c)}},uncacheAction:function(t,e){var n=this.existingAction(t,e);null!==n&&(this._deactivateAction(n),this._removeInactiveAction(n))}}),qi.prototype.clone=function(){return new qi(void 0===this.value.clone?this.value:this.value.clone())},Zi.prototype=Object.assign(Object.create(B.prototype),{constructor:Zi,isInstancedBufferGeometry:!0,copy:function(t){return B.prototype.copy.call(this,t),this.maxInstancedCount=t.maxInstancedCount,this},clone:function(){return(new this.constructor).copy(this)}}),Object.defineProperties(Xi.prototype,{count:{get:function(){return this.data.count}},array:{get:function(){return this.data.array}}}),Object.assign(Xi.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,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]=r,this},setXYZW:function(t,e,n,r,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]=r,this.data.array[t+3]=i,this}}),Object.defineProperty(Ki.prototype,"needsUpdate",{set:function(t){!0===t&&this.version++}}),Object.assign(Ki.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 r=0,i=this.stride;r<i;r++)this.array[t+r]=e.array[n+r];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}}),Yi.prototype=Object.assign(Object.create(Ki.prototype),{constructor:Yi,isInstancedInterleavedBuffer:!0,copy:function(t){return Ki.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Ji.prototype=Object.assign(Object.create(O.prototype),{constructor:Ji,isInstancedBufferAttribute:!0,copy:function(t){return O.prototype.copy.call(this,t),this.meshPerAttribute=t.meshPerAttribute,this}}),Object.assign(Qi.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:
1Unsupported camera type.")},intersectObject:function(t,e,n){var r=n||[];return to(t,this,r,e),r.sort($i),r},intersectObjects:function(t,e,n){var r=n||[];if(!1===Array.isArray(t))return console.warn("THREE.Raycaster.intersectObjects: objects is not an Array."),r;for(var i=0,o=t.length;i<o;i++)to(t[i],this,r,e);return r.sort($i),r}}),Object.assign(eo.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}}),Object.assign(no.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.radius=t.length(),0===this.radius?(this.theta=0,this.phi=0):(this.theta=Math.atan2(t.x,t.z),this.phi=Math.acos(ku.clamp(t.y/this.radius,-1,1))),this}}),Object.assign(ro.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.radius=Math.sqrt(t.x*t.x+t.z*t.z),this.theta=Math.atan2(t.x,t.z),this.y=t.y,this}}),Object.assign(io.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 i;return function(e,n){var r=t.copy(n).multiplyScalar(.5);return this.min.copy(e).sub(r),this.max.copy(e).add(r),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 i),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 i),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 i),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 i),e.copy(t).clamp(this.min,this.max)},distanceToPoint:function(){var t=new i;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)}}),oo.prototype=Object.create(E.prototype),oo.prototype.constructor=oo,oo.prototype.isImmediateRenderObject=!0,so.prototype=Object.create(Ve.prototype),so.prototype.constructor=so,so.prototype.update=function(){var t=new a,e=new a,n=new u;return function(){var r=["a","b","c"];this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);var i=this.object.matrixWorld,o=this.geometry.attributes.position,s=this.object.geometry;if(s&&s.isGeometry)for(var a=s.vertices,u=s.faces,c=0,l=0,h=u.length;l<h;l++)for(var p=u[l],f=0,d=p.vertexNormals.length;f<d;f++){var m=a[p[r[f]]],v=p.vertexNormals[f];t.copy(m).applyMatrix4(i),e.copy(v).applyMatrix3(n).normalize().multiplyScalar(this.size).add(t),o.setXYZ(c,t.x,t.y,t.z),c+=1,o.setXYZ(c,e.x,e.y,e.z),c+=1}else if(s&&s.isBufferGeometry)for(var y=s.attributes.position,g=s.attributes.normal,c=0,f=0,d=y.count;f<d;f++)t.set(y.getX(f),y.getY(f),y.getZ(f)).applyMatrix4(i),e.set(g.getX(f),g.getY(f),g.getZ(f)),e.applyMatrix3(n).normalize().multiplyScalar(this.size).add(t),o.setXYZ(c,t.x,t.y,t.z),c+=1,o.setXYZ(c,e.x,e.y,e.z),c+=1;o.needsUpdate=!0}}(),ao.prototype=Object.create(E.prototype),ao.prototype.constructor=ao,ao.prototype.dispose=function(){this.cone.geometry.dispose(),this.cone.material.dispose()},ao.prototype.update=function(){var t=new a,e=new a;return function(){this.light.updateMatrixWorld();var n=this.light.distance?this.light.distance:1e3,r=n*Math.tan(this.light.angle);this.cone.scale.set(r,r,n),t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),this.cone.lookAt(e.sub(t)),void 0!==this.color?this.cone.material.color.set(this.color):this.cone.material.color.copy(this.light.color)}}(),co.prototype=Object.create(Ve.prototype),co.prototype.constructor=co,co.prototype.updateMatrixWorld=function(){var t=new a,e=new o,n=new o;return function(r){var i=this.bones,o=this.geometry,s=o.getAttribute("position");n.getInverse(this.root.matrixWorld);for(var a=0,u=0;a<i.length;a++){var c=i[a];c.parent&&c.parent.isBone&&(e.multiplyMatrices(n,c.matrixWorld),t.setFromMatrixPosition(e),s.setXYZ(u,t.x,t.y,t.z),e.multiplyMatrices(n,c.parent.matrixWorld),t.setFromMatrixPosition(e),s.setXYZ(u+1,t.x,t.y,t.z),u+=2)}o.getAttribute("position").needsUpdate=!0,E.prototype.updateMatrixWorld.call(this,r)}}(),lo.prototype=Object.create(J.prototype),lo.prototype.constructor=lo,lo.prototype.dispose=function(){this.geometry.dispose(),this.material.dispose()},lo.prototype.update=function(){void 0!==this.color?this.material.color.set(this.color):this.material.color.copy(this.light.color)},ho.prototype=Object.create(E.prototype),ho.prototype.constructor=ho,ho.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},ho.prototype.update=function(){var t=.5*this.light.width,e=.5*this.light.height,n=this.line.geometry.attributes.position,r=n.array;r[0]=t,r[1]=-e,r[2]=0,r[3]=t,r[4]=e,r[5]=0,r[6]=-t,r[7]=e,r[8]=0,r[9]=-t,r[10]=-e,r[11]=0,r[12]=t,r[13]=-e,r[14]=0,n.needsUpdate=!0,void 0!==this.color?this.line.material.color.set(this.color):this.line.material.color.copy(this.light.color)},po.prototype=Object.create(E.prototype),po.prototype.constructor=po,po.prototype.dispose=function(){this.children[0].geometry.dispose(),this.children[0].material.dispose()},po.prototype.update=function(){var t=new a,e=new g,n=new g;return function(){var r=this.children[0];if(void 0!==this.color)this.material.color.set(this.color);else{var i=r.geometry.getAttribute("color");e.copy(this.light.color),n.copy(this.light.groundColor);for(var o=0,s=i.count;o<s;o++){var a=o<s/2?e:n;i.setXYZ(o,a.r,a.g,a.b)}i.needsUpdate=!0}r.lookAt(t.setFromMatrixPosition(this.light.matrixWorld).negate())}}(),fo.prototype=Object.create(Ve.prototype),fo.prototype.constructor=fo,mo.prototype=Object.create(Ve.prototype),mo.prototype.constructor=mo,vo.prototype=Object.create(Ve.prototype),vo.prototype.constructor=vo,vo.prototype.update=function(){var t=new a,e=new a,n=new u;return function(){this.object.updateMatrixWorld(!0),n.getNormalMatrix(this.object.matrixWorld);for(var r=this.object.matrixWorld,i=this.geometry.attributes.position,o=this.object.geometry,s=o.vertices,a=o.faces,u=0,c=0,l=a.length;c<l;c++){var h=a[c],p=h.normal;t.copy(s[h.a]).add(s[h.b]).add(s[h.c]).divideScalar(3).applyMatrix4(r),e.copy(p).applyMatrix3(n).normalize().multiplyScalar(this.size).add(t),i.setXYZ(u,t.x,t.y,t.z),u+=1,i.setXYZ(u,e.x,e.y,e.z),u+=1}i.needsUpdate=!0}}(),yo.prototype=Object.create(E.prototype),yo.prototype.constructor=yo,yo.prototype.dispose=function(){this.lightPlane.geometry.dispose(),this.lightPlane.material.dispose(),this.targetLine.geometry.dispose(),this.targetLine.material.dispose()},yo.prototype.update=function(){var t=new a,e=new a,n=new a;return function(){t.setFromMatrixPosition(this.light.matrixWorld),e.setFromMatrixPosition(this.light.target.matrixWorld),n.subVectors(e,t),this.lightPlane.lookAt(n),void 0!==this.color?(this.lightPlane.material.color.set(this.color),this.targetLine.material.color.set(this.color)):(this.lightPlane.material.color.copy(this.light.color),this.targetLine.material.color.copy(this.light.color)),this.targetLine.lookAt(n),this.targetLine.scale.z
vendor: 4,574 bytes, line 1
1=n.length()}}(),go.prototype=Object.create(Ve.prototype),go.prototype.constructor=go,go.prototype.update=function(){function t(t,o,s,a){r.set(o,s,a).unproject(i);var u=n[t];if(void 0!==u)for(var c=e.getAttribute("position"),l=0,h=u.length;l<h;l++)c.setXYZ(u[l],r.x,r.y,r.z)}var e,n,r=new a,i=new S;return function(){e=this.geometry,n=this.pointMap;i.projectionMatrix.copy(this.camera.projectionMatrix),t("c",0,0,-1),t("t",0,0,1),t("n1",-1,-1,-1),t("n2",1,-1,-1),t("n3",-1,1,-1),t("n4",1,1,-1),t("f1",-1,-1,1),t("f2",1,-1,1),t("f3",-1,1,1),t("f4",1,1,1),t("u1",.7,1.1,-1),t("u2",-.7,1.1,-1),t("u3",0,2,-1),t("cf1",-1,0,1),t("cf2",1,0,1),t("cf3",0,-1,1),t("cf4",0,1,1),t("cn1",-1,0,-1),t("cn2",1,0,-1),t("cn3",0,-1,-1),t("cn4",0,1,-1),e.getAttribute("position").needsUpdate=!0}}(),bo.prototype=Object.create(Ve.prototype),bo.prototype.constructor=bo,bo.prototype.update=function(){var t=new d;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,r=t.max,i=this.geometry.attributes.position,o=i.array;o[0]=r.x,o[1]=r.y,o[2]=r.z,o[3]=n.x,o[4]=r.y,o[5]=r.z,o[6]=n.x,o[7]=n.y,o[8]=r.z,o[9]=r.x,o[10]=n.y,o[11]=r.z,o[12]=r.x,o[13]=r.y,o[14]=n.z,o[15]=n.x,o[16]=r.y,o[17]=n.z,o[18]=n.x,o[19]=n.y,o[20]=n.z,o[21]=r.x,o[22]=n.y,o[23]=n.z,i.needsUpdate=!0,this.geometry.computeBoundingSphere()}}}(),bo.prototype.setFromObject=function(t){return this.object=t,this.update(),this},_o.prototype=Object.create(Ve.prototype),_o.prototype.constructor=_o,_o.prototype.updateMatrixWorld=function(t){var e=this.box;e.isEmpty()||(e.getCenter(this.position),e.getSize(this.scale),this.scale.multiplyScalar(.5),E.prototype.updateMatrixWorld.call(this,t))},wo.prototype=Object.create(ze.prototype),wo.prototype.constructor=wo,wo.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?ds:fs,this.lookAt(this.plane.normal),E.prototype.updateMatrixWorld.call(this,t)};var Sc,Tc;xo.prototype=Object.create(E.prototype),xo.prototype.constructor=xo,xo.prototype.setDirection=function(){var t,e=new a;return function(n){n.y>.99999?this.quaternion.set(0,0,0,1):n.y<-.99999?this.quaternion.set(1,0,0,0):(e.set(n.z,0,-n.x).normalize(),t=Math.acos(n.y),this.quaternion.setFromAxisAngle(e,t))}}(),xo.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()},xo.prototype.setColor=function(t){this.line.material.color.copy(t),this.cone.material.color.copy(t)},Eo.prototype=Object.create(Ve.prototype),Eo.prototype.constructor=Eo;var Mc=0,Cc=1;Or.create=function(t,e){return console.log("THREE.Curve.create() has been deprecated"),t.prototype=Object.create(Or.prototype),t.prototype.constructor=t,t.prototype.getPoint=e,t},Object.assign(Yr.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 C,n=0,r=t.length;n<r;n++){var i=t[n];e.vertices.push(new a(i.x,i.y,i.z||0))}return e}}),Object.assign(Jr.prototype,{fromPoints:function(t){console.warn("THREE.Path: .fromPoints() has been renamed to .setFromPoints()."),this.setFromPoints(t)}}),Go.prototype=Object.create(Lr.prototype),Wo.prototype=Object.create(Lr.prototype),qo.prototype=Object.create(Lr.prototype),Object.assign(qo.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.")}}),fo.prototype.setColors=function(){console.error("THREE.GridHelper: setColors() has been deprecated, pass them in the constructor instead.")},co.prototype.update=function(){console.error("THREE.SkeletonHelper: update(
1) no longer needs to be called.")},Object.assign(Si.prototype,{extractUrlBase:function(t){return console.warn("THREE.Loader: .extractUrlBase() has been deprecated. Use THREE.LoaderUtils.extractUrlBase() instead."),yc.extractUrlBase(t)}}),Object.assign(io.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(d.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)}}),K.prototype.center=function(t){return console.warn("THREE.Line3: .center() has been renamed to .getCenter()."),this.getCenter(t)},Object.assign(ku,{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()."),ku.floorPowerOfTwo(t)},nextPowerOfTwo:function(t){return console.warn("THREE.Math: .nextPowerOfTwo() has been renamed to .ceilPowerOfTwo()."),ku.ceilPowerOfTwo(t)}}),Object.assign(u.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(
1) 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(o.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 a),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(
1) 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,r,i,o){return console.warn("THREE.Matrix4: .makeFrustum() has been removed. Use .makePerspective( left, right, top, bottom, near, far ) instead."),this.makePerspective(t,e,r,n,i,o)}}),v.prototype.isIntersectionLine=function(t){return console.warn("THREE.Plane: .isIntersectionLine() has been renamed to .intersectsLine()."),this.intersectsLine(t)},s.prototype.multiplyVector3=function(t){return console.warn("THREE.Quaternion: .multiplyVector3(
1) has been removed. Use is now vector.applyQuaternion( quaternion ) instead."),t.applyQuaternion(this)},Object.assign(X.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(Y.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(Y,{barycoordFromPoint:function(t,e,n,r,i){return console.warn("THREE.Triangle: .barycoordFromPoint() has been renamed to .getBarycoord()."),Y.getBarycoord(t,e,n,r,i)},normal:function(t,e,n,r){return console.warn("THREE.Triangle: .normal() has been renamed to .getNormal()."),Y.getNormal(t,e,n,r)}}),Object.assign(Qr.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 Wn(this,t)},makeGeometry:function(t){return console.warn("THREE.Shape: .makeGeometry() has been removed. Use ShapeGeometry() instead."),new nr(this,t)}}),Object.assign(i.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(a.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(l.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(C.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(E.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(E.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 n
1ow uses quaternions by default.")},set:function(){console.warn("THREE.Object3D: .useQuaternion has been removed. The library now uses quaternions by default.")}}}),Object.defineProperties(je.prototype,{objects:{get:function(){return console.warn("THREE.LOD: .objects has been renamed to .levels."),this.levels}}}),Object.defineProperty(De.prototype,"useVertexTexture",{get:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")},set:function(){console.warn("THREE.Skeleton: useVertexTexture has been removed.")}}),Object.defineProperty(Or.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}}),Me.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($r.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(O.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(B.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(B.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(qn.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(qi.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(W.prototype,{wrapAround:{get:function(){console.warn("THREE.Material: .wrapAround has been removed.")}
vendor: 4,096 bytes, line 1
1,set:function(){console.warn("THREE.Material: .wrapAround has been removed.")}},wrapRGB:{get:function(){return console.warn("THREE.Material: .wrapRGB has been removed."),new g}},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===vs}}}),Object.defineProperties(vr.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(Z.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(Pe.prototype,{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(
1) has been removed.")}}),Object.defineProperties(Pe.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(be.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(h.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(Oe.prototype,{standing:{set:function(){console.warn("THREE.WebVRManager: .standing has been removed.")}}}),Di.prototype.load=function(t){console.warn("THREE.Audio: .load has been deprecated. Use THREE.AudioLoader instead.");var e=this;return(new Ni).load(t,function(t){e.setBuffer(t)}),this},Ui.prototype.getData=function(){return console.warn("THREE.AudioAnalyser: .getData() is now .getFrequencyData()."),this.getFrequencyData()},ki.prototype.updateCubeMap=function(t,e){return console.warn("THREE.CubeCamera: .updateCubeMap() is now .update(
1)."),this.update(t,e)};var Oc={merge:function(t,e,n){console.warn("THREE.GeometryUtils: .merge() has been moved to Geometry. Use geometry.merge( geometry2, matrix, materialIndexOffset ) instead.");var r;e.isMesh&&(e.matrixAutoUpdate&&e.updateMatrix(),r=e.matrix,e=e.geometry),t.merge(e,r,n)},center:function(t){return console.warn("THREE.GeometryUtils: .center() has been moved to Geometry. Use geometry.center() instead."),t.center()}},Ac={crossOrigin:void 0,loadTexture:function(t,e,n,r){console.warn("THREE.ImageUtils.loadTexture has been deprecated. Use THREE.TextureLoader() instead.");var i=new Cr;i.setCrossOrigin(this.crossOrigin);var o=i.load(t,n,void 0,r);return e&&(o.mapping=e),o},loadTextureCube:function(t,e,n,r){console.warn("THREE.ImageUtils.loadTextureCube has been deprecated. Use THREE.CubeTextureLoader() instead.");var i=new Mr;i.setCrossOrigin(this.crossOrigin);var o=i.load(t,n,void 0,r);return e&&(o.mapping=e),o},loadCompressedTexture:function(){console.error("THREE.ImageUtils.loadCompressedTexture has been removed. Use THREE.DDSLoader instead.")},loadCompressedTextureCube:function(){console.error("THREE.ImageUtils.loadCompressedTextureCube has been removed. Use THREE.DDSLoader instead.")}},Pc={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")}}},ZN67:function(t,e,n){"use strict";function r(t,e){return Object.prototype.hasOwnProperty.call(t,e)}var i="undefined"!=typeof Uint8Array&&"undefined"!=typeof Uint16Array&&"undefined"!=typeof Int32Array;e.assign=function(t){for(var e=Array.prototype.slice.call(arguments,1);e.length;){var n=e.shift();if(n){if("object"!=typeof n)throw new TypeError(n+"must be non-object");for(var i in n)r(n,i)&&(t[i]=n[i])}}return t},e.shrinkBuf=function(t,e){return t.length===e?t:t.subarray?t.subarray(0,e):(t.length=e,t)};var o={arraySet:function(t,e,n,r,i){if(e.subarray&&t.subarray)return void t.set(e.subarray(n,n+r),i);for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){var e,n,r,i,o,s;for(r=0,e=0,n=t.length;e<n;e++)r+=t[e].length;for(s=new Uint8Array(r),i=0,e=0,n=t.length;e<n;e++)o=t[e],s.set(o,i),i+=o.length;return s}},s={arraySet:function(t,e,n,r,i){for(var o=0;o<r;o++)t[i+o]=e[n+o]},flattenChunks:function(t){return[].concat.apply([],t)}};e.setTyped=function(t){t?(e.Buf8=Uint8Array,e.Buf16=Uint16Array,e.Buf32=Int32Array,e.assign(e,o)):(e.Buf8=Array,e.Buf16=Array,e.Buf32=Array,e.assign(e,s))},e.setTyped(i)},ZNYO:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new a(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.sample=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){var n=new u(t),r=e.subscribe(n);return r.add(s.subscribeToResult(n,this.notifier)),r},t}(),u=function(t){function e(){t.apply(this,arguments),this.hasValue=!1}return i(e,t),e.prototype._next=function(t){this.value=t,this.hasValue=!0},e.prototype.notifyNext=function(t,e,n,r,i){this.emitValue()},e.prototype.notifyComplete=function(){this.emitValue()},e.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},e}(o.OuterSubscriber)},ZQKz:function(t,e,n){"use strict";var r=n("bKpL"),i=n("1eQ7");r.Observable.prototype.first=i.first},ZQVD:function(t,e,n){"use strict";function r(){return i.ignoreElements()(this)}var i=n("XG4q");e.ignoreElements=r},ZXBV:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Yj/5");r.Observable.fromEventPattern=i.fromEventPattern},ZfEn:function(t,e,n){"use strict";(function(t){function r(t,e,n){function r(){for(var e;null!==(e=t.read());)s.push(e),a+=e.length;t.once("readable",r)}function i(e){t.removeListener("end",o),t.removeListener("readable",r),n(e)}function o(){var e,r=null;a>=w?r=new RangeError(x):e=v.concat(s,a),s=[],t.close(),n(r,e)}var s=[],a=0;t.on("error",i),t.on("end",o),t.end(e),r()}function i(t,e){if("string"==typeof e&&(e=v.from(e)),!v.isBuffer(e))throw new TypeError("Not a string or buffer");var n=t._finishFlushFlag;return t._processChunk(e,n)}function o(t){if(!(this instanceof o))return new o(t);f.call(this,t,g.DEFLATE)}function s(t){if(!(this instanceof s))return new s(t);f.call(this,t,g.INFLATE)}function a(t){if(!(this instanceof a))return new a(t);f.call(this,t,g.GZIP)}function u(t){if(!(this instanceof u))return new u(t);f.call(this,t,g.GUNZIP)}function c(t){if(!(this instanceof c))return new c(t);f.call(this,t,g.DEFLATERAW)}function l(t){if(!(this instanceof l))return new l(t);f.call(this,t,g.INFLATERAW)}function h(t){if(!(this instanceof h))return new h(t);f.call(this,t,g.UNZIP)}function p(t){return t===g.Z_NO_FLUSH||t===g.Z_PARTIAL_FLUSH||t===g.Z_SYNC_FLUSH||t===g.Z_FULL_FLUSH||t===g.Z_FINISH||t===g.Z_BLOCK}function f(t,n){var r=this;if(this._opts=t=t||{},this._chunkSize=t.chunkSize||e.Z_DEFAULT_CHUNK,y.call(this,t),t.flush&&!p(t.flush))throw new Error("Invalid flush flag: "+t.flush);if(t.finishFlush&&!p(t.finishFlush))throw new Error("Invalid flush flag: "+t.finishFlush);if(this._flushFlag=t.flush||g.Z_NO_FLUSH,this._finishFlushFlag=void 0!==t.finishFlush?t.finishFlush:g.Z_FINISH,t.chunkSize&&(t.chunkSize<e.Z_MIN_CHUNK||t.chunkSize>e.Z_MAX_CHUNK))throw new Error("Invalid chunk size: "+t.chunkSize);if(t.windowBits&&(t.windowBits<e.Z_MIN_WINDOWBITS||t.windowBits>e.Z_MAX_WINDOWBITS))throw new Error("Invalid windowBits: "+t.windowBits);if(t.level&&(t.level<e.Z_MIN_LEVEL||t.level>e.Z_MAX_LEVEL))throw new Error("Invalid compression level: "+t.level);if(t.memLevel&&(t.memLevel<e.Z_MIN_MEMLEVEL||t.memLevel>e.Z_MAX_MEMLEVEL))throw new Error("Invalid memLevel: "+t.memLevel);if(t.strategy&&t.strategy!=e.Z_FILTERED&&t.strategy!=e.Z_HUFFMAN_ONLY&&t.strategy!=e.Z_RLE&&t.strategy!=e.Z_FIXED&&t.strategy!=e.Z_DEFAULT_STRATEGY)throw new Error("Invalid strategy: "+t.strategy);if(t.dictionary&&!v.isBuffer(t.dictionary))throw new Error("Invalid dictionary: it should be a Buffer instance");this._handle=new g.Zlib(n);var i=this;this._hadError=!1,this._handle.onerror=function(t,n){d(i),i._hadError=!0;var r=new Error(t);r.errno=n,r.code=e.codes[n],i.emit("error",r)};var o=e.Z_DEFAULT_COMPRESSION;"number"==typeof t.level&&(o=t.level);var s=e.Z_DEFAULT_STRATEGY;"number"==typeof t.strategy&&(s=t.strategy),this._handle.init(t.windowBits||e.Z_DEFAULT_WINDOWBITS,o,t.memLevel||e.Z_DEFAULT_MEMLEVEL,s,t.dictionary),this._buffer=v.allocUnsafe(this._chunkSize),this._offset=0,this._level=o,this._strategy=s,this.once("end",this.close),Object.defineProperty(this,"_closed",{get:function(){return!r._handle},configurable:!0,enumerable:!0})}function d(e,n){n&&t.nextTick(n),e._handle&&(e._handle.close(),e._handle=null)}function m(t){t.emit("close")}var v=n("v0OU").Buffer,y=n("+Bur").Transform,g=n("QEDK"),b=n("N+n4"),_=n("iw1t").ok,w=n("v0OU").kMaxLength,x="Cannot create final Buffer. It would be larger than 0x"+w.toString(16)+" bytes";g.Z_MIN_WINDOWBITS=8,g.Z_MAX_WINDOWBITS=15,g.Z_DEFAULT_WINDOWBITS=15,g.Z_MIN_CHUNK=64,g.Z_MAX_CHUNK=1/0,g.Z_DEFAULT_CHUNK=16384,g.Z_MIN_MEMLEVEL=1,g.Z_MAX_MEMLEVEL=9,g.Z_DEFAULT_MEMLEVEL=8,g.Z_MIN_LEVEL=-1,g.Z_MAX_LEVEL=9,g.Z_DEFAULT_LEVEL=g.Z_DEFAULT_COMPRESSION;for(var E=Object.keys(g),S=0;S<E.length;S++){var T=E[S];T.match(/^Z/)&&Object.defineProperty(e,T,{enumerable:!0,value:g[T],writable:!1})}for(var M={Z_OK:g.Z_OK,Z_STREAM_END:g.Z_STREAM_END,Z_NEED_DICT:g.Z_NEED_DICT,Z_ERRNO:g.Z_ERRNO,Z_STREAM_ERROR:g.Z_STREAM_ERROR,Z_DATA_ERROR:g.Z_DATA_ERROR,Z_MEM_ERROR:g.Z_MEM_ERROR,Z_BUF_ER
1ROR:g.Z_BUF_ERROR,Z_VERSION_ERROR:g.Z_VERSION_ERROR},C=Object.keys(M),O=0;O<C.length;O++){var A=C[O];M[M[A]]=A}Object.defineProperty(e,"codes",{enumerable:!0,value:Object.freeze(M),writable:!1}),e.Deflate=o,e.Inflate=s,e.Gzip=a,e.Gunzip=u,e.DeflateRaw=c,e.InflateRaw=l,e.Unzip=h,e.createDeflate=function(t){return new o(t)},e.createInflate=function(t){return new s(t)},e.createDeflateRaw=function(t){return new c(t)},e.createInflateRaw=function(t){return new l(t)},e.createGzip=function(t){return new a(t)},e.createGunzip=function(t){return new u(t)},e.createUnzip=function(t){return new h(t)},e.deflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r(new o(e),t,n)},e.deflateSync=function(t,e){return i(new o(e),t)},e.gzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r(new a(e),t,n)},e.gzipSync=function(t,e){return i(new a(e),t)},e.deflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r(new c(e),t,n)},e.deflateRawSync=function(t,e){return i(new c(e),t)},e.unzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r(new h(e),t,n)},e.unzipSync=function(t,e){return i(new h(e),t)},e.inflate=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r(new s(e),t,n)},e.inflateSync=function(t,e){return i(new s(e),t)},e.gunzip=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r(new u(e),t,n)},e.gunzipSync=function(t,e){return i(new u(e),t)},e.inflateRaw=function(t,e,n){return"function"==typeof e&&(n=e,e={}),r(new l(e),t,n)},e.inflateRawSync=function(t,e){return i(new l(e),t)},b.inherits(f,y),f.prototype.params=function(n,r,i){if(n<e.Z_MIN_LEVEL||n>e.Z_MAX_LEVEL)throw new RangeError("Invalid compression level: "+n);if(r!=e.Z_FILTERED&&r!=e.Z_HUFFMAN_ONLY&&r!=e.Z_RLE&&r!=e.Z_FIXED&&r!=e.Z_DEFAULT_STRATEGY)throw new TypeError("Invalid strategy: "+r);if(this._level!==n||this._strategy!==r){var o=this;this.flush(g.Z_SYNC_FLUSH,function(){_(o._handle,"zlib binding closed"),o._handle.params(n,r),o._hadError||(o._level=n,o._strategy=r,i&&i())})}else t.nextTick(i)},f.prototype.reset=function(){return _(this._handle,"zlib binding closed"),this._handle.reset()},f.prototype._flush=function(t){this._transform(v.alloc(0),"",t)},f.prototype.flush=function(e,n){var r=this,i=this._writableState;("function"==typeof e||void 0===e&&!n)&&(n=e,e=g.Z_FULL_FLUSH),i.ended?n&&t.nextTick(n):i.ending?n&&this.once("end",n):i.needDrain?n&&this.once("drain",function(){return r.flush(e,n)}):(this._flushFlag=e,this.write(v.alloc(0),"",n))},f.prototype.close=function(e){d(this,e),t.nextTick(m,this)},f.prototype._transform=function(t,e,n){var r,i=this._writableState,o=i.ending||i.ended,s=o&&(!t||i.length===t.length);return null===t||v.isBuffer(t)?this._handle?(s?r=this._finishFlushFlag:(r=this._flushFlag,t.length>=i.length&&(this._flushFlag=this._opts.flush||g.Z_NO_FLUSH)),void this._processChunk(t,r,n)):n(new Error("zlib binding closed")):n(new Error("invalid input"))},f.prototype._processChunk=function(t,e,n){function r(c,p){if(this&&(this.buffer=null,this.callback=null),!a._hadError){var f=o-p;if(_(f>=0,"have should not go down"),f>0){var d=a._buffer.slice(a._offset,a._offset+f);a._offset+=f,u?a.push(d):(l.push(d),h+=d.length)}if((0===p||a._offset>=a._chunkSize)&&(o=a._chunkSize,a._offset=0,a._buffer=v.allocUnsafe(a._chunkSize)),0===p){if(s+=i-c,i=c,!u)return!0;var m=a._handle.write(e,t,s,i,a._buffer,a._offset,a._chunkSize);return m.callback=r,void(m.buffer=t)}if(!u)return!1;n()}}var i=t&&t.length,o=this._chunkSize-this._offset,s=0,a=this,u="function"==typeof n;if(!u){var c,l=[],h=0;this.on("error",function(t){c=t}),_(this._handle,"zlib binding closed");do{var p=this._handle.writeSync(e,t,s,i,this._buffer,this._offset,o)}while(!this._hadError&&r(p[0],p[1]));if(this._hadError)throw c;if(h>=w)throw d(this),new RangeError(x);var f=v.concat(l,h);return d(this),f}_(this._handle,"zlib binding closed");var m=this._handle.write(e,t,s,i,this._buffer,this._offset,o);m.buffer=t,m.callback=r},b.inherits(o,f),b.inherits(s,f),b.inherits(a,f),b.inherits(u,f),b.inherits(c,f),b.inherits(l,f),b.inherits(h,f)}).call(e,n("1WNV"))},Zfg9:function(t,e,n){"use strict";function r(t){return i.skipLast(t)(this)}var i=n("EmkH");e.skipLast=r},Zy2n:function(t,e,n){var r=n("ZGtO");r.MTLLoader=function(t){this.manager=void 0!==t?t:r.DefaultLoadingManager},r.MTLLoader.prototype={constructor:r.MTLLoader,load:function(t,e,n,i){var o=this,s=new r.FileLoader(this.manager);s.setPath(this.path),s.load(t,function(t){e(o.parse(t))},n,i)},setPath:function(t){return this.path=t,this},setTexturePath:function(t){return this.texturePath=t,this},setBaseUrl:function(t){return console.warn("THREE.MTLLoader: .setBaseUrl() is deprecated. Use .setTexturePath( path ) for texture path or .setPath( path ) for general base path instead."),this.setTexturePath(t)},setCrossOrigin:function(t){return this.crossOrigin=t,this},setMaterialOptions:function(t){return this.materialOptions=t,this},parse:function(t){for(var e=t.split("\n"),n={},i=/\s+/,o={},s=0;s<e.length;s++){var a=e[s];if(a=a.trim(),0!==a.length&&"#"!==a.charAt(0)){var u=a.indexOf(" "),c=u>=0?a.substring(0,u):a;c=c.toLowerCase();var l=u>=0?a.substring(u+1):"";if(l=l.trim(),"newmtl"===c)n={name:l},o[l]=n;else if(n)if("ka"===c||"kd"===c||"ks"===c){var h=l.split(i,3);n[c]=[parseFloat(h[0]),parseFloat(h[1]),parseFloat(h[2])]}else n[c]=l}}var p=new r.MTLLoader.MaterialCreator(this.texturePath||this.path,this.materialOptions);return p.setCrossOrigin(this.crossOrigin),p.setManager(this.manager),p.setMaterials(o),p}},r.MTLLoader.MaterialCreator=function(t,e){this.baseUrl=t||"",this.options=e,this.materialsInfo={},this.materials={},this.materialsArray=[],this.nameLookup={},this.side=this.options&&this.options.side?this.options.side:r.FrontSide,this.wrap=this.options&&this.options.wrap?this.options.wrap:r.RepeatWrapping},r.MTLLoader.MaterialCreator.prototype={constructor:r.MTLLoader.MaterialCreator,crossOrigin:"Anonymous",setCrossOrigin:function(t){this.crossOrigin=t},setManager:function(t){this.manager=t},setMaterials:function(t){this.materialsInfo=this.convert(t),this.materials={},this.materialsArray=[],this.nameLookup={}},convert:function(t){if(!this.options)return t;var e={};for(var n in t){var r=t[n],i={};e[n]=i;for(var o in r){var s=!0,a=r[o],u=o.toLowerCase();switch(u){case"kd":case"ka":case"ks":this.options&&this.options.normalizeRGB&&(a=[a[0]/255,a[1]/255,a[2]/255]),this.options&&this.options.ignoreZeroRGBs&&0===a[0]&&0===a[1]&&0===a[2]&&(s=!1)}s&&(i[u]=a)}}return e},preload:function(){for(var t in this.materialsInfo)this.create(t)},getIndex:function(t){return this.nameLookup[t]},getAsArray:function(){var t=0;for(var e in this.materialsInfo)this.materialsArray[t]=this.create(e),this.nameLookup[e]=t,t++;return this.materialsArray},create:function(t){return void 0===this.materials[t]&&this.createMaterial_(t),this.materials[t]},createMaterial_:function(t){function e(t,e){return"string"!=typeof e||""===e?"":/^https?:\/\//i.test(e)?e:t+e}
1function n(t,n){if(!s[t]){var r=i.getTextureParams(n,s),o=i.loadTexture(e(i.baseUrl,r.url));o.repeat.copy(r.scale),o.offset.copy(r.offset),o.wrapS=i.wrap,o.wrapT=i.wrap,s[t]=o}}var i=this,o=this.materialsInfo[t],s={name:t,side:this.side};for(var a in o){var u,c=o[a];if(""!==c)switch(a.toLowerCase()){case"kd":s.color=(new r.Color).fromArray(c);break;case"ks":s.specular=(new r.Color).fromArray(c);break;case"map_kd":n("map",c);break;case"map_ks":n("specularMap",c);break;case"norm":n("normalMap",c);break;case"map_bump":case"bump":n("bumpMap",c);break;case"ns":s.shininess=parseFloat(c);break;case"d":u=parseFloat(c),u<1&&(s.opacity=u,s.transparent=!0);break;case"tr":u=parseFloat(c),this.options&&this.options.invertTrProperty&&(u=1-u),u>0&&(s.opacity=1-u,s.transparent=!0)}}return this.materials[t]=new r.MeshPhongMaterial(s),this.materials[t]},getTextureParams:function(t,e){var n,i={scale:new r.Vector2(1,1),offset:new r.Vector2(0,0)},o=t.split(/\s+/);return n=o.indexOf("-bm"),n>=0&&(e.bumpScale=parseFloat(o[n+1]),o.splice(n,2)),n=o.indexOf("-s"),n>=0&&(i.scale.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),n=o.indexOf("-o"),n>=0&&(i.offset.set(parseFloat(o[n+1]),parseFloat(o[n+2])),o.splice(n,4)),i.url=o.join(" ").trim(),i},loadTexture:function(t,e,n,i,o){var s,a=r.Loader.Handlers.get(t),u=void 0!==this.manager?this.manager:r.DefaultLoadingManager;return null===a&&(a=new r.TextureLoader(u)),a.setCrossOrigin&&a.setCrossOrigin(this.crossOrigin),s=a.load(t,n,i,o),void 0!==e&&(s.mapping=e),s}},r.OBJLoader=function(){function t(){var t={objects:[],object:{},vertices:[],normals:[],colors:[],uvs:[],materialLibraries:[],startObject:function(t,e){if(this.object&&!1===this.object.fromDeclaration)return this.object.name=t,void(this.object.fromDeclaration=!1!==e);var n=this.object&&"function"==typeof this.object.currentMaterial?this.object.currentMaterial():void 0;if(this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0),this.object={name:t||"",fromDeclaration:!1!==e,geometry:{vertices:[],normals:[],colors:[],uvs:[]},materials:[],smooth:!0,startMaterial:function(t,e){var n=this._finalize(!1);n&&(n.inherited||n.groupCount<=0)&&this.materials.splice(n.index,1);var r={index:this.materials.length,name:t||"",mtllib:Array.isArray(e)&&e.length>0?e[e.length-1]:"",smooth:void 0!==n?n.smooth:this.smooth,groupStart:void 0!==n?n.groupEnd:0,groupEnd:-1,groupCount:-1,inherited:!1,clone:function(t){var e={index:"number"==typeof t?t:this.index,name:this.name,mtllib:this.mtllib,smooth:this.smooth,groupStart:0,groupEnd:-1,groupCount:-1,inherited:!1};return e.clone=this.clone.bind(e),e}};return this.materials.push(r),r},currentMaterial:function(){if(this.materials.length>0)return this.materials[this.materials.length-1]},_finalize:function(t){var e=this.currentMaterial();if(e&&-1===e.groupEnd&&(e.groupEnd=this.geometry.vertices.length/3,e.groupCount=e.groupEnd-e.groupStart,e.inherited=!1),t&&this.materials.length>1)for(var n=this.materials.length-1;n>=0;n--)this.materials[n].groupCount<=0&&this.materials.splice(n,1);return t&&0===this.materials.length&&this.materials.push({name:"",smooth:this.smooth}),e}},n&&n.name&&"function"==typeof n.clone){var r=n.clone(0);r.inherited=!0,this.object.materials.push(r)}this.objects.push(this.object)},finalize:function(){this.object&&"function"==typeof this.object._finalize&&this.object._finalize(!0)},parseVertexIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseNormalIndex:function(t,e){var n=parseInt(t,10);return 3*(n>=0?n-1:n+e/3)},parseUVIndex:function(t,e){var n=parseInt(t,10);return 2*(n>=0?n-1:n+e/2)},addVertex:function(t,e,n){var r=this.vertices,i=this.object.geometry.vertices;i.push(r[t+0],r[t+1],r[t+2]),i.push(r[e+0],r[e+1],r[e+2]),i.push(r[n+0],r[n+1],r[n+2])},addVertexPoint:function(t){var e=this.vertices;this.object.geometry.vertices.push(e[t+0],e[t+1],e[t+2])},addVertexLine:function(t){var e=this.vertices;this.object.geometry.vertices.push(e[t+0],e[t+1],e[t+2])},addNormal:function(t,e,n){var r=this.normals,i=this.object.geometry.normals;i.push(r[t+0],r[t+1],r[t+2]),i.push(r[e+0],r[e+1],r[e+2]),i.push(r[n+0],r[n+1],r[n+2])},addColor:function(t,e,n){var r=this.colors,i=this.object.geometry.colors;i.push(r[t+0],r[t+1],r[t+2]),i.push(r[e+0],r[e+1],r[e+2]),i.push(r[n+0],r[n+1],r[n+2])},addUV:function(t,e,n){var r=this.uvs,i=this.object.geometry.uvs;i.push(r[t+0],r[t+1]),i.push(r[e+0],r[e+1]),i.push(r[n+0],r[n+1])},addUVLine:function(t){var e=this.uvs;
1this.object.geometry.uvs.push(e[t+0],e[t+1])},addFace:function(t,e,n,r,i,o,s,a,u){var c=this.vertices.length,l=this.parseVertexIndex(t,c),h=this.parseVertexIndex(e,c),p=this.parseVertexIndex(n,c);if(this.addVertex(l,h,p),void 0!==r&&""!==r){var f=this.uvs.length;l=this.parseUVIndex(r,f),h=this.parseUVIndex(i,f),p=this.parseUVIndex(o,f),this.addUV(l,h,p)}if(void 0!==s&&""!==s){var d=this.normals.length;l=this.parseNormalIndex(s,d),h=s===a?l:this.parseNormalIndex(a,d),p=s===u?l:this.parseNormalIndex(u,d),this.addNormal(l,h,p)}this.colors.length>0&&this.addColor(l,h,p)},addPointGeometry:function(t){this.object.geometry.type="Points";for(var e=this.vertices.length,n=0,r=t.length;n<r;n++)this.addVertexPoint(this.parseVertexIndex(t[n],e))},addLineGeometry:function(t,e){this.object.geometry.type="Line";for(var n=this.vertices.length,r=this.uvs.length,i=0,o=t.length;i<o;i++)this.addVertexLine(this.parseVertexIndex(t[i],n));for(var s=0,o=e.length;s<o;s++)this.addUVLine(this.parseUVIndex(e[s],r))}};return t.startObject("",!1),t}function e(t){this.manager=void 0!==t?t:r.DefaultLoadingManager,this.materials=null}var n=/^[og]\s*(.+)?/,i=/^mtllib /,o=/^usemtl /;return e.prototype={constructor:e,load:function(t,e,n,i){var o=this,s=new r.FileLoader(o.manager);s.setPath(this.path),s.load(t,function(t){e(o.parse(t))},n,i)},setPath:function(t){return this.path=t,this},setMaterials:function(t){return this.materials=t,this},parse:function(e){console.time("OBJLoader");var s=new t;-1!==e.indexOf("\r\n")&&(e=e.replace(/\r\n/g,"\n")),-1!==e.indexOf("\\\n")&&(e=e.replace(/\\\n/g,""));for(var a=e.split("\n"),u="",c="",l=[],h="function"==typeof"".trimLeft,p=0,f=a.length;p<f;p++)if(u=a[p],u=h?u.trimLeft():u.trim(),0!==u.length&&"#"!==(c=u.charAt(0)))if("v"===c){var d=u.split(/\s+/);switch(d[0]){case"v":s.vertices.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3])),8===d.length&&s.colors.push(parseFloat(d[4]),parseFloat(d[5]),parseFloat(d[6]));break;case"vn":s.normals.push(parseFloat(d[1]),parseFloat(d[2]),parseFloat(d[3]));break;case"vt":s.uvs.push(parseFloat(d[1]),parseFloat(d[2]))}}else if("f"===c){for(var m=u.substr(1).trim(),v=m.split(/\s+/),y=[],g=0,b=v.length;g<b;g++){var _=v[g];if(_.length>0){var w=_.split("/");y.push(w)}}for(var x=y[0],g=1,b=y.length-1;g<b;g++){var E=y[g],S=y[g+1];s.addFace(x[0],E[0],S[0],x[1],E[1],S[1],x[2],E[2],S[2])}}else if("l"===c){var T=u.substring(1).trim().split(" "),M=[],C=[];if(-1===u.indexOf("/"))M=T;else for(var O=0,A=T.length;O<A;O++){var P=T[O].split("/");""!==P[0]&&M.push(P[0]),""!==P[1]&&C.push(P[1])}s.addLineGeometry(M,C)}else if("p"===c){var m=u.substr(1).trim(),R=m.split(" ");s.addPointGeometry(R)}else if(null!==(l=n.exec(u))){var L=(" "+l[0].substr(1).trim()).substr(1);s.startObject(L)}else if(o.test(u))s.object.startMaterial(u.substring(7).trim(),s.materialLibraries);else if(i.test(u))s.materialLibraries.push(u.substring(7).trim());else{if("s"!==c){if("\0"===u)continue;throw new Error('THREE.OBJLoader: Unexpected line: "'+u+'"')}if(l=u.split(" "),l.length>1){var N=l[1].trim().toLowerCase();s.object.smooth="0"!==N&&"off"!==N}else s.object.smooth=!0;var I=s.object.currentMaterial();I&&(I.smooth=s.object.smooth)}s.finalize();var k=new r.Group;k.materialLibraries=[].concat(s.materialLibraries);for(var p=0,f=s.objects.length;p<f;p++){var j=s.objects[p],D=j.geometry,F=j.materials,U="Line"===D.type,B="Points"===D.type,z=!1;if(0!==D.vertices.length){var V=new r.BufferGeometry;V.addAttribute("position",new r.Float32BufferAttribute(D.vertices,3)),D.normals.length>0?V.addAttribute("normal",new r.Float32BufferAttribute(D.normals,3)):V.computeVertexNormals(),D.colors.length>0&&(z=!0,V.addAttribute("color",new r.Float32BufferAttribute(D.colors,3))),D.uvs.length>0&&V.addAttribute("uv",new r.Float32BufferAttribute(D.uvs,2));for(var H=[],G=0,W=F.length;G<W;G++){var q=F[G],I=void 0;if(null!==this.materials)if(I=this.materials.create(q.name),!U||!I||I instanceof r.LineBasicMaterial){if(B&&I&&!(I instanceof r.PointsMaterial)){var Z=new r.PointsMaterial({size:10,sizeAttenuation:!1});X.copy(I),I=Z}}else{var X=new r.LineBasicMaterial;X.copy(I),X.lights=!1,I=X}I||(I=U?new r.LineBasicMaterial:B?new r.PointsMaterial({size:1,sizeAttenuation:!1}):new r.MeshPhongMaterial,I.name=q.name),I.flatShading=!q.smooth,I.vertexColors=z?r.VertexColors:r.NoColors,H.push(I)}var K;if(H.length>1){for(var G=0,W=F.length;G<W;G++){var q=F[G];V.addGroup(q.groupStart,q.groupCount,G)}K=U?new r.LineSegments(V,H):B?new r.Points(V,H):new r.Mesh(V,H)}else K=U?new r.LineSegments(V,H[0]):B?new r.Points(V,H[0]):new r.Mesh(V,H[0]);K.name=j.name,k.add(K)}}return console.timeEnd("OBJLoader"),k}},e}(),e.MTLLoader=r.MTLLoader,e.OBJLoader=r.OBJLoader},a9bY:function(t,e,n){"use strict";function r(t){return i.max(t)(this)}var i=n("jjPq");e.max=r},aCMF:function(t,e,n){"use strict";function r(t,e){return i.switchMap(t,e)(this)}var i=n("TupL");e.switchMap=r},aL6N:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new s(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.skipWhile=r;var s=function(){function t(t){this.predicate=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate))},t}(),a=function(t){function e(e,n){t.call(this,e),this.predicate=n,this.skipping=!0,this.index=0}return i(e,t),e.prototype._next=function(t){var e=this.destination;this.skipping&&this.tryCallPredicate(t),this.skipping||e.next(t)},e.prototype.tryCallPredicate=function(t){try{var e=this.predicate(t,this.index++);this.skipping=Boolean(e)}catch(t){this.destination.error(t)}},e}(o.Subscriber)},aOKN:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=function(t){function e(e,n){t.call(this),this.value=e,this.scheduler
1=n,this._isScalar=!0,n&&(this._isScalar=!1)}return r(e,t),e.create=function(t,n){return new e(t,n)},e.dispatch=function(t){var e=t.done,n=t.value,r=t.subscriber;if(e)return void r.complete();r.next(n),r.closed||(t.done=!0,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.value,r=this.scheduler;if(r)return r.schedule(e.dispatch,0,{done:!1,value:n,subscriber:t});t.next(n),t.closed||t.complete()},e}(i.Observable);e.ScalarObservable=o},aeUV:function(t,e,n){"use strict";function r(t,e){return e?function(n){return new h(n,e).lift(new c(t))}:function(e){return e.lift(new c(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("bKpL"),a=n("yW9Z"),u=n("ktfo");e.delayWhen=r;var c=function(){function t(t){this.delayDurationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.delayDurationSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.delayDurationSelector=n,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(t),this.removeSubscription(i),this.tryComplete()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){var e=this.removeSubscription(t);e&&this.destination.next(e),this.tryComplete()},e.prototype._next=function(t){try{var e=this.delayDurationSelector(t);e&&this.tryDelay(e,t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){this.completed=!0,this.tryComplete()},e.prototype.removeSubscription=function(t){t.unsubscribe();var e=this.delayNotifierSubscriptions.indexOf(t),n=null;return-1!==e&&(n=this.values[e],this.delayNotifierSubscriptions.splice(e,1),this.values.splice(e,1)),n},e.prototype.tryDelay=function(t,e){var n=u.subscribeToResult(this,t,e);n&&!n.closed&&(this.add(n),this.delayNotifierSubscriptions.push(n)),this.values.push(e)},e.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},e}(a.OuterSubscriber),h=function(t){function e(e,n){t.call(this),this.source=e,this.subscriptionDelay=n}return i(e,t),e.prototype._subscribe=function(t){this.subscriptionDelay.subscribe(new p(t,this.source))},e}(s.Observable),p=function(t){function e(e,n){t.call(this),this.parent=e,this.source=n,this.sourceSubscribed=!1}return i(e,t),e.prototype._next=function(t){this.subscribeToSource()},e.prototype._error=function(t){this.unsubscribe(),this.parent.error(t)},e.prototype._complete=function(){this.subscribeToSource()},e.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},e}(o.Subscriber)},afTc:function(t,e,n){"use strict";var r=n("bKpL"),i=n("OdUO");r.Observable.prototype.elementAt=i.elementAt},amjc:function(t,e,n){"use strict";var r=n("bKpL"),i=n("yQ6o");r.Observable.bindCallback=i.bindCallback},asHm:function(t,e,n){"use strict";var r=n("bKpL"),i=n("OADz");r.Observable.prototype.withLatestFrom=i.withLatestFrom},azLz:function(t,e,n){"use strict";var r=n("bKpL"),i=n("CH/r");r.Observable.prototype.debounceTime=i.debounceTime},bKpL:function(t,e,n){"use strict";var r=n("zijX"),i=n("rf3q"),o=n("DP67"),s=n("vxPf"),a=function(){function t(t){this._isScalar=!1,t&&(this._subscribe=t)}return t.prototype.lift=function(e){var n=new t;return n.source=this,n.operator=e,n},t.prototype.subscribe=function(t,e,n){var r=this.operator,o=i.toSubscriber(t,e,n);if(r?r.call(o,this.source):o.add(this.source?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},t.prototype._trySubscribe=function(t){try{return this._subscribe(t)}catch(e){t.syncErrorThrown=!0,t.syncErrorValue=e,t.error(e)}},t.prototype.forEach=function(t,e){var n=this;if(e||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?e=r.root.Rx.config.Promise:r.root.Promise&&(e=r.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var i;i=n.subscribe(function(e){if(i)try{t(e)}catch(t){r(t),i.unsubscribe()}else t(e)},r,e)})},t.prototype._subscribe=function(t){return this.source.subscribe(t)},t.prototype[o.observable]=function(){return this},t.prototype.pipe=function(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 0===t.length?this:s.pipeFromArray(t)(this)},t.prototype.toPromise=function(t){var e=this;if(t||(r.root.Rx&&r.root.Rx.config&&r.root.Rx.config.Promise?t=r.root.Rx.config.Promise:r.root.Promise&&(t=r.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var r;e.subscribe(function(t){return r=t},function(t){return n(t)},function(){return t(r)})})},t.create=function(e){return new t(e)},t}();e.Observable=a},bLt9:function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new h(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("xFbG"),a=n("RdI5"),u=n("XRvs"),c=n("yW9Z"),l=n("ktfo");e.windowToggle=r;var h=function(){function t(t,e){this.openings=t,this.closingSelector=e}return t.prototype.call=function(t,e){return e.subscribe(new p(t,this.openings,this.closingSelector))},t}(),p=function(t){function e(e,n,r){t.call(this,e),this.openings=n,this.closingSelector=r,this.contexts=[],this.add(this.openSubscription=l.subscribeToResult(this,n,n))}return i(e,t),e.prototype._next=function(t){var e=this.contexts;if(e)for(var n=e.length,r=0;r<n;r++)e[r].window.next(t)},e.prototype._error=function(e){var n=this.contexts;if(this.contexts=null,n)for(var r=n.length,i=-1;++i<r;){var o=n[i];o.window.error(e),o.subscription.unsubscribe()}t.prototype._error.call(this,e)},e.prototype._complete=function(){var e=this.contexts;if(this.contexts=null,e)for(var n=e.length,r=-1;++r<n;){var i=e[r];i.window.complete(),i.subscription.unsubscribe()}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.contexts;if(this.contexts=null,t)for(var e=t.length,n=-1;++n<e;){var r=t[n];r.window.unsubscribe(),r.subscription.unsubscribe()}},e.prototype.notifyNext=function(t,e,n,r,i){if(t===this.openings){var c=this.closingSelector,h=a.tryCatch(c)(e);if(h===u.errorObject)return this.error(u.errorObject.e);var p=new o.Subject,f=new s.Subscription,d={window:p,subscription:f};this.contexts.push(d);var m=l.subscribeToResult(this,h,d);m.closed?this.closeWindow(this.contexts.length-1):(m.context=d,f.add(m)),this.destination.next(p)}else this.closeWindow(this.contexts.indexOf(t))},e.prototype.notifyError=function(t){this.error(t)},e.prototype.notifyComplete=function(t){t!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(t.context))},e.prototype.closeWindow=function(t){if(-1!==t){var e=this.contexts,n=e[t],r=n.window,i=n.subscription;e.splice(t,1),r.complete(),i.unsubscribe()}},e}(c.OuterSubscriber)},bN7U:function(t,e,n){"use strict";var r=n("bKpL"),i=n("fxBd");r.Observable.prototype.takeLast=i.takeLast},bawV:function(t,e,n){"use strict";var r=n("ZN67"),i=[3,4,5,6,7,8,9,10,11,13,15,17,19,23,27,31,35,43,51,59,67,83,99,115,131,163,195,227,258,0,0],o=[16,16,16,16,16,16,16,16,17,17,17,17,18,18,18,18,19,19,19,19,20,20,20,20,21,21,21,21,16,72,78],s=[1,2,3,4,5,7,9,13,17,25,33,49,65,97,129,193,257,385,513,769,1025,1537,2049,3073,4097,6145,8193,12289,16385,24577,0,0],a=[16,16,16,16,17,17,18,18,19,19,20,20,21,21,22,22,23,23,24,24,25,25,26,26,27,27,28,28,29,29,64,64];t.exports=function(t,e,n,u,c,l,h,p){var f,d,m,v,y,g,b,_,w,x=p.bits,E=0,S=0,T=0,M=0,C=0,O=0,A=0,P=0,R=0,L=0,N=null,I=0,k=new r.Buf16(16),j=new r.Buf16(16),D=null,F=0;for(E=0;E<=15;E++)k[E]=0;for(S=0;S<u;S++)k[e[n+S]]++;for(C=x,M=15;M>=1&&0===k[M];M--);if(C>M&&(C=M),0===M)return c[l++]=20971520,c[l++]=20971520,p.bits=1,0;for(T=1;
1T<M&&0===k[T];T++);for(C<T&&(C=T),P=1,E=1;E<=15;E++)if(P<<=1,(P-=k[E])<0)return-1;if(P>0&&(0===t||1!==M))return-1;for(j[1]=0,E=1;E<15;E++)j[E+1]=j[E]+k[E];for(S=0;S<u;S++)0!==e[n+S]&&(h[j[e[n+S]]++]=S);if(0===t?(N=D=h,g=19):1===t?(N=i,I-=257,D=o,F-=257,g=256):(N=s,D=a,g=-1),L=0,S=0,E=T,y=l,O=C,A=0,m=-1,R=1<<C,v=R-1,1===t&&R>852||2===t&&R>592)return 1;for(;;){b=E-A,h[S]<g?(_=0,w=h[S]):h[S]>g?(_=D[F+h[S]],w=N[I+h[S]]):(_=96,w=0),f=1<<E-A,d=1<<O,T=d;do{d-=f,c[y+(L>>A)+d]=b<<24|_<<16|w|0}while(0!==d);for(f=1<<E-1;L&f;)f>>=1;if(0!==f?(L&=f-1,L+=f):L=0,S++,0==--k[E]){if(E===M)break;E=e[n+h[S]]}if(E>C&&(L&v)!==m){for(0===A&&(A=C),y+=T,O=E-A,P=1<<O;O+A<M&&!((P-=k[O+A])<=0);)O++,P<<=1;if(R+=1<<O,1===t&&R>852||2===t&&R>592)return 1;m=L&v,c[m]=C<<24|O<<16|y-l|0}}return 0!==L&&(c[y+L]=E-A<<24|64<<16|0),p.bits=C,0}},bjDG:function(t,e,n){"use strict";var r=n("NZPJ");e.generate=r.GenerateObservable.create},bm2B:function(t,e,n){"use strict";function r(t){return null==t||0===t.length}function i(t){return null!=t}function o(t){var e=Object(I._23)(t)?Object(j.fromPromise)(t):t;if(!Object(I._22)(e))throw new Error("Expected validator to return Promise or Observable.");return e}function s(t,e){return e.map(function(e){return e(t)})}function a(t,e){return e.map(function(e){return e(t)})}function u(t){var e=t.reduce(function(t,e){return null!=e?Object.assign({},t,e):t},{});return 0===Object.keys(e).length?null:e}function c(){return/android (\d+)/.test((Object(F.u)()?Object(F.u)().getUserAgent():"").toLowerCase())}function l(t){return t.validate?function(e){return t.validate(e)}:t}function h(t){return t.validate?function(e){return t.validate(e)}:t}function p(){throw new Error("unimplemented")}function f(t,e){return null==t?""+e:(e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function d(t){return t.split(":")[0]}function m(t,e){return null==t?""+e:("string"==typeof e&&(e="'"+e+"'"),e&&"object"==typeof e&&(e="Object"),(t+": "+e).slice(0,50))}function v(t){return t.split(":")[0]}function y(t,e){return e.path.concat([t])}function g(t,e){t||x(e,"Cannot find control with"),e.valueAccessor||x(e,"No value accessor for form control with"),t.validator=G.compose([t.validator,e.validator]),t.asyncValidator=G.composeAsync([t.asyncValidator,e.asyncValidator]),e.valueAccessor.writeValue(t.value),e.valueAccessor.registerOnChange(function(n){e.viewToModelUpdate(n),t.markAsDirty(),t.setValue(n,{emitModelToViewChange:!1})}),e.valueAccessor.registerOnTouched(function(){return t.markAsTouched()}),t.registerOnChange(function(t,n){e.valueAccessor.writeValue(t),n&&e.viewToModelUpdate(t)}),e.valueAccessor.setDisabledState&&t.registerOnDisabledChange(function(t){e.valueAccessor.setDisabledState(t)}),e._rawValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})}),e._rawAsyncValidators.forEach(function(e){e.registerOnValidatorChange&&e.registerOnValidatorChange(function(){return t.updateValueAndValidity()})})}function b(t,e){e.valueAccessor.registerOnChange(function(){return w(e)}),e.valueAccessor.registerOnTouched(function(){return w(e)}),e._rawValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),e._rawAsyncValidators.forEach(function(t){t.registerOnValidatorChange&&t.registerOnValidatorChange(null)}),t&&t._clearChangeFns()}function _(t,e){null==t&&x(e,"Cannot find control with"),t.validator=G.compose([t.validator,e.validator]),t.asyncValidator=G.composeAsync([t.asyncValidator,e.asyncValidator])}function w(t){return x(t,"There is no FormControl instance attached to form control element with")}function x(t,e){var n;throw n=t.path.length>1?"path: '"+t.path.join(" -> ")+"'":t.path[0]?"name: '"+t.path+"'":"unspecified name attribute",new Error(e+" "+n)}function E(t){return null!=t?G.compose(t.map(l)):null}function S(t){return null!=t?G.composeAsync(t.map(h)):null}function T(t,e){if(!t.hasOwnProperty("model"))return!1;var n=t.model;return!!n.isFirstChange()||!Object(I._26)(e,n.currentValue)}function M(t){return ht.some(function(e){return t.constructor===e})}function C(t,e){if(!e)return null;var n=void 0,r=void 0,i=void 0;return e.forEach(function(e){e.constructor===Y?n=e:M(e)?(r&&x(t,"More than one built-in value accessor matches form control with"),r=e):(i&&x(t,"More than one custom value accessor matches form control with"),i=e)}),i||(r||(n||(x(t,"No valid value accessor for form control with"),null)))}function O(t,e,n){return null==e?null:(e instanceof Array||(e=e.split(n)),e instanceof Array&&0===e.length?null:e.reduce(function(t,e){return t instanceof bt?t.controls[e]||null:t instanceof _t?t.at(e)||null:null},t))}function A(t){return Array.isArray(t)?E(t):t||null}function P(t){return Array.isArray(t)?S(t):t||null}function R(t,e){var n=t.indexOf(e);n>-1&&t.splice(n,1)}function L(t){return!(t instanceof Dt||t instanceof kt||t instanceof Ut)}n.d(e,"b",function(){return Z}),n.d(e,"c",function(){return B}),n.d(e,"m",function(){return W}),n.d(e,"a",function(){return K}),n.d(e,"d",function(){return Y}),n.d(e,"n",function(){return $}),n.d(e,"o",function(){return mt}),n.d(e,"p",function(){return vt}),n.d(e,"r",function(){return nt}),n.d(e,"g",function(){return zt}),n.d(e,"i",function(){return kt}),n.d(e,"q",function(){return at}),n.d(e,"t",function(){return st}),n.d(e,"k",function(){return Jt}),n.d(e,"e",function(){return te}),n.d(e,"f",function(){return gt}),n.d(e,"h",function(){return bt}),n.d(e,"l",function(){return z}),n.d(e,"u",function(){return G}),n.d(e,"j",function(){return se}),n.d(e,"s",function(){return ae}),n.d(e,"v",function(){return oe}),n.d(e,"w",function(){return ee}),n.d(e,"x",function(){return et}),n.d(e,"y",function(){return lt});var N=n("6Xbx"),I=n("/oeL"),k=n("Fhmd"),j=(n.n(k),n("QU9E")),D=(n.n(j),n("lx+J")),F=(n.n(D),n("fc+i")),U=function(){function t(){}return t.prototype.control=function(){},Object.defineProperty(t.prototype,"value",{get:function(){return this.control?this.control.value:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return this.control?this.control.valid:null},enumerable:!0,configurable:!0}
1),Object.defineProperty(t.prototype,"invalid",{get:function(){return this.control?this.control.invalid:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return this.control?this.control.pending:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return this.control?this.control.disabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return this.control?this.control.enabled:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this.control?this.control.errors:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this.control?this.control.pristine:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return this.control?this.control.dirty:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this.control?this.control.touched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return this.control?this.control.untouched:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this.control?this.control.statusChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this.control?this.control.valueChanges:null},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),t.prototype.reset=function(t){void 0===t&&(t=void 0),this.control&&this.control.reset(t)},t.prototype.hasError=function(t,e){return!!this.control&&this.control.hasError(t,e)},t.prototype.getError=function(t,e){return this.control?this.control.getError(t,e):null},t}(),B=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N.a(e,t),Object.defineProperty(e.prototype,"formDirective",{get:function(){return null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return null},enumerable:!0,configurable:!0}),e}(U),z=new I.v("NgValidators"),V=new I.v("NgAsyncValidators"),H=/^(?=.{1,254}$)(?=.{1,64}@)[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+(\.[-!#$%&'*+/0-9=?A-Z^_`a-z{|}~]+)*@[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?(\.[A-Za-z0-9]([A-Za-z0-9-]{0,61}[A-Za-z0-9])?)*$/,G=function(){function t(){}return t.min=function(t){return function(e){if(r(e.value)||r(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n<t?{min:{min:t,actual:e.value}}:null}},t.max=function(t){return function(e){if(r(e.value)||r(t))return null;var n=parseFloat(e.value);return!isNaN(n)&&n>t?{max:{max:t,actual:e.value}}:null}},t.required=function(t){return r(t.value)?{required:!0}:null},t.requiredTrue=function(t){return!0===t.value?null:{required:!0}},t.email=function(t){return H.test(t.value)?null:{email:!0}},t.minLength=function(t){return function(e){if(r(e.value))return null;var n=e.value?e.value.length:0;return n<t?{minlength:{requiredLength:t,actualLength:n}}:null}},t.maxLength=function(t){return function(e){var n=e.value?e.value.length:0;return n>t?{maxlength:{requiredLength:t,actualLength:n}}:null}},t.pattern=function(e){if(!e)return t.nullValidator;var n,i;return"string"==typeof e?(i="^"+e+"$",n=new RegExp(i)):(i=e.toString(),n=e),function(t){if(r(t.value))return null;var e=t.value;return n.test(e)?null:{pattern:{requiredPattern:i,actualValue:e}}}},t.nullValidator=function(t){return null},t.compose=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){return u(s(t,e))}},t.composeAsync=function(t){if(!t)return null;var e=t.filter(i);return 0==e.length?null:function(t){var n=a(t,e).map(o);return D.map.call(Object(k.forkJoin)(n),u)}},t}(),W=new I.v("NgValueAccessor"),q={provide:W,useExisting:Object(I._4)(function(){return Z}),multi:!0},Z=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"checked",t)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();Z.decorators=[{type:I.m,args:[{selector:"input[type=checkbox][formControlName],input[type=checkbox][formControl],input[type=checkbox][ngModel]",host:{"(change)":"onChange($event.target.checked)","(blur)":"onTouched()"},providers:[q]}]}],Z.ctorParameters=function(){return[{type:I.N},{type:I.n}]};var X={provide:W,useExisting:Object(I._4)(function(){return Y}),multi:!0},K=new I.v("CompositionEventMode"),Y=function(){function t(t,e,n){this._renderer=t,this._elementRef=e,this._compositionMode=n,this.onChange=function(t){},this.onTouched=function(){},this._composing=!1,null==this._compositionMode&&(this._compositionMode=!c())}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=t},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._handleInput=function(t){(!this._compositionMode||this._compositionMode&&!this._composing)&&this.onChange(t)}
1,t.prototype._compositionStart=function(){this._composing=!0},t.prototype._compositionEnd=function(t){this._composing=!1,this._compositionMode&&this.onChange(t)},t}();Y.decorators=[{type:I.m,args:[{selector:"input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]",host:{"(input)":"_handleInput($event.target.value)","(blur)":"onTouched()","(compositionstart)":"_compositionStart()","(compositionend)":"_compositionEnd($event.target.value)"},providers:[X]}]}],Y.ctorParameters=function(){return[{type:I.N},{type:I.n},{type:void 0,decorators:[{type:I.H},{type:I.t,args:[K]}]}]};var J={provide:W,useExisting:Object(I._4)(function(){return Q}),multi:!0},Q=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){var e=null==t?"":t;this._renderer.setProperty(this._elementRef.nativeElement,"value",e)},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();Q.decorators=[{type:I.m,args:[{selector:"input[type=number][formControlName],input[type=number][formControl],input[type=number][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[J]}]}],Q.ctorParameters=function(){return[{type:I.N},{type:I.n}]};var $=function(t){function e(){var e=t.apply(this,arguments)||this;return e._parent=null,e.name=null,e.valueAccessor=null,e._rawValidators=[],e._rawAsyncValidators=[],e}return N.a(e,t),Object.defineProperty(e.prototype,"validator",{get:function(){return p()},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return p()},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){},e}(U),tt={provide:W,useExisting:Object(I._4)(function(){return nt}),multi:!0},et=function(){function t(){this._accessors=[]}return t.prototype.add=function(t,e){this._accessors.push([t,e])},t.prototype.remove=function(t){for(var e=this._accessors.length-1;e>=0;--e)if(this._accessors[e][1]===t)return void this._accessors.splice(e,1)},t.prototype.select=function(t){var e=this;this._accessors.forEach(function(n){e._isSameGroup(n,t)&&n[1]!==t&&n[1].fireUncheck(t.value)})},t.prototype._isSameGroup=function(t,e){return!!t[0].control&&(t[0]._parent===e._control._parent&&t[1].name===e.name)},t}();et.decorators=[{type:I.u}],et.ctorParameters=function(){return[]};var nt=function(){function t(t,e,n,r){this._renderer=t,this._elementRef=e,this._registry=n,this._injector=r,this.onChange=function(){},this.onTouched=function(){}}return t.prototype.ngOnInit=function(){this._control=this._injector.get($),this._checkName(),this._registry.add(this._control,this)},t.prototype.ngOnDestroy=function(){this._registry.remove(this)},t.prototype.writeValue=function(t){this._state=t===this.value,this._renderer.setProperty(this._elementRef.nativeElement,"checked",this._state)},t.prototype.registerOnChange=function(t){var e=this;this._fn=t,this.onChange=function(){t(e.value),e._registry.select(e)}},t.prototype.fireUncheck=function(t){this.writeValue(t)},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._checkName=function(){this.name&&this.formControlName&&this.name!==this.formControlName&&this._throwNameError(),!this.name&&this.formControlName&&(this.name=this.formControlName)},t.prototype._throwNameError=function(){throw new Error('\n If you define both a name and a formControlName attribute on your radio button, their values\n must match. Ex: <input type="radio" formControlName="food" name="food">\n ')},t}();nt.decorators=[{type:I.m,args:[{selector:"input[type=radio][formControlName],input[type=radio][formControl],input[type=radio][ngModel]",host:{"(change)":"onChange()","(blur)":"onTouched()"},providers:[tt]}]}],nt.ctorParameters=function(){return[{type:I.N},{type:I.n},{type:et},{type:I.w}]},nt.propDecorators={name:[{type:I.x}],formControlName:[{type:I.x}],value:[{type:I.x}]};var rt={provide:W,useExisting:Object(I._4)(function(){return it}),multi:!0},it=function(){function t(t,e){this._renderer=t,this._elementRef=e,this.onChange=function(t){},this.onTouched=function(){}}return t.prototype.writeValue=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"value",parseFloat(t))},t.prototype.registerOnChange=function(t){this.onChange=function(e){t(""==e?null:parseFloat(e))}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t}();it.decorators=[{type:I.m,args:[{selector:"input[type=range][formControlName],input[type=range][formControl],input[type=range][ngModel]",host:{"(change)":"onChange($event.target.value)","(input)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[rt]}]}],it.ctorParameters=function(){return[{type:I.N},{type:I.n}]};var ot={provide:W,useExisting:Object(I._4)(function(){return st}),multi:!0},st=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=I._26}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){this.value=t;var e=this._getOptionId(t);null==e&&this._renderer.setProperty(this._elementRef.nativeElement,"selectedIndex",-1);var n=f(e,t);this._renderer.setProperty(this._elementRef.nativeElement,"value",n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){e.value=e._getOptionValue(n),t(e.value)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(){return(this._idCounter++).toString()},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r),t))return r}return null},t.prototype._getOptionValue=function(t){var e=d(t);return this._optionMap.has(e)?this._optionMap.get(e):t},t}();st.decorators=[{type:I.m,args:[{selector:"select:not([multiple])[formControlName],select:not([multiple])[formControl],select:not([multiple])[ngModel]",host:{"(change)":"onChange($event.target.value)","(blur)":"onTouched()"},providers:[ot]}]}],st.ctorParameters=function(){return[{type:I.N},{type:I.n}]},st.propDecorators={compareWith:[{type:I.x}]};var at=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption())}
1return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._select._optionMap.set(this.id,t),this._setElementValue(f(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._setElementValue(t),this._select&&this._select.writeValue(this._select.value)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();at.decorators=[{type:I.m,args:[{selector:"option"}]}],at.ctorParameters=function(){return[{type:I.n},{type:I.N},{type:st,decorators:[{type:I.H},{type:I.q}]}]},at.propDecorators={ngValue:[{type:I.x,args:["ngValue"]}],value:[{type:I.x,args:["value"]}]};var ut={provide:W,useExisting:Object(I._4)(function(){return ct}),multi:!0},ct=function(){function t(t,e){this._renderer=t,this._elementRef=e,this._optionMap=new Map,this._idCounter=0,this.onChange=function(t){},this.onTouched=function(){},this._compareWith=I._26}return Object.defineProperty(t.prototype,"compareWith",{set:function(t){if("function"!=typeof t)throw new Error("compareWith must be a function, but received "+JSON.stringify(t));this._compareWith=t},enumerable:!0,configurable:!0}),t.prototype.writeValue=function(t){var e=this;this.value=t;var n;if(Array.isArray(t)){var r=t.map(function(t){return e._getOptionId(t)});n=function(t,e){t._setSelected(r.indexOf(e.toString())>-1)}}else n=function(t,e){t._setSelected(!1)};this._optionMap.forEach(n)},t.prototype.registerOnChange=function(t){var e=this;this.onChange=function(n){var r=[];if(n.hasOwnProperty("selectedOptions"))for(var i=n.selectedOptions,o=0;o<i.length;o++){var s=i.item(o),a=e._getOptionValue(s.value);r.push(a)}else for(var i=n.options,o=0;o<i.length;o++){var s=i.item(o);if(s.selected){var a=e._getOptionValue(s.value);r.push(a)}}e.value=r,t(r)}},t.prototype.registerOnTouched=function(t){this.onTouched=t},t.prototype.setDisabledState=function(t){this._renderer.setProperty(this._elementRef.nativeElement,"disabled",t)},t.prototype._registerOption=function(t){var e=(this._idCounter++).toString();return this._optionMap.set(e,t),e},t.prototype._getOptionId=function(t){for(var e=0,n=Array.from(this._optionMap.keys());e<n.length;e++){var r=n[e];if(this._compareWith(this._optionMap.get(r)._value,t))return r}return null},t.prototype._getOptionValue=function(t){var e=v(t);return this._optionMap.has(e)?this._optionMap.get(e)._value:t},t}();ct.decorators=[{type:I.m,args:[{selector:"select[multiple][formControlName],select[multiple][formControl],select[multiple][ngModel]",host:{"(change)":"onChange($event.target)","(blur)":"onTouched()"},providers:[ut]}]}],ct.ctorParameters=function(){return[{type:I.N},{type:I.n}]},ct.propDecorators={compareWith:[{type:I.x}]};var lt=function(){function t(t,e,n){this._element=t,this._renderer=e,this._select=n,this._select&&(this.id=this._select._registerOption(this))}return Object.defineProperty(t.prototype,"ngValue",{set:function(t){null!=this._select&&(this._value=t,this._setElementValue(m(this.id,t)),this._select.writeValue(this._select.value))},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"value",{set:function(t){this._select?(this._value=t,this._setElementValue(m(this.id,t)),this._select.writeValue(this._select.value)):this._setElementValue(t)},enumerable:!0,configurable:!0}),t.prototype._setElementValue=function(t){this._renderer.setProperty(this._element.nativeElement,"value",t)},t.prototype._setSelected=function(t){this._renderer.setProperty(this._element.nativeElement,"selected",t)},t.prototype.ngOnDestroy=function(){this._select&&(this._select._optionMap.delete(this.id),this._select.writeValue(this._select.value))},t}();lt.decorators=[{type:I.m,args:[{selector:"option"}]}],lt.ctorParameters=function(){return[{type:I.n},{type:I.N},{type:ct,decorators:[{type:I.H},{type:I.q}]}]},lt.propDecorators={ngValue:[{type:I.x,args:["ngValue"]}],value:[{type:I.x,args:["value"]}]};var ht=[Z,it,Q,st,ct,nt],pt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N.a(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormGroup(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormGroup(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormGroup(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return y(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return E(this._val
1idators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){},e}(B),ft=function(){function t(t){this._cd=t}return Object.defineProperty(t.prototype,"ngClassUntouched",{get:function(){return!!this._cd.control&&this._cd.control.untouched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassTouched",{get:function(){return!!this._cd.control&&this._cd.control.touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPristine",{get:function(){return!!this._cd.control&&this._cd.control.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassDirty",{get:function(){return!!this._cd.control&&this._cd.control.dirty},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassValid",{get:function(){return!!this._cd.control&&this._cd.control.valid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassInvalid",{get:function(){return!!this._cd.control&&this._cd.control.invalid},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClassPending",{get:function(){return!!this._cd.control&&this._cd.control.pending},enumerable:!0,configurable:!0}),t}(),dt={"[class.ng-untouched]":"ngClassUntouched","[class.ng-touched]":"ngClassTouched","[class.ng-pristine]":"ngClassPristine","[class.ng-dirty]":"ngClassDirty","[class.ng-valid]":"ngClassValid","[class.ng-invalid]":"ngClassInvalid","[class.ng-pending]":"ngClassPending"},mt=function(t){function e(e){return t.call(this,e)||this}return N.a(e,t),e}(ft);mt.decorators=[{type:I.m,args:[{selector:"[formControlName],[ngModel],[formControl]",host:dt}]}],mt.ctorParameters=function(){return[{type:$,decorators:[{type:I.S}]}]};var vt=function(t){function e(e){return t.call(this,e)||this}return N.a(e,t),e}(ft);vt.decorators=[{type:I.m,args:[{selector:"[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]",host:dt}]}],vt.ctorParameters=function(){return[{type:B,decorators:[{type:I.S}]}]};var yt=function(){function t(t,e){this.validator=t,this.asyncValidator=e,this._onCollectionChange=function(){},this._pristine=!0,this._touched=!1,this._onDisabledChange=[]}return Object.defineProperty(t.prototype,"value",{get:function(){return this._value},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"parent",{get:function(){return this._parent},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"status",{get:function(){return this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valid",{get:function(){return"VALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"invalid",{get:function(){return"INVALID"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pending",{get:function(){return"PENDING"==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"disabled",{get:function(){return"DISABLED"===this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"enabled",{get:function(){return"DISABLED"!==this._status},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"errors",{get:function(){return this._errors},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"pristine",{get:function(){return this._pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"dirty",{get:function(){return!this.pristine},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"touched",{get:function(){return this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"untouched",{get:function(){return!this._touched},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"valueChanges",{get:function(){return this._valueChanges},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"statusChanges",{get:function(){return this._statusChanges},enumerable:!0,configurable:!0}),t.prototype.setValidators=function(t){this.validator=A(t)},t.prototype.setAsyncValidators=function(t){this.asyncValidator=P(t)},t.prototype.clearValidators=function(){this.validator=null},t.prototype.clearAsyncValidators=function(){this.asyncValidator=null},t.prototype.markAsTouched=function(t){void 0===t&&(t={}),this._touched=!0,this._parent&&!t.onlySelf&&this._parent.markAsTouched(t)},t.prototype.markAsUntouched=function(t){void 0===t&&(t={}
vendor: 12,295 bytes, line 1
1),this._touched=!1,this._forEachChild(function(t){t.markAsUntouched({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype.markAsDirty=function(t){void 0===t&&(t={}),this._pristine=!1,this._parent&&!t.onlySelf&&this._parent.markAsDirty(t)},t.prototype.markAsPristine=function(t){void 0===t&&(t={}),this._pristine=!0,this._forEachChild(function(t){t.markAsPristine({onlySelf:!0})}),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype.markAsPending=function(t){void 0===t&&(t={}),this._status="PENDING",this._parent&&!t.onlySelf&&this._parent.markAsPending(t)},t.prototype.disable=function(t){void 0===t&&(t={}),this._status="DISABLED",this._errors=null,this._forEachChild(function(t){t.disable({onlySelf:!0})}),this._updateValue(),!1!==t.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!0)})},t.prototype.enable=function(t){void 0===t&&(t={}),this._status="VALID",this._forEachChild(function(t){t.enable({onlySelf:!0})}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent}),this._updateAncestors(!!t.onlySelf),this._onDisabledChange.forEach(function(t){return t(!1)})},t.prototype._updateAncestors=function(t){this._parent&&!t&&(this._parent.updateValueAndValidity(),this._parent._updatePristine(),this._parent._updateTouched())},t.prototype.setParent=function(t){this._parent=t},t.prototype.setValue=function(t,e){},t.prototype.patchValue=function(t,e){},t.prototype.reset=function(t,e){},t.prototype.updateValueAndValidity=function(t){void 0===t&&(t={}),this._setInitialStatus(),this._updateValue(),this.enabled&&(this._cancelExistingSubscription(),this._errors=this._runValidator(),this._status=this._calculateStatus(),"VALID"!==this._status&&"PENDING"!==this._status||this._runAsyncValidator(t.emitEvent)),!1!==t.emitEvent&&(this._valueChanges.emit(this._value),this._statusChanges.emit(this._status)),this._parent&&!t.onlySelf&&this._parent.updateValueAndValidity(t)},t.prototype._updateTreeValidity=function(t){void 0===t&&(t={emitEvent:!0}),this._forEachChild(function(e){return e._updateTreeValidity(t)}),this.updateValueAndValidity({onlySelf:!0,emitEvent:t.emitEvent})},t.prototype._setInitialStatus=function(){this._status=this._allControlsDisabled()?"DISABLED":"VALID"},t.prototype._runValidator=function(){return this.validator?this.validator(this):null},t.prototype._runAsyncValidator=function(t){var e=this;if(this.asyncValidator){this._status="PENDING";var n=o(this.asyncValidator(this));this._asyncValidationSubscription=n.subscribe(function(n){return e.setErrors(n,{emitEvent:t})})}},t.prototype._cancelExistingSubscription=function(){this._asyncValidationSubscription&&this._asyncValidationSubscription.unsubscribe()},t.prototype.setErrors=function(t,e){void 0===e&&(e={}),this._errors=t,this._updateControlsErrors(!1!==e.emitEvent)},t.prototype.get=function(t){return O(this,t,".")},t.prototype.getError=function(t,e){var n=e?this.get(e):this;return n&&n._errors?n._errors[t]:null},t.prototype.hasError=function(t,e){return!!this.getError(t,e)},Object.defineProperty(t.prototype,"root",{get:function(){for(var t=this;t._parent;)t=t._parent;return t},enumerable:!0,configurable:!0}),t.prototype._updateControlsErrors=function(t){this._status=this._calculateStatus(),t&&this._statusChanges.emit(this._status),this._parent&&this._parent._updateControlsErrors(t)},t.prototype._initObservables=function(){this._valueChanges=new I.p,this._statusChanges=new I.p},t.prototype._calculateStatus=function(){return this._allControlsDisabled()?"DISABLED":this._errors?"INVALID":this._anyControlsHaveStatus("PENDING")?"PENDING":this._anyControlsHaveStatus("INVALID")?"INVALID":"VALID"},t.prototype._updateValue=function(){},t.prototype._forEachChild=function(t){},t.prototype._anyControls=function(t){},t.prototype._allControlsDisabled=function(){},t.prototype._anyControlsHaveStatus=function(t){return this._anyControls(function(e){return e.status===t})},t.prototype._anyControlsDirty=function(){return this._anyControls(function(t){return t.dirty})},t.prototype._anyControlsTouched=function(){return this._anyControls(function(t){return t.touched})},t.prototype._updatePristine=function(t){void 0===t&&(t={}),this._pristine=!this._anyControlsDirty(),this._parent&&!t.onlySelf&&this._parent._updatePristine(t)},t.prototype._updateTouched=function(t){void 0===t&&(t={}),this._touched=this._anyControlsTouched(),this._parent&&!t.onlySelf&&this._parent._updateTouched(t)},t.prototype._isBoxedValue=function(t){return"object"==typeof t&&null!==t&&2===Object.keys(t).length&&"value"in t&&"disabled"in t},t.prototype._registerOnCollectionChange=function(t){this._onCollectionChange=t},t}(),gt=function(t){function e(e,n,r){void 0===e&&(e=null);var i=t.call(this,A(n),P(r))||this;return i._onChange=[],i._applyFormState(e),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i._initObservables(),i}return N.a(e,t),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._value=t,this._onChange.length&&!1!==e.emitModelToViewChange&&this._onChange.forEach(function(t){return t(n._value,!1!==e.emitViewToModelChange)}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){void 0===e&&(e={}),this.setValue(t,e)},e.prototype.reset=function(t,e){void 0===t&&(t=null),void 0===e&&(e={}),this._applyFormState(t),this.markAsPristine(e),this.markAsUntouched(e),this.setValue(this._value,e)},e.prototype._updateValue=function(){},e.prototype._anyControls=function(t){return!1},e.prototype._allControlsDisabled=function(){return this.disabled},e.prototype.registerOnChange=function(t){this._onChange.push(t)},e.prototype._clearChangeFns=function(){this._onChange=[],this._onDisabledChange=[],this._onCollectionChange=function(){}},e.prototype.registerOnDisabledChange=function(t){this._onDisabledChange.push(t)},e.prototype._forEachChild=function(t){},e.prototype._applyFormState=function(t){this._isBoxedValue(t)?(this._value=t.value,t.disabled?this.disable({onlySelf:!0,emitEvent:!1}):this.enable({onlySelf:!0,emitEvent:!1})):this._value=t},e}(yt),bt=function(t){function e(e,n,r){var i=t.call(this,n||null,r||null)||this;return i.controls=e,i._initObservables(),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return N.a(e,t),e.prototype.registerControl=function(t,e){return this.controls[t]?this.controls[t]:(this.controls[t]=e,e.setParent(this),e._registerOnCollectionChange(this._onCollectionChange),e)},e.prototype.addControl=function(t,e){this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeControl=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),delete this.controls[t],e&&this.registerControl(t,e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.contains=function(t){return this.controls.hasOwnProperty(t)&&this.controls[t].enabled},e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),Object.keys(t).forEach(function(r){n._throwIfControlMissing(r),n.controls[r].setValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),Object.keys(t).forEach(function(r){n.controls[r]&&n.controls[r].patchValue(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t={}),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this._reduceChildren({},function(t,e,n){return t[n]=e instanceof gt?e.value:e.getRawValue(),t})},e.prototype._throwIfControlMissing=function(t){if(!Object.keys(this.controls).length)throw new Error("\n There are no form controls registered with this group yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.controls[t])throw new Error("Cannot find form control with name: "+t+".")},e.prototype._forEachChild=function(t){var e=this;Object.keys(this.controls).forEach(function(n){return t(e.controls[n],n)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){e.setParent(t),e._registerOnCollectionChange(t._onCollectionChange)})},e.prototype._updateValue=function(){this._value=this._reduceValue()},e.prototype._anyControls=function(t){var e=this,n=!1;return this._forEachChild(function(r,i){n=n||e.contains(i)&&t(r)}),n},e.prototype._reduceValue=function(){var t=this;return this._reduceChildren({},function(e,n,r){return(n.enabled||t.disabled)&&(e[r]=n.value),e})},e.prototype._reduceChildren=function(t,e){var n=t;return this._forEachChild(function(t,r){n=e(n,t,r)}),n},e.prototype._allControlsDisabled=function(){for(var t=0,e=Object.keys(this.controls);t<e.length;t++){var n=e[t];if(this.controls[n].enabled)return!1}return Object.keys(this.controls).length>0||this.disabled},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Must supply a value for form control with name: '"+n+"'.")})},e}(yt),_t=function(t){function e(e,n,r){var i=t.call(this,n||null,r||null)||this;return i.controls=e,i._initObservables(),i._setUpControls(),i.updateValueAndValidity({onlySelf:!0,emitEvent:!1}),i}return N.a(e,t),e.prototype.at=function(t){return this.controls[t]},e.prototype.push=function(t){this.controls.push(t),this._registerControl(t),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.insert=function(t,e){this.controls.splice(t,0,e),this._registerControl(e),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.removeAt=function(t){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),this.updateValueAndValidity(),this._onCollectionChange()},e.prototype.setControl=function(t,e){this.controls[t]&&this.controls[t]._registerOnCollectionChange(function(){}),this.controls.splice(t,1),e&&(this.controls.splice(t,0,e),this._registerControl(e)),this.updateValueAndValidity(),this._onCollectionChange()},Object.defineProperty(e.prototype,"length",{get:function(){return this.controls.length},enumerable:!0,configurable:!0}),e.prototype.setValue=function(t,e){var n=this;void 0===e&&(e={}),this._checkAllValuesPresent(t),t.forEach(function(t,r){n._throwIfControlMissing(r),n.at(r).setValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.patchValue=function(t,e){var n=this;void 0===e&&(e={}),t.forEach(function(t,r){n.at(r)&&n.at(r).patchValue(t,{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e)},e.prototype.reset=function(t,e){void 0===t&&(t=[]),void 0===e&&(e={}),this._forEachChild(function(n,r){n.reset(t[r],{onlySelf:!0,emitEvent:e.emitEvent})}),this.updateValueAndValidity(e),this._updatePristine(e),this._updateTouched(e)},e.prototype.getRawValue=function(){return this.controls.map(function(t){return t instanceof gt?t.value:t.getRawValue()})},e.prototype._throwIfControlMissing=function(t){if(!this.controls.length)throw new Error("\n There are no form controls registered with this array yet. If you're using ngModel,\n you may want to check next tick (e.g. use setTimeout).\n ");if(!this.at(t))throw new Error("Cannot find form control at index "+t)},e.prototype._forEachChild=function(t){this.controls.forEach(function(e,n){t(e,n)})},e.prototype._updateValue=function(){var t=this;this._value=this.controls.filter(function(e){return e.enabled||t.disabled}).map(function(t){return t.value})},e.prototype._anyControls=function(t){return this.controls.some(function(e){return e.enabled&&t(e)})},e.prototype._setUpControls=function(){var t=this;this._forEachChild(function(e){return t._registerControl(e)})},e.prototype._checkAllValuesPresent=function(t){this._forEachChild(function(e,n){if(void 0===t[n])throw new Error("Mu
1st supply a value for form control at index: "+n+".")})},e.prototype._allControlsDisabled=function(){for(var t=0,e=this.controls;t<e.length;t++){if(e[t].enabled)return!1}return this.controls.length>0||this.disabled},e.prototype._registerControl=function(t){t.setParent(this),t._registerOnCollectionChange(this._onCollectionChange)},e}(yt),wt={provide:B,useExisting:Object(I._4)(function(){return Et})},xt=Promise.resolve(null),Et=function(t){function e(e,n){var r=t.call(this)||this;return r._submitted=!1,r.ngSubmit=new I.p,r.form=new bt({},E(e),S(n)),r}return N.a(e,t),Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"controls",{get:function(){return this.form.controls},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path);t._control=n.registerControl(t.name,t.control),g(t.control,t),t.control.updateValueAndValidity({emitEvent:!1})})},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.addFormGroup=function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path),r=new bt({});_(r,t),n.registerControl(t.name,r),r.updateValueAndValidity({emitEvent:!1})})},e.prototype.removeFormGroup=function(t){var e=this;xt.then(function(){var n=e._findContainer(t.path);n&&n.removeControl(t.name)})},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){var n=this;xt.then(function(){n.form.get(t.path).setValue(e)})},e.prototype.setValue=function(t){this.control.setValue(t)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._findContainer=function(t){return t.pop(),t.length?this.form.get(t):this.form},e}(B);Et.decorators=[{type:I.m,args:[{selector:"form:not([ngNoForm]):not([formGroup]),ngForm,[ngForm]",providers:[wt],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},outputs:["ngSubmit"],exportAs:"ngForm"}]}],Et.ctorParameters=function(){return[{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[z]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[V]}]}]};var St={formControlName:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n firstName: new FormControl()\n });',formGroupName:'\n <div [formGroup]="myGroup">\n <div formGroupName="person">\n <input formControlName="firstName">\n </div>\n </div>\n\n In your class:\n\n this.myGroup = new FormGroup({\n person: new FormGroup({ firstName: new FormControl() })\n });',formArrayName:'\n <div [formGroup]="myGroup">\n <div formArrayName="cities">\n <div *ngFor="let city of cityArray.controls; index as i">\n <input [formControlName]="i">\n </div>\n </div>\n </div>\n\n In your class:\n\n this.cityArray = new FormArray([new FormControl(\'SF\')]);\n this.myGroup = new FormGroup({\n cities: this.cityArray\n });',ngModelGroup:'\n <form>\n <div ngModelGroup="person">\n <input [(ngModel)]="person.name" name="firstName">\n </div>\n </form>',ngModelWithFormGroup:'\n <div [formGroup]="myGroup">\n <input formControlName="firstName">\n <input [(ngModel)]="showMoreControls" [ngModelOptions]="{standalone: true}">\n </div>\n '},Tt=function(){function t(){}return t.modelParentException=function(){throw new Error('\n ngModel cannot be used to register form controls with a parent formGroup directive. Try using\n formGroup\'s partner directive "formControlName" instead. Example:\n\n '+St.formControlName+"\n\n Or, if you'd like to avoid registering this form control, indicate that it's standalone in ngModelOptions:\n\n Example:\n\n "+St.ngModelWithFormGroup)},t.formGroupNameException=function(){throw new Error("\n ngModel cannot be used to register form controls with a parent formGroupName or formArrayName directive.\n\n Option 1: Use formControlName instead of ngModel (reactive strategy):\n\n "+St.formGroupName+"\n\n Option 2: Update ngModel's parent be ngModelGroup (template-driven strategy):\n\n "+St.ngModelGroup)},t.missingNameException=function(){throw new Error('If ngModel is used within a form tag, either the name attribute must be set or the form\n control must be defined as \'standalone\' in ngModelOptions.\n\n Example 1: <input [(ngModel)]="person.firstName" name="first">\n Example 2: <input [(ngModel)]="person.firstName" [ngModelOptions]="{standalone: true}">')},t.modelGroupParentException=function(){throw new Error("\n ngModelGroup cannot be used with a parent formGroup directive.\n\n Option 1: Use formGroupName instead of ngModelGroup (reactive strategy):\n\n "+St.formGroupName+"\n\n Option 2: Use a regular form tag instead of the formGroup directive (template-driven strategy):\n\n "+St.ngModelGroup)},t}(),Mt={provide:B,useExisting:Object(I._4)(function(){return Ct})},Ct=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return N.a(e,t),e.prototype._checkParentType=function(){this._parent instanceof e||this._parent instanceof Et||Tt.modelGroupParentException()},e}(pt);Ct.decorators=[{type:I.m,args:[{selector:"[ngModelGroup]",providers:[Mt],exportAs:"ngModelGroup"}]}],Ct.ctorParameters=function(){return[{type:B,decorators:[{type:I.q},{type:I.T}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[z]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[V]}]}]},Ct.propDecorators={name:[{type:I.x,args:["ngModelGroup"]}]};var Ot={provide:$,useExisting:Object(I._4)(function(){return Pt})},At=Promise.resolve(null),Pt=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._control=new gt,o._registered=!1,o.update=new I.p,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=C(o,i),o}return N.a(e,t),e.prototype.ngOnChanges=function(t){this._checkForErrors(),this._registered||this._setUpControl(),"isDisabled"in t&&this._updateDisabled(t),T(t,this.viewModel)&&(this._updateV
1alue(this.model),this.viewModel=this.model)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return this._parent?y(this.name,this._parent):[this.name]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return E(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._setUpControl=function(){this._isStandalone()?this._setUpStandalone():this.formDirective.addControl(this),this._registered=!0},e.prototype._isStandalone=function(){return!this._parent||!(!this.options||!this.options.standalone)},e.prototype._setUpStandalone=function(){g(this._control,this),this._control.updateValueAndValidity({emitEvent:!1})},e.prototype._checkForErrors=function(){this._isStandalone()||this._checkParentType(),this._checkName()},e.prototype._checkParentType=function(){!(this._parent instanceof Ct)&&this._parent instanceof pt?Tt.formGroupNameException():this._parent instanceof Ct||this._parent instanceof Et||Tt.modelParentException()},e.prototype._checkName=function(){this.options&&this.options.name&&(this.name=this.options.name),this._isStandalone()||this.name||Tt.missingNameException()},e.prototype._updateValue=function(t){var e=this;At.then(function(){e.control.setValue(t,{emitViewToModelChange:!1})})},e.prototype._updateDisabled=function(t){var e=this,n=t.isDisabled.currentValue,r=""===n||n&&"false"!==n;At.then(function(){r&&!e.control.disabled?e.control.disable():!r&&e.control.disabled&&e.control.enable()})},e}($);Pt.decorators=[{type:I.m,args:[{selector:"[ngModel]:not([formControlName]):not([formControl])",providers:[Ot],exportAs:"ngModel"}]}],Pt.ctorParameters=function(){return[{type:B,decorators:[{type:I.H},{type:I.q}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[z]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[V]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[W]}]}]},Pt.propDecorators={name:[{type:I.x}],isDisabled:[{type:I.x,args:["disabled"]}],model:[{type:I.x,args:["ngModel"]}],options:[{type:I.x,args:["ngModelOptions"]}],update:[{type:I.I,args:["ngModelChange"]}]};var Rt=function(){function t(){}return t.controlParentException=function(){throw new Error("formControlName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+St.formControlName)},t.ngModelGroupException=function(){throw new Error('formControlName cannot be used with an ngModelGroup parent. It is only compatible with parents\n that also have a "form" prefix: formGroupName, formArrayName, or formGroup.\n\n Option 1: Update the parent to be formGroupName (reactive form strategy)\n\n '+St.formGroupName+"\n\n Option 2: Use ngModel instead of formControlName (template-driven strategy)\n\n "+St.ngModelGroup)},t.missingFormException=function(){throw new Error("formGroup expects a FormGroup instance. Please pass one in.\n\n Example:\n\n "+St.formControlName)},t.groupParentException=function(){throw new Error("formGroupName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\n\n Example:\n\n "+St.formGroupName)},t.arrayParentException=function(){throw new Error("formArrayName must be used with a parent formGroup directive. You'll want to add a formGroup\n directive and pass it an existing FormGroup instance (you can create one in your class).\
1n\n Example:\n\n "+St.formArrayName)},t.disabledAttrWarning=function(){console.warn("\n It looks like you're using the disabled attribute with a reactive form directive. If you set disabled to true\n when you set up this control in your component class, the disabled attribute will actually be set in the DOM for\n you. We recommend using this approach to avoid 'changed after checked' errors.\n \n Example: \n form = new FormGroup({\n first: new FormControl({value: 'Nancy', disabled: true}, Validators.required),\n last: new FormControl('Drew', Validators.required)\n });\n ")},t}(),Lt={provide:$,useExisting:Object(I._4)(function(){return Nt})},Nt=function(t){function e(e,n,r){var i=t.call(this)||this;return i.update=new I.p,i._rawValidators=e||[],i._rawAsyncValidators=n||[],i.valueAccessor=C(i,r),i}return N.a(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Rt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._isControlChanged(t)&&(g(this.form,this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this.form.updateValueAndValidity({emitEvent:!1})),T(t,this.viewModel)&&(this.form.setValue(this.model),this.viewModel=this.model)},Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return E(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},e.prototype._isControlChanged=function(t){return t.hasOwnProperty("form")},e}($);Nt.decorators=[{type:I.m,args:[{selector:"[formControl]",providers:[Lt],exportAs:"ngForm"}]}],Nt.ctorParameters=function(){return[{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[z]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[V]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[W]}]}]},Nt.propDecorators={form:[{type:I.x,args:["formControl"]}],model:[{type:I.x,args:["ngModel"]}],update:[{type:I.I,args:["ngModelChange"]}],isDisabled:[{type:I.x,args:["disabled"]}]};var It={provide:B,useExisting:Object(I._4)(function(){return kt})},kt=function(t){function e(e,n){var r=t.call(this)||this;return r._validators=e,r._asyncValidators=n,r._submitted=!1,r.directives=[],r.form=null,r.ngSubmit=new I.p,r}return N.a(e,t),e.prototype.ngOnChanges=function(t){this._checkFormPresent(),t.hasOwnProperty("form")&&(this._updateValidators(),this._updateDomValue(),this._updateRegistrations())},Object.defineProperty(e.prototype,"submitted",{get:function(){return this._submitted},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this.form},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return[]},enumerable:!0,configurable:!0}),e.prototype.addControl=function(t){var e=this.form.get(t.path);return g(e,t),e.updateValueAndValidity({emitEvent:!1}),this.directives.push(t),e},e.prototype.getControl=function(t){return this.form.get(t.path)},e.prototype.removeControl=function(t){R(this.directives,t)},e.prototype.addFormGroup=function(t){var e=this.form.get(t.path);_(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormGroup=function(t){},e.prototype.getFormGroup=function(t){return this.form.get(t.path)},e.prototype.addFormArray=function(t){var e=this.form.get(t.path);_(e,t),e.updateValueAndValidity({emitEvent:!1})},e.prototype.removeFormArray=function(t){},e.prototype.getFormArray=function(t){return this.form.get(t.path)},e.prototype.updateModel=function(t,e){this.form.get(t.path).setValue(e)},e.prototype.onSubmit=function(t){return this._submitted=!0,this.ngSubmit.emit(t),!1},e.prototype.onReset=function(){this.resetForm()},e.prototype.resetForm=function(t){void 0===t&&(t=void 0),this.form.reset(t),this._submitted=!1},e.prototype._updateDomValue=function(){var t=this;
1this.directives.forEach(function(e){var n=t.form.get(e.path);e._control!==n&&(b(e._control,e),n&&g(n,e),e._control=n)}),this.form._updateTreeValidity({emitEvent:!1})},e.prototype._updateRegistrations=function(){var t=this;this.form._registerOnCollectionChange(function(){return t._updateDomValue()}),this._oldForm&&this._oldForm._registerOnCollectionChange(function(){}),this._oldForm=this.form},e.prototype._updateValidators=function(){var t=E(this._validators);this.form.validator=G.compose([this.form.validator,t]);var e=S(this._asyncValidators);this.form.asyncValidator=G.composeAsync([this.form.asyncValidator,e])},e.prototype._checkFormPresent=function(){this.form||Rt.missingFormException()},e}(B);kt.decorators=[{type:I.m,args:[{selector:"[formGroup]",providers:[It],host:{"(submit)":"onSubmit($event)","(reset)":"onReset()"},exportAs:"ngForm"}]}],kt.ctorParameters=function(){return[{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[z]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[V]}]}]},kt.propDecorators={form:[{type:I.x,args:["formGroup"]}],ngSubmit:[{type:I.I}]};var jt={provide:B,useExisting:Object(I._4)(function(){return Dt})},Dt=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return N.a(e,t),e.prototype._checkParentType=function(){L(this._parent)&&Rt.groupParentException()},e}(pt);Dt.decorators=[{type:I.m,args:[{selector:"[formGroupName]",providers:[jt]}]}],Dt.ctorParameters=function(){return[{type:B,decorators:[{type:I.H},{type:I.q},{type:I.T}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[z]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[V]}]}]},Dt.propDecorators={name:[{type:I.x,args:["formGroupName"]}]};var Ft={provide:B,useExisting:Object(I._4)(function(){return Ut})},Ut=function(t){function e(e,n,r){var i=t.call(this)||this;return i._parent=e,i._validators=n,i._asyncValidators=r,i}return N.a(e,t),e.prototype.ngOnInit=function(){this._checkParentType(),this.formDirective.addFormArray(this)},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeFormArray(this)},Object.defineProperty(e.prototype,"control",{get:function(){return this.formDirective.getFormArray(this)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"path",{get:function(){return y(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return E(this._validators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._asyncValidators)},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){L(this._parent)&&Rt.arrayParentException()},e}(B);Ut.decorators=[{type:I.m,args:[{selector:"[formArrayName]",providers:[Ft]}]}],Ut.ctorParameters=function(){return[{type:B,decorators:[{type:I.H},{type:I.q},{type:I.T}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[z]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[V]}]}]},Ut.propDecorators={name:[{type:I.x,args:["formArrayName"]}]};var Bt={provide:$,useExisting:Object(I._4)(function(){return zt})},zt=function(t){function e(e,n,r,i){var o=t.call(this)||this;return o._added=!1,o.update=new I.p,o._parent=e,o._rawValidators=n||[],o._rawAsyncValidators=r||[],o.valueAccessor=C(o,i),o}return N.a(e,t),Object.defineProperty(e.prototype,"isDisabled",{set:function(t){Rt.disabledAttrWarning()},enumerable:!0,configurable:!0}),e.prototype.ngOnChanges=function(t){this._added||this._setUpControl(),T(t,this.viewModel)&&(this.viewModel=this.model,this.formDirective.updateModel(this,this.model))},e.prototype.ngOnDestroy=function(){this.formDirective&&this.formDirective.removeControl(this)},e.prototype.viewToModelUpdate=function(t){this.viewModel=t,this.update.emit(t)},Object.defineProperty(e.prototype,"path",{get:function(){return y(this.name,this._parent)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"formDirective",{get:function(){return this._parent?this._parent.formDirective:null},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"validator",{get:function(){return E(this._rawValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"asyncValidator",{get:function(){return S(this._rawAsyncValidators)},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"control",{get:function(){return this._control},enumerable:!0,configurable:!0}),e.prototype._checkParentType=function(){!(this._parent instanceof Dt)&&this._parent instanceof pt?Rt.ngModelGroupException():this._parent instanceof Dt||this._parent instanceof kt||this._parent instanceof Ut||Rt.controlParentException()},e.prototype._setUpControl=function(){this._checkParentType(),this._control=this.formDirective.addControl(this),this.control.disabled&&this.valueAccessor.setDisabledState&&this.valueAccessor.setDisabledState(!0),this._added=!0},e}($);zt.decorators=[{type:I.m,args:[{selector:"[formControlName]",providers:[Bt]}]}],zt.ctorParameters=function(){return[{type:B,decorators:[{type:I.H},{type:I.q},{type:I.T}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[z]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[V]}]},{type:Array,decorators:[{type:I.H},{type:I.S},{type:I.t,args:[W]}]}]},zt.propDecorators={name:[{type:I.x,args:["formControlName"]}],model:[{type:I.x,args:["ngModel"]}],update:[{type:I.I,args:["ngModelChange"]}],isDisabled:[{type:I.x,args:["disabled"]}]};var Vt={provide:z,useExisting:Object(I._4)(function(){return Gt}),multi:!0},Ht={provide:z,useExisting:Object(I._4)(function(){return Wt}),multi:!0},Gt=function(){function t(){}return Object.defineProperty(t.prototype,"required",{get:function(){return this._required},set:function(t){this._required=null!=t&&!1!==t&&""+t!="false",this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this.required?G.required(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Gt.decorators=[{type:I.m,args:[{selector:":not([type=checkbox])[required][formControlName],:not([type=checkbox])[required][formControl],:not([type=checkbox])[required][ngModel]",providers:[Vt],host:{"[attr.required]":'required ? "" : null'}}]}],Gt.ctorParameters=function(){return[]},Gt.propDecorators={required:[{type:I.x}]};var Wt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N.a(e,t),e.prototype.validate=function(t){return this.required?G.requiredTrue(t):null},e}(Gt);Wt.decorators=[{type:I.m,args:[{selector:"input[type=checkbox][required][formControlName],input[type=checkbox][required][formControl],input[type=checkbox][required][ngModel]",providers:[Ht],host:{"[attr.required]":'required ? "" : null'}}]}],Wt.ctorParameters=function(){return[]};var qt={provide:z,useExisting:Object(I._4)(function(){return Zt}),multi:!0},Zt=function(){function t(){}
1return Object.defineProperty(t.prototype,"email",{set:function(t){this._enabled=""===t||!0===t||"true"===t,this._onChange&&this._onChange()},enumerable:!0,configurable:!0}),t.prototype.validate=function(t){return this._enabled?G.email(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t}();Zt.decorators=[{type:I.m,args:[{selector:"[email][formControlName],[email][formControl],[email][ngModel]",providers:[qt]}]}],Zt.ctorParameters=function(){return[]},Zt.propDecorators={email:[{type:I.x}]};var Xt={provide:z,useExisting:Object(I._4)(function(){return Kt}),multi:!0},Kt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"minlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null==this.minlength?null:this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=G.minLength(parseInt(this.minlength,10))},t}();Kt.decorators=[{type:I.m,args:[{selector:"[minlength][formControlName],[minlength][formControl],[minlength][ngModel]",providers:[Xt],host:{"[attr.minlength]":"minlength ? minlength : null"}}]}],Kt.ctorParameters=function(){return[]},Kt.propDecorators={minlength:[{type:I.x}]};var Yt={provide:z,useExisting:Object(I._4)(function(){return Jt}),multi:!0},Jt=function(){function t(){}return t.prototype.ngOnChanges=function(t){"maxlength"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return null!=this.maxlength?this._validator(t):null},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=G.maxLength(parseInt(this.maxlength,10))},t}();Jt.decorators=[{type:I.m,args:[{selector:"[maxlength][formControlName],[maxlength][formControl],[maxlength][ngModel]",providers:[Yt],host:{"[attr.maxlength]":"maxlength ? maxlength : null"}}]}],Jt.ctorParameters=function(){return[]},Jt.propDecorators={maxlength:[{type:I.x}]};var Qt={provide:z,useExisting:Object(I._4)(function(){return $t}),multi:!0},$t=function(){function t(){}return t.prototype.ngOnChanges=function(t){"pattern"in t&&(this._createValidator(),this._onChange&&this._onChange())},t.prototype.validate=function(t){return this._validator(t)},t.prototype.registerOnValidatorChange=function(t){this._onChange=t},t.prototype._createValidator=function(){this._validator=G.pattern(this.pattern)},t}();$t.decorators=[{type:I.m,args:[{selector:"[pattern][formControlName],[pattern][formControl],[pattern][ngModel]",providers:[Qt],host:{"[attr.pattern]":"pattern ? pattern : null"}}]}],$t.ctorParameters=function(){return[]},$t.propDecorators={pattern:[{type:I.x}]};var te=function(){function t(){}return t.prototype.group=function(t,e){void 0===e&&(e=null);var n=this._reduceControls(t),r=null!=e?e.validator:null,i=null!=e?e.asyncValidator:null;return new bt(n,r,i)},t.prototype.control=function(t,e,n){return new gt(t,e,n)},t.prototype.array=function(t,e,n){var r=this,i=t.map(function(t){return r._createControl(t)});return new _t(i,e,n)},t.prototype._reduceControls=function(t){var e=this,n={};return Object.keys(t).forEach(function(r){n[r]=e._createControl(t[r])}),n},t.prototype._createControl=function(t){if(t instanceof gt||t instanceof bt||t instanceof _t)return t;if(Array.isArray(t)){var e=t[0],n=t.length>1?t[1]:null,r=t.length>2?t[2]:null;return this.control(e,n,r)}return this.control(t)},t}();te.decorators=[{type:I.u}],te.ctorParameters=function(){return[]};var ee=(new I.Y("4.4.6"),function(){function t(){}return t}());ee.decorators=[{type:I.m,args:[{selector:"form:not([ngNoForm]):not([ngNativeValidate])",host:{novalidate:""}}]}],ee.ctorParameters=function(){return[]};var ne=[ee,at,lt,Y,Q,it,Z,st,ct,nt,mt,vt,Gt,Kt,Jt,$t,Wt,Zt],re=[Pt,Ct,Et],ie=[Nt,kt,zt,Dt,Ut],oe=function(){function t(){}return t}();oe.decorators=[{type:I.B,args:[{declarations:ne,exports:ne}]}],oe.ctorParameters=function(){return[]};var se=function(){function t(){}return t}();se.decorators=[{type:I.B,args:[{declarations:re,providers:[et],exports:[oe,re]}]}],se.ctorParameters=function(){return[]};var ae=function(){function t(){}return t}();ae.decorators=[{type:I.B,args:[{declarations:[ie],providers:[te,et],exports:[oe,ie]}]}],ae.ctorParameters=function(){return[]}},bprQ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("9mYp");r.Observable.onErrorResumeNext=i.onErrorResumeNext},buGu:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=null),i.defaultIfEmpty(t)(this)}var i=n("PbxL");e.defaultIfEmpty=r},c2EU:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=i.defaultThrottleConfig),i.throttle(t,e)(this)}var i=n("DrEP");e.throttle=r},cAzY:function(t,e,n){"use strict";var r=n("tAjV");e.audit=r.audit;var i=n("GTdq");e.auditTime=i.auditTime;var o=n("+vKo");e.buffer=o.buffer;var s=n("5NGA");e.bufferCount=s.bufferCount;var a=n("duFl");e.bufferTime=a.bufferTime;var u=n("6QEA");e.bufferToggle=u.bufferToggle;var c=n("v1IT");e.bufferWhen=c.bufferWhen;var l=n("g1RG");e.catchError=l.catchError;var h=n("7xz3");e.combineAll=h.combineAll;var p=n("H4tt");e.combineLatest=p.combineLatest;var f=n("vNxK");e.concat=f.concat;var d=n("NiCh");e.concatAll=d.concatAll;var m=n("+FJ1");e.concatMap=m.concatMap;var v=n("0mJJ");e.concatMapTo=v.concatMapTo;var y=n("ip92");e.count=y.count;var g=n("2l91");e.debounce=g.debounce;var b=n("Hr+Y");e.debounceTime=b.debounceTime;var _=n("PbxL");e.defaultIfEmpty=_.defaultIfEmpty;var w=n("EUVd");e.delay=w.delay;var x=n("aeUV");e.delayWhen=x.delayWhen;var E=n("pguX");e.dematerialize=E.dematerialize;var S=n("y+rW");e.distinct=S.distinct;var T=n("2Sjb");e.distinctUntilChanged=T.distinctUntilChanged;var M=n("HBVP");e.distinctUntilKeyChanged=M.distinctUntilKeyChanged;var C=n("k6cv");e.elementAt=C.elementAt;var O=n("GiTH");e.every=O.every;var A=n("weui");e.exhaust=A.exhaust;var P=n("NzSV");e.exhaustMap=P.exhaustMap;var R=n("y23k");e.expand=R.expand;var L=n("Hd11");e.filter=L.filter;var N=n("FTnw");e.finalize=N.finalize;var I=n("0dhf");e.find=I.find;var k=n("IfwN");e.findIndex=k.findIndex;var j=n("+BWq");e.first=j.first;var D=n("8H5Y");e.groupBy=D.groupBy;var F=n("XG4q");e.ignoreElements=F.ignoreElements;var U=n("C4ew");e.isEmpty=U.isEmpty;var B=n("zrH4");e.last=B.last;var z=n("L8VJ");e.map=z.map;var V=n("6d3x");e.mapTo=V.mapTo;var H=n("L0Qg");e.materialize=H.materialize;var G=n("jjPq");e.max=G.max;var W=n("QHK3");e.merge=W.merge;var q=n("8rcZ");e.mergeAll=q.mergeAll;var Z=n("mjx3");e.mergeMap=Z.mergeMap;var X=n("mjx3");e.flatMap=X.mergeMap;var K=n("j8LY");e.mergeMapTo=K.mergeMapTo;var Y=n("t9cH");e.mergeScan=Y.mergeScan;var J=n("y3SI");e.min=J.min;var Q=n("P02W");e.multicast=Q.multicast;var $=n("GDiU");e.observeOn=$.observeOn;var tt=n("r6G9");e.onErrorResumeNext=tt.onErrorResumeNext;var et=n("9FjR");e.pairwise=et.pairwise;var nt=n("hfga");e.partition=nt.partition;var rt=n("wcuQ");e.pluck=rt.pluck;var it=n("zBM/");e.publish=it.publish;var ot=n("ASfG");e.publishBehavior=ot.publishBehavior;var st=n("qfkx");e.publishLast=st.publishLast;var at=n("z8/z");e.publishReplay=at.publishReplay;var ut=n("XWpj");e.race=ut.race;var ct=n("JwCl");e.reduce=ct.reduce;var lt=n("Hg2u");e.repeat=lt.repeat;var ht=n("g9kf");e.repeatWhen=ht.repeatWhen;var pt=n("5r3W");e.retry=pt.retry;var ft=n("qanz");e.retryWhen=ft.retryWhen;var dt=n("F9px");e.refCount=dt.refCount;var mt=n("ZNYO");e.sample=mt.sample;var vt=n("60lp");e.sampleTime=vt.sampleTime;var yt=n("H1KZ");e.scan=yt.scan;var gt=n("xJeO");e.sequenceEqual=gt.sequenceEqual;var bt=n("HwxE");
1e.share=bt.share;var _t=n("Wxra");e.shareReplay=_t.shareReplay;var wt=n("v71/");e.single=wt.single;var xt=n("cyM/");e.skip=xt.skip;var Et=n("EmkH");e.skipLast=Et.skipLast;var St=n("UHtL");e.skipUntil=St.skipUntil;var Tt=n("aL6N");e.skipWhile=Tt.skipWhile;var Mt=n("dtBE");e.startWith=Mt.startWith;var Ct=n("rhfi");e.switchAll=Ct.switchAll;var Ot=n("TupL");e.switchMap=Ot.switchMap;var At=n("0lA3");e.switchMapTo=At.switchMapTo;var Pt=n("TQK7");e.take=Pt.take;var Rt=n("XvrG");e.takeLast=Rt.takeLast;var Lt=n("y3aq");e.takeUntil=Lt.takeUntil;var Nt=n("5x23");e.takeWhile=Nt.takeWhile;var It=n("4HZJ");e.tap=It.tap;var kt=n("DrEP");e.throttle=kt.throttle;var jt=n("Rol4");e.throttleTime=jt.throttleTime;var Dt=n("EOAD");e.timeInterval=Dt.timeInterval;var Ft=n("qbt9");e.timeout=Ft.timeout;var Ut=n("/h+r");e.timeoutWith=Ut.timeoutWith;var Bt=n("xK8X");e.timestamp=Bt.timestamp;var zt=n("Y4uv");e.toArray=zt.toArray;var Vt=n("7tal");e.window=Vt.window;var Ht=n("GeBq");e.windowCount=Ht.windowCount;var Gt=n("dffx");e.windowTime=Gt.windowTime;var Wt=n("bLt9");e.windowToggle=Wt.windowToggle;var qt=n("kqkQ");e.windowWhen=qt.windowWhen;var Zt=n("p4do");e.withLatestFrom=Zt.withLatestFrom;var Xt=n("SBOU");e.zip=Xt.zip;var Kt=n("IkMW");e.zipAll=Kt.zipAll},cPhF:function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),i.mergeMap(t,e,n)(this)}var i=n("mjx3");e.mergeMap=r},"cyM/":function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new s(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.skip=r;var s=function(){function t(t){this.total=t}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.total))},t}(),a=function(t){function e(e,n){t.call(this,e),this.total=n,this.count=0}return i(e,t),e.prototype._next=function(t){++this.count>this.total&&this.destination.next(t)},e}(o.Subscriber)},d3kC:function(t,e,n){"use strict";var r=n("bKpL"),i=n("bjDG");r.Observable.generate=i.generate},dJzE:function(t,e,n){"use strict";function r(t){if(!(this instanceof r))return new r(t);c.call(this,t),l.call(this,t),t&&!1===t.readable&&(this.readable=!1),t&&!1===t.writable&&(this.writable=!1),this.allowHalfOpen=!0,t&&!1===t.allowHalfOpen&&(this.allowHalfOpen=!1),this.once("end",i)}function i(){this.allowHalfOpen||this._writableState.ended||s(o,this)}function o(t){t.end()}var s=n("1Rb4"),a=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=r;var u=n("VIKU");u.inherits=n("lDCR");var c=n("INGy"),l=n("6QZ3");u.inherits(r,c);for(var h=a(l.prototype),p=0;p<h.length;p++){var f=h[p];r.prototype[f]||(r.prototype[f]=l.prototype[f])}Object.defineProperty(r.prototype,"destroyed",{get:function(){return void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed&&this._writableState.destroyed)},set:function(t){void 0!==this._readableState&&void 0!==this._writableState&&(this._readableState.destroyed=t,this._writableState.destroyed=t)}}),r.prototype._destroy=function(t,e){this.push(null),this.end(),s(e,t)}},dffx:function(t,e,n){"use strict";function r(t){var e=c.async,n=null,r=Number.POSITIVE_INFINITY;return p.isScheduler(arguments[3])&&(e=arguments[3]),p.isScheduler(arguments[2])?e=arguments[2]:h.isNumeric(arguments[2])&&(r=arguments[2]),p.isScheduler(arguments[1])?e=arguments[1]:h.isNumeric(arguments[1])&&(n=arguments[1]),function(i){return i.lift(new f(t,n,r,e))}}function i(t){var e=t.subscriber,n=t.windowTimeSpan,r=t.window;r&&e.closeWindow(r),t.window=e.openWindow(),this.schedule(t,n)}function o(t){var e=t.windowTimeSpan,n=t.subscriber,r=t.scheduler,i=t.windowCreationInterval,o=n.openWindow(),a=this,u={action:a,subscription:null},c={subscriber:n,window:o,context:u};u.subscription=r.schedule(s,e,c),a.add(u.subscription),a.schedule(t,i)}function s(t){var e=t.subscriber,n=t.window,r=t.context;r&&r.action&&r.subscription&&r.action.remove(r.subscription),e.closeWindow(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n("rlar"),c=n("IhB/"),l=n("T14+"),h=n("EsGe"),p=n("MicL");e.windowTime=r;var f=function(){function t(t,e,n,r){this.windowTimeSpan=t,this.windowCreationInterval=e,this.maxWindowSize=n,this.scheduler
1=r}return t.prototype.call=function(t,e){return e.subscribe(new m(t,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},t}(),d=function(t){function e(){t.apply(this,arguments),this._numberOfNextedValues=0}return a(e,t),e.prototype.next=function(e){this._numberOfNextedValues++,t.prototype.next.call(this,e)},Object.defineProperty(e.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),e}(u.Subject),m=function(t){function e(e,n,r,a,u){t.call(this,e),this.destination=e,this.windowTimeSpan=n,this.windowCreationInterval=r,this.maxWindowSize=a,this.scheduler=u,this.windows=[];var c=this.openWindow();if(null!==r&&r>=0){var l={subscriber:this,window:c,context:null},h={windowTimeSpan:n,windowCreationInterval:r,subscriber:this,scheduler:u};this.add(u.schedule(s,n,l)),this.add(u.schedule(o,r,h))}else{var p={subscriber:this,window:c,windowTimeSpan:n};this.add(u.schedule(i,n,p))}}return a(e,t),e.prototype._next=function(t){for(var e=this.windows,n=e.length,r=0;r<n;r++){var i=e[r];i.closed||(i.next(t),i.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(i))}},e.prototype._error=function(t){for(var e=this.windows;e.length>0;)e.shift().error(t);this.destination.error(t)},e.prototype._complete=function(){for(var t=this.windows;t.length>0;){var e=t.shift();e.closed||e.complete()}this.destination.complete()},e.prototype.openWindow=function(){var t=new d;return this.windows.push(t),this.destination.next(t),t},e.prototype.closeWindow=function(t){t.complete();var e=this.windows;e.splice(e.indexOf(t),1)},e}(l.Subscriber)},dgXD:function(t,e,n){"use strict";var r=n("bKpL"),i=n("7dLC");r.Observable.prototype.race=i.race},dkwD:function(t,e,n){"use strict";var r=n("zijX"),i=r.root.Symbol;e.rxSubscriber="function"==typeof i&&"function"==typeof i.for?i.for("rxSubscriber"):"@@rxSubscriber",e.$$rxSubscriber=e.rxSubscriber},dtBE:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n=t[t.length-1];u.isScheduler(n)?t.pop():n=null;var r=t.length;return 1===r?a.concat(new o.ScalarObservable(t[0],n),e):r>1?a.concat(new i.ArrayObservable(t,n),e):a.concat(new s.EmptyObservable(n),e)}}var i=n("wZOE"),o=n("aOKN"),s=n("fcnB"),a=n("7kbP"),u=n("MicL");e.startWith=r},duFl:function(t,e,n){"use strict";function r(t){var e=arguments.length,n=u.async;l.isScheduler(arguments[arguments.length-1])&&(n=arguments[arguments.length-1],e--);var r=null;e>=2&&(r=arguments[1]);var i=Number.POSITIVE_INFINITY;return e>=3&&(i=arguments[2]),function(e){return e.lift(new h(t,r,i,n))}}function i(t){var e=t.subscriber,n=t.context;n&&e.closeContext(n),e.closed||(t.context=e.openContext(),t.context.closeAction=this.schedule(t,t.bufferTimeSpan))}function o(t){var e=t.bufferCreationInterval,n=t.bufferTimeSpan,r=t.subscriber,i=t.scheduler,o=r.openContext(),a=this;r.closed||(r.add(o.closeAction=i.schedule(s,n,{subscriber:r,context:o})),a.schedule(t,e))}function s(t){var e=t.subscriber,n=t.context;e.closeContext(n)}var a=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},u=n("IhB/"),c=n("T14+"),l=n("MicL");e.bufferTime=r;var h=function(){function t(t,e,n,r){this.bufferTimeSpan=t,this.bufferCreationInterval=e,this.maxBufferSize=n,this.scheduler=r}return t.prototype.call=function(t,e){return e.subscribe(new f(t,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},t}(),p=function(){function t(){this.buffer=[]}return t}(),f=function(t){function e(e,n,r,a,u){t.call(this,e),this.bufferTimeSpan=n,this.bufferCreationInterval=r,this.maxBufferSize=a,this.scheduler=u,this.contexts=[];var c=this.openContext();if(this.timespanOnly=null==r||r<0,this.timespanOnly){var l={subscriber:this,context:c,bufferTimeSpan:n};this.add(c.closeAction=u.schedule(i,n,l))}else{var h={subscriber:this,context:c},p={bufferTimeSpan:n,bufferCreationInterval:r,subscriber:this,scheduler:u};this.add(c.closeAction=u.schedule(s,n,h)),this.add(u.schedule(o,r,p))}}return a(e,t),e.prototype._next=function(t){for(var e,n=this.contexts,r=n.length,i=0;i<r;i++){var o=n[i],s=o.buffer;s.push(t),s.length==this.maxBufferSize&&(e=o)}e&&this.onBufferFull(e)},e.prototype._error=function(e){this.contexts.length=0,t.prototype._error.call(this,e)},e.prototype._complete=function(){for(var e=this,n=e.contexts,r=e.destination;n.length>0;){var i=n.shift();r.next(i.buffer)}t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.contexts=null},e.prototype.onBufferFull=function(t){this.closeContext(t);var e=t.closeAction;if(e.unsubscribe(),this.remove(e),!this.closed&&this.timespanOnly){t=this.openContext();var n=this.bufferTimeSpan,r={subscriber:this,context:t,bufferTimeSpan:n};this.add(t.closeAction=this.scheduler.schedule(i,n,r))}},e.prototype.openContext=function(){var t=new p;return this.contexts.push(t),t},e.prototype.closeContext=function(t){this.destination.next(t.buffer);var e=this.contexts;(e?e.indexOf(t):-1)>=0&&e.splice(e.indexOf(t),1)},e}(c.Subscriber)},dxfK:function(t,e,n){"use strict";function r(t,e){return i.distinctUntilKeyChanged(t,e)(this)}var i=n("HBVP");e.distinctUntilKeyChanged=r},dy5W:function(t,e,n){"use strict";var r=n("bKpL"),i=n("WSkQ");r.Observable.prototype.last=i.last},dyFf:function(t,e,n){"use strict";var r=n("bKpL"),i=n("PT4i");r.Observable.never=i.never},"e/xH":function(t,e,n){"use strict";function r(t,e,n,r){for(var i=65535&t|0,o=t>>>16&65535|0,s=0;0!==n;){s=n>2e3?2e3:n,n-=s;do{i=i+e[r++]|0,o=o+i|0}while(--s);i%=65521,o%=65521}return i|o<<16|0}t.exports=r},e6n3:function(t,e,n){"use strict";
1t.exports=function(t,e){var n,r,i,o,s,a,u,c,l,h,p,f,d,m,v,y,g,b,_,w,x,E,S,T,M;n=t.state,r=t.next_in,T=t.input,i=r+(t.avail_in-5),o=t.next_out,M=t.output,s=o-(e-t.avail_out),a=o+(t.avail_out-257),u=n.dmax,c=n.wsize,l=n.whave,h=n.wnext,p=n.window,f=n.hold,d=n.bits,m=n.lencode,v=n.distcode,y=(1<<n.lenbits)-1,g=(1<<n.distbits)-1;t:do{d<15&&(f+=T[r++]<<d,d+=8,f+=T[r++]<<d,d+=8),b=m[f&y];e:for(;;){if(_=b>>>24,f>>>=_,d-=_,0===(_=b>>>16&255))M[o++]=65535&b;else{if(!(16&_)){if(0==(64&_)){b=m[(65535&b)+(f&(1<<_)-1)];continue e}if(32&_){n.mode=12;break t}t.msg="invalid literal/length code",n.mode=30;break t}w=65535&b,_&=15,_&&(d<_&&(f+=T[r++]<<d,d+=8),w+=f&(1<<_)-1,f>>>=_,d-=_),d<15&&(f+=T[r++]<<d,d+=8,f+=T[r++]<<d,d+=8),b=v[f&g];n:for(;;){if(_=b>>>24,f>>>=_,d-=_,!(16&(_=b>>>16&255))){if(0==(64&_)){b=v[(65535&b)+(f&(1<<_)-1)];continue n}t.msg="invalid distance code",n.mode=30;break t}if(x=65535&b,_&=15,d<_&&(f+=T[r++]<<d,(d+=8)<_&&(f+=T[r++]<<d,d+=8)),(x+=f&(1<<_)-1)>u){t.msg="invalid distance too far back",n.mode=30;break t}if(f>>>=_,d-=_,_=o-s,x>_){if((_=x-_)>l&&n.sane){t.msg="invalid distance too far back",n.mode=30;break t}if(E=0,S=p,0===h){if(E+=c-_,_<w){w-=_;do{M[o++]=p[E++]}while(--_);E=o-x,S=M}}else if(h<_){if(E+=c+h-_,(_-=h)<w){w-=_;do{M[o++]=p[E++]}while(--_);if(E=0,h<w){_=h,w-=_;do{M[o++]=p[E++]}while(--_);E=o-x,S=M}}}else if(E+=h-_,_<w){w-=_;do{M[o++]=p[E++]}while(--_);E=o-x,S=M}for(;w>2;)M[o++]=S[E++],M[o++]=S[E++],M[o++]=S[E++],w-=3;w&&(M[o++]=S[E++],w>1&&(M[o++]=S[E++]))}else{E=o-x;do{M[o++]=M[E++],M[o++]=M[E++],M[o++]=M[E++],w-=3}while(w>2);w&&(M[o++]=M[E++],w>1&&(M[o++]=M[E++]))}break}}break}}while(r<i&&o<a);w=d>>3,r-=w,d-=w<<3,f&=(1<<d)-1,t.next_in=r,t.next_out=o,t.avail_in=r<i?i-r+5:5-(r-i),t.avail_out=o<a?a-o+257:257-(o-a),n.hold=f,n.bits=d}},e7Zl:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=function(t){function e(e,n,r){t.call(this),this.start=e,this._count=n,this.scheduler=r}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),void 0===n&&(n=0),new e(t,n,r)},e.dispatch=function(t){var e=t.start,n=t.index,r=t.count,i=t.subscriber;if(n>=r)return void i.complete();i.next(e),i.closed||(t.index=n+1,t.start=e+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=0,r=this.start,i=this._count,o=this.scheduler;if(o)return o.schedule(e.dispatch,0,{index:n,count:i,start:r,subscriber:t});for(;;){if(n++>=i){t.complete();break}if(t.next(r++),t.closed)break}},e}(i.Observable);e.RangeObservable=o},eqpX:function(t,e,n){"use strict";var r=n("bKpL"),i=n("rDIt");r.Observable.prototype.do=i._do,r.Observable.prototype._do=i._do},etEa:function(t,e,n){"use strict";function r(t,e){return i.find(t,e)(this)}var i=n("0dhf");e.find=r},etpI:function(t,e,n){"use strict";var r=function(){function t(){this.values={}}return t.prototype.delete=function(t){return this.values[t]=null,!0},t.prototype.set=function(t,e){return this.values[t]=e,this},t.prototype.get=function(t){return this.values[t]},t.prototype.forEach=function(t,e){var n=this.values;for(var r in n)n.hasOwnProperty(r)&&null!==n[r]&&t.call(e,n[r],r)},t.prototype.clear=function(){this.values={}},t}();e.FastMap=r},eumZ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Xa8F");r.Observable.prototype.windowCount=i.windowCount},"f7+7":function(t,e,n){"use strict";function r(t){var e=this,n=t.source,r=t.subscriber,s=t.context,a=n,h=a.callbackFunc,p=a.args,f=a.scheduler,d=n.subject;if(!d){d=n.subject=new l.AsyncSubject;var m=function t(){for(var n=[],r=0;r<arguments.length;r++)n[r-0]=arguments[r];var s=t.source,a=s.selector,l=s.subject,h=n.shift();if(h)e.add(f.schedule(o,0,{err:h,subject:l}));else if(a){var p=u.tryCatch(a).apply(this,n);p===c.errorObject?e.add(f.schedule(o,0,{err:c.errorObject.e,subject:l})):e.add(f.schedule(i,0,{value:p,subject:l}))}else{var d=n.length<=1?n[0]:n;e.add(f.schedule(i,0,{value:d,subject:l}))}};m.source=n;u.tryCatch(h).apply(s,p.concat(m))===c.errorObject&&e.add(f.schedule(o,0,{err:c.errorObject.e,subject:d}))}e.add(d.subscribe(r))}function i(t){var e=t.value,n=t.subject;n.next(e),n.complete()}function o(t){var e=t.err;t.subject.error(e)}var s=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},a=n("bKpL"),u=n("RdI5"),c=n("XRvs"),l=n("l6Wf"),h=function(t){function e(e,n,r,i,o){t.call(this),this.callbackFunc=e,this.selector=n,this.args=r,this.context=i,this.scheduler
1=o}return s(e,t),e.create=function(t,n,r){return void 0===n&&(n=void 0),function(){for(var i=[],o=0;o<arguments.length;o++)i[o-0]=arguments[o];return new e(t,n,i,this,r)}},e.prototype._subscribe=function(t){var e=this.callbackFunc,n=this.args,i=this.scheduler,o=this.subject;if(i)return i.schedule(r,0,{source:this,subscriber:t,context:this.context});if(!o){o=this.subject=new l.AsyncSubject;var s=function t(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=t.source,i=r.selector,o=r.subject,s=e.shift();if(s)o.error(s);else if(i){var a=u.tryCatch(i).apply(this,e);a===c.errorObject?o.error(c.errorObject.e):(o.next(a),o.complete())}else o.next(e.length<=1?e[0]:e),o.complete()};s.source=this;u.tryCatch(e).apply(this.context,n.concat(s))===c.errorObject&&o.error(c.errorObject.e)}return o.subscribe(t)},e}(a.Observable);e.BoundNodeCallbackObservable=h},f7nC:function(t,e,n){"use strict";function r(t){return i.bufferWhen(t)(this)}var i=n("v1IT");e.bufferWhen=r},f8cP:function(t,e,n){"use strict";function r(t,e,n,r){var o=i,s=r+n;t^=-1;for(var a=r;a<s;a++)t=t>>>8^o[255&(t^e[a])];return-1^t}var i=function(){for(var t,e=[],n=0;n<256;n++){t=n;for(var r=0;r<8;r++)t=1&t?3988292384^t>>>1:t>>>1;e[n]=t}return e}();t.exports=r},f9zQ:function(t,e,n){"use strict";function r(t){switch(t.length){case 0:return new ft.d;case 1:return t[0];default:return new ft.g(t)}}function i(t,e,n,r,i,o){void 0===i&&(i={}),void 0===o&&(o={});var s=[],a=[],u=-1,c=null;if(r.forEach(function(t){var n=t.offset,r=n==u,l=r&&c||{};Object.keys(t).forEach(function(n){var r=n,a=t[n];if("offset"!==n)switch(r=e.normalizePropertyName(r,s),a){case ft.h:a=i[n];break;case ft.a:a=o[n];break;default:a=e.normalizeStyleValue(n,r,a,s)}l[r]=a}),r||a.push(l),c=l,u=n}),s.length){throw new Error("Unable to animate due to the following errors:\n - "+s.join("\n - "))}return a}function o(t,e,n,r){switch(e){case"start":t.onStart(function(){return r(n&&s(n,"start",t.totalTime))});break;case"done":t.onDone(function(){return r(n&&s(n,"done",t.totalTime))});break;case"destroy":t.onDestroy(function(){return r(n&&s(n,"destroy",t.totalTime))})}}function s(t,e,n){var r=a(t.element,t.triggerName,t.fromState,t.toState,e||t.phaseName,void 0==n?t.totalTime:n),i=t._data;return null!=i&&(r._data=i),r}function a(t,e,n,r,i,o){return void 0===i&&(i=""),void 0===o&&(o=0),{element:t,triggerName:e,fromState:n,toState:r,phaseName:i,totalTime:o}}function u(t,e,n){var r;return t instanceof Map?(r=t.get(e))||t.set(e,r=n):(r=t[e])||(r=t[e]=n),r}function c(t){var e=t.indexOf(":");return[t.substring(1,e),t.substr(e+1)]}function l(t){if("number"==typeof t)return t;var e=t.match(/^(-?[\.\d]+)(m?s)/);return!e||e.length<2?0:h(parseFloat(e[1]),e[2])}function h(t,e){switch(e){case"s":return t*St;default:return t}}function p(t,e,n){return t.hasOwnProperty("duration")?t:f(t,e,n)}function f(t,e,n){var r,i=/^(-?[\.\d]+)(m?s)(?:\s+(-?[\.\d]+)(m?s))?(?:\s+([-a-z]+(?:\(.+?\))?))?$/i,o=0,s="";if("string"==typeof t){var a=t.match(i);if(null===a)return e.push('The provided timing value "'+t+'" is invalid.'),{duration:0,delay:0,easing:""};r=h(parseFloat(a[1]),a[2]);var u=a[3];null!=u&&(o=h(Math.floor(parseFloat(u)),a[4]));var c=a[5];c&&(s=c)}else r=t;if(!n){var l=!1,p=e.length;r<0&&(e.push("Duration values below 0 are not allowed for this animation step."),l=!0),o<0&&(e.push("Delay values below 0 are not allowed for this animation step."),l=!0),l&&e.splice(p,0,'The provided timing value "'+t+'" is invalid.')}return{duration:r,delay:o,easing:s}}function d(t,e){return void 0===e&&(e={}),Object.keys(t).forEach(function(n){e[n]=t[n]}),e}function m(t){var e={};return Array.isArray(t)?t.forEach(function(t){return v(t,!1,e)}):v(t,!1,e),e}function v(t,e,n){if(void 0===n&&(n={}),e)for(var r in t)n[r]=t[r];else d(t,n);return n}function y(t,e){t.style&&Object.keys(e).forEach(function(n){var r=S(n);t.style[r]=e[n]})}function g(t,e){t.style&&Object.keys(e).forEach(function(e){var n=S(e);t.style[n]=""})}function b(t){return Array.isArray(t)?1==t.length?t[0]:Object(ft.e)(t):t}function _(t,e,n){var r=e.params||{},i=w(t);
1i.length&&i.forEach(function(t){r.hasOwnProperty(t)||n.push("Unable to resolve the local animation param "+t+" in the given list of values")})}function w(t){var e=[];if("string"==typeof t){for(var n=t.toString(),r=void 0;r=At.exec(n);)e.push(r[1]);At.lastIndex=0}return e}function x(t,e,n){var r=t.toString(),i=r.replace(At,function(t,r){var i=e[r];return e.hasOwnProperty(r)||(n.push("Please provide a value for the animation param "+r),i=""),i.toString()});return i==r?t:i}function E(t){for(var e=[],n=t.next();!n.done;)e.push(n.value),n=t.next();return e}function S(t){return t.replace(Pt,function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];return t[1].toUpperCase()})}function T(t,e){return 0===t||0===e}function M(t,e,n){switch(e.type){case 7:return t.visitTrigger(e,n);case 0:return t.visitState(e,n);case 1:return t.visitTransition(e,n);case 2:return t.visitSequence(e,n);case 3:return t.visitGroup(e,n);case 4:return t.visitAnimate(e,n);case 5:return t.visitKeyframes(e,n);case 6:return t.visitStyle(e,n);case 8:return t.visitReference(e,n);case 9:return t.visitAnimateChild(e,n);case 10:return t.visitAnimateRef(e,n);case 11:return t.visitQuery(e,n);case 12:return t.visitStagger(e,n);default:throw new Error("Unable to resolve animation metadata node #"+e.type)}}function C(t,e){var n=[];return"string"==typeof t?t.split(/\s*,\s*/).forEach(function(t){return O(t,n,e)}):n.push(t),n}function O(t,e,n){":"==t[0]&&(t=A(t,n));var r=t.match(/^(\*|[-\w]+)\s*(<?[=-]>)\s*(\*|[-\w]+)$/);if(null==r||r.length<4)return n.push('The provided transition expression "'+t+'" is not supported'),e;var i=r[1],o=r[2],s=r[3];e.push(P(i,s));var a=i==Rt&&s==Rt;"<"!=o[0]||a||e.push(P(s,i))}function A(t,e){switch(t){case":enter":return"void => *";case":leave":return"* => void";default:return e.push('The transition alias value "'+t+'" is not supported'),"* => *"}}function P(t,e){var n=Lt.has(t)||Nt.has(t),r=Lt.has(e)||Nt.has(e);return function(i,o){var s=t==Rt||t==i,a=e==Rt||e==o;return!s&&n&&"boolean"==typeof i&&(s=i?Lt.has(t):Nt.has(t)),!a&&r&&"boolean"==typeof o&&(a=o?Lt.has(e):Nt.has(e)),s&&a}}function R(t,e){return(new Ft).build(t,e)}function L(t){var e=!!t.split(/\s*,\s*/).find(function(t){return t==It});return e&&(t=t.replace(kt,"")),t=t.replace(Dt,Tt).replace(jt,Mt).replace(/@\*/g,Ct).replace(/@\w+/g,function(t){return Ct+"-"+t.substr(1)}).replace(/:animating/g,Ot),[t,e]}function N(t){return t?d(t):null}function I(t){if("string"==typeof t)return null;var e=null;if(Array.isArray(t))t.forEach(function(t){if(k(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}});else if(k(t)&&t.hasOwnProperty("offset")){var n=t;e=parseFloat(n.offset),delete n.offset}return e}function k(t){return!Array.isArray(t)&&"object"==typeof t}function j(t,e){var n=null;if(t.hasOwnProperty("duration"))n=t;else if("number"==typeof t){var r=p(t,e).duration;return F(r,0,"")}var i=t;if(i.split(/\s+/).some(function(t){return"{"==t.charAt(0)&&"{"==t.charAt(1)})){var o=F(0,0,"");return o.dynamic=!0,o.strValue=i,o}return n=n||p(i,e),F(n.duration,n.delay,n.easing)}function D(t){return t?(t=d(t),t.params&&(t.params=N(t.params))):t={},t}function F(t,e,n){return{duration:t,delay:e,easing:n}}function U(t,e,n,r,i,o,s,a){return void 0===s&&(s=null),void 0===a&&(a=!1),{type:1,element:t,keyframes:e,preStyleProps:n,postStyleProps:r,duration:i,delay:o,totalTime:i+o,easing:s,subTimeline:a}}function B(t,e,n,r,i,o,s,a){return void 0===r&&(r={}),void 0===i&&(i={}),void 0===a&&(a=[]),(new zt).buildKeyframes(t,e,n,r,i,o,s,a)}function z(t,e){void 0===e&&(e=3);var n=Math.pow(10,e-1);return Math.round(t*n)/n}function V(t,e){var n,r={};return t.forEach(function(t){"*"===t?(n=n||Object.keys(e),n.forEach(function(t){r[t]=ft.a})):v(t,!1,r)}),r}function H(t,e,n,r,i,o,s,a,u,c,l,h){return{type:0,element:t,triggerName:e,isRemovalTransition:i,fromState:n,fromStyles:o,toState:r,toStyles:s,timelines:a,queriedElements:u,preStyleProps:c,postStyleProps:l,errors:h}}function G(t,e,n){return t.some(function(t){return t(e,n)})}function W(t,e){return new Qt(t,e)}function q(t,e){return new Yt(t,{type:1,animation:{type:2,steps:[],options:null},matchers:[function(t,e){return!0}],options:null,queryCount:0,depCount:0},e)}function Z(t,e,n){t.hasOwnProperty(e)?t.hasOwnProperty(n)||(t[n]=t[e]):t.hasOwnProperty(n)&&(t[e]=t[n])}function X(t,e,n){var r;if(t instanceof Map){if(r=t.get(e)){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&t.delete(e)}}else if(r=t[e]){if(r.length){var i=r.indexOf(n);r.splice(i,1)}0==r.length&&delete t[e]}return r}function K(t){return null!=t?t:null}function Y(t){return t&&1===t.nodeType}function J(t){return"start"==t||"done"==t}function Q(t,e){var n=t.style.display;return t.style.display=null!=e?e:"none",n}function $(t,e,n,r){var i=[];e.forEach(function(t){return i.push(Q(t))});var o=new Map,s=[];
1n.forEach(function(e,n){var i={};e.forEach(function(e){var o=i[e]=t.computeStyle(n,e,r);o&&0!=o.length||(n[ie]=re,s.push(n))}),o.set(n,i)});var a=0;return e.forEach(function(t){return Q(t,i[a++])}),[o,s]}function tt(t){var e,n=new Set(t),r=new Set;return e=function(t){return!t||!n.has(t.parentNode)&&(!!r.has(t.parentNode)||!!e(t.parentNode)&&(r.add(t),!0))}}function et(t,e){if(t.classList)return t.classList.contains(e);var n=t[he];return n&&n[e]}function nt(t,e){if(t.classList)t.classList.add(e);else{var n=t[he];n||(n=t[he]={}),n[e]=!0}}function rt(t,e){if(t.classList)t.classList.remove(e);else{var n=t[he];n&&delete n[e]}}function it(){return"undefined"!=typeof document?document.body:null}function ot(t,e,n){r(n).onDone(function(){return t.processLeaveNode(e)})}function st(t){var e=[];return at(t,e),e}function at(t,e){for(var n=0;n<t.length;n++){var r=t[n];r instanceof ft.g?at(r.players,e):e.push(r)}}function ut(t,e){var n=Object.keys(t),r=Object.keys(e);if(n.length!=r.length)return!1;for(var i=0;i<n.length;i++){var o=n[i];if(!e.hasOwnProperty(o)||t[o]!==e[o])return!1}return!0}function ct(t,e,n){var r=n.get(t);if(!r)return!1;var i=e.get(t);return i?r.forEach(function(t){return i.add(t)}):e.set(t,r),n.delete(t),!0}function lt(t,e){return window.getComputedStyle(t)[e]}function ht(){return"undefined"!=typeof Element&&"function"==typeof Element.prototype.animate}n.d(e,"a",function(){return Et}),n.d(e,"c",function(){return qt}),n.d(e,"f",function(){return Zt}),n.d(e,"d",function(){return xt}),n.d(e,"b",function(){return pe}),n.d(e,"e",function(){return de}),n.d(e,"g",function(){return ht});var pt=n("6Xbx"),ft=n("EyWH"),dt=function(t,e){return!1},mt=function(t,e){return!1},vt=function(t,e,n){return[]};if("undefined"!=typeof Element){if(dt=function(t,e){return t.contains(e)},Element.prototype.matches)mt=function(t,e){return t.matches(e)};else{var yt=Element.prototype,gt=yt.matchesSelector||yt.mozMatchesSelector||yt.msMatchesSelector||yt.oMatchesSelector||yt.webkitMatchesSelector;gt&&(mt=function(t,e){return gt.apply(t,[e])})}vt=function(t,e,n){var r=[];if(n)r.push.apply(r,t.querySelectorAll(e));else{var i=t.querySelector(e);i&&r.push(i)}return r}}var bt=mt,_t=dt,wt=vt,xt=function(){function t(){}return t.prototype.matchesElement=function(t,e){return bt(t,e)},t.prototype.containsElement=function(t,e){return _t(t,e)},t.prototype.query=function(t,e,n){return wt(t,e,n)},t.prototype.computeStyle=function(t,e,n){return n||""},t.prototype.animate=function(t,e,n,r,i,o){return void 0===o&&(o=[]),new ft.d},t}(),Et=function(){function t(){}return t}();Et.NOOP=new xt;var St=1e3,Tt=".ng-enter",Mt=".ng-leave",Ct=".ng-trigger",Ot=".ng-animating",At=new RegExp("{{\\s*(.+?)\\s*}}","g"),Pt=/-+([a-z0-9])/g,Rt="*",Lt=new Set;Lt.add("true"),Lt.add("1");var Nt=new Set;Nt.add("false"),Nt.add("0");var It=":self",kt=new RegExp("s*"+It+"s*,?","g"),jt=new RegExp(":leave","g"),Dt=new RegExp(":enter","g"),Ft=function(){function t(){}return t.prototype.build=function(t,e){var n=new Ut(e);return this._resetContextStyleTimingState(n),M(this,b(t),n)},t.prototype._resetContextStyleTimingState=function(t){t.currentQuerySelector="",t.collectedStyles={},t.collectedStyles[""]={},t.currentTime=0},t.prototype.visitTrigger=function(t,e){var n=this,r=e.queryCount=0,i=e.depCount=0,o=[],s=[];return t.definitions.forEach(function(t){if(n._resetContextStyleTimingState(e),0==t.type){var a=t,u=a.name;u.split(/\s*,\s*/).forEach(function(t){a.name=t,o.push(n.visitState(a,e))}),a.name=u}else if(1==t.type){var c=n.visitTransition(t,e);r+=c.queryCount,i+=c.depCount,s.push(c)}else e.errors.push("only state() and transition() definitions can sit inside of a trigger()")}),{type:7,name:t.name,states:o,transitions:s,queryCount:r,depCount:i,options:null}},t.prototype.visitState=function(t,e){var n=this.visitStyle(t.styles,e),r=t.options&&t.options.params||null;if(n.containsDynamicStyles){var i=new Set,o=r||{};if(n.styles.forEach(function(t){if(k(t)){var e=t;Object.keys(e).forEach(function(t){w(e[t]).forEach(function(t){o.hasOwnProperty(t)||i.add(t)})})}}),i.size){var s=E(i.values());e.errors.push('state("'+t.name+'", ...) must define default values for all the following style substitutions: '+s.join(", "))}}return{type:0,name:t.name,style:n,options:r?{params:r}:null}},t.prototype.visitTransition=function(t,e){e.queryCount=0,e.depCount=0;var n=M(this,b(t.animation),e);return{type:1,matchers:C(t.expr,e.errors),animation:n,queryCount:e.queryCount,depCount:e.depCount,options:D(t.options)}},t.prototype.visitSequence=function(t,e){var n=this;return{type:2,steps:t.steps.map(function(t){return M(n,t,e)}),options:D(t.options)}},t.prototype.visitGroup=function(t,e){var n=this,r=e.currentTime,i=0,o=t.steps.map(function(t){e.currentTime=r;var o=M(n,t,e);return i=Math.max(i,e.currentTime),o});return e.currentTime=i,{type:3,steps:o,options:D(t.options)}},t.prototype.visitAnimate=function(t,e){var n=j(t.timings,e.errors);e.currentAnimateTimings=n;var r,i=t.styles?t.styles:Object(ft.f)({});
1if(5==i.type)r=this.visitKeyframes(i,e);else{var o=t.styles,s=!1;if(!o){s=!0;var a={};n.easing&&(a.easing=n.easing),o=Object(ft.f)(a)}e.currentTime+=n.duration+n.delay;var u=this.visitStyle(o,e);u.isEmptyStep=s,r=u}return e.currentAnimateTimings=null,{type:4,timings:n,style:r,options:null}},t.prototype.visitStyle=function(t,e){var n=this._makeStyleAst(t,e);return this._validateStyleAst(n,e),n},t.prototype._makeStyleAst=function(t,e){var n=[];Array.isArray(t.styles)?t.styles.forEach(function(t){"string"==typeof t?t==ft.a?n.push(t):e.errors.push("The provided style string value "+t+" is not allowed."):n.push(t)}):n.push(t.styles);var r=!1,i=null;return n.forEach(function(t){if(k(t)){var e=t,n=e.easing;if(n&&(i=n,delete e.easing),!r)for(var o in e){var s=e[o];if(s.toString().indexOf("{{")>=0){r=!0;break}}}}),{type:6,styles:n,easing:i,offset:t.offset,containsDynamicStyles:r,options:null}},t.prototype._validateStyleAst=function(t,e){var n=e.currentAnimateTimings,r=e.currentTime,i=e.currentTime;n&&i>0&&(i-=n.duration+n.delay),t.styles.forEach(function(t){"string"!=typeof t&&Object.keys(t).forEach(function(n){var o=e.collectedStyles[e.currentQuerySelector],s=o[n],a=!0;s&&(i!=r&&i>=s.startTime&&r<=s.endTime&&(e.errors.push('The CSS property "'+n+'" that exists between the times of "'+s.startTime+'ms" and "'+s.endTime+'ms" is also being animated in a parallel animation between the times of "'+i+'ms" and "'+r+'ms"'),a=!1),i=s.startTime),a&&(o[n]={startTime:i,endTime:r}),e.options&&_(t[n],e.options,e.errors)})})},t.prototype.visitKeyframes=function(t,e){var n=this,r={type:5,styles:[],options:null};if(!e.currentAnimateTimings)return e.errors.push("keyframes() must be placed inside of a call to animate()"),r;var i=0,o=[],s=!1,a=!1,u=0,c=t.steps.map(function(t){var r=n._makeStyleAst(t,e),c=null!=r.offset?r.offset:I(r.styles),l=0;return null!=c&&(i++,l=r.offset=c),a=a||l<0||l>1,s=s||l<u,u=l,o.push(l),r});a&&e.errors.push("Please ensure that all keyframe offsets are between 0 and 1"),s&&e.errors.push("Please ensure that all keyframe offsets are in order");var l=t.steps.length,h=0;i>0&&i<l?e.errors.push("Not all style() steps within the declared keyframes() contain offsets"):0==i&&(h=1/(l-1));var p=l-1,f=e.currentTime,d=e.currentAnimateTimings,m=d.duration;return c.forEach(function(t,i){var s=h>0?i==p?1:h*i:o[i],a=s*m;e.currentTime=f+d.delay+a,d.duration=a,n._validateStyleAst(t,e),t.offset=s,r.styles.push(t)}),r},t.prototype.visitReference=function(t,e){return{type:8,animation:M(this,b(t.animation),e),options:D(t.options)}},t.prototype.visitAnimateChild=function(t,e){return e.depCount++,{type:9,options:D(t.options)}},t.prototype.visitAnimateRef=function(t,e){return{type:10,animation:this.visitReference(t.animation,e),options:D(t.options)}},t.prototype.visitQuery=function(t,e){var n=e.currentQuerySelector,r=t.options||{};e.queryCount++,e.currentQuery=t;var i=L(t.selector),o=i[0],s=i[1];e.currentQuerySelector=n.length?n+" "+o:o,u(e.collectedStyles,e.currentQuerySelector,{});var a=M(this,b(t.animation),e);return e.currentQuery=null,e.currentQuerySelector=n,{type:11,selector:o,limit:r.limit||0,optional:!!r.optional,includeSelf:s,animation:a,originalSelector:t.selector,options:D(t.options)}},t.prototype.visitStagger=function(t,e){e.currentQuery||e.errors.push("stagger() can only be used inside of query()");var n="full"===t.timings?{duration:0,delay:0,easing:"full"}:p(t.timings,e.errors,!0);return{type:12,animation:M(this,b(t.animation),e),timings:n,options:null}},t}(),Ut=function(){function t(t){this.errors=t,this.queryCount=0,this.depCount=0,this.currentTransition=null,this.currentQuery=null,this.currentQuerySelector=null,this.currentAnimateTimings=null,this.currentTime=0,this.collectedStyles={},this.options=null}return t}(),Bt=function(){function t(){this._map=new Map}return t.prototype.consume=function(t){var e=this._map.get(t);return e?this._map.delete(t):e=[],e},t.prototype.append=function(t,e){var n=this._map.get(t);n||this._map.set(t,n=[]),n.push.apply(n,e)},t.prototype.has=function(t){return this._map.has(t)},t.prototype.clear=function(){this._map.clear()},t}(),zt=function(){function t(){}return t.prototype.buildKeyframes=function(t,e,n,r,i,o,s,a){void 0===a&&(a=[]),s=s||new Bt;var u=new Ht(t,e,s,a,[]);u.options=o,u.currentTimeline.setStyles([r],null,u.errors,o),M(this,n,u);var c=u.timelines.filter(function(t){return t.containsAnimation()});if(c.length&&Object.keys(i).length){var l=c[c.length-1];l.allowOnlyTimelineStyles()||l.setStyles([i],null,u.errors,o)}return c.length?c.map(function(t){return t.buildKeyframes()}):[U(e,[],[],[],0,0,"",!1)]},t.prototype.visitTrigger=function(t,e){},t.prototype.visitState=function(t,e){},t.prototype.visitTransition=function(t,e){}
1,t.prototype.visitAnimateChild=function(t,e){var n=e.subInstructions.consume(e.element);if(n){var r=e.createSubContext(t.options),i=e.currentTimeline.currentTime,o=this._visitSubInstructions(n,r,r.options);i!=o&&e.transformIntoNewTimeline(o)}e.previousNode=t},t.prototype.visitAnimateRef=function(t,e){var n=e.createSubContext(t.options);n.transformIntoNewTimeline(),this.visitReference(t.animation,n),e.transformIntoNewTimeline(n.currentTimeline.currentTime),e.previousNode=t},t.prototype._visitSubInstructions=function(t,e,n){var r=e.currentTimeline.currentTime,i=r,o=null!=n.duration?l(n.duration):null,s=null!=n.delay?l(n.delay):null;return 0!==o&&t.forEach(function(t){var n=e.appendInstructionToTimeline(t,o,s);i=Math.max(i,n.duration+n.delay)}),i},t.prototype.visitReference=function(t,e){e.updateOptions(t.options,!0),M(this,t.animation,e),e.previousNode=t},t.prototype.visitSequence=function(t,e){var n=this,r=e.subContextCount,i=e,o=t.options;if(o&&(o.params||o.delay)&&(i=e.createSubContext(o),i.transformIntoNewTimeline(),null!=o.delay)){6==i.previousNode.type&&(i.currentTimeline.snapshotCurrentStyles(),i.previousNode=Vt);var s=l(o.delay);i.delayNextStep(s)}t.steps.length&&(t.steps.forEach(function(t){return M(n,t,i)}),i.currentTimeline.applyStylesToKeyframe(),i.subContextCount>r&&i.transformIntoNewTimeline()),e.previousNode=t},t.prototype.visitGroup=function(t,e){var n=this,r=[],i=e.currentTimeline.currentTime,o=t.options&&t.options.delay?l(t.options.delay):0;t.steps.forEach(function(s){var a=e.createSubContext(t.options);o&&a.delayNextStep(o),M(n,s,a),i=Math.max(i,a.currentTimeline.currentTime),r.push(a.currentTimeline)}),r.forEach(function(t){return e.currentTimeline.mergeTimelineCollectedStyles(t)}),e.transformIntoNewTimeline(i),e.previousNode=t},t.prototype._visitTiming=function(t,e){if(t.dynamic){var n=t.strValue;return p(e.params?x(n,e.params,e.errors):n,e.errors)}return{duration:t.duration,delay:t.delay,easing:t.easing}},t.prototype.visitAnimate=function(t,e){var n=e.currentAnimateTimings=this._visitTiming(t.timings,e),r=e.currentTimeline;n.delay&&(e.incrementTime(n.delay),r.snapshotCurrentStyles());var i=t.style;5==i.type?this.visitKeyframes(i,e):(e.incrementTime(n.duration),this.visitStyle(i,e),r.applyStylesToKeyframe()),e.currentAnimateTimings=null,e.previousNode=t},t.prototype.visitStyle=function(t,e){var n=e.currentTimeline,r=e.currentAnimateTimings;!r&&n.getCurrentStyleProperties().length&&n.forwardFrame();var i=r&&r.easing||t.easing;t.isEmptyStep?n.applyEmptyStep(i):n.setStyles(t.styles,i,e.errors,e.options),e.previousNode=t},t.prototype.visitKeyframes=function(t,e){var n=e.currentAnimateTimings,r=e.currentTimeline.duration,i=n.duration,o=e.createSubContext(),s=o.currentTimeline;s.easing=n.easing,t.styles.forEach(function(t){var n=t.offset||0;s.forwardTime(n*i),s.setStyles(t.styles,t.easing,e.errors,e.options),s.applyStylesToKeyframe()}),e.currentTimeline.mergeTimelineCollectedStyles(s),e.transformIntoNewTimeline(r+i),e.previousNode=t},t.prototype.visitQuery=function(t,e){var n=this,r=e.currentTimeline.currentTime,i=t.options||{},o=i.delay?l(i.delay):0;o&&(6===e.previousNode.type||0==r&&e.currentTimeline.getCurrentStyleProperties().length)&&(e.currentTimeline.snapshotCurrentStyles(),e.previousNode=Vt);var s=r,a=e.invokeQuery(t.selector,t.originalSelector,t.limit,t.includeSelf,!!i.optional,e.errors);e.currentQueryTotal=a.length;var u=null;a.forEach(function(r,i){e.currentQueryIndex=i;var a=e.createSubContext(t.options,r);o&&a.delayNextStep(o),r===e.element&&(u=a.currentTimeline),M(n,t.animation,a),a.currentTimeline.applyStylesToKeyframe();var c=a.currentTimeline.currentTime;s=Math.max(s,c)}),e.currentQueryIndex=0,e.currentQueryTotal=0,e.transformIntoNewTimeline(s),u&&(e.currentTimeline.mergeTimelineCollectedStyles(u),e.currentTimeline.snapshotCurrentStyles()),e.previousNode=t},t.prototype.visitStagger=function(t,e){var n=e.parentContext,r=e.currentTimeline,i=t.timings,o=Math.abs(i.duration),s=o*(e.currentQueryTotal-1),a=o*e.currentQueryIndex;switch(i.duration<0?"reverse":i.easing){case"reverse":a=s-a;break;case"full":a=n.currentStaggerTime}var u=e.currentTimeline;a&&u.delayNextStep(a);var c=u.currentTime;M(this,t.animation,e),e.previousNode=t,n.currentStaggerTime=r.currentTime-c+(r.startTime-n.currentTimeline.startTime)},t}(),Vt={},Ht=function(){function t(t,e,n,r,i,o){this._driver=t,this.element=e,this.subInstru
1ctions=n,this.errors=r,this.timelines=i,this.parentContext=null,this.currentAnimateTimings=null,this.previousNode=Vt,this.subContextCount=0,this.options={},this.currentQueryIndex=0,this.currentQueryTotal=0,this.currentStaggerTime=0,this.currentTimeline=o||new Gt(e,0),i.push(this.currentTimeline)}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.updateOptions=function(t,e){var n=this;if(t){var r=t,i=this.options;null!=r.duration&&(i.duration=l(r.duration)),null!=r.delay&&(i.delay=l(r.delay));var o=r.params;if(o){var s=i.params;s||(s=this.options.params={}),Object.keys(o).forEach(function(t){e&&s.hasOwnProperty(t)||(s[t]=x(o[t],s,n.errors))})}}},t.prototype._copyOptions=function(){var t={};if(this.options){var e=this.options.params;if(e){var n=t.params={};Object.keys(e).forEach(function(t){n[t]=e[t]})}}return t},t.prototype.createSubContext=function(e,n,r){void 0===e&&(e=null);var i=n||this.element,o=new t(this._driver,i,this.subInstructions,this.errors,this.timelines,this.currentTimeline.fork(i,r||0));return o.previousNode=this.previousNode,o.currentAnimateTimings=this.currentAnimateTimings,o.options=this._copyOptions(),o.updateOptions(e),o.currentQueryIndex=this.currentQueryIndex,o.currentQueryTotal=this.currentQueryTotal,o.parentContext=this,this.subContextCount++,o},t.prototype.transformIntoNewTimeline=function(t){return this.previousNode=Vt,this.currentTimeline=this.currentTimeline.fork(this.element,t),this.timelines.push(this.currentTimeline),this.currentTimeline},t.prototype.appendInstructionToTimeline=function(t,e,n){var r={duration:null!=e?e:t.duration,delay:this.currentTimeline.currentTime+(null!=n?n:0)+t.delay,easing:""},i=new Wt(t.element,t.keyframes,t.preStyleProps,t.postStyleProps,r,t.stretchStartingKeyframe);return this.timelines.push(i),r},t.prototype.incrementTime=function(t){this.currentTimeline.forwardTime(this.currentTimeline.duration+t)},t.prototype.delayNextStep=function(t){t>0&&this.currentTimeline.delayNextStep(t)},t.prototype.invokeQuery=function(t,e,n,r,i,o){var s=[];if(r&&s.push(this.element),t.length>0){var a=1!=n,u=this._driver.query(this.element,t,a);0!==n&&(u=u.slice(0,n)),s.push.apply(s,u)}return i||0!=s.length||o.push('`query("'+e+'")` returned zero elements. (Use `query("'+e+'", { optional: true })` if you wish to allow this.)'),s},t}(),Gt=function(){function t(t,e,n){this.element=t,this.startTime=e,this._elementTimelineStylesLookup=n,this.duration=0,this._previousKeyframe={},this._currentKeyframe={},this._keyframes=new Map,this._styleSummary={},this._pendingStyles={},this._backFill={},this._currentEmptyStepKeyframe=null,this._elementTimelineStylesLookup||(this._elementTimelineStylesLookup=new Map),this._localTimelineStyles=Object.create(this._backFill,{}),this._globalTimelineStyles=this._elementTimelineStylesLookup.get(t),this._globalTimelineStyles||(this._globalTimelineStyles=this._localTimelineStyles,this._elementTimelineStylesLookup.set(t,this._localTimelineStyles)),this._loadKeyframe()}return t.prototype.containsAnimation=function(){switch(this._keyframes.size){case 0:return!1;case 1:return this.getCurrentStyleProperties().length>0;default:return!0}},t.prototype.getCurrentStyleProperties=function(){return Object.keys(this._currentKeyframe)},Object.defineProperty(t.prototype,"currentTime",{get:function(){return this.startTime+this.duration},enumerable:!0,configurable:!0}),t.prototype.delayNextStep=function(t){var e=1==this._keyframes.size&&Object.keys(this._pendingStyles).length;this.duration||e?(this.forwardTime(this.currentTime+t),e&&this.snapshotCurrentStyles()):this.startTime+=t},t.prototype.fork=function(e,n){return this.applyStylesToKeyframe(),new t(e,n||this.currentTime,this._elementTimelineStylesLookup)},t.prototype._loadKeyframe=function(){this._currentKeyframe&&(this._previousKeyframe=this._currentKeyframe),this._currentKeyframe=this._keyframes.get(this.duration),this._currentKeyframe||(this._currentKeyframe=Object.create(this._backFill,{}),this._keyframes.set(this.duration,this._currentKeyframe))},t.prototype.forwardFrame=function(){this.duration+=1,this._loadKeyframe()},t.prototype.forwardTime=function(t){this.applyStylesToKeyframe(),this.duration=t,this._loadKeyframe()},t.prototype._updateStyle=function(t,e){this._localTimelineStyles[t]=e,this._globalTimelineStyles[t]=e,this._styleSummary[t]={time:this.currentTime,value:e}},t.prototype.allowOnlyTimelineStyles=function(){return this._currentEmptyStepKeyframe!==this._currentKeyframe},t.prototype.applyEmptyStep=function(t){var e=this;t&&(this._previousKeyframe.easing=t),Object.keys(this._globalTimelineStyles).forEac
1h(function(t){e._backFill[t]=e._globalTimelineStyles[t]||ft.a,e._currentKeyframe[t]=ft.a}),this._currentEmptyStepKeyframe=this._currentKeyframe},t.prototype.setStyles=function(t,e,n,r){var i=this;e&&(this._previousKeyframe.easing=e);var o=r&&r.params||{},s=V(t,this._globalTimelineStyles);Object.keys(s).forEach(function(t){var e=x(s[t],o,n);i._pendingStyles[t]=e,i._localTimelineStyles.hasOwnProperty(t)||(i._backFill[t]=i._globalTimelineStyles.hasOwnProperty(t)?i._globalTimelineStyles[t]:ft.a),i._updateStyle(t,e)})},t.prototype.applyStylesToKeyframe=function(){var t=this,e=this._pendingStyles,n=Object.keys(e);0!=n.length&&(this._pendingStyles={},n.forEach(function(n){var r=e[n];t._currentKeyframe[n]=r}),Object.keys(this._localTimelineStyles).forEach(function(e){t._currentKeyframe.hasOwnProperty(e)||(t._currentKeyframe[e]=t._localTimelineStyles[e])}))},t.prototype.snapshotCurrentStyles=function(){var t=this;Object.keys(this._localTimelineStyles).forEach(function(e){var n=t._localTimelineStyles[e];t._pendingStyles[e]=n,t._updateStyle(e,n)})},t.prototype.getFinalKeyframe=function(){return this._keyframes.get(this.duration)},Object.defineProperty(t.prototype,"properties",{get:function(){var t=[];for(var e in this._currentKeyframe)t.push(e);return t},enumerable:!0,configurable:!0}),t.prototype.mergeTimelineCollectedStyles=function(t){var e=this;Object.keys(t._styleSummary).forEach(function(n){var r=e._styleSummary[n],i=t._styleSummary[n];(!r||i.time>r.time)&&e._updateStyle(n,i.value)})},t.prototype.buildKeyframes=function(){var t=this;this.applyStylesToKeyframe();var e=new Set,n=new Set,r=1===this._keyframes.size&&0===this.duration,i=[];this._keyframes.forEach(function(o,s){var a=v(o,!0);Object.keys(a).forEach(function(t){var r=a[t];r==ft.h?e.add(t):r==ft.a&&n.add(t)}),r||(a.offset=s/t.duration),i.push(a)});var o=e.size?E(e.values()):[],s=n.size?E(n.values()):[];if(r){var a=i[0],u=d(a);a.offset=0,u.offset=1,i=[a,u]}return U(this.element,i,o,s,this.duration,this.startTime,this.easing,!1)},t}(),Wt=function(t){function e(e,n,r,i,o,s){void 0===s&&(s=!1);var a=t.call(this,e,o.delay)||this;return a.element=e,a.keyframes=n,a.preStyleProps=r,a.postStyleProps=i,a._stretchStartingKeyframe=s,a.timings={duration:o.duration,delay:o.delay,easing:o.easing},a}return pt.a(e,t),e.prototype.containsAnimation=function(){return this.keyframes.length>1},e.prototype.buildKeyframes=function(){var t=this.keyframes,e=this.timings,n=e.delay,r=e.duration,i=e.easing;if(this._stretchStartingKeyframe&&n){var o=[],s=r+n,a=n/s,u=v(t[0],!1);u.offset=0,o.push(u);var c=v(t[0],!1);c.offset=z(a),o.push(c);for(var l=t.length-1,h=1;h<=l;h++){var p=v(t[h],!1),f=p.offset,d=n+f*r;p.offset=z(d/s),o.push(p)}r=s,n=0,i="",t=o}return U(this.element,t,this.preStyleProps,this.postStyleProps,r,n,i,!0)},e}(Gt),qt=(function(){function t(t,e){this._driver=t;var n=[],r=R(e,n);if(n.length){var i="animation validation failed:\n"+n.join("\n");throw new Error(i)}this._animationAst=r}t.prototype.buildTimelines=function(t,e,n,r,i){var o=Array.isArray(e)?m(e):e,s=Array.isArray(n)?m(n):n,a=[];i=i||new Bt;var u=B(this._driver,t,this._animationAst,o,s,r,i,a);if(a.length){var c="animation building failed:\n"+a.join("\n");throw new Error(c)}return u}}(),function(){function t(){}return t}()),Zt=(function(){function t(){}t.prototype.normalizePropertyName=function(t,e){return t},t.prototype.normalizeStyleValue=function(t,e,n,r){return n}}(),function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return pt.a(e,t),e.prototype.normalizePropertyName=function(t,e){return S(t)},e.prototype.normalizeStyleValue=function(t,e,n,r){var i="",o=n.toString().trim();if(Xt[e]&&0!==n&&"0"!==n)if("number"==typeof n)i="px";else{var s=n.match(/^[+-]?[\d\.]+([a-z]*)$/);s&&0==s[1].length&&r.push("Please provide a CSS unit value for "+t+":"+n)}return o+i},e}(qt)),Xt=function(t){var e={};return t.forEach(function(t){return e[t]=!0}),e}("width,height,minWidth,minHeight,maxWidth,maxHeight,left,top,bottom,right,fontSize,outlineWidth,outlineOffset,paddingTop,paddingLeft,paddingBottom,paddingRight,marginTop,marginLeft,marginBottom,marginRight,borderRadius,borderWidth,borderTopWidth,borderLeftWidth,borderRightWidth,borderBottomWidth,textIndent,perspective".split(",")),Kt={},Yt=function(){function t(t,e,n){this._triggerName=t,this.ast=e,this._stateStyles=n}return t.prototype.match=function(t,e){return G(this.ast.matchers,t,e)}
1,t.prototype.buildStyles=function(t,e,n){var r=this._stateStyles["*"],i=this._stateStyles[t],o=r?r.buildStyles(e,n):{};return i?i.buildStyles(e,n):o},t.prototype.build=function(t,e,n,r,i,o,s){var a=[],c=this.ast.options&&this.ast.options.params||Kt,l=i&&i.params||Kt,h=this.buildStyles(n,l,a),p=o&&o.params||Kt,f=this.buildStyles(r,p,a),d=new Set,m=new Map,v=new Map,y="void"===r,g={params:Object.assign({},c,p)},b=B(t,e,this.ast.animation,h,f,g,s,a);if(a.length)return H(e,this._triggerName,n,r,y,h,f,[],[],m,v,a);b.forEach(function(t){var n=t.element,r=u(m,n,{});t.preStyleProps.forEach(function(t){return r[t]=!0});var i=u(v,n,{});t.postStyleProps.forEach(function(t){return i[t]=!0}),n!==e&&d.add(n)});var _=E(d.values());return H(e,this._triggerName,n,r,y,h,f,b,_,m,v)},t}(),Jt=function(){function t(t,e){this.styles=t,this.defaultParams=e}return t.prototype.buildStyles=function(t,e){var n={},r=d(this.defaultParams);return Object.keys(t).forEach(function(e){var n=t[e];null!=n&&(r[e]=n)}),this.styles.styles.forEach(function(t){if("string"!=typeof t){var i=t;
1Object.keys(i).forEach(function(t){var o=i[t];o.length>1&&(o=x(o,r,e)),n[t]=o})}}),n},t}(),Qt=function(){function t(t,e){var n=this;this.name=t,this.ast=e,this.transitionFactories=[],this.states={},e.states.forEach(function(t){var e=t.options&&t.options.params||{};n.states[t.name]=new Jt(t.style,e)}),Z(this.states,"true","1"),Z(this.states,"false","0"),e.transitions.forEach(function(e){n.transitionFactories.push(new Yt(t,e,n.states))}),this.fallbackTransition=q(t,this.states)}return Object.defineProperty(t.prototype,"containsQueries",{get:function(){return this.ast.queryCount>0},enumerable:!0,configurable:!0}),t.prototype.matchTransition=function(t,e){return this.transitionFactories.find(function(n){return n.match(t,e)})||null},t.prototype.matchStyles=function(t,e,n){return this.fallbackTransition.buildStyles(t,e,n)},t}(),$t=new Bt,te=function(){function t(t,e){this._driver=t,this._normalizer=e,this._animations={},this._playersById={},this.players=[]}return t.prototype.register=function(t,e){var n=[],r=R(e,n);if(n.length)throw new Error("Unable to build the animation due to the following errors: "+n.join("\n"));this._animations[t]=r},t.prototype._buildPlayer=function(t,e,n){var r=t.element,o=i(this._driver,this._normalizer,r,t.keyframes,e,n);return this._driver.animate(r,o,t.duration,t.delay,t.easing,[])},t.prototype.create=function(t,e,n){var i=this;void 0===n&&(n={});var o,s=[],a=this._animations[t],c=new Map;if(a?(o=B(this._driver,e,a,{},{},n,$t,s),o.forEach(function(t){var e=u(c,t.element,{});t.postStyleProps.forEach(function(t){return e[t]=null})})):(s.push("The requested animation doesn't exist or has already been destroyed"),o=[]),s.length)throw new Error("Unable to create the animation due to the following errors: "+s.join("\n"));c.forEach(function(t,e){Object.keys(t).forEach(function(n){t[n]=i._driver.computeStyle(e,n,ft.a)})});var l=o.map(function(t){var e=c.get(t.element);return i._buildPlayer(t,{},e)}),h=r(l);return this._playersById[t]=h,h.onDestroy(function(){return i.destroy(t)}),this.players.push(h),h},t.prototype.destroy=function(t){var e=this._getPlayer(t);e.destroy(),delete this._playersById[t];var n=this.players.indexOf(e);n>=0&&this.players.splice(n,1)},t.prototype._getPlayer=function(t){var e=this._playersById[t];if(!e)throw new Error("Unable to find the timeline player referenced by "+t);return e},t.prototype.listen=function(t,e,n,r){var i=a(e,"","","");return o(this._getPlayer(t),n,i,r),function(){}},t.prototype.command=function(t,e,n,r){if("register"==n)return void this.register(t,r[0]);if("create"==n){var i=r[0]||{};return void this.create(t,e,i)}var o=this._getPlayer(t);switch(n){case"play":o.play();break;case"pause":o.pause();break;case"reset":o.reset();break;case"restart":o.restart();break;case"finish":o.finish();break;case"init":o.init();break;case"setPosition":o.setPosition(parseFloat(r[0]));break;case"destroy":this.destroy(t)}},t}(),ee=[],ne={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!1},re={namespaceId:"",setForRemoval:null,hasAnimation:!1,removedBeforeQueried:!0},ie="__ng_removed",oe=function(){function t(t){var e=t&&t.hasOwnProperty("value"),n=e?t.value:t;if(this.value=K(n),e){var r=d(t);delete r.value,this.options=r}else this.options={};this.options.params||(this.options.params={})}return Object.defineProperty(t.prototype,"params",{get:function(){return this.options.params},enumerable:!0,configurable:!0}),t.prototype.absorbOptions=function(t){var e=t.params;if(e){var n=this.options.params;Object.keys(e).forEach(function(t){null==n[t]&&(n[t]=e[t])})}},t}(),se=new oe("void"),ae=new oe("DELETED"),ue=function(){function t(t,e,n){this.id=t,this.hostElement=e,this._engine=n,this.players=[],this._triggers={},this._queue=[],this._elementListeners=new Map,this._hostClassName="ng-tns-"
1+t,nt(e,this._hostClassName)}return t.prototype.listen=function(t,e,n,r){var i=this;if(!this._triggers.hasOwnProperty(e))throw new Error('Unable to listen on the animation trigger event "'+n+'" because the animation trigger "'+e+"\" doesn't exist!");if(null==n||0==n.length)throw new Error('Unable to listen on the animation trigger "'+e+'" because the provided event is undefined!');if(!J(n))throw new Error('The provided animation trigger event "'+n+'" for the animation trigger "'+e+'" is not supported!');var o=u(this._elementListeners,t,[]),s={name:e,phase:n,callback:r};o.push(s);var a=u(this._engine.statesByElement,t,{});return a.hasOwnProperty(e)||(nt(t,"ng-trigger"),nt(t,"ng-trigger-"+e),a[e]=null),function(){i._engine.afterFlush(function(){var t=o.indexOf(s);t>=0&&o.splice(t,1),i._triggers[e]||delete a[e]})}},t.prototype.register=function(t,e){return!this._triggers[t]&&(this._triggers[t]=e,!0)},t.prototype._getTrigger=function(t){var e=this._triggers[t];if(!e)throw new Error('The provided animation trigger "'+t+'" has not been registered!');return e},t.prototype.trigger=function(t,e,n,r){var i=this;void 0===r&&(r=!0);var o=this._getTrigger(e),s=new le(this.id,e,t),a=this._engine.statesByElement.get(t);a||(nt(t,"ng-trigger"),nt(t,"ng-trigger-"+e),this._engine.statesByElement.set(t,a={}));var c=a[e],l=new oe(n);if(!(n&&n.hasOwnProperty("value"))&&c&&l.absorbOptions(c.options),a[e]=l,c){if(c===ae)return s}else c=se;if("void"===l.value||c.value!==l.value){var h=u(this._engine.playersByElement,t,[]);h.forEach(function(t){t.namespaceId==i.id&&t.triggerName==e&&t.queued&&t.destroy()});var p=o.matchTransition(c.value,l.value),f=!1;if(!p){if(!r)return;p=o.fallbackTransition,f=!0}return this._engine.totalQueuedPlayers++,this._queue.push({element:t,triggerName:e,transition:p,fromState:c,toState:l,player:s,isFallbackTransition:f}),f||(nt(t,"ng-animate-queued"),s.onStart(function(){rt(t,"ng-animate-queued")})),s.onDone(function(){var e=i.players.indexOf(s);e>=0&&i.players.splice(e,1);var n=i._engine.playersByElement.get(t);if(n){var r=n.indexOf(s);r>=0&&n.splice(r,1)}}),this.players.push(s),h.push(s),s}if(!ut(c.params,l.params)){var d=[],m=o.matchStyles(c.value,c.params,d),v=o.matchStyles(l.value,l.params,d);d.length?this._engine.reportError(d):this._engine.afterFlush(function(){g(t,m),y(t,v)})}},t.prototype.deregister=function(t){var e=this;delete this._triggers[t],this._engine.statesByElement.forEach(function(e,n){delete e[t]}),this._elementListeners.forEach(function(n,r){e._elementListeners.set(r,n.filter(function(e){return e.name!=t}))})},t.prototype.clearElementCache=function(t){this._engine.statesByElement.delete(t),this._elementListeners.delete(t);var e=this._engine.playersByElement.get(t);e&&(e.forEach(function(t){return t.destroy()}),this._engine.playersByElement.delete(t))},t.prototype._destroyInnerNodes=function(t,e,n){var r=this;void 0===n&&(n=!1),this._engine.driver.query(t,Ct,!0).forEach(function(t){if(n&&et(t,r._hostClassName)){var i=r._engine.namespacesByHostElement.get(t);i&&i.removeNode(t,e,!0),r.removeNode(t,e,!0)}else r.clearElementCache(t)})},t.prototype.removeNode=function(t,e,n){var i=this,o=this._engine;!n&&t.childElementCount&&this._destroyInnerNodes(t,e,!0);var s=o.statesByElement.get(t);if(s){var a=[];if(Object.keys(s).forEach(function(e){if(i._triggers[e]){var n=i.trigger(t,e,"void",!1);n&&a.push(n)}}),a.length)return o.markElementAsRemoved(this.id,t,!0,e),void r(a).onDone(function(){return o.processLeaveNode(t)})}var u=!1;if(o.totalAnimations){var c=o.players.length?o.playersByQueriedElement.get(t):[];if(c&&c.length)u=!0;else for(var l=t;l=l.parentNode;){var h=o.statesByElement.get(l);if(h){u=!0;break}}}var p=this._elementListeners.get(t);if(p){var f=new Set;p.forEach(function(e){var n=e.name;if(!f.has(n)){f.add(n);var r=i._triggers[n],s=r.fallbackTransition,a=o.statesByElement.get(t),u=a[n]||se,c=new oe("void"),l=new le(i.id,n,t);i._engine.totalQueuedPlayers++,i._queue.push({element:t,triggerName:n,transition:s,fromState:u,toState:c,player:l,isFallbackTransition:!0})}})}u?o.markElementAsRemoved(this.id,t,!1,e):(o.afterFlush(function(){return i.clearElementCache(t)}),o.destroyInnerAnimations(t),o._onRemovalComplete(t,e))}
1,t.prototype.insertNode=function(t,e){nt(t,this._hostClassName)},t.prototype.drainQueuedTransitions=function(t){var e=this,n=[];return this._queue.forEach(function(r){var i=r.player;if(!i.destroyed){var s=r.element,u=e._elementListeners.get(s);u&&u.forEach(function(e){if(e.name==r.triggerName){var n=a(s,r.triggerName,r.fromState.value,r.toState.value);n._data=t,o(r.player,e.phase,n,e.callback)}}),i.markedForDestroy?e._engine.afterFlush(function(){i.destroy()}):n.push(r)}}),this._queue=[],n.sort(function(t,n){var r=t.transition.ast.depCount,i=n.transition.ast.depCount;return 0==r||0==i?r-i:e._engine.driver.containsElement(t.element,n.element)?1:-1})},t.prototype.destroy=function(t){this.players.forEach(function(t){return t.destroy()}),this._destroyInnerNodes(this.hostElement,t)},t.prototype.elementContainsData=function(t){var e=!1;return this._elementListeners.has(t)&&(e=!0),e=!!this._queue.find(function(e){return e.element===t})||e},t}(),ce=function(){function t(t,e){this.driver=t,this._normalizer=e,this.players=[],this.newHostElements=new Map,this.playersByElement=new Map,this.playersByQueriedElement=new Map,this.statesByElement=new Map,this.disabledNodes=new Set,this.totalAnimations=0,this.totalQueuedPlayers=0,this._namespaceLookup={},this._namespaceList=[],this._flushFns=[],this._whenQuietFns=[],this.namespacesByHostElement=new Map,this.collectedEnterElements=[],this.collectedLeaveElements=[],this.onRemovalComplete=function(t,e){}}return t.prototype._onRemovalComplete=function(t,e){this.onRemovalComplete(t,e)},Object.defineProperty(t.prototype,"queuedPlayers",{get:function(){var t=[];return this._namespaceList.forEach(function(e){e.players.forEach(function(e){e.queued&&t.push(e)})}),t},enumerable:!0,configurable:!0}),t.prototype.createNamespace=function(t,e){var n=new ue(t,e,this);return e.parentNode?this._balanceNamespaceList(n,e):(this.newHostElements.set(e,n),this.collectEnterElement(e)),this._namespaceLookup[t]=n},t.prototype._balanceNamespaceList=function(t,e){var n=this._namespaceList.length-1;if(n>=0){for(var r=!1,i=n;i>=0;i--){var o=this._namespaceList[i];if(this.driver.containsElement(o.hostElement,e)){this._namespaceList.splice(i+1,0,t),r=!0;break}}r||this._namespaceList.splice(0,0,t)}else this._namespaceList.push(t);return this.namespacesByHostElement.set(e,t),t},t.prototype.register=function(t,e){var n=this._namespaceLookup[t];return n||(n=this.createNamespace(t,e)),n},t.prototype.registerTrigger=function(t,e,n){var r=this._namespaceLookup[t];r&&r.register(e,n)&&this.totalAnimations++},t.prototype.destroy=function(t,e){var n=this;if(t){var r=this._fetchNamespace(t);this.afterFlush(function(){n.namespacesByHostElement.delete(r.hostElement),delete n._namespaceLookup[t];var e=n._namespaceList.indexOf(r);e>=0&&n._namespaceList.splice(e,1)}),this.afterFlushAnimationsDone(function(){return r.destroy(e)})}},t.prototype._fetchNamespace=function(t){return this._namespaceLookup[t]},t.prototype.trigger=function(t,e,n,r){return!!Y(e)&&(this._fetchNamespace(t).trigger(e,n,r),!0)},t.prototype.insertNode=function(t,e,n,r){if(Y(e)){var i=e[ie];i&&i.setForRemoval&&(i.setForRemoval=!1),t&&this._fetchNamespace(t).insertNode(e,n),r&&this.collectEnterElement(e)}},t.prototype.collectEnterElement=function(t){this.collectedEnterElements.push(t)},t.prototype.markElementAsDisabled=function(t,e){e?this.disabledNodes.has(t)||(this.disabledNodes.add(t),nt(t,"ng-animate-disabled")):this.disabledNodes.has(t)&&(this.disabledNodes.delete(t),rt(t,"ng-animate-disabled"))},t.prototype.removeNode=function(t,e,n,r){if(!Y(e))return void this._onRemovalComplete(e,n);var i=t?this._fetchNamespace(t):null;i?i.removeNode(e,n,r):this.markElementAsRemoved(t,e,!1,n)},t.prototype.markElementAsRemoved=function(t,e,n,r){this.collectedLeaveElements.push(e),e[ie]={namespaceId:t,setForRemoval:r,hasAnimation:n,removedBeforeQueried:!1}},t.prototype.listen=function(t,e,n,r,i){return Y(e)?this._fetchNamespace(t).listen(e,n,r,i):function(){}},t.prototype._buildInstruction=function(t,e){return t.transition.build(this.driver,t.element,t.fromState.value,t.toState.value,t.fromState.options,t.toState.o
1ptions,e)},t.prototype.destroyInnerAnimations=function(t){var e=this,n=this.driver.query(t,Ct,!0);n.forEach(function(t){var n=e.playersByElement.get(t);n&&n.forEach(function(t){t.queued?t.markedForDestroy=!0:t.destroy()});var r=e.statesByElement.get(t);r&&Object.keys(r).forEach(function(t){return r[t]=ae})}),0!=this.playersByQueriedElement.size&&(n=this.driver.query(t,Ot,!0),n.length&&n.forEach(function(t){var n=e.playersByQueriedElement.get(t);n&&n.forEach(function(t){return t.finish()})}))},t.prototype.whenRenderingDone=function(){var t=this;return new Promise(function(e){if(t.players.length)return r(t.players).onDone(function(){return e()});e()})},t.prototype.processLeaveNode=function(t){var e=this,n=t[ie];if(n&&n.setForRemoval){if(t[ie]=ne,n.namespaceId){this.destroyInnerAnimations(t);var r=this._fetchNamespace(n.namespaceId);r&&r.clearElementCache(t)}this._onRemovalComplete(t,n.setForRemoval)}this.driver.matchesElement(t,".ng-animate-disabled")&&this.markElementAsDisabled(t,!1),this.driver.query(t,".ng-animate-disabled",!0).forEach(function(n){e.markElementAsDisabled(t,!1)})},t.prototype.flush=function(t){var e=this;void 0===t&&(t=-1);var n=[];if(this.newHostElements.size&&(this.newHostElements.forEach(function(t,n){return e._balanceNamespaceList(t,n)}),this.newHostElements.clear()),this._namespaceList.length&&(this.totalQueuedPlayers||this.collectedLeaveElements.length)){var i=[];try{n=this._flushAnimations(i,t)}finally{for(var o=0;o<i.length;o++)i[o]()}}else for(var o=0;o<this.collectedLeaveElements.length;o++){var s=this.collectedLeaveElements[o];this.processLeaveNode(s)}if(this.totalQueuedPlayers=0,this.collectedEnterElements.length=0,this.collectedLeaveElements.length=0,this._flushFns.forEach(function(t){return t()}),this._flushFns=[],this._whenQuietFns.length){var a=this._whenQuietFns;this._whenQuietFns=[],n.length?r(n).onDone(function(){a.forEach(function(t){return t()})}):a.forEach(function(t){return t()})}},t.prototype.reportError=function(t){throw new Error("Unable to process animations due to the following failed trigger transitions\n "+t.join("\n"))},t.prototype._flushAnimations=function(t,e){var n=this,i=new Bt,o=[],s=new Map,a=[],c=new Map,l=new Map,h=new Map,p=new Set;this.disabledNodes.forEach(function(t){p.add(t);for(var e=n.driver.query(t,".ng-animate-queued",!0),r=0;r<e.length;r++)p.add(e[r])});for(var f=it(),d=this.collectedEnterElements.length?this.collectedEnterElements.filter(tt(this.collectedEnterElements)):[],m=0;m<d.length;m++)nt(d[m],"ng-enter");for(var v=[],b=new Set,m=0;m<this.collectedLeaveElements.length;m++){var _=this.collectedLeaveElements[m],w=_[ie];w&&w.setForRemoval&&(nt(_,"ng-leave"),v.push(_),w.hasAnimation||b.add(_))}t.push(function(){d.forEach(function(t){return rt(t,"ng-enter")}),v.forEach(function(t){rt(t,"ng-leave"),n.processLeaveNode(t)})});for(var x=[],E=[],m=this._namespaceList.length-1;m>=0;m--){this._namespaceList[m].drainQueuedTransitions(e).forEach(function(t){var e=t.player;x.push(e);var r=t.element;if(!f||!n.driver.containsElement(f,r))return void e.destroy();var s=n._buildInstruction(t,i);if(s.errors&&s.errors.length)return void E.push(s);if(t.isFallbackTransition)return e.onStart(function(){return g(r,s.fromStyles)}),e.onDestroy(function(){return y(r,s.toStyles)}),void o.push(e);s.timelines.forEach(function(t){return t.stretchStartingKeyframe=!0}),i.append(r,s.timelines);var p={instruction:s,player:e,element:r};a.push(p),s.queriedElements.forEach(function(t){return u(c,t,[]).push(e)}),s.preStyleProps.forEach(function(t,e){var n=Object.keys(t);if(n.length){var r=l.get(e);r||l.set(e,r=new Set),n.forEach(function(t){return r.add(t)})}}),s.postStyleProps.forEach(function(t,e){var n=Object.keys(t),r=h.get(e);r||h.set(e,r=new Set),n.forEach(function(t){return r.add(t)})})})}if(E.length){var S=[];E.forEach(function(t){S.push("@"+t.triggerName+" has failed due to:\n"),t.errors.forEach(function(t){return S.push("- "+t+"\n")})}),x.forEach(function(t){return t.destroy()}),this.reportError(S)}for(var T=new Set,m=0;m<d.length;m++){var _=d[m];i.has(_)||T.add(_)}var M=new Map,C=[];a.forEach(function(t){var e=t.element;i.has(e)&&(C.unshift(e),n._beforeAnimationBuild(t.player.namespaceId,t.instruction,M))}),o.forEach(function(t){var e=t.element;n._getPreviousPlayers(e,!1,t.namespaceId,t.triggerName,null).forEach(function(t){u(M,e,[]).push(t),t.destroy()})});var O=v.filter(function(t){return ct(t,l,h)}),A=$(this.driver,b,h,ft.a),P=A[0];
1A[1].forEach(function(t){ct(t,l,h)&&O.push(t)});var R=(l.size?$(this.driver,T,l,ft.h):[new Map])[0];O.forEach(function(t){var e=P.get(t),n=R.get(t);P.set(t,Object.assign({},e,n))});var L=[],N=[];a.forEach(function(t){var e=t.element,a=t.player,u=t.instruction;if(i.has(e)){if(p.has(e))return void o.push(a);var c=n._buildAnimation(a.namespaceId,u,M,s,R,P);a.setRealPlayer(c);for(var l=null,h=0;h<C.length;h++){var f=C[h];if(f===e)break;if(n.driver.containsElement(f,e)){l=f;break}}if(l){var d=n.playersByElement.get(l);d&&d.length&&(a.parentPlayer=r(d)),o.push(a)}else L.push(a)}else g(e,u.fromStyles),a.onDestroy(function(){return y(e,u.toStyles)}),N.push(a),p.has(e)&&o.push(a)}),N.forEach(function(t){var e=s.get(t.element);if(e&&e.length){var n=r(e);t.setRealPlayer(n)}}),o.forEach(function(t){t.parentPlayer?t.parentPlayer.onDestroy(function(){return t.destroy()}):t.destroy()});for(var m=0;m<v.length;m++){var _=v[m],w=_[ie];if(rt(_,"ng-leave"),!w||!w.hasAnimation){var I=[];if(c.size){var k=c.get(_);k&&k.length&&I.push.apply(I,k);for(var j=this.driver.query(_,Ot,!0),D=0;D<j.length;D++){var F=c.get(j[D]);F&&F.length&&I.push.apply(I,F)}}var U=I.filter(function(t){return!t.destroyed});U.length?ot(this,_,U):this.processLeaveNode(_)}}return v.length=0,L.forEach(function(t){n.players.push(t),t.onDone(function(){t.destroy();var e=n.players.indexOf(t);n.players.splice(e,1)}),t.play()}),L},t.prototype.elementContainsData=function(t,e){var n=!1,r=e[ie];return r&&r.setForRemoval&&(n=!0),this.playersByElement.has(e)&&(n=!0),this.playersByQueriedElement.has(e)&&(n=!0),this.statesByElement.has(e)&&(n=!0),this._fetchNamespace(t).elementContainsData(e)||n},t.prototype.afterFlush=function(t){this._flushFns.push(t)},t.prototype.afterFlushAnimationsDone=function(t){this._whenQuietFns.push(t)},t.prototype._getPreviousPlayers=function(t,e,n,r,i){var o=[];if(e){var s=this.playersByQueriedElement.get(t);s&&(o=s)}else{var a=this.playersByElement.get(t);if(a){var u=!i||"void"==i;a.forEach(function(t){t.queued||(u||t.triggerName==r)&&o.push(t)})}}return(n||r)&&(o=o.filter(function(t){return(!n||n==t.namespaceId)&&(!r||r==t.triggerName)})),o},t.prototype._beforeAnimationBuild=function(t,e,n){var r=this,i=e.triggerName,o=e.element,s=e.isRemovalTransition?void 0:t,a=e.isRemovalTransition?void 0:i;e.timelines.map(function(t){var i=t.element,c=i!==o,l=u(n,i,[]);r._getPreviousPlayers(i,c,s,a,e.toState).forEach(function(t){var e=t.getRealPlayer();e.beforeDestroy&&e.beforeDestroy(),t.destroy(),l.push(t)})}),g(o,e.fromStyles)},t.prototype._buildAnimation=function(t,e,n,o,s,a){var c=this,l=e.triggerName,h=e.element,p=[],f=new Set,d=new Set,m=e.timelines.map(function(e){var r=e.element;f.add(r);var u=r[ie];if(u&&u.removedBeforeQueried)return new ft.d;var m=r!==h,v=st((n.get(r)||ee).map(function(t){return t.getRealPlayer()})).filter(function(t){var e=t;return!!e.element&&e.element===r}),y=s.get(r),g=a.get(r),b=i(c.driver,c._normalizer,r,e.keyframes,y,g),_=c._buildPlayer(e,b,v);if(e.subTimeline&&o&&d.add(r),m){var w=new le(t,l,r);w.setRealPlayer(_),p.push(w)}return _});p.forEach(function(t){u(c.playersByQueriedElement,t.element,[]).push(t),t.onDone(function(){return X(c.playersByQueriedElement,t.element,t)})}),f.forEach(function(t){return nt(t,"ng-animating")});var v=r(m);return v.onDestroy(function(){f.forEach(function(t){return rt(t,"ng-animating")}),y(h,e.toStyles)}),d.forEach(function(t){u(o,t,[]).push(v)}),v},t.prototype._buildPlayer=function(t,e,n){return e.length>0?this.driver.animate(t.element,e,t.duration,t.delay,t.easing,n):new ft.d},t}(),le=function(){function t(t,e,n){this.namespaceId=t,this.triggerName=e,this.element=n,this._player=new ft.d,this._containsRealPlayer=!1,this._queuedCallbacks={},this._destroyed=!1,this.markedForDestroy=!1}return Object.defineProperty(t.prototype,"queued",{get:function(){return 0==this._containsRealPlayer},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"destroyed",{get:function(){return this._destroyed},enumerable:!0,configurable:!0}),t.prototype.setRealPlayer=function(t){var e=this;this._containsRealPlayer||(this._player=t,Object.keys(this._queuedCallbacks).forEac
1h(function(n){e._queuedCallbacks[n].forEach(function(e){return o(t,n,void 0,e)})}),this._queuedCallbacks={},this._containsRealPlayer=!0)},t.prototype.getRealPlayer=function(){return this._player},t.prototype._queueEvent=function(t,e){u(this._queuedCallbacks,t,[]).push(e)},t.prototype.onDone=function(t){this.queued&&this._queueEvent("done",t),this._player.onDone(t)},t.prototype.onStart=function(t){this.queued&&this._queueEvent("start",t),this._player.onStart(t)},t.prototype.onDestroy=function(t){this.queued&&this._queueEvent("destroy",t),this._player.onDestroy(t)},t.prototype.init=function(){this._player.init()},t.prototype.hasStarted=function(){return!this.queued&&this._player.hasStarted()},t.prototype.play=function(){!this.queued&&this._player.play()},t.prototype.pause=function(){!this.queued&&this._player.pause()},t.prototype.restart=function(){!this.queued&&this._player.restart()},t.prototype.finish=function(){this._player.finish()},t.prototype.destroy=function(){this._destroyed=!0,this._player.destroy()},t.prototype.reset=function(){!this.queued&&this._player.reset()},t.prototype.setPosition=function(t){this.queued||this._player.setPosition(t)},t.prototype.getPosition=function(){return this.queued?0:this._player.getPosition()},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._player.totalTime},enumerable:!0,configurable:!0}),t}(),he="$$classes",pe=function(){function t(t,e){var n=this;this._triggerCache={},this.onRemovalComplete=function(t,e){},this._transitionEngine=new ce(t,e),this._timelineEngine=new te(t,e),this._transitionEngine.onRemovalComplete=function(t,e){return n.onRemovalComplete(t,e)}}return t.prototype.registerTrigger=function(t,e,n,r,i){var o=t+"-"+r,s=this._triggerCache[o];if(!s){var a=[],u=R(i,a);if(a.length)throw new Error('The animation trigger "'+r+'" has failed to build due to the following errors:\n - '+a.join("\n - "));s=W(r,u),this._triggerCache[o]=s}this._transitionEngine.registerTrigger(e,r,s)},t.prototype.register=function(t,e){this._transitionEngine.register(t,e)},t.prototype.destroy=function(t,e){this._transitionEngine.destroy(t,e)},t.prototype.onInsert=function(t,e,n,r){this._transitionEngine.insertNode(t,e,n,r)},t.prototype.onRemove=function(t,e,n){this._transitionEngine.removeNode(t,e,n)},t.prototype.disableAnimations=function(t,e){this._transitionEngine.markElementAsDisabled(t,e)},t.prototype.process=function(t,e,n,r){if("@"==n.charAt(0)){var i=c(n),o=i[0],s=i[1],a=r;this._timelineEngine.command(o,e,s,a)}else this._transitionEngine.trigger(t,e,n,r)},t.prototype.listen=function(t,e,n,r,i){if("@"==n.charAt(0)){var o=c(n),s=o[0],a=o[1];return this._timelineEngine.listen(s,e,a,i)}return this._transitionEngine.listen(t,e,n,r,i)},t.prototype.flush=function(t){void 0===t&&(t=-1),this._transitionEngine.flush(t)},Object.defineProperty(t.prototype,"players",{get:function(){return this._transitionEngine.players.concat(this._timelineEngine.players)},enumerable:!0,configurable:!0}),t.prototype.whenRenderingDone=function(){return this._transitionEngine.whenRenderingDone()},t}(),fe=function(){function t(t,e,n,r){void 0===r&&(r=[]);var i=this;this.element=t,this.keyframes=e,this.options=n,this.previousPlayers=r,this._onDoneFns=[],this._onStartFns=[],this._onDestroyFns=[],this._initialized=!1,this._finished=!1,this._started=!1,this._destroyed=!1,this.time=0,this.parentPlayer=null,this.previousStyles={},this.currentSnapshot={},this._duration=n.duration,this._delay=n.delay||0,this.time=this._duration+this._delay,T(this._duration,this._delay)&&r.forEach(function(t){var e=t.currentSnapshot;Object.keys(e).forEach(function(t){return i.previousStyles[t]=e[t]})})}return t.prototype._onFinish=function(){this._finished||(this._finished=!0,this._onDoneFns.forEach(function(t){return t()}),this._onDoneFns=[])},t.prototype.init=function(){this._buildPlayer(),this._preparePlayerBeforeStart()},t.prototype._buildPlayer=function(){var t=this;if(!this._initialized){this._initialized=!0;var e=this.keyframes.map(function(t){return v(t,!1)}),n=Object.keys(this.previousStyles);if(n.length){var r=e[0],i=[];if(n.forEach(function(e){r.hasOwnProperty(e)||i.push(e),r[e]=t.previousStyles[e]}),i.length)for(var o=this,s=1;s<e.length;s++)!function(){var t=e[s];
1i.forEach(function(e){t[e]=lt(o.element,e)})}()}this._player=this._triggerWebAnimation(this.element,e,this.options),this._finalKeyframe=e.length?e[e.length-1]:{},this._player.addEventListener("finish",function(){return t._onFinish()})}},t.prototype._preparePlayerBeforeStart=function(){this._delay?this._resetDomPlayerState():this._player.pause()},t.prototype._triggerWebAnimation=function(t,e,n){return t.animate(e,n)},Object.defineProperty(t.prototype,"domPlayer",{get:function(){return this._player},enumerable:!0,configurable:!0}),t.prototype.onStart=function(t){this._onStartFns.push(t)},t.prototype.onDone=function(t){this._onDoneFns.push(t)},t.prototype.onDestroy=function(t){this._onDestroyFns.push(t)},t.prototype.play=function(){this._buildPlayer(),this.hasStarted()||(this._onStartFns.forEach(function(t){return t()}),this._onStartFns=[],this._started=!0),this._player.play()},t.prototype.pause=function(){this.init(),this._player.pause()},t.prototype.finish=function(){this.init(),this._onFinish(),this._player.finish()},t.prototype.reset=function(){this._resetDomPlayerState(),this._destroyed=!1,this._finished=!1,this._started=!1},t.prototype._resetDomPlayerState=function(){this._player&&this._player.cancel()},t.prototype.restart=function(){this.reset(),this.play()},t.prototype.hasStarted=function(){return this._started},t.prototype.destroy=function(){this._destroyed||(this._destroyed=!0,this._resetDomPlayerState(),this._onFinish(),this._onDestroyFns.forEach(function(t){return t()}),this._onDestroyFns=[])},t.prototype.setPosition=function(t){this._player.currentTime=t*this.time},t.prototype.getPosition=function(){return this._player.currentTime/this.time},Object.defineProperty(t.prototype,"totalTime",{get:function(){return this._delay+this._duration},enumerable:!0,configurable:!0}),t.prototype.beforeDestroy=function(){var t=this,e={};this.hasStarted()&&Object.keys(this._finalKeyframe).forEach(function(n){"offset"!=n&&(e[n]=t._finished?t._finalKeyframe[n]:lt(t.element,n))}),this.currentSnapshot=e},t}(),de=function(){function t(){}return t.prototype.matchesElement=function(t,e){return bt(t,e)},t.prototype.containsElement=function(t,e){return _t(t,e)},t.prototype.query=function(t,e,n){return wt(t,e,n)},t.prototype.computeStyle=function(t,e,n){return window.getComputedStyle(t)[e]},t.prototype.animate=function(t,e,n,r,i,o){void 0===o&&(o=[]);var s=0==r?"both":"forwards",a={duration:n,delay:r,fill:s};i&&(a.easing=i);var u=o.filter(function(t){return t instanceof fe});return new fe(t,e,a,u)},t}()},fL27:function(t,e,n){"use strict";function r(t,e,n,r,i){return t.setProperty(e,"@@"+n+":"+r,i)}function i(t){switch(t){case"body":return document.body;case"document":return document;case"window":return window;default:return t}}function o(t){var e=t.indexOf(".");return[t.substring(0,e),t.substr(e+1)]}function s(){return Object(f.g)()?new f.e:new f.d}function a(){return new f.f}function u(t,e,n){return new y(t,e,n)}n.d(e,"a",function(){return S}),n.d(e,"b",function(){return d}),n.d(e,"c",function(){return _}),n.d(e,"e",function(){return a}),n.d(e,"f",function(){return u}),n.d(e,"d",function(){return s});var c=n("6Xbx"),l=n("/oeL"),h=n("fc+i"),p=n("EyWH"),f=n("f9zQ"),d=function(t){function e(e,n){var r=t.call(this)||this;r._nextAnimationId=0;var i={id:"0",encapsulation:l._0.None,styles:[],data:{animation:[]}};return r._renderer=e.createRenderer(n.body,i),r}return c.a(e,t),e.prototype.build=function(t){var e=this._nextAnimationId.toString();this._nextAnimationId++;var n=Array.isArray(t)?Object(p.e)(t):t;return r(this._renderer,null,e,"register",[n]),new m(e,this._renderer)},e}(p.b);d.decorators=[{type:l.u}],d.ctorParameters=function(){return[{type:l.O},{type:void 0,decorators:[{type:l.t,args:[h.b]}]}]};var m=function(t){function e(e,n){var r=t.call(this)||this;return r._id=e,r._renderer=n,r}return c.a(e,t),e.prototype.create=function(t,e){return new v(this._id,t,e||{},this._renderer)},e}(p.c),v=function(){function t(t,e,n,r){this.id=t,this.element=e,this._renderer=r,this.parentPlayer=null,this._started=!1,this.totalTime=0,this._command("create",n)}return t.prototype._listen=function(t,e){return this._renderer.listen(this.element,"@@"+this.id+":"+t,e)},t.prototype._command=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];return r(this._renderer,this.element,this.id,t,e)}
1,t.prototype.onDone=function(t){this._listen("done",t)},t.prototype.onStart=function(t){this._listen("start",t)},t.prototype.onDestroy=function(t){this._listen("destroy",t)},t.prototype.init=function(){this._command("init")},t.prototype.hasStarted=function(){return this._started},t.prototype.play=function(){this._command("play"),this._started=!0},t.prototype.pause=function(){this._command("pause")},t.prototype.restart=function(){this._command("restart")},t.prototype.finish=function(){this._command("finish")},t.prototype.destroy=function(){this._command("destroy")},t.prototype.reset=function(){this._command("reset")},t.prototype.setPosition=function(t){this._command("setPosition",t)},t.prototype.getPosition=function(){return 0},t}(),y=function(){function t(t,e,n){this.delegate=t,this.engine=e,this._zone=n,this._currentId=0,this._microtaskId=1,this._animationCallbacksBuffer=[],this._rendererCache=new Map,this._cdRecurDepth=0,e.onRemovalComplete=function(t,e){e&&e.parentNode(t)&&e.removeChild(t.parentNode,t)}}return t.prototype.createRenderer=function(t,e){var n=this,r=this.delegate.createRenderer(t,e);if(!(t&&e&&e.data&&e.data.animation)){var i=this._rendererCache.get(r);return i||(i=new g("",r,this.engine),this._rendererCache.set(r,i)),i}var o=e.id,s=e.id+"-"+this._currentId;return this._currentId++,this.engine.register(s,t),e.data.animation.forEach(function(e){return n.engine.registerTrigger(o,s,t,e.name,e)}),new b(this,s,r,this.engine)},t.prototype.begin=function(){this._cdRecurDepth++,this.delegate.begin&&this.delegate.begin()},t.prototype._scheduleCountTask=function(){var t=this;Zone.current.scheduleMicroTask("incremenet the animation microtask",function(){return t._microtaskId++})},t.prototype.scheduleListenerCallback=function(t,e,n){var r=this;if(t>=0&&t<this._microtaskId)return void this._zone.run(function(){return e(n)});0==this._animationCallbacksBuffer.length&&Promise.resolve(null).then(function(){r._zone.run(function(){r._animationCallbacksBuffer.forEach(function(t){(0,t[0])(t[1])}),r._animationCallbacksBuffer=[]})}),this._animationCallbacksBuffer.push([e,n])},t.prototype.end=function(){var t=this;this._cdRecurDepth--,0==this._cdRecurDepth&&this._zone.runOutsideAngular(function(){t._scheduleCountTask(),t.engine.flush(t._microtaskId)}),this.delegate.end&&this.delegate.end()},t.prototype.whenRenderingDone=function(){return this.engine.whenRenderingDone()},t}();y.decorators=[{type:l.u}],y.ctorParameters=function(){return[{type:l.O},{type:f.b},{type:l.G}]};var g=function(){function t(t,e,n){this.namespaceId=t,this.delegate=e,this.engine=n,this.destroyNode=this.delegate.destroyNode?function(t){return e.destroyNode(t)}:null}return Object.defineProperty(t.prototype,"data",{get:function(){return this.delegate.data},enumerable:!0,configurable:!0}),t.prototype.destroy=function(){this.engine.destroy(this.namespaceId,this.delegate),this.delegate.destroy()},t.prototype.createElement=function(t,e){return this.delegate.createElement(t,e)},t.prototype.createComment=function(t){return this.delegate.createComment(t)},t.prototype.createText=function(t){return this.delegate.createText(t)},t.prototype.appendChild=function(t,e){this.delegate.appendChild(t,e),this.engine.onInsert(this.namespaceId,e,t,!1)},t.prototype.insertBefore=function(t,e,n){this.delegate.insertBefore(t,e,n),this.engine.onInsert(this.namespaceId,e,t,!0)},t.prototype.removeChild=function(t,e){this.engine.onRemove(this.namespaceId,e,this.delegate)},t.prototype.selectRootElement=function(t){return this.delegate.selectRootElement(t)},t.prototype.parentNode=function(t){return this.delegate.parentNode(t)},t.prototype.nextSibling=function(t){return this.delegate.nextSibling(t)},t.prototype.setAttribute=function(t,e,n,r){this.delegate.setAttribute(t,e,n,r)},t.prototype.removeAttribute=function(t,e,n){this.delegate.removeAttribute(t,e,n)},t.prototype.addClass=function(t,e){this.delegate.addClass(t,e)},t.prototype.removeClass=function(t,e){this.delegate.removeClass(t,e)},t.prototype.setStyle=function(t,e,n,r){this.delegate.setStyle(t,e,n,r)},t.prototype.removeStyle=function(t,e,n){this.delegate.removeStyle(t,e,n)},t.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)&&"@.disabled"==e?this.disableAnimations(t,!!n):this.delegate.setProperty(t,e,n)},t.prototype.setValue=function(t,e){this.delegate.setValue(t,e)},t.prototype.listen=function(t,e,n){return this.delegate.listen(t,e,n)},t.prototype.disableAnimations=function(t,e){this.engine.disableAnimations(t,e)},t}(),b=function(t){function e(e,n,r,i){var o=t.call(this,n,r,i)||this;return o.factory=e,o.namespaceId=n,o}return c.a(e,t),e.prototype.setProperty=function(t,e,n){"@"==e.charAt(0)?"."==e.charAt(1)&&"@.disabled"==e?(n=void 0===n||!!n,this.disableAnimations(t,n)):this.engine.process(this.namespaceId,t,e.substr(1),n):this.delegate.setProperty(t,e,n)},e.prototype.listen=function(t,e,n){var r=this;if("@"==e.charAt(0)){var s=i(t),a=e.substr(1),u="";return"@"!=a.charAt(0)&&(c=o(a),a=c[0],u=c[1]),this.engine.listen(this.namespaceId,s,a,u,function(t){var e=t._data||-1;r.factory.scheduleListenerCallback(e,n,t)})}return this.delegate.listen(t,e,n);var c},e}(g),_=function(t){function e(e,n){return t.call(this,e,n)||this}return c.a(e,t),e}(f.b);_.decorators=[{type:l.u}],_.ctorParameters=function(){return[{type:f.a},{type:f.c}]};var w=[{provide:p.b,useClass:d},{provide:f.c,useFactory:a},{provide:f.b,useClass:_},{provide:l.O,useFactory:u,deps:[h.m,f.b,l.G]}],x=[{provide:f.a,useFactory:s}].concat(w),E=[{provide:f.a,useClass:f.d}].concat(w),S=function(){function t(){}return t}();S.decorators=[{type:l.B,args:[{exports:[h.a],providers:x}]}],S.ctorParameters=function(){return[]};var T=function(){function t(){}return t}();T.decorators=[{type:l.B,args:[{exports:[h.a],providers:E}]}],T.ctorParameters=function(){return[]}},fRUx: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},fV3I:function(t,e,n){"use strict";function r(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];for(var r=e.length,i=0;i<r;i++){var o=e[i];for(var s in o)o.hasOwnProperty(s)&&(t[s]=o[s])}return t}function i(t){return t.Object.assign||r}var o=n("zijX");e.assignImpl=r,e.getAssign=i,e.assign=i(o.root)},"fc+i":function(t,e,n){"use strict";function r(){return j}function i(t){j||(j=t)}function o(){return G||(G=document.querySelector("base"))?G.getAttribute("href"):null}function s(t){return V||(V=document.createElement("a")),V.setAttribute("href",t),"/"===V.pathname.charAt(0)?V.pathname:"/"+V.pathname}function a(){return!!window.history.pushState}function u(t,e,n){return function(){n.get(k.e).donePromise.then(function(){var n=r();Array.prototype.slice.apply(n.querySelectorAll(e,"style[ng-transition]")).filter(function(e){return n.getAttribute(e,"ng-transition")===t}
1).forEach(function(t){return n.remove(t)})})}}function c(t,e){Q||(k._19.ng=Q=k._19.ng||{}),Q[t]=e}function l(t){return Object(k._5)(t)}function h(t,e){var n=(t||[]).concat(e||[]);return c(tt,l),c(et,Object.assign({},$,p(n||[]))),function(){return l}}function p(t){return t.reduce(function(t,e){return t[e.name]=e.token,t},{})}function f(t){return pt.replace(lt,t)}function d(t){return ht.replace(lt,t)}function m(t,e,n){for(var r=0;r<e.length;r++){var i=e[r];Array.isArray(i)?m(t,i,n):(i=i.replace(lt,t),n.push(i))}return n}function v(t){return function(e){!1===t(e)&&(e.preventDefault(),e.returnValue=!1)}}function y(t,e){if(t.charCodeAt(0)===mt)throw new Error("Found the synthetic "+e+" "+t+'. Please include either "BrowserAnimationsModule" or "NoopAnimationsModule" in your application.')}function g(t){return t=String(t),t.match(Mt)||t.match(Ct)?t:(Object(k._6)()&&r().log("WARNING: sanitizing unsafe URL value "+t+" (see http://g.co/ng/security#xss)"),"unsafe:"+t)}function b(t){return t=String(t),t.split(",").map(function(t){return g(t.trim())}).join(", ")}function _(){if(Ot)return Ot;At=r();var t=At.createElement("template");if("content"in t)return t;var e=At.createHtmlDocument();if(null==(Ot=At.querySelector(e,"body"))){var n=At.createElement("html",e);Ot=At.createElement("body",e),At.appendChild(n,Ot),At.appendChild(e,n)}return Ot}function w(t){for(var e={},n=0,r=t.split(",");n<r.length;n++){e[r[n]]=!0}return e}function x(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var n={},r=0,i=t;r<i.length;r++){var o=i[r];for(var s in o)o.hasOwnProperty(s)&&(n[s]=!0)}return n}function E(t,e){if(e&&At.contains(t,e))throw new Error("Failed to sanitize html because the element is clobbered: "+At.getOuterHTML(t));return e}function S(t){return t.replace(/&/g,"&").replace(Vt,function(t){return"&#"+(1024*(t.charCodeAt(0)-55296)+(t.charCodeAt(1)-56320)+65536)+";"}).replace(Ht,function(t){return"&#"+t.charCodeAt(0)+";"}).replace(/</g,"<").replace(/>/g,">")}function T(t){At.attributeMap(t).forEach(function(e,n){"xmlns:ns1"!==n&&0!==n.indexOf("ns1:")||At.removeAttribute(t,n)});for(var e=0,n=At.childNodesAsList(t);e<n.length;e++){var r=n[e];At.isElementNode(r)&&T(r)}}function M(t,e){try{var n=_(),r=e?String(e):"",i=5,o=r;do{if(0===i)throw new Error("Failed to sanitize html because the input is unstable");i--,r=o,At.setInnerHTML(n,r),t.documentMode&&T(n),o=At.getInnerHTML(n)}while(r!==o);for(var s=new zt,a=s.sanitizeChildren(At.getTemplateContent(n)||n),u=At.getTemplateContent(n)||n,c=0,l=At.childNodesAsList(u);c<l.length;c++){var h=l[c];At.removeChild(u,h)}return Object(k._6)()&&s.sanitizedSomething&&At.log("WARNING: sanitizing HTML stripped some content (see http://g.co/ng/security#xss)."),a}catch(t){throw Ot=null,t}}function C(t){for(var e=!0,n=!0,r=0;r<t.length;r++){var i=t.charAt(r);"'"===i&&n?e=!e:'"'===i&&e&&(n=!n)}return e&&n}function O(t){if(!(t=String(t).trim()))return"";var e=t.match(Wt);return e&&g(e[1])===e[1]||t.match(Gt)&&C(t)?t:(Object(k._6)()&&r().log("WARNING: sanitizing unsafe style value "+t+" (see http://g.co/ng/security#xss)."),"unsafe")}function A(){H.makeCurrent(),Y.init()}function P(){return new k.o}function R(){return document}n.d(e,"a",function(){return re}),n.d(e,"k",function(){return ne}),n.d(e,"h",function(){return Z}),n.d(e,"j",function(){return J}),n.d(e,"i",function(){return nt}),n.d(e,"b",function(){return W}),n.d(e,"d",function(){return it}),n.d(e,"e",function(){return ot}),n.d(e,"f",function(){return _t}),n.d(e,"g",function(){return wt}),n.d(e,"c",function(){return qt}),n.d(e,"u",function(){return r}),n.d(e,"m",function(){return ft}),n.d(e,"l",function(){return gt}),n.d(e,"o",function(){return xt}),n.d(e,"p",function(){return Tt}),n.d(e,"n",function(){return ut}),n.d(e,"q",function(){return at}),n.d(e,"r",function(){return P}),n.d(e,"s",function(){return h}),n.d(e,"t",function(){return Zt});var L,N=n("6Xbx"),I=n("qbdv"),k=n("/oeL"),j=null,D=function(){function t(){this.resourceLoaderType=null}return t.prototype.hasProperty=function(t,e){},t.prototype.setProperty=function(t,e,n){},t.prototype.getProperty=function(t,e){},t.prototype.invoke=function(t,e,n){},t.prototype.logError=function(t){},t.prototype.log=function(t){},t.prototype.logGroup=function(t){},t.prototype.logGroupEnd=function(){}
vendor: 9,155 bytes, line 1
1,Object.defineProperty(t.prototype,"attrToPropMap",{get:function(){return this._attrToPropMap},set:function(t){this._attrToPropMap=t},enumerable:!0,configurable:!0}),t.prototype.contains=function(t,e){},t.prototype.parse=function(t){},t.prototype.querySelector=function(t,e){},t.prototype.querySelectorAll=function(t,e){},t.prototype.on=function(t,e,n){},t.prototype.onAndCancel=function(t,e,n){},t.prototype.dispatchEvent=function(t,e){},t.prototype.createMouseEvent=function(t){},t.prototype.createEvent=function(t){},t.prototype.preventDefault=function(t){},t.prototype.isPrevented=function(t){},t.prototype.getInnerHTML=function(t){},t.prototype.getTemplateContent=function(t){},t.prototype.getOuterHTML=function(t){},t.prototype.nodeName=function(t){},t.prototype.nodeValue=function(t){},t.prototype.type=function(t){},t.prototype.content=function(t){},t.prototype.firstChild=function(t){},t.prototype.nextSibling=function(t){},t.prototype.parentElement=function(t){},t.prototype.childNodes=function(t){},t.prototype.childNodesAsList=function(t){},t.prototype.clearNodes=function(t){},t.prototype.appendChild=function(t,e){},t.prototype.removeChild=function(t,e){},t.prototype.replaceChild=function(t,e,n){},t.prototype.remove=function(t){},t.prototype.insertBefore=function(t,e,n){},t.prototype.insertAllBefore=function(t,e,n){},t.prototype.insertAfter=function(t,e,n){},t.prototype.setInnerHTML=function(t,e){},t.prototype.getText=function(t){},t.prototype.setText=function(t,e){},t.prototype.getValue=function(t){},t.prototype.setValue=function(t,e){},t.prototype.getChecked=function(t){},t.prototype.setChecked=function(t,e){},t.prototype.createComment=function(t){},t.prototype.createTemplate=function(t){},t.prototype.createElement=function(t,e){},t.prototype.createElementNS=function(t,e,n){},t.prototype.createTextNode=function(t,e){},t.prototype.createScriptTag=function(t,e,n){},t.prototype.createStyleElement=function(t,e){},t.prototype.createShadowRoot=function(t){},t.prototype.getShadowRoot=function(t){},t.prototype.getHost=function(t){},t.prototype.getDistributedNodes=function(t){},t.prototype.clone=function(t){},t.prototype.getElementsByClassName=function(t,e){},t.prototype.getElementsByTagName=function(t,e){},t.prototype.classList=function(t){},t.prototype.addClass=function(t,e){},t.prototype.removeClass=function(t,e){},t.prototype.hasClass=function(t,e){},t.prototype.setStyle=function(t,e,n){},t.prototype.removeStyle=function(t,e){},t.prototype.getStyle=function(t,e){},t.prototype.hasStyle=function(t,e,n){},t.prototype.tagName=function(t){},t.prototype.attributeMap=function(t){},t.prototype.hasAttribute=function(t,e){},t.prototype.hasAttributeNS=function(t,e,n){},t.prototype.getAttribute=function(t,e){},t.prototype.getAttributeNS=function(t,e,n){},t.prototype.setAttribute=function(t,e,n){},t.prototype.setAttributeNS=function(t,e,n,r){},t.prototype.removeAttribute=function(t,e){},t.prototype.removeAttributeNS=function(t,e,n){},t.prototype.templateAwareRoot=function(t){},t.prototype.createHtmlDocument=function(){},t.prototype.getBoundingClientRect=function(t){},t.prototype.getTitle=function(t){},t.prototype.setTitle=function(t,e){},t.prototype.elementMatches=function(t,e){},t.prototype.isTemplateElement=function(t){},t.prototype.isTextNode=function(t){},t.prototype.isCommentNode=function(t){},t.prototype.isElementNode=function(t){},t.prototype.hasShadowRoot=function(t){},t.prototype.isShadowRoot=function(t){},t.prototype.importIntoDoc=function(t){},t.prototype.adoptNode=function(t){},t.prototype.getHref=function(t){},t.prototype.getEventKey=function(t){},t.prototype.resolveAndSetHref=function(t,e,n){},t.prototype.supportsDOMEvents=function(){},t.prototype.supportsNativeShadowDOM=function(){},t.prototype.getGlobalEventTarget=function(t,e){},t.prototype.getHistory=function(){},t.prototype.getLocation=function(){},t.prototype.getBaseHref=function(t){},t.prototype.resetBaseElement=function(){},t.prototype.getUserAgent=function(){},t.prototype.setData=function(t,e,n){},t.prototype.getComputedStyle=function(t){},t.prototype.getData=function(t,e){},t.prototype.supportsWebAnimation=function(){},t.prototype.performanceNow=function(){},t.prototype.getAnimationPrefix=function(){},t.prototype.getTransitionEnd=function(){},t.prototype.supportsAnimation=function(){},t.prototype.supportsCookies=function(){},t.prototype.getCookie=function(t){},t.prototype.setCookie=function(t,e){},t}(),F=function(t){function e(){var e=t.call(this)||this;e._animationPrefix=null,e._transitionEnd=null;try{var n=e.createElement("div",document);if(null!=e.getStyle(n,"animationName"))e._animationPrefix="";else for(var r=["Webkit","Moz","O","ms"],i=0;i<r.length;i++)if(null!=e.getStyle(n,r[i]+"AnimationName")){e._animationPrefix="-"+r[i].toLowerCase()+"-";break}var o={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};Object.keys(o).forEach(function(t){null!=e.getStyle(n,t)&&(e._transitionEnd=o[t])})}catch(t){e._animationPrefix=null,e._transitionEnd=null}return e}return N.a(e,t),e.prototype.getDistributedNodes=function(t){return t.getDistributedNodes()},e.prototype.resolveAndSetHref=function(t,e,n){t.href=null==n?e:e+"/../"+n},e.prototype.supportsDOMEvents=function(){return!0},e.prototype.supportsNativeShadowDOM=function(){return"function"==typeof document.body.createShadowRoot},e.prototype.getAnimationPrefix=function(){return this._animationPrefix?this._animationPrefix:""},e.prototype.getTransitionEnd=function(){return this._transitionEnd?this._transitionEnd:""},e.prototype.supportsAnimation=function(){return null!=this._animationPrefix&&null!=this._transitionEnd},e}(D),U={class:"className",innerHtml:"innerHTML",readonly:"readOnly",tabindex:"tabIndex"},B={"\b":"Backspace","\t":"Tab","\x7f":"Delete","\x1b":"Escape",Del:"Delete",Esc:"Escape",Left:"ArrowLeft",Right:"ArrowRight",Up:"ArrowUp",Down:"ArrowDown",Menu:"ContextMenu",Scroll:"ScrollLock",Win:"OS"},z={A:"1",B:"2",C:"3",D:"4",E:"5",F:"6",G:"7",H:"8",I:"9",J:"*",K:"+",M:"-",N:".",O:"/","`":"0","\x90":"NumLock"};k._19.Node&&(L=k._19.Node.prototype.contains||function(t){return!!(16&this.compareDocumentPosition(t))});var V,H=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N.a(e,t),e.prototype.parse=function(t){throw new Error("parse not implemented")},e.makeCurrent=function(){i(new e)},e.prototype.hasProperty=function(t,e){return e in t},e.prototype.setProperty=function(t,e,n){t[e]=n},e.prototype.getProperty=function(t,e){return t[e]},e.prototype.invoke=function(t,e,n){t[e].apply(t,n)},e.prototype.logError=function(t){window.console&&(console.error?console.error(t):console.log(t))},e.prototype.log=function(t){window.console&&window.console.log&&window.console.log(t)},e.prototype.logGroup=function(t){window.console&&window.console.group&&window.console.group(t)},e.prototype.logGroupEnd=function(){window.console&&window.console.groupEnd&&window.console.groupEnd()},Object.defineProperty(e.prototype,"attrToPropMap",{get:function(){return U},enumerable:!0,configurable:!0}),e.prototype.contains=function(t,e){return L.call(t,e)},e.prototype.querySelector=function(t,e){return t.querySelector(e)},e.prototype.querySelectorAll=function(t,e){return t.querySelectorAll(e)},e.prototype.on=function(t,e,n){t.addEventListener(e,n,!1)},e.prototype.onAndCancel=function(t,e,n){return t.addEventListener(e,n,!1),function(){t.removeEventListener(e,n,!1)}},e.prototype.dispatchEvent=function(t,e){t.dispatchEvent(e)},e.prototype.createMouseEvent=function(t){var e=document.createEvent("MouseEvent");return e.initEvent(t,!0,!0),e},e.prototype.createEvent=function(t){var e=document.createEvent("Event");return e.initEvent(t,!0,!0),e},e.prototype.preventDefault=function(t){t.preventDefault(),t.returnValue=!1},e.prototype.isPrevented=function(t){return t.defaultPrevented||null!=t.returnValue&&!t.returnValue},e.prototype.getInnerHTML=function(t){return t.innerHTML},e.prototype.getTemplateContent=function(t){return"content"in t&&t instanceof HTMLTemplateElement?t.content:null},e.prototype.getOuterHTML=function(t){return t.outerHTML},e.prototype.nodeName=function(t){return t.nodeName},e.prototype.nodeValue=function(t){return t.nodeValue},e.prototype.type=function(t){return t.type},e.prototype.content=function(t){return this.hasProperty(t,"content")?t.content:t},e.prototype.firstChild=function(t){return t.firstChild},e.prototype.nextSibling=function(t){return t.nextSibling},e.prototype.parentElement=function(t){return t.parentNode},e.prototype.childNodes=function(t){return t.childNodes},e.prototype.childNodesAsList=function(t){for(var e=t.childNodes,n=new Array(e.length),r=0;r<e.length;r++)n[r]=e[r];return n},e.prototype.clearNodes=function(t){for(;t.firstChild;)t.removeChild(t.firstChild)},e.prototype.appendChild=function(t,e){t.appendChild(e)},e.prototype.removeChild=function(t,e){t.removeChild(e)},e.prototype.replaceChild=function(t,e,n){t.replaceChild(e,n)},e.prototype.remove=function(t){return t.parentNode&&t.parentNode.removeChild(t),t},e.prototype.insertBefore=function(t,e,n){t.insertBefore(n,e)}
1,e.prototype.insertAllBefore=function(t,e,n){n.forEach(function(n){return t.insertBefore(n,e)})},e.prototype.insertAfter=function(t,e,n){t.insertBefore(n,e.nextSibling)},e.prototype.setInnerHTML=function(t,e){t.innerHTML=e},e.prototype.getText=function(t){return t.textContent},e.prototype.setText=function(t,e){t.textContent=e},e.prototype.getValue=function(t){return t.value},e.prototype.setValue=function(t,e){t.value=e},e.prototype.getChecked=function(t){return t.checked},e.prototype.setChecked=function(t,e){t.checked=e},e.prototype.createComment=function(t){return document.createComment(t)},e.prototype.createTemplate=function(t){var e=document.createElement("template");return e.innerHTML=t,e},e.prototype.createElement=function(t,e){return void 0===e&&(e=document),e.createElement(t)},e.prototype.createElementNS=function(t,e,n){return void 0===n&&(n=document),n.createElementNS(t,e)},e.prototype.createTextNode=function(t,e){return void 0===e&&(e=document),e.createTextNode(t)},e.prototype.createScriptTag=function(t,e,n){void 0===n&&(n=document);var r=n.createElement("SCRIPT");return r.setAttribute(t,e),r},e.prototype.createStyleElement=function(t,e){void 0===e&&(e=document);var n=e.createElement("style");return this.appendChild(n,this.createTextNode(t)),n},e.prototype.createShadowRoot=function(t){return t.createShadowRoot()},e.prototype.getShadowRoot=function(t){return t.shadowRoot},e.prototype.getHost=function(t){return t.host},e.prototype.clone=function(t){return t.cloneNode(!0)},e.prototype.getElementsByClassName=function(t,e){return t.getElementsByClassName(e)},e.prototype.getElementsByTagName=function(t,e){return t.getElementsByTagName(e)},e.prototype.classList=function(t){return Array.prototype.slice.call(t.classList,0)},e.prototype.addClass=function(t,e){t.classList.add(e)},e.prototype.removeClass=function(t,e){t.classList.remove(e)},e.prototype.hasClass=function(t,e){return t.classList.contains(e)},e.prototype.setStyle=function(t,e,n){t.style[e]=n},e.prototype.removeStyle=function(t,e){t.style[e]=""},e.prototype.getStyle=function(t,e){return t.style[e]},e.prototype.hasStyle=function(t,e,n){var r=this.getStyle(t,e)||"";return n?r==n:r.length>0},e.prototype.tagName=function(t){return t.tagName},e.prototype.attributeMap=function(t){for(var e=new Map,n=t.attributes,r=0;r<n.length;r++){var i=n[r];e.set(i.name,i.value)}return e},e.prototype.hasAttribute=function(t,e){return t.hasAttribute(e)},e.prototype.hasAttributeNS=function(t,e,n){return t.hasAttributeNS(e,n)},e.prototype.getAttribute=function(t,e){return t.getAttribute(e)},e.prototype.getAttributeNS=function(t,e,n){return t.getAttributeNS(e,n)},e.prototype.setAttribute=function(t,e,n){t.setAttribute(e,n)},e.prototype.setAttributeNS=function(t,e,n,r){t.setAttributeNS(e,n,r)},e.prototype.removeAttribute=function(t,e){t.removeAttribute(e)},e.prototype.removeAttributeNS=function(t,e,n){t.removeAttributeNS(e,n)},e.prototype.templateAwareRoot=function(t){return this.isTemplateElement(t)?this.content(t):t},e.prototype.createHtmlDocument=function(){return document.implementation.createHTMLDocument("fakeTitle")},e.prototype.getBoundingClientRect=function(t){try{return t.getBoundingClientRect()}catch(t){return{top:0,bottom:0,left:0,right:0,width:0,height:0}}},e.prototype.getTitle=function(t){return document.title},e.prototype.setTitle=function(t,e){document.title=e||""},e.prototype.elementMatches=function(t,e){return t instanceof HTMLElement&&(t.matches&&t.matches(e)||t.msMatchesSelector&&t.msMatchesSelector(e)||t.webkitMatchesSelector&&t.webkitMatchesSelector(e))},e.prototype.isTemplateElement=function(t){return t instanceof HTMLElement&&"TEMPLATE"==t.nodeName},e.prototype.isTextNode=function(t){return t.nodeType===Node.TEXT_NODE},e.prototype.isCommentNode=function(t){return t.nodeType===Node.COMMENT_NODE},e.prototype.isElementNode=function(t){return t.nodeType===Node.ELEMENT_NODE},e.prototype.hasShadowRoot=function(t){return null!=t.shadowRoot&&t instanceof HTMLElement},e.prototype.isShadowRoot=function(t){return t instanceof DocumentFragment},e.prototype.importIntoDoc=function(t){return document.importNode(this.templateAwareRoot(t),!0)},e.prototype.adoptNode=function(t){return document.adoptNode(t)},e.prototype.getHref=function(t){return t.href},e.prototype.getEventKey=function(t){var e=t.key;if(null==e){if(null==(e=t.keyIdentifier))return"Unidentified";e.startsWith("U+")&&(e=String.fromCharCode(parseInt(e.substring(2),16)),3===t.location&&z.hasOwnProperty(e)&&(e=z[e]))}return B[e]||e},e.prototype.getGlobalEventTarget=function(t,e){return"window"===e?window:"document"===e?document:"body"===e?document.body:null},e.prototype.getHistory=function(){return window.history},e.prototype.getLocation=function(){return window.location},e.prototype.getBaseHref=function(t){var e=o();return null==e?null:s(e)},e.prototype.resetBaseElement=function(){G=null},e.prototype.getUserAgent=function(){return window.navigator.userAgent},e.prototype.setData=function(t,e,n){this.setAttribute(t,"data-"+e,n)},e.prototype.getData=function(t,e){return this.getAttribute(t,"data-"+e)},e.prototype.getComputedStyle=function(t){return getComputedStyle(t)},e.prototype.supportsWebAnimation=function(){return"function"==typeof Element.prototype.animate},e.prototype.performanceNow=function(){return window.performance&&window.performance.now?window.performance.now():(new Date).getTime()},e.prototype.supportsCookies=function(){return!0},e.prototype.getCookie=function(t){return Object(I.q)(document.cookie,t)},e.prototype.setCookie=function(t,e){document.cookie=encodeURIComponent(t)+"="+encodeURIComponent(e)},e}(F),G=null,W=I.c,q=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._init(),n}return N.a(e,t),e.prototype._init=function(){this._location=r().getLocation(),this._history=r().getHistory()},Object.defineProperty(e.prototype,"location",{get:function(){return this._location},enumerable:!0,configurable:!0}),e.prototype.getBaseHrefFromDOM=function(){return r().getBaseHref(this._doc)},e.prototype.onPopState=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("popstate",t,!1)},e.prototype.onHashChange=function(t){r().getGlobalEventTarget(this._doc,"window").addEventListener("hashchange",t,!1)},Object.defineProperty(e.prototype,"pathname",{get:function(){return this._location.pathname},set:function(t){this._location.pathname=t},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"search",{get:function(){return this._location.search},enumerable:!0,configurable:!0}),Object.defineProperty(e.prototype,"hash",{get:function(){return this._location.hash},enumerable:!0,configurable:!0}),e.prototype.pushState=function(t,e,n){a()?this._history.pushState(t,e,n):this._location.hash=n},e.prototype.replaceState=function(t,e,n){a()?this._history.replaceState(t,e,n):this._location.hash=n},e.prototype.forward=function(){this._history.forward()},e.prototype.back=function(){this._history.back()},e}(I.o);q.decorators=[{type:k.u}],q.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.t,args:[W]}]}]};var Z=function(){function t(t){this._doc=t,this._dom=r()}return t.prototype.addTag=function(t,e){return void 0===e&&(e=!1),t?this._getOrCreateElement(t,e):null},t.prototype.addTags=function(t,e){var n=this;return void 0===e&&(e=!1),t?t.reduce(function(t,r){return r&&t.push(n._getOrCreateElement(r,e)),t},[]):[]},t.prototype.getTag=function(t){return t?this._dom.querySelector(this._doc,"meta["+t+"]"):null},t.prototype.getTags=function(t){if(!t)return[];var e=this._dom.querySelectorAll(this._doc,"meta["+t+"]");return e?[].slice.call(e):[]},t.prototype.updateTag=function(t,e){if(!t)return null;e=e||this._parseSelector(t);var n=this.getTag(e);return n?this._setMetaElementAttributes(t,n):this._getOrCreateElement(t,!0)},t.prototype.removeTag=function(t){this.removeTagElement(this.getTag(t))},t.prototype.removeTagElement=function(t){t&&this._dom.remove(t)},t.prototype._getOrCreateElement=function(t,e){if(void 0===e&&(e=!1),!e){var n=this._parseSelector(t),r=this.getTag(n);if(r&&this._containsAttributes(t,r))return r}var i=this._dom.createElement("meta");this._setMetaElementAttributes(t,i);var o=this._dom.getElementsByTagName(this._doc,"head")[0];return this._dom.appendChild(o,i),i},t.prototype._setMetaElementAttributes=function(t,e){var n=this;return Object.keys(t).forEach(function(r){return n._dom.setAttribute(e,r,t[r])}),e},t.prototype._parseSelector=function(t){var e=t.name?"name":"property";return e+'="'+t[e]+'"'},t.prototype._containsAttributes=function(t,e){var n=this;return Object.keys(t).every(function(r){return n._dom.getAttribute(e,r)===t[r]})},t}();Z.decorators=[{type:k.u}],Z.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.t,args:[W]}]}]};var X=new k.v("TRANSITION_ID"),K=[{provide:k.d,useFactory:u,deps:[X,W,k.w],multi:!0}],Y=function(){function t(){}return t.init=function(){Object(k._8)(new t)},t.prototype.addToWindow=function(t){k._19.getAngularTestability=function(e,n){void 0===n&&(n=!0);var r=t.findTestabilityInTree(e,n);if(null==r)throw new Error("Could not find testability for element.");return r},k._19.getAllAngularTestabilities=function(){return t.getAllTestabilities()},k._19.getAllAngularRootElements=function(){return t.getAllRootElements()};var e=function(t){var e=k._19.getAllAngularTestabilities(),n=e.length,r=!1,i=function(e){r=r||e,0==--n&&t(r)};e.forEach(function(t){t.whenStable(i)})};k._19.frameworkStabilizers||(k._19.frameworkStabilizers=[]),k._19.frameworkStabilizers.push(e)},t.prototype.findTestabilityInTree=function(t,e,n){if(null==e)return null;var i=t.getTestability(e);return null!=i?i:n?r().isShadowRoot(e)?this.findTestabilityInTree(t,r().getHost(e),!0):this.findTestabilityInTree(t,r().parentElement(e),!0):null},t}(),J=function(){function t(t){this._doc=t}return t.prototype.getTitle=function(){return r().getTitle(this._doc)},t.prototype.setTitle=function(t){r().setTitle(this._doc,t)},t}();J.decorators=[{type:k.u}],J.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.t,args:[W]}]}]};var Q,$={ApplicationRef:k.g,NgZone:k.G},tt="probe",et="coreTokens",nt=function(){function t(t,e){this.name=t,this.token=e}return t}(),rt=[{provide:k.d,useFactory:h,deps:[[nt,new k.H],[k.F,new k.H]],multi:!0}],it=new k.v("EventManagerPlugins"),ot=function(){function t(t,e){var n=this;this._zone=e,this._eventNameToPlugin=new Map,t.forEach(function(t){return t.manager=n}),this._plugins=t.slice().reverse()}return t.prototype.addEventListener=function(t,e,n){return this._findPluginFor(e).addEventListener(t,e,n)},t.prototype.addGlobalEventListener=function(t,e,n){return this._findPluginFor(e).addGlobalEventListener(t,e,n)},t.prototype.getZone=function(){return this._zone},t.prototype._findPluginFor=function(t){var e=this._eventNameToPlugin.get(t);if(e)return e;for(var n=this._plugins,r=0;r<n.length;r++){var i=n[r];if(i.supports(t))return this._eventNameToPlugin.set(t,i),i}throw new Error("No event manager plugin found for event "+t)},t}();ot.decorators=[{type:k.u}],ot.ctorParameters=function(){return[{type:Array,decorators:[{type:k.t,args:[it]}]},{type:k.G}]};var st=function(){function t(t){this._doc=t}return t.prototype.supports=function(t){},t.prototype.addEventListener=function(t,e,n){},t.prototype.addGlobalEventListener=function(t,e,n){var i=r().getGlobalEventTarget(this._doc,t);if(!i)throw new Error("Unsupported event target "+i+" for event "+e);return this.addEventListener(i,e,n)},t}(),at=function(){function t(){this._stylesSet=new Set}return t.prototype.addStyles=function(t){var e=this,n=new Set;t.forEach(function(t){e._stylesSet.has(t)||(e._stylesSet.add(t),n.add(t))}),this.onStylesAdded(n)},t.prototype.onStylesAdded=function(t){},t.prototype.getAllStyles=function(){return Array.from(this._stylesSet)},t}();at.decorators=[{type:k.u}],at.ctorParameters=function(){return[]};var ut=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n._hostNodes=new Set,n._styleNodes=new Set,n._hostNodes.add(e.head),n}return N.a(e,t),e.prototype._addStylesToHost=function(t,e){var n=this;t.forEach(function(t){var r=n._doc.createElement("style");r.textContent=t,n._styleNodes.add(e.appendChild(r))})},e.prototype.addHost=function(t){this._addStylesToHost(this._stylesSet,t),this._hostNodes.add(t)},e.prototype.removeHost=function(t){this._hostNodes.delete(t)},e.prototype.onStylesAdded=function(t){var e=this;
1this._hostNodes.forEach(function(n){return e._addStylesToHost(t,n)})},e.prototype.ngOnDestroy=function(){this._styleNodes.forEach(function(t){return r().remove(t)})},e}(at);ut.decorators=[{type:k.u}],ut.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.t,args:[W]}]}]};var ct={svg:"http://www.w3.org/2000/svg",xhtml:"http://www.w3.org/1999/xhtml",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},lt=/%COMP%/g,ht="_nghost-%COMP%",pt="_ngcontent-%COMP%",ft=function(){function t(t,e){this.eventManager=t,this.sharedStylesHost=e,this.rendererByCompId=new Map,this.defaultRenderer=new dt(t)}return t.prototype.createRenderer=function(t,e){if(!t||!e)return this.defaultRenderer;switch(e.encapsulation){case k._0.Emulated:var n=this.rendererByCompId.get(e.id);return n||(n=new vt(this.eventManager,this.sharedStylesHost,e),this.rendererByCompId.set(e.id,n)),n.applyToHost(t),n;case k._0.Native:return new yt(this.eventManager,this.sharedStylesHost,t,e);default:if(!this.rendererByCompId.has(e.id)){var r=m(e.id,e.styles,[]);this.sharedStylesHost.addStyles(r),this.rendererByCompId.set(e.id,this.defaultRenderer)}return this.defaultRenderer}},t.prototype.begin=function(){},t.prototype.end=function(){},t}();ft.decorators=[{type:k.u}],ft.ctorParameters=function(){return[{type:ot},{type:ut}]};var dt=function(){function t(t){this.eventManager=t,this.data=Object.create(null)}return t.prototype.destroy=function(){},t.prototype.createElement=function(t,e){return e?document.createElementNS(ct[e],t):document.createElement(t)},t.prototype.createComment=function(t){return document.createComment(t)},t.prototype.createText=function(t){return document.createTextNode(t)},t.prototype.appendChild=function(t,e){t.appendChild(e)},t.prototype.insertBefore=function(t,e,n){t&&t.insertBefore(e,n)},t.prototype.removeChild=function(t,e){t&&t.removeChild(e)},t.prototype.selectRootElement=function(t){var e="string"==typeof t?document.querySelector(t):t;if(!e)throw new Error('The selector "'+t+'" did not match any elements');return e.textContent="",e},t.prototype.parentNode=function(t){return t.parentNode},t.prototype.nextSibling=function(t){return t.nextSibling},t.prototype.setAttribute=function(t,e,n,r){if(r){e=r+":"+e;var i=ct[r];i?t.setAttributeNS(i,e,n):t.setAttribute(e,n)}else t.setAttribute(e,n)},t.prototype.removeAttribute=function(t,e,n){if(n){var r=ct[n];r?t.removeAttributeNS(r,e):t.removeAttribute(n+":"+e)}else t.removeAttribute(e)},t.prototype.addClass=function(t,e){t.classList.add(e)},t.prototype.removeClass=function(t,e){t.classList.remove(e)},t.prototype.setStyle=function(t,e,n,r){r&k.P.DashCase?t.style.setProperty(e,n,r&k.P.Important?"important":""):t.style[e]=n},t.prototype.removeStyle=function(t,e,n){n&k.P.DashCase?t.style.removeProperty(e):t.style[e]=""},t.prototype.setProperty=function(t,e,n){y(e,"property"),t[e]=n},t.prototype.setValue=function(t,e){t.nodeValue=e},t.prototype.listen=function(t,e,n){return y(e,"listener"),"string"==typeof t?this.eventManager.addGlobalEventListener(t,e,v(n)):this.eventManager.addEventListener(t,e,v(n))},t}(),mt="@".charCodeAt(0),vt=function(t){function e(e,n,r){var i=t.call(this,e)||this;i.component=r;var o=m(r.id,r.styles,[]);return n.addStyles(o),i.contentAttr=f(r.id),i.hostAttr=d(r.id),i}return N.a(e,t),e.prototype.applyToHost=function(e){t.prototype.setAttribute.call(this,e,this.hostAttr,"")},e.prototype.createElement=function(e,n){var r=t.prototype.createElement.call(this,e,n);return t.prototype.setAttribute.call(this,r,this.contentAttr,""),r},e}(dt),yt=function(t){function e(e,n,r,i){var o=t.call(this,e)||this;o.sharedStylesHost=n,o.hostEl=r,o.component=i,o.shadowRoot=r.createShadowRoot(),o.sharedStylesHost.addHost(o.shadowRoot);for(var s=m(i.id,i.styles,[]),a=0;a<s.length;a++){var u=document.createElement("style");u.textContent=s[a],o.shadowRoot.appendChild(u)}return o}return N.a(e,t),e.prototype.nodeOrShadowRoot=function(t){return t===this.hostEl?this.shadowRoot:t},e.prototype.destroy=function(){this.sharedStylesHost.removeHost(this.shadowRoot)},e.prototype.appendChild=function(e,n){return t.prototype.appendChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.insertBefore=function(e,n,r){return t.prototype.insertBefore.call(this,this.nodeOrShadowRoot(e),n,r)},e.prototype.removeChild=function(e,n){return t.prototype.removeChild.call(this,this.nodeOrShadowRoot(e),n)},e.prototype.parentNode=function(e){return this.nodeOrShadowRoot(t.prototype.parentNode.call(this,this.nodeOrShadowRoot(e)))},e}(dt),gt=function(t){function e(e){return t.call(this,e)||this}return N.a(e,t),e.prototype.supports=function(t){return!0},e.prototype.addEventListener=function(t,e,n){return t.addEventListener(e,n,!1),function(){return t.removeEventListener(e,n,!1)}},e}(st);gt.decorators=[{type:k.u}],gt.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.t,args:[W]}]}]};var bt={pan:!0,panstart:!0,panmove:!0,panend:!0,pancancel:!0,panleft:!0,panright:!0,panup:!0,pandown:!0,pinch:!0,pinchstart:!0,pinchmove:!0,pinchend:!0,pinchcancel:!0,pinchin:!0,pinchout:!0,press:!0,pressup:!0,rotate:!0,rotatestart:!0,rotatemove:!0,rotateend:!0,rotatecancel:!0,swipe:!0,swipeleft:!0,swiperight:!0,swipeup:!0,swipedown:!0,tap:!0},_t=new k.v("HammerGestureConfig"),wt=function(){function t(){this.events=[],this.overrides={}}
1return t.prototype.buildHammer=function(t){var e=new Hammer(t);e.get("pinch").set({enable:!0}),e.get("rotate").set({enable:!0});for(var n in this.overrides)e.get(n).set(this.overrides[n]);return e},t}();wt.decorators=[{type:k.u}],wt.ctorParameters=function(){return[]};var xt=function(t){function e(e,n){var r=t.call(this,e)||this;return r._config=n,r}return N.a(e,t),e.prototype.supports=function(t){if(!bt.hasOwnProperty(t.toLowerCase())&&!this.isCustomEvent(t))return!1;if(!window.Hammer)throw new Error("Hammer.js is not loaded, can not bind "+t+" event");return!0},e.prototype.addEventListener=function(t,e,n){var r=this,i=this.manager.getZone();return e=e.toLowerCase(),i.runOutsideAngular(function(){var o=r._config.buildHammer(t),s=function(t){i.runGuarded(function(){n(t)})};return o.on(e,s),function(){return o.off(e,s)}})},e.prototype.isCustomEvent=function(t){return this._config.events.indexOf(t)>-1},e}(st);xt.decorators=[{type:k.u}],xt.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.t,args:[W]}]},{type:wt,decorators:[{type:k.t,args:[_t]}]}]};var Et=["alt","control","meta","shift"],St={alt:function(t){return t.altKey},control:function(t){return t.ctrlKey},meta:function(t){return t.metaKey},shift:function(t){return t.shiftKey}},Tt=function(t){function e(e){return t.call(this,e)||this}return N.a(e,t),e.prototype.supports=function(t){return null!=e.parseEventName(t)},e.prototype.addEventListener=function(t,n,i){var o=e.parseEventName(n),s=e.eventCallback(o.fullKey,i,this.manager.getZone());return this.manager.getZone().runOutsideAngular(function(){return r().onAndCancel(t,o.domEventName,s)})},e.parseEventName=function(t){var n=t.toLowerCase().split("."),r=n.shift();if(0===n.length||"keydown"!==r&&"keyup"!==r)return null;var i=e._normalizeKey(n.pop()),o="";if(Et.forEach(function(t){var e=n.indexOf(t);e>-1&&(n.splice(e,1),o+=t+".")}),o+=i,0!=n.length||0===i.length)return null;var s={};return s.domEventName=r,s.fullKey=o,s},e.getEventFullKey=function(t){var e="",n=r().getEventKey(t);return n=n.toLowerCase()," "===n?n="space":"."===n&&(n="dot"),Et.forEach(function(r){if(r!=n){(0,St[r])(t)&&(e+=r+".")}}),e+=n},e.eventCallback=function(t,n,r){return function(i){e.getEventFullKey(i)===t&&r.runGuarded(function(){return n(i)})}},e._normalizeKey=function(t){switch(t){case"esc":return"escape";default:return t}},e}(st);Tt.decorators=[{type:k.u}],Tt.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.t,args:[W]}]}]};var Mt=/^(?:(?:https?|mailto|ftp|tel|file):|[^&:/?#]*(?:[/?#]|$))/gi,Ct=/^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i,Ot=null,At=null,Pt=w("area,br,col,hr,img,wbr"),Rt=w("colgroup,dd,dt,li,p,tbody,td,tfoot,th,thead,tr"),Lt=w("rp,rt"),Nt=x(Lt,Rt),It=x(Rt,w("address,article,aside,blockquote,caption,center,del,details,dialog,dir,div,dl,figure,figcaption,footer,h1,h2,h3,h4,h5,h6,header,hgroup,hr,ins,main,map,menu,nav,ol,pre,section,summary,table,ul")),kt=x(Lt,w("a,abbr,acronym,audio,b,bdi,bdo,big,br,cite,code,del,dfn,em,font,i,img,ins,kbd,label,map,mark,picture,q,ruby,rp,rt,s,samp,small,source,span,strike,strong,sub,sup,time,track,tt,u,var,video")),jt=x(Pt,It,kt,Nt),Dt=w("background,cite,href,itemtype,longdesc,poster,src,xlink:href"),Ft=w("srcset"),Ut=w("abbr,accesskey,align,alt,autoplay,axis,bgcolor,border,cellpadding,cellspacing,class,clear,color,cols,colspan,compact,controls,coords,datetime,default,dir,download,face,headers,height,hidden,hreflang,hspace,ismap,itemscope,itemprop,kind,label,lang,language,loop,media,muted,nohref,nowrap,open,preload,rel,rev,role,rows,rowspan,rules,scope,scrolling,shape,size,sizes,span,srclang,start,summary,tabindex,target,title,translate,type,usemap,valign,value,vspace,width"),Bt=x(Dt,Ft,Ut),zt=function(){function t(){this.sanitizedSomething=!1,this.buf=[]}return t.prototype.sanitizeChildren=function(t){for(var e=t.firstChild;e;)if(At.isElementNode(e)?this.startElement(e):At.isTextNode(e)?this.chars(At.nodeValue(e)):this.sanitizedSomething=!0,At.firstChild(e))e=At.firstChild(e);else for(;e;){At.isElementNode(e)&&this.endElement(e);var n=E(e,At.nextSibling(e));if(n){e=n;break}e=E(e,At.parentElement(e))}return this.buf.join("")},t.prototype.startElement=function(t){var e=this,n=At.nodeName(t).toLowerCase();if(!jt.hasOwnProperty(n))return void(this.sanitizedSomething=!0);this.buf.push("<"),this.buf.push(n),At.attributeMap(t).forEach(function(t,n){var r=n.toLowerCase();if(!Bt.hasOwnProperty(r))return void(e.sanitizedSomething=!0);Dt[r]&&(t=g(t)),Ft[r]&&(t=b(t)),e.buf.push(" "),e.buf.push(n),e.buf.push('="'),e.buf.push(S(t)),e.buf.push('"')}),this.buf.push(">")},t.prototype.endElement=function(t){var e=At.nodeName(t).toLowerCase();jt.hasOwnProperty(e)&&!Pt.hasOwnProperty(e)&&(this.buf.push("</"),this.buf.push(e),this.buf.push(">"))},t.prototype.chars=function(t){this.buf.push(S(t))},t}(),Vt=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ht=/([^\#-~ |!])/g,Gt=new RegExp("^([-,.\"'%_!# a-zA-Z0-9]+|(?:(?:matrix|translate|scale|rotate|skew|perspective)(?:X|Y|3d)?|(?:rgb|hsl)a?|(?:repeating-)?(?:linear|radial)-gradient|(?:calc|attr))\\([-0-9.%, #a-zA-Z]+\\))$","g"),Wt=/^url\(([^)]+)\)$/,qt=function(){function t(){}return t.prototype.sanitize=function(t,e){},t.prototype.bypassSecurityTrustHtml=function(t){},t.prototype.bypassSecurityTrustStyle=function(t){},t.prototype.bypassSecurityTrustScript=function(t){},t.prototype.bypassSecurityTrustUrl=function(t){},t.prototype.bypassSecurityTrustResourceUrl=function(t){},t}(),Zt=function(t){function e(e){var n=t.call(this)||this;return n._doc=e,n}return N.a(e,t),e.prototype.sanitize=function(t,e){if(null==e)return null;switch(t){case k.R.NONE:return e;case k.R.HTML:return e instanceof Kt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"HTML"),M(this._doc,String(e)));case k.R.STYLE:return e instanceof Yt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"Style"),O(e));case k.R.SCRIPT:if(e instanceof Jt)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"Script"),new Error("unsafe value used in a script context");case k.R.URL:return e instanceof $t||e instanceof Qt?e.changingThisBreaksApplicationSecurity:(this.checkNotSafeValue(e,"URL"),g(String(e)));case k.R.RESOURCE_URL:if(e instanceof $t)return e.changingThisBreaksApplicationSecurity;throw this.checkNotSafeValue(e,"ResourceURL"),new Error("unsafe value used in a resource URL context (see http://g.co/ng/security#xss)");default:throw new Error("Unexpected SecurityContext "+t+" (see http://g.co/ng/security#xss)")}},e.prototype.checkNotSafeValue=function(t,e){if(t instanceof Xt)throw new Error("Required a safe "+e+", got a "+t.getTypeName()+" (see http://g.co/ng/security#xss)")},e.prototype.bypassSecurityTrustHtml=function(t){return new Kt(t)},e.prototype.bypassSecurityTrustStyle=function(t){return new Yt(t)},e.prototype.bypassSecurityTrustScript=function(t){return new Jt(t)},e.prototype.bypassSecurityTrustUrl=function(t){return new Qt(t)}
1,e.prototype.bypassSecurityTrustResourceUrl=function(t){return new $t(t)},e}(qt);Zt.decorators=[{type:k.u}],Zt.ctorParameters=function(){return[{type:void 0,decorators:[{type:k.t,args:[W]}]}]};var Xt=function(){function t(t){this.changingThisBreaksApplicationSecurity=t}return t.prototype.getTypeName=function(){},t.prototype.toString=function(){return"SafeValue must use [property]=binding: "+this.changingThisBreaksApplicationSecurity+" (see http://g.co/ng/security#xss)"},t}(),Kt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N.a(e,t),e.prototype.getTypeName=function(){return"HTML"},e}(Xt),Yt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N.a(e,t),e.prototype.getTypeName=function(){return"Style"},e}(Xt),Jt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N.a(e,t),e.prototype.getTypeName=function(){return"Script"},e}(Xt),Qt=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N.a(e,t),e.prototype.getTypeName=function(){return"URL"},e}(Xt),$t=function(t){function e(){return null!==t&&t.apply(this,arguments)||this}return N.a(e,t),e.prototype.getTypeName=function(){return"ResourceURL"},e}(Xt),te=[{provide:k.J,useValue:I.p},{provide:k.K,useValue:A,multi:!0},{provide:I.o,useClass:q},{provide:W,useFactory:R,deps:[]}],ee=[{provide:k.Q,useExisting:qt},{provide:qt,useClass:Zt}],ne=Object(k._2)(k._7,"browser",te),re=function(){function t(t){if(t)throw new Error("BrowserModule has already been loaded. If you need access to common directives such as NgIf and NgFor from a lazy loaded module, import CommonModule instead.")}return t.withServerTransition=function(e){return{ngModule:t,providers:[{provide:k.c,useValue:e.appId},{provide:X,useExisting:k.c},K]}},t}();re.decorators=[{type:k.B,args:[{providers:[ee,{provide:k.o,useFactory:P,deps:[]},{provide:it,useClass:gt,multi:!0},{provide:it,useClass:Tt,multi:!0},{provide:it,useClass:xt,multi:!0},{provide:_t,useClass:wt},ft,{provide:k.O,useExisting:ft},{provide:at,useExisting:ut},ut,k.X,ot,rt,Z,J],exports:[I.b,k.f]}]}],re.ctorParameters=function(){return[{type:re,decorators:[{type:k.H},{type:k.T}]}]};var ie="undefined"!=typeof window&&window||{},oe=function(){function t(t,e){this.msPerTick=t,this.numTicks=e}return t}();(function(){function t(t){this.appRef=t.injector.get(k.g)}t.prototype.timeChangeDetection=function(t){var e=t&&t.record,n=null!=ie.console.profile;e&&n&&ie.console.profile("Change Detection");for(var i=r().performanceNow(),o=0;o<5||r().performanceNow()-i<500;)this.appRef.tick(),o++;var s=r().performanceNow();e&&n&&ie.console.profileEnd("Change Detection");var a=(s-i)/o;return ie.console.log("ran "+o+" change detection cycles"),ie.console.log(a.toFixed(2)+" ms per check"),new oe(a,o)}})(),function(){function t(){}t.all=function(){return function(t){return!0}},t.css=function(t){return function(e){return null!=e.nativeElement&&r().elementMatches(e.nativeElement,t)}},t.directive=function(t){return function(e){return-1!==e.providerTokens.indexOf(t)}}}(),new k.Y("4.4.6")},fclq:function(t,e,n){"use strict";function r(t){return"function"==typeof t}e.isFunction=r},fcnB:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=function(t){function e(e){t.call(this),this.scheduler=e}return r(e,t),e.create=function(t){return new e(t)},e.dispatch=function(t){t.subscriber.complete()},e.prototype._subscribe=function(t){var n=this.scheduler;if(n)return n.schedule(e.dispatch,0,{subscriber:t});t.complete()},e}(i.Observable);e.EmptyObservable=o},fdVa:function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),i.mergeScan(t,e,n)(this)}var i=n("t9cH");e.mergeScan=r},fxBd:function(t,e,n){"use strict";function r(t){return i.takeLast(t)(this)}var i=n("XvrG");e.takeLast=r},g0Kb:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("xFbG"),o=function(t){function e(e,n){t.call(this),this.subject=e,this.subscriber=n,this.closed=!1}
1return r(e,t),e.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var t=this.subject,e=t.observers;if(this.subject=null,e&&0!==e.length&&!t.isStopped&&!t.closed){var n=e.indexOf(this.subscriber);-1!==n&&e.splice(n,1)}}},e}(i.Subscription);e.SubjectSubscription=o},g1RG:function(t,e,n){"use strict";function r(t){return function(e){var n=new a(t),r=e.lift(n);return n.caught=r}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.catchError=r;var a=function(){function t(t){this.selector=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.selector,this.caught))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.selector=n,this.caught=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=void 0;try{n=this.selector(e,this.caught)}catch(e){return void t.prototype.error.call(this,e)}this._unsubscribeAndRecycle(),this.add(s.subscribeToResult(this,n))}},e}(o.OuterSubscriber)},g3vg:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Cipy");r.Observable.prototype.shareReplay=i.shareReplay},g9kf:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new l(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("RdI5"),a=n("XRvs"),u=n("yW9Z"),c=n("ktfo");e.repeatWhen=r;var l=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.notifier,e))},t}(),h=function(t){function e(e,n,r){t.call(this,e),this.notifier=n,this.source=r,this.sourceIsBeingSubscribedTo=!0}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},e.prototype.notifyComplete=function(e){if(!1===this.sourceIsBeingSubscribedTo)return t.prototype.complete.call(this)},e.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries){if(this.retriesSubscription.closed)return t.prototype.complete.call(this)}else this.subscribeToRetries();this._unsubscribeAndRecycle(),this.notifications.next()}},e.prototype._unsubscribe=function(){var t=this,e=t.notifications,n=t.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype._unsubscribeAndRecycle=function(){var e=this,n=e.notifications,r=e.retries,i=e.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,t.prototype._unsubscribeAndRecycle.call(this),this.notifications=n,this.retries=r,this.retriesSubscription=i,this},e.prototype.subscribeToRetries=function(){this.notifications=new o.Subject;var e=s.tryCatch(this.notifier)(this.notifications);if(e===a.errorObject)return t.prototype.complete.call(this);this.retries=e,this.retriesSubscription=c.subscribeToResult(this,e)},e}(u.OuterSubscriber)},gXuV:function(t,e,n){"use strict";(function(e){function n(t,e,n){for(var r=1<<e-1;r;r>>>=1)t.push(r&n?1:0)}function r(t){for(var e=t.length,r=[],i=0;i<e;i++)n(r,8,t[i]);var o={},s=[0,1,0,0];if(n(s,16,e),o.data10=o.data27=s.concat(r),e<256){var s=[0,1,0,0];n(s,8,e),o.data1=s.concat(r)}return o}function i(t){for(var e=t.length,r=[],i=0;i<e;i+=2){var o=6,s=u[t[i]];t[i+1]&&(o=11,s=45*s+u[t[i+1]]),n(r,o,s)}var a={},c=[0,0,1,0];if(n(c,13,e),a.data27=c.concat(r),e<2048){var c=[0,0,1,0];n(c,11,e),a.data10=c.concat(r)}if(e<512){var c=[0,0,1,0];n(c,9,e),a.data1=c.concat(r)}return a}function o(t){for(var e=t.length,r=[],i=0;i<e;i+=3){var o=t.substr(i,3);n(r,Math.ceil(10*o.length/3),parseInt(o,10))}var s={},a=[0,0,0,1];if(n(a,14,e),s.data27=a.concat(r),e<4096){var a=[0,0,0,1];n(a,12,e),s.data10=a.concat(r)}if(e<1024){var a=[0,0,0,1];n(a,10,e),s.data1=a.concat(r)}return s}function s(t){var e=t.indexOf("/",8)+1||t.length,n=a(t.slice(0,e).toUpperCase(),!1);if(e>=t.length)return n;var r=a(t.slice(e),!1);return n.data27=n.data27.concat(r.data27),n.data10&&r.data10&&(n.data10=n.data10.concat(r.data10)),n.data1&&r.data1&&(n.data1=n.data1.concat(r.data1)),n}function a(t,n){var a,u=typeof t;if("string"==u||"number"==u)a=""+t,t=new e(a);else if(e.isBuffer(t))a=t.toString();else{if(!Array.isArray(t))throw new Error("Bad data");t=new e(t),a=t.toString()}if(/^[0-9]+$/.test(a)){if(t.length>7089)throw new Error("Too much data");return o(a)}if(/^[0-9A-Z \$%\*\+\.\/\:\-]+$/.test(a)){if(t.length>4296)throw new Error("Too much data");return i(a)}if(n&&/^https?:/i.test(a))return s(a);if(t.length>2953)throw new Error("Too much data");return r(t)}var u=function(t){for(var e={},n=0;n<t.length;n++)e[t[n]]=n;return e}("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ $%*+-./:");t.exports=a}).call(e,n("v0OU").Buffer)},"gb+0":function(t,e,n){"use strict";function r(t){return i.single(t)(this)}var i=n("v71/");e.single=r},gbhw:function(t,e,n){"use strict";var r=n("bKpL"),i=n("422b");r.Observable.prototype.filter=i.filter},gonN:function(t,e,n){"use strict";function r(t,e){return i.multicast(t,e)(this)}var i=n("P02W");e.multicast=r},gvep:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("Lhvy"),s=function(t){function e(e){t.call(this),this._value=e}return r(e,t),Object.defineProperty(e.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),e.prototype._subscribe=function(e){var n=t.prototype._subscribe.call(this,e);return n&&!n.closed&&e.next(this._value),n},e.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new o.ObjectUnsubscribedError;return this._value},e.prototype.next=function(e){t.prototype.next.call(this,this._value=e)},e}(i.Subject);e.BehaviorSubject=s},"h+is":function(t,e,n){"use strict";var r=n("bKpL"),i=n("9tb5");r.Observable.prototype.exhaustMap=i.exhaustMap},"hbO+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("slZm");r.Observable.empty=i.empty},hfga:function(t,e,n){"use strict";function r(t,e){return function(n){return[o.filter(t,e)(n),o.filter(i.not(t,e))(n)]}}var i=n("iyHZ"),o=n("Hd11");e.partition=r},i4mq:function(t,e,n){"use strict";var r=n("bKpL"),i=n("zbre");r.Observable.prototype.bufferCount=i.bufferCount},iAGO:function(t,e,n){"use strict";function r(t,e){var n=this,r=this._readableState&&this._readableState.destroyed,i=this._writableState&&this._writableState.destroyed;if(r||i)return void(e?e(t):!t||this._writableState&&this._writableState.errorEmitted||s(o,this,t));this._readableState&&(this._readableState.destroyed=!0),this._writableState&&(this._writableState.destroyed=!0),this._destroy(t||null,function(t){!e&&t?(s(o,n,t),n._writableState&&(n._writableState.errorEmitted=!0)):e&&e(t)})}function i(){this._readableState&&(this._readableState.destroyed=!1,this._readableState.reading=!1,this._readableState.ended=!1,this._readableState.endEmitted=!1),this._writableState&&(this._writableState.destroyed=!1,this._writableState.ended=!1,this._writableState.ending=!1,this._writableState.finished=!1,this._writableState.errorEmitted=!1)}function o(t,e){t.emit("error",e)}var s=n("1Rb4");t.exports={destroy:r,undestroy:i}},iDKa:function(t,e,n){"use strict";function r(t){return i.skip(t)(this)}var i=n("cyM/");e.skip=r},iH09:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("xFbG"),s=n("Xga8"),a=n("p2y2"),u=function(t){function e(e,n){t.call(this,function(t){var e=this,n=e.logSubscribedFrame();return t.add(new o.Subscription(function(){e.logUnsubscribedFrame(n)})),e.scheduleMessages(t),t}
vendor: 5,397 bytes, line 1
1),this.messages=e,this.subscriptions=[],this.scheduler=n}return r(e,t),e.prototype.scheduleMessages=function(t){for(var e=this.messages.length,n=0;n<e;n++){var r=this.messages[n];t.add(this.scheduler.schedule(function(t){var e=t.message,n=t.subscriber;e.notification.observe(n)},r.frame,{message:r,subscriber:t}))}},e}(i.Observable);e.ColdObservable=u,a.applyMixins(u,[s.SubscriptionLoggable])},ip92:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new s(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.count=r;var s=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new a(t,this.predicate,this.source))},t}(),a=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.source=r,this.count=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.predicate?this._tryPredicate(t):this.count++},e.prototype._tryPredicate=function(t){var e;try{e=this.predicate(t,this.index++,this.source)}catch(t){return void this.destination.error(t)}e&&this.count++},e.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},e}(o.Subscriber)},iw1t:function(t,e,n){"use strict";(function(e){function r(t,e){if(t===e)return 0;for(var n=t.length,r=e.length,i=0,o=Math.min(n,r);i<o;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0}function i(t){return e.Buffer&&"function"==typeof e.Buffer.isBuffer?e.Buffer.isBuffer(t):!(null==t||!t._isBuffer)}function o(t){return Object.prototype.toString.call(t)}function s(t){return!i(t)&&("function"==typeof e.ArrayBuffer&&("function"==typeof ArrayBuffer.isView?ArrayBuffer.isView(t):!!t&&(t instanceof DataView||!!(t.buffer&&t.buffer instanceof ArrayBuffer))))}function a(t){if(_.isFunction(t)){if(E)return t.name;var e=t.toString(),n=e.match(T);return n&&n[1]}}function u(t,e){return"string"==typeof t?t.length<e?t:t.slice(0,e):t}function c(t){if(E||!_.isFunction(t))return _.inspect(t);var e=a(t);return"[Function"+(e?": "+e:"")+"]"}function l(t){return u(c(t.actual),128)+" "+t.operator+" "+u(c(t.expected),128)}function h(t,e,n,r,i){throw new S.AssertionError({message:n,actual:t,expected:e,operator:r,stackStartFunction:i})}function p(t,e){t||h(t,!0,e,"==",S.ok)}function f(t,e,n,a){if(t===e)return!0;if(i(t)&&i(e))return 0===r(t,e);if(_.isDate(t)&&_.isDate(e))return t.getTime()===e.getTime();if(_.isRegExp(t)&&_.isRegExp(e))return t.source===e.source&&t.global===e.global&&t.multiline===e.multiline&&t.lastIndex===e.lastIndex&&t.ignoreCase===e.ignoreCase;if(null!==t&&"object"==typeof t||null!==e&&"object"==typeof e){if(s(t)&&s(e)&&o(t)===o(e)&&!(t instanceof Float32Array||t instanceof Float64Array))return 0===r(new Uint8Array(t.buffer),new Uint8Array(e.buffer));if(i(t)!==i(e))return!1;a=a||{actual:[],expected:[]};var u=a.actual.indexOf(t);return-1!==u&&u===a.expected.indexOf(e)||(a.actual.push(t),a.expected.push(e),m(t,e,n,a))}return n?t===e:t==e}function d(t){return"[object Arguments]"==Object.prototype.toString.call(t)}function m(t,e,n,r){if(null===t||void 0===t||null===e||void 0===e)return!1;if(_.isPrimitive(t)||_.isPrimitive(e))return t===e;if(n&&Object.getPrototypeOf(t)!==Object.getPrototypeOf(e))return!1;var i=d(t),o=d(e);if(i&&!o||!i&&o)return!1;if(i)return t=x.call(t),e=x.call(e),f(t,e,n);var s,a,u=M(t),c=M(e);if(u.length!==c.length)return!1;for(u.sort(),c.sort(),a=u.length-1;a>=0;a--)if(u[a]!==c[a])return!1;for(a=u.length-1;a>=0;a--)if(s=u[a],!f(t[s],e[s],n,r))return!1;return!0}function v(t,e,n){f(t,e,!0)&&h(t,e,n,"notDeepStrictEqual",v)}function y(t,e){if(!t||!e)return!1;if("[object RegExp]"==Object.prototype.toString.call(e))return e.test(t);try{if(t instanceof e)return!0}catch(t){}return!Error.isPrototypeOf(e)&&!0===e.call({},t)}function g(t){var e;try{t()}catch(t){e=t}return e}function b(t,e,n,r){var i;if("function"!=typeof e)throw new TypeError('"block" argument must be a function');"string"==typeof n&&(r=n,n=null),i=g(e),r=(n&&n.name?" ("+n.name+").":".")+(r?" "+r:"."),t&&!i&&h(i,n,"Missing expected exception"+r);var o="string"==typeof r,s=!t&&_.isError(i),a=!t&&i&&!n;if((s&&o&&y(i,n)||a)&&h(i,n,"Got unwanted exception"+r),t&&i&&n&&!y(i,n)||!t&&i)throw i}var _=n("N+n4"),w=Object.prototype.hasOwnProperty,x=Array.prototype.slice,E=function(){return"foo"===function(){}.name}(),S=t.exports=p,T=/\s*function\s+([^\(\s]*)\s*/;S.AssertionError=function(t){this.name="AssertionError",this.actual=t.actual,this.expected=t.expected,this.operator=t.operator,t.message?(this.message=t.message,this.generatedMessage=!1):(this.message=l(this),this.generatedMessage=!0);var e=t.stackStartFunction||h;if(Error.captureStackTrace)Error.captureStackTrace(this,e);else{var n=new Error;if(n.stack){var r=n.stack,i=a(e),o=r.indexOf("\n"+i);if(o>=0){var s=r.indexOf("\n",o+1);r=r.substring(s+1)}this.stack=r}}},_.inherits(S.AssertionError,Error),S.fail=h,S.ok=p,S.equal=function(t,e,n){t!=e&&h(t,e,n,"==",S.equal)},S.notEqual=function(t,e,n){t==e&&h(t,e,n,"!=",S.notEqual)},S.deepEqual=function(t,e,n){f(t,e,!1)||h(t,e,n,"deepEqual",S.deepEqual)},S.deepStrictEqual=function(t,e,n){f(t,e,!0)||h(t,e,n,"deepStrictEqual",S.deepStrictEqual)},S.notDeepEqual=function(t,e,n){f(t,e,!1)&&h(t,e,n,"notDeepEqual",S.notDeepEqual)}
1,S.notDeepStrictEqual=v,S.strictEqual=function(t,e,n){t!==e&&h(t,e,n,"===",S.strictEqual)},S.notStrictEqual=function(t,e,n){t===e&&h(t,e,n,"!==",S.notStrictEqual)},S.throws=function(t,e,n){b(!0,t,e,n)},S.doesNotThrow=function(t,e,n){b(!1,t,e,n)},S.ifError=function(t){if(t)throw t};var M=Object.keys||function(t){var e=[];for(var n in t)w.call(t,n)&&e.push(n);return e}}).call(e,n("fRUx"))},iwys:function(t,e,n){"use strict";var r=n("bKpL"),i=n("1kAr");r.Observable.prototype.mapTo=i.mapTo},iyHZ:function(t,e,n){"use strict";function r(t,e){function n(){return!n.pred.apply(n.thisArg,arguments)}return n.pred=t,n.thisArg=e,n}e.not=r},j8LY:function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),"number"==typeof e&&(n=e,e=null),function(r){return r.lift(new a(t,e,n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.mergeMapTo=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.ish=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.ish,this.resultSelector,this.concurrent))},t}();e.MergeMapToOperator=a;var u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.ish=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.resultSelector,n=this.index++,r=this.ish,i=this.destination;this.active++,this._innerSub(r,i,e,t,n)}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n,r,i){this.add(s.subscribeToResult(this,t,r,i))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){var o=this,s=o.resultSelector,a=o.destination;s?this.trySelectResult(t,e,n,r):a.next(e)},e.prototype.trySelectResult=function(t,e,n,r){var i,o=this,s=o.resultSelector,a=o.destination;try{i=s(t,e,n,r)}catch(t){return void a.error(t)}a.next(i)},e.prototype.notifyError=function(t){this.destination.error(t)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber);e.MergeMapToSubscriber=u},j8RC:function(t,e,n){"use strict";var r=n("bKpL"),i=n("2Rhf");r.Observable.prototype.skipUntil=i.skipUntil},jKKE:function(t,e,n){"use strict";function r(t){return i.count(t)(this)}var i=n("ip92");e.count=r},jRXK:function(t,e,n){"use strict";(function(e){function r(t,n){n.push(a);var r=e.concat([u]);r.writeUInt32BE(t.size,8),r.writeUInt32BE(t.size,12),r.writeUInt32BE(s(r.slice(4,-4)),21),n.push(r);var i=e.concat([c,o.deflateSync(t.data,{level:9}),new e(4)]);i.writeUInt32BE(i.length-12,0),i.writeUInt32BE(s(i.slice(4,-4)),i.length-4),n.push(i),n.push(l),n.push(null)}function i(t,n,r){var i=t.length,o=(i+2*r)*n,s=new e((o+1)*o);s.fill(255);for(var a=0;a<o;a++)s[a*(o+1)]=0;for(var a=0;a<i;a++)for(var u=0;u<i;u++)if(t[a][u]){var c=((r+a)*(o+1)+(r+u))*n+1;s.fill(0,c,c+n);for(var l=1;l<n;l++)s.copy(s,c+l*(o+1),c,c+n)}return{data:s,size:o}}var o=n("ZfEn"),s=n("xqgp"),a=new e([137,80,78,71,13,10,26,10]),u=new e([0,0,0,13,73,72,68,82,0,0,0,0,0,0,0,0,8,0,0,0,0,0,0,0,0]),c=new e([0,0,0,0,73,68,65,84]),l=new e([0,0,0,0,73,69,78,68,174,66,96,130]);t.exports={bitmap:i,png:r}}).call(e,n("v0OU").Buffer)},jUlM:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("fcnB"),s=n("NSJx"),a=n("ktfo"),u=n("yW9Z"),c=function(t){function e(e,n){t.call(this),this.sources=e,this.resultSelector=n}return r(e,t),e.create=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];if(null===t||0===arguments.length)return new o.EmptyObservable;var r=null;return"function"==typeof t[t.length-1]&&(r=t.pop()),1===t.length&&s.isArray(t[0])&&(t=t[0]),0===t.length?new o.EmptyObservable:new e(t,r)},e.prototype._subscribe=function(t){return new l(t,this.sources,this.resultSelector)},e}(i.Observable);e.ForkJoinObservable=c;var l=function(t){function e(e,n,r){t.call(this,e),this.sources=n,this.resultSelector=r,this.completed=0,this.haveValues=0;var i=n.length;this.total=i,this.values=new Array(i);for(var o=0;o<i;o++){var s=n[o],u=a.subscribeToResult(this,s,null,o);u&&(u.outerIndex=o,this.add(u))}}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e,i._hasValue||(i._hasValue=!0,this.haveValues++)},e.prototype.notifyComplete=function(t){var e=this.destination,n=this,r=n.haveValues,i=n.resultSelector,o=n.values,s=o.length;if(!t._hasValue)return void e.complete();if(++this.completed===s){if(r===s){var a=i?i.apply(this,o):o;e.next(a)}e.complete()}},e}(u.OuterSubscriber)},jjPq:function(t,e,n){"use strict";function r(t){var e="function"==typeof t?function(e,n){return t(e,n)>0?e:n}:function(t,e){return t>e?t:e};return i.reduce(e)}var i=n("JwCl");e.max=r},jxpy:function(t,e,n){"use strict";function r(t){var e=t.length;if(e%4>0)throw new Error("Invalid string. Length must be a multiple of 4");return"="===t[e-2]?2:"="===t[e-1]?1:0}function i(t){return 3*t.length/4-r(t)}function o(t){var e,n,i,o,s,a=t.length;o=r(t),s=new h(3*a/4-o),n=o>0?a-4:a;var u=0;for(e=0;e<n;e+=4)i=l[t.charCodeAt(e)]<<18|l[t.charCodeAt(e+1)]<<12|l[t.charCodeAt(e+2)]<<6|l[t.charCodeAt(e+3)],s[u++]=i>>16&255,s[u++]=i>>8&255,s[u++]=255&i;return 2===o?(i=l[t.charCodeAt(e)]<<2|l[t.charCodeAt(e+1)]>>4,s[u++]=255&i):1===o&&(i=l[t.charCodeAt(e)]<<10|l[t.charCodeAt(e+1)]<<4|l[t.charCodeAt(e+2)]>>2,s[u++]=i>>8&255,s[u++]=255&i),s}function s(t){return c[t>>18&63]+c[t>>12&63]+c[t>>6&63]+c[63&t]}function a(t,e,n){for(var r,i=[],o=e;o<n;o+=3)r=(t[o]<<16)+(t[o+1]<<8)+t[o+2],i.push(s(r));return i.join("")}function u(t){for(var e,n=t.length,r=n%3,i="",o=[],s=0,u=n-r;s<u;s+=16383)o.push(a(t,s,s+16383>u?u:s+16383));return 1===r?(e=t[n-1],i+=c[e>>2],i+=c[e<<4&63],i+="=="):2===r&&(e=(t[n-2]<<8)+t[n-1],i+=c[e>>10],i+=c[e>>4&63],i+=c[e<<2&63],i+="="),o.push(i),o.join("")}e.byteLength=i,e.toByteArray=o,e.fromByteArray=u;for(var c=[],l=[],h="undefined"!=typeof Uint8Array?Uint8Array:Array,p="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
1+/",f=0,d=p.length;f<d;++f)c[f]=p[f],l[p.charCodeAt(f)]=f;l["-".charCodeAt(0)]=62,l["_".charCodeAt(0)]=63},jyAw:function(t,e,n){"use strict";function r(t,e,n,r){return i.groupBy(t,e,n,r)(this)}var i=n("8H5Y");e.GroupedObservable=i.GroupedObservable,e.groupBy=r},k6cv:function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new a(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("uT+d");e.elementAt=r;var a=function(){function t(t,e){if(this.index=t,this.defaultValue=e,t<0)throw new s.ArgumentOutOfRangeError}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.index,this.defaultValue))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.index=n,this.defaultValue=r}return i(e,t),e.prototype._next=function(t){0==this.index--&&(this.destination.next(t),this.destination.complete())},e.prototype._complete=function(){var t=this.destination;this.index>=0&&(void 0!==this.defaultValue?t.next(this.defaultValue):t.error(new s.ArgumentOutOfRangeError)),t.complete()},e}(o.Subscriber)},kAWK:function(t,e,n){"use strict";var r=n("bKpL"),i=n("QsbA");r.Observable.prototype.windowWhen=i.windowWhen},kGJb:function(t,e,n){"use strict";function r(t,e){return i.distinctUntilChanged(t,e)(this)}var i=n("2Sjb");e.distinctUntilChanged=r},kIyd:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Kuy3");r.Observable.prototype.subscribeOn=i.subscribeOn},kWk1:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=function(t){function e(e,n,r){t.call(this),this.parent=e,this.outerValue=n,this.outerIndex=r,this.index=0}return r(e,t),e.prototype._next=function(t){this.parent.notifyNext(this.outerValue,t,this.outerIndex,this.index++,this)},e.prototype._error=function(t){this.parent.notifyError(t,this),this.unsubscribe()},e.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},e}(i.Subscriber);e.InnerSubscriber=o},ki6Z:function(t,e,n){"use strict";function r(){return i.exhaust()(this)}var i=n("weui");e.exhaust=r},kkQ5:function(t,e,n){"use strict";function r(t,e){return arguments.length>=2?i.scan(t,e)(this):i.scan(t)(this)}var i=n("H1KZ");e.scan=r},kqkQ:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new l(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("RdI5"),a=n("XRvs"),u=n("yW9Z"),c=n("ktfo");e.windowWhen=r;var l=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.closingSelector))},t}(),h=function(t){function e(e,n){t.call(this,e),this.destination=e,this.closingSelector=n,this.openWindow()}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.openWindow(i)},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype.notifyComplete=function(t){this.openWindow(t)},e.prototype._next=function(t){this.window.next(t)},e.prototype._error=function(t){this.window.error(t),this.destination.error(t),this.unsubscribeClosingNotification()},e.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},e.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},e.prototype.openWindow=function(t){void 0===t&&(t=null),t&&(this.remove(t),t.unsubscribe());var e=this.window;e&&e.complete();var n=this.window=new o.Subject;this.destination.next(n);var r=s.tryCatch(this.closingSelector)();if(r===a.errorObject){var i=a.errorObject.e;this.destination.error(i),this.window.error(i)}else this.add(this.closingNotification=c.subscribeToResult(this,r))},e}(u.OuterSubscriber)},ktfo:function(t,e,n){"use strict";function r(t,e,n,r){var p=new l.InnerSubscriber(t,n,r);if(p.closed)return null;if(e instanceof u.Observable)return e._isScalar?(p.next(e.value),p.complete(),null):(p.syncErrorThrowable=!0,e.subscribe(p));if(o.isArrayLike(e)){for(var f=0,d=e.length;f<d&&!p.closed;f++)p.next(e[f]);p.closed||p.complete()}else{if(s.isPromise(e))return e.then(function(t){p.closed||(p.next(t),p.complete())},function(t){return p.error(t)}).then(null,function(t){i.root.setTimeout(function(){throw t})}),p;if(e&&"function"==typeof e[c.iterator])for(var m=e[c.iterator]();;){var v=m.next();if(v.done){p.complete();break}if(p.next(v.value),p.closed)break}else if(e&&"function"==typeof e[h.observable]){var y=e[h.observable]();if("function"==typeof y.subscribe)return y.subscribe(new l.InnerSubscriber(t,n,r));p.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}
1else{var g=a.isObject(e)?"an invalid object":"'"+e+"'",b="You provided "+g+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";p.error(new TypeError(b))}}return null}var i=n("zijX"),o=n("lhZu"),s=n("mUVF"),a=n("H6Sg"),u=n("bKpL"),c=n("2B7B"),l=n("kWk1"),h=n("DP67");e.subscribeToResult=r},"l/Fw":function(t,e,n){"use strict";function r(t){return i.sample(t)(this)}var i=n("ZNYO");e.sample=r},"l3Q+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("tBQh");r.Observable.prototype.delay=i.delay},l6Wf:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("xFbG"),s=function(t){function e(){t.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return r(e,t),e.prototype._subscribe=function(e){return this.hasError?(e.error(this.thrownError),o.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(e.next(this.value),e.complete(),o.Subscription.EMPTY):t.prototype._subscribe.call(this,e)},e.prototype.next=function(t){this.hasCompleted||(this.value=t,this.hasNext=!0)},e.prototype.error=function(e){this.hasCompleted||t.prototype.error.call(this,e)},e.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&t.prototype.next.call(this,this.value),t.prototype.complete.call(this)},e}(i.Subject);e.AsyncSubject=s},lDCR:function(t,e){"function"==typeof Object.create?t.exports=function(t,e){t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}})}:t.exports=function(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}},lc3y:function(t,e,n){"use strict";function r(){return i.isEmpty()(this)}var i=n("C4ew");e.isEmpty=r},lhZu:function(t,e,n){"use strict";e.isArrayLike=function(t){return t&&"number"==typeof t.length}},ltng:function(t,e,n){"use strict";var r=n("e7Zl");e.range=r.RangeObservable.create},"lx+J":function(t,e,n){"use strict";function r(t,e){return i.map(t,e)(this)}var i=n("L8VJ");e.map=r},mDYJ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("dxfK");r.Observable.prototype.distinctUntilKeyChanged=i.distinctUntilKeyChanged},mUVF:function(t,e,n){"use strict";function r(t){return t&&"function"!=typeof t.subscribe&&"function"==typeof t.then}e.isPromise=r},mihg:function(t,e,n){"use strict";function r(t){var e=t.value,n=t.subscriber;n.closed||(n.next(e),n.complete())}function i(t){var e=t.err,n=t.subscriber;n.closed||n.error(e)}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("zijX"),a=n("bKpL"),u=function(t){function e(e,n){t.call(this),this.promise=e,this.scheduler=n}return o(e,t),e.create=function(t,n){return new e(t,n)},e.prototype._subscribe=function(t){var e=this,n=this.promise,o=this.scheduler;if(null==o)this._isScalar?t.closed||(t.next(this.value),t.complete()):n.then(function(n){e.value=n,e._isScalar=!0,t.closed||(t.next(n),t.complete())},function(e){t.closed||t.error(e)}).then(null,function(t){s.root.setTimeout(function(){throw t})});else if(this._isScalar){if(!t.closed)return o.schedule(r,0,{value:this.value,subscriber:t})}else n.then(function(n){e.value=n,e._isScalar=!0,t.closed||t.add(o.schedule(r,0,{value:n,subscriber:t}))},function(e){t.closed||t.add(o.schedule(i,0,{err:e,subscriber:t}))}).then(null,function(t){s.root.setTimeout(function(){throw t})})},e}(a.Observable);e.PromiseObservable=u},mjW1:function(t,e,n){"use strict";var r=n("bKpL"),i=n("rAcl");r.Observable.pairs=i.pairs},mjx3:function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return"number"==typeof e&&(n=e,e=null),r.lift(new a(t,e,n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("ktfo"),s=n("yW9Z");e.mergeMap=r;var a=function(){function t(t,e,n){void 0===n&&(n=Number.POSITIVE_INFINITY),this.project=t,this.resultSelector=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.project,this.resultSelector,this.concurrent))},t}();e.MergeMapOperator=a;var u=function(t){function e(e,n,r,i){void 0===i&&(i=Number.POSITIVE_INFINITY),t.call(this,e),this.project=n,this.resultSelector=r,this.concurrent=i,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){this.active<this.concurrent?this._tryNext(t):this.buffer.push(t)},e.prototype._tryNext=function(t){var e,n=this.index++;try{e=this.project(t,n)}catch(t){return void this.destination.error(t)}this.active++,this._innerSub(e,t,n)},e.prototype._innerSub=function(t,e,n){this.add(o.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this.resultSelector?this._notifyResultSelector(t,e,n,r):this.destination.next(e)},e.prototype._notifyResultSelector=function(t,e,n,r){var i;try{i=this.resultSelector(t,e,n,r)}catch(t){return void this.destination.error(t)}this.destination.next(i)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},e}(s.OuterSubscriber);
1e.MergeMapSubscriber=u},mvrJ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("6JjX");r.Observable.prototype.switch=i._switch,r.Observable.prototype._switch=i._switch},"o/OZ":function(t,e,n){"use strict";var r=n("bKpL"),i=n("ziym");r.Observable.ajax=i.ajax},oOL0:function(t,e,n){"use strict";var r=n("bKpL"),i=n("olrH");r.Observable.prototype.concatMapTo=i.concatMapTo},okgN:function(t,e,n){"use strict";var r=n("bKpL"),i=n("pOTC");r.Observable.if=i._if},olOS:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=i.async),o.timestamp(t)(this)}var i=n("IhB/"),o=n("xK8X");e.timestamp=r},olrH:function(t,e,n){"use strict";function r(t,e){return i.concatMapTo(t,e)(this)}var i=n("0mJJ");e.concatMapTo=r},p2y2:function(t,e,n){"use strict";function r(t,e){for(var n=0,r=e.length;n<r;n++)for(var i=e[n],o=Object.getOwnPropertyNames(i.prototype),s=0,a=o.length;s<a;s++){var u=o[s];t.prototype[u]=i.prototype[u]}}e.applyMixins=r},p3bn:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Obns");r.Observable.prototype.debounce=i.debounce},p3u8:function(t,e,n){"use strict";var r=n("bKpL"),i=n("BbOI");r.Observable.bindNodeCallback=i.bindNodeCallback},p4do:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){var n;"function"==typeof t[t.length-1]&&(n=t.pop());var r=t;return e.lift(new a(r,n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.withLatestFrom=r;var a=function(){function t(t,e){this.observables=t,this.project=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.observables,this.project))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.observables=n,this.project=r,this.toRespond=[];var i=n.length;this.values=new Array(i);for(var o=0;o<i;o++)this.toRespond.push(o);for(var o=0;o<i;o++){var a=n[o];this.add(s.subscribeToResult(this,a,a,o))}}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values[n]=e;var o=this.toRespond;if(o.length>0){var s=o.indexOf(n);-1!==s&&o.splice(s,1)}},e.prototype.notifyComplete=function(){},e.prototype._next=function(t){if(0===this.toRespond.length){var e=[t].concat(this.values);this.project?this._tryProject(e):this.destination.next(e)}},e.prototype._tryProject=function(t){var e;try{e=this.project.apply(this,t)}catch(t){return void this.destination.error(t)}this.destination.next(e)},e}(o.OuterSubscriber)},pHO4:function(t,e,n){"use strict";var r=n("bKpL"),i=n("0nG5");r.Observable.prototype.min=i.min},pOTC:function(t,e,n){"use strict";var r=n("S08L");e._if=r.IfObservable.create},pguX:function(t,e,n){"use strict";function r(){return function(t){return t.lift(new s)}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+");e.dematerialize=r;var s=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new a(t))},t}(),a=function(t){function e(e){t.call(this,e)}return i(e,t),e.prototype._next=function(t){t.observe(this.destination)},e}(o.Subscriber)},pkLr:function(t,e,n){"use strict";var r=n("bKpL"),i=n("PwNK");r.Observable.prototype.audit=i.audit},ptvE:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ki6Z");r.Observable.prototype.exhaust=i.exhaust},"q+5A":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("EsGe"),o=n("bKpL"),s=n("IhB/"),a=function(t){function e(e,n){void 0===e&&(e=0),void 0===n&&(n=s.async),t.call(this),this.period=e,this.scheduler=n,(!i.isNumeric(e)||e<0)&&(this.period=0),n&&"function"==typeof n.schedule||(this.scheduler=s.async)}return r(e,t),e.create=function(t,n){return void 0===t&&(t=0),void 0===n&&(n=s.async),new e(t,n)},e.dispatch=function(t){var e=t.index,n=t.subscriber,r=t.period;n.next(e),n.closed||(t.index+=1,this.schedule(t,r))},e.prototype._subscribe=function(t){var n=this.period,r=this.scheduler;
1t.add(r.schedule(e.dispatch,n,{index:0,subscriber:t,period:n}))},e}(o.Observable);e.IntervalObservable=a},"q/Xa":function(t,e,n){"use strict";(function(e){function r(t){return JSON.parse(JSON.stringify(t))}function i(t,e){var n,i=1;for(t.data1?n=Math.ceil(t.data1.length/8):i=10;i<10;i++){var o=h[i][e];if(o.data_len>=n)return r(o)}for(t.data10?n=Math.ceil(t.data10.length/8):i=27;i<27;i++){var o=h[i][e];if(o.data_len>=n)return r(o)}for(n=Math.ceil(t.data27.length/8);i<41;i++){var o=h[i][e];if(o.data_len>=n)return r(o)}throw new Error("Too much data")}function o(t,n){var r=new e(n.data_len);r.fill(0),t=n.version<10?t.data1:n.version<27?t.data10:t.data27;for(var i=t.length,o=0;o<i;o+=8){for(var s=0,a=0;a<8;a++)s=s<<1|(t[o+a]?1:0);r[o/8]=s}for(var c=236,o=Math.ceil((i+4)/8);o<r.length;o++)r[o]=c,c=236==c?17:236;var l=0;return n.blocks=n.blocks.map(function(t){var e=r.slice(l,l+t);return l+=t,n.ec.push(u(e,n.ec_len)),e}),n}function s(t,e,n){e=l.indexOf(e)>-1?e:"M";var r=a(t,n),s=o(r,i(r,e));return c.getMatrix(s)}var a=n("gXuV"),u=n("O++o"),c=n("3hV4"),l=["L","M","Q","H"],h=[[],[26,7,1,10,1,13,1,17,1],[44,10,1,16,1,22,1,28,1],[70,15,1,26,1,36,2,44,2],[100,20,1,36,2,52,2,64,4],[134,26,1,48,2,72,4,88,4],[172,36,2,64,4,96,4,112,4],[196,40,2,72,4,108,6,130,5],[242,48,2,88,4,132,6,156,6],[292,60,2,110,5,160,8,192,8],[346,72,4,130,5,192,8,224,8],[404,80,4,150,5,224,8,264,11],[466,96,4,176,8,260,10,308,11],[532,104,4,198,9,288,12,352,16],[581,120,4,216,9,320,16,384,16],[655,132,6,240,10,360,12,432,18],[733,144,6,280,10,408,17,480,16],[815,168,6,308,11,448,16,532,19],[901,180,6,338,13,504,18,588,21],[991,196,7,364,14,546,21,650,25],[1085,224,8,416,16,600,20,700,25],[1156,224,8,442,17,644,23,750,25],[1258,252,9,476,17,690,23,816,34],[1364,270,9,504,18,750,25,900,30],[1474,300,10,560,20,810,27,960,32],[1588,312,12,588,21,870,29,1050,35],[1706,336,12,644,23,952,34,1110,37],[1828,360,12,700,25,1020,34,1200,40],[1921,390,13,728,26,1050,35,1260,42],[2051,420,14,784,28,1140,38,1350,45],[2185,450,15,812,29,1200,40,1440,48],[2323,480,16,868,31,1290,43,1530,51],[2465,510,17,924,33,1350,45,1620,54],[2611,540,18,980,35,1440,48,1710,57],[2761,570,19,1036,37,1530,51,1800,60],[2876,570,19,1064,38,1590,53,1890,63],[3034,600,20,1120,40,1680,56,1980,66],[3196,630,21,1204,43,1770,59,2100,70],[3362,660,22,1260,45,1860,62,2220,74],[3532,720,24,1316,47,1950,65,2310,77],[3706,750,25,1372,49,2040,68,2430,81]];h=h.map(function(t,e){if(!e)return{};for(var n={},r=1;r<8;r+=2){for(var i=t[0]-t[r],o=t[r+1],s=l[r/2|0],a={version:e,ec_level:s,data_len:i,ec_len:t[r]/o,blocks:[],ec:[]},u=o,c=i;u>0;u--){var h=c/u|0;a.blocks.push(h),c-=h}n[s]=a}return n}),t.exports={QR:s,getTemplate:i,fillTemplate:o}}).call(e,n("v0OU").Buffer)},q07K:function(t,e,n){"use strict";var r=n("bKpL"),i=n("8Jh8");r.Observable.prototype.takeUntil=i.takeUntil},qHrI:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=0),function(n){return n.lift(new o(t,e))}}var i=n("P+lj");e.subscribeOn=r;var o=function(){function t(t,e){this.scheduler=t,this.delay=e}return t.prototype.call=function(t,e){return new i.SubscribeOnObservable(e,this.delay,this.scheduler).subscribe(t)},t}()},qIlB:function(t,e,n){"use strict";var r=n("zijX"),i=function(){function t(t){if(this.root=t,t.setImmediate&&"function"==typeof t.setImmediate)this.setImmediate=t.setImmediate.bind(t),this.clearImmediate=t.clearImmediate.bind(t);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var e=function t(e){delete t.instance.tasksByHandle[e]};e.instance=this,this.clearImmediate=e}}return t.prototype.identify=function(t){return this.root.Object.prototype.toString.call(t)},t.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},t.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},t.prototype.canUseReadyStateChange=function(){var t=this.root.document;return Boolean(t&&"onreadystatechange"in t.createElement("script"))},t.prototype.canUsePostMessage=function(){var t=this.root;if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}return!1},t.prototype.partiallyApplied=function(t){for(var e=[],n=1;n<arguments.length;n++)e[n-1]=arguments[n];var r=function t(){var e=t,n=e.handler,r=e.args;"function"==typeof n?n.apply(void 0,r):new Function(""+n)()};return r.handler=t,r.args=e,r},t.prototype.addFromSetImmediateArguments=function(t){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,t),this.nextHandle++},t.prototype.createProcessNextTickSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.process.nextTick(e.partiallyApplied(e.runIfPresent,n)),n};return t.instance=this,t},t.prototype.createPostMessageSetImmediate=function(){var t=this.root,e="setImmediate$"+t.Math.random()+"$",n=function n(r){var i=n.instance;r.source===t&&"string"==typeof r.data&&0===r.data.indexOf(e)&&i.runIfPresent(+r.data.slice(e.length))};n.instance=this,t.addEventListener("message",n,!1);var r=function t(){var e=t,n=e.messagePrefix,r=e.instance,i=r.addFromSetImmediateArguments(arguments);return r.root.postMessage(n+i,"*"),i};return r.instance=this,r.messagePrefix=e,r},t.prototype.runIfPresent=function(t){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,t),0);else{var e=this.tasksByHandle[t];if(e){this.currentlyRunningATask=!0;try{e()}finally{this.clearImmediate(t),this.currentlyRunningATask=!1}}}},t.prototype.createMessageChannelSetImmediate=function(){var t=this,e=new this.root.MessageChannel;e.port1.onmessage=function(e){var n=e.data;t.runIfPresent(n)};var n=function t(){var e=t,n=e.channel,r=e.instance,i=r.addFromSetImmediateArguments(arguments);return n.port2.postMessage(i),i};return n.channel=e,n.instance=this,n},t.prototype.createReadyStateChangeSetImmediate=function(){var t=function t(){var e=t.instance,n=e.root,r=n.document,i=r.documentElement,o=e.addFromSetImmediateArguments(arguments),s=r.createElement("script");return s.onreadystatechange=function(){e.runIfPresent(o),s.onreadystatechange=null,i.removeChild(s),s=null},i.appendChild(s),o};return t.instance=this,t},t.prototype.createSetTimeoutSetImmediate=function(){var t=function t(){var e=t.instance,n=e.addFromSetImmediateArguments(arguments);return e.root.setTimeout(e.partiallyApplied(e.runIfPresent,n),0),n};return t.instance=this,t},t}();e.ImmediateDefinition=i,e.Immediate=new i(r.root)},qNQE:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Txt5");r.Observable.prototype.auditTime=i.auditTime},qanz:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new l(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("rlar"),s=n("RdI5"),a=n("XRvs"),u=n("yW9Z"),c=n("ktfo");e.retryWhen=r;var l=function(){function t(t,e){this.notifier=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.notifier,this.source))},t}(),h=function(t){function e(e,n,r){t.call(this,e),this.notifier=n,this.source=r}return i(e,t),e.prototype.error=function(e){if(!this.isStopped){var n=this.errors,r=this.retries,i=this.retriesSubscription;if(r)this.errors=null,this.retriesSubscription=null;else{if(n=new o.Subject,(r=s.tryCatch(this.notifier)(n))===a.errorObject)return t.prototype.error.call(this,a.errorObject.e);i=c.subscribeToResult(this,r)}this._unsubscribeAndRecycle(),this.errors=n,this.retries=r,this.retriesSubscription=i,n.next(e)}},e.prototype._unsubscribe=function(){var t=this,e=t.errors,n=t.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),n&&(n.unsubscribe(),this.retriesSubscription=null),this.retries=null},e.prototype.notifyNext=function(t,e,n,r,i){var o=this,s=o.errors,a=o.retries,u=o.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=s,this.retries=a,this.retriesSubscription=u,this.source.subscribe(this)},e}(u.OuterSubscriber)},qbdv:function(t,e,n){"use strict";function r(t,e){return t&&e.startsWith(t)?e.substring(t.length):e}function i(t){return t.replace(/\/index.html$/,"")}function o(t,e,n){var r="="+t;if(e.indexOf(r)>-1)return r;if(r=n.getPluralCategory(t),e.indexOf(r)>-1)return r;if(e.indexOf("other")>-1)return"other";throw new Error('No plural message found for value "'+t+'"')}function s(t,e){"string"==typeof e&&(e=parseInt(e,10));var n=e,r=n.toString().replace(/^[^.]*\.?/,""),i=Math.floor(Math.abs(n)),o=r.length,s=parseInt(r,10),a=parseInt(n.toString().replace(/^[^.]*\.?|0+$/g,""),10)||0;switch(t.split("-")[0].toLowerCase()){case"af":case"asa":case"az":case"bem":case"bez":case"bg":case"brx":case"ce":case"cgg":case"chr":case"ckb":case"ee":case"el":case"eo":case"es":case"eu":case"fo":case"fur":case"gsw":case"ha":case"haw":case"hu":case"jgo":case"jmc":case"ka":case"kk":case"kkj":case"kl":case"ks":case"ksb":case"ky":case"lb":case"lg":case"mas":case"mgo":case"ml":case"mn":case"nb":case"nd":case"ne":case"nn":case"nnh":case"nyn":case"om":case"or":case"os":case"ps":case"rm":case"rof":case"rwk":case"saq":case"seh":case"sn":case"so":case"sq":case"ta":case"te":case"teo":case"tk":case"tr":case"ug":case"uz":case"vo":case"vun":case"wae":case"xog":return 1===n?B.One:B.Other;case"ak":case"ln":case"mg":case"pa":case"ti":return n===Math.floor(n)&&n>=0&&n<=1?B.One:B.Other;case"am":case"as":case"bn":case"fa":case"gu":case"hi":case"kn":case"mr":case"zu":return 0===i||1===n?B.One:B.Other;case"ar":return 0===n?B.Zero:1===n?B.One:2===n?B.Two:n%100===Math.floor(n%100)&&n%100>=3&&n%100<=10?B.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=99?B.Many:B.Other;case"ast":case"ca":case"de":case"en":case"et":case"fi":case"fy":case"gl":case"it":case"nl":case"sv":case"sw":case"ur":case"yi":return 1===i&&0===o?B.One:B.Other;case"be":return n%10==1&&n%100!=11?B.One:n%10===Math.floor(n%10)&&n%10>=2&&n%10<=4&&!(n%100>=12&&n%100<=14)?B.Few:n%10==0||n%10===Math.floor(n%10)&&n%10>=5&&n%10<=9||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=14?B.Many:B.Other;case"br":return n%10==1&&n%100!=11&&n%100!=71&&n%100!=91?B.One:n%10==2&&n%100!=12&&n%100!=72&&n%100!=92?B.Two:n%10===Math.floor(n%10)&&(n%10>=3&&n%10<=4||n%10==9)&&!(n%100>=10&&n%100<=19||n%100>=70&&n%100<=79||n%100>=90&&n%100<=99)?B.Few:0!==n&&n%1e6==0?B.Many:B.Other;case"bs":case"hr":case"sr":return 0===o&&i%10==1&&i%100!=11||s%10==1&&s%100!=11?B.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)||s%10===Math.floor(s%10)&&s%10>=2&&s%10<=4&&!(s%100>=12&&s%100<=14)?B.Few:B.Other;case"cs":case"sk":return 1===i&&0===o?B.One:i===Math.floor(i)&&i>=2&&i<=4&&0===o?B.Few:0!==o?B.Many:B.Other;case"cy":return 0===n?B.Zero:1===n?B.One:2===n?B.Two:3===n?B.Few:6===n?B.Many:B.Other;case"da":return 1===n||0!==a&&(0===i||1===i)?B.One:B.Other;case"dsb":case"hsb":return 0===o&&i%100==1||s%100==1?B.One:0===o&&i%100==2||s%100==2?B.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||s%100===Math.floor(s%100)&&s%100>=3&&s%100<=4?B.Few:B.Other;case"ff":case"fr":case"hy":case"kab":return 0===i||1===i?B.One:B.Other;case"fil":return 0===o&&(1===i||2===i||3===i)||0===o&&i%10!=4&&i%10!=6&&i%10!=9||0!==o&&s%10!=4&&s%10!=6&&s%10!=9?B.One:B.Other;case"ga":return 1===n?B.One:2===n?B.Two:n===Math.floor(n)&&n>=3&&n<=6?B.Few:n===Math.floor(n)&&n>=7&&n<=10?B.Many:B.Other;case"gd":return 1===n||11===n?B.One:2===n||12===n?B.Two:n===Math.floor(n)&&(n>=3&&n<=10||n>=13&&n<=19)?B.Few:B.Other;case"gv":return 0===o&&i%10==1?B.One:0===o&&i%10==2?B.Two:0!==o||i%100!=0&&i%100!=20&&i%100!=40&&i%100!=60&&i%100!=80?0!==o?B.Many:B.Other:B.Few;case"he":return 1===i&&0===o?B.One:2===i&&0===o?B.Two:0!==o||n>=0&&n<=10||n%10!=0?B.Other:B.Many;case"is":return 0===a&&i%10==1&&i%100!=11||0!==a?B.One:B.Other;case"ksh":return 0===n?B.Zero:1===n?B.One:B.Other;case"kw":case"naq":case"se":case"smn":return 1===n?B.One:2===n?B.Two:B.Other;case"lag":return 0===n?B.Zero:0!==i&&1!==i||0===n?B.Other:B.One;case"lt":return n%10!=1||n%100>=11&&n%100<=19?n%10===Math.floor(n%10)&&n%10>=2&&n%10<=9&&!(n%100>=11&&n%100<=19)?B.Few:0!==s?B.Many:B.Other:B.One;case"lv":case"prg":return n%10==0||n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19||2===o&&s%100===Math.floor(s%100)&&s%100>=11&&s%100<=19?B.Zero:n%10==1&&n%100!=11||2===o&&s%10==1&&s%100!=11||2!==o&&s%10==1?B.One:B.Other;case"mk":return 0===o&&i%10==1||s%10==1?B.One:B.Other;case"mt":return 1===n?B.One:0===n||n%100===Math.floor(n%100)&&n%100>=2&&n%100<=10?B.Few:n%100===Math.floor(n%100)&&n%100>=11&&n%100<=19?B.Many:B.Other;case"pl":return 1===i&&0===o?B.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?B.Few:0===o&&1!==i&&i%10===Math.floor(i%10)&&i%10>=0&&i%10<=1||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=12&&i%100<=14?B.Many:B.Other;case"pt":return n===Math.floor(n)&&n>=0&&n<=2&&2!==n?B.One:B.Other;case"ro":return 1===i&&0===o?B.One:0!==o||0===n||1!==n&&n%100===Math.floor(n%100)&&n%100>=1&&n%100<=19?B.Few:B.Other;case"ru":case"uk":return 0===o&&i%10==1&&i%100!=11?B.One:0===o&&i%10===Math.floor(i%10)&&i%10>=2&&i%10<=4&&!(i%100>=12&&i%100<=14)?B.Few:0===o&&i%10==0||0===o&&i%10===Math.floor(i%10)&&i%10>=5&&i%10<=9||0===o&&i%100===Math.floor(i%100)&&i%100>=11&&i%100<=14?B.Many:B.Other;case"shi":return 0===i||1===n?B.One:n===Math.floor(n)&&n>=2&&n<=10?B.Few:B.Other;case"si":return 0===n||1===n||0===i&&1===s?B.One:B.Other;case"sl":return 0===o&&i%100==1?B.One:0===o&&i%100==2?B.Two:0===o&&i%100===Math.floor(i%100)&&i%100>=3&&i%100<=4||0!==o?B.Few:B.Other;case"tzm":return n===Math.floor(n)&&n>=0&&n<=1||n===Math.floor(n)&&n>=11&&n<=99?B.One:B.Other;default:return B.Other}}function a(t,e){e=encodeURIComponent(e);for(var n=0,r=t.split(";");n<r.length;n++){var i=r[n],o=i.indexOf("="),s=-1==o?[i,""]:[i.slice(0,o),i.slice(o+1)],a=s[0],u=s[1];if(a.trim()===e)return decodeURIComponent(u)}return null}function u(t){return t.name||typeof t}function c(t,e){return Error("InvalidPipeArgument: '"+e+"' for pipe '"+Object(P._35)(t)+"'")}function l(t){return t?t[0].toUpperCase()+t.substr(1).toLowerCase():t}function h(t){return function(e,n){var r=t(e,n);return 1==r.length?"0"+r:r}}function p(t){return function(e,n){return t(e,n).split(" ")[0]}}function f(t,e,n){return new Intl.DateTimeFormat(e,n).format(t).replace(/[\u200e\u200f]/g,"")}function d(t){var e={hour:"2-digit",hour12:!1,timeZoneName:t};return function(t,n){var r=f(t,n,e);return r?r.substring(3):""}}function m(t,e){return t.hour12=e,t}function v(t,e){var n={};return n[t]=2===e?"2-digit":"numeric",n}function y(t,e){var n={};return n[t]=e<4?e>1?"short":"narrow":"long",n}function g(t){return t.reduce(function(t,e){return Object.assign({},t,e)},{})}function b(t){return function(e,n){return f(e,n,t)}}function _(t,e,n){var r=dt[t];if(r)return r(e,n);var i=t,o=vt.get(i);if(!o){o=[];var s=void 0;ft.exec(t);for(var a=t;a;)s=ft.exec(a),s?(o=o.concat(s.slice(1)),a=o.pop()):(o.push(a),a=null);vt.set(i,o)}return o.reduce(function(t,r){var i=mt[r];return t+(i?i(e,n):w(r))},"")}function w(t){return"''"===t?"'":t.replace(/(^'|'$)/g,"").replace(/''/g,"'")}
1function x(t,e,n,r,i,o,s){if(void 0===o&&(o=null),void 0===s&&(s=!1),null==n)return null;if("number"!=typeof(n="string"==typeof n&&S(n)?+n:n))throw c(t,n);var a=void 0,u=void 0,l=void 0;if(r!==ht.Currency&&(a=1,u=0,l=3),i){var h=i.match(gt);if(null===h)throw new Error(i+" is not a valid digit info for number pipes");null!=h[1]&&(a=E(h[1])),null!=h[3]&&(u=E(h[3])),null!=h[5]&&(l=E(h[5]))}return pt.format(n,e,r,{minimumIntegerDigits:a,minimumFractionDigits:u,maximumFractionDigits:l,currency:o,currencyAsSymbol:s})}function E(t){var e=parseInt(t);if(isNaN(e))throw new Error("Invalid integer literal when parsing "+t);return e}function S(t){return!isNaN(t-parseFloat(t))}function T(t){return null==t||""===t}function M(t){return t instanceof Date&&!isNaN(t.valueOf())}function C(t){var e=new Date(0),n=0,r=0,i=t[8]?e.setUTCFullYear:e.setFullYear,o=t[8]?e.setUTCHours:e.setHours;t[9]&&(n=O(t[9]+t[10]),r=O(t[9]+t[11])),i.call(e,O(t[1]),O(t[2])-1,O(t[3]));var s=O(t[4]||"0")-n,a=O(t[5]||"0")-r,u=O(t[6]||"0"),c=Math.round(1e3*parseFloat("0."+(t[7]||0)));return o.call(e,s,a,u,c),e}function O(t){return parseInt(t,10)}n.d(e,"k",function(){return U}),n.d(e,"l",function(){return F}),n.d(e,"q",function(){return a}),n.d(e,"b",function(){return Pt}),n.d(e,"h",function(){return z}),n.d(e,"i",function(){return G}),n.d(e,"j",function(){return q}),n.d(e,"m",function(){return tt}),n.d(e,"c",function(){return Lt}),n.d(e,"p",function(){return Nt}),n.d(e,"o",function(){return R}),n.d(e,"e",function(){return L}),n.d(e,"g",function(){return N}),n.d(e,"a",function(){return I}),n.d(e,"d",function(){return j}),n.d(e,"n",function(){return D}),n.d(e,"f",function(){return k});var A=n("6Xbx"),P=n("/oeL"),R=function(){function t(){}return t.prototype.getBaseHrefFromDOM=function(){},t.prototype.onPopState=function(t){},t.prototype.onHashChange=function(t){},t.prototype.pathname=function(){},t.prototype.search=function(){},t.prototype.hash=function(){},t.prototype.replaceState=function(t,e,n){},t.prototype.pushState=function(t,e,n){},t.prototype.forward=function(){},t.prototype.back=function(){},t}(),L=new P.v("Location Initialized"),N=function(){function t(){}return t.prototype.path=function(t){},t.prototype.prepareExternalUrl=function(t){},t.prototype.pushState=function(t,e,n,r){},t.prototype.replaceState=function(t,e,n,r){},t.prototype.forward=function(){},t.prototype.back=function(){},t.prototype.onPopState=function(t){},t.prototype.getBaseHref=function(){},t}(),I=new P.v("appBaseHref"),k=function(){function t(e){var n=this;this._subject=new P.p,this._platformStrategy=e;var r=this._platformStrategy.getBaseHref();this._baseHref=t.stripTrailingSlash(i(r)),this._platformStrategy.onPopState(function(t){n._subject.emit({url:n.path(!0),pop:!0,type:t.type})})}return t.prototype.path=function(t){return void 0===t&&(t=!1),this.normalize(this._platformStrategy.path(t))},t.prototype.isCurrentPathEqualTo=function(e,n){return void 0===n&&(n=""),this.path()==this.normalize(e+t.normalizeQueryParams(n))},t.prototype.normalize=function(e){return t.stripTrailingSlash(r(this._baseHref,i(e)))},t.prototype.prepareExternalUrl=function(t){return t&&"/"!==t[0]&&(t="/"+t),this._platformStrategy.prepareExternalUrl(t)},t.prototype.go=function(t,e){void 0===e&&(e=""),this._platformStrategy.pushState(null,"",t,e)},t.prototype.replaceState=function(t,e){void 0===e&&(e=""),this._platformStrategy.replaceState(null,"",t,e)},t.prototype.forward=function(){this._platformStrategy.forward()},t.prototype.back=function(){this._platformStrategy.back()},t.prototype.subscribe=function(t,e,n){return this._subject.subscribe({next:t,error:e,complete:n})},t.normalizeQueryParams=function(t){return t&&"?"!==t[0]?"?"+t:t},t.joinWithSlash=function(t,e){if(0==t.length)return e;if(0==e.length)return t;var n=0;return t.endsWith("/")&&n++,e.startsWith("/")&&n++,2==n?t+e.substring(1):1==n?t+e:t+"/"+e},t.stripTrailingSlash=function(t){var e=t.match(/#|\?|$/),n=e&&e.index||t.length,r=n-("/"===t[n-1]?1:0);return t.slice(0,r)+t.slice(n)},t}();k.decorators=[{type:P.u}],k.ctorParameters=function(){return[{type:N}]};var j=function(t){function e(e,n){var r=t.call(this)||this;return r._platformLocation=e,r._baseHref="",null!=n&&(r._baseHref=n),r}return A.a(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.on
1HashChange(t)},e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.hash;return null==e&&(e="#"),e.length>0?e.substring(1):e},e.prototype.prepareExternalUrl=function(t){var e=k.joinWithSlash(this._baseHref,t);return e.length>0?"#"+e:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+k.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+k.normalizeQueryParams(r));0==i.length&&(i=this._platformLocation.pathname),this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(N);j.decorators=[{type:P.u}],j.ctorParameters=function(){return[{type:R},{type:void 0,decorators:[{type:P.H},{type:P.t,args:[I]}]}]};var D=function(t){function e(e,n){var r=t.call(this)||this;if(r._platformLocation=e,null==n&&(n=r._platformLocation.getBaseHrefFromDOM()),null==n)throw new Error("No base href set. Please provide a value for the APP_BASE_HREF token or add a base element to the document.");return r._baseHref=n,r}return A.a(e,t),e.prototype.onPopState=function(t){this._platformLocation.onPopState(t),this._platformLocation.onHashChange(t)}
1,e.prototype.getBaseHref=function(){return this._baseHref},e.prototype.prepareExternalUrl=function(t){return k.joinWithSlash(this._baseHref,t)},e.prototype.path=function(t){void 0===t&&(t=!1);var e=this._platformLocation.pathname+k.normalizeQueryParams(this._platformLocation.search),n=this._platformLocation.hash;return n&&t?""+e+n:e},e.prototype.pushState=function(t,e,n,r){var i=this.prepareExternalUrl(n+k.normalizeQueryParams(r));this._platformLocation.pushState(t,e,i)},e.prototype.replaceState=function(t,e,n,r){var i=this.prepareExternalUrl(n+k.normalizeQueryParams(r));this._platformLocation.replaceState(t,e,i)},e.prototype.forward=function(){this._platformLocation.forward()},e.prototype.back=function(){this._platformLocation.back()},e}(N);D.decorators=[{type:P.u}],D.ctorParameters=function(){return[{type:R},{type:void 0,decorators:[{type:P.H},{type:P.t,args:[I]}]}]};var F=function(){function t(){}return t.prototype.getPluralCategory=function(t){},t}(),U=function(t){function e(e){var n=t.call(this)||this;return n.locale=e,n}return A.a(e,t),e.prototype.getPluralCategory=function(t){switch(s(this.locale,t)){case B.Zero:return"zero";case B.One:return"one";case B.Two:return"two";case B.Few:return"few";case B.Many:return"many";default:return"other"}},e}(F);U.decorators=[{type:P.u}],U.ctorParameters=function(){return[{type:void 0,decorators:[{type:P.t,args:[P.A]}]}]};var B={};B.Zero=0,B.One=1,B.Two=2,B.Few=3,B.Many=4,B.Other=5,B[B.Zero]="Zero",B[B.One]="One",B[B.Two]="Two",B[B.Few]="Few",B[B.Many]="Many",B[B.Other]="Other";var z=function(){function t(t,e,n,r){this._iterableDiffers=t,this._keyValueDiffers=e,this._ngEl=n,this._renderer=r,this._initialClasses=[]}return Object.defineProperty(t.prototype,"klass",{set:function(t){this._applyInitialClasses(!0),this._initialClasses="string"==typeof t?t.split(/\s+/):[],this._applyInitialClasses(!1),this._applyClasses(this._rawClass,!1)},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngClass",{set:function(t){this._cleanupClasses(this._rawClass),this._iterableDiffer=null,this._keyValueDiffer=null,this._rawClass="string"==typeof t?t.split(/\s+/):t,this._rawClass&&(Object(P._21)(this._rawClass)?this._iterableDiffer=this._iterableDiffers.find(this._rawClass).create():this._keyValueDiffer=this._keyValueDiffers.find(this._rawClass).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._iterableDiffer){var t=this._iterableDiffer.diff(this._rawClass);t&&this._applyIterableChanges(t)}else if(this._keyValueDiffer){var e=this._keyValueDiffer.diff(this._rawClass);e&&this._applyKeyValueChanges(e)}},t.prototype._cleanupClasses=function(t){this._applyClasses(t,!0),this._applyInitialClasses(!1)},t.prototype._applyKeyValueChanges=function(t){var e=this;t.forEachAddedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._toggleClass(t.key,t.currentValue)}),t.forEachRemovedItem(function(t){t.previousValue&&e._toggleClass(t.key,!1)})},t.prototype._applyIterableChanges=function(t){var e=this;t.forEachAddedItem(function(t){if("string"!=typeof t.item)throw new Error("NgClass can only toggle CSS classes expressed as strings, got "+Object(P._35)(t.item));e._toggleClass(t.item,!0)}),t.forEachRemovedItem(function(t){return e._toggleClass(t.item,!1)})},t.prototype._applyInitialClasses=function(t){var e=this;this._initialClasses.forEach(function(n){return e._toggleClass(n,!t)})},t.prototype._applyClasses=function(t,e){var n=this;t&&(Array.isArray(t)||t instanceof Set?t.forEach(function(t){return n._toggleClass(t,!e)}):Object.keys(t).forEach(function(r){null!=t[r]&&n._toggleClass(r,!e)}))},t.prototype._toggleClass=function(t,e){var n=this;(t=t.trim())&&t.split(/\s+/g).forEach(function(t){n._renderer.setElementClass(n._ngEl.nativeElement,t,!!e)})},t}();z.decorators=[{type:P.m,args:[{selector:"[ngClass]"}]}],z.ctorParameters=function(){return[{type:P.y},{type:P.z},{type:P.n},{type:P.M}]},z.propDecorators={klass:[{type:P.x,args:["class"]}],ngClass:[{type:P.x}]};var V=function(){function t(t){this._viewContainerRef=t,this._componentRef=null,this._moduleRef=null}return t.prototype.ngOnChanges=function(t){if(this._viewContainerRef.clear(),this._componentRef=null,this.ngComponentOutlet){var e=this.ngComponentOutletInjector||this._viewContainerRef.parentInjector;if(t.ngComponentOutletNgModuleFactory)if(this._moduleRef&&this._moduleRef.destroy(),this.ngComponentOutletNgModuleFactory){var n=e.get(P.E);this._moduleRef=this.ngComponentOutletNgModuleFactory.create(n.injector)}else this._moduleRef=null;var r=this._moduleRef?this._moduleRef.componentFactoryResolver:e.get(P.k),i=r.resolve
1ComponentFactory(this.ngComponentOutlet);this._componentRef=this._viewContainerRef.createComponent(i,this._viewContainerRef.length,e,this.ngComponentOutletContent)}},t.prototype.ngOnDestroy=function(){this._moduleRef&&this._moduleRef.destroy()},t}();V.decorators=[{type:P.m,args:[{selector:"[ngComponentOutlet]"}]}],V.ctorParameters=function(){return[{type:P.Z}]},V.propDecorators={ngComponentOutlet:[{type:P.x}],ngComponentOutletInjector:[{type:P.x}],ngComponentOutletContent:[{type:P.x}],ngComponentOutletNgModuleFactory:[{type:P.x}]};var H=function(){function t(t,e,n,r){this.$implicit=t,this.ngForOf=e,this.index=n,this.count=r}return Object.defineProperty(t.prototype,"first",{get:function(){return 0===this.index},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"last",{get:function(){return this.index===this.count-1},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"even",{get:function(){return this.index%2==0},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"odd",{get:function(){return!this.even},enumerable:!0,configurable:!0}),t}(),G=function(){function t(t,e,n){this._viewContainer=t,this._template=e,this._differs=n,this._differ=null}return Object.defineProperty(t.prototype,"ngForTrackBy",{get:function(){return this._trackByFn},set:function(t){Object(P._6)()&&null!=t&&"function"!=typeof t&&console&&console.warn&&console.warn("trackBy must be a function, but received "+JSON.stringify(t)+". See https://angular.io/docs/ts/latest/api/common/index/NgFor-directive.html#!#change-propagation for more information."),this._trackByFn=t},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngForTemplate",{set:function(t){t&&(this._template=t)},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){if("ngForOf"in t){var e=t.ngForOf.currentValue;if(!this._differ&&e)try{this._differ=this._differs.find(e).create(this.ngForTrackBy)}catch(t){throw new Error("Cannot find a differ supporting object '"+e+"' of type '"+u(e)+"'. NgFor only supports binding to Iterables such as Arrays.")}}},t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this.ngForOf);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this,n=[];t.forEachOperation(function(t,r,i){if(null==t.previousIndex){var o=e._viewContainer.createEmbeddedView(e._template,new H(null,e.ngForOf,-1,-1),i),s=new W(t,o);n.push(s)}else if(null==i)e._viewContainer.remove(r);else{var o=e._viewContainer.get(r);e._viewContainer.move(o,i);var s=new W(t,o);n.push(s)}});for(var r=0;r<n.length;r++)this._perViewChange(n[r].view,n[r].record);for(var r=0,i=this._viewContainer.length;r<i;r++){var o=this._viewContainer.get(r);o.context.index=r,o.context.count=i}t.forEachIdentityChange(function(t){e._viewContainer.get(t.currentIndex).context.$implicit=t.item})},t.prototype._perViewChange=function(t,e){t.context.$implicit=e.item},t}();G.decorators=[{type:P.m,args:[{selector:"[ngFor][ngForOf]"}]}],G.ctorParameters=function(){return[{type:P.Z},{type:P.W},{type:P.y}]},G.propDecorators={ngForOf:[{type:P.x}],ngForTrackBy:[{type:P.x}],ngForTemplate:[{type:P.x}]};var W=function(){function t(t,e){this.record=t,this.view=e}return t}(),q=function(){function t(t,e){this._viewContainer=t,this._context=new Z,this._thenTemplateRef=null,this._elseTemplateRef=null,this._thenViewRef=null,this._elseViewRef=null,this._thenTemplateRef=e}return Object.defineProperty(t.prototype,"ngIf",{set:function(t){this._context.$implicit=this._context.ngIf=t,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfThen",{set:function(t){this._thenTemplateRef=t,this._thenViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),Object.defineProperty(t.prototype,"ngIfElse",{set:function(t){this._elseTemplateRef=t,this._elseViewRef=null,this._updateView()},enumerable:!0,configurable:!0}),t.prototype._updateView=function(){this._context.$implicit?this._thenViewRef||(this._viewContainer.clear(),this._elseViewRef=null,this._thenTemplateRef&&(this._thenViewRef=this._viewContainer.createEmbeddedView(this._thenTemplateRef,this._context))):this._elseViewRef||(this._viewContainer.clear(),this._thenView
1Ref=null,this._elseTemplateRef&&(this._elseViewRef=this._viewContainer.createEmbeddedView(this._elseTemplateRef,this._context)))},t}();q.decorators=[{type:P.m,args:[{selector:"[ngIf]"}]}],q.ctorParameters=function(){return[{type:P.Z},{type:P.W}]},q.propDecorators={ngIf:[{type:P.x}],ngIfThen:[{type:P.x}],ngIfElse:[{type:P.x}]};var Z=function(){function t(){this.$implicit=null,this.ngIf=null}return t}(),X=function(){function t(t,e){this._viewContainerRef=t,this._templateRef=e,this._created=!1}return t.prototype.create=function(){this._created=!0,this._viewContainerRef.createEmbeddedView(this._templateRef)},t.prototype.destroy=function(){this._created=!1,this._viewContainerRef.clear()},t.prototype.enforceState=function(t){t&&!this._created?this.create():!t&&this._created&&this.destroy()},t}(),K=function(){function t(){this._defaultUsed=!1,this._caseCount=0,this._lastCaseCheckIndex=0,this._lastCasesMatched=!1}return Object.defineProperty(t.prototype,"ngSwitch",{set:function(t){this._ngSwitch=t,0===this._caseCount&&this._updateDefaultCases(!0)},enumerable:!0,configurable:!0}),t.prototype._addCase=function(){return this._caseCount++},t.prototype._addDefault=function(t){this._defaultViews||(this._defaultViews=[]),this._defaultViews.push(t)},t.prototype._matchCase=function(t){var e=t==this._ngSwitch;return this._lastCasesMatched=this._lastCasesMatched||e,this._lastCaseCheckIndex++,this._lastCaseCheckIndex===this._caseCount&&(this._updateDefaultCases(!this._lastCasesMatched),this._lastCaseCheckIndex=0,this._lastCasesMatched=!1),e},t.prototype._updateDefaultCases=function(t){if(this._defaultViews&&t!==this._defaultUsed){this._defaultUsed=t;for(var e=0;e<this._defaultViews.length;e++){this._defaultViews[e].enforceState(t)}}},t}();K.decorators=[{type:P.m,args:[{selector:"[ngSwitch]"}]}],K.ctorParameters=function(){return[]},K.propDecorators={ngSwitch:[{type:P.x}]};var Y=function(){function t(t,e,n){this.ngSwitch=n,n._addCase(),this._view=new X(t,e)}return t.prototype.ngDoCheck=function(){this._view.enforceState(this.ngSwitch._matchCase(this.ngSwitchCase))},t}();Y.decorators=[{type:P.m,args:[{selector:"[ngSwitchCase]"}]}],Y.ctorParameters=function(){return[{type:P.Z},{type:P.W},{type:K,decorators:[{type:P.q}]}]},Y.propDecorators={ngSwitchCase:[{type:P.x}]};var J=function(){function t(t,e,n){n._addDefault(new X(t,e))}return t}();J.decorators=[{type:P.m,args:[{selector:"[ngSwitchDefault]"}]}],J.ctorParameters=function(){return[{type:P.Z},{type:P.W},{type:K,decorators:[{type:P.q}]}]};var Q=function(){function t(t){this._localization=t,this._caseViews={}}return Object.defineProperty(t.prototype,"ngPlural",{set:function(t){this._switchValue=t,this._updateView()},enumerable:!0,configurable:!0}),t.prototype.addCase=function(t,e){this._caseViews[t]=e},t.prototype._updateView=function(){this._clearViews();var t=Object.keys(this._caseViews),e=o(this._switchValue,t,this._localization);this._activateView(this._caseViews[e])},t.prototype._clearViews=function(){this._activeView&&this._activeView.destroy()},t.prototype._activateView=function(t){t&&(this._activeView=t,this._activeView.create())},t}();Q.decorators=[{type:P.m,args:[{selector:"[ngPlural]"}]}],Q.ctorParameters=function(){return[{type:F}]},Q.propDecorators={ngPlural:[{type:P.x}]};var $=function(){function t(t,e,n,r){this.value=t;var i=!isNaN(Number(t));r.addCase(i?"="+t:t,new X(n,e))}return t}();$.decorators=[{type:P.m,args:[{selector:"[ngPluralCase]"}]}],$.ctorParameters=function(){return[{type:void 0,decorators:[{type:P.h,args:["ngPluralCase"]}]},{type:P.W},{type:P.Z},{type:Q,decorators:[{type:P.q}]}]};var tt=function(){function t(t,e,n){this._differs=t,this._ngEl=e,this._renderer=n}return Object.defineProperty(t.prototype,"ngStyle",{set:function(t){this._ngStyle=t,!this._differ&&t&&(this._differ=this._differs.find(t).create())},enumerable:!0,configurable:!0}),t.prototype.ngDoCheck=function(){if(this._differ){var t=this._differ.diff(this._ngStyle);t&&this._applyChanges(t)}},t.prototype._applyChanges=function(t){var e=this;t.forEachRemovedItem(function(t){return e._setStyle(t.key,null)}),t.forEachAddedItem(function(t){return e._setStyle(t.key,t.currentValue)}),t.forEachChangedItem(function(t){return e._setStyle(t.key,t.currentValue)})},t.prototype._setStyle=function(t,e){var n=t.split("."),r=n[0],i=n[1];e=null!=e&&i?""+e+i:e,this._renderer.setElementStyle(this._ngEl.nativeElement,r,e)},t}();tt.decorators=[{type:P.m,args:[{selector:"[ngStyle]"}]}],tt.ctorParameters=function(){return[{type:P.z},{type:P.n},{type:P.M}]},tt.propDecorators={ngStyle:[{type:P.x}]};
1var et=function(){function t(t){this._viewContainerRef=t}return Object.defineProperty(t.prototype,"ngOutletContext",{set:function(t){this.ngTemplateOutletContext=t},enumerable:!0,configurable:!0}),t.prototype.ngOnChanges=function(t){this._viewRef&&this._viewContainerRef.remove(this._viewContainerRef.indexOf(this._viewRef)),this.ngTemplateOutlet&&(this._viewRef=this._viewContainerRef.createEmbeddedView(this.ngTemplateOutlet,this.ngTemplateOutletContext))},t}();et.decorators=[{type:P.m,args:[{selector:"[ngTemplateOutlet]"}]}],et.ctorParameters=function(){return[{type:P.Z}]},et.propDecorators={ngTemplateOutletContext:[{type:P.x}],ngTemplateOutlet:[{type:P.x}],ngOutletContext:[{type:P.x}]};var nt=[z,V,G,q,et,tt,K,Y,J,Q,$],rt=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.subscribe({next:e,error:function(t){throw t}})},t.prototype.dispose=function(t){t.unsubscribe()},t.prototype.onDestroy=function(t){t.unsubscribe()},t}(),it=function(){function t(){}return t.prototype.createSubscription=function(t,e){return t.then(e,function(t){throw t})},t.prototype.dispose=function(t){},t.prototype.onDestroy=function(t){},t}(),ot=new it,st=new rt,at=function(){function t(t){this._ref=t,this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null,this._strategy=null}return t.prototype.ngOnDestroy=function(){this._subscription&&this._dispose()},t.prototype.transform=function(t){return this._obj?t!==this._obj?(this._dispose(),this.transform(t)):this._latestValue===this._latestReturnedValue?this._latestReturnedValue:(this._latestReturnedValue=this._latestValue,P._1.wrap(this._latestValue)):(t&&this._subscribe(t),this._latestReturnedValue=this._latestValue,this._latestValue)},t.prototype._subscribe=function(t){var e=this;this._obj=t,this._strategy=this._selectStrategy(t),this._subscription=this._strategy.createSubscription(t,function(n){return e._updateLatestValue(t,n)})},t.prototype._selectStrategy=function(e){if(Object(P._23)(e))return ot;if(Object(P._22)(e))return st;throw c(t,e)},t.prototype._dispose=function(){this._strategy.dispose(this._subscription),this._latestValue=null,this._latestReturnedValue=null,this._subscription=null,this._obj=null},t.prototype._updateLatestValue=function(t,e){t===this._obj&&(this._latestValue=e,this._ref.markForCheck())},t}();at.decorators=[{type:P.L,args:[{name:"async",pure:!1}]}],at.ctorParameters=function(){return[{type:P.i}]};var ut=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw c(t,e);return e.toLowerCase()},t}();ut.decorators=[{type:P.L,args:[{name:"lowercase"}]}],ut.ctorParameters=function(){return[]};var ct=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw c(t,e);return e.split(/\b/g).map(function(t){return l(t)}).join("")},t}();ct.decorators=[{type:P.L,args:[{name:"titlecase"}]}],ct.ctorParameters=function(){return[]};var lt=function(){function t(){}return t.prototype.transform=function(e){if(!e)return e;if("string"!=typeof e)throw c(t,e);return e.toUpperCase()},t}();lt.decorators=[{type:P.L,args:[{name:"uppercase"}]}],lt.ctorParameters=function(){return[]};var ht={};ht.Decimal=0,ht.Percent=1,ht.Currency=2,ht[ht.Decimal]="Decimal",ht[ht.Percent]="Percent",ht[ht.Currency]="Currency";var pt=function(){function t(){}return t.format=function(t,e,n,r){void 0===r&&(r={});var i=r.minimumIntegerDigits,o=r.minimumFractionDigits,s=r.maximumFractionDigits,a=r.currency,u=r.currencyAsSymbol,c=void 0!==u&&u,l={minimumIntegerDigits:i,minimumFractionDigits:o,maximumFractionDigits:s,style:ht[n].toLowerCase()};return n==ht.Currency&&(l.currency="string"==typeof a?a:void 0,l.currencyDisplay=c?"symbol":"code"),new Intl.NumberFormat(e,l).format(t)},t}(),ft=/((?:[^yMLdHhmsazZEwGjJ']+)|(?:'(?:[^']|'')*')|(?:E+|y+|M+|L+|d+|H+|h+|J+|j+|m+|s+|a|z|Z|G+|w+))(.*)/,dt={yMMMdjms:b(g([v("year",1),y("month",3),v("day",1),v("hour",1),v("minute",1),v("second",1)])),yMdjm:b(g([v("year",1),v("month",1),v("day",1),v("hour",1),v("minute",1)])),yMMMMEEEEd:b(g([v("year",1),y("month",4),y("weekday",4),v("day",1)])),yMMMMd:b(g([v("year",1),y("month",4),v("day",1)])),yMMMd:b(g([v("year",1),y("month",3),v("day",1)])),yMd:b(g([v("year",1),v("month",1),v("day",1)])),jms:b(g([v("hour",1),v("second",1),v("minute",1)])),jm:b(g([v("hour",1),v("minute",1)]))},mt={yyyy:b(v("year",4)),yy:b(v("year",2)),y:b(v("year",1)),MMMM:b(y("month",4)),MMM:b(y("month",3)),MM:b(v("month",2)),M:b(v("month",1)),LLLL:b(y("month",4)),L:b(y("month",1)),dd:b(v("day",2)),d:b(v("day",1)),HH:h(p(b(m(v("hour",2),
1!1)))),H:p(b(m(v("hour",1),!1))),hh:h(p(b(m(v("hour",2),!0)))),h:p(b(m(v("hour",1),!0))),jj:b(v("hour",2)),j:b(v("hour",1)),mm:h(b(v("minute",2))),m:b(v("minute",1)),ss:h(b(v("second",2))),s:b(v("second",1)),sss:b(v("second",3)),EEEE:b(y("weekday",4)),EEE:b(y("weekday",3)),EE:b(y("weekday",2)),E:b(y("weekday",1)),a:function(t){return function(e,n){return t(e,n).split(" ")[1]}}(b(m(v("hour",1),!0))),Z:d("short"),z:d("long"),ww:b({}),w:b({}),G:b(y("era",1)),GG:b(y("era",2)),GGG:b(y("era",3)),GGGG:b(y("era",4))},vt=new Map,yt=function(){function t(){}return t.format=function(t,e,n){return _(n,t,e)},t}(),gt=/^(\d+)?\.((\d+)(-(\d+))?)?$/,bt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return x(t,this._locale,e,ht.Decimal,n)},t}();bt.decorators=[{type:P.L,args:[{name:"number"}]}],bt.ctorParameters=function(){return[{type:void 0,decorators:[{type:P.t,args:[P.A]}]}]};var _t=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){return x(t,this._locale,e,ht.Percent,n)},t}();_t.decorators=[{type:P.L,args:[{name:"percent"}]}],_t.ctorParameters=function(){return[{type:void 0,decorators:[{type:P.t,args:[P.A]}]}]};var wt=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n,r,i){return void 0===n&&(n="USD"),void 0===r&&(r=!1),x(t,this._locale,e,ht.Currency,i,n,r)},t}();wt.decorators=[{type:P.L,args:[{name:"currency"}]}],wt.ctorParameters=function(){return[{type:void 0,decorators:[{type:P.t,args:[P.A]}]}]};var xt=/^(\d{4})-?(\d\d)-?(\d\d)(?:T(\d\d)(?::?(\d\d)(?::?(\d\d)(?:\.(\d+))?)?)?(Z|([+-])(\d\d):?(\d\d))?)?$/,Et=function(){function t(t){this._locale=t}return t.prototype.transform=function(e,n){void 0===n&&(n="mediumDate");var r;if(T(e)||e!==e)return null;if("string"==typeof e&&(e=e.trim()),M(e))r=e;else if(S(e))r=new Date(parseFloat(e));else if("string"==typeof e&&/^(\d{4}-\d{1,2}-\d{1,2})$/.test(e)){var i=e.split("-").map(function(t){return parseInt(t,10)}),o=i[0],s=i[1],a=i[2];r=new Date(o,s-1,a)}else r=new Date(e);if(!M(r)){var u=void 0;if("string"!=typeof e||!(u=e.match(xt)))throw c(t,e);r=C(u)}return yt.format(r,this._locale,t._ALIASES[n]||n)},t}();Et._ALIASES={medium:"yMMMdjms",short:"yMdjm",fullDate:"yMMMMEEEEd",longDate:"yMMMMd",mediumDate:"yMMMd",shortDate:"yMd",mediumTime:"jms",shortTime:"jm"},Et.decorators=[{type:P.L,args:[{name:"date",pure:!0}]}],Et.ctorParameters=function(){return[{type:void 0,decorators:[{type:P.t,args:[P.A]}]}]};var St=/#/g,Tt=function(){function t(t){this._localization=t}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||null===n)throw c(t,n);return n[o(e,Object.keys(n),this._localization)].replace(St,e.toString())},t}();Tt.decorators=[{type:P.L,args:[{name:"i18nPlural",pure:!0}]}],Tt.ctorParameters=function(){return[{type:F}]};var Mt=function(){function t(){}return t.prototype.transform=function(e,n){if(null==e)return"";if("object"!=typeof n||"string"!=typeof e)throw c(t,n);return n.hasOwnProperty(e)?n[e]:n.hasOwnProperty("other")?n.other:""},t}();Mt.decorators=[{type:P.L,args:[{name:"i18nSelect",pure:!0}]}],Mt.ctorParameters=function(){return[]};var Ct=function(){function t(){}return t.prototype.transform=function(t){return JSON.stringify(t,null,2)},t}();Ct.decorators=[{type:P.L,args:[{name:"json",pure:!1}]}],Ct.ctorParameters=function(){return[]};var Ot=function(){function t(){}return t.prototype.transform=function(e,n,r){if(null==e)return e;if(!this.supports(e))throw c(t,e);return e.slice(n,r)},t.prototype.supports=function(t){return"string"==typeof t||Array.isArray(t)},t}();Ot.decorators=[{type:P.L,args:[{name:"slice",pure:!1}]}],Ot.ctorParameters=function(){return[]};var At=[at,lt,ut,Ct,Ot,bt,_t,ct,wt,Et,Tt,Mt],Pt=function(){function t(){}return t}();Pt.decorators=[{type:P.B,args:[{declarations:[nt,At],exports:[nt,At],providers:[{provide:F,useClass:U}]}]}],Pt.ctorParameters=function(){return[]};var Rt=function(){function t(){}return t}();Rt.decorators=[{type:P.B,args:[{declarations:[],exports:[]}]}],Rt.ctorParameters=function(){return[]};var Lt=new P.v("DocumentToken"),Nt="browser";new P.Y("4.4.6")},qbt9:function(t,e,n){"use strict";function r(t,e){void 0===e&&(e=o.async);var n=s.isDate(t),r=n?+t-e.now():Math.abs(t);return function(t){return t.lift(new c(r,n,e,new u.TimeoutError))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("IhB/"),s=n("6jp4"),a=n("T14+"),u=n("0L2s");e.timeout=r;var c=function(){function t(t,e,n,r){this.waitFor=t,this.absoluteTimeout=e,this.scheduler
1=n,this.errorInstance=r}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},t}(),l=function(t){function e(e,n,r,i,o){t.call(this,e),this.absoluteTimeout=n,this.waitFor=r,this.scheduler=i,this.errorInstance=o,this.action=null,this.scheduleTimeout()}return i(e,t),e.dispatchTimeout=function(t){t.error(t.errorInstance)},e.prototype.scheduleTimeout=function(){var t=this.action;t?this.action=t.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(e.dispatchTimeout,this.waitFor,this))},e.prototype._next=function(e){this.absoluteTimeout||this.scheduleTimeout(),t.prototype._next.call(this,e)},e.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},e}(a.Subscriber)},qfkx:function(t,e,n){"use strict";function r(){return function(t){return o.multicast(new i.AsyncSubject)(t)}}var i=n("l6Wf"),o=n("P02W");e.publishLast=r},"qm+V":function(t,e,n){"use strict";var r=n("bKpL"),i=n("CE6k");r.Observable.prototype.share=i.share},"r+/7":function(t,e,n){"use strict";var r=n("bKpL"),i=n("THYR");r.Observable.prototype.every=i.every},r2Rd:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("Io40"),o=n("IqVs"),s=function(t){function e(e,n){t.call(this,e,n),this.scheduler=e,this.work=n}return r(e,t),e.prototype.requestAsyncId=function(e,n,r){return void 0===r&&(r=0),null!==r&&r>0?t.prototype.requestAsyncId.call(this,e,n,r):(e.actions.push(this),e.scheduled||(e.scheduled=o.AnimationFrame.requestAnimationFrame(e.flush.bind(e,null))))},e.prototype.recycleAsyncId=function(e,n,r){if(void 0===r&&(r=0),null!==r&&r>0||null===r&&this.delay>0)return t.prototype.recycleAsyncId.call(this,e,n,r);0===e.actions.length&&(o.AnimationFrame.cancelAnimationFrame(n),e.scheduled=void 0)},e}(i.AsyncAction);e.AnimationFrameAction=s},r6G9:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return 1===t.length&&a.isArray(t[0])&&(t=t[0]),function(e){return e.lift(new l(t))}}function i(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=null;return 1===t.length&&a.isArray(t[0])&&(t=t[0]),n=t.shift(),new s.FromObservable(n,null).lift(new l(t))}var o=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},s=n("OWbQ"),a=n("NSJx"),u=n("yW9Z"),c=n("ktfo");e.onErrorResumeNext=r,e.onErrorResumeNextStatic=i;var l=function(){function t(t){this.nextSources=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.nextSources))},t}(),h=function(t){function e(e,n){t.call(this,e),this.destination=e,this.nextSources=n}return o(e,t),e.prototype.notifyError=function(t,e){this.subscribeToNextSource()},e.prototype.notifyComplete=function(t){this.subscribeToNextSource()},e.prototype._error=function(t){this.subscribeToNextSource()},e.prototype._complete=function(){this.subscribeToNextSource()},e.prototype.subscribeToNextSource=function(){var t=this.nextSources.shift();t?this.add(c.subscribeToResult(this,t)):this.destination.complete()},e}(u.OuterSubscriber)},rAcl:function(t,e,n){"use strict";var r=n("Qv0T");e.pairs=r.PairsObservable.create},rDIt:function(t,e,n){"use strict";function r(t,e,n){return i.tap(t,e,n)(this)}var i=n("4HZJ");e._do=r},rOzH:function(t,e){function n(){this._events=this._events||{},this._maxListeners=this._maxListeners||void 0}function r(t){return"function"==typeof t}function i(t){return"number"==typeof t}function o(t){return"object"==typeof t&&null!==t}function s(t){return void 0===t}t.exports=n,n.EventEmitter=n,n.prototype._events=void 0,n.prototype._maxListeners=void 0,n.defaultMaxListeners=10,n.prototype.setMaxListeners=function(t){if(!i(t)||t<0||isNaN(t))throw TypeError("n must be a positive number");return this._maxListeners=t,this},n.prototype.emit=function(t){var e,n,i,a,u,c;if(this._events||(this._events={}),"error"===t&&(!this._events.error||o(this._events.error)&&!this._events.error.length)){if((e
1=arguments[1])instanceof Error)throw e;var l=new Error('Uncaught, unspecified "error" event. ('+e+")");throw l.context=e,l}if(n=this._events[t],s(n))return!1;if(r(n))switch(arguments.length){case 1:n.call(this);break;case 2:n.call(this,arguments[1]);break;case 3:n.call(this,arguments[1],arguments[2]);break;default:a=Array.prototype.slice.call(arguments,1),n.apply(this,a)}else if(o(n))for(a=Array.prototype.slice.call(arguments,1),c=n.slice(),i=c.length,u=0;u<i;u++)c[u].apply(this,a);return!0},n.prototype.addListener=function(t,e){var i;if(!r(e))throw TypeError("listener must be a function");return this._events||(this._events={}),this._events.newListener&&this.emit("newListener",t,r(e.listener)?e.listener:e),this._events[t]?o(this._events[t])?this._events[t].push(e):this._events[t]=[this._events[t],e]:this._events[t]=e,o(this._events[t])&&!this._events[t].warned&&(i=s(this._maxListeners)?n.defaultMaxListeners:this._maxListeners)&&i>0&&this._events[t].length>i&&(this._events[t].warned=!0,console.error("(node) warning: possible EventEmitter memory leak detected. %d listeners added. Use emitter.setMaxListeners() to increase limit.",this._events[t].length),"function"==typeof console.trace&&console.trace()),this},n.prototype.on=n.prototype.addListener,n.prototype.once=function(t,e){function n(){this.removeListener(t,n),i||(i=!0,e.apply(this,arguments))}if(!r(e))throw TypeError("listener must be a function");var i=!1;return n.listener=e,this.on(t,n),this},n.prototype.removeListener=function(t,e){var n,i,s,a;if(!r(e))throw TypeError("listener must be a function");if(!this._events||!this._events[t])return this;if(n=this._events[t],s=n.length,i=-1,n===e||r(n.listener)&&n.listener===e)delete this._events[t],this._events.removeListener&&this.emit("removeListener",t,e);else if(o(n)){for(a=s;a-- >0;)if(n[a]===e||n[a].listener&&n[a].listener===e){i=a;break}if(i<0)return this;1===n.length?(n.length=0,delete this._events[t]):n.splice(i,1),this._events.removeListener&&this.emit("removeListener",t,e)}return this},n.prototype.removeAllListeners=function(t){var e,n;if(!this._events)return this;if(!this._events.removeListener)return 0===arguments.length?this._events={}:this._events[t]&&delete this._events[t],this;if(0===arguments.length){for(e in this._events)"removeListener"!==e&&this.removeAllListeners(e);return this.removeAllListeners("removeListener"),this._events={},this}if(n=this._events[t],r(n))this.removeListener(t,n);else if(n)for(;n.length;)this.removeListener(t,n[n.length-1]);return delete this._events[t],this},n.prototype.listeners=function(t){return this._events&&this._events[t]?r(this._events[t])?[this._events[t]]:this._events[t].slice():[]},n.prototype.listenerCount=function(t){if(this._events){var e=this._events[t];if(r(e))return 1;if(e)return e.length}return 0},n.listenerCount=function(t,e){return t.listenerCount(e)}},rf3q:function(t,e,n){"use strict";function r(t,e,n){if(t){if(t instanceof i.Subscriber)return t;if(t[o.rxSubscriber])return t[o.rxSubscriber]()}return t||e||n?new i.Subscriber(t,e,n):new i.Subscriber(s.empty)}var i=n("T14+"),o=n("dkwD"),s=n("LiYJ");e.toSubscriber=r},rhfi:function(t,e,n){"use strict";function r(){return i.switchMap(o.identity)}var i=n("TupL"),o=n("Yuqz");e.switchAll=r},rlar:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("T14+"),s=n("xFbG"),a=n("Lhvy"),u=n("g0Kb"),c=n("dkwD"),l=function(t){function e(e){t.call(this,e),this.destination=e}return r(e,t),e}(o.Subscriber);e.SubjectSubscriber=l;var h=function(t){function e(){t.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return r(e,t),e.prototype[c.rxSubscriber]=function(){return new l(this)},e.prototype.lift=function(t){var e=new p(this,this);return e.operator=t,e},e.prototype.next=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;if(!this.isStopped)for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].next(t)},e.prototype.error=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=t,this.isStopped=!0;for(var e=this.observers,n=e.length,r=e.slice(),i=0;i<n;i++)r[i].error(t);this.observers.length=0},e.prototype.complete=function(){if(this.closed)throw new a.ObjectUnsubscribedError;this.isStopped=!0;for(var t=this.observers,e=t.length,n=t.slice(),r=0;r<e;r++)n[r].complete();this.observers.length=0},e.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},e.prototype._trySubscribe=function(e){if(this.closed)throw new a.ObjectUnsubscribedError;return t.prototype._trySubscribe.call(this,e)},e.prototype._subscribe=function(t){if(this.closed)throw new a.ObjectUnsubscribedError;return this.hasError?(t.error(this.thrownError),s.Subscription.EMPTY):this.isStopped?(t.complete(),s.Subscription.EMPTY):(this.observers.push(t),new u.SubjectSubscription(this,t))},e.prototype.asObservable=function(){var t=new i.Observable;return t.source=this,t},e.create=function(t,e){return new p(t,e)},e}(i.Observable);e.Subject=h;var p=function(t){function e(e,n){t.call(this),this.destination=e,this.source=n}return r(e,t),e.prototype.next=function(t){var e=this.destination;e&&e.next&&e.next(t)},e.prototype.error=function(t){var e=this.destination;e&&e.error&&this.destination.error(t)},e.prototype.complete=function(){var t=this.destination;t&&t.complete&&this.destination.complete()},e.prototype._subscribe=function(t){return this.source?this.source.subscribe(t):s.Subscription.EMPTY},e}(h);e.AnonymousSubject=p},rp90:function(t,e,n){"use strict";var r=n("bKpL"),i=n("IOeT");r.Observable.prototype.combineAll=i.combineAll},rr9E:function(t,e,n){t.exports=n("Osec").PassThrough},ruZE:function(t,e,n){"use strict";var r=n("r2Rd"),i=n("7Obz");e.animationFrame=new i.AnimationFrameScheduler(r.AnimationFrameAction)},s6AU:function(t,e,n){"use strict";function r(t){return i.takeWhile(t)(this)}var i=n("5x23");e.takeWhile=r},sLwK:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("EsGe"),o=n("bKpL"),s=n("IhB/"),a=n("MicL"),u=n("6jp4"),c=function(t){function e(e,n,r){void 0===e&&(e=0),t.call(this),this.period=-1,this.dueTime=0,i.isNumeric(n)?this.period=Number(n)<1&&1||Number(n):a.isScheduler(n)&&(r=n),a.isScheduler(r)||(r=s.async),this.scheduler
vendor: 9,098 bytes, line 1
1=r,this.dueTime=u.isDate(e)?+e-this.scheduler.now():e}return r(e,t),e.create=function(t,n,r){return void 0===t&&(t=0),new e(t,n,r)},e.dispatch=function(t){var e=t.index,n=t.period,r=t.subscriber,i=this;if(r.next(e),!r.closed){if(-1===n)return r.complete();t.index=e+1,i.schedule(t,n)}},e.prototype._subscribe=function(t){var n=this,r=n.period,i=n.dueTime;return n.scheduler.schedule(e.dispatch,i,{index:0,period:r,subscriber:t})},e}(o.Observable);e.TimerObservable=c},sSYo:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Fi2k");r.Observable.prototype.windowToggle=i.windowToggle},sZAi:function(t,e,n){"use strict";function r(t,e){return t.msg=I[e],e}function i(t){return(t<<1)-(t>4?9:0)}function o(t){for(var e=t.length;--e>=0;)t[e]=0}function s(t){var e=t.state,n=e.pending;n>t.avail_out&&(n=t.avail_out),0!==n&&(P.arraySet(t.output,e.pending_buf,e.pending_out,n,t.next_out),t.next_out+=n,e.pending_out+=n,t.total_out+=n,t.avail_out-=n,e.pending-=n,0===e.pending&&(e.pending_out=0))}function a(t,e){R._tr_flush_block(t,t.block_start>=0?t.block_start:-1,t.strstart-t.block_start,e),t.block_start=t.strstart,s(t.strm)}function u(t,e){t.pending_buf[t.pending++]=e}function c(t,e){t.pending_buf[t.pending++]=e>>>8&255,t.pending_buf[t.pending++]=255&e}function l(t,e,n,r){var i=t.avail_in;return i>r&&(i=r),0===i?0:(t.avail_in-=i,P.arraySet(e,t.input,t.next_in,i,n),1===t.state.wrap?t.adler=L(t.adler,e,i,n):2===t.state.wrap&&(t.adler=N(t.adler,e,i,n)),t.next_in+=i,t.total_in+=i,i)}function h(t,e){var n,r,i=t.max_chain_length,o=t.strstart,s=t.prev_length,a=t.nice_match,u=t.strstart>t.w_size-ct?t.strstart-(t.w_size-ct):0,c=t.window,l=t.w_mask,h=t.prev,p=t.strstart+ut,f=c[o+s-1],d=c[o+s];t.prev_length>=t.good_match&&(i>>=2),a>t.lookahead&&(a=t.lookahead);do{if(n=e,c[n+s]===d&&c[n+s-1]===f&&c[n]===c[o]&&c[++n]===c[o+1]){o+=2,n++;do{}while(c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&c[++o]===c[++n]&&o<p);if(r=ut-(p-o),o=p-ut,r>s){if(t.match_start=e,s=r,r>=a)break;f=c[o+s-1],d=c[o+s]}}}while((e=h[e&l])>u&&0!=--i);return s<=t.lookahead?s:t.lookahead}function p(t){var e,n,r,i,o,s=t.w_size;do{if(i=t.window_size-t.lookahead-t.strstart,t.strstart>=s+(s-ct)){P.arraySet(t.window,t.window,s,s,0),t.match_start-=s,t.strstart-=s,t.block_start-=s,n=t.hash_size,e=n;do{r=t.head[--e],t.head[e]=r>=s?r-s:0}while(--n);n=s,e=n;do{r=t.prev[--e],t.prev[e]=r>=s?r-s:0}while(--n);i+=s}if(0===t.strm.avail_in)break;if(n=l(t.strm,t.window,t.strstart+t.lookahead,i),t.lookahead+=n,t.lookahead+t.insert>=at)for(o=t.strstart-t.insert,t.ins_h=t.window[o],t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+1])&t.hash_mask;t.insert&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[o+at-1])&t.hash_mask,t.prev[o&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=o,o++,t.insert--,!(t.lookahead+t.insert<at)););}while(t.lookahead<ct&&0!==t.strm.avail_in)}function f(t,e){var n=65535;for(n>t.pending_buf_size-5&&(n=t.pending_buf_size-5);;){if(t.lookahead<=1){if(p(t),0===t.lookahead&&e===k)return gt;if(0===t.lookahead)break}t.strstart+=t.lookahead,t.lookahead=0;var r=t.block_start+n;if((0===t.strstart||t.strstart>=r)&&(t.lookahead=t.strstart-r,t.strstart=r,a(t,!1),0===t.strm.avail_out))return gt;if(t.strstart-t.block_start>=t.w_size-ct&&(a(t,!1),0===t.strm.avail_out))return gt}return t.insert=0,e===F?(a(t,!0),0===t.strm.avail_out?_t:wt):(t.strstart>t.block_start&&(a(t,!1),t.strm.avail_out),gt)}function d(t,e){for(var n,r;;){if(t.lookahead<ct){if(p(t),t.lookahead<ct&&e===k)return gt;if(0===t.lookahead)break}if(n=0,t.lookahead>=at&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+at-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),0!==n&&t.strstart-n<=t.w_size-ct&&(t.match_length=h(t,n)),t.match_length>=at)if(r=R._tr_tally(t,t.strstart-t.match_start,t.match_length-at),t.lookahead-=t.match_length,t.match_length<=t.max_lazy_match&&t.lookahead>=at){t.match_length--;do{t.strstart++,t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+at-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart}while(0!=--t.match_length);t.strstart++}else t.strstart+=t.match_length,t.match_length=0,t.ins_h=t.window[t.strstart],t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+1])&t.hash_mask;else r=R._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++;if(r&&(a(t,!1),0===t.strm.avail_out))return gt}return t.insert=t.strstart<at-1?t.strstart:at-1,e===F?(a(t,!0),0===t.strm.avail_out?_t:wt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?gt:bt}function m(t,e){for(var n,r,i;;){if(t.lookahead<ct){if(p(t),t.lookahead<ct&&e===k)return gt;if(0===t.lookahead)break}if(n=0,t.lookahead>=at&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+at-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart),t.prev_length=t.match_length,t.prev_match=t.match_start,t.match_length=at-1,0!==n&&t.prev_length<t.max_lazy_match&&t.strstart-n<=t.w_size-ct&&(t.match_length=h(t,n),t.match_length<=5&&(t.strategy===q||t.match_length===at&&t.strstart-t.match_start>4096)&&(t.match_length=at-1)),t.prev_length>=at&&t.match_length<=t.prev_length){i=t.strstart+t.lookahead-at,r=R._tr_tally(t,t.strstart-1-t.prev_match,t.prev_length-at),t.lookahead-=t.prev_length-1,t.prev_length-=2;do{++t.strstart<=i&&(t.ins_h=(t.ins_h<<t.hash_shift^t.window[t.strstart+at-1])&t.hash_mask,n=t.prev[t.strstart&t.w_mask]=t.head[t.ins_h],t.head[t.ins_h]=t.strstart)}while(0!=--t.prev_length);if(t.match_available=0,t.match_length=at-1,t.strstart++,r&&(a(t,!1),0===t.strm.avail_out))return gt}else if(t.match_available){if(r=R._tr_tally(t,0,t.window[t.strstart-1]),r&&a(t,!1),t.strstart++,t.lookahead--,0===t.strm.avail_out)return gt}else t.match_available=1,t.strstart++,t.lookahead--}return t.match_available&&(r=R._tr_tally(t,0,t.window[t.strstart-1]),t.match_available=0),t.insert=t.strstart<at-1?t.strstart:at-1,e===F?(a(t,!0),0===t.strm.avail_out?_t:wt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?gt:bt}function v(t,e){for(var n,r,i,o,s=t.window;;){if(t.lookahead<=ut){if(p(t),t.lookahead<=ut&&e===k)return gt;if(0===t.lookahead)break}if(t.match_length=0,t.lookahead>=at&&t.strstart>0&&(i=t.strstart-1,(r=s[i])===s[++i]&&r===s[++i]&&r===s[++i])){o=t.strstart+ut;do{}while(r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&r===s[++i]&&i<o);t.match_length=ut-(o-i),t.match_length>t.lookahead&&(t.match_length=t.lookahead)}if(t.match_length>=at?(n=R._tr_tally(t,1,t.match_length-at),t.lookahead-=t.match_length,t.strstart+=t.match_length,t.match_length=0):(n=R._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++),n&&(a(t,!1),0===t.strm.avail_out))return gt}return t.insert=0,e===F?(a(t,!0),0===t.strm.avail_out?_t:wt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?gt:bt}function y(t,e){for(var n;;){if(0===t.lookahead&&(p(t),0===t.lookahead)){if(e===k)return gt;break}if(t.match_length=0,n=R._tr_tally(t,0,t.window[t.strstart]),t.lookahead--,t.strstart++,n&&(a(t,!1),0===t.strm.avail_out))return gt}return t.insert=0,e===F?(a(t,!0),0===t.strm.avail_out?_t:wt):t.last_lit&&(a(t,!1),0===t.strm.avail_out)?gt:bt}function g(t,e,n,r,i){this.good_length=t,this.max_lazy=e,this.nice_length=n,this.max_chain=r,this.func=i}function b(t){t.window_size=2*t.w_size,o(t.head),t.max_lazy_match=A[t.level].max_lazy,t.good_match=A[t.level].good_length,t.nice_match=A[t.level].nice_length,t.max_chain_length=A[t.level].max_chain,t.strstart=0,t.block_start=0,t.lookahead=0,t.insert=0,t.match_length=t.prev_length=at-1,t.match_available=0,t.ins_h=0}function _(){this.strm=null,this.status=0,this.pending_buf=null,this.pending_buf_size=0,this.pending_out=0,this.pending=0,this.wrap=0,this.gzhead=null,this.gzindex=0,this.method=Q,this.last_flush=-1,this.w_size=0,this.w_bits=0,this.w_mask=0,this.window=null,this.window_size=0,this.prev=null,this.head=null,this.ins_h=0,this.hash_size=0,this.hash_bits=0,this.hash_mask=0,this.hash_shift=0,this.block_start=0,this.match_length=0,this.prev_match=0,this.match_available=0,this.strstart=0,this.match_start=0,this.lookahead=0,this.prev_length=0,this.max_chain_length=0,this.max_lazy_match=0,this.level=0,this.strategy=0,this.good_match=0,this.nice_match=0,this.dyn_ltree=new P.Buf16(2*ot),this.dyn_dtree=new P.Buf16(2*(2*rt+1)),this.bl_tree=new P.Buf16(2*(2*it+1)),o(this.dyn_ltree),o(this.dyn_dtree),o(this.bl_tree),this.l_desc=null,this.d_desc=null,this.bl_desc=null,this.bl_count=new P.Buf16(st+1),this.heap=new P.Buf16(2*nt+1),o(this.heap),this.heap_len=0,this.heap_max=0,this.depth=new P.Buf16(2*nt+1),o(this.depth),this.l_buf=0,this.lit_bufsize=0,this.last_lit=0,this.d_buf=0,this.opt_len=0,this.static_len=0,this.matches=0,this.insert=0,this.bi_buf=0,this.bi_valid=0}function w(t){var e;return t&&t.state?(t.total_in=t.total_out=0,t.data_type=J,e=t.state,e.pending=0,e.pending_out=0,e.wrap<0&&(e.wrap=-e.wrap),e.status=e.wrap?ht:vt,t.adler=2===e.wrap?0:1,e.last_flush=k,R._tr_init(e),B):r(t,V)}function x(t){var e=w(t);return e===B&&b(t.state),e}function E(t,e){return t&&t.state?2!==t.state.wrap?V:(t.state.gzhead=e,B):V}
vendor: 4,175 bytes, line 1
1function S(t,e,n,i,o,s){if(!t)return V;var a=1;if(e===W&&(e=6),i<0?(a=0,i=-i):i>15&&(a=2,i-=16),o<1||o>$||n!==Q||i<8||i>15||e<0||e>9||s<0||s>K)return r(t,V);8===i&&(i=9);var u=new _;return t.state=u,u.strm=t,u.wrap=a,u.gzhead=null,u.w_bits=i,u.w_size=1<<u.w_bits,u.w_mask=u.w_size-1,u.hash_bits=o+7,u.hash_size=1<<u.hash_bits,u.hash_mask=u.hash_size-1,u.hash_shift=~~((u.hash_bits+at-1)/at),u.window=new P.Buf8(2*u.w_size),u.head=new P.Buf16(u.hash_size),u.prev=new P.Buf16(u.w_size),u.lit_bufsize=1<<o+6,u.pending_buf_size=4*u.lit_bufsize,u.pending_buf=new P.Buf8(u.pending_buf_size),u.d_buf=1*u.lit_bufsize,u.l_buf=3*u.lit_bufsize,u.level=e,u.strategy=s,u.method=n,x(t)}function T(t,e){return S(t,e,Q,tt,et,Y)}function M(t,e){var n,a,l,h;if(!t||!t.state||e>U||e<0)return t?r(t,V):V;if(a=t.state,!t.output||!t.input&&0!==t.avail_in||a.status===yt&&e!==F)return r(t,0===t.avail_out?G:V);if(a.strm=t,n=a.last_flush,a.last_flush=e,a.status===ht)if(2===a.wrap)t.adler=0,u(a,31),u(a,139),u(a,8),a.gzhead?(u(a,(a.gzhead.text?1:0)+(a.gzhead.hcrc?2:0)+(a.gzhead.extra?4:0)+(a.gzhead.name?8:0)+(a.gzhead.comment?16:0)),u(a,255&a.gzhead.time),u(a,a.gzhead.time>>8&255),u(a,a.gzhead.time>>16&255),u(a,a.gzhead.time>>24&255),u(a,9===a.level?2:a.strategy>=Z||a.level<2?4:0),u(a,255&a.gzhead.os),a.gzhead.extra&&a.gzhead.extra.length&&(u(a,255&a.gzhead.extra.length),u(a,a.gzhead.extra.length>>8&255)),a.gzhead.hcrc&&(t.adler=N(t.adler,a.pending_buf,a.pending,0)),a.gzindex=0,a.status=pt):(u(a,0),u(a,0),u(a,0),u(a,0),u(a,0),u(a,9===a.level?2:a.strategy>=Z||a.level<2?4:0),u(a,xt),a.status=vt);else{var p=Q+(a.w_bits-8<<4)<<8,f=-1;f=a.strategy>=Z||a.level<2?0:a.level<6?1:6===a.level?2:3,p|=f<<6,0!==a.strstart&&(p|=lt),p+=31-p%31,a.status=vt,c(a,p),0!==a.strstart&&(c(a,t.adler>>>16),c(a,65535&t.adler)),t.adler=1}if(a.status===pt)if(a.gzhead.extra){for(l=a.pending;a.gzindex<(65535&a.gzhead.extra.length)&&(a.pending!==a.pending_buf_size||(a.gzhead.hcrc&&a.pending>l&&(t.adler=N(t.adler,a.pending_buf,a.pending-l,l)),s(t),l=a.pending,a.pending!==a.pending_buf_size));)u(a,255&a.gzhead.extra[a.gzindex]),a.gzindex++;a.gzhead.hcrc&&a.pending>l&&(t.adler=N(t.adler,a.pending_buf,a.pending-l,l)),a.gzindex===a.gzhead.extra.length&&(a.gzindex=0,a.status=ft)}else a.status=ft;if(a.status===ft)if(a.gzhead.name){l=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>l&&(t.adler=N(t.adler,a.pending_buf,a.pending-l,l)),s(t),l=a.pending,a.pending===a.pending_buf_size)){h=1;break}h=a.gzindex<a.gzhead.name.length?255&a.gzhead.name.charCodeAt(a.gzindex++):0,u(a,h)}while(0!==h);a.gzhead.hcrc&&a.pending>l&&(t.adler=N(t.adler,a.pending_buf,a.pending-l,l)),0===h&&(a.gzindex=0,a.status=dt)}else a.status=dt;if(a.status===dt)if(a.gzhead.comment){l=a.pending;do{if(a.pending===a.pending_buf_size&&(a.gzhead.hcrc&&a.pending>l&&(t.adler=N(t.adler,a.pending_buf,a.pending-l,l)),s(t),l=a.pending,a.pending===a.pending_buf_size)){h=1;break}h=a.gzindex<a.gzhead.comment.length?255&a.gzhead.comment.charCodeAt(a.gzindex++):0,u(a,h)}while(0!==h);a.gzhead.hcrc&&a.pending>l&&(t.adler=N(t.adler,a.pending_buf,a.pending-l,l)),0===h&&(a.status=mt)}else a.status=mt;if(a.status===mt&&(a.gzhead.hcrc?(a.pending+2>a.pending_buf_size&&s(t),a.pending+2<=a.pending_buf_size&&(u(a,255&t.adler),u(a,t.adler>>8&255),t.adler=0,a.status=vt)):a.status=vt),0!==a.pending){if(s(t),0===t.avail_out)return a.last_flush=-1,B}else if(0===t.avail_in&&i(e)<=i(n)&&e!==F)return r(t,G);if(a.status===yt&&0!==t.avail_in)return r(t,G);if(0!==t.avail_in||0!==a.lookahead||e!==k&&a.status!==yt){var d=a.strategy===Z?y(a,e):a.strategy===X?v(a,e):A[a.level].func(a,e);if(d!==_t&&d!==wt||(a.status=yt),d===gt||d===_t)return 0===t.avail_out&&(a.last_flush=-1),B;if(d===bt&&(e===j?R._tr_align(a):e!==U&&(R._tr_stored_block(a,0,0,!1),e===D&&(o(a.head),0===a.lookahead&&(a.strstart=0,a.block_start=0,a.insert=0))),s(t),0===t.avail_out))return a.last_flush=-1,B}return e!==F?B:a.wrap<=0?z:(2===a.wrap?(u(a,255&t.adler),u(a,t.adler>>8&255),u(a,t.adler>>16&255),u(a,t.adler>>24&255),u(a,255&t.total_in),u(a,t.total_in>>8&255),u(a,t.total_in>>16&255),u(a,t.total_in>>24&255)):(c(a,t.adler>>>16),c(a,65535&t.adler)),s(t),a.wrap>
10&&(a.wrap=-a.wrap),0!==a.pending?B:z)}function C(t){var e;return t&&t.state?(e=t.state.status)!==ht&&e!==pt&&e!==ft&&e!==dt&&e!==mt&&e!==vt&&e!==yt?r(t,V):(t.state=null,e===vt?r(t,H):B):V}function O(t,e){var n,r,i,s,a,u,c,l,h=e.length;if(!t||!t.state)return V;if(n=t.state,2===(s=n.wrap)||1===s&&n.status!==ht||n.lookahead)return V;for(1===s&&(t.adler=L(t.adler,e,h,0)),n.wrap=0,h>=n.w_size&&(0===s&&(o(n.head),n.strstart=0,n.block_start=0,n.insert=0),l=new P.Buf8(n.w_size),P.arraySet(l,e,h-n.w_size,n.w_size,0),e=l,h=n.w_size),a=t.avail_in,u=t.next_in,c=t.input,t.avail_in=h,t.next_in=0,t.input=e,p(n);n.lookahead>=at;){r=n.strstart,i=n.lookahead-(at-1);do{n.ins_h=(n.ins_h<<n.hash_shift^n.window[r+at-1])&n.hash_mask,n.prev[r&n.w_mask]=n.head[n.ins_h],n.head[n.ins_h]=r,r++}while(--i);n.strstart=r,n.lookahead=at-1,p(n)}return n.strstart+=n.lookahead,n.block_start=n.strstart,n.insert=n.lookahead,n.lookahead=0,n.match_length=n.prev_length=at-1,n.match_available=0,t.next_in=u,t.input=c,t.avail_in=a,n.wrap=s,B}var A,P=n("ZN67"),R=n("8kWd"),L=n("e/xH"),N=n("f8cP"),I=n("6Pt6"),k=0,j=1,D=3,F=4,U=5,B=0,z=1,V=-2,H=-3,G=-5,W=-1,q=1,Z=2,X=3,K=4,Y=0,J=2,Q=8,$=9,tt=15,et=8,nt=286,rt=30,it=19,ot=2*nt+1,st=15,at=3,ut=258,ct=ut+at+1,lt=32,ht=42,pt=69,ft=73,dt=91,mt=103,vt=113,yt=666,gt=1,bt=2,_t=3,wt=4,xt=3;A=[new g(0,0,0,0,f),new g(4,4,8,4,d),new g(4,5,16,8,d),new g(4,6,32,32,d),new g(4,4,16,16,m),new g(8,16,32,32,m),new g(8,16,128,128,m),new g(8,32,128,256,m),new g(32,128,258,1024,m),new g(32,258,258,4096,m)],e.deflateInit=T,e.deflateInit2=S,e.deflateReset=x,e.deflateResetKeep=w,e.deflateSetHeader=E,e.deflate=M,e.deflateEnd=C,e.deflateSetDictionary=O,e.deflateInfo="pako deflate (from Nodeca project)"},saEi:function(t,e,n){"use strict";function r(t){return i.publishBehavior(t)(this)}var i=n("ASfG");e.publishBehavior=r},slZm:function(t,e,n){"use strict";var r=n("fcnB");e.empty=r.EmptyObservable.create},srZQ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("RvTY");r.Observable.prototype.flatMapTo=i.mergeMapTo,r.Observable.prototype.mergeMapTo=i.mergeMapTo},svCP:function(t,e,n){"use strict";var r=n("bKpL"),i=n("tl8U");r.Observable.prototype.retryWhen=i.retryWhen},t8nJ:function(t,e,n){"use strict";var r=n("bKpL"),i=n("8pdA");r.Observable.prototype.bufferTime=i.bufferTime},t9cH:function(t,e,n){"use strict";function r(t,e,n){return void 0===n&&(n=Number.POSITIVE_INFINITY),function(r){return r.lift(new c(t,e,n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("RdI5"),s=n("XRvs"),a=n("ktfo"),u=n("yW9Z");e.mergeScan=r;var c=function(){function t(t,e,n){this.accumulator=t,this.seed=e,this.concurrent=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.accumulator,this.seed,this.concurrent))},t}();e.MergeScanOperator=c;var l=function(t){function e(e,n,r,i){t.call(this,e),this.accumulator=n,this.acc=r,this.concurrent=i,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return i(e,t),e.prototype._next=function(t){if(this.active<this.concurrent){var e=this.index++,n=o.tryCatch(this.accumulator)(this.acc,t),r=this.destination;n===s.errorObject?r.error(s.errorObject.e):(this.active++,this._innerSub(n,t,e))}else this.buffer.push(t)},e.prototype._innerSub=function(t,e,n){this.add(a.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e.prototype.notifyNext=function(t,e,n,r,i){var o=this.destination;this.acc=e,this.hasValue=!0,o.next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e.length>0?this._next(e.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},e}(u.OuterSubscriber);e.MergeScanSubscriber=l},tAjV:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new c(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),u=n("ktfo");e.audit=r;var c=function(){function t(t){this.durationSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.durationSelector))},t}(),l=function(t){function e(e,n){t.call(this,e),this.durationSelector=n,this.hasValue=!1}return i(e,t),e.prototype._next=function(t){if(this.value=t,this.hasValue=!0,!this.throttled){var e=o.tryCatch(this.durationSelector)(t);if(e===s.errorObject)this.destination.error(s.errorObject.e);else{var n=u.subscribeToResult(this,e);n.closed?this.clearThrottle():this.add(this.throttled=n)}}},e.prototype.clearThrottle=function(){var t=this,e=t.value,n=t.hasValue,r=t.throttled;r&&(this.remove(r),this.throttled=null,r.unsubscribe()),n&&(this.value=null,this.hasValue=!1,this.destination.next(e))},e.prototype.notifyNext=function(t,e,n,r){this.clearThrottle()},e.prototype.notifyComplete=function(){this.clearThrottle()},e}(a.OuterSubscriber)},tBQh:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=i.async),o.delay(t,e)(this)}var i=n("IhB/"),o=n("EUVd");e.delay=r},tcot:function(t,e,n){"use strict";var r=n("bKpL"),i=n("F/7+");r.Observable.zip=i.zip},tl8U:function(t,e,n){"use strict";function r(t){return i.retryWhen(t)(this)}var i=n("qanz");e.retryWhen=r},tpuU:function(t,e,n){"use strict";function r(t){return i.zipAll(t)(this)}var i=n("IkMW");e.zipAll=r},uGEk:function(t,e,n){"use strict";var r=n("bKpL"),i=n("2UX5");r.Observable.prototype.timeout=i.timeout},"uT+d":function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=function(t){function e(){var e=t.call(this,"argument out of range");this.name=e.name="ArgumentOutOfRangeError",this.stack=e.stack,this.message=e.message}return r(e,t),e}(Error);e.ArgumentOutOfRangeError=i},uYJe:function(t,e,n){"use strict";function r(t){return i.finalize(t)(this)}var i=n("FTnw");e._finally=r},ub06:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ViUi");r.Observable.prototype.merge=i.merge},ueUM:function(t,e,n){"use strict";function r(t){return i.catchError(t)(this)}var i=n("g1RG");e._catch=r},v0OU:function(t,e,n){"use strict";(function(t){function r(){return o.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function i(t,e){if(r()<e)throw new RangeError("Invalid typed array length");return o.TYPED_ARRAY_SUPPORT?(t=new Uint8Array(e),t.__proto__=o.prototype):(null===t&&(t=new o(e)),t.length=e),t}function o(t,e,n){if(!(o.TYPED_ARRAY_SUPPORT||this instanceof o))return new o(t,e,n);if("number"==typeof t){if("string"==typeof e)throw new Error("If encoding is specified then the first argument must be a string");return c(this,t)}return s(this,t,e,n)}function s(t,e,n,r){if("number"==typeof e)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&e instanceof ArrayBuffer?p(t,e,n,r):"string"==typeof e?l(t,e,n):f(t,e)}function a(t){if("number"!=typeof t)throw new TypeError('"size" argument must be a number');if(t<0)throw new RangeError('"size" argument must not be negative')}function u(t,e,n,r){return a(e),e<=0?i(t,e):void 0!==n?"string"==typeof r?i(t,e).fill(n,r):i(t,e).fill(n):i(t,e)}function c(t,e){if(a(e),t=i(t,e<0?0:0|d(e)),!o.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)t[n]=0;return t}function l(t,e,n){if("string"==typeof n&&""!==n||(n="utf8"),!o.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var r=0|v(e,n);t=i(t,r);
vendor: 15,101 bytes, line 1
1var s=t.write(e,n);return s!==r&&(t=t.slice(0,s)),t}function h(t,e){var n=e.length<0?0:0|d(e.length);t=i(t,n);for(var r=0;r<n;r+=1)t[r]=255&e[r];return t}function p(t,e,n,r){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(r||0))throw new RangeError("'length' is out of bounds");return e=void 0===n&&void 0===r?new Uint8Array(e):void 0===r?new Uint8Array(e,n):new Uint8Array(e,n,r),o.TYPED_ARRAY_SUPPORT?(t=e,t.__proto__=o.prototype):t=h(t,e),t}function f(t,e){if(o.isBuffer(e)){var n=0|d(e.length);return t=i(t,n),0===t.length?t:(e.copy(t,0,0,n),t)}if(e){if("undefined"!=typeof ArrayBuffer&&e.buffer instanceof ArrayBuffer||"length"in e)return"number"!=typeof e.length||K(e.length)?i(t,0):h(t,e);if("Buffer"===e.type&&Q(e.data))return h(t,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function d(t){if(t>=r())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+r().toString(16)+" bytes");return 0|t}function m(t){return+t!=t&&(t=0),o.alloc(+t)}function v(t,e){if(o.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var r=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return G(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return Z(t).length;default:if(r)return G(t).length;e=(""+e).toLowerCase(),r=!0}}function y(t,e,n){var r=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if(n>>>=0,e>>>=0,n<=e)return"";for(t||(t="utf8");;)switch(t){case"hex":return L(this,e,n);case"utf8":case"utf-8":return O(this,e,n);case"ascii":return P(this,e,n);case"latin1":case"binary":return R(this,e,n);case"base64":return C(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return N(this,e,n);default:if(r)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),r=!0}}function g(t,e,n){var r=t[e];t[e]=t[n],t[n]=r}function b(t,e,n,r,i){if(0===t.length)return-1;if("string"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=i?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(i)return-1;n=t.length-1}else if(n<0){if(!i)return-1;n=0}if("string"==typeof e&&(e=o.from(e,r)),o.isBuffer(e))return 0===e.length?-1:_(t,e,n,r,i);if("number"==typeof e)return e&=255,o.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?i?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):_(t,[e],n,r,i);throw new TypeError("val must be string, number or Buffer")}function _(t,e,n,r,i){function o(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}var s=1,a=t.length,u=e.length;if(void 0!==r&&("ucs2"===(r=String(r).toLowerCase())||"ucs-2"===r||"utf16le"===r||"utf-16le"===r)){if(t.length<2||e.length<2)return-1;s=2,a/=2,u/=2,n/=2}var c;if(i){var l=-1;for(c=n;c<a;c++)if(o(t,c)===o(e,-1===l?0:c-l)){if(-1===l&&(l=c),c-l+1===u)return l*s}else-1!==l&&(c-=c-l),l=-1}else for(n+u>a&&(n=a-u),c=n;c>=0;c--){for(var h=!0,p=0;p<u;p++)if(o(t,c+p)!==o(e,p)){h=!1;break}if(h)return c}return-1}function w(t,e,n,r){n=Number(n)||0;var i=t.length-n;r?(r=Number(r))>i&&(r=i):r=i;var o=e.length;if(o%2!=0)throw new TypeError("Invalid hex string");r>o/2&&(r=o/2);for(var s=0;s<r;++s){var a=parseInt(e.substr(2*s,2),16);if(isNaN(a))return s;t[n+s]=a}return s}function x(t,e,n,r){return X(G(e,t.length-n),t,n,r)}function E(t,e,n,r){return X(W(e),t,n,r)}function S(t,e,n,r){return E(t,e,n,r)}function T(t,e,n,r){return X(Z(e),t,n,r)}function M(t,e,n,r){return X(q(e,t.length-n),t,n,r)}function C(t,e,n){return 0===e&&n===t.length?Y.fromByteArray(t):Y.fromByteArray(t.slice(e,n))}function O(t,e,n){n=Math.min(t.length,n);for(var r=[],i=e;i<n;){var o=t[i],s=null,a=o>239?4:o>223?3:o>191?2:1;if(i+a<=n){var u,c,l,h;switch(a){case 1:o<128&&(s=o);break;case 2:u=t[i+1],128==(192&u)&&(h=(31&o)<<6|63&u)>127&&(s=h);break;case 3:u=t[i+1],c=t[i+2],128==(192&u)&&128==(192&c)&&(h=(15&o)<<12|(63&u)<<6|63&c)>2047&&(h<55296||h>57343)&&(s=h);break;case 4:u=t[i+1],c=t[i+2],l=t[i+3],128==(192&u)&&128==(192&c)&&128==(192&l)&&(h=(15&o)<<18|(63&u)<<12|(63&c)<<6|63&l)>65535&&h<1114112&&(s=h)}}null===s?(s=65533,a=1):s>65535&&(s-=65536,r.push(s>>>10&1023|55296),s=56320|1023&s),r.push(s),i+=a}return A(r)}function A(t){var e=t.length;if(e<=$)return String.fromCharCode.apply(String,t);for(var n="",r=0;r<e;)n+=String.fromCharCode.apply(String,t.slice(r,r+=$));return n}function P(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(127&t[i]);return r}function R(t,e,n){var r="";n=Math.min(t.length,n);for(var i=e;i<n;++i)r+=String.fromCharCode(t[i]);return r}function L(t,e,n){var r=t.length;(!e||e<0)&&(e=0),(!n||n<0||n>r)&&(n=r);for(var i="",o=e;o<n;++o)i+=H(t[o]);return i}function N(t,e,n){for(var r=t.slice(e,n),i="",o=0;o<r.length;o+=2)i+=String.fromCharCode(r[o]+256*r[o+1]);return i}function I(t,e,n){if(t%1!=0||t<0)throw new RangeError("offset is not uint");if(t+e>n)throw new RangeError("Trying to access beyond buffer length")}function k(t,e,n,r,i,s){if(!o.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>i||e<s)throw new RangeError('"value" argument is out of bounds');if(n+r>t.length)throw new RangeError("Index out of range")}function j(t,e,n,r){e<0&&(e=65535+e+1);for(var i=0,o=Math.min(t.length-n,2);i<o;++i)t[n+i]=(e&255<<8*(r?i:1-i))>>>8*(r?i:1-i)}function D(t,e,n,r){e<0&&(e=4294967295+e+1);for(var i=0,o=Math.min(t.length-n,4);i<o;++i)t[n+i]=e>>>8*(r?i:3-i)&255}function F(t,e,n,r,i,o){if(n+r>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function U(t,e,n,r,i){return i||F(t,e,n,4,3.4028234663852886e38,-3.4028234663852886e38),J.write(t,e,n,r,23,4),n+4}function B(t,e,n,r,i){return i||F(t,e,n,8,1.7976931348623157e308,-1.7976931348623157e308),J.write(t,e,n,r,52,8),n+8}function z(t){if(t=V(t).replace(tt,""),t.length<2)return"";for(;t.length%4!=0;)t+="=";return t}function V(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}function H(t){return t<16?"0"+t.toString(16):t.toString(16)}function G(t,e){e=e||1/0;for(var n,r=t.length,i=null,o=[],s=0;s<r;++s){if((n=t.charCodeAt(s))>55295&&n<57344){if(!i){if(n>56319){(e-=3)>-1&&o.push(239,191,189);continue}if(s+1===r){(e-=3)>-1&&o.push(239,191,189);continue}i=n;continue}if(n<56320){(e-=3)>-1&&o.push(239,191,189),i=n;continue}n=65536+(i-55296<<10|n-56320)}else i&&(e-=3)>-1&&o.push(239,191,189);if(i=null,n<128){if((e-=1)<0)break;o.push(n)}else if(n<2048){if((e-=2)<0)break;o.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;o.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;o.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return o}function W(t){for(var e=[],n=0;n<t.length;++n)e.push(255&t.charCodeAt(n));return e}function q(t,e){for(var n,r,i,o=[],s=0;s<t.length&&!((e-=2)<0);++s)n=t.charCodeAt(s),r=n>>8,i=n%256,o.push(i),o.push(r);return o}function Z(t){return Y.toByteArray(z(t))}function X(t,e,n,r){for(var i=0;i<r&&!(i+n>=e.length||i>=t.length);++i)e[i+n]=t[i];return i}function K(t){return t!==t}var Y=n("jxpy"),J=n("7WRt"),Q=n("CDvF");e.Buffer=o,e.SlowBuffer=m,e.INSPECT_MAX_BYTES=50,o.TYPED_ARRAY_SUPPORT=void 0!==t.TYPED_ARRAY_SUPPORT?t.TYPED_ARRAY_SUPPORT:function(){try{var t=new Uint8Array(1);return t.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===t.foo()&&"function"==typeof t.subarray&&0===t.subarray(1,1).byteLength}catch(t){return!1}}(),e.kMaxLength=r(),o.poolSize=8192,o._augment=function(t){return t.__proto__=o.prototype,t},o.from=function(t,e,n){return s(null,t,e,n)},o.TYPED_ARRAY_SUPPORT&&(o.prototype.__proto__=Uint8Array.prototype,o.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&o[Symbol.species]===o&&Object.defineProperty(o,Symbol.species,{value:null,configurable:!0})),o.alloc=function(t,e,n){return u(null,t,e,n)},o.allocUnsafe=function(t){return c(null,t)},o.allocUnsafeSlow=function(t){return c(null,t)},o.isBuffer=function(t){return!(null==t||!t._isBuffer)},o.compare=function(t,e){if(!o.isBuffer(t)||!o.isBuffer(e))throw new TypeError("Arguments must be Buffers");if(t===e)return 0;for(var n=t.length,r=e.length,i=0,s=Math.min(n,r);i<s;++i)if(t[i]!==e[i]){n=t[i],r=e[i];break}return n<r?-1:r<n?1:0},o.isEncoding=function(t){switch(String(t).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},o.concat=function(t,e){if(!Q(t))throw new TypeError('"list" argument must be an Array of Buffers');if(0===t.length)return o.alloc(0);var n;if(void 0===e)for(e=0,n=0;n<t.length;++n)e+=t[n].length;var r=o.allocUnsafe(e),i=0;for(n=0;n<t.length;++n){var s=t[n];if(!o.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(r,i),i+=s.length}return r},o.byteLength=v,o.prototype._isBuffer=!0,o.prototype.swap16=function(){var t=this.length;if(t%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var e=0;e<t;e+=2)g(this,e,e+1);return this},o.prototype.swap32=function(){var t=this.length;if(t%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var e=0;e<t;e+=4)g(this,e,e+3),g(this,e+1,e+2);return this},o.prototype.swap64=function(){var t=this.length;if(t%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var e=0;e<t;e+=8)g(this,e,e+7),g(this,e+1,e+6),g(this,e+2,e+5),g(this,e+3,e+4);return this},o.prototype.toString=function(){var t=0|this.length;return 0===t?"":0===arguments.length?O(this,0,t):y.apply(this,arguments)},o.prototype.equals=function(t){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");return this===t||0===o.compare(this,t)},o.prototype.inspect=function(){var t="",n=e.INSPECT_MAX_BYTES;return this.length>0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),"<Buffer "+t+">"},o.prototype.compare=function(t,e,n,r,i){if(!o.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===r&&(r=0),void 0===i&&(i=this.length),e<0||n>t.length||r<0||i>this.length)throw new RangeError("out of range index");if(r>=i&&e>=n)return 0;if(r>=i)return-1;if(e>=n)return 1;if(e>>>=0,n>>>=0,r>>>=0,i>>>=0,this===t)return 0;for(var s=i-r,a=n-e,u=Math.min(s,a),c=this.slice(r,i),l=t.slice(e,n),h=0;h<u;++h)if(c[h]!==l[h]){s=c[h],a=l[h];break}return s<a?-1:a<s?1:0},o.prototype.includes=function(t,e,n){return-1!==this.indexOf(t,e,n)},o.prototype.indexOf=function(t,e,n){return b(this,t,e,n,!0)},o.prototype.lastIndexOf=function(t,e,n){return b(this,t,e,n,!1)},o.prototype.write=function(t,e,n,r){if(void 0===e)r="utf8",n=this.length,e=0;else if(void 0===n&&"string"==typeof e)r=e,n=this.length,e=0;else{if(!isFinite(e))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");e|=0,isFinite(n)?(n|=0,void 0===r&&(r="utf8")):(r=n,n=void 0)}var i=this.length-e;if((void 0===n||n>i)&&(n=i),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");r||(r="utf8");for(var o=!1;;)switch(r){case"hex":return w(this,t,e,n);case"utf8":case"utf-8":return x(this,t,e,n);case"ascii":return E(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return T(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return M(this,t,e,n);default:if(o)throw new TypeError("Unknown encoding: "+r);r=(""+r).toLowerCase(),o=!0}},o.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var $=4096;o.prototype.slice=function(t,e){var n=this.length;t=~~t,e=void 0===e?n:~~e,t<0?(t+=n)<0&&(t=0):t>n&&(t=n),e<0?(e+=n)<0&&(e=0):e>n&&(e=n),e<t&&(e=t);var r;if(o.TYPED_ARRAY_SUPPORT)r=this.subarray(t,e),r.__proto__=o.prototype;else{var i=e-t;r=new o(i,void 0);for(var s=0;s<i;++s)r[s]=this[s+t]}return r},o.prototype.readUIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return r},o.prototype.readUIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t+--e],i=1;e>0&&(i*=256);)r+=this[t+--e]*i;return r},o.prototype.readUInt8=function(t,e){return e||I(t,1,this.length),this[t]},o.prototype.readUInt16LE=function(t,e){return e||I(t,2,this.length),this[t]|this[t+1]<<8},o.prototype.readUInt16BE=function(t,e){return e||I(t,2,this.length),this[t]<<8|this[t+1]},o.prototype.readUInt32LE=function(t,e){return e||I(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},o.prototype.readUInt32BE=function(t,e){return e||I(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},o.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=this[t],i=1,o=0;++o<e&&(i*=256);)r+=this[t+o]*i;return i*=128,r>=i&&(r-=Math.pow(2,8*e)),r},o.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||I(t,e,this.length);for(var r=e,i=1,o=this[t+--r];r>0&&(i*=256);)o+=this[t+--r]*i;return i*=128,o>=i&&(o-=Math.pow(2,8*e)),o},o.prototype.readInt8=function(t,e){return e||I(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},o.prototype.readInt16LE=function(t,e){e||I(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt16BE=function(t,e){e||I(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},o.prototype.readInt32LE=function(t,e){return e||I(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},o.prototype.readInt32BE=function(t,e){return e||I(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},o.prototype.readFloatLE=function(t,e){return e||I(t,4,this.length),J.read(this,t,!0,23,4)},o.prototype.readFloatBE=function(t,e){return e||I(t,4,this.length),J.read(this,t,!1,23,4)},o.prototype.readDoubleLE=function(t,e){return e||I(t,8,this.length),J.read(this,t,!0,52,8)},o.prototype.readDoubleBE=function(t,e){return e||I(t,8,this.length),J.read(this,t,!1,52,8)},o.prototype.writeUIntLE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){k(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=1,o=0;for(this[e]=255&t;++o<n&&(i*=256);)this[e+o]=t/i&255;return e+n},o.prototype.writeUIntBE=function(t,e,n,r){if(t=+t,e|=0,n|=0,!r){k(this,t,e,n,Math.pow(2,8*n)-1,0)}var i=n-1,o=1;for(this[e+i]=255&t;--i>=0&&(o*=256);)this[e+i]=t/o&255;return e+n},o.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,255,0),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},o.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},o.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,65535,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>
18,this[e+1]=255&t):j(this,t,e,!1),e+2},o.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):D(this,t,e,!0),e+4},o.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,4294967295,0),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeIntLE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);k(this,t,e,n,i-1,-i)}var o=0,s=1,a=0;for(this[e]=255&t;++o<n&&(s*=256);)t<0&&0===a&&0!==this[e+o-1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},o.prototype.writeIntBE=function(t,e,n,r){if(t=+t,e|=0,!r){var i=Math.pow(2,8*n-1);k(this,t,e,n,i-1,-i)}var o=n-1,s=1,a=0;for(this[e+o]=255&t;--o>=0&&(s*=256);)t<0&&0===a&&0!==this[e+o+1]&&(a=1),this[e+o]=(t/s>>0)-a&255;return e+n},o.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,1,127,-128),o.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},o.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):j(this,t,e,!0),e+2},o.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,2,32767,-32768),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):j(this,t,e,!1),e+2},o.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,2147483647,-2147483648),o.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):D(this,t,e,!0),e+4},o.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||k(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),o.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):D(this,t,e,!1),e+4},o.prototype.writeFloatLE=function(t,e,n){return U(this,t,e,!0,n)},o.prototype.writeFloatBE=function(t,e,n){return U(this,t,e,!1,n)},o.prototype.writeDoubleLE=function(t,e,n){return B(this,t,e,!0,n)},o.prototype.writeDoubleBE=function(t,e,n){return B(this,t,e,!1,n)},o.prototype.copy=function(t,e,n,r){if(n||(n=0),r||0===r||(r=this.length),e>=t.length&&(e=t.length),e||(e=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===t.length||0===this.length)return 0;if(e<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(r<0)throw new RangeError("sourceEnd out of bounds");r>this.length&&(r=this.length),t.length-e<r-n&&(r=t.length-e+n);var i,s=r-n;if(this===t&&n<e&&e<r)for(i=s-1;i>=0;--i)t[i+e]=this[i+n];else if(s<1e3||!o.TYPED_ARRAY_SUPPORT)for(i=0;i<s;++i)t[i+e]=this[i+n];else Uint8Array.prototype.set.call(t,this.subarray(n,n+s),e);return s},o.prototype.fill=function(t,e,n,r){if("string"==typeof t){if("string"==typeof e?(r=e,e=0,n=this.length):"string"==typeof n&&(r=n,n=this.length),1===t.length){var i=t.charCodeAt(0);i<256&&(t=i)}if(void 0!==r&&"string"!=typeof r)throw new TypeError("encoding must be a string");if("string"==typeof r&&!o.isEncoding(r))throw new TypeError("Unknown encoding: "+r)}else"number"==typeof t&&(t&=255);if(e<0||this.length<e||this.length<n)throw new RangeError("Out of range index");if(n<=e)return this;e>>>=0,n=void 0===n?this.length:n>>>0,t||(t=0);var s;if("number"==typeof t)for(s=e;s<n;++s)this[s]=t;else{var a=o.isBuffer(t)?t:G(new o(t,r).toString()),u=a.length;for(s=0;s<n-e;++s)this[s+e]=a[s%u]}return this};var tt=/[^+\/0-9A-Za-z-_]/g}).call(e,n("fRUx"))},v1IT:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new l(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("xFbG"),s=n("RdI5"),a=n("XRvs"),u=n("yW9Z"),c=n("ktfo");e.bufferWhen=r;var l=function(){function t(t){this.closingSelector=t}return t.prototype.call=function(t,e){return e.subscribe(new h(t,this.closingSelector))},t}(),h=function(t){function e(e,n){t.call(this,e),this.closingSelector=n,this.subscribing=!1,this.openBuffer()}return i(e,t),e.prototype._next=function(t){this.buffer.push(t)},e.prototype._complete=function(){var e=this.buffer;e&&this.destination.next(e),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},e.prototype.notifyNext=function(t,e,n,r,i){this.openBuffer()},e.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},e.prototype.openBuffer=function(){var t=this.closingSubscription;t&&(this.remove(t),t.unsubscribe());var e=this.buffer;this.buffer&&this.destination.next(e),this.buffer=[];var n=s.tryCatch(this.closingSelector)();n===a.errorObject?this.error(a.errorObject.e):(t=new o.Subscription,this.closingSubscription=t,this.add(t),this.subscribing=!0,t.add(c.subscribeToResult(this,n)),this.subscribing=!1)},e}(u.OuterSubscriber)},v6xs:function(t,e,n){"use strict";var r=n("bKpL"),i=n("zjlw");r.Observable.prototype.retry=i.retry},"v71/":function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new a(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("TpsG");e.single=r;var a=function(){function t(t,e){this.predicate=t,this.source=e}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.source))},t}(),u=function(t){function e(e,n,r){t.call(this,e),this.predicate=n,this.source=r,this.seenValue=!1,this.index=0}return i(e,t),e.prototype.applySingleValue=function(t){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=t)},e.prototype._next=function(t){var e=this.index++;this.predicate?this.tryNext(t,e):this.applySingleValue(t)},e.prototype.tryNext=function(t,e){try{this.predicate(t,e,this.source)&&this.applySingleValue(t)}catch(t){this.destination.error(t)}},e.prototype._complete=function(){var t=this.destination;this.index>0?(t.next(this.seenValue?this.singleValue:void 0),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)},vJ3t:function(t,e,n){"use strict";var r=n("bKpL"),i=n("6P86");r.Observable.combineLatest=i.combineLatest},"vKg+":function(t,e,n){"use strict";var r=n("bKpL"),i=n("jKKE");r.Observable.prototype.count=i.count},vNV3:function(t,e,n){"use strict";var r=n("bKpL"),i=n("olOS");r.Observable.prototype.timestamp=i.timestamp},vNxK:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return function(e){return e.lift.call(i.concat.apply(void 0,[e].concat(t)))}}var i=n("7kbP"),o=n("7kbP");e.concatStatic=o.concat,e.concat=r},vfw3:function(t,e,n){"use strict";var r=n("bKpL"),i=n("iDKa");r.Observable.prototype.skip=i.skip},vioa:function(t,e,n){"use strict";var r=n("sLwK");e.timer=r.TimerObservable.create},vokw:function(t,e,n){"use strict";function r(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,i.expand(t,e,n)(this)}var i=n("y23k");e.expand=r},vtHn:function(t,e,n){"use strict";var r=n("bKpL"),i=n("OCM8");r.Observable.prototype.publishLast=i.publishLast},vxPf:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];return i(t)}function i(t){return t?1===t.length?t[0]:function(e){return t.reduce(function(t,e){return e(t)},e)}:o.noop}var o=n("Z5ED");e.pipe=r,e.pipeFromArray=i},wCVK:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("aOKN"),s=n("fcnB"),a=function(t){function e(e,n){t.call(this),this.arrayLike=e,this.scheduler
1=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){var r=t.length;return 0===r?new s.EmptyObservable:1===r?new o.ScalarObservable(t[0],n):new e(t,n)},e.dispatch=function(t){var e=t.arrayLike,n=t.index,r=t.length,i=t.subscriber;if(!i.closed){if(n>=r)return void i.complete();i.next(e[n]),t.index=n+1,this.schedule(t)}},e.prototype._subscribe=function(t){var n=this,r=n.arrayLike,i=n.scheduler,o=r.length;if(i)return i.schedule(e.dispatch,0,{arrayLike:r,index:0,length:o,subscriber:t});for(var s=0;s<o&&!t.closed;s++)t.next(r[s]);t.complete()},e}(i.Observable);e.ArrayLikeObservable=a},wDL6:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=-1),i.repeat(t)(this)}var i=n("Hg2u");e.repeat=r},wEhC:function(t,e,n){"use strict";var r=n("JCyH"),i=n("HyAm");e.asap=new i.AsapScheduler(r.AsapAction)},wHgO:function(t,e,n){t.exports=n("rOzH").EventEmitter},wQte:function(t,e,n){"use strict";var r=function(){function t(){this.size=0,this._values=[],this._keys=[]}return t.prototype.get=function(t){var e=this._keys.indexOf(t);return-1===e?void 0:this._values[e]},t.prototype.set=function(t,e){var n=this._keys.indexOf(t);return-1===n?(this._keys.push(t),this._values.push(e),this.size++):this._values[n]=e,this},t.prototype.delete=function(t){var e=this._keys.indexOf(t);return-1!==e&&(this._values.splice(e,1),this._keys.splice(e,1),this.size--,!0)},t.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},t.prototype.forEach=function(t,e){for(var n=0;n<this.size;n++)t.call(e,this._values[n],this._keys[n])},t}();e.MapPolyfill=r},wZOE:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("bKpL"),o=n("aOKN"),s=n("fcnB"),a=n("MicL"),u=function(t){function e(e,n){t.call(this),this.array=e,this.scheduler=n,n||1!==e.length||(this._isScalar=!0,this.value=e[0])}return r(e,t),e.create=function(t,n){return new e(t,n)},e.of=function(){for(var t=[],n=0;n<arguments.length;n++)t[n-0]=arguments[n];var r=t[t.length-1];a.isScheduler(r)?t.pop():r=null;var i=t.length;return i>1?new e(t,r):1===i?new o.ScalarObservable(t[0],r):new s.EmptyObservable(r)},e.dispatch=function(t){var e=t.array,n=t.index,r=t.count,i=t.subscriber;if(n>=r)return void i.complete();i.next(e[n]),i.closed||(t.index=n+1,this.schedule(t))},e.prototype._subscribe=function(t){var n=this.array,r=n.length,i=this.scheduler;if(i)return i.schedule(e.dispatch,0,{array:n,index:0,count:r,subscriber:t});for(var o=0;o<r&&!t.closed;o++)t.next(n[o]);t.complete()},e}(i.Observable);e.ArrayObservable=u},wbX9:function(t,e,n){"use strict";function r(t){return!!t&&"function"==typeof t.addListener&&"function"==typeof t.removeListener}function i(t){return!!t&&"function"==typeof t.on&&"function"==typeof t.off}function o(t){return!!t&&"[object NodeList]"===d.call(t)}function s(t){return!!t&&"[object HTMLCollection]"===d.call(t)}function a(t){return!!t&&"function"==typeof t.addEventListener&&"function"==typeof t.removeEventListener}var u=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},c=n("bKpL"),l=n("RdI5"),h=n("fclq"),p=n("XRvs"),f=n("xFbG"),d=Object.prototype.toString,m=function(t){function e(e,n,r,i){t.call(this),this.sourceObj=e,this.eventName=n,this.selector=r,this.options=i}return u(e,t),e.create=function(t,n,r,i){return h.isFunction(r)&&(i=r,r=void 0),new e(t,n,i,r)},e.setupSubscription=function(t,n,u,c,l){var h;if(o(t)||s(t))for(var p=0,d=t.length;p<d;p++)e.setupSubscription(t[p],n,u,c,l);else if(a(t)){var m=t;t.addEventListener(n,u,l),h=function(){return m.removeEventListener(n,u)}}else if(i(t)){var v=t;t.on(n,u),h=function(){return v.off(n,u)}}else{if(!r(t))throw new TypeError("Invalid event target");var y=t;t.addListener(n,u),h=function(){return y.removeListener(n,u)}}c.add(new f.Subscription(h))},e.prototype._subscribe=function(t){var n=this.sourceObj,r=this.eventName,i=this.options,o=this.selector,s=o?function(){for(var e=[],n=0;n<arguments.length;n++)e[n-0]=arguments[n];var r=l.tryCatch(o).apply(void 0,e);r===p.errorObject?t.error(p.errorObject.e):t.next(r)}:function(e){return t.next(e)};e.setupSubscription(n,r,s,t,i)},e}(c.Observable);e.FromEventObservable=m},wcuQ:function(t,e,n){"use strict";function r(){for(var t=[],e=0;e<arguments.length;e++)t[e-0]=arguments[e];var n=t.length;if(0===n)throw new Error("list of properties cannot be empty.");return function(e){return o.map(i(t,n))(e)}}function i(t,e){return function(n){for(var r=n,i=0;i<e;
1i++){var o=r[t[i]];if(void 0===o)return;r=o}return r}}var o=n("L8VJ");e.pluck=r},weui:function(t,e,n){"use strict";function r(){return function(t){return t.lift(new a)}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.exhaust=r;var a=function(){function t(){}return t.prototype.call=function(t,e){return e.subscribe(new u(t))},t}(),u=function(t){function e(e){t.call(this,e),this.hasCompleted=!1,this.hasSubscription=!1}return i(e,t),e.prototype._next=function(t){this.hasSubscription||(this.hasSubscription=!0,this.add(s.subscribeToResult(this,t)))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},e.prototype.notifyComplete=function(t){this.remove(t),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},e}(o.OuterSubscriber)},xAqS:function(t,e,n){"use strict";function r(t,e){return i.bufferToggle(t,e)(this)}var i=n("6QEA");e.bufferToggle=r},xFbG:function(t,e,n){"use strict";function r(t){return t.reduce(function(t,e){return t.concat(e instanceof c.UnsubscriptionError?e.errors:e)},[])}var i=n("NSJx"),o=n("H6Sg"),s=n("fclq"),a=n("RdI5"),u=n("XRvs"),c=n("Emqh"),l=function(){function t(t){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,t&&(this._unsubscribe=t)}return t.prototype.unsubscribe=function(){var t,e=!1;if(!this.closed){var n=this,l=n._parent,h=n._parents,p=n._unsubscribe,f=n._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var d=-1,m=h?h.length:0;l;)l.remove(this),l=++d<m&&h[d]||null;if(s.isFunction(p)){var v=a.tryCatch(p).call(this);v===u.errorObject&&(e=!0,t=t||(u.errorObject.e instanceof c.UnsubscriptionError?r(u.errorObject.e.errors):[u.errorObject.e]))}if(i.isArray(f))for(d=-1,m=f.length;++d<m;){var y=f[d];if(o.isObject(y)){var v=a.tryCatch(y.unsubscribe).call(y);if(v===u.errorObject){e=!0,t=t||[];var g=u.errorObject.e;g instanceof c.UnsubscriptionError?t=t.concat(r(g.errors)):t.push(g)}}}if(e)throw new c.UnsubscriptionError(t)}},t.prototype.add=function(e){if(!e||e===t.EMPTY)return t.EMPTY;if(e===this)return this;var n=e;switch(typeof e){case"function":n=new t(e);case"object":if(n.closed||"function"!=typeof n.unsubscribe)return n;if(this.closed)return n.unsubscribe(),n;if("function"!=typeof n._addParent){var r=n;n=new t,n._subscriptions=[r]}break;default:throw new Error("unrecognized teardown "+e+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(n),n._addParent(this),n},t.prototype.remove=function(t){var e=this._subscriptions;if(e){var n=e.indexOf(t);-1!==n&&e.splice(n,1)}},t.prototype._addParent=function(t){var e=this,n=e._parent,r=e._parents;n&&n!==t?r?-1===r.indexOf(t)&&r.push(t):this._parents=[t]:this._parent=t},t.EMPTY=function(t){return t.closed=!0,t}(new t),t}();e.Subscription=l},xJeO:function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new u(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("RdI5"),a=n("XRvs");e.sequenceEqual=r;var u=function(){function t(t,e){this.compareTo=t,this.comparor=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.compareTo,this.comparor))},t}();e.SequenceEqualOperator=u;var c=function(t){function e(e,n,r){t.call(this,e),this.compareTo=n,this.comparor=r,this._a=[],this._b=[],this._oneComplete=!1,this.add(n.subscribe(new l(e,this)))}return i(e,t),e.prototype._next=function(t){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(t),this.checkValues())},e.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},e.prototype.checkValues=function(){for(var t=this,e=t._a,n=t._b,r=t.comparor;e.length>0&&n.length>0;){var i=e.shift(),o=n.shift(),u=!1;r?(u=s.tryCatch(r)(i,o))===a.errorObject&&this.destination.error(a.errorObject.e):u=i===o,u||this.emit
1(!1)}},e.prototype.emit=function(t){var e=this.destination;e.next(t),e.complete()},e.prototype.nextB=function(t){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(t),this.checkValues())},e}(o.Subscriber);e.SequenceEqualSubscriber=c;var l=function(t){function e(e,n){t.call(this,e),this.parent=n}return i(e,t),e.prototype._next=function(t){this.parent.nextB(t)},e.prototype._error=function(t){this.parent.error(t)},e.prototype._complete=function(){this.parent._complete()},e}(o.Subscriber)},xK8X:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=i.async),o.map(function(e){return new s(e,t.now())})}var i=n("IhB/"),o=n("L8VJ");e.timestamp=r;var s=function(){function t(t,e){this.value=t,this.timestamp=e}return t}();e.Timestamp=s},xKl2:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("bKpL"),s=n("T14+"),a=n("xFbG"),u=n("F9px"),c=function(t){function e(e,n){t.call(this),this.source=e,this.subjectFactory=n,this._refCount=0,this._isComplete=!1}return r(e,t),e.prototype._subscribe=function(t){return this.getSubject().subscribe(t)},e.prototype.getSubject=function(){var t=this._subject;return t&&!t.isStopped||(this._subject=this.subjectFactory()),this._subject},e.prototype.connect=function(){var t=this._connection;return t||(this._isComplete=!1,t=this._connection=new a.Subscription,t.add(this.source.subscribe(new h(this.getSubject(),this))),t.closed?(this._connection=null,t=a.Subscription.EMPTY):this._connection=t),t},e.prototype.refCount=function(){return u.refCount()(this)},e}(o.Observable);e.ConnectableObservable=c;var l=c.prototype;e.connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:l._subscribe},_isComplete:{value:l._isComplete,writable:!0},getSubject:{value:l.getSubject},connect:{value:l.connect},refCount:{value:l.refCount}};var h=function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._error=function(e){this._unsubscribe(),t.prototype._error.call(this,e)},e.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),t.prototype._complete.call(this)},e.prototype._unsubscribe=function(){var t=this.connectable;if(t){this.connectable=null;var e=t._connection;t._refCount=0,t._subject=null,t._connection=null,e&&e.unsubscribe()}},e}(i.SubjectSubscriber),p=(function(){function t(t){this.connectable=t}t.prototype.call=function(t,e){var n=this.connectable;n._refCount++;var r=new p(t,n),i=e.subscribe(r);return r.closed||(r.connection=n.connect()),i}}(),function(t){function e(e,n){t.call(this,e),this.connectable=n}return r(e,t),e.prototype._unsubscribe=function(){var t=this.connectable;if(!t)return void(this.connection=null);this.connectable=null;var e=t._refCount;if(e<=0)return void(this.connection=null);if(t._refCount=e-1,e>1)return void(this.connection=null);var n=this.connection,r=t._connection;this.connection=null,!r||n&&r!==n||r.unsubscribe()},e}(s.Subscriber))},xpf9:function(t,e,n){"use strict";var r=n("bKpL"),i=n("ueUM");r.Observable.prototype.catch=i._catch,r.Observable.prototype._catch=i._catch},xqgp:function(t,e,n){"use strict";(function(e,r){!function(){function i(t,e){for(var n=e.length,r=0;r<n;r++)t=s[255&(t^e[r])]^t>>>8;return t}function o(){for(var t=arguments.length,e=-1,n=0;n<t;n++)e=i(e,new r(arguments[n]));return e=(-1^e)>>>0}if("arm"===e.arch)return void(t.exports=n("J8I8"));var s=[];!function(){for(var t=0;t<256;t++){for(var e=t,n=0;n<8;n++)1&e?e=3988292384^e>>>1:e>>>=1;s[t]=e>>>0}}(),t.exports=o}()}).call(e,n("1WNV"),n("v0OU").Buffer)},"y+rW":function(t,e,n){"use strict";function r(t,e){return function(n){return n.lift(new u(t,e))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo"),a=n("M11L");e.distinct=r;var u=function(){function t(t,e){this.keySelector=t,this.flushes=e}return t.prototype.call=function(t,e){return e.subscribe(new c(t,this.keySelector,this.flushes))},t}(),c=function(t){function e(e,n,r){t.call(this,e),this.keySelector=n,this.values=new a.Set,r&&this.add(s.subscribeToResult(this,r))}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.values.clear()},e.prototype.notifyError=function(t,e){this._error(t)},e.prototype._next=function(t){this.keySelector?this._useKeySelector(t):this._finalizeNext(t,t)},e.prototype._useKeySelector=function(t){var e,n=this.destination;try{e=this.keySelector(t)}catch(t){return void n.error(t)}this._finalizeNext(e,t)},e.prototype._finalizeNext=function(t,e){var n=this.values;n.has(t)||(n.add(t),this.destination.next(e))},e}(o.OuterSubscriber);e.DistinctSubscriber=c},y23k:function(t,e,n){"use strict";function r(t,e,n){return void 0===e&&(e=Number.POSITIVE_INFINITY),void 0===n&&(n=void 0),e=(e||0)<1?Number.POSITIVE_INFINITY:e,function(r){return r.lift(new c(t,e,n))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("RdI5"),s=n("XRvs"),a=n("yW9Z"),u=n("ktfo");e.expand=r;var c=function(){function t(t,e,n){this.project=t,this.concurrent=e,this.scheduler
1=n}return t.prototype.call=function(t,e){return e.subscribe(new l(t,this.project,this.concurrent,this.scheduler))},t}();e.ExpandOperator=c;var l=function(t){function e(e,n,r,i){t.call(this,e),this.project=n,this.concurrent=r,this.scheduler=i,this.index=0,this.active=0,this.hasCompleted=!1,r<Number.POSITIVE_INFINITY&&(this.buffer=[])}return i(e,t),e.dispatch=function(t){var e=t.subscriber,n=t.result,r=t.value,i=t.index;e.subscribeToProjection(n,r,i)},e.prototype._next=function(t){var n=this.destination;if(n.closed)return void this._complete();var r=this.index++;if(this.active<this.concurrent){n.next(t);var i=o.tryCatch(this.project)(t,r);if(i===s.errorObject)n.error(s.errorObject.e);else if(this.scheduler){var a={subscriber:this,result:i,value:t,index:r};this.add(this.scheduler.schedule(e.dispatch,0,a))}else this.subscribeToProjection(i,t,r)}else this.buffer.push(t)},e.prototype.subscribeToProjection=function(t,e,n){this.active++,this.add(u.subscribeToResult(this,t,e,n))},e.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},e.prototype.notifyNext=function(t,e,n,r,i){this._next(e)},e.prototype.notifyComplete=function(t){var e=this.buffer;this.remove(t),this.active--,e&&e.length>0&&this._next(e.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},e}(a.OuterSubscriber);e.ExpandSubscriber=l},y3SI:function(t,e,n){"use strict";function r(t){var e="function"==typeof t?function(e,n){return t(e,n)<0?e:n}:function(t,e){return t<e?t:e};return i.reduce(e)}var i=n("JwCl");e.min=r},y3aq:function(t,e,n){"use strict";function r(t){return function(e){return e.lift(new a(t))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("yW9Z"),s=n("ktfo");e.takeUntil=r;var a=function(){function t(t){this.notifier=t}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.notifier))},t}(),u=function(t){function e(e,n){t.call(this,e),this.notifier=n,this.add(s.subscribeToResult(this,n))}return i(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.complete()},e.prototype.notifyComplete=function(){},e}(o.OuterSubscriber)},yIff:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("rlar"),o=n("T14+"),s=n("bKpL"),a=n("xFbG"),u=n("zijX"),c=n("0imh"),l=n("RdI5"),h=n("XRvs"),p=n("fV3I"),f=function(t){function e(e,n){if(e instanceof s.Observable)t.call(this,n,e);else{if(t.call(this),this.WebSocketCtor=u.root.WebSocket,this._output=new i.Subject,"string"==typeof e?this.url=e:p.assign(this,e),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new c.ReplaySubject}}return r(e,t),e.prototype.resultSelector=function(t){return JSON.parse(t.data)},e.create=function(t){return new e(t)},e.prototype.lift=function(t){var n=new e(this,this.destination);return n.operator=t,n},e.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new c.ReplaySubject),this._output=new i.Subject},e.prototype.multiplex=function(t,e,n){var r=this;return new s.Observable(function(i){var o=l.tryCatch(t)();o===h.errorObject?i.error(h.errorObject.e):r.next(o);var s=r.subscribe(function(t){var e=l.tryCatch(n)(t);e===h.errorObject?i.error(h.errorObject.e):e&&i.next(t)},function(t){return i.error(t)},function(){return i.complete()});return function(){var t=l.tryCatch(e)();t===h.errorObject?i.error(h.errorObject.e):r.next(t),s.unsubscribe()}})},e.prototype._connectSocket=function(){var t=this,e=this.WebSocketCtor,n=this._output,r=null;try{r=this.protocol?new e(this.url,this.protocol):new e(this.url),this.socket=r,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(t){return void n.error(t)}var i=new a.Subscription(function(){t.socket=null,r&&1===r.readyState&&r.close()});r.onopen=function(e){var s=t.openObserver;s&&s.next(e);var a=t.destination;t.destination=o.Subscriber.create(function(t){return 1===r.readyState&&r.send(t)},function(e){var i=t.closingObserver;i&&i.next(void 0),e&&e.code?r.close(e.code,e.reason):n.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),t._resetState()},function(){var e=t.closingObserver;e&&e.next(void 0),r.close(),t._resetState()}
1),a&&a instanceof c.ReplaySubject&&i.add(a.subscribe(t.destination))},r.onerror=function(e){t._resetState(),n.error(e)},r.onclose=function(e){t._resetState();var r=t.closeObserver;r&&r.next(e),e.wasClean?n.complete():n.error(e)},r.onmessage=function(e){var r=l.tryCatch(t.resultSelector)(e);r===h.errorObject?n.error(h.errorObject.e):n.next(r)}},e.prototype._subscribe=function(t){var e=this,n=this.source;if(n)return n.subscribe(t);this.socket||this._connectSocket();var r=new a.Subscription;return r.add(this._output.subscribe(t)),r.add(function(){var t=e.socket;0===e._output.observers.length&&(t&&1===t.readyState&&t.close(),e._resetState())}),r},e.prototype.unsubscribe=function(){var e=this,n=e.source,r=e.socket;r&&1===r.readyState&&(r.close(),this._resetState()),t.prototype.unsubscribe.call(this),n||(this.destination=new c.ReplaySubject)},e}(i.AnonymousSubject);e.WebSocketSubject=f},yQ6o:function(t,e,n){"use strict";var r=n("T1tZ");e.bindCallback=r.BoundCallbackObservable.create},yR50:function(t,e,n){"use strict";var r=n("Fpv1"),i=n("HHMl");e.queue=new i.QueueScheduler(r.QueueAction)},yW9Z:function(t,e,n){"use strict";var r=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},i=n("T14+"),o=function(t){function e(){t.apply(this,arguments)}return r(e,t),e.prototype.notifyNext=function(t,e,n,r,i){this.destination.next(e)},e.prototype.notifyError=function(t,e){this.destination.error(t)},e.prototype.notifyComplete=function(t){this.destination.complete()},e}(i.Subscriber);e.OuterSubscriber=o},yY5i:function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e,n){t.copy(e,n)}var o=n("zOKz").Buffer;t.exports=function(){function t(){r(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return o.alloc(0);if(1===this.length)return this.head.data;for(var e=o.allocUnsafe(t>>>0),n=this.head,r=0;n;)i(n.data,e,r),r+=n.data.length,n=n.next;return e},t}()},ykQW:function(t,e,n){"use strict";var r=n("bKpL"),i=n("8Ben");r.Observable.prototype.let=i.letProto,r.Observable.prototype.letBind=i.letProto},ytB7:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=i.async),o.sampleTime(t,e)(this)}var i=n("IhB/"),o=n("60lp");e.sampleTime=r},z69B:function(t,e,n){"use strict";var r=n("bKpL"),i=n("gb+0");r.Observable.prototype.single=i.single},"z8/z":function(t,e,n){"use strict";function r(t,e,n,r){n&&"function"!=typeof n&&(r=n);var s="function"==typeof n?n:void 0,a=new i.ReplaySubject(t,e,r);return function(t){return o.multicast(function(){return a},s)(t)}}var i=n("0imh"),o=n("P02W");e.publishReplay=r},"zBM/":function(t,e,n){"use strict";function r(t){return t?o.multicast(function(){return new i.Subject},t):o.multicast(new i.Subject)}var i=n("rlar"),o=n("P02W");e.publish=r},zGUx:function(t,e,n){"use strict";var r=n("wbX9");e.fromEvent=r.FromEventObservable.create},zOKz:function(t,e,n){function r(t,e){for(var n in t)e[n]=t[n]}function i(t,e,n){return s(t,e,n)}var o=n("v0OU"),s=o.Buffer;s.from&&s.alloc&&s.allocUnsafe&&s.allocUnsafeSlow?t.exports=o:(r(o,e),e.Buffer=i),r(s,i),i.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return s(t,e,n)},i.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var r=s(t);return void 0!==e?"string"==typeof n?r.fill(e,n):r.fill(e):r.fill(0),r},i.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return s(t)},i.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o.SlowBuffer(t)}},zZnE:function(t,e,n){"use strict";var r=n("bKpL"),i=n("jyAw");r.Observable.prototype.groupBy=i.groupBy},zbre:function(t,e,n){"use strict";function r(t,e){return void 0===e&&(e=null),i.bufferCount(t,e)(this)}var i=n("5NGA");e.bufferCount=r},zc4d:function(t,e,n){"use strict";var r=n("bKpL"),i=n("uYJe");r.Observable.prototype.finally=i._finally,r.Observable.prototype._finally=i._finally},zdWg:function(t,e,n){"use strict";var r=n("bKpL"),i=n("Zfg9");r.Observable.prototype.skipLast=i.skipLast},zijX:function(t,e,n){"use strict";(function(t){var n="undefined"!=typeof window&&window,r="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,i=void 0!==t&&t,o=n||i||r;e.root=o,function(){if(!o)throw new Error("RxJS could not find any global context (window, self, global)")}()}).call(e,n("fRUx"))},ziym:function(t,e,n){"use strict";var r=n("HPkd");e.ajax=r.AjaxObservable.create},zjlw:function(t,e,n){"use strict";function r(t){return void 0===t&&(t=-1),i.retry(t)(this)}var i=n("5r3W");e.retry=r},zrH4:function(t,e,n){"use strict";function r(t,e,n){return function(r){return r.lift(new a(t,e,n,r))}}var i=this&&this.__extends||function(t,e){function n(){this.constructor=t}for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);t.prototype=null===e?Object.create(e):(n.prototype=e.prototype,new n)},o=n("T14+"),s=n("TpsG");e.last=r;var a=function(){function t(t,e,n,r){this.predicate=t,this.resultSelector=e,this.defaultValue=n,this.source=r}return t.prototype.call=function(t,e){return e.subscribe(new u(t,this.predicate,this.resultSelector,this.defaultValue,this.source))},t}(),u=function(t){function e(e,n,r,i,o){t.call(this,e),this.predicate=n,this.resultSelector=r,this.defaultValue=i,this.source=o,this.hasValue=!1,this.index=0,void 0!==i&&(this.lastValue=i,this.hasValue=!0)}return i(e,t),e.prototype._next=function(t){var e=this.index++;if(this.predicate)this._tryPredicate(t,e);else{if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryPredicate=function(t,e){var n;try{n=this.predicate(t,e,this.source)}catch(t){return void this.destination.error(t)}if(n){if(this.resultSelector)return void this._tryResultSelector(t,e);this.lastValue=t,this.hasValue=!0}},e.prototype._tryResultSelector=function(t,e){var n;try{n=this.resultSelector(t,e)}catch(t){return void this.destination.error(t)}this.lastValue=n,this.hasValue=!0},e.prototype._complete=function(){var t=this.destination;this.hasValue?(t.next(this.lastValue),t.complete()):t.error(new s.EmptyError)},e}(o.Subscriber)}});
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.