From 097107632a63355cbc0d703d306ccb2b395c801d Mon Sep 17 00:00:00 2001 From: David Cormack Date: Sun, 6 Nov 2016 01:58:38 +0000 Subject: [PATCH 1/3] Added option to enable or disable console log output in SteamVRInput during input device detection. Logging is now disabled by default. --- src/utilities/behaviors/SteamVRInput.es6.js | 16 ++++++++++------ src/utilities/behaviors/SteamVRInput.js | 16 ++++++++++------ 2 files changed, 20 insertions(+), 12 deletions(-) diff --git a/src/utilities/behaviors/SteamVRInput.es6.js b/src/utilities/behaviors/SteamVRInput.es6.js index ed847f61..34f896f3 100644 --- a/src/utilities/behaviors/SteamVRInput.es6.js +++ b/src/utilities/behaviors/SteamVRInput.es6.js @@ -1,14 +1,14 @@ 'use strict'; // Returns a Promise that resovles static when a steamvr controller is found -function getController(hand) { +function getController(hand, config) { const findGamepad = (resolve, reject) => { const gamepad = altspace.getGamepads().find((g) => g.mapping === 'steamvr' && g.hand === hand); if (gamepad) { - console.log("SteamVR input device found", gamepad); + if(config.logging) console.log("SteamVR input device found", gamepad); resolve(gamepad); } else { - console.log("SteamVR input device not found trying again in 500ms..."); + if(config.logging) console.log("SteamVR input device not found trying again in 500ms..."); setTimeout(findGamepad, 500, resolve, reject); } }; @@ -21,6 +21,8 @@ function getController(hand) { * to the ThreeJS scene and is required to use [SteamVRTrackedObject]{@link module:altspace/utilities/behaviors.SteamVRTrackedObject} * * @class SteamVRInput + * @param {Object} [config] + * @param {Boolean} [config.logging=false] Display console log output during SteamVR input device detection * @memberof module:altspace/utilities/behaviors * * @prop {Gamepad} leftController the left SteamVR [Gamepad]{@link module:altspace~Gamepad} or undefined if one has not yet been found @@ -32,13 +34,15 @@ function getController(hand) { * @prop {Promise} firstControllerPromise a promise that resolves once any SteamVR input device is found */ class SteamVRInputBehavior { - constructor() { + constructor(config) { this.type = 'SteamVRInput'; + this.config = config || {}; + this.config.logging = this.config.logging || false; } awake() { - this.leftControllerPromise = getController(SteamVRInputBehavior.LEFT_CONTROLLER); - this.rightControllerPromise = getController(SteamVRInputBehavior.RIGHT_CONTROLLER); + this.leftControllerPromise = getController(SteamVRInputBehavior.LEFT_CONTROLLER, config); + this.rightControllerPromise = getController(SteamVRInputBehavior.RIGHT_CONTROLLER, config); this.firstControllerPromise = Promise.race([ this.leftControllerPromise, this.rightControllerPromise, diff --git a/src/utilities/behaviors/SteamVRInput.js b/src/utilities/behaviors/SteamVRInput.js index 803e44c0..eda39003 100644 --- a/src/utilities/behaviors/SteamVRInput.js +++ b/src/utilities/behaviors/SteamVRInput.js @@ -8,16 +8,16 @@ var _classCallCheck = require('babel-runtime/helpers/class-call-check')['default var _Promise = require('babel-runtime/core-js/promise')['default']; -function getController(hand) { +function getController(hand, config) { var findGamepad = function findGamepad(resolve, reject) { var gamepad = altspace.getGamepads().find(function (g) { return g.mapping === 'steamvr' && g.hand === hand; }); if (gamepad) { - console.log("SteamVR input device found", gamepad); + if(config.logging) console.log("SteamVR input device found", gamepad); resolve(gamepad); } else { - console.log("SteamVR input device not found trying again in 500ms..."); + if(config.logging) console.log("SteamVR input device not found trying again in 500ms..."); setTimeout(findGamepad, 500, resolve, reject); } }; @@ -30,6 +30,8 @@ function getController(hand) { * to the ThreeJS scene and is required to use [SteamVRTrackedObject]{@link module:altspace/utilities/behaviors.SteamVRTrackedObject} * * @class SteamVRInput + * @param {Object} [config] + * @param {Boolean} [config.logging=false] Display console log output during SteamVR input device detection * @memberof module:altspace/utilities/behaviors * * @prop {Gamepad} leftController the left SteamVR [Gamepad]{@link module:altspace~Gamepad} or undefined if one has not yet been found @@ -42,10 +44,12 @@ function getController(hand) { */ var SteamVRInputBehavior = (function () { - function SteamVRInputBehavior() { + function SteamVRInputBehavior(config) { _classCallCheck(this, SteamVRInputBehavior); this.type = 'SteamVRInput'; + this.config = config || {}; + this.config.logging = this.config.logging || false; } _createClass(SteamVRInputBehavior, [{ @@ -53,8 +57,8 @@ var SteamVRInputBehavior = (function () { value: function awake() { var _this = this; - this.leftControllerPromise = getController(SteamVRInputBehavior.LEFT_CONTROLLER); - this.rightControllerPromise = getController(SteamVRInputBehavior.RIGHT_CONTROLLER); + this.leftControllerPromise = getController(SteamVRInputBehavior.LEFT_CONTROLLER, config); + this.rightControllerPromise = getController(SteamVRInputBehavior.RIGHT_CONTROLLER, config); this.firstControllerPromise = _Promise.race([this.leftControllerPromise, this.rightControllerPromise]); this.leftControllerPromise.then(function (controller) { From 9f47ce20d4d9e0d458700db1bd0817ba510dfde8 Mon Sep 17 00:00:00 2001 From: David Cormack Date: Sun, 6 Nov 2016 03:13:10 +0000 Subject: [PATCH 2/3] Corrected config reference. --- src/utilities/behaviors/SteamVRInput.es6.js | 4 ++-- src/utilities/behaviors/SteamVRInput.js | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/utilities/behaviors/SteamVRInput.es6.js b/src/utilities/behaviors/SteamVRInput.es6.js index 34f896f3..35ab293b 100644 --- a/src/utilities/behaviors/SteamVRInput.es6.js +++ b/src/utilities/behaviors/SteamVRInput.es6.js @@ -41,8 +41,8 @@ class SteamVRInputBehavior { } awake() { - this.leftControllerPromise = getController(SteamVRInputBehavior.LEFT_CONTROLLER, config); - this.rightControllerPromise = getController(SteamVRInputBehavior.RIGHT_CONTROLLER, config); + this.leftControllerPromise = getController(SteamVRInputBehavior.LEFT_CONTROLLER, this.config); + this.rightControllerPromise = getController(SteamVRInputBehavior.RIGHT_CONTROLLER, this.config); this.firstControllerPromise = Promise.race([ this.leftControllerPromise, this.rightControllerPromise, diff --git a/src/utilities/behaviors/SteamVRInput.js b/src/utilities/behaviors/SteamVRInput.js index eda39003..f83b3b3a 100644 --- a/src/utilities/behaviors/SteamVRInput.js +++ b/src/utilities/behaviors/SteamVRInput.js @@ -57,8 +57,8 @@ var SteamVRInputBehavior = (function () { value: function awake() { var _this = this; - this.leftControllerPromise = getController(SteamVRInputBehavior.LEFT_CONTROLLER, config); - this.rightControllerPromise = getController(SteamVRInputBehavior.RIGHT_CONTROLLER, config); + this.leftControllerPromise = getController(SteamVRInputBehavior.LEFT_CONTROLLER, this.config); + this.rightControllerPromise = getController(SteamVRInputBehavior.RIGHT_CONTROLLER, this.config); this.firstControllerPromise = _Promise.race([this.leftControllerPromise, this.rightControllerPromise]); this.leftControllerPromise.then(function (controller) { From 57977eb470843e485964b6041867c465a4dfab01 Mon Sep 17 00:00:00 2001 From: Brian Peiris Date: Sat, 5 Nov 2016 20:47:14 -0700 Subject: [PATCH 3/3] update steamvr example --- examples/steamvr/bundle.js | 47 ++++++++++++++++++----------------- examples/steamvr/package.json | 2 +- 2 files changed, 25 insertions(+), 24 deletions(-) diff --git a/examples/steamvr/bundle.js b/examples/steamvr/bundle.js index 30267a00..6de4f56c 100644 --- a/examples/steamvr/bundle.js +++ b/examples/steamvr/bundle.js @@ -1,24 +1,25 @@ -!function(e){function t(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return e[n].call(i.exports,i,i.exports,t),i.loaded=!0,i.exports}var r={};return t.m=e,t.c=r,t.p="/",t(0)}([function(e,t,r){e.exports=r(4)},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,require,require,__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,require,require;(function(global){!function(e,t){__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(2)],__WEBPACK_AMD_DEFINE_FACTORY__=t,__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(this,function(THREE){function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function getController(e){var t=function r(t,n){var i=altspace.getGamepads().find(function(t){return"steamvr"===t.mapping&&t.hand===e});i?(console.log("SteamVR input device found",i),t(i)):(console.log("SteamVR input device not found trying again in 500ms..."),setTimeout(r,500,t,n))};return new Promise(t)}function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}!function e(t,r,n){function i(a,s){if(!r[a]){if(!t[a]){var c="function"==typeof require&&require;if(!s&&c)return require(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[a]={exports:{}};t[a][0].call(h.exports,function(e){var r=t[a][1][e];return i(r?r:e)},h,h.exports,e,t,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;ah))return!1;var f=a.get(e);if(f)return f==t;var p=!0;for(a.set(e,t);++s-1&&e%1==0&&C>=e}function b(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function x(e){return!!e&&"object"==typeof e}function w(e){return null==e?!1:v(e)?ue.test(ae.call(e)):x(e)&&(i(e)?ue:ne).test(e)}function _(e){return x(e)&&y(e.length)&&!!ie[ce.call(e)]}var S=e("lodash._stack"),M=e("lodash.keys"),E=e("lodash._root"),T=1,A=2,C=9007199254740991,L="[object Arguments]",k="[object Array]",F="[object Boolean]",P="[object Date]",R="[object Error]",D="[object Function]",O="[object GeneratorFunction]",U="[object Map]",B="[object Number]",j="[object Object]",$="[object Promise]",N="[object RegExp]",I="[object Set]",V="[object String]",G="[object Symbol]",z="[object WeakMap]",H="[object ArrayBuffer]",W="[object DataView]",X="[object Float32Array]",q="[object Float64Array]",K="[object Int8Array]",Y="[object Int16Array]",Q="[object Int32Array]",Z="[object Uint8Array]",J="[object Uint8ClampedArray]",ee="[object Uint16Array]",te="[object Uint32Array]",re=/[\\^$.*+?()[\]{}|]/g,ne=/^\[object .+?Constructor\]$/,ie={};ie[X]=ie[q]=ie[K]=ie[Y]=ie[Q]=ie[Z]=ie[J]=ie[ee]=ie[te]=!0,ie[L]=ie[k]=ie[H]=ie[F]=ie[W]=ie[P]=ie[R]=ie[D]=ie[U]=ie[B]=ie[j]=ie[N]=ie[I]=ie[V]=ie[z]=!1;var oe=Object.prototype,ae=Function.prototype.toString,se=oe.hasOwnProperty,ce=oe.toString,ue=RegExp("^"+ae.call(se).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),he=E.Symbol,le=E.Uint8Array,fe=Object.getPrototypeOf,pe=p(E,"DataView"),de=p(E,"Map"),me=p(E,"Promise"),ge=p(E,"Set"),ve=p(E,"WeakMap"),ye=pe?pe+"":"",be=de?ae.call(de):"",xe=me?ae.call(me):"",we=ge?ae.call(ge):"",_e=ve?ae.call(ve):"",Se=he?he.prototype:void 0,Me=Se?Se.valueOf:void 0;(pe&&m(new pe(new ArrayBuffer(1)))!=W||de&&m(new de)!=U||me&&m(me.resolve())!=$||ge&&m(new ge)!=I||ve&&m(new ve)!=z)&&(m=function(e){var t=ce.call(e),r=t==j?e.constructor:null,n="function"==typeof r?ae.call(r):"";if(n)switch(n){case ye:return W;case be:return U;case xe:return $;case we:return I;case _e:return z}return t});var Ee=Array.isArray;t.exports=g},{"lodash._root":2,"lodash._stack":3,"lodash.keys":4}],2:[function(e,t,r){(function(e){function n(e){return e&&e.Object===Object?e:null}var i={"function":!0,object:!0},o=i[typeof r]&&r&&!r.nodeType?r:void 0,a=i[typeof t]&&t&&!t.nodeType?t:void 0,s=n(o&&a&&"object"==typeof e&&e),c=n(i[typeof self]&&self),u=n(i[typeof window]&&window),h=n(i[typeof this]&&this),l=s||u!==(h&&h.window)&&u||c||h||Function("return this")();t.exports=l}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(e,t,r){(function(e){function n(e){return e&&e.Object===Object?e:null}function i(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(r){}return t}function o(){}function a(e,t){return c(e,t)&&delete e[t]}function s(e,t){if(re){var r=e[t];return r===O?void 0:r}return Q.call(e,t)?e[t]:void 0}function c(e,t){return re?void 0!==e[t]:Q.call(e,t)}function u(e,t,r){e[t]=re&&void 0===r?O:r}function h(e){var t=-1,r=e?e.length:0;for(this.clear();++tr)return!1;var n=e.length-1;return r==n?e.pop():ee.call(e,r,1),!0}function S(e,t){var r=E(e,t);return 0>r?void 0:e[r][1]}function M(e,t){return E(e,t)>-1}function E(e,t){for(var r=e.length;r--;)if(k(e[r][0],t))return r;return-1}function T(e,t,r){var n=E(e,t);0>n?e.push([t,r]):e[n][1]=r}function A(e,t){var r=e[t];return R(r)?r:void 0}function C(e){var t=typeof e;return"number"==t||"boolean"==t||"string"==t&&"__proto__"!=e||null==e}function L(e){if(null!=e){try{return Y.call(e)}catch(t){}try{return e+""}catch(t){}}return""}function k(e,t){return e===t||e!==e&&t!==t}function F(e){var t=P(e)?Z.call(e):"";return t==U||t==B}function P(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function R(e){if(!P(e))return!1;var t=F(e)||i(e)?J:$;return t.test(L(e))}var D=200,O="__lodash_hash_undefined__",U="[object Function]",B="[object GeneratorFunction]",j=/[\\^$.*+?()[\]{}|]/g,$=/^\[object .+?Constructor\]$/,N={"function":!0,object:!0},I=N[typeof r]&&r&&!r.nodeType?r:void 0,V=N[typeof t]&&t&&!t.nodeType?t:void 0,G=n(I&&V&&"object"==typeof e&&e),z=n(N[typeof self]&&self),H=n(N[typeof window]&&window),W=n(N[typeof this]&&this),X=G||H!==(W&&W.window)&&H||z||W||Function("return this")(),q=Array.prototype,K=Object.prototype,Y=Function.prototype.toString,Q=K.hasOwnProperty,Z=K.toString,J=RegExp("^"+Y.call(Q).replace(j,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ee=q.splice,te=A(X,"Map"),re=A(Object,"create");o.prototype=re?re(null):K,h.prototype.clear=l,h.prototype["delete"]=f,h.prototype.get=p,h.prototype.has=d,h.prototype.set=m,g.prototype.clear=v,g.prototype["delete"]=y,g.prototype.get=b,g.prototype.has=x,g.prototype.set=w,t.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],4:[function(e,t,r){function n(e,t){for(var r=-1,n=Array(e);++r-1&&e%1==0&&t>e}function o(e,t){return A.call(e,t)||"object"==typeof e&&t in e&&null===c(e)}function a(e){return F(Object(e))}function s(e){return function(t){return null==t?void 0:t[e]}}function c(e){return k(Object(e))}function u(e){var t=e?e.length:void 0;return m(t)&&(R(e)||y(e)||l(e))?n(t,String):null}function h(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||T;return e===r}function l(e){return p(e)&&A.call(e,"callee")&&(!L.call(e,"callee")||C.call(e)==w)}function f(e){return null!=e&&m(P(e))&&!d(e)}function p(e){return v(e)&&f(e)}function d(e){var t=g(e)?C.call(e):"";return t==_||t==S}function m(e){return"number"==typeof e&&e>-1&&e%1==0&&x>=e}function g(e){var t=typeof e;return!!e&&("object"==t||"function"==t)}function v(e){return!!e&&"object"==typeof e}function y(e){return"string"==typeof e||!R(e)&&v(e)&&C.call(e)==M}function b(e){var t=h(e);if(!t&&!f(e))return a(e);var r=u(e),n=!!r,s=r||[],c=s.length;for(var l in e)!o(e,l)||n&&("length"==l||i(l,c))||t&&"constructor"==l||s.push(l);return s}var x=9007199254740991,w="[object Arguments]",_="[object Function]",S="[object GeneratorFunction]",M="[object String]",E=/^(?:0|[1-9]\d*)$/,T=Object.prototype,A=T.hasOwnProperty,C=T.toString,L=T.propertyIsEnumerable,k=Object.getPrototypeOf,F=Object.keys,P=s("length"),R=Array.isArray;t.exports=b},{}],5:[function(e,t,r){window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},window.altspace.utilities.behaviors.Object3DSync=function(t){function r(e,t){h=e,l=h.key(),d=h.child("batch"),f=h.child("data"),p=h.child("owner"),m=t}function n(){d.on("value",function(e){if(!g){var r=e.val();r&&(t.position&&c.position.set(r.position.x,r.position.y,r.position.z),t.rotation&&c.quaternion.set(r.quaternion.x,r.quaternion.y,r.quaternion.z,r.quaternion.w),t.scale&&c.scale.set(r.scale.x,r.scale.y,r.scale.z))}}),p.on("value",function(e){var t=e.val(),r=t===m.clientId&&!g;r&&c.dispatchEvent({type:"ownershipgained"});var n=t!==m.clientId&&g;n&&c.dispatchEvent({type:"ownershiplost"}),g=t===m.clientId})}function i(){if(g){var e={};if(t.world?(c.updateMatrixWorld(),c.matrixWorld.decompose(v,y,b)):(v=c.position,y=c.quaternion,b=c.scale),t.position&&(e.position={x:v.x,y:v.y,z:v.z}),t.rotation&&(e.quaternion={x:y.x,y:y.y,z:y.z,w:y.w}),t.scale&&(e.scale={x:b.x,y:b.y,z:b.z}),Object.keys(e).length>0){if(x(e,this.lastTransform))return;d.set(e),this.lastTransform=e}}}function o(e,t){c=e,u=t,n()}function a(e){}function s(){p.set(m.clientId)}t=t||{};var c,u,h,l,f,p,d,m,g=!1,v=new THREE.Vector3,y=new THREE.Quaternion,b=new THREE.Vector3,x=e("lodash.isequal"),w={awake:o,update:a,type:"Object3DSync",link:r,autoSend:i,takeOwnership:s};return Object.defineProperty(w,"dataRef",{get:function(){return f}}),Object.defineProperty(w,"isMine",{get:function(){return g}}),w}},{"lodash.isequal":1}]},{},[5]),/*!Please JS v0.4.2, Jordan Checkman 2014, Checkman.io, MIT License, Have fun.*/ -!function(e,t,r){__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=r,__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}("Please",this,function(){"use strict";function e(){function e(e,t,r){var n=Math.random;return r instanceof a&&(n=r.random),Math.floor(n()*(t-e+1))+e}function t(e,t,r){var n=Math.random;return r instanceof a&&(n=r.random),n()*(t-e)+e}function r(e,t,r){return Math.max(t,Math.min(e,r))}function n(e,t){var r;switch(e){case"hex":for(r=0;r=128?"dark":"light"}function o(e){var t={};for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r]);return t}function a(e){function t(){n=(n+1)%256,i=(i+r[n])%256;var e=r[n];return r[n]=r[i],r[i]=e,r[(r[n]+r[i])%256]}for(var r=[],n=0,i=0,o=0;256>o;o++)r[o]=o;for(var a=0,s=0;256>a;a++){s=(s+r[a]+e.charCodeAt(a%e.length))%256;var c=r[a];r[a]=r[s],r[s]=c}this.random=function(){for(var e=0,r=0,n=1;8>e;e++)r+=t()*n,n*=256;return r/0x10000000000000000}}var s={},c={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"00FFFF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000000",blanchedalmond:"FFEBCD",blue:"0000FF",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"00FFFF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgrey:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dimgrey:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"FF00FF",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",grey:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3D3D3",lightgrey:"D3D3D3",lightgreen:"90EE90",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370D8",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"D87093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",rebeccapurple:"663399",red:"FF0000",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFFFFF",whitesmoke:"F5F5F5",yellow:"FFFF00",yellowgreen:"9ACD32"},u=.618033988749895,h={hue:null,saturation:null,value:null,base_color:"",greyscale:!1,grayscale:!1,golden:!0,full_random:!1,colors_returned:1,format:"hex",seed:null},l={scheme_type:"analogous",format:"hex"},f={golden:!1,format:"hex"};return s.NAME_to_HEX=function(e){return e=e.toLowerCase(),e in c?c[e]:void console.error("Color name not recognized.")},s.NAME_to_RGB=function(e){return s.HEX_to_RGB(s.NAME_to_HEX(e))},s.NAME_to_HSV=function(e){return s.HEX_to_HSV(s.NAME_to_HEX(e))},s.HEX_to_RGB=function(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,r,n){return t+t+r+r+n+n});var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null},s.RGB_to_HEX=function(e){return"#"+((1<<24)+(e.r<<16)+(e.g<<8)+e.b).toString(16).slice(1)},s.HSV_to_RGB=function(e){var t,r,n,i,o,a,s,c,u=e.h,h=e.s,l=e.v;if(0===h)return{r:l,g:l,b:l};switch(u/=60,i=Math.floor(u),o=u-i,a=l*(1-h),s=l*(1-h*o),c=l*(1-h*(1-o)),i){case 0:t=l,r=c,n=a;break;case 1:t=s,r=l,n=a;break;case 2:t=a,r=l,n=c;break;case 3:t=a,r=s,n=l;break;case 4:t=c,r=a,n=l;break;case 5:t=l,r=a,n=s}return{r:Math.floor(255*t),g:Math.floor(255*r),b:Math.floor(255*n)}},s.RGB_to_HSV=function(e){var t=e.r/255,r=e.g/255,n=e.b/255,i=0,o=0,a=0,s=Math.min(t,Math.min(r,n)),c=Math.max(t,Math.max(r,n));if(s===c)return a=s,{h:0,s:0,v:a};var u=t===s?r-n:n===s?t-r:n-t,h=t===s?3:n===s?1:5;return i=60*(h-u/(c-s)),o=(c-s)/c,a=c,{h:i,s:o,v:a}},s.HSV_to_HEX=function(e){return s.RGB_to_HEX(s.HSV_to_RGB(e))},s.HEX_to_HSV=function(e){return s.RGB_to_HSV(s.HEX_to_RGB(e))},s.make_scheme=function(e,t){function i(e){return{h:e.h,s:e.s,v:e.v}}var a,s,c,u,h,f=o(l);if(null!==t)for(var p in t)t.hasOwnProperty(p)&&(f[p]=t[p]);var d=[e];switch(f.scheme_type.toLowerCase()){case"monochromatic":case"mono":for(h=1;2>=h;h++)a=i(e),c=a.s+.1*h,c=r(c,0,1),u=a.v+.1*h,u=r(u,0,1),a.s=c,a.v=u,d.push(a);for(h=1;2>=h;h++)a=i(e),c=a.s-.1*h,c=r(c,0,1),u=a.v-.1*h,u=r(u,0,1),a.s=c,a.v=u,d.push(a);break;case"complementary":case"complement":case"comp":a=i(e),a.h=(a.h+180)%360,d.push(a);break;case"split-complementary":case"split-complement":case"split":a=i(e),a.h=(a.h+165)%360,d.push(a),a=i(e),a.h=Math.abs((a.h-165)%360),d.push(a);break;case"double-complementary":case"double-complement":case"double":a=i(e),a.h=(a.h+180)%360,d.push(a),a.h=(a.h+30)%360,s=i(a),d.push(a),a.h=(a.h+180)%360,d.push(s);break;case"analogous":case"ana":for(h=1;5>=h;h++)a=i(e),a.h=(a.h+20*h)%360,d.push(a);break;case"triadic":case"triad":case"tri":for(h=1;3>h;h++)a=i(e),a.h=(a.h+120*h)%360,d.push(a);break;default:console.error("Color scheme not recognized.")}return n(f.format.toLowerCase(),d),d},s.make_color=function(i){var c=[],l=o(h),f=null;if(null!==i)for(var p in i)i.hasOwnProperty(p)&&(l[p]=i[p]);var d=null;"string"==typeof l.seed&&(d=new a(l.seed)),l.base_color.length>0&&(f=l.base_color.match(/^#?([0-9a-f]{3})([0-9a-f]{3})?$/i)?s.HEX_to_HSV(l.base_color):s.NAME_to_HSV(l.base_color));for(var m=0;mc;c++)r[f[c]]=u[f[c]];for(;".."==l[0];)h.pop(),l.shift();r.path=("/"!=n.substring(0,1)?h.join("/"):"")+"/"+l.join("/")}i(r)},n=function(e){return e=e.replace(/\+/g," "),e=e.replace(/%([ef][0-9a-f])%([89ab][0-9a-f])%([89ab][0-9a-f])/gi,function(e,t,r,n){var i=parseInt(t,16)-224,o=parseInt(r,16)-128;if(0==i&&32>o)return e;var a=parseInt(n,16)-128,s=(i<<12)+(o<<6)+a;return s>65535?e:String.fromCharCode(s)}),e=e.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi,function(e,t,r){var n=parseInt(t,16)-192;if(2>n)return e;var i=parseInt(r,16)-128;return String.fromCharCode((n<<6)+i)}),e=e.replace(/%([0-7][0-9a-f])/gi,function(e,t){return String.fromCharCode(parseInt(t,16))})},i=function(e){var t=e.query;e.query=new function(e){for(var t,r=/([^=&]+)(=([^&]*))?/g;t=r.exec(e);){var i=decodeURIComponent(t[1].replace(/\+/g," ")),o=t[3]?n(t[3]):"";null!=this[i]?(this[i]instanceof Array||(this[i]=[this[i]]),this[i].push(o)):this[i]=o}this.clear=function(){for(i in this)this[i]instanceof Function||delete this[i]},this.toString=function(){var e="",t=encodeURIComponent;for(var r in this)if(!(this[r]instanceof Function))if(this[r]instanceof Array){var n=this[r].length;if(n)for(var i=0;n>i;i++)e+=e?"&":"",e+=t(r)+"="+t(this[r][i]);else e+=(e?"&":"")+t(r)+"="}else e+=e?"&":"",e+=t(r)+"="+t(this[r]);return e}}(t)};return function(e){this.toString=function(){return(this.protocol&&this.protocol+"://")+(this.user&&this.user+(this.pass&&":"+this.pass)+"@")+(this.host&&this.host)+(this.port&&":"+this.port)+(this.path&&this.path)+(this.query.toString()&&"?"+this.query)+(this.hash&&"#"+this.hash)},r(this,e)}}();/*! @license Firebase v2.2.9 +!function(t){function e(n){if(r[n])return r[n].exports;var i=r[n]={exports:{},id:n,loaded:!1};return t[n].call(i.exports,i,i.exports,e),i.loaded=!0,i.exports}var r={};return e.m=t,e.c=r,e.p="/",e(0)}([function(t,e,r){t.exports=r(4)},function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,require,require,require,require,__WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,require,require,require,require,require,require;(function(global){!function(t,e){__WEBPACK_AMD_DEFINE_ARRAY__=[__webpack_require__(2)],__WEBPACK_AMD_DEFINE_FACTORY__=e,__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}(this,function(THREE){!function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return require(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[a]={exports:{}};e[a][0].call(h.exports,function(t){var r=e[a][1][t];return i(r?r:t)},h,h.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a-1}function E(t,e){for(var r=t.length;r--;)if(L(t[r][0],e))return r;return-1}function T(t,e,r){var n=E(t,e);n<0?t.push([e,r]):t[n][1]=r}function A(t,e){var r=t[e];return R(r)?r:void 0}function C(t){var e=typeof t;return"number"==e||"boolean"==e||"string"==e&&"__proto__"!=t||null==t}function L(t,e){return t===e||t!==t&&e!==e}function k(t){var e=F(t)?Z.call(t):"";return e==$||e==j}function F(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function P(t){return!!t&&"object"==typeof t}function R(t){return null!=t&&(k(t)?J.test(Y.call(t)):P(t)&&(i(t)?J:B).test(t))}var D=200,O="__lodash_hash_undefined__",$="[object Function]",j="[object GeneratorFunction]",U=/[\\^$.*+?()[\]{}|]/g,B=/^\[object .+?Constructor\]$/,N={function:!0,object:!0},I=N[typeof r]&&r&&!r.nodeType?r:void 0,V=N[typeof e]&&e&&!e.nodeType?e:void 0,G=n(I&&V&&"object"==typeof t&&t),z=n(N[typeof self]&&self),H=n(N[typeof window]&&window),W=n(N[typeof this]&&this),q=G||H!==(W&&W.window)&&H||z||W||Function("return this")(),X=Array.prototype,K=Object.prototype,Y=Function.prototype.toString,Q=K.hasOwnProperty,Z=K.toString,J=RegExp("^"+Y.call(Q).replace(U,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),tt=X.splice,et=A(q,"Map"),rt=A(Object,"create");o.prototype=rt?rt(null):K,h.prototype.clear=l,h.prototype.delete=f,h.prototype.get=p,h.prototype.has=d,h.prototype.set=m,g.prototype.clear=v,g.prototype.delete=y,g.prototype.get=b,g.prototype.has=x,g.prototype.set=w,e.exports=g}).call(this,"undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{})},{}],3:[function(t,e,r){function n(t,e){for(var r=-1,n=t.length;++rh))return!1;var f=a.get(t);if(f)return f==e;var p=!0;for(a.set(t,e);++s-1&&t%1==0&&t<=C}function b(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function x(t){return!!t&&"object"==typeof t}function w(t){return null!=t&&(v(t)?ut.test(at.call(t)):x(t)&&(i(t)?ut:nt).test(t))}function _(t){return x(t)&&y(t.length)&&!!it[ct.call(t)]}var S=t("lodash._stack"),M=t("lodash.keys"),E=t("lodash._root"),T=1,A=2,C=9007199254740991,L="[object Arguments]",k="[object Array]",F="[object Boolean]",P="[object Date]",R="[object Error]",D="[object Function]",O="[object GeneratorFunction]",$="[object Map]",j="[object Number]",U="[object Object]",B="[object Promise]",N="[object RegExp]",I="[object Set]",V="[object String]",G="[object Symbol]",z="[object WeakMap]",H="[object ArrayBuffer]",W="[object DataView]",q="[object Float32Array]",X="[object Float64Array]",K="[object Int8Array]",Y="[object Int16Array]",Q="[object Int32Array]",Z="[object Uint8Array]",J="[object Uint8ClampedArray]",tt="[object Uint16Array]",et="[object Uint32Array]",rt=/[\\^$.*+?()[\]{}|]/g,nt=/^\[object .+?Constructor\]$/,it={};it[q]=it[X]=it[K]=it[Y]=it[Q]=it[Z]=it[J]=it[tt]=it[et]=!0,it[L]=it[k]=it[H]=it[F]=it[W]=it[P]=it[R]=it[D]=it[$]=it[j]=it[U]=it[N]=it[I]=it[V]=it[z]=!1;var ot=Object.prototype,at=Function.prototype.toString,st=ot.hasOwnProperty,ct=ot.toString,ut=RegExp("^"+at.call(st).replace(rt,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),ht=E.Symbol,lt=E.Uint8Array,ft=Object.getPrototypeOf,pt=p(E,"DataView"),dt=p(E,"Map"),mt=p(E,"Promise"),gt=p(E,"Set"),vt=p(E,"WeakMap"),yt=pt?pt+"":"",bt=dt?at.call(dt):"",xt=mt?at.call(mt):"",wt=gt?at.call(gt):"",_t=vt?at.call(vt):"",St=ht?ht.prototype:void 0,Mt=St?St.valueOf:void 0;(pt&&m(new pt(new ArrayBuffer(1)))!=W||dt&&m(new dt)!=$||mt&&m(mt.resolve())!=B||gt&&m(new gt)!=I||vt&&m(new vt)!=z)&&(m=function(t){var e=ct.call(t),r=e==U?t.constructor:null,n="function"==typeof r?at.call(r):"";if(n)switch(n){case yt:return W;case bt:return $;case xt:return B;case wt:return I;case _t:return z}return e});var Et=Array.isArray;e.exports=g},{"lodash._root":1,"lodash._stack":2,"lodash.keys":4}],4:[function(t,e,r){function n(t,e){for(var r=-1,n=Array(t);++r-1&&t%1==0&&t-1&&t%1==0&&t<=x}function g(t){var e=typeof t;return!!t&&("object"==e||"function"==e)}function v(t){return!!t&&"object"==typeof t}function y(t){return"string"==typeof t||!R(t)&&v(t)&&C.call(t)==M}function b(t){var e=h(t);if(!e&&!f(t))return a(t);var r=u(t),n=!!r,s=r||[],c=s.length;for(var l in t)!o(t,l)||n&&("length"==l||i(l,c))||e&&"constructor"==l||s.push(l);return s}var x=9007199254740991,w="[object Arguments]",_="[object Function]",S="[object GeneratorFunction]",M="[object String]",E=/^(?:0|[1-9]\d*)$/,T=Object.prototype,A=T.hasOwnProperty,C=T.toString,L=T.propertyIsEnumerable,k=Object.getPrototypeOf,F=Object.keys,P=s("length"),R=Array.isArray;e.exports=b},{}],5:[function(t,e,r){window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},window.altspace.utilities.behaviors.Object3DSync=function(e){function r(t,e){h=t,l=h.key(),d=h.child("batch"),f=h.child("data"),p=h.child("owner"),m=e}function n(){d.on("value",function(t){if(!g){var r=t.val();r&&(e.position&&c.position.set(r.position.x,r.position.y,r.position.z),e.rotation&&c.quaternion.set(r.quaternion.x,r.quaternion.y,r.quaternion.z,r.quaternion.w),e.scale&&c.scale.set(r.scale.x,r.scale.y,r.scale.z))}}),p.on("value",function(t){var e=t.val(),r=e===m.clientId&&!g;r&&c.dispatchEvent({type:"ownershipgained"});var n=e!==m.clientId&&g;n&&c.dispatchEvent({type:"ownershiplost"}),g=e===m.clientId})}function i(){if(g){var t={};if(e.world?(c.updateMatrixWorld(),c.matrixWorld.decompose(v,y,b)):(v=c.position,y=c.quaternion,b=c.scale),e.position&&(t.position={x:v.x,y:v.y,z:v.z}),e.rotation&&(t.quaternion={x:y.x,y:y.y,z:y.z,w:y.w}),e.scale&&(t.scale={x:b.x,y:b.y,z:b.z}),Object.keys(t).length>0){if(x(t,this.lastTransform))return;d.set(t),this.lastTransform=t}}}function o(t,e){c=t,u=e,n()}function a(t){}function s(){p.set(m.clientId)}e=e||{};var c,u,h,l,f,p,d,m,g=!1,v=new THREE.Vector3,y=new THREE.Quaternion,b=new THREE.Vector3,x=t("lodash.isequal"),w={awake:o,update:a,type:"Object3DSync",link:r,autoSend:i,takeOwnership:s};return Object.defineProperty(w,"dataRef",{get:function(){return f}}),Object.defineProperty(w,"isMine",{get:function(){return g}}),w}},{"lodash.isequal":3}]},{},[5]),/*!Please JS v0.4.2, Jordan Checkman 2014, Checkman.io, MIT License, Have fun.*/ +!function(t,e,r){__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_FACTORY__=r,__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof __WEBPACK_AMD_DEFINE_FACTORY__?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__,!(void 0!==__WEBPACK_AMD_DEFINE_RESULT__&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__))}("Please",this,function(){"use strict";function t(){function t(t,e,r){var n=Math.random;return r instanceof a&&(n=r.random),Math.floor(n()*(e-t+1))+t}function e(t,e,r){var n=Math.random;return r instanceof a&&(n=r.random),n()*(e-t)+t}function r(t,e,r){return Math.max(e,Math.min(t,r))}function n(t,e){var r;switch(t){case"hex":for(r=0;r=128?"dark":"light"}function o(t){var e={};for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);return e}function a(t){function e(){n=(n+1)%256,i=(i+r[n])%256;var t=r[n];return r[n]=r[i],r[i]=t,r[(r[n]+r[i])%256]}for(var r=[],n=0,i=0,o=0;256>o;o++)r[o]=o;for(var a=0,s=0;256>a;a++){s=(s+r[a]+t.charCodeAt(a%t.length))%256;var c=r[a];r[a]=r[s],r[s]=c}this.random=function(){for(var t=0,r=0,n=1;8>t;t++)r+=e()*n,n*=256;return r/0x10000000000000000}}var s={},c={aliceblue:"F0F8FF",antiquewhite:"FAEBD7",aqua:"00FFFF",aquamarine:"7FFFD4",azure:"F0FFFF",beige:"F5F5DC",bisque:"FFE4C4",black:"000000",blanchedalmond:"FFEBCD",blue:"0000FF",blueviolet:"8A2BE2",brown:"A52A2A",burlywood:"DEB887",cadetblue:"5F9EA0",chartreuse:"7FFF00",chocolate:"D2691E",coral:"FF7F50",cornflowerblue:"6495ED",cornsilk:"FFF8DC",crimson:"DC143C",cyan:"00FFFF",darkblue:"00008B",darkcyan:"008B8B",darkgoldenrod:"B8860B",darkgray:"A9A9A9",darkgrey:"A9A9A9",darkgreen:"006400",darkkhaki:"BDB76B",darkmagenta:"8B008B",darkolivegreen:"556B2F",darkorange:"FF8C00",darkorchid:"9932CC",darkred:"8B0000",darksalmon:"E9967A",darkseagreen:"8FBC8F",darkslateblue:"483D8B",darkslategray:"2F4F4F",darkslategrey:"2F4F4F",darkturquoise:"00CED1",darkviolet:"9400D3",deeppink:"FF1493",deepskyblue:"00BFFF",dimgray:"696969",dimgrey:"696969",dodgerblue:"1E90FF",firebrick:"B22222",floralwhite:"FFFAF0",forestgreen:"228B22",fuchsia:"FF00FF",gainsboro:"DCDCDC",ghostwhite:"F8F8FF",gold:"FFD700",goldenrod:"DAA520",gray:"808080",grey:"808080",green:"008000",greenyellow:"ADFF2F",honeydew:"F0FFF0",hotpink:"FF69B4",indianred:"CD5C5C",indigo:"4B0082",ivory:"FFFFF0",khaki:"F0E68C",lavender:"E6E6FA",lavenderblush:"FFF0F5",lawngreen:"7CFC00",lemonchiffon:"FFFACD",lightblue:"ADD8E6",lightcoral:"F08080",lightcyan:"E0FFFF",lightgoldenrodyellow:"FAFAD2",lightgray:"D3D3D3",lightgrey:"D3D3D3",lightgreen:"90EE90",lightpink:"FFB6C1",lightsalmon:"FFA07A",lightseagreen:"20B2AA",lightskyblue:"87CEFA",lightslategray:"778899",lightslategrey:"778899",lightsteelblue:"B0C4DE",lightyellow:"FFFFE0",lime:"00FF00",limegreen:"32CD32",linen:"FAF0E6",magenta:"FF00FF",maroon:"800000",mediumaquamarine:"66CDAA",mediumblue:"0000CD",mediumorchid:"BA55D3",mediumpurple:"9370D8",mediumseagreen:"3CB371",mediumslateblue:"7B68EE",mediumspringgreen:"00FA9A",mediumturquoise:"48D1CC",mediumvioletred:"C71585",midnightblue:"191970",mintcream:"F5FFFA",mistyrose:"FFE4E1",moccasin:"FFE4B5",navajowhite:"FFDEAD",navy:"000080",oldlace:"FDF5E6",olive:"808000",olivedrab:"6B8E23",orange:"FFA500",orangered:"FF4500",orchid:"DA70D6",palegoldenrod:"EEE8AA",palegreen:"98FB98",paleturquoise:"AFEEEE",palevioletred:"D87093",papayawhip:"FFEFD5",peachpuff:"FFDAB9",peru:"CD853F",pink:"FFC0CB",plum:"DDA0DD",powderblue:"B0E0E6",purple:"800080",rebeccapurple:"663399",red:"FF0000",rosybrown:"BC8F8F",royalblue:"4169E1",saddlebrown:"8B4513",salmon:"FA8072",sandybrown:"F4A460",seagreen:"2E8B57",seashell:"FFF5EE",sienna:"A0522D",silver:"C0C0C0",skyblue:"87CEEB",slateblue:"6A5ACD",slategray:"708090",slategrey:"708090",snow:"FFFAFA",springgreen:"00FF7F",steelblue:"4682B4",tan:"D2B48C",teal:"008080",thistle:"D8BFD8",tomato:"FF6347",turquoise:"40E0D0",violet:"EE82EE",wheat:"F5DEB3",white:"FFFFFF",whitesmoke:"F5F5F5",yellow:"FFFF00",yellowgreen:"9ACD32"},u=.618033988749895,h={hue:null,saturation:null,value:null,base_color:"",greyscale:!1,grayscale:!1,golden:!0,full_random:!1,colors_returned:1,format:"hex",seed:null},l={scheme_type:"analogous",format:"hex"},f={golden:!1,format:"hex"};return s.NAME_to_HEX=function(t){return t=t.toLowerCase(),t in c?c[t]:void console.error("Color name not recognized.")},s.NAME_to_RGB=function(t){return s.HEX_to_RGB(s.NAME_to_HEX(t))},s.NAME_to_HSV=function(t){return s.HEX_to_HSV(s.NAME_to_HEX(t))},s.HEX_to_RGB=function(t){var e=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;t=t.replace(e,function(t,e,r,n){return e+e+r+r+n+n});var r=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(t);return r?{r:parseInt(r[1],16),g:parseInt(r[2],16),b:parseInt(r[3],16)}:null},s.RGB_to_HEX=function(t){return"#"+((1<<24)+(t.r<<16)+(t.g<<8)+t.b).toString(16).slice(1)},s.HSV_to_RGB=function(t){var e,r,n,i,o,a,s,c,u=t.h,h=t.s,l=t.v;if(0===h)return{r:l,g:l,b:l};switch(u/=60,i=Math.floor(u),o=u-i,a=l*(1-h),s=l*(1-h*o),c=l*(1-h*(1-o)),i){case 0:e=l,r=c,n=a;break;case 1:e=s,r=l,n=a;break;case 2:e=a,r=l,n=c;break;case 3:e=a,r=s,n=l;break;case 4:e=c,r=a,n=l;break;case 5:e=l,r=a,n=s}return{r:Math.floor(255*e),g:Math.floor(255*r),b:Math.floor(255*n)}},s.RGB_to_HSV=function(t){var e=t.r/255,r=t.g/255,n=t.b/255,i=0,o=0,a=0,s=Math.min(e,Math.min(r,n)),c=Math.max(e,Math.max(r,n));if(s===c)return a=s,{h:0,s:0,v:a};var u=e===s?r-n:n===s?e-r:n-e,h=e===s?3:n===s?1:5;return i=60*(h-u/(c-s)),o=(c-s)/c,a=c,{h:i,s:o,v:a}},s.HSV_to_HEX=function(t){return s.RGB_to_HEX(s.HSV_to_RGB(t))},s.HEX_to_HSV=function(t){return s.RGB_to_HSV(s.HEX_to_RGB(t))},s.make_scheme=function(t,e){function i(t){return{h:t.h,s:t.s,v:t.v}}var a,s,c,u,h,f=o(l);if(null!==e)for(var p in e)e.hasOwnProperty(p)&&(f[p]=e[p]);var d=[t];switch(f.scheme_type.toLowerCase()){case"monochromatic":case"mono":for(h=1;2>=h;h++)a=i(t),c=a.s+.1*h,c=r(c,0,1),u=a.v+.1*h,u=r(u,0,1),a.s=c,a.v=u,d.push(a);for(h=1;2>=h;h++)a=i(t),c=a.s-.1*h,c=r(c,0,1),u=a.v-.1*h,u=r(u,0,1),a.s=c,a.v=u,d.push(a);break;case"complementary":case"complement":case"comp":a=i(t),a.h=(a.h+180)%360,d.push(a);break;case"split-complementary":case"split-complement":case"split":a=i(t),a.h=(a.h+165)%360,d.push(a),a=i(t),a.h=Math.abs((a.h-165)%360),d.push(a);break;case"double-complementary":case"double-complement":case"double":a=i(t),a.h=(a.h+180)%360,d.push(a),a.h=(a.h+30)%360,s=i(a),d.push(a),a.h=(a.h+180)%360,d.push(s);break;case"analogous":case"ana":for(h=1;5>=h;h++)a=i(t),a.h=(a.h+20*h)%360,d.push(a);break;case"triadic":case"triad":case"tri":for(h=1;3>h;h++)a=i(t),a.h=(a.h+120*h)%360,d.push(a);break;default:console.error("Color scheme not recognized.")}return n(f.format.toLowerCase(),d),d},s.make_color=function(i){var c=[],l=o(h),f=null;if(null!==i)for(var p in i)i.hasOwnProperty(p)&&(l[p]=i[p]);var d=null;"string"==typeof l.seed&&(d=new a(l.seed)),l.base_color.length>0&&(f=l.base_color.match(/^#?([0-9a-f]{3})([0-9a-f]{3})?$/i)?s.HEX_to_HSV(l.base_color):s.NAME_to_HSV(l.base_color));for(var m=0;m65535?t:String.fromCharCode(s)}),t=t.replace(/%([cd][0-9a-f])%([89ab][0-9a-f])/gi,function(t,e,r){var n=parseInt(e,16)-192;if(n<2)return t;var i=parseInt(r,16)-128;return String.fromCharCode((n<<6)+i)}),t=t.replace(/%([0-7][0-9a-f])/gi,function(t,e){return String.fromCharCode(parseInt(e,16))})},i=function(t){var e=t.query;t.query=new function(t){for(var e,r=/([^=&]+)(=([^&]*))?/g;e=r.exec(t);){var i=decodeURIComponent(e[1].replace(/\+/g," ")),o=e[3]?n(e[3]):"";null!=this[i]?(this[i]instanceof Array||(this[i]=[this[i]]),this[i].push(o)):this[i]=o}this.clear=function(){for(i in this)this[i]instanceof Function||delete this[i]},this.toString=function(){var t="",e=encodeURIComponent;for(var r in this)if(!(this[r]instanceof Function))if(this[r]instanceof Array){var n=this[r].length;if(n)for(var i=0;io;o++)r.push(i),i=t[o],Ca(e,e.Sd?e.Sd.call(t,String(o),i):i,r),i=",";r.push("]");break}r.push("{"),n="";for(o in t)Object.prototype.hasOwnProperty.call(t,o)&&(i=t[o],"function"!=typeof i&&(r.push(n),Da(o,r),r.push(":"),Ca(e,e.Sd?e.Sd.call(t,o,i):i,r),n=","));r.push("}");break;case"function":break;default:throw Error("Unknown type: "+typeof t)}}function Da(e,t){t.push('"',e.replace(Fa,function(e){if(e in Ea)return Ea[e];var t=e.charCodeAt(0),r="\\u";return 16>t?r+="000":256>t?r+="00":4096>t&&(r+="0"),Ea[e]=r+t.toString(16)}),'"')}function Ga(){return Math.floor(2147483648*Math.random()).toString(36)+Math.abs(Math.floor(2147483648*Math.random())^la()).toString(36)}function Ka(){this.Wa=-1}function La(){this.Wa=-1,this.Wa=64,this.P=[],this.ne=[],this.Uf=[],this.Ld=[],this.Ld[0]=128;for(var e=1;ei;i++)n[i]=t.charCodeAt(r)<<24|t.charCodeAt(r+1)<<16|t.charCodeAt(r+2)<<8|t.charCodeAt(r+3),r+=4;else for(i=0;16>i;i++)n[i]=t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3],r+=4;for(i=16;80>i;i++){var o=n[i-3]^n[i-8]^n[i-14]^n[i-16];n[i]=4294967295&(o<<1|o>>>31)}t=e.P[0],r=e.P[1];for(var a,s=e.P[2],c=e.P[3],u=e.P[4],i=0;80>i;i++)40>i?20>i?(o=c^r&(s^c),a=1518500249):(o=r^s^c,a=1859775393):60>i?(o=r&s|c&(r|s),a=2400959708):(o=r^s^c,a=3395469782),o=(t<<5|t>>>27)+o+u+a+n[i]&4294967295,u=c,c=s,s=4294967295&(r<<30|r>>>2),r=t,t=o;e.P[0]=e.P[0]+t&4294967295,e.P[1]=e.P[1]+r&4294967295,e.P[2]=e.P[2]+s&4294967295,e.P[3]=e.P[3]+c&4294967295,e.P[4]=e.P[4]+u&4294967295}function Ta(e,t){var r=Ua(e,t,void 0);return 0>r?null:p(e)?e.charAt(r):e[r]}function Ua(e,t,r){for(var n=e.length,i=p(e)?e.split(""):e,o=0;n>o;o++)if(o in i&&t.call(r,i[o],o,e))return o;return-1}function Va(e,t){var r=Na(e,t);r>=0&&u.splice.call(e,r,1)}function Wa(e,t,r){return 2>=arguments.length?u.slice.call(e,t):u.slice.call(e,t,r)}function Xa(e,t){e.sort(t||Ya)}function Ya(e,t){return e>t?1:t>e?-1:0}function fb(e,t){if(!fa(e))throw Error("encodeByteArray takes an array as a parameter");gb();for(var r=t?db:cb,n=[],i=0;i>2,o=(3&o)<<4|s>>4,s=(15&s)<<2|u>>6,u=63&u;c||(u=64,a||(s=64)),n.push(r[h],r[o],r[s],r[u])}return n.join("")}function gb(){if(!cb){cb={},db={},eb={};for(var e=0;65>e;e++)cb[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e),db[e]="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_.".charAt(e),eb[db[e]]=e,e>=62&&(eb["ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=".charAt(e)]=e)}}function v(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function w(e,t){return Object.prototype.hasOwnProperty.call(e,t)?e[t]:void 0}function ib(e,t){for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t(r,e[r])}function jb(e){var t={};return ib(e,function(e,r){t[e]=r}),t}function kb(e){var t=[];return ib(e,function(e,r){ea(r)?Oa(r,function(r){t.push(encodeURIComponent(e)+"="+encodeURIComponent(r))}):t.push(encodeURIComponent(e)+"="+encodeURIComponent(r))}),t.length?"&"+t.join("&"):""}function lb(e){var t={};return e=e.replace(/^\?/,"").split("&"),Oa(e,function(e){e&&(e=e.split("="),t[e[0]]=e[1])}),t}function x(e,t,r,n){var i;if(t>n?i="at least "+t:n>r&&(i=0===r?"none":"no more than "+r),i)throw Error(e+" failed: Was called with "+n+(1===n?" argument.":" arguments.")+" Expects "+i+".")}function z(e,t,r){var n="";switch(t){case 1:n=r?"first":"First";break;case 2:n=r?"second":"Second";break;case 3:n=r?"third":"Third";break;case 4:n=r?"fourth":"Fourth";break;default:throw Error("errorPrefix called with argumentNumber > 4. Need to update it?")}return e=e+" failed: "+(n+" argument ")}function A(e,t,r,i){if((!i||n(r))&&!ha(r))throw Error(z(e,t,i)+"must be a valid function.")}function mb(e,t,r){if(n(r)&&(!ia(r)||null===r))throw Error(z(e,t,!0)+"must be a valid context object.")}function nb(e){return"undefined"!=typeof JSON&&n(JSON.parse)?JSON.parse(e):Aa(e)}function B(e){if("undefined"!=typeof JSON&&n(JSON.stringify))e=JSON.stringify(e);else{var t=[];Ca(new Ba,e,t),e=t.join("")}return e}function ob(){this.Wd=C}function pb(){}function rb(e,t,r){this.Rf=e,this.Ka=t,this.Kd=r}function vb(){this.ub=[]}function wb(e,t){for(var r=null,n=0;nr?n=n.left:r>0&&(i=n,n=n.right)}throw Error("Attempted to find predecessor key for a nonexistent key. What gives?")}function cc(e,t,r,n,i){for(this.Ud=i||null,this.Ge=n,this.Qa=[],i=1;!e.e();)if(i=t?r(e.key,t):1,n&&(i*=-1),0>i)e=this.Ge?e.left:e.right;else{if(0===i){this.Qa.push(e);break}this.Qa.push(e),e=this.Ge?e.right:e.left}}function J(e){if(0===e.Qa.length)return null;var t,r=e.Qa.pop();if(t=e.Ud?e.Ud(r.key,r.value):{key:r.key,value:r.value},e.Ge)for(r=r.left;!r.e();)e.Qa.push(r),r=r.right;else for(r=r.right;!r.e();)e.Qa.push(r),r=r.left;return t}function dc(e){if(0===e.Qa.length)return null;var t;return t=e.Qa,t=t[t.length-1],e.Ud?e.Ud(t.key,t.value):{key:t.key,value:t.value}}function ec(e,t,r,n,i){this.key=e,this.value=t,this.color=null!=r?r:!0,this.left=null!=n?n:ac,this.right=null!=i?i:ac}function fc(e){return e.left.e()?e:fc(e.left)}function hc(e){return e.left.e()?ac:(e.left.fa()||e.left.left.fa()||(e=ic(e)),e=e.X(null,null,null,hc(e.left),null),gc(e))}function gc(e){return e.right.fa()&&!e.left.fa()&&(e=lc(e)),e.left.fa()&&e.left.left.fa()&&(e=jc(e)),e.left.fa()&&e.right.fa()&&(e=kc(e)),e}function ic(e){return e=kc(e),e.right.left.fa()&&(e=e.X(null,null,null,null,jc(e.right)),e=lc(e),e=kc(e)),e}function lc(e){return e.right.X(null,null,e.color,e.X(null,null,!0,null,e.right.left),null)}function jc(e){return e.left.X(null,null,e.color,null,e.X(null,null,!0,e.left.right,null))}function kc(e){return e.X(null,null,!e.color,e.left.X(null,null,!e.left.color,null,null),e.right.X(null,null,!e.right.color,null,null))}function mc(){}function nc(e,t){return e&&"object"==typeof e?(K(".sv"in e,"Unexpected leaf node or priority contents"),t[e[".sv"]]):e}function oc(e,t){var r=new pc;return qc(e,new L(""),function(e,n){r.nc(e,rc(n,t))}),r}function rc(e,t){var r,n=e.B().H(),n=nc(n,t);if(e.L()){var i=nc(e.Ca(),t);return i!==e.Ca()||n!==e.B().H()?new sc(i,M(n)):e}return r=e,n!==e.B().H()&&(r=r.ga(new sc(n))),e.R(N,function(e,n){var i=rc(n,t);i!==n&&(r=r.O(e,i))}),r}function L(e,t){if(1==arguments.length){this.n=e.split("/");for(var r=0,n=0;n=e.n.length?null:e.n[e.Z]}function tc(e){return e.n.length-e.Z}function H(e){var t=e.Z;return t>4),64!=s&&(n.push(a<<4&240|s>>2),64!=c&&n.push(s<<6&192|c))}if(8192>n.length)t=String.fromCharCode.apply(null,n);else{for(e="",r=0;re.ac?e.update(e.Ld,56-e.ac):e.update(e.Ld,e.Wa-(e.ac-56));for(var n=e.Wa-1;n>=56;n--)e.ne[n]=255&r,r/=256;for(Ma(e,e.ne),n=r=0;5>n;n++)for(var i=24;i>=0;i-=8)t[r]=e.P[n]>>i&255,++r;return fb(t)}function Kc(e){for(var t="",r=0;r=0&&(a=e.substring(0,c-1),e=e.substring(c+2)),c=e.indexOf("/"),-1===c&&(c=e.length),t=e.substring(0,c),i="",e=e.substring(c).split("/"),c=0;c=0&&(o="https"===a||"wss"===a,s=t.substring(c+1),isFinite(s)&&(s=String(s)),s=p(s)?/^\s*-?0x/i.test(s)?parseInt(s,16):parseInt(s,10):NaN)}return{host:t,port:s,domain:r,Rg:n,lb:o,scheme:a,$c:i}}function Rc(e){return ga(e)&&(e!=e||e==Number.POSITIVE_INFINITY||e==Number.NEGATIVE_INFINITY)}function Sc(e){if("complete"===document.readyState)e();else{var t=!1,r=function(){document.body?t||(t=!0,e()):setTimeout(r,Math.floor(10))};document.addEventListener?(document.addEventListener("DOMContentLoaded",r,!1),window.addEventListener("load",r,!1)):document.attachEvent&&(document.attachEvent("onreadystatechange",function(){"complete"===document.readyState&&r()}),window.attachEvent("onload",r))}}function Ub(e,t){if(e===t)return 0;if("[MIN_NAME]"===e||"[MAX_NAME]"===t)return-1;if("[MIN_NAME]"===t||"[MAX_NAME]"===e)return 1;var r=Tc(e),n=Tc(t);return null!==r?null!==n?0==r-n?e.length-t.length:r-n:-1:null!==n?1:t>e?-1:1}function Uc(e,t){if(t&&e in t)return t[e];throw Error("Missing required key ("+e+") in object: "+B(t))}function Vc(e){if("object"!=typeof e||null===e)return B(e);var t,r=[];for(t in e)r.push(t);r.sort(),t="{";for(var n=0;ne?r.push(e.substring(n,e.length)):r.push(e.substring(n,n+t));return r}function Xc(e,t){if(ea(e))for(var n=0;ne,e=Math.abs(e),e>=Math.pow(2,-1022)?(n=Math.min(Math.floor(Math.log(e)/Math.LN2),1023),r=n+1023,n=Math.round(e*Math.pow(2,52-n)-Math.pow(2,52))):(r=0,n=Math.round(e/Math.pow(2,-1074)))),i=[],e=52;e;--e)i.push(n%2?1:0),n=Math.floor(n/2);for(e=11;e;--e)i.push(r%2?1:0),r=Math.floor(r/2);for(i.push(t?1:0),i.reverse(),t=i.join(""),r="",e=0;64>e;e+=8)n=parseInt(t.substr(e,8),2).toString(16),1===n.length&&(n="0"+n),r+=n;return r.toLowerCase()}function Tc(e){return Zc.test(e)&&(e=Number(e),e>=-2147483648&&2147483647>=e)?e:null}function Db(e){try{e()}catch(t){setTimeout(function(){throw Q("Exception was thrown by user callback.",t.stack||""),t},Math.floor(0))}}function R(e,t){if(ha(e)){var r=Array.prototype.slice.call(arguments,1).slice();Db(function(){e.apply(null,r)})}}function Jc(e){for(var t=[],r=0,n=0;n=55296&&56319>=i&&(i-=55296,n++,K(ni?t[r++]=i:(2048>i?t[r++]=i>>6|192:(65536>i?t[r++]=i>>12|224:(t[r++]=i>>18|240,t[r++]=i>>12&63|128),t[r++]=i>>6&63|128),t[r++]=63&i|128)}return t}function wc(e){for(var t=0,r=0;rn?t++:2048>n?t+=2:n>=55296&&56319>=n?(t+=4,r++):t+=3}return t}function $c(e){var t={},r={},n={},i="";try{var o=e.split("."),t=nb(Hc(o[0])||""),r=nb(Hc(o[1])||""),i=o[2],n=r.d||{};delete r.d}catch(a){}return{Xg:t,Bc:r,data:n,Og:i}}function ad(e){return e=$c(e).Bc,"object"==typeof e&&e.hasOwnProperty("iat")?w(e,"iat"):null}function bd(e){e=$c(e);var t=e.Bc;return!!e.Og&&!!t&&"object"==typeof t&&t.hasOwnProperty("iat")}function cd(e){this.V=e,this.g=e.o.g}function dd(e,t,r,n){var i=[],o=[];return Oa(t,function(t){"child_changed"===t.type&&e.g.Ad(t.Le,t.Ja)&&o.push(new D("child_moved",t.Ja,t.Xa))}),ed(e,i,"child_removed",t,n,r),ed(e,i,"child_added",t,n,r),ed(e,i,"child_moved",o,n,r),ed(e,i,"child_changed",t,n,r),ed(e,i,Fb,t,n,r),i}function ed(e,t,r,n,i,o){n=Pa(n,function(e){return e.type===r}),Xa(n,q(e.fg,e)),Oa(n,function(r){var n=fd(e,r,o);Oa(i,function(i){i.Kf(r.type)&&t.push(i.createEvent(n,e.V))})})}function fd(e,t,r){return"value"!==t.type&&"child_removed"!==t.type&&(t.Qd=r.rf(t.Xa,t.Ja,e.g)),t}function gd(){this.bb={}}function hd(e,t){var r=t.type,n=t.Xa;K("child_added"==r||"child_changed"==r||"child_removed"==r,"Only child changes supported for tracking"),K(".priority"!==n,"Only non-priority child changes can be tracked.");var i=w(e.bb,n);if(i){var o=i.type;if("child_added"==r&&"child_removed"==o)e.bb[n]=new D("child_changed",t.Ja,n,i.Ja);else if("child_removed"==r&&"child_added"==o)delete e.bb[n];else if("child_removed"==r&&"child_changed"==o)e.bb[n]=new D("child_removed",i.Le,n);else if("child_changed"==r&&"child_added"==o)e.bb[n]=new D("child_added",t.Ja,n);else{if("child_changed"!=r||"child_changed"!=o)throw Gc("Illegal combination of changes: "+t+" occurred after "+i);e.bb[n]=new D("child_changed",t.Ja,n,i.Le)}}else e.bb[n]=t}function id(e,t,r){this.Rb=e,this.qb=t,this.sb=r||null}function jd(e,t,r){this.ha=e,this.qb=t,this.sb=r}function kd(e){this.g=e}function ld(e){this.Ce=new kd(e.g),this.g=e.g;var t;e.ma?(t=md(e),t=e.g.Pc(nd(e),t)):t=e.g.Tc(),this.ed=t,e.pa?(t=od(e),e=e.g.Pc(pd(e),t)):e=e.g.Qc(),this.Gc=e}function qd(e){this.sa=new ld(e),this.g=e.g,K(e.ja,"Only valid if limit has been set"),this.ka=e.ka,this.Jb=!rd(e)}function sd(e,t,r,n,i,o){var a;if(e.Jb){var s=td(e.g);a=function(e,t){return s(t,e)}}else a=td(e.g);K(t.Eb()==e.ka,"");var c=new F(r,n),u=e.Jb?ud(t,e.g):vd(t,e.g),h=e.sa.matches(c);if(t.Da(r)){for(var l=t.J(r),u=i.ze(e.g,u,e.Jb);null!=u&&(u.name==r||t.Da(u.name));)u=i.ze(e.g,u,e.Jb);return i=null==u?1:a(u,c),h&&!n.e()&&i>=0?(null!=o&&hd(o,new D("child_changed",n,r,l)),t.O(r,n)):(null!=o&&hd(o,new D("child_removed",l,r)),t=t.O(r,C),null!=u&&e.sa.matches(u)?(null!=o&&hd(o,new D("child_added",u.S,u.name)),t.O(u.name,u.S)):t)}return n.e()?t:h&&0<=a(u,c)?(null!=o&&(hd(o,new D("child_removed",u.S,u.name)),hd(o,new D("child_added",n,r))),t.O(r,n).O(u.name,C)):t}function wd(e,t){this.ke=e,this.dg=t}function yd(e){this.U=e}function Hd(e,t,r,n,i,o){var a=t.Q;if(null!=n.tc(r))return t;var s;if(r.e())K(Ib(t.C()),"If change path is empty, we must have complete server data"),t.C().Ub?(i=ub(t),n=n.yc(i instanceof T?i:C)):n=n.za(ub(t)),o=e.U.xa(t.Q.j(),n,o);else{var c=E(r);if(".priority"==c)K(1==tc(r),"Can't have a priority with additional path components"),o=a.j(),s=t.C().j(),n=n.ld(r,o,s),o=null!=n?e.U.ga(o,n):a.j();else{var u=H(r);sb(a,c)?(s=t.C().j(),n=n.ld(r,a.j(),s),n=null!=n?a.j().J(c).K(u,n):a.j().J(c)):n=n.xc(c,t.C()),o=null!=n?e.U.K(a.j(),c,n,u,i,o):a.j()}}return Fd(t,o,a.ea||r.e(),e.U.Na())}function Ad(e,t,r,n,i,o,a,s){var c=t.C();if(a=a?e.U:e.U.Wb(),r.e())n=a.xa(c.j(),n,null);else if(a.Na()&&!c.Ub)n=c.j().K(r,n),n=a.xa(c.j(),n,null);else{var u=E(r);if(!Jb(c,r)&&1o.status){try{t=nb(o.responseText)}catch(r){Q("Failed to parse JSON response for "+i+": "+o.responseText)}n(null,t)}else 401!==o.status&&404!==o.status&&Q("Got unsuccessful REST response for "+i+" Status: "+o.status),n(o.status);n=null}},o.open("GET",i,!0),o.send()}function Be(e,t){this.value=e,this.children=t||Ce}function De(e){var t=Nd;return r(e,function(e,r){t=t.set(new L(r),e)}),t}function Ee(e,t,r){if(null!=e.value&&r(e.value))return{path:G,value:e.value};if(t.e())return null;var n=E(t);return e=e.children.get(n),null!==e?(t=Ee(e,H(t),r),null!=t?{path:new L(n).u(t.path),value:t.value}:null):null}function Fe(e,t){return Ee(e,t,function(){return!0})}function Md(e,t,r){if(t.e())return r;var n=E(t);return t=Md(e.children.get(n)||Nd,H(t),r),n=t.e()?e.children.remove(n):e.children.Oa(n,t),new Be(e.value,n)}function Ge(e,t){return He(e,G,t)}function He(e,t,r){var n={};return e.children.ia(function(e,i){n[e]=He(i,t.u(e),r)}),r(t,e.value,n)}function Ie(e,t,r){return Je(e,t,G,r)}function Je(e,t,r,n){var i=e.value?n(r,e.value):!1;return i?i:t.e()?null:(i=E(t),(e=e.children.get(i))?Je(e,H(t),r.u(i),n):null)}function Ke(e,t,r){var n=G;if(!t.e()){var i=!0;e.value&&(i=r(n,e.value)),!0===i&&(i=E(t),(e=e.children.get(i))&&Le(e,H(t),n.u(i),r))}}function Le(e,t,r,n){if(t.e())return e;e.value&&n(r,e.value);var i=E(t);return(e=e.children.get(i))?Le(e,H(t),r.u(i),n):Nd}function Kd(e,t){Me(e,G,t)}function Me(e,t,r){e.children.ia(function(e,n){Me(n,t.u(e),r)}),e.value&&r(t,e.value)}function Ne(e,t){e.children.ia(function(e,r){r.value&&t(e,r.value)})}function Oe(e,t,r){this.type=Ed,this.source=Pe,this.path=e,this.Qb=t,this.Vd=r}function Qe(e,t,r,n){this.xe=e,this.pf=t,this.Ib=r,this.bf=n,K(!n||t,"Tagged queries must be from server.")}function Se(e){this.W=e}function Ue(e,t,r){if(t.e())return new Se(new Be(r));var n=Fe(e.W,t);if(null!=n){var i=n.path,n=n.value;return t=O(i,t),n=n.K(t,r),new Se(e.W.set(i,n))}return e=Md(e.W,t,new Be(r)),new Se(e)}function Ve(e,t,r){var n=e;return ib(r,function(e,r){n=Ue(n,t.u(e),r)}),n}function We(e,t){var r=Fe(e.W,t);return null!=r?e.W.get(r.path).Y(O(r.path,t)):null}function Xe(e){var t=[],r=e.W.value;return null!=r?r.L()||r.R(N,function(e,r){t.push(new F(e,r))}):e.W.children.ia(function(e,r){null!=r.value&&t.push(new F(e,r.value))}),t}function Ye(e,t){if(t.e())return e;var r=We(e,t);return new Se(null!=r?new Be(r):e.W.subtree(t))}function Ze(e,t,r){if(null!=t.value)return r.K(e,t.value);var n=null;return t.children.ia(function(t,i){".priority"===t?(K(null!==i.value,"Priority writes must always be leaf nodes"),n=i.value):r=Ze(e.u(t),i,r)}),r.Y(e).e()||null===n||(r=r.K(e.u(".priority"),n)),r}function $e(){this.T=Te,this.na=[],this.Mc=-1}function af(e,t){for(var r=0;ra.Mc,"Stacking an older write on top of newer ones"),n(s)||(s=!0),a.na.push({path:t,Ga:r,kd:i,visible:s}),s&&(a.T=Ue(a.T,t,r)),a.Mc=i,o?mf(e,new Wb(Pe,t,r)):[]}function nf(e,t,r,n){var i=e.jb;return K(n>i.Mc,"Stacking an older merge on top of newer ones"),i.na.push({path:t,children:r,kd:n,visible:!0}),i.T=Ve(i.T,t,r),i.Mc=n,r=De(r),mf(e,new xe(Pe,t,r))}function of(e,t,r){r=r||!1;var n=af(e.jb,t);if(e.jb.Rd(t)){var i=Nd;return null!=n.Ga?i=i.set(G,!0):ib(n.children,function(e,t){i=i.set(new L(e),t)}),mf(e,new Oe(n.path,i,r))}return[]}function pf(e,t,r){return r=De(r),mf(e,new xe(Re,t,r))}function qf(e,t,r,n){if(n=rf(e,n),null!=n){var i=sf(n);return n=i.path,i=i.Ib,t=O(n,t),r=new Wb(new Qe(!1,!0,i,!0),t,r),tf(e,n,r)}return[]}function uf(e,t,r,n){if(n=rf(e,n)){var i=sf(n);return n=i.path,i=i.Ib,t=O(n,t),r=De(r),r=new xe(new Qe(!1,!0,i,!0),t,r),tf(e,n,r)}return[]}function yf(e){return Ge(e,function(e,t,n){if(t&&null!=gf(t))return[gf(t)];var i=[];return t&&(i=hf(t)),r(n,function(e){i=i.concat(e)}),i})}function Bf(e,t){for(var r=0;r10485760/3&&10485760=e}else if(-1=e;return!1}function tg(){var e,t=window.opener.frames;for(e=t.length-1;e>=0;e--)try{if(t[e].location.protocol===window.location.protocol&&t[e].location.host===window.location.host&&"__winchan_relay_frame"===t[e].name)return t[e]}catch(r){}return null}function ug(e,t,r){e.attachEvent?e.attachEvent("on"+t,r):e.addEventListener&&e.addEventListener(t,r,!1)}function vg(e,t,r){e.detachEvent?e.detachEvent("on"+t,r):e.removeEventListener&&e.removeEventListener(t,r,!1)}function wg(e){/^https?:\/\//.test(e)||(e=window.location.href);var t=/^(https?:\/\/[\-_a-zA-Z\.0-9:]+)/.exec(e);return t?t[1]:e}function xg(e){var t="";try{e=e.replace("#","");var r=lb(e);r&&v(r,"__firebase_request_key")&&(t=w(r,"__firebase_request_key"))}catch(n){}return t}function yg(){var e=Qc(kg);return e.scheme+"://"+e.host+"/v2"}function zg(e){return yg()+"/"+e+"/auth/channel"}function Ag(e){var t=this;if(this.Ac=e,this.de="*",sg(8)?this.Rc=this.zd=tg():(this.Rc=window.opener,this.zd=window),!t.Rc)throw"Unable to find relay frame";ug(this.zd,"message",q(this.ic,this)),ug(this.zd,"message",q(this.Bf,this));try{Bg(this,{a:"ready"})}catch(r){ug(this.Rc,"load",function(){Bg(t,{a:"ready"})})}ug(window,"unload",q(this.zg,this))}function Bg(e,t){t=B(t),sg(8)?e.Rc.doPost(t,e.de):e.Rc.postMessage(t,e.de)}function Cg(e){this.pc=Ga()+Ga()+Ga(),this.Ef=e}function Eg(e){var t=Error(w(Dg,e),e);return t.code=e,t}function Fg(e){var t;(t=!e.window_features)||(t=pg(),t=-1!==t.indexOf("Fennec/")||-1!==t.indexOf("Firefox/")&&-1!==t.indexOf("Android")),t&&(e.window_features=void 0),e.window_name||(e.window_name="_blank"),this.options=e}function Gg(e){e.method||(e.method="GET"),e.headers||(e.headers={}),e.headers.content_type||(e.headers.content_type="application/json"),e.headers.content_type=e.headers.content_type.toLowerCase(),this.options=e}function Hg(e){this.pc=Ga()+Ga()+Ga(),this.Ef=e}function Ig(e){e.callback_parameter||(e.callback_parameter="callback"),this.options=e,window.__firebase_auth_jsonp=window.__firebase_auth_jsonp||{}}function Jg(e,t,r){setTimeout(function(){try{var n=document.createElement("script");n.type="text/javascript",n.id=e,n.async=!0,n.src=t,n.onerror=function(){var t=document.getElementById(e);null!==t&&t.parentNode.removeChild(t),r&&r(Eg("NETWORK_ERROR"))};var i=document.getElementsByTagName("head");(i&&0!=i.length?i[0]:document.documentElement).appendChild(n)}catch(o){r&&r(Eg("NETWORK_ERROR"))}},0)}function Kg(e,t,r,n){Lf.call(this,["auth_status"]),this.F=e,this.ef=t,this.Tg=r,this.Me=n,this.sc=new og(e,[Cc,P]),this.nb=null,this.Te=!1,Lg(this)}function Lg(e){P.get("redirect_request_id")&&Mg(e);var t=e.sc.get();t&&t.token?(Ng(e,t),e.ef(t.token,function(r,n){Og(e,r,n,!1,t.token,t)},function(t,r){Pg(e,"resumeSession()",t,r)})):Ng(e,null)}function Qg(e,t,r,n,i,o){"firebaseio-demo.com"===e.F.domain&&Q("Firebase authentication is not supported on demo Firebases (*.firebaseio-demo.com). To secure your Firebase, create a production Firebase at https://www.firebase.com."),e.ef(t,function(o,a){Og(e,o,a,!0,t,r,n||{},i)},function(t,r){Pg(e,"auth()",t,r,o)})}function Rg(e,t){e.sc.clear(),Ng(e,null),e.Tg(function(e,r){if("ok"===e)R(t,null);else{var n=(e||"error").toUpperCase(),i=n;r&&(i+=": "+r),i=Error(i),i.code=n,R(t,i)}})}function Og(e,t,r,n,i,o,a,s){"ok"===t?(n&&(t=r.auth,o.auth=t,o.expires=r.expires,o.token=bd(i)?i:"",r=null,t&&v(t,"uid")?r=w(t,"uid"):v(o,"uid")&&(r=w(o,"uid")),o.uid=r,r="custom",t&&v(t,"provider")?r=w(t,"provider"):v(o,"provider")&&(r=w(o,"provider")),o.provider=r,e.sc.clear(),bd(i)&&(a=a||{},r=Cc,"sessionOnly"===a.remember&&(r=P),"none"!==a.remember&&e.sc.set(o,r)),Ng(e,o)),R(s,null,o)):(e.sc.clear(),Ng(e,null),o=e=(t||"error").toUpperCase(),r&&(o+=": "+r),o=Error(o),o.code=e,R(s,o))}function Pg(e,t,r,n,i){Q(t+" was canceled: "+n),e.sc.clear(),Ng(e,null),e=Error(n),e.code=r.toUpperCase(),R(i,e)}function Sg(e,t,r,n,i){Tg(e),r=new lg(n||{},{},r||{}),Ug(e,[Gg,Ig],"/auth/"+t,r,i)}function Vg(e,t,r,n){Tg(e);var i=[Fg,Hg];r=ng(r),"anonymous"===t||"password"===t?setTimeout(function(){R(n,Eg("TRANSPORT_UNAVAILABLE"))},0):(r.fe.window_features="menubar=yes,modal=yes,alwaysRaised=yeslocation=yes,resizable=yes,scrollbars=yes,status=yes,height=625,width=625,top="+("object"==typeof screen?.5*(screen.height-625):0)+",left="+("object"==typeof screen?.5*(screen.width-625):0),r.fe.relay_url=zg(e.F.Db),r.fe.requestWithCredential=q(e.qc,e),Ug(e,i,"/auth/"+t,r,n))}function Mg(e){var t=P.get("redirect_request_id");if(t){var r=P.get("redirect_client_options");P.remove("redirect_request_id"),P.remove("redirect_client_options");var n=[Gg,Ig],t={requestId:t,requestKey:xg(document.location.hash)},r=new lg(r,{},t);e.Te=!0;try{document.location.hash=document.location.hash.replace(/&__firebase_request_key=([a-zA-z0-9]*)/,"")}catch(i){}Ug(e,n,"/auth/session",r,function(){this.Te=!1}.bind(e))}}function Ug(e,t,r,n,i){Wg(e,t,r,n,function(t,r){!t&&r&&r.token&&r.uid?Qg(e,r.token,r,n.od,function(e,t){e?R(i,e):R(i,null,t)}):R(i,t||Eg("UNKNOWN_ERROR"))})}function Wg(e,t,r,n,i){t=Pa(t,function(e){return"function"==typeof e.isAvailable&&e.isAvailable()}),0===t.length?setTimeout(function(){R(i,Eg("TRANSPORT_UNAVAILABLE"))},0):(t=new(t.shift())(n.fe),n=jb(n.$a),n.v="js-"+hb,n.transport=t.Cc(),n.suppress_status_codes=!0,e=yg()+"/"+e.F.Db+r,t.open(e,n,function(e,t){if(e)R(i,e);else if(t&&t.error){var r=Error(t.error.message);r.code=t.error.code,r.details=t.error.details,R(i,r)}else R(i,null,t)}))}function Ng(e,t){var r=null!==e.nb||null!==t;e.nb=t,r&&e.ge("auth_status",t),e.Me(null!==t)}function Tg(e){var t=e.F;if("firebaseio.com"!==t.domain&&"firebaseio-demo.com"!==t.domain&&"auth.firebase.com"===kg)throw Error("This custom Firebase server ('"+e.F.domain+"') does not support delegated login.")}function Xg(e){this.ic=e,this.Nd=[],this.Sb=0,this.re=-1,this.Gb=null}function Yg(e,t,r){e.re=t,e.Gb=r,e.redocument.domain="'+document.domain+'";'),e=""+e+"";try{this.Ea.fb.open(),this.Ea.fb.write(e),this.Ea.fb.close()}catch(o){Cb("frame writing exception"),o.stack&&Cb(o.stack),Cb(o)}}function fh(e){if(e.me&&e.Xd&&e.Qe.count()<(0=e.ad[0].kf.length+30+r.length;){var i=e.ad.shift(),r=r+"&seg"+n+"="+i.Kg+"&ts"+n+"="+i.Sg+"&d"+n+"="+i.kf;n++}return gh(e,t+r,e.ue),!0}return!1}function gh(e,t,r){function n(){e.Qe.remove(r),fh(e)}e.Qe.add(r,1);var i=setTimeout(n,Math.floor(25e3));eh(e,t,function(){clearTimeout(i),n()})}function eh(e,t,r){setTimeout(function(){try{if(e.Xd){var n=e.Ea.fb.createElement("script");n.type="text/javascript",n.async=!0,n.src=t,n.onload=n.onreadystatechange=function(){var e=n.readyState;e&&"loaded"!==e&&"complete"!==e||(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),r())},n.onerror=function(){Cb("Long-poll script failed to load: "+t),e.Xd=!1,e.close()},e.Ea.fb.body.appendChild(n)}}catch(i){}},Math.floor(1))}function ih(e,t,r){this.se=e,this.f=Nc(this.se),this.frames=this.Kc=null,this.ob=this.pb=this.cf=0,this.Va=Qb(t),this.eb=(t.lb?"wss://":"ws://")+t.Pa+"/.ws?v=5","undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(this.eb+="&r=f"),t.host!==t.Pa&&(this.eb=this.eb+"&ns="+t.Db),r&&(this.eb=this.eb+"&s="+r)}function lh(e,t){if(e.frames.push(t),e.frames.length==e.cf){var r=e.frames.join("");e.frames=null,r=nb(r),e.xg(r)}}function kh(e){clearInterval(e.Kc),e.Kc=setInterval(function(){e.ua&&e.ua.send("0"),kh(e)},Math.floor(45e3))}function mh(e){nh(this,e)}function nh(e,t){var r=ih&&ih.isAvailable(),n=r&&!(Cc.wf||!0===Cc.get("previous_websocket_failure"));if(t.Ug&&(r||Q("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),n=!0),n)e.gd=[ih];else{var i=e.gd=[];Xc(oh,function(e,t){t&&t.isAvailable()&&i.push(t)})}}function ph(e){if(00&&(e.yd=setTimeout(function(){e.yd=null,e.Bb||(e.I&&102400=e.Mf?(e.f("Secondary connection is healthy."),e.Bb=!0,e.D.Ed(),e.D.start(),e.f("sending client ack on secondary"),e.D.send({t:"c",d:{t:"a",d:{}}}),e.f("Ending transmission on primary"),e.I.send({t:"c",d:{t:"n",d:{}}}),e.hd=e.D,wh(e)):(e.f("sending ping on secondary."),e.D.send({t:"c",d:{t:"p",d:{}}}))}function yh(e){e.Bb||(e.Se--,0>=e.Se&&(e.f("Primary connection is healthy."),e.Bb=!0,e.I.Ed()))}function vh(e,t){e.D=new t("c:"+e.id+":"+e.ff++,e.F,e.Zd),e.Mf=t.responsesRequiredToBeHealthy||0,e.D.open(sh(e,e.D),th(e,e.D)),setTimeout(function(){e.D&&(e.f("Timed out trying to upgrade."),e.D.close())},Math.floor(6e4))}function uh(e,t,r){e.f("Realtime connection established."),e.I=t,e.Ua=1,e.Wc&&(e.Wc(r),e.Wc=null),0===e.Se?(e.f("Primary connection is healthy."),e.Bb=!0):setTimeout(function(){zh(e)},Math.floor(5e3))}function zh(e){e.Bb||1!==e.Ua||(e.f("sending ping on primary."),Bh(e,{t:"c",d:{t:"p",d:{}}}))}function Bh(e,t){if(1!==e.Ua)throw"Connection is not connected";e.hd.send(t)}function xh(e){e.f("Shutting down all connections"),e.I&&(e.I.close(),e.I=null),e.D&&(e.D.close(),e.D=null),e.yd&&(clearTimeout(e.yd),e.yd=null)}function Ch(e,t,r,n){this.id=Dh++,this.f=Nc("p:"+this.id+":"),this.xf=this.Fe=!1,this.$={},this.qa=[],this.Yc=0,this.Vc=[],this.oa=!1,this.Za=1e3,this.Fd=3e5,this.Hb=t,this.Uc=r,this.Pe=n,this.F=e,this.tb=this.Aa=this.Ia=this.Xe=null,this.Ob=!1,this.Td={},this.Jg=0,this.nf=!0,this.Lc=this.He=null,Eh(this,0),Pf.vb().Fb("visible",this.Ag,this),-1===e.host.indexOf("fblocal")&&Of.vb().Fb("online",this.yg,this)}function Gh(e,t){var r=t.Gg,n=r.path.toString(),i=r.va();e.f("Listen on "+n+" for "+i);var o={p:n};t.tag&&(o.q=ce(r.o),o.t=t.tag),o.h=t.xd(),e.Fa("q",o,function(o){var a=o.d,s=o.s;if(a&&"object"==typeof a&&v(a,"w")){var c=w(a,"w");ea(c)&&0<=Na(c,"no_index")&&Q("Using an unspecified index. Consider adding "+('".indexOn": "'+r.o.g.toString()+'"')+" at "+r.path.toString()+" to your security rules for better performance")}(e.$[n]&&e.$[n][i])===t&&(e.f("listen response",o),"ok"!==s&&Hh(e,n,i),t.G&&t.G(s,a))})}function Ih(e){var t=e.Aa;e.oa&&t&&e.Fa("auth",{cred:t.gg},function(r){var n=r.s;r=r.d||"error","ok"!==n&&e.Aa===t&&delete e.Aa,t.of?"ok"!==n&&t.md&&t.md(n,r):(t.of=!0,t.zc&&t.zc(n,r))})}function Jh(e,t,r,n,i){r={p:r,d:n},e.f("onDisconnect "+t,r),e.Fa(t,r,function(e){i&&setTimeout(function(){i(e.s,e.d)},Math.floor(0))})}function Kh(e,t,r,i,o,a){i={p:r,d:i},n(a)&&(i.h=a),e.qa.push({action:t,Jf:i,G:o}),e.Yc++,t=e.qa.length-1,e.oa?Lh(e,t):e.f("Buffering put: "+r)}function Lh(e,t){var r=e.qa[t].action,n=e.qa[t].Jf,i=e.qa[t].G;e.qa[t].Hg=e.oa,e.Fa(r,n,function(n){e.f(r+" response",n),delete e.qa[t],e.Yc--,0===e.Yc&&(e.qa=[]),i&&i(n.s,n.d)})}function Eh(e,t){K(!e.Ia,"Scheduling a connect when we're already connected/ing?"),e.tb&&clearTimeout(e.tb),e.tb=setTimeout(function(){e.tb=null,Oh(e)},Math.floor(t))}function Oh(e){if(Ph(e)){e.f("Making a connection attempt"),e.He=(new Date).getTime(),e.Lc=null;var t=q(e.Id,e),r=q(e.Wc,e),n=q(e.Df,e),i=e.id+":"+Fh++;e.Ia=new qh(i,e.F,t,r,n,function(t){Q(t+" ("+e.F.toString()+")"),e.xf=!0})}}function Mh(e,t,r){r=r?Qa(r,function(e){return Vc(e)}).join("$"):"default",(e=Hh(e,t,r))&&e.G&&e.G("permission_denied")}function Hh(e,t,r){t=new L(t).toString();var i;return n(e.$[t])?(i=e.$[t][r],delete e.$[t][r],0===pa(e.$[t])&&delete e.$[t]):i=void 0,i}function Nh(e){Ih(e),r(e.$,function(t){r(t,function(t){Gh(e,t)})});for(var t=0;t.firebaseio.com instead"),r&&"undefined"!=r||Pc("Cannot parse Firebase url. Please use https://.firebaseio.com"),n.lb||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&Q("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),r=new Dc(n.host,n.lb,r,"ws"===n.scheme||"wss"===n.scheme),n=new L(n.$c),i=n.toString();var o;if(!(o=!p(r.host)||0===r.host.length||!Tf(r.Db))&&(o=0!==i.length)&&(i&&(i=i.replace(/^\/*\.info(\/|$)/,"/")),o=!(p(i)&&0!==i.length&&!Rf.test(i))),o)throw Error(z("new Firebase",1,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".');if(t)if(t instanceof W)i=t;else{if(!p(t))throw Error("Expected a valid Firebase.Context for second argument to new Firebase()");i=W.vb(),r.Od=t}else i=W.vb();o=r.toString();var a=w(i.oc,o);a||(a=new Qh(r,i.Qf),i.oc[o]=a),r=a}Y.call(this,r,n,$d,!1)}function Mc(e,t){K(!t||!0===e||!1===e,"Can't turn on custom loggers persistently."),!0===e?("undefined"!=typeof console&&("function"==typeof console.log?Bb=q(console.log,console):"object"==typeof console.log&&(Bb=function(e){console.log(e)})),t&&P.set("logging_enabled",!0)):e?Bb=e:(Bb=null,P.remove("logging_enabled"))}var g,aa=this,la=Date.now||function(){return+new Date},ya="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ea={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t","\x0B":"\\u000b"},Fa=/\uffff/.test("￿")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,Ha;e:{var Ia=aa.navigator;if(Ia){var Ja=Ia.userAgent;if(Ja){Ha=Ja;break e}}Ha=""}ma(La,Ka),La.prototype.reset=function(){this.P[0]=1732584193,this.P[1]=4023233417,this.P[2]=2562383102,this.P[3]=271733878,this.P[4]=3285377520,this.ee=this.ac=0},La.prototype.update=function(e,t){if(null!=e){n(t)||(t=e.length);for(var r=t-this.Wa,i=0,o=this.ne,a=this.ac;t>i;){if(0==a)for(;r>=i;)Ma(this,e,i),i+=this.Wa;if(p(e)){for(;t>i;)if(o[a]=e.charCodeAt(i),++a,++i,a==this.Wa){Ma(this,o),a=0;break}}else for(;t>i;)if(o[a]=e[i],++a,++i,a==this.Wa){Ma(this,o),a=0;break}}this.ac=a,this.ee+=t}};var u=Array.prototype,Na=u.indexOf?function(e,t,r){return u.indexOf.call(e,t,r)}:function(e,t,r){if(r=null==r?0:0>r?Math.max(0,e.length+r):r,p(e))return p(t)&&1==t.length?e.indexOf(t,r):-1;for(;ro;o++)o in i&&t.call(r,i[o],o,e)},Pa=u.filter?function(e,t,r){return u.filter.call(e,t,r)}:function(e,t,r){for(var n=e.length,i=[],o=0,a=p(e)?e.split(""):e,s=0;n>s;s++)if(s in a){var c=a[s];t.call(r,c,s,e)&&(i[o++]=c)}return i},Qa=u.map?function(e,t,r){return u.map.call(e,t,r)}:function(e,t,r){for(var n=e.length,i=Array(n),o=p(e)?e.split(""):e,a=0;n>a;a++)a in o&&(i[a]=t.call(r,o[a],a,e));return i},Ra=u.reduce?function(e,t,r,n){for(var i=[],o=1,a=arguments.length;a>o;o++)i.push(arguments[o]);return n&&(i[0]=q(t,n)),u.reduce.apply(e,i)}:function(e,t,r,n){var i=r;return Oa(e,function(r,o){i=t.call(n,i,r,o,e)}),i},Sa=u.every?function(e,t,r){return u.every.call(e,t,r)}:function(e,t,r){for(var n=e.length,i=p(e)?e.split(""):e,o=0;n>o;o++)if(o in i&&!t.call(r,i[o],o,e))return!1;return!0},Za=-1!=Ha.indexOf("Opera")||-1!=Ha.indexOf("OPR"),$a=-1!=Ha.indexOf("Trident")||-1!=Ha.indexOf("MSIE"),ab=-1!=Ha.indexOf("Gecko")&&-1==Ha.toLowerCase().indexOf("webkit")&&!(-1!=Ha.indexOf("Trident")||-1!=Ha.indexOf("MSIE")),bb=-1!=Ha.toLowerCase().indexOf("webkit");!function(){var e,t="";return Za&&aa.opera?(t=aa.opera.version,ha(t)?t():t):(ab?e=/rv\:([^\);]+)(\)|;)/:$a?e=/\b(?:MSIE|rv)[: ]([^\);]+)(\)|;)/:bb&&(e=/WebKit\/(\S+)/),e&&(t=(t=e.exec(Ha))?t[1]:""),$a&&(e=(e=aa.document)?e.documentMode:void 0,e>parseFloat(t))?String(e):t)}();var cb=null,db=null,eb=null,hb=hb||"2.2.9";ob.prototype.j=function(e){return this.Wd.Y(e)},ob.prototype.toString=function(){return this.Wd.toString()},pb.prototype.qf=function(){return null},pb.prototype.ze=function(){return null};var qb=new pb;rb.prototype.qf=function(e){var t=this.Ka.Q;return sb(t,e)?t.j().J(e):(t=null!=this.Kd?new tb(this.Kd,!0,!1):this.Ka.C(),this.Rf.xc(e,t))},rb.prototype.ze=function(e,t,r){var n=null!=this.Kd?this.Kd:ub(this.Ka);return e=this.Rf.oe(n,t,1,r,e),0===e.length?null:e[0]},xb.prototype.add=function(e){this.vd.push(e)},xb.prototype.Zb=function(){return this.ra};var Fb="value";Gb.prototype.Zb=function(){var e=this.$d.mc();return"value"===this.ud?e.path:e.parent().path},Gb.prototype.Ae=function(){return this.ud},Gb.prototype.Vb=function(){return this.ve.Vb(this)},Gb.prototype.toString=function(){return this.Zb().toString()+":"+this.ud+":"+B(this.$d.mf())},Hb.prototype.Zb=function(){return this.path},Hb.prototype.Ae=function(){return"cancel"},Hb.prototype.Vb=function(){return this.ve.Vb(this)},Hb.prototype.toString=function(){return this.path.toString()+":cancel"},tb.prototype.j=function(){return this.w},Kb.prototype.get=function(){var e=this.eg.get(),t=xa(e);if(this.Dd)for(var r in this.Dd)t[r]-=this.Dd[r];return this.Dd=e,t},Lb.prototype.If=function(){var e,t=this.fd.get(),r={},n=!1;for(e in t)0t?r=r.left:t>0&&(r=r.right)}return null},g.e=function(){return this.wa.e()},g.count=function(){return this.wa.count()},g.Sc=function(){return this.wa.Sc()},g.fc=function(){return this.wa.fc()},g.ia=function(e){return this.wa.ia(e)},g.Xb=function(e){return new cc(this.wa,null,this.La,!1,e)},g.Yb=function(e,t){return new cc(this.wa,e,this.La,!1,t)},g.$b=function(e,t){return new cc(this.wa,e,this.La,!0,t)},g.sf=function(e){return new cc(this.wa,null,this.La,!0,e)},g=ec.prototype,g.X=function(e,t,r,n,i){return new ec(null!=e?e:this.key,null!=t?t:this.value,null!=r?r:this.color,null!=n?n:this.left,null!=i?i:this.right)},g.count=function(){return this.left.count()+1+this.right.count()},g.e=function(){return!1},g.ia=function(e){return this.left.ia(e)||e(this.key,this.value)||this.right.ia(e)},g.Sc=function(){return fc(this).key},g.fc=function(){return this.right.e()?this.key:this.right.fc()},g.Oa=function(e,t,r){var n,i;return i=this,n=r(e,i.key),i=0>n?i.X(null,null,null,i.left.Oa(e,t,r),null):0===n?i.X(null,t,null,null,null):i.X(null,null,null,null,i.right.Oa(e,t,r)),gc(i)},g.remove=function(e,t){var r,n;if(r=this,0>t(e,r.key))r.left.e()||r.left.fa()||r.left.left.fa()||(r=ic(r)),r=r.X(null,null,null,r.left.remove(e,t),null);else{if(r.left.fa()&&(r=jc(r)),r.right.e()||r.right.fa()||r.right.left.fa()||(r=kc(r),r.left.left.fa()&&(r=jc(r),r=kc(r))),0===t(e,r.key)){if(r.right.e())return ac;n=fc(r.right),r=r.X(n.key,n.value,null,null,hc(r.right))}r=r.X(null,null,null,null,r.right.remove(e,t))}return gc(r)},g.fa=function(){return this.color},g=mc.prototype,g.X=function(){return this},g.Oa=function(e,t){return new ec(e,t,null)},g.remove=function(){return this},g.count=function(){return 0},g.e=function(){return!0},g.ia=function(){return!1},g.Sc=function(){return null},g.fc=function(){return null},g.fa=function(){return!1};var ac=new mc;g=L.prototype,g.toString=function(){for(var e="",t=this.Z;t=this.n.length)return null;for(var e=[],t=this.Z;t=this.n.length},g.ca=function(e){if(tc(this)!==tc(e))return!1;for(var t=this.Z,r=e.Z;t<=this.n.length;t++,r++)if(this.n[t]!==e.n[r])return!1;return!0},g.contains=function(e){var t=this.Z,r=e.Z;if(tc(this)>tc(e))return!1;for(;t"),e};var Fc=function(){var e=1;return function(){return e++}}(),Bb=null,Lc=!0,Zc=/^-?\d{1,10}$/;cd.prototype.fg=function(e,t){if(null==e.Xa||null==t.Xa)throw Gc("Should only compare child_ events.");return this.g.compare(new F(e.Xa,e.Ja),new F(t.Xa,t.Ja))},g=id.prototype,g.Kf=function(e){return"value"===e},g.createEvent=function(e,t){var r=t.o.g;return new Gb("value",this,new S(e.Ja,t.mc(),r))},g.Vb=function(e){var t=this.sb;if("cancel"===e.Ae()){K(this.qb,"Raising a cancel event on a listener with no cancel callback");var r=this.qb;return function(){r.call(t,e.error)}}var n=this.Rb;return function(){n.call(t,e.$d)}},g.gf=function(e,t){return this.qb?new Hb(this,e,t):null},g.matches=function(e){return e instanceof id?e.Rb&&this.Rb?e.Rb===this.Rb&&e.sb===this.sb:!0:!1},g.tf=function(){return null!==this.Rb},g=jd.prototype,g.Kf=function(e){return e="children_added"===e?"child_added":e,("children_removed"===e?"child_removed":e)in this.ha},g.gf=function(e,t){return this.qb?new Hb(this,e,t):null},g.createEvent=function(e,t){K(null!=e.Xa,"Child events should have a childName.");var r=t.mc().u(e.Xa);return new Gb(e.type,this,new S(e.Ja,r,t.o.g),e.Qd)},g.Vb=function(e){var t=this.sb;if("cancel"===e.Ae()){K(this.qb,"Raising a cancel event on a listener with no cancel callback");var r=this.qb;return function(){r.call(t,e.error)}}var n=this.ha[e.ud];return function(){n.call(t,e.$d,e.Qd)}},g.matches=function(e){if(e instanceof jd){if(!this.ha||!e.ha)return!0;if(this.sb===e.sb){var t=pa(e.ha);if(t===pa(this.ha)){if(1===t){var t=qa(e.ha),r=qa(this.ha);return!(r!==t||e.ha[t]&&this.ha[r]&&e.ha[t]!==this.ha[r])}return oa(this.ha,function(t,r){return e.ha[r]===t})}}}return!1},g.tf=function(){return null!==this.ha},g=kd.prototype,g.K=function(e,t,r,n,i,o){return K(e.Jc(this.g),"A node must be indexed if only a child is updated"),i=e.J(t),i.Y(n).ca(r.Y(n))&&i.e()==r.e()?e:(null!=o&&(r.e()?e.Da(t)?hd(o,new D("child_removed",i,t)):K(e.L(),"A child remove without an old child only makes sense on a leaf node"):i.e()?hd(o,new D("child_added",r,t)):hd(o,new D("child_changed",r,t,i))),e.L()&&r.e()?e:e.O(t,r).mb(this.g))},g.xa=function(e,t,r){return null!=r&&(e.L()||e.R(N,function(e,n){t.Da(e)||hd(r,new D("child_removed",n,e))}),t.L()||t.R(N,function(t,n){if(e.Da(t)){var i=e.J(t);i.ca(n)||hd(r,new D("child_changed",n,t,i))}else hd(r,new D("child_added",n,t))})),t.mb(this.g)},g.ga=function(e,t){return e.e()?C:e.ga(t)},g.Na=function(){return!1},g.Wb=function(){return this},g=ld.prototype,g.matches=function(e){return 0>=this.g.compare(this.ed,e)&&0>=this.g.compare(e,this.Gc)},g.K=function(e,t,r,n,i,o){return this.matches(new F(t,r))||(r=C),this.Ce.K(e,t,r,n,i,o)},g.xa=function(e,t,r){t.L()&&(t=C);var n=t.mb(this.g),n=n.ga(C),i=this;return t.R(N,function(e,t){i.matches(new F(e,t))||(n=n.O(e,C))}),this.Ce.xa(e,n,r)},g.ga=function(e){return e},g.Na=function(){return!0},g.Wb=function(){return this.Ce},g=qd.prototype,g.K=function(e,t,r,n,i,o){return this.sa.matches(new F(t,r))||(r=C),e.J(t).ca(r)?e:e.Eb()=this.g.compare(this.sa.ed,a):0>=this.g.compare(a,this.sa.Gc)))break;n=n.O(a.name,a.S),i++}}else{n=t.mb(this.g),n=n.ga(C);var s,c,u;if(this.Jb){t=n.sf(this.g),s=this.sa.Gc,c=this.sa.ed;var h=td(this.g);u=function(e,t){return h(t,e)}}else t=n.Xb(this.g),s=this.sa.ed,c=this.sa.Gc,u=td(this.g);for(var i=0,l=!1;0=u(s,a)&&(l=!0),(o=l&&i=u(a,c))?i++:n=n.O(a.name,C)}return this.sa.Wb().xa(e,n,r)},g.ga=function(e){return e},g.Na=function(){return!0},g.Wb=function(){return this.sa.Wb()},yd.prototype.ab=function(e,t,r,n){var i,o=new gd;if(t.type===Xb)t.source.xe?r=zd(this,e,t.path,t.Ga,r,n,o):(K(t.source.pf,"Unknown source."),i=t.source.bf,r=Ad(this,e,t.path,t.Ga,r,n,i,o));else if(t.type===Bd)t.source.xe?r=Cd(this,e,t.path,t.children,r,n,o):(K(t.source.pf,"Unknown source."),i=t.source.bf,r=Dd(this,e,t.path,t.children,r,n,i,o));else if(t.type===Ed)if(t.Vd)if(t=t.path,null!=r.tc(t))r=e;else{if(i=new rb(r,e,n),n=e.Q.j(),t.e()||".priority"===E(t))Ib(e.C())?t=r.za(ub(e)):(t=e.C().j(),K(t instanceof T,"serverChildren would be complete if leaf node"),t=r.yc(t)),t=this.U.xa(n,t,o);else{var a=E(t),s=r.xc(a,e.C());null==s&&sb(e.C(),a)&&(s=n.J(a)),t=null!=s?this.U.K(n,a,s,H(t),i,o):e.Q.j().Da(a)?this.U.K(n,a,C,H(t),i,o):n,t.e()&&Ib(e.C())&&(n=r.za(ub(e)),n.L()&&(t=this.U.xa(t,n,o)))}n=Ib(e.C())||null!=r.tc(G),r=Fd(e,t,n,this.U.Na())}else r=Gd(this,e,t.path,t.Qb,r,n,o);else{if(t.type!==Zb)throw Gc("Unknown operation type: "+t.type);n=t.path,t=e.C(),i=t.j(),a=t.ea||n.e(),r=Hd(this,new Id(e.Q,new tb(i,a,t.Ub)),n,r,qb,o)}return o=ra(o.bb),n=r,t=n.Q,t.ea&&(i=t.j().L()||t.j().e(),a=Jd(e),(0=0,"Unknown leaf type: "+t),K(i>=0,"Unknown leaf type: "+r),n===i?"object"===r?0:this.An){var o,a=[];for(o in t)a[o]=t[o];return a}return e&&!this.B().e()&&(t[".priority"]=this.B().H()),t},g.hash=function(){if(null===this.Cb){var e="";this.B().e()||(e+="priority:"+me(this.B().H())+":"),this.R(N,function(t,r){var n=r.hash();""!==n&&(e+=":"+t+":"+n)}),this.Cb=""===e?"":Ic(e)}return this.Cb},g.rf=function(e,t,r){return(r=oe(this,r))?(e=bc(r,new F(e,t)))?e.name:null:bc(this.m,e)},g.R=function(e,t){var r=oe(this,e);return r?r.ia(function(e){return t(e.name,e.S)}):this.m.ia(t)},g.Xb=function(e){return this.Yb(e.Tc(),e)},g.Yb=function(e,t){var r=oe(this,t);if(r)return r.Yb(e,function(e){return e});for(var r=this.m.Yb(e.name,Sb),n=dc(r);null!=n&&0>t.compare(n,e);)J(r),n=dc(r);return r},g.sf=function(e){return this.$b(e.Qc(),e)},g.$b=function(e,t){var r=oe(this,t);if(r)return r.$b(e,function(e){return e});for(var r=this.m.$b(e.name,Sb),n=dc(r);null!=n&&0e?-1:1});g=Be.prototype,g.e=function(){return null===this.value&&this.children.e()},g.subtree=function(e){if(e.e())return this;var t=this.children.get(E(e));return null!==t?t.subtree(H(e)):Nd},g.set=function(e,t){if(e.e())return new Be(t,this.children);var r=E(e),n=(this.children.get(r)||Nd).set(H(e),t),r=this.children.Oa(r,n);return new Be(this.value,r)},g.remove=function(e){if(e.e())return this.children.e()?Nd:new Be(null,this.children);var t=E(e),r=this.children.get(t);return r?(e=r.remove(H(e)),t=e.e()?this.children.remove(t):this.children.Oa(t,e),null===this.value&&t.e()?Nd:new Be(this.value,t)):this},g.get=function(e){if(e.e())return this.value;var t=this.children.get(E(e));return t?t.get(H(e)):null};var Nd=new Be(null);Be.prototype.toString=function(){var e={};return Kd(this,function(t,r){e[t.toString()]=r.toString()}),B(e)},Oe.prototype.Xc=function(e){return this.path.e()?null!=this.Qb.value?(K(this.Qb.children.e(),"affectedTree should not have overlapping affected paths."),this):(e=this.Qb.subtree(new L(e)),new Oe(G,e,this.Vd)):(K(E(this.path)===e,"operationForChild called for unrelated child."),new Oe(H(this.path),this.Qb,this.Vd))},Oe.prototype.toString=function(){return"Operation("+this.path+": "+this.source.toString()+" ack write revert="+this.Vd+" affectedTree="+this.Qb+")"};var Xb=0,Bd=1,Ed=2,Zb=3,Pe=new Qe(!0,!1,null,!1),Re=new Qe(!1,!0,null,!1);Qe.prototype.toString=function(){return this.xe?"user":this.bf?"server(queryID="+this.Ib+")":"server"};var Te=new Se(new Be(null));Se.prototype.Rd=function(e){return e.e()?Te:(e=Md(this.W,e,Nd),new Se(e))},Se.prototype.e=function(){return this.W.e()},Se.prototype.apply=function(e){return Ze(G,this.W,e)},g=$e.prototype,g.Rd=function(e){var t=Ua(this.na,function(t){return t.kd===e});K(t>=0,"removeWrite called with nonexistent writeId.");var n=this.na[t];this.na.splice(t,1);for(var i=n.visible,o=!1,a=this.na.length-1;i&&a>=0;){var s=this.na[a];s.visible&&(a>=t&&bf(s,n.path)?i=!1:n.path.contains(s.path)&&(o=!0)),a--}if(i){if(o)this.T=cf(this.na,df,G),this.Mc=0=0;o--)i[o]="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(r%64),r=Math.floor(r/64);if(K(0===r,"Cannot push at time == 0"),r=i.join(""),n){for(o=11;o>=0&&63===t[o];o--)t[o]=0;t[o]++}else for(o=0;12>o;o++)t[o]=Math.floor(64*Math.random());for(o=0;12>o;o++)r+="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(t[o]);return K(20===r.length,"nextPushId: Length should be 20."), -r}}();ma(Of,Lf),Of.prototype.Be=function(e){return K("online"===e,"Unknown event type: "+e),[this.jc]},ca(Of),ma(Pf,Lf),Pf.prototype.Be=function(e){return K("visible"===e,"Unknown event type: "+e),[this.Ob]},ca(Pf);var Qf=/[\[\].#$\/\u0000-\u001F\u007F]/,Rf=/[\[\].#$\u0000-\u001F\u007F]/,Sf=/^[a-zA-Z][a-zA-Z._\-+]+$/;g=hg.prototype,g.add=function(e,t){this.set[e]=null!==t?t:!0},g.contains=function(e){return v(this.set,e)},g.get=function(e){return this.contains(e)?this.set[e]:void 0},g.remove=function(e){delete this.set[e]},g.clear=function(){this.set={}},g.e=function(){return wa(this.set)},g.count=function(){return pa(this.set)},g.keys=function(){var e=[];return r(this.set,function(t,r){e.push(r)}),e},pc.prototype.find=function(e){if(null!=this.A)return this.A.Y(e);if(e.e()||null==this.m)return null;var t=E(e);return e=H(e),this.m.contains(t)?this.m.get(t).find(e):null},pc.prototype.nc=function(e,t){if(e.e())this.A=t,this.m=null;else if(null!==this.A)this.A=this.A.K(e,t);else{null==this.m&&(this.m=new hg);var r=E(e);this.m.contains(r)||this.m.add(r,new pc),r=this.m.get(r),e=H(e),r.nc(e,t)}},pc.prototype.R=function(e){null!==this.m&&ig(this.m,function(t,r){e(t,r)})};var kg="auth.firebase.com",mg=["remember","redirectTo"];og.prototype.set=function(e,t){if(!t){if(!this.ce.length)throw Error("fb.login.SessionManager : No storage options available!");t=this.ce[0]}t.set(this.Re,e)},og.prototype.get=function(){var e=Qa(this.ce,q(this.og,this)),e=Pa(e,function(e){return null!==e});return Xa(e,function(e,t){return ad(t.token)-ad(e.token)}),0o.status){try{e=nb(o.responseText)}catch(t){}r(null,e)}else r(500<=o.status&&600>o.status?Eg("SERVER_ERROR"):Eg("NETWORK_ERROR"));r=null,vg(window,"beforeunload",n)}},"GET"===a)e+=(/\?/.test(e)?"":"?")+kb(t),i=null;else{var s=this.options.headers.content_type;"application/json"===s&&(i=B(t)),"application/x-www-form-urlencoded"===s&&(i=kb(t))}o.open(a,e,!0),e={"X-Requested-With":"XMLHttpRequest",Accept:"application/json;text/plain"},za(e,this.options.headers);for(var c in e)o.setRequestHeader(c,e[c]);o.send(i)},Gg.isAvailable=function(){var e;return(e=!!window.XMLHttpRequest)&&(e=pg(),e=!(e.match(/MSIE/)||e.match(/Trident/))||sg(10)),e},Gg.prototype.Cc=function(){return"json"},Hg.prototype.open=function(e,t,r){function n(){r&&(r(Eg("USER_CANCELLED")),r=null)}var i,o=this,a=Qc(kg);t.requestId=this.pc,t.redirectTo=a.scheme+"://"+a.host+"/blank/page.html",e+=/\?/.test(e)?"":"?",e+=kb(t),(i=window.open(e,"_blank","location=no"))&&ha(i.addEventListener)?(i.addEventListener("loadstart",function(e){var t;if(t=e&&e.url)e:{try{var s=document.createElement("a");s.href=e.url,t=s.host===a.host&&"/blank/page.html"===s.pathname;break e}catch(c){}t=!1}t&&(e=xg(e.url),i.removeEventListener("exit",n),i.close(),e=new lg(null,null,{requestId:o.pc,requestKey:e}),o.Ef.requestWithCredential("/auth/session",e,r),r=null)}),i.addEventListener("exit",n)):r(Eg("TRANSPORT_UNAVAILABLE"))},Hg.isAvailable=function(){return qg()},Hg.prototype.Cc=function(){return"redirect"},Ig.prototype.open=function(e,t,r){function n(){r&&(r(Eg("REQUEST_INTERRUPTED")),r=null)}function i(){setTimeout(function(){window.__firebase_auth_jsonp[o]=void 0,wa(window.__firebase_auth_jsonp)&&(window.__firebase_auth_jsonp=void 0);try{var e=document.getElementById(o);e&&e.parentNode.removeChild(e)}catch(t){}},1),vg(window,"beforeunload",n)}var o="fn"+(new Date).getTime()+Math.floor(99999*Math.random());t[this.options.callback_parameter]="__firebase_auth_jsonp."+o,e+=(/\?/.test(e)?"":"?")+kb(t),ug(window,"beforeunload",n),window.__firebase_auth_jsonp[o]=function(e){r&&(r(null,e),r=null),i()},Jg(o,e,r)},Ig.isAvailable=function(){return"undefined"!=typeof document&&null!=document.createElement},Ig.prototype.Cc=function(){return"json"},ma(Kg,Lf),g=Kg.prototype,g.ye=function(){return this.nb||null},g.te=function(e,t){Tg(this);var r=ng(e);r.$a._method="POST",this.qc("/users",r,function(e,r){e?R(t,e):R(t,e,r)})},g.Ue=function(e,t){var r=this;Tg(this);var n="/users/"+encodeURIComponent(e.email),i=ng(e);i.$a._method="DELETE",this.qc(n,i,function(e,n){!e&&n&&n.uid&&r.nb&&r.nb.uid&&r.nb.uid===n.uid&&Rg(r),R(t,e)})},g.qe=function(e,t){Tg(this);var r="/users/"+encodeURIComponent(e.email)+"/password",n=ng(e);n.$a._method="PUT",n.$a.password=e.newPassword,this.qc(r,n,function(e){R(t,e)})},g.pe=function(e,t){Tg(this);var r="/users/"+encodeURIComponent(e.oldEmail)+"/email",n=ng(e);n.$a._method="PUT",n.$a.email=e.newEmail,n.$a.password=e.password,this.qc(r,n,function(e){R(t,e)})},g.We=function(e,t){Tg(this);var r="/users/"+encodeURIComponent(e.email)+"/password",n=ng(e);n.$a._method="POST",this.qc(r,n,function(e){R(t,e)})},g.qc=function(e,t,r){Wg(this,[Gg,Ig],e,t,r)},g.Be=function(e){return K("auth_status"===e,'initial event must be of type "auth_status"'),this.Te?null:[this.nb]};var ah,bh;$g.prototype.open=function(e,t){this.hf=0,this.la=t,this.Af=new Xg(e),this.Ab=!1;var r=this;this.rb=setTimeout(function(){r.f("Timed out trying to connect."),r.hb(),r.rb=null},Math.floor(3e4)),Sc(function(){if(!r.Ab){r.Ta=new ch(function(e,t,n,i,o){if(dh(r,arguments),r.Ta)if(r.rb&&(clearTimeout(r.rb),r.rb=null),r.Hc=!0,"start"==e)r.id=t,r.Gf=n;else{if("close"!==e)throw Error("Unrecognized command received: "+e);t?(r.Ta.Xd=!1,Yg(r.Af,t,function(){r.hb()})):r.hb()}},function(e,t){dh(r,arguments),Zg(r.Af,e,t)},function(){r.hb()},r.jd);var e={start:"t"};e.ser=Math.floor(1e8*Math.random()),r.Ta.ie&&(e.cb=r.Ta.ie),e.v="5",r.Zd&&(e.s=r.Zd),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(e.r="f"),e=r.jd(e),r.f("Connecting via long-poll to "+e),eh(r.Ta,e,function(){})}})},$g.prototype.start=function(){var e=this.Ta,t=this.Gf;for(e.sg=this.id,e.tg=t,e.me=!0;fh(e););e=this.id,t=this.Gf,this.gc=document.createElement("iframe");var r={dframe:"t"};r.id=e,r.pw=t,this.gc.src=this.jd(r),this.gc.style.display="none",document.body.appendChild(this.gc)},$g.isAvailable=function(){return ah||!bh&&"undefined"!=typeof document&&null!=document.createElement&&!("object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"==typeof Windows&&"object"==typeof Windows.Vg)&&!0},g=$g.prototype,g.Ed=function(){},g.dd=function(){this.Ab=!0,this.Ta&&(this.Ta.close(),this.Ta=null),this.gc&&(document.body.removeChild(this.gc),this.gc=null),this.rb&&(clearTimeout(this.rb),this.rb=null)},g.hb=function(){this.Ab||(this.f("Longpoll is closing itself"),this.dd(),this.la&&(this.la(this.Hc),this.la=null))},g.close=function(){this.Ab||(this.f("Longpoll is being closed."),this.dd())},g.send=function(e){e=B(e),this.pb+=e.length,Nb(this.Va,"bytes_sent",e.length),e=Jc(e),e=fb(e,!0),e=Wc(e,1840);for(var t=0;t=e.length){var t=Number(e);if(!isNaN(t)){i.cf=t,i.frames=[],e=null;break e}}i.cf=1,i.frames=[]}null!==e&&lh(i,e)}},this.ua.onerror=function(e){i.f("WebSocket error. Closing connection."),(e=e.message||e.data)&&i.f(e),i.hb()}},ih.prototype.start=function(){},ih.isAvailable=function(){var e=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var t=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);t&&1parseFloat(t[1])&&(e=!0)}return!e&&null!==hh&&!jh},ih.responsesRequiredToBeHealthy=2,ih.healthyTimeout=3e4,g=ih.prototype,g.Ed=function(){Cc.remove("previous_websocket_failure")},g.send=function(e){kh(this),e=B(e),this.pb+=e.length,Nb(this.Va,"bytes_sent",e.length),e=Wc(e,16384),1i;i++)t+=" ";console.log(t+n)}}},g.$e=function(e){Nb(this.Va,e),this.Qg.Nf[e]=!0},g.f=function(e){var t="";this.Sa&&(t=this.Sa.id+":"),Cb(t,arguments)},W.prototype.zb=function(){for(var e in this.oc)this.oc[e].zb()},W.prototype.rc=function(){for(var e in this.oc)this.oc[e].rc()},W.prototype.we=function(){this.Qf=!0},ca(W),W.prototype.interrupt=W.prototype.zb,W.prototype.resume=W.prototype.rc,X.prototype.cancel=function(e){x("Firebase.onDisconnect().cancel",0,1,arguments.length),A("Firebase.onDisconnect().cancel",1,e,!0),this.bd.Jd(this.ra,e||null)},X.prototype.cancel=X.prototype.cancel,X.prototype.remove=function(e){x("Firebase.onDisconnect().remove",0,1,arguments.length),bg("Firebase.onDisconnect().remove",this.ra),A("Firebase.onDisconnect().remove",1,e,!0),Yh(this.bd,this.ra,null,e)},X.prototype.remove=X.prototype.remove,X.prototype.set=function(e,t){x("Firebase.onDisconnect().set",1,2,arguments.length),bg("Firebase.onDisconnect().set",this.ra),Vf("Firebase.onDisconnect().set",e,this.ra,!1),A("Firebase.onDisconnect().set",2,t,!0),Yh(this.bd,this.ra,e,t)},X.prototype.set=X.prototype.set,X.prototype.Kb=function(e,t,r){x("Firebase.onDisconnect().setWithPriority",2,3,arguments.length),bg("Firebase.onDisconnect().setWithPriority",this.ra),Vf("Firebase.onDisconnect().setWithPriority",e,this.ra,!1),Yf("Firebase.onDisconnect().setWithPriority",2,t),A("Firebase.onDisconnect().setWithPriority",3,r,!0),Zh(this.bd,this.ra,e,t,r)},X.prototype.setWithPriority=X.prototype.Kb,X.prototype.update=function(e,t){if(x("Firebase.onDisconnect().update",1,2,arguments.length),bg("Firebase.onDisconnect().update",this.ra),ea(e)){for(var r={},n=0;n=e)throw Error("Query.limit: First argument must be a positive integer.");if(this.o.ja)throw Error("Query.limit: Limit was already set (by another call to limit, limitToFirst, orlimitToLast.");var t=this.o.Ie(e);return li(t),new Y(this.k,this.path,t,this.kc)},g.Je=function(e){if(x("Query.limitToFirst",1,1,arguments.length),!ga(e)||Math.floor(e)!==e||0>=e)throw Error("Query.limitToFirst: First argument must be a positive integer.");if(this.o.ja)throw Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.o.Je(e),this.kc)},g.Ke=function(e){if(x("Query.limitToLast",1,1,arguments.length),!ga(e)||Math.floor(e)!==e||0>=e)throw Error("Query.limitToLast: First argument must be a positive integer.");if(this.o.ja)throw Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.o.Ke(e),this.kc)},g.Cg=function(e){if(x("Query.orderByChild",1,1,arguments.length),"$key"===e)throw Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===e)throw Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===e)throw Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');$f("Query.orderByChild",1,e,!1),mi(this,"Query.orderByChild");var t=be(this.o,new Sd(e));return ki(t),new Y(this.k,this.path,t,!0)},g.Dg=function(){x("Query.orderByKey",0,0,arguments.length),mi(this,"Query.orderByKey");var e=be(this.o,Od);return ki(e),new Y(this.k,this.path,e,!0)},g.Eg=function(){x("Query.orderByPriority",0,0,arguments.length),mi(this,"Query.orderByPriority");var e=be(this.o,N);return ki(e),new Y(this.k,this.path,e,!0)},g.Fg=function(){x("Query.orderByValue",0,0,arguments.length),mi(this,"Query.orderByValue");var e=be(this.o,Yd);return ki(e),new Y(this.k,this.path,e,!0)},g.ae=function(e,t){x("Query.startAt",0,2,arguments.length),Vf("Query.startAt",e,this.path,!0),$f("Query.startAt",2,t,!0);var r=this.o.ae(e,t);if(li(r),ki(r),this.o.ma)throw Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return n(e)||(t=e=null),new Y(this.k,this.path,r,this.kc)},g.td=function(e,t){x("Query.endAt",0,2,arguments.length),Vf("Query.endAt",e,this.path,!0),$f("Query.endAt",2,t,!0);var r=this.o.td(e,t);if(li(r),ki(r),this.o.pa)throw Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new Y(this.k,this.path,r,this.kc)},g.ig=function(e,t){if(x("Query.equalTo",1,2,arguments.length),Vf("Query.equalTo",e,this.path,!1),$f("Query.equalTo",2,t,!0),this.o.ma)throw Error("Query.equalTo: Starting point was already set (by another call to endAt or equalTo).");if(this.o.pa)throw Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.ae(e,t).td(e,t)},g.toString=function(){x("Query.toString",0,0,arguments.length);for(var e=this.path,t="",r=e.Z;r"+c.toUpperCase()+"

",t.appendChild(r),u){var n="VR mode does not support preview tiles. Stopping code execution.";throw console.log("ERROR: "+n),new Error(n)}if(!h){var o=document.createElement("span");o.className="altspace-vr-notice",o.innerHTML="

View

",t.insertBefore(o,r);var s=document.createElement("span");s.className="altspace-vr-notice",s.innerHTML='

in AltspaceVR

',t.appendChild(s);var n="Not in VR mode. Stopping code execution.";throw u&&console.log("ERROR: "+n),new Error(n)}}}function r(e){c=e}function n(){var e=document.querySelector("link[rel=canonical]"),t=e?e.href:window.location.href;return new s(t)}function i(){var e=n(),t=e.path.split("/"),r=t[t.length-1];return r}function o(){var e=n(),t=e.path.split("/"),r="team"==t[1],i=r?"team-"+t[2]:t[1];return i}var a=window.Please,s=window.Url,c="VR CodePen",u=window.name&&"pen-"===window.name.slice(0,4),h=!!window.altspace.inClient,l=!!location.href.match("codepen.io/");return{inTile:u,inVR:h,inCodePen:l,ensureInVR:t,setName:r,getPenId:i,getAuthorId:o,printDebugInfo:e}}(),window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},altspace.utilities.Simulation=function(e){function t(){window.requestAnimationFrame(t),a.updateAllBehaviors&&a.updateAllBehaviors(),n.render(a,i)}function r(){function e(){n=altspace.getThreeJSRenderer(),i=new THREE.PerspectiveCamera,altspace.getThreeJSTrackingSkeleton(function(e){var t=e;t.getJoint("Eye").add(i)})}function t(){n=new THREE.WebGLRenderer({antialias:!0}),i=new THREE.PerspectiveCamera,i.position.z=500;var e=function(){i.aspect=window.innerWidth/window.innerHeight,i.updateProjectionMatrix(),n.setSize(window.innerWidth,window.innerHeight)};document.addEventListener("DOMContentLoaded",function(e){document.body.style.margin="0px",document.body.style.overflow="hidden",n.setClearColor("#035F72");var t=document.createElement("div");document.body.appendChild(t),t.appendChild(n.domElement)}),window.addEventListener("resize",e),e(),i.fov=45,i.near=1,i.far=2e3,a.add(i),a.add(new THREE.AmbientLight("white"));var t=altspace&&altspace.utilities&&altspace.utilities.shims&&altspace.utilities.shims.cursor;t&&altspace.utilities.shims.cursor.init(a,i)}altspace&&altspace.inClient?e():t()}e=e||{},void 0===e.auto&&(e.auto=!0);var n,i,o={},a=new THREE.Scene;return r(),e.auto&&window.requestAnimationFrame(t),Object.defineProperty(o,"scene",{get:function(){return a}}),Object.defineProperty(o,"renderer",{get:function(){return n}}),Object.defineProperty(o,"camera",{get:function(){return i},set:function(e){i=e}}),o},window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},altspace.utilities.multiloader=function(){function e(){var e,t=[],r=[],n=[],i=0;return{objUrls:t,mtlUrls:r,objects:n,error:e,objectsLoaded:i}}function t(e){var t=e||{};o=t.TRACE||!1,t.crossOrigin&&(s=t.crossOrigin),t.baseUrl&&(a=t.baseUrl),"/"!==a.slice(-1)&&(a+="/"),i=new THREE.OBJMTLLoader,i.crossOrigin=s,o&&console.log("MultiLoader initialized with params",e)}function r(t,r){var s=t,c=Date.now();if(!s||!s instanceof e)throw new Error("MultiLoader.load expects first arg of type LoadRequest");if(!r||"function"!=typeof r)throw new Error("MultiLoader.load expects second arg of type function");if(!s.objUrls||!s.mtlUrls||s.objUrls.length!==s.mtlUrls.length)throw new Error("MultiLoader.load called with bad LoadRequest");var u=s.objUrls.length;o&&console.log("Loading models...");for(var h=0;u>h;h++){var l=function(e,t){var s=a+e.objUrls[t],h=a+e.mtlUrls[t];o&&console.log("Loading obj:"+s+", mtl:"+h),i.load(s,h,function(n){if(e.objects[t]=n,e.objectsLoaded++,e.objectsLoaded===u){var i=((Date.now()-c)/1e3).toFixed(2);o&&console.log("Loaded "+u+" models in "+i+" seconds"),r()}},n,function(){var t=xhr.target.responseURL||"";e.error="Error loading file "+t})};l(s,h)}}function n(e){if(e.lengthComputable&&e.target.responseURL){var t=e.loaded/e.total*100,r=e.target.responseURL.split("/").pop();o&&console.log("..."+r+" "+Math.round(t,2)+"% downloaded")}}var i,o,a="",s="";return{init:t,load:r,LoadRequest:e}}(),THREE.Scene.prototype.updateAllBehaviors=function(){var e=performance.now(),t=this.__lastNow||e,r=e-t,n=this,i=[];this.traverse(function(e){e.__behaviorList&&i.push(e)});for(var o=0,a=i.length;a>o;o++)object3d=i[o],object3d.updateBehaviors(r,n);this.__lastNow=e},THREE.Object3D.prototype.addBehavior=function(){this.__behaviorList=this.__behaviorList||[],Array.prototype.push.apply(this.__behaviorList,arguments)},THREE.Object3D.prototype.addBehaviors=function(){this.__behaviorList=this.__behaviorList||[],Array.prototype.push.apply(this.__behaviorList,arguments)},THREE.Object3D.prototype.removeBehavior=function(e){var t=this.__behaviorList.indexOf(e);if(-1!==t){this.__behaviorList.splice(t,1);try{e.dispose&&e.dispose.call(e,this)}catch(r){console.group(),(console.error||console.log).call(console,r.stack||r),console.log("[Behavior]"),console.log(e),console.log("[Object3D]"),console.log(this),console.groupEnd()}}},THREE.Object3D.prototype.removeAllBehaviors=function(){if(!this.__behaviorList||0===this.__behaviorList.length)return null;for(var e=0,t=this.__behaviorList.length;t>e;e++){var r=this.__behaviorList[e];try{r.dispose&&r.dispose.call(r,this)}catch(n){console.group(),(console.error||console.log).call(console,n.stack||n),console.log("[Behavior]"),console.log(r),console.log("[Object3D]"),console.log(this),console.groupEnd()}}},THREE.Object3D.prototype.getBehaviorByType=function(e){if(!this.__behaviorList||0===this.__behaviorList.length)return null;for(var t=0,r=this.__behaviorList.length;r>t;t++)if(this.__behaviorList[t].type===e)return this.__behaviorList[t]},THREE.Object3D.prototype.updateBehaviors=function(e,t){if(this.__behaviorList&&0!==this.__behaviorList.length){for(var r=[],n=this.__behaviorList.slice(),i=0,o=this.__behaviorList.length;o>i;i++){var a=this.__behaviorList[i];a.__isInitialized||r.push(a)}for(var i=0,o=r.length;o>i;i++){var a=r[i];try{a.awake&&a.awake.call(a,this,t)}catch(s){console.group(),(console.error||console.log).call(console,s.stack||s),console.log("[Behavior]"),console.log(a),console.log("[Object3D]"),console.log(this),console.groupEnd()}}for(var i=0,o=r.length;o>i;i++){var a=r[i];try{a.start&&a.start.call(a)}catch(s){console.group(),(console.error||console.log).call(console,s.stack||s),console.log("[Behavior]"),console.log(a),console.log("[Object3D]"),console.log(this),console.groupEnd()}a.__isInitialized=!0}for(var i=0,o=n.length;o>i;i++){var a=n[i];try{a.update&&a.update.call(a,e)}catch(s){console.group(),(console.error||console.log).call(console,s.stack||s),console.log("[Behavior]"),console.log(a),console.log("[Object3D]"),console.log(this),console.groupEnd()}}}},altspace=window.altspace||{},altspace.utilities=altspace.utilities||{},altspace.utilities.shims=altspace.utilities.shims||{},altspace.utilities.shims.cursor=function(){function e(e,i,o){if(!e||!e instanceof THREE.Scene)throw new TypeError("Requires THREE.Scene argument");if(!i||!i instanceof THREE.Camera)throw new TypeError("Requires THREE.Camera argument");a=e,s=i,p=o||{},c=p.renderer&&p.renderer.domElement||window,c.addEventListener("mousedown",t,!1),c.addEventListener("mouseup",r,!1),c.addEventListener("mousemove",n,!1)}function t(e){var t=o(e);if(t&&t.point){var r=i("cursordown",t);t.object.dispatchEvent(r)}}function r(e){var t=o(e),r=i("cursorup",t);t?t.object.dispatchEvent(r):a.dispatchEvent(r)}function n(e){var t=o(e),r=i("cursormove",t);a.dispatchEvent(r);var n=t?t.object:null;u!=n&&(u&&(r=i("cursorleave",t),u.dispatchEvent(r)),n&&(r=i("cursorenter",t),n.dispatchEvent(r)),u=n)}function i(e,t){return{type:e,bubbles:!0,target:t?t.object:null,ray:{origin:h.ray.origin.clone(),direction:h.ray.direction.clone()},point:t?t.point.clone():null}}function o(e){var t=new THREE.Vector2;t.x=e.offsetX/(c.width||c.innerWidth)*2-1,t.y=2*-(e.offsetY/(c.height||c.innerHeight))+1,h.setFromCamera(t,s);var r=h.intersectObjects(a.children,!0);return r.length>0?r[0]:null}var a,s,c,u,h=new THREE.Raycaster;return{init:e}}(),function(){function e(t){var r,n;if(t.bubbles&&(t.currentTarget=this,t.stopPropagation=function(){r=!0},t.stopImmediatePropagation=function(){n=!0}),this._listeners){var i=this._listeners,o=i[t.type];if(o){t.target=t.target||this;for(var a=[],s=o.length,c=0;s>c;c++)a[c]=o[c];for(var c=0;s>c;c++)if(a[c].call(this,t),n)return}}t.bubbles&&this.parent&&this.parent.dispatchEvent&&!r&&e.call(this.parent,t)}THREE&&(window.altspace&&window.altspace.inAltspace||(THREE.EventDispatcher.prototype.dispatchEvent=e,THREE.Object3D.prototype.dispatchEvent=e))}(),window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},altspace.utilities.behaviors.Bob=function(e){function t(e){n=e,i=n.position.clone()}function r(t){var r=Math.floor(performance.now())+a;e.shouldMove&&(o.equals(n.position)||i.copy(n.position),n.position.y=i.y+3*Math.sin(r/800),n.position.x=i.x+5*Math.sin(r/500),o.copy(n.position)),e.shouldRotate&&(n.rotation.x=Math.sin(r/500)/15)}var n;e=e||{},void 0===e.shouldRotate&&(e.shouldRotate=!0),void 0===e.shouldMove&&(e.shouldMove=!0);var i,o=new THREE.Vector3,a=1e4*Math.random();return{awake:t,update:r}},window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},altspace.utilities.behaviors.ButtonStateStyle=function(e){function t(e){l.set(h),l.multiplyScalar(e),l.r=THREE.Math.clamp(l.r,0,1),l.g=THREE.Math.clamp(l.g,0,1),l.b=THREE.Math.clamp(l.b,0,1),c.material.color=l}function r(){c.removeEventListener("cursorleave",r),t(1)}function n(){t(f),c.addEventListener("cursorleave",r)}function i(e){u.removeEventListener("cursorup",i),c.addEventListener("cursorenter",n),e.target===c?(t(f),c.addEventListener("cursorleave",r)):t(1)}function o(){u.addEventListener("cursorup",i),c.removeEventListener("cursorleave",r),c.removeEventListener("cursorenter",n),t(p)}function a(t,r){c=t,u=r,h=e.originalColor||c.material.color,c.addEventListener("cursorenter",n),c.addEventListener("cursordown",o)}function s(){c.removeEventListener("cursorenter",n),c.removeEventListener("cursorleave",r),c.removeEventListener("cursorup",i),c.removeEventListener("cursordown",o)}var c,u,h,l=new THREE.Color;e=e||{};var f=e.overBrightness||1.5,p=e.downBrightness||.5;return{awake:a,dispose:s,type:"ButtonStateStyle"}},window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},altspace.utilities.behaviors.Drag=function(e){function t(e,t){c=e,u=t,h=c.getBehaviorByType("Object3DSync"),r(),u.add(l)}function r(){function e(){i.rotateY(Math.PI)}function t(){i.rotateX(Math.PI/2)}function r(){i.rotateY(Math.PI/2)}var n=1e4,i=new THREE.PlaneGeometry(n,n),o=f+p+d;if(3===o)throw new Error("Arbitrary dragging currently unsupported. Please lock at least one axis.");if(2!==o)throw 1===o?new Error("Single axis dragging currently unsupported."):new Error("Invalid axis configuration");f&&p?e():f&&d?t():p&&d&&r();var a=new THREE.MeshBasicMaterial({color:"purple"});a.side=THREE.DoubleSide,l=new THREE.Mesh(i,a),l.visible=!1,l.material.visible=!1}function n(e){e.updateMatrixWorld();var t=new THREE.Vector3;return t.setFromMatrixPosition(e.matrixWorld),t}function i(e){u.addEventListener("cursorup",a),u.addEventListener("cursormove",o),y.set(e.ray.origin,e.ray.direction);var t=y.intersectObject(c,!0)[0];if(t){var r=t.point.clone(),i=n(c).clone();v.copy(r).sub(i),l.position.copy(r),l.updateMatrixWorld()}}function o(t){h&&!h.isMine&&h.takeOwnership(),l.visible=!0,y.set(t.ray.origin,t.ray.direction);var r=y.intersectObject(l,!0)[0];if(l.visible=!1,r){var i=new THREE.Vector3;i.copy(r.point).sub(v),i.y=n(c).y,i.clamp(m,g),c.parent.updateMatrixWorld();var o=c.parent.worldToLocal(i);c.position.set(e.x?o.x:c.position.x,e.y?o.y:c.position.y,e.z?o.z:c.position.z)}}function a(){u.removeEventListener("cursorup",a),u.removeEventListener("cursormove",o)}function s(){c.addEventListener("cursordown",i)}e=e||{},void 0===e.space&&(e.space="world"),void 0===e.x&&(e.x=!1),void 0===e.y&&(e.y=!1),void 0===e.z&&(e.z=!1),void 0===e.cursorSnap&&(e.cursorSnap=!0);var c,u,h,l,f=!!e.x,p=!!e.y,d=!!e.z,m=new THREE.Vector3(void 0!==e.x.min?e.x.min:Number.NEGATIVE_INFINITY,void 0!==e.y.min?e.y.min:Number.NEGATIVE_INFINITY,void 0!==e.z.min?e.z.min:Number.NEGATIVE_INFINITY),g=new THREE.Vector3(void 0!==e.x.max?e.x.max:Number.POSITIVE_INFINITY,void 0!==e.y.max?e.y.max:Number.POSITIVE_INFINITY,void 0!==e.z.max?e.z.max:Number.POSITIVE_INFINITY),v=new THREE.Vector3,y=new THREE.Raycaster;return y.linePrecision=3,{awake:t,start:s}},window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},altspace.utilities.behaviors.GamepadControls=function(e){function t(e,t){if(o=e,s=t,c=o.getBehaviorByType("Object3DSync"),u=o.clone(),a=r())console.log("Gamepad detected: "+a.id);else var i=setInterval(function(){a=r(),a&&(console.log("Gamepad connected: "+a.id),clearInterval(i))},500);s.addEventListener("cursordown",function(e){a&&!d&&(n(a),d=!0)})}function r(){if(altspace&&altspace.inClient?gamepads=altspace.getGamepads():gamepads=navigator.getGamepads(),gamepads.length>0)for(var e=0;et.buttons;i++)n[i]=!1;for(var i=0;i>t.axes;i++)r[i]=!1;e.position&&(r[0]=!0,r[1]=!0,n[10]=!0),e.rotation&&(r[2]=!0,r[3]=!0,n[11]=!0),e.scale&&(n[12]=!0,n[13]=!0),n[8]=!0,t.preventDefault(r,n)}function i(t){if(altspace&&altspace.inClient||!window.chrome||!a||(a=r()),a){var n=a.buttons[8].pressed;if(n)return c.isMine||c.takeOwnership(),o.position.copy(u.position),o.rotation.copy(u.rotation),void o.scale.copy(u.scale);if(e.position){var i=a.buttons[10].pressed;p&&!i&&(l=!l),p=i;var s=a.axes[0],d=a.axes[1],g=Math.abs(s)>m||Math.abs(d)>m;g&&!c.isMine&&c.takeOwnership();var v=200*(t/1e3);!l&&Math.abs(s)>m&&(o.position.x+=v*s),!l&&Math.abs(d)>m&&(o.position.z+=v*d),l&&Math.abs(s)>m&&(o.position.x+=v*s),l&&Math.abs(d)>m&&(o.position.y+=v*-d)}if(e.rotation){var y=a.buttons[11].pressed;f&&!y&&(h=!h),f=y;var b=a.axes[2],x=a.axes[3],w=Math.abs(b)>m||Math.abs(x)>m;w&&!c.isMine&&c.takeOwnership();var _=Math.PI*(t/1e3);!h&&Math.abs(b)>m&&(o.rotation.y+=_*b),!h&&Math.abs(x)>m&&(o.rotation.x+=_*x),h&&Math.abs(b)>m&&(o.rotation.z+=_*-b)}if(e.scale){var S=10*(t/1e3),M=a.buttons[12].pressed,E=a.buttons[13].pressed,T=a.buttons[12].pressed||a.buttons[13].pressed;T&&!c.isMine&&c.takeOwnership();var A=o.scale,C=new THREE.Vector3(1,1,1);C.multiplyScalar(S),M&&o.scale.add(C),E&&A.x>C.x&&A.y>C.y&&A.z>C.z&&o.scale.sub(C)}}}var o,a,s,c,u,h=!1,l=!1,f=!1,p=!1,d=!1,m=.2;return e=e||{},void 0===e.position&&(e.position=!0),void 0===e.rotation&&(e.rotation=!0),void 0===e.scale&&(e.scale=!0),{awake:t,update:i}},window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},altspace.utilities.behaviors.HoverColor=function(e){function t(t,a){c=t,l=a,c.addEventListener("cursordown",r),l.addEventListener("cursorup",o),"cursorenter"===e.event&&(c.addEventListener("cursorenter",n),c.addEventListener("cursorleave",i))}function r(t){u=c,"cursordown"===e.event&&a(u)}function n(e){u&&u!==c||(h&&unsetcolor(h),h=c,a(c))}function i(e){h===c&&(h=null,s(c))}function o(t){"cursordown"===e.event&&u&&s(u),u=null}function a(t){t.material&&t.material.color&&(t.userData.origColor=t.material.color,t.material.color=e.color,t.material&&(t.material.needsUpdate=!0));for(var r=0;re;e++)m[e].autoSend()}function n(n,i){setInterval(r,d);var a=i;h=a.uuid,u.on("value",function(e){var t=e.val();t&&(masterClientKey=Object.keys(t)[0],l=t[masterClientKey])}),u.push(h).onDisconnect().remove(),e.child("initialized").once("value",function(e){var r=!e.val();e.ref().set(!0),t.ready&&t.ready(r)}),c.on("child_added",o.bind(this)),c.on("child_removed",s.bind(this))}function i(e,t,r){t=t||{};var n=c.push({syncType:e,initData:t},function(e){if(e)throw Error("Failed to save to Firebase",e)});r&&n.onDisconnect().remove();var i=g[n.key()];return i.getBehaviorByType("Object3DSync").takeOwnership(),i}function o(e){var t=e.val(),r=e.key(),n=f[t.syncType];if(!n)return void console.warn("No instantiator found for syncType: "+t.syncType);var i=n(t.initData,t.syncType);if(!i)return void console.error(t.syncType+".create must return an Object3D");g[r]=i,v[i.uuid]=r;var o=i.getBehaviorByType("Object3DSync");return o?(m.push(o),void o.link(e.ref(),this)):void console.error(t.syncType+" instantiator must return an Object3D with an Object3DSync behavior")}function a(e){var t=v[e.uuid];return t?(c.child(t).remove(function(e){e&&console.warn("Failed to remove from Firebase",e)}),void c.child(t).off()):void console.warn("Failed to find key for object3d to be destroyed",e)}function s(e){function t(e){e.removeAllBehaviors(),e.parent&&e.parent.remove(e),e.geometry&&e.geometry.dispose(),e.material&&(e.material.map&&e.material.map.dispose(),e.material.dispose())}var r=e.val(),n=e.key(),i=g[n];if(!i)return void console.warn("Failed to find object matching deleted key",n);var o=r.syncType;if(!o)return void console.warn("No syncType found for object being destroyed",i);var a=p[o],s=!a;a&&(s=a(i)),s&&t(i),delete g[n],delete v[i.uuid]}var c=e.child("scene"),u=e.child("clients");t=t||{};var h,l,f=t.instantiators||{},p=t.destroyers||{},d=100,m=[],g={},v={},y={awake:n,instantiate:i,destroy:a,type:"SceneSync"};return Object.defineProperty(y,"autoSendRateMS",{get:function(){return d}}),Object.defineProperty(y,"isMasterClient",{get:function(){return l===h}}),Object.defineProperty(y,"clientId",{get:function(){return h}}),Object.defineProperty(y,"clientsRef",{get:function(){return u}}),y},window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},altspace.utilities.behaviors.Spin=function(e){function t(e){n=e}function r(t){n.rotation.y+=e.speed*t}e=e||{},void 0===e.speed&&(e.speed=1e-4);var n;return{awake:t,update:r}},window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},altspace.utilities.behaviors.TouchpadRotate=function(e){function t(e,t){s=e,c=t,altspace.addEventListener("touchpadup",r),altspace.addEventListener("touchpaddown",n),altspace.addEventListener("touchpadmove",i)}function r(e){h=!1}function n(e){h=!0,u=s.rotation.clone()}function i(e){var t=e.displacementX-l;s.rotation.set(u.x,u.y+e.displacementX/300,u.z),p=(p*f+t/300)/(f+1),l=e.displacementX}function o(e){!h&&Math.abs(p)>.01&&(s.rotation.y+=p,p*=.97)}function a(){}e=e||{};var s,c,u,h=!1,l=0,f=5,p=0;return{awake:t,start:a,update:o}},function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return require(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[a]={exports:{}};e[a][0].call(h.exports,function(t){var r=e[a][1][t];return i(r?r:t)},h,h.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a2?u[2]:void 0,l=Math.min((void 0===h?a:i(h,a))-c,a-s),f=1;for(s>c&&c+l>s&&(f=-1,c+=l-1,s+=l-1);l-- >0;)c in r?r[s]=r[c]:delete r[s],s+=f,c+=f;return r}},{"./$.to-index":76,"./$.to-length":79,"./$.to-object":80}],6:[function(e,t,r){"use strict";var n=e("./$.to-object"),i=e("./$.to-index"),o=e("./$.to-length");t.exports=[].fill||function(e){for(var t=n(this),r=o(t.length),a=arguments,s=a.length,c=i(s>1?a[1]:void 0,r),u=s>2?a[2]:void 0,h=void 0===u?r:i(u,r);h>c;)t[c++]=e;return t}},{"./$.to-index":76,"./$.to-length":79,"./$.to-object":80}],7:[function(e,t,r){var n=e("./$.to-iobject"),i=e("./$.to-length"),o=e("./$.to-index");t.exports=function(e){return function(t,r,a){var s,c=n(t),u=i(c.length),h=o(a,u);if(e&&r!=r){for(;u>h;)if(s=c[h++],s!=s)return!0}else for(;u>h;h++)if((e||h in c)&&c[h]===r)return e||h;return!e&&-1}}},{"./$.to-index":76,"./$.to-iobject":78,"./$.to-length":79}],8:[function(e,t,r){var n=e("./$.ctx"),i=e("./$.iobject"),o=e("./$.to-object"),a=e("./$.to-length"),s=e("./$.array-species-create");t.exports=function(e){var t=1==e,r=2==e,c=3==e,u=4==e,h=6==e,l=5==e||h;return function(f,p,d){for(var m,g,v=o(f),y=i(v),b=n(p,d,3),x=a(y.length),w=0,_=t?s(f,x):r?s(f,0):void 0;x>w;w++)if((l||w in y)&&(m=y[w],g=b(m,w,v),e))if(t)_[w]=g;else if(g)switch(e){case 3:return!0;case 5:return m;case 6:return w;case 2:_.push(m)}else if(u)return!1;return h?-1:c||u?u:_}}},{"./$.array-species-create":9,"./$.ctx":17,"./$.iobject":34,"./$.to-length":79,"./$.to-object":80}],9:[function(e,t,r){var n=e("./$.is-object"),i=e("./$.is-array"),o=e("./$.wks")("species");t.exports=function(e,t){var r;return i(e)&&(r=e.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)||(r=void 0),n(r)&&(r=r[o],null===r&&(r=void 0))),new(void 0===r?Array:r)(t)}},{"./$.is-array":36,"./$.is-object":38,"./$.wks":83}],10:[function(e,t,r){var n=e("./$.cof"),i=e("./$.wks")("toStringTag"),o="Arguments"==n(function(){return arguments}());t.exports=function(e){var t,r,a;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=(t=Object(e))[i])?r:o?n(t):"Object"==(a=n(t))&&"function"==typeof t.callee?"Arguments":a}},{"./$.cof":11,"./$.wks":83}],11:[function(e,t,r){var n={}.toString;t.exports=function(e){return n.call(e).slice(8,-1)}},{}],12:[function(e,t,r){"use strict";var n=e("./$"),i=e("./$.hide"),o=e("./$.redefine-all"),a=e("./$.ctx"),s=e("./$.strict-new"),c=e("./$.defined"),u=e("./$.for-of"),h=e("./$.iter-define"),l=e("./$.iter-step"),f=e("./$.uid")("id"),p=e("./$.has"),d=e("./$.is-object"),m=e("./$.set-species"),g=e("./$.descriptors"),v=Object.isExtensible||d,y=g?"_s":"size",b=0,x=function(e,t){if(!d(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!p(e,f)){if(!v(e))return"F";if(!t)return"E";i(e,f,++b)}return"O"+e[f]},w=function(e,t){var r,n=x(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r; -};t.exports={getConstructor:function(e,t,r,i){var h=e(function(e,o){s(e,h,t),e._i=n.create(null),e._f=void 0,e._l=void 0,e[y]=0,void 0!=o&&u(o,r,e[i],e)});return o(h.prototype,{clear:function(){for(var e=this,t=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete t[r.i];e._f=e._l=void 0,e[y]=0},"delete":function(e){var t=this,r=w(t,e);if(r){var n=r.n,i=r.p;delete t._i[r.i],r.r=!0,i&&(i.n=n),n&&(n.p=i),t._f==r&&(t._f=n),t._l==r&&(t._l=i),t[y]--}return!!r},forEach:function(e){for(var t,r=a(e,arguments.length>1?arguments[1]:void 0,3);t=t?t.n:this._f;)for(r(t.v,t.k,this);t&&t.r;)t=t.p},has:function(e){return!!w(this,e)}}),g&&n.setDesc(h.prototype,"size",{get:function(){return c(this[y])}}),h},def:function(e,t,r){var n,i,o=w(e,t);return o?o.v=r:(e._l=o={i:i=x(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=o),n&&(n.n=o),e[y]++,"F"!==i&&(e._i[i]=o)),e},getEntry:w,setStrong:function(e,t,r){h(e,t,function(e,t){this._t=e,this._k=t,this._l=void 0},function(){for(var e=this,t=e._k,r=e._l;r&&r.r;)r=r.p;return e._t&&(e._l=r=r?r.n:e._t._f)?"keys"==t?l(0,r.k):"values"==t?l(0,r.v):l(0,[r.k,r.v]):(e._t=void 0,l(1))},r?"entries":"values",!r,!0),m(t)}}},{"./$":46,"./$.ctx":17,"./$.defined":18,"./$.descriptors":19,"./$.for-of":27,"./$.has":30,"./$.hide":31,"./$.is-object":38,"./$.iter-define":42,"./$.iter-step":44,"./$.redefine-all":60,"./$.set-species":65,"./$.strict-new":69,"./$.uid":82}],13:[function(e,t,r){var n=e("./$.for-of"),i=e("./$.classof");t.exports=function(e){return function(){if(i(this)!=e)throw TypeError(e+"#toJSON isn't generic");var t=[];return n(this,!1,t.push,t),t}}},{"./$.classof":10,"./$.for-of":27}],14:[function(e,t,r){"use strict";var n=e("./$.hide"),i=e("./$.redefine-all"),o=e("./$.an-object"),a=e("./$.is-object"),s=e("./$.strict-new"),c=e("./$.for-of"),u=e("./$.array-methods"),h=e("./$.has"),l=e("./$.uid")("weak"),f=Object.isExtensible||a,p=u(5),d=u(6),m=0,g=function(e){return e._l||(e._l=new v)},v=function(){this.a=[]},y=function(e,t){return p(e.a,function(e){return e[0]===t})};v.prototype={get:function(e){var t=y(this,e);return t?t[1]:void 0},has:function(e){return!!y(this,e)},set:function(e,t){var r=y(this,e);r?r[1]=t:this.a.push([e,t])},"delete":function(e){var t=d(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},t.exports={getConstructor:function(e,t,r,n){var o=e(function(e,i){s(e,o,t),e._i=m++,e._l=void 0,void 0!=i&&c(i,r,e[n],e)});return i(o.prototype,{"delete":function(e){return a(e)?f(e)?h(e,l)&&h(e[l],this._i)&&delete e[l][this._i]:g(this)["delete"](e):!1},has:function(e){return a(e)?f(e)?h(e,l)&&h(e[l],this._i):g(this).has(e):!1}}),o},def:function(e,t,r){return f(o(t))?(h(t,l)||n(t,l,{}),t[l][e._i]=r):g(e).set(t,r),e},frozenStore:g,WEAK:l}},{"./$.an-object":4,"./$.array-methods":8,"./$.for-of":27,"./$.has":30,"./$.hide":31,"./$.is-object":38,"./$.redefine-all":60,"./$.strict-new":69,"./$.uid":82}],15:[function(e,t,r){"use strict";var n=e("./$.global"),i=e("./$.export"),o=e("./$.redefine"),a=e("./$.redefine-all"),s=e("./$.for-of"),c=e("./$.strict-new"),u=e("./$.is-object"),h=e("./$.fails"),l=e("./$.iter-detect"),f=e("./$.set-to-string-tag");t.exports=function(e,t,r,p,d,m){var g=n[e],v=g,y=d?"set":"add",b=v&&v.prototype,x={},w=function(e){var t=b[e];o(b,e,"delete"==e?function(e){return m&&!u(e)?!1:t.call(this,0===e?0:e)}:"has"==e?function(e){return m&&!u(e)?!1:t.call(this,0===e?0:e)}:"get"==e?function(e){return m&&!u(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,r){return t.call(this,0===e?0:e,r),this})};if("function"==typeof v&&(m||b.forEach&&!h(function(){(new v).entries().next()}))){var _,S=new v,M=S[y](m?{}:-0,1)!=S,E=h(function(){S.has(1)}),T=l(function(e){new v(e)});T||(v=t(function(t,r){c(t,v,e);var n=new g;return void 0!=r&&s(r,d,n[y],n),n}),v.prototype=b,b.constructor=v),m||S.forEach(function(e,t){_=1/t===-(1/0)}),(E||_)&&(w("delete"),w("has"),d&&w("get")),(_||M)&&w(y),m&&b.clear&&delete b.clear}else v=p.getConstructor(t,e,d,y),a(v.prototype,r);return f(v,e),x[e]=v,i(i.G+i.W+i.F*(v!=g),x),m||p.setStrong(v,e,d),v}},{"./$.export":22,"./$.fails":24,"./$.for-of":27,"./$.global":29,"./$.is-object":38,"./$.iter-detect":43,"./$.redefine":61,"./$.redefine-all":60,"./$.set-to-string-tag":66,"./$.strict-new":69}],16:[function(e,t,r){var n=t.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},{}],17:[function(e,t,r){var n=e("./$.a-function");t.exports=function(e,t,r){if(n(e),void 0===t)return e;switch(r){case 1:return function(r){return e.call(t,r)};case 2:return function(r,n){return e.call(t,r,n)};case 3:return function(r,n,i){return e.call(t,r,n,i)}}return function(){return e.apply(t,arguments)}}},{"./$.a-function":2}],18:[function(e,t,r){t.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},{}],19:[function(e,t,r){t.exports=!e("./$.fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./$.fails":24}],20:[function(e,t,r){var n=e("./$.is-object"),i=e("./$.global").document,o=n(i)&&n(i.createElement);t.exports=function(e){return o?i.createElement(e):{}}},{"./$.global":29,"./$.is-object":38}],21:[function(e,t,r){var n=e("./$");t.exports=function(e){var t=n.getKeys(e),r=n.getSymbols;if(r)for(var i,o=r(e),a=n.isEnum,s=0;o.length>s;)a.call(e,i=o[s++])&&t.push(i);return t}},{"./$":46}],22:[function(e,t,r){var n=e("./$.global"),i=e("./$.core"),o=e("./$.hide"),a=e("./$.redefine"),s=e("./$.ctx"),c="prototype",u=function(e,t,r){var h,l,f,p,d=e&u.F,m=e&u.G,g=e&u.S,v=e&u.P,y=e&u.B,b=m?n:g?n[t]||(n[t]={}):(n[t]||{})[c],x=m?i:i[t]||(i[t]={}),w=x[c]||(x[c]={});m&&(r=t);for(h in r)l=!d&&b&&h in b,f=(l?b:r)[h],p=y&&l?s(f,n):v&&"function"==typeof f?s(Function.call,f):f,b&&!l&&a(b,h,f),x[h]!=f&&o(x,h,p),v&&w[h]!=f&&(w[h]=f)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,t.exports=u},{"./$.core":16,"./$.ctx":17,"./$.global":29,"./$.hide":31,"./$.redefine":61}],23:[function(e,t,r){var n=e("./$.wks")("match");t.exports=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[n]=!1,!"/./"[e](t)}catch(i){}}return!0}},{"./$.wks":83}],24:[function(e,t,r){t.exports=function(e){try{return!!e()}catch(t){return!0}}},{}],25:[function(e,t,r){"use strict";var n=e("./$.hide"),i=e("./$.redefine"),o=e("./$.fails"),a=e("./$.defined"),s=e("./$.wks");t.exports=function(e,t,r){var c=s(e),u=""[e];o(function(){var t={};return t[c]=function(){return 7},7!=""[e](t)})&&(i(String.prototype,e,r(a,c,u)),n(RegExp.prototype,c,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)}))}},{"./$.defined":18,"./$.fails":24,"./$.hide":31,"./$.redefine":61,"./$.wks":83}],26:[function(e,t,r){"use strict";var n=e("./$.an-object");t.exports=function(){var e=n(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},{"./$.an-object":4}],27:[function(e,t,r){var n=e("./$.ctx"),i=e("./$.iter-call"),o=e("./$.is-array-iter"),a=e("./$.an-object"),s=e("./$.to-length"),c=e("./core.get-iterator-method");t.exports=function(e,t,r,u){var h,l,f,p=c(e),d=n(r,u,t?2:1),m=0;if("function"!=typeof p)throw TypeError(e+" is not iterable!");if(o(p))for(h=s(e.length);h>m;m++)t?d(a(l=e[m])[0],l[1]):d(e[m]);else for(f=p.call(e);!(l=f.next()).done;)i(f,d,l.value,t)}},{"./$.an-object":4,"./$.ctx":17,"./$.is-array-iter":35,"./$.iter-call":40,"./$.to-length":79,"./core.get-iterator-method":84}],28:[function(e,t,r){var n=e("./$.to-iobject"),i=e("./$").getNames,o={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(e){try{return i(e)}catch(t){return a.slice()}};t.exports.get=function(e){return a&&"[object Window]"==o.call(e)?s(e):i(n(e))}},{"./$":46,"./$.to-iobject":78}],29:[function(e,t,r){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],30:[function(e,t,r){var n={}.hasOwnProperty;t.exports=function(e,t){return n.call(e,t)}},{}],31:[function(e,t,r){var n=e("./$"),i=e("./$.property-desc");t.exports=e("./$.descriptors")?function(e,t,r){return n.setDesc(e,t,i(1,r))}:function(e,t,r){return e[t]=r,e}},{"./$":46,"./$.descriptors":19,"./$.property-desc":59}],32:[function(e,t,r){t.exports=e("./$.global").document&&document.documentElement},{"./$.global":29}],33:[function(e,t,r){t.exports=function(e,t,r){var n=void 0===r;switch(t.length){case 0:return n?e():e.call(r);case 1:return n?e(t[0]):e.call(r,t[0]);case 2:return n?e(t[0],t[1]):e.call(r,t[0],t[1]);case 3:return n?e(t[0],t[1],t[2]):e.call(r,t[0],t[1],t[2]);case 4:return n?e(t[0],t[1],t[2],t[3]):e.call(r,t[0],t[1],t[2],t[3])}return e.apply(r,t)}},{}],34:[function(e,t,r){var n=e("./$.cof");t.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==n(e)?e.split(""):Object(e)}},{"./$.cof":11}],35:[function(e,t,r){var n=e("./$.iterators"),i=e("./$.wks")("iterator"),o=Array.prototype;t.exports=function(e){return void 0!==e&&(n.Array===e||o[i]===e)}},{"./$.iterators":45,"./$.wks":83}],36:[function(e,t,r){var n=e("./$.cof");t.exports=Array.isArray||function(e){return"Array"==n(e)}},{"./$.cof":11}],37:[function(e,t,r){var n=e("./$.is-object"),i=Math.floor;t.exports=function(e){return!n(e)&&isFinite(e)&&i(e)===e}},{"./$.is-object":38}],38:[function(e,t,r){t.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},{}],39:[function(e,t,r){var n=e("./$.is-object"),i=e("./$.cof"),o=e("./$.wks")("match");t.exports=function(e){var t;return n(e)&&(void 0!==(t=e[o])?!!t:"RegExp"==i(e))}},{"./$.cof":11,"./$.is-object":38,"./$.wks":83}],40:[function(e,t,r){var n=e("./$.an-object");t.exports=function(e,t,r,i){try{return i?t(n(r)[0],r[1]):t(r)}catch(o){var a=e["return"];throw void 0!==a&&n(a.call(e)),o}}},{"./$.an-object":4}],41:[function(e,t,r){"use strict";var n=e("./$"),i=e("./$.property-desc"),o=e("./$.set-to-string-tag"),a={};e("./$.hide")(a,e("./$.wks")("iterator"),function(){return this}),t.exports=function(e,t,r){e.prototype=n.create(a,{next:i(1,r)}),o(e,t+" Iterator")}},{"./$":46,"./$.hide":31,"./$.property-desc":59,"./$.set-to-string-tag":66,"./$.wks":83}],42:[function(e,t,r){"use strict";var n=e("./$.library"),i=e("./$.export"),o=e("./$.redefine"),a=e("./$.hide"),s=e("./$.has"),c=e("./$.iterators"),u=e("./$.iter-create"),h=e("./$.set-to-string-tag"),l=e("./$").getProto,f=e("./$.wks")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",m="keys",g="values",v=function(){return this};t.exports=function(e,t,r,y,b,x,w){u(r,t,y);var _,S,M=function(e){if(!p&&e in C)return C[e];switch(e){case m:return function(){return new r(this,e)};case g:return function(){return new r(this,e)}}return function(){return new r(this,e)}},E=t+" Iterator",T=b==g,A=!1,C=e.prototype,L=C[f]||C[d]||b&&C[b],k=L||M(b);if(L){var F=l(k.call(new e));h(F,E,!0),!n&&s(C,d)&&a(F,f,v),T&&L.name!==g&&(A=!0,k=function(){return L.call(this)})}if(n&&!w||!p&&!A&&C[f]||a(C,f,k),c[t]=k,c[E]=v,b)if(_={values:T?k:M(g),keys:x?k:M(m),entries:T?M("entries"):k},w)for(S in _)S in C||o(C,S,_[S]);else i(i.P+i.F*(p||A),t,_);return _}},{"./$":46,"./$.export":22,"./$.has":30,"./$.hide":31,"./$.iter-create":41,"./$.iterators":45,"./$.library":48,"./$.redefine":61,"./$.set-to-string-tag":66,"./$.wks":83}],43:[function(e,t,r){var n=e("./$.wks")("iterator"),i=!1;try{var o=[7][n]();o["return"]=function(){i=!0},Array.from(o,function(){throw 2})}catch(a){}t.exports=function(e,t){if(!t&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){r=!0},o[n]=function(){return a},e(o)}catch(s){}return r}},{"./$.wks":83}],44:[function(e,t,r){t.exports=function(e,t){return{value:t,done:!!e}}},{}],45:[function(e,t,r){t.exports={}},{}],46:[function(e,t,r){var n=Object;t.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},{}],47:[function(e,t,r){var n=e("./$"),i=e("./$.to-iobject");t.exports=function(e,t){for(var r,o=i(e),a=n.getKeys(o),s=a.length,c=0;s>c;)if(o[r=a[c++]]===t)return r}},{"./$":46,"./$.to-iobject":78}],48:[function(e,t,r){t.exports=!1},{}],49:[function(e,t,r){t.exports=Math.expm1||function(e){return 0==(e=+e)?e:e>-1e-6&&1e-6>e?e+e*e/2:Math.exp(e)-1}},{}],50:[function(e,t,r){t.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&1e-8>e?e-e*e/2:Math.log(1+e)}},{}],51:[function(e,t,r){t.exports=Math.sign||function(e){return 0==(e=+e)||e!=e?e:0>e?-1:1}},{}],52:[function(e,t,r){var n,i,o,a=e("./$.global"),s=e("./$.task").set,c=a.MutationObserver||a.WebKitMutationObserver,u=a.process,h=a.Promise,l="process"==e("./$.cof")(u),f=function(){var e,t,r;for(l&&(e=u.domain)&&(u.domain=null,e.exit());n;)t=n.domain,r=n.fn,t&&t.enter(),r(),t&&t.exit(),n=n.next;i=void 0,e&&e.enter()};if(l)o=function(){u.nextTick(f)};else if(c){var p=1,d=document.createTextNode("");new c(f).observe(d,{characterData:!0}),o=function(){d.data=p=-p}}else o=h&&h.resolve?function(){h.resolve().then(f)}:function(){s.call(a,f)};t.exports=function(e){var t={fn:e,next:void 0,domain:l&&u.domain};i&&(i.next=t),n||(n=t,o()),i=t}},{"./$.cof":11,"./$.global":29,"./$.task":75}],53:[function(e,t,r){var n=e("./$"),i=e("./$.to-object"),o=e("./$.iobject");t.exports=e("./$.fails")(function(){var e=Object.assign,t={},r={},n=Symbol(),i="abcdefghijklmnopqrst";return t[n]=7,i.split("").forEach(function(e){r[e]=e}),7!=e({},t)[n]||Object.keys(e({},r)).join("")!=i})?function(e,t){for(var r=i(e),a=arguments,s=a.length,c=1,u=n.getKeys,h=n.getSymbols,l=n.isEnum;s>c;)for(var f,p=o(a[c++]),d=h?u(p).concat(h(p)):u(p),m=d.length,g=0;m>g;)l.call(p,f=d[g++])&&(r[f]=p[f]);return r}:Object.assign},{"./$":46,"./$.fails":24,"./$.iobject":34,"./$.to-object":80}],54:[function(e,t,r){var n=e("./$.export"),i=e("./$.core"),o=e("./$.fails");t.exports=function(e,t){var r=(i.Object||{})[e]||Object[e],a={};a[e]=t(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},{"./$.core":16,"./$.export":22,"./$.fails":24}],55:[function(e,t,r){var n=e("./$"),i=e("./$.to-iobject"),o=n.isEnum;t.exports=function(e){return function(t){for(var r,a=i(t),s=n.getKeys(a),c=s.length,u=0,h=[];c>u;)o.call(a,r=s[u++])&&h.push(e?[r,a[r]]:a[r]);return h}}},{"./$":46,"./$.to-iobject":78}],56:[function(e,t,r){var n=e("./$"),i=e("./$.an-object"),o=e("./$.global").Reflect;t.exports=o&&o.ownKeys||function(e){var t=n.getNames(i(e)),r=n.getSymbols;return r?t.concat(r(e)):t}},{"./$":46,"./$.an-object":4,"./$.global":29}],57:[function(e,t,r){"use strict";var n=e("./$.path"),i=e("./$.invoke"),o=e("./$.a-function");t.exports=function(){for(var e=o(this),t=arguments.length,r=Array(t),a=0,s=n._,c=!1;t>a;)(r[a]=arguments[a++])===s&&(c=!0);return function(){var n,o=this,a=arguments,u=a.length,h=0,l=0;if(!c&&!u)return i(e,r,o);if(n=r.slice(),c)for(;t>h;h++)n[h]===s&&(n[h]=a[l++]);for(;u>l;)n.push(a[l++]);return i(e,n,o)}}},{"./$.a-function":2,"./$.invoke":33,"./$.path":58}],58:[function(e,t,r){t.exports=e("./$.global")},{"./$.global":29}],59:[function(e,t,r){t.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},{}],60:[function(e,t,r){var n=e("./$.redefine");t.exports=function(e,t){for(var r in t)n(e,r,t[r]);return e}},{"./$.redefine":61}],61:[function(e,t,r){var n=e("./$.global"),i=e("./$.hide"),o=e("./$.uid")("src"),a="toString",s=Function[a],c=(""+s).split(a);e("./$.core").inspectSource=function(e){return s.call(e)},(t.exports=function(e,t,r,a){"function"==typeof r&&(r.hasOwnProperty(o)||i(r,o,e[t]?""+e[t]:c.join(String(t))),r.hasOwnProperty("name")||i(r,"name",t)),e===n?e[t]=r:(a||delete e[t],i(e,t,r))})(Function.prototype,a,function(){return"function"==typeof this&&this[o]||s.call(this)})},{"./$.core":16,"./$.global":29,"./$.hide":31,"./$.uid":82}],62:[function(e,t,r){t.exports=function(e,t){var r=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,r)}}},{}],63:[function(e,t,r){t.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},{}],64:[function(e,t,r){var n=e("./$").getDesc,i=e("./$.is-object"),o=e("./$.an-object"),a=function(e,t){if(o(e),!i(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,r,i){try{i=e("./$.ctx")(Function.call,n(Object.prototype,"__proto__").set,2),i(t,[]),r=!(t instanceof Array)}catch(o){r=!0}return function(e,t){return a(e,t),r?e.__proto__=t:i(e,t),e}}({},!1):void 0),check:a}},{"./$":46,"./$.an-object":4,"./$.ctx":17,"./$.is-object":38}],65:[function(e,t,r){"use strict";var n=e("./$.global"),i=e("./$"),o=e("./$.descriptors"),a=e("./$.wks")("species");t.exports=function(e){var t=n[e];o&&t&&!t[a]&&i.setDesc(t,a,{configurable:!0,get:function(){return this}})}},{"./$":46,"./$.descriptors":19,"./$.global":29,"./$.wks":83}],66:[function(e,t,r){var n=e("./$").setDesc,i=e("./$.has"),o=e("./$.wks")("toStringTag");t.exports=function(e,t,r){e&&!i(e=r?e:e.prototype,o)&&n(e,o,{configurable:!0,value:t})}},{"./$":46,"./$.has":30,"./$.wks":83}],67:[function(e,t,r){var n=e("./$.global"),i="__core-js_shared__",o=n[i]||(n[i]={});t.exports=function(e){return o[e]||(o[e]={})}},{"./$.global":29}],68:[function(e,t,r){var n=e("./$.an-object"),i=e("./$.a-function"),o=e("./$.wks")("species");t.exports=function(e,t){var r,a=n(e).constructor;return void 0===a||void 0==(r=n(a)[o])?t:i(r)}},{"./$.a-function":2,"./$.an-object":4,"./$.wks":83}],69:[function(e,t,r){t.exports=function(e,t,r){if(!(e instanceof t))throw TypeError(r+": use the 'new' operator!");return e}},{}],70:[function(e,t,r){var n=e("./$.to-integer"),i=e("./$.defined");t.exports=function(e){return function(t,r){var o,a,s=String(i(t)),c=n(r),u=s.length;return 0>c||c>=u?e?"":void 0:(o=s.charCodeAt(c),55296>o||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):o:e?s.slice(c,c+2):(o-55296<<10)+(a-56320)+65536)}}},{"./$.defined":18,"./$.to-integer":77}],71:[function(e,t,r){var n=e("./$.is-regexp"),i=e("./$.defined");t.exports=function(e,t,r){if(n(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(e))}},{"./$.defined":18,"./$.is-regexp":39}],72:[function(e,t,r){var n=e("./$.to-length"),i=e("./$.string-repeat"),o=e("./$.defined");t.exports=function(e,t,r,a){var s=String(o(e)),c=s.length,u=void 0===r?" ":String(r),h=n(t);if(c>=h)return s;""==u&&(u=" ");var l=h-c,f=i.call(u,Math.ceil(l/u.length));return f.length>l&&(f=f.slice(0,l)),a?f+s:s+f}},{"./$.defined":18,"./$.string-repeat":73,"./$.to-length":79}],73:[function(e,t,r){"use strict";var n=e("./$.to-integer"),i=e("./$.defined");t.exports=function(e){var t=String(i(this)),r="",o=n(e);if(0>o||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(t+=t))1&o&&(r+=t);return r}},{"./$.defined":18,"./$.to-integer":77}],74:[function(e,t,r){var n=e("./$.export"),i=e("./$.defined"),o=e("./$.fails"),a=" \n\x0B\f\r   ᠎              \u2028\u2029\ufeff",s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),h=RegExp(s+s+"*$"),l=function(e,t){var r={};r[e]=t(f),n(n.P+n.F*o(function(){return!!a[e]()||c[e]()!=c}),"String",r)},f=l.trim=function(e,t){return e=String(i(e)),1&t&&(e=e.replace(u,"")),2&t&&(e=e.replace(h,"")),e};t.exports=l},{"./$.defined":18,"./$.export":22,"./$.fails":24}],75:[function(e,t,r){var n,i,o,a=e("./$.ctx"),s=e("./$.invoke"),c=e("./$.html"),u=e("./$.dom-create"),h=e("./$.global"),l=h.process,f=h.setImmediate,p=h.clearImmediate,d=h.MessageChannel,m=0,g={},v="onreadystatechange",y=function(){var e=+this;if(g.hasOwnProperty(e)){var t=g[e];delete g[e],t()}},b=function(e){y.call(e.data)};f&&p||(f=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return g[++m]=function(){s("function"==typeof e?e:Function(e),t)},n(m),m},p=function(e){delete g[e]},"process"==e("./$.cof")(l)?n=function(e){l.nextTick(a(y,e,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(n=function(e){h.postMessage(e+"","*")},h.addEventListener("message",b,!1)):n=v in u("script")?function(e){c.appendChild(u("script"))[v]=function(){c.removeChild(this),y.call(e)}}:function(e){setTimeout(a(y,e,1),0)}),t.exports={set:f,clear:p}},{"./$.cof":11,"./$.ctx":17,"./$.dom-create":20,"./$.global":29,"./$.html":32,"./$.invoke":33}],76:[function(e,t,r){var n=e("./$.to-integer"),i=Math.max,o=Math.min;t.exports=function(e,t){return e=n(e),0>e?i(e+t,0):o(e,t)}},{"./$.to-integer":77}],77:[function(e,t,r){var n=Math.ceil,i=Math.floor;t.exports=function(e){return isNaN(e=+e)?0:(e>0?i:n)(e)}},{}],78:[function(e,t,r){var n=e("./$.iobject"),i=e("./$.defined");t.exports=function(e){return n(i(e))}},{"./$.defined":18,"./$.iobject":34}],79:[function(e,t,r){var n=e("./$.to-integer"),i=Math.min;t.exports=function(e){return e>0?i(n(e),9007199254740991):0}},{"./$.to-integer":77}],80:[function(e,t,r){var n=e("./$.defined");t.exports=function(e){return Object(n(e))}},{"./$.defined":18}],81:[function(e,t,r){var n=e("./$.is-object");t.exports=function(e,t){if(!n(e))return e;var r,i;if(t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;if("function"==typeof(r=e.valueOf)&&!n(i=r.call(e)))return i;if(!t&&"function"==typeof(r=e.toString)&&!n(i=r.call(e)))return i;throw TypeError("Can't convert object to primitive value")}},{"./$.is-object":38}],82:[function(e,t,r){var n=0,i=Math.random();t.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+i).toString(36))}},{}],83:[function(e,t,r){var n=e("./$.shared")("wks"),i=e("./$.uid"),o=e("./$.global").Symbol;t.exports=function(e){return n[e]||(n[e]=o&&o[e]||(o||i)("Symbol."+e))}},{"./$.global":29,"./$.shared":67,"./$.uid":82}],84:[function(e,t,r){var n=e("./$.classof"),i=e("./$.wks")("iterator"),o=e("./$.iterators");t.exports=e("./$.core").getIteratorMethod=function(e){return void 0!=e?e[i]||e["@@iterator"]||o[n(e)]:void 0}},{"./$.classof":10,"./$.core":16,"./$.iterators":45,"./$.wks":83}],85:[function(e,t,r){"use strict";var n,i=e("./$"),o=e("./$.export"),a=e("./$.descriptors"),s=e("./$.property-desc"),c=e("./$.html"),u=e("./$.dom-create"),h=e("./$.has"),l=e("./$.cof"),f=e("./$.invoke"),p=e("./$.fails"),d=e("./$.an-object"),m=e("./$.a-function"),g=e("./$.is-object"),v=e("./$.to-object"),y=e("./$.to-iobject"),b=e("./$.to-integer"),x=e("./$.to-index"),w=e("./$.to-length"),_=e("./$.iobject"),S=e("./$.uid")("__proto__"),M=e("./$.array-methods"),E=e("./$.array-includes")(!1),T=Object.prototype,A=Array.prototype,C=A.slice,L=A.join,k=i.setDesc,F=i.getDesc,P=i.setDescs,R={};a||(n=!p(function(){return 7!=k(u("div"),"a",{get:function(){return 7}}).a}),i.setDesc=function(e,t,r){if(n)try{return k(e,t,r)}catch(i){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(d(e)[t]=r.value),e},i.getDesc=function(e,t){if(n)try{return F(e,t)}catch(r){}return h(e,t)?s(!T.propertyIsEnumerable.call(e,t),e[t]):void 0},i.setDescs=P=function(e,t){d(e);for(var r,n=i.getKeys(t),o=n.length,a=0;o>a;)i.setDesc(e,r=n[a++],t[r]);return e}),o(o.S+o.F*!a,"Object",{getOwnPropertyDescriptor:i.getDesc,defineProperty:i.setDesc,defineProperties:P});var D="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),O=D.concat("length","prototype"),U=D.length,B=function(){var e,t=u("iframe"),r=U,n=">";for(t.style.display="none",c.appendChild(t),t.src="javascript:",e=t.contentWindow.document,e.open(),e.write("'),t=""+t+"";try{this.Ea.fb.open(),this.Ea.fb.write(t),this.Ea.fb.close()}catch(t){Cb("frame writing exception"),t.stack&&Cb(t.stack),Cb(t)}}function fh(t){if(t.me&&t.Xd&&t.Qe.count()<(0=t.ad[0].kf.length+30+r.length;){var i=t.ad.shift(),r=r+"&seg"+n+"="+i.Kg+"&ts"+n+"="+i.Sg+"&d"+n+"="+i.kf;n++}return gh(t,e+r,t.ue),!0}return!1}function gh(t,e,r){function n(){t.Qe.remove(r),fh(t)}t.Qe.add(r,1);var i=setTimeout(n,Math.floor(25e3));eh(t,e,function(){clearTimeout(i),n()})}function eh(t,e,r){setTimeout(function(){try{if(t.Xd){var n=t.Ea.fb.createElement("script");n.type="text/javascript",n.async=!0,n.src=e,n.onload=n.onreadystatechange=function(){var t=n.readyState;t&&"loaded"!==t&&"complete"!==t||(n.onload=n.onreadystatechange=null,n.parentNode&&n.parentNode.removeChild(n),r())},n.onerror=function(){Cb("Long-poll script failed to load: "+e),t.Xd=!1,t.close()},t.Ea.fb.body.appendChild(n)}}catch(t){}},Math.floor(1))}function ih(t,e,r){this.se=t,this.f=Nc(this.se),this.frames=this.Kc=null,this.ob=this.pb=this.cf=0,this.Va=Qb(e),this.eb=(e.lb?"wss://":"ws://")+e.Pa+"/.ws?v=5","undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(this.eb+="&r=f"),e.host!==e.Pa&&(this.eb=this.eb+"&ns="+e.Db),r&&(this.eb=this.eb+"&s="+r)}function lh(t,e){if(t.frames.push(e),t.frames.length==t.cf){var r=t.frames.join("");t.frames=null,r=nb(r),t.xg(r)}}function kh(t){clearInterval(t.Kc),t.Kc=setInterval(function(){t.ua&&t.ua.send("0"),kh(t)},Math.floor(45e3))}function mh(t){nh(this,t)}function nh(t,e){var r=ih&&ih.isAvailable(),n=r&&!(Cc.wf||!0===Cc.get("previous_websocket_failure"));if(e.Ug&&(r||Q("wss:// URL used, but browser isn't known to support websockets. Trying anyway."),n=!0),n)t.gd=[ih];else{var i=t.gd=[];Xc(oh,function(t,e){e&&e.isAvailable()&&i.push(e)})}}function ph(t){if(0=t.Mf?(t.f("Secondary connection is healthy."),t.Bb=!0,t.D.Ed(),t.D.start(),t.f("sending client ack on secondary"),t.D.send({t:"c",d:{t:"a",d:{}}}),t.f("Ending transmission on primary"),t.I.send({t:"c",d:{t:"n",d:{}}}),t.hd=t.D,wh(t)):(t.f("sending ping on secondary."),t.D.send({t:"c",d:{t:"p",d:{}}}))}function yh(t){t.Bb||(t.Se--,0>=t.Se&&(t.f("Primary connection is healthy."),t.Bb=!0,t.I.Ed()))}function vh(t,e){t.D=new e("c:"+t.id+":"+t.ff++,t.F,t.Zd),t.Mf=e.responsesRequiredToBeHealthy||0,t.D.open(sh(t,t.D),th(t,t.D)),setTimeout(function(){t.D&&(t.f("Timed out trying to upgrade."),t.D.close())},Math.floor(6e4))}function uh(t,e,r){t.f("Realtime connection established."),t.I=e,t.Ua=1,t.Wc&&(t.Wc(r),t.Wc=null),0===t.Se?(t.f("Primary connection is healthy."),t.Bb=!0):setTimeout(function(){zh(t)},Math.floor(5e3))}function zh(t){t.Bb||1!==t.Ua||(t.f("sending ping on primary."),Bh(t,{t:"c",d:{t:"p",d:{}}}))}function Bh(t,e){if(1!==t.Ua)throw"Connection is not connected";t.hd.send(e)}function xh(t){t.f("Shutting down all connections"),t.I&&(t.I.close(),t.I=null),t.D&&(t.D.close(),t.D=null),t.yd&&(clearTimeout(t.yd),t.yd=null)}function Ch(t,e,r,n){this.id=Dh++,this.f=Nc("p:"+this.id+":"),this.xf=this.Fe=!1,this.$={},this.qa=[],this.Yc=0,this.Vc=[],this.oa=!1,this.Za=1e3,this.Fd=3e5,this.Hb=e,this.Uc=r,this.Pe=n,this.F=t,this.tb=this.Aa=this.Ia=this.Xe=null,this.Ob=!1,this.Td={},this.Jg=0,this.nf=!0,this.Lc=this.He=null,Eh(this,0),Pf.vb().Fb("visible",this.Ag,this),-1===t.host.indexOf("fblocal")&&Of.vb().Fb("online",this.yg,this)}function Gh(t,e){var r=e.Gg,n=r.path.toString(),i=r.va();t.f("Listen on "+n+" for "+i);var o={p:n};e.tag&&(o.q=ce(r.o),o.t=e.tag),o.h=e.xd(),t.Fa("q",o,function(o){var a=o.d,s=o.s;if(a&&"object"==typeof a&&v(a,"w")){var c=w(a,"w");ea(c)&&0<=Na(c,"no_index")&&Q("Using an unspecified index. Consider adding "+('".indexOn": "'+r.o.g.toString()+'"')+" at "+r.path.toString()+" to your security rules for better performance")}(t.$[n]&&t.$[n][i])===e&&(t.f("listen response",o),"ok"!==s&&Hh(t,n,i),e.G&&e.G(s,a))})}function Ih(t){var e=t.Aa;t.oa&&e&&t.Fa("auth",{cred:e.gg},function(r){var n=r.s;r=r.d||"error","ok"!==n&&t.Aa===e&&delete t.Aa,e.of?"ok"!==n&&e.md&&e.md(n,r):(e.of=!0,e.zc&&e.zc(n,r))})}function Jh(t,e,r,n,i){r={p:r,d:n},t.f("onDisconnect "+e,r),t.Fa(e,r,function(t){i&&setTimeout(function(){i(t.s,t.d)},Math.floor(0))})}function Kh(t,e,r,i,o,a){i={p:r,d:i},n(a)&&(i.h=a),t.qa.push({action:e,Jf:i,G:o}),t.Yc++,e=t.qa.length-1,t.oa?Lh(t,e):t.f("Buffering put: "+r)}function Lh(t,e){var r=t.qa[e].action,n=t.qa[e].Jf,i=t.qa[e].G;t.qa[e].Hg=t.oa,t.Fa(r,n,function(n){t.f(r+" response",n),delete t.qa[e],t.Yc--,0===t.Yc&&(t.qa=[]),i&&i(n.s,n.d)})}function Eh(t,e){K(!t.Ia,"Scheduling a connect when we're already connected/ing?"),t.tb&&clearTimeout(t.tb),t.tb=setTimeout(function(){t.tb=null,Oh(t)},Math.floor(e))}function Oh(t){if(Ph(t)){t.f("Making a connection attempt"),t.He=(new Date).getTime(),t.Lc=null;var e=q(t.Id,t),r=q(t.Wc,t),n=q(t.Df,t),i=t.id+":"+Fh++;t.Ia=new qh(i,t.F,e,r,n,function(e){Q(e+" ("+t.F.toString()+")"),t.xf=!0})}}function Mh(t,e,r){r=r?Qa(r,function(t){return Vc(t)}).join("$"):"default",(t=Hh(t,e,r))&&t.G&&t.G("permission_denied")}function Hh(t,e,r){e=new L(e).toString();var i;return n(t.$[e])?(i=t.$[e][r],delete t.$[e][r],0===pa(t.$[e])&&delete t.$[e]):i=void 0,i}function Nh(t){Ih(t),r(t.$,function(e){r(e,function(e){Gh(t,e)})});for(var e=0;e.firebaseio.com instead"),r&&"undefined"!=r||Pc("Cannot parse Firebase url. Please use https://.firebaseio.com"),n.lb||"undefined"!=typeof window&&window.location&&window.location.protocol&&-1!==window.location.protocol.indexOf("https:")&&Q("Insecure Firebase access from a secure page. Please use https in calls to new Firebase()."),r=new Dc(n.host,n.lb,r,"ws"===n.scheme||"wss"===n.scheme),n=new L(n.$c),i=n.toString();var o;if(!(o=!p(r.host)||0===r.host.length||!Tf(r.Db))&&(o=0!==i.length)&&(i&&(i=i.replace(/^\/*\.info(\/|$)/,"/")),o=!(p(i)&&0!==i.length&&!Rf.test(i))),o)throw Error(z("new Firebase",1,!1)+'must be a valid firebase URL and the path can\'t contain ".", "#", "$", "[", or "]".');if(e)if(e instanceof W)i=e;else{if(!p(e))throw Error("Expected a valid Firebase.Context for second argument to new Firebase()");i=W.vb(),r.Od=e}else i=W.vb();o=r.toString();var a=w(i.oc,o);a||(a=new Qh(r,i.Qf),i.oc[o]=a),r=a}Y.call(this,r,n,$d,!1)}function Mc(t,e){K(!e||!0===t||!1===t,"Can't turn on custom loggers persistently."),!0===t?("undefined"!=typeof console&&("function"==typeof console.log?Bb=q(console.log,console):"object"==typeof console.log&&(Bb=function(t){console.log(t)})),e&&P.set("logging_enabled",!0)):t?Bb=t:(Bb=null,P.remove("logging_enabled"))}var g,aa=this,la=Date.now||function(){return+new Date},ya="constructor hasOwnProperty isPrototypeOf propertyIsEnumerable toLocaleString toString valueOf".split(" "),Ea={'"':'\\"',"\\":"\\\\","/":"\\/","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r","\t":"\\t","\v":"\\u000b"},Fa=/\uffff/.test("￿")?/[\\\"\x00-\x1f\x7f-\uffff]/g:/[\\\"\x00-\x1f\x7f-\xff]/g,Ha;t:{var Ia=aa.navigator;if(Ia){var Ja=Ia.userAgent;if(Ja){Ha=Ja;break t}}Ha=""}ma(La,Ka),La.prototype.reset=function(){this.P[0]=1732584193,this.P[1]=4023233417,this.P[2]=2562383102,this.P[3]=271733878,this.P[4]=3285377520,this.ee=this.ac=0},La.prototype.update=function(t,e){if(null!=t){n(e)||(e=t.length);for(var r=e-this.Wa,i=0,o=this.ne,a=this.ac;ir?Math.max(0,t.length+r):r,p(t))return p(e)&&1==e.length?t.indexOf(e,r):-1;for(;rparseFloat(e))?String(t):e)}();var cb=null,db=null,eb=null,hb=hb||"2.2.9";ob.prototype.j=function(t){return this.Wd.Y(t)},ob.prototype.toString=function(){return this.Wd.toString()},pb.prototype.qf=function(){return null},pb.prototype.ze=function(){return null};var qb=new pb;rb.prototype.qf=function(t){var e=this.Ka.Q;return sb(e,t)?e.j().J(t):(e=null!=this.Kd?new tb(this.Kd,!0,!1):this.Ka.C(),this.Rf.xc(t,e))},rb.prototype.ze=function(t,e,r){var n=null!=this.Kd?this.Kd:ub(this.Ka);return t=this.Rf.oe(n,e,1,r,t),0===t.length?null:t[0]},xb.prototype.add=function(t){this.vd.push(t)},xb.prototype.Zb=function(){return this.ra};var Fb="value";Gb.prototype.Zb=function(){var t=this.$d.mc();return"value"===this.ud?t.path:t.parent().path},Gb.prototype.Ae=function(){return this.ud},Gb.prototype.Vb=function(){return this.ve.Vb(this)},Gb.prototype.toString=function(){return this.Zb().toString()+":"+this.ud+":"+B(this.$d.mf())},Hb.prototype.Zb=function(){return this.path},Hb.prototype.Ae=function(){return"cancel"},Hb.prototype.Vb=function(){return this.ve.Vb(this)},Hb.prototype.toString=function(){return this.path.toString()+":cancel"},tb.prototype.j=function(){return this.w},Kb.prototype.get=function(){var t=this.eg.get(),e=xa(t);if(this.Dd)for(var r in this.Dd)e[r]-=this.Dd[r];return this.Dd=t,e},Lb.prototype.If=function(){var t,e=this.fd.get(),r={},n=!1;for(t in e)0e?r=r.left:0n?i.X(null,null,null,i.left.Oa(t,e,r),null):0===n?i.X(null,e,null,null,null):i.X(null,null,null,null,i.right.Oa(t,e,r)),gc(i)},g.remove=function(t,e){var r,n;if(r=this,0>e(t,r.key))r.left.e()||r.left.fa()||r.left.left.fa()||(r=ic(r)),r=r.X(null,null,null,r.left.remove(t,e),null);else{if(r.left.fa()&&(r=jc(r)),r.right.e()||r.right.fa()||r.right.left.fa()||(r=kc(r),r.left.left.fa()&&(r=jc(r),r=kc(r))),0===e(t,r.key)){if(r.right.e())return ac;n=fc(r.right),r=r.X(n.key,n.value,null,null,hc(r.right))}r=r.X(null,null,null,null,r.right.remove(t,e))}return gc(r)},g.fa=function(){return this.color},g=mc.prototype,g.X=function(){return this},g.Oa=function(t,e){return new ec(t,e,null)},g.remove=function(){return this},g.count=function(){return 0},g.e=function(){return!0},g.ia=function(){return!1},g.Sc=function(){return null},g.fc=function(){return null},g.fa=function(){return!1};var ac=new mc;g=L.prototype,g.toString=function(){for(var t="",e=this.Z;e=this.n.length)return null;for(var t=[],e=this.Z;e=this.n.length},g.ca=function(t){if(tc(this)!==tc(t))return!1;for(var e=this.Z,r=t.Z;e<=this.n.length;e++,r++)if(this.n[e]!==t.n[r])return!1;return!0},g.contains=function(t){var e=this.Z,r=t.Z;if(tc(this)>tc(t))return!1;for(;e"),t};var Fc=function(){var t=1;return function(){return t++}}(),Bb=null,Lc=!0,Zc=/^-?\d{1,10}$/;cd.prototype.fg=function(t,e){if(null==t.Xa||null==e.Xa)throw Gc("Should only compare child_ events.");return this.g.compare(new F(t.Xa,t.Ja),new F(e.Xa,e.Ja))},g=id.prototype,g.Kf=function(t){return"value"===t},g.createEvent=function(t,e){var r=e.o.g;return new Gb("value",this,new S(t.Ja,e.mc(),r))},g.Vb=function(t){var e=this.sb;if("cancel"===t.Ae()){K(this.qb,"Raising a cancel event on a listener with no cancel callback");var r=this.qb;return function(){r.call(e,t.error)}}var n=this.Rb;return function(){n.call(e,t.$d)}},g.gf=function(t,e){return this.qb?new Hb(this,t,e):null},g.matches=function(t){return t instanceof id&&(!t.Rb||!this.Rb||t.Rb===this.Rb&&t.sb===this.sb)},g.tf=function(){return null!==this.Rb},g=jd.prototype,g.Kf=function(t){return t="children_added"===t?"child_added":t,("children_removed"===t?"child_removed":t)in this.ha},g.gf=function(t,e){return this.qb?new Hb(this,t,e):null},g.createEvent=function(t,e){K(null!=t.Xa,"Child events should have a childName.");var r=e.mc().u(t.Xa);return new Gb(t.type,this,new S(t.Ja,r,e.o.g),t.Qd)},g.Vb=function(t){var e=this.sb;if("cancel"===t.Ae()){K(this.qb,"Raising a cancel event on a listener with no cancel callback");var r=this.qb;return function(){r.call(e,t.error)}}var n=this.ha[t.ud];return function(){n.call(e,t.$d,t.Qd)}},g.matches=function(t){if(t instanceof jd){if(!this.ha||!t.ha)return!0;if(this.sb===t.sb){var e=pa(t.ha);if(e===pa(this.ha)){if(1===e){var e=qa(t.ha),r=qa(this.ha);return!(r!==e||t.ha[e]&&this.ha[r]&&t.ha[e]!==this.ha[r])}return oa(this.ha,function(e,r){return t.ha[r]===e})}}}return!1},g.tf=function(){return null!==this.ha},g=kd.prototype,g.K=function(t,e,r,n,i,o){return K(t.Jc(this.g),"A node must be indexed if only a child is updated"),i=t.J(e),i.Y(n).ca(r.Y(n))&&i.e()==r.e()?t:(null!=o&&(r.e()?t.Da(e)?hd(o,new D("child_removed",i,e)):K(t.L(),"A child remove without an old child only makes sense on a leaf node"):i.e()?hd(o,new D("child_added",r,e)):hd(o,new D("child_changed",r,e,i))),t.L()&&r.e()?t:t.O(e,r).mb(this.g))},g.xa=function(t,e,r){return null!=r&&(t.L()||t.R(N,function(t,n){e.Da(t)||hd(r,new D("child_removed",n,t))}),e.L()||e.R(N,function(e,n){if(t.Da(e)){var i=t.J(e);i.ca(n)||hd(r,new D("child_changed",n,e,i))}else hd(r,new D("child_added",n,e))})),e.mb(this.g)},g.ga=function(t,e){return t.e()?C:t.ga(e)},g.Na=function(){return!1},g.Wb=function(){return this},g=ld.prototype,g.matches=function(t){return 0>=this.g.compare(this.ed,t)&&0>=this.g.compare(t,this.Gc)},g.K=function(t,e,r,n,i,o){return this.matches(new F(e,r))||(r=C),this.Ce.K(t,e,r,n,i,o)},g.xa=function(t,e,r){e.L()&&(e=C);var n=e.mb(this.g),n=n.ga(C),i=this;return e.R(N,function(t,e){i.matches(new F(t,e))||(n=n.O(t,C))}),this.Ce.xa(t,n,r)},g.ga=function(t){return t},g.Na=function(){return!0},g.Wb=function(){return this.Ce},g=qd.prototype,g.K=function(t,e,r,n,i,o){return this.sa.matches(new F(e,r))||(r=C),t.J(e).ca(r)?t:t.Eb()=this.g.compare(this.sa.ed,a):0>=this.g.compare(a,this.sa.Gc)))break;n=n.O(a.name,a.S),i++}}else{n=e.mb(this.g),n=n.ga(C);var s,c,u;if(this.Jb){e=n.sf(this.g),s=this.sa.Gc,c=this.sa.ed;var h=td(this.g);u=function(t,e){return h(e,t)}}else e=n.Xb(this.g),s=this.sa.ed,c=this.sa.Gc,u=td(this.g);for(var i=0,l=!1;0=u(s,a)&&(l=!0),(o=l&&i=u(a,c))?i++:n=n.O(a.name,C)}return this.sa.Wb().xa(t,n,r)},g.ga=function(t){return t},g.Na=function(){return!0},g.Wb=function(){return this.sa.Wb()},yd.prototype.ab=function(t,e,r,n){var i,o=new gd;if(e.type===Xb)e.source.xe?r=zd(this,t,e.path,e.Ga,r,n,o):(K(e.source.pf,"Unknown source."),i=e.source.bf,r=Ad(this,t,e.path,e.Ga,r,n,i,o));else if(e.type===Bd)e.source.xe?r=Cd(this,t,e.path,e.children,r,n,o):(K(e.source.pf,"Unknown source."),i=e.source.bf,r=Dd(this,t,e.path,e.children,r,n,i,o));else if(e.type===Ed)if(e.Vd)if(e=e.path,null!=r.tc(e))r=t;else{if(i=new rb(r,t,n),n=t.Q.j(),e.e()||".priority"===E(e))Ib(t.C())?e=r.za(ub(t)):(e=t.C().j(),K(e instanceof T,"serverChildren would be complete if leaf node"),e=r.yc(e)),e=this.U.xa(n,e,o);else{var a=E(e),s=r.xc(a,t.C());null==s&&sb(t.C(),a)&&(s=n.J(a)),e=null!=s?this.U.K(n,a,s,H(e),i,o):t.Q.j().Da(a)?this.U.K(n,a,C,H(e),i,o):n,e.e()&&Ib(t.C())&&(n=r.za(ub(t)),n.L()&&(e=this.U.xa(e,n,o)))}n=Ib(t.C())||null!=r.tc(G),r=Fd(t,e,n,this.U.Na())}else r=Gd(this,t,e.path,e.Qb,r,n,o);else{if(e.type!==Zb)throw Gc("Unknown operation type: "+e.type);n=e.path,e=t.C(),i=e.j(),a=e.ea||n.e(),r=Hd(this,new Id(t.Q,new tb(i,a,e.Ub)),n,r,qb,o)}return o=ra(o.bb),n=r,e=n.Q,e.ea&&(i=e.j().L()||e.j().e(),a=Jd(t),(0e.compare(n,t);)J(r),n=dc(r);return r},g.sf=function(t){return this.$b(t.Qc(),t)},g.$b=function(t,e){var r=oe(this,e);if(r)return r.$b(t,function(t){return t});for(var r=this.m.$b(t.name,Sb),n=dc(r);null!=n&&0=e&&bf(s,n.path)?i=!1:n.path.contains(s.path)&&(o=!0)),a--}if(i){if(o)this.T=cf(this.na,df,G),this.Mc=0o;o++)e[o]=Math.floor(64*Math.random());for(o=0;12>o;o++)r+="-0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz".charAt(e[o]);return K(20===r.length,"nextPushId: Length should be 20."), +r}}();ma(Of,Lf),Of.prototype.Be=function(t){return K("online"===t,"Unknown event type: "+t),[this.jc]},ca(Of),ma(Pf,Lf),Pf.prototype.Be=function(t){return K("visible"===t,"Unknown event type: "+t),[this.Ob]},ca(Pf);var Qf=/[\[\].#$\/\u0000-\u001F\u007F]/,Rf=/[\[\].#$\u0000-\u001F\u007F]/,Sf=/^[a-zA-Z][a-zA-Z._\-+]+$/;g=hg.prototype,g.add=function(t,e){this.set[t]=null===e||e},g.contains=function(t){return v(this.set,t)},g.get=function(t){return this.contains(t)?this.set[t]:void 0},g.remove=function(t){delete this.set[t]},g.clear=function(){this.set={}},g.e=function(){return wa(this.set)},g.count=function(){return pa(this.set)},g.keys=function(){var t=[];return r(this.set,function(e,r){t.push(r)}),t},pc.prototype.find=function(t){if(null!=this.A)return this.A.Y(t);if(t.e()||null==this.m)return null;var e=E(t);return t=H(t),this.m.contains(e)?this.m.get(e).find(t):null},pc.prototype.nc=function(t,e){if(t.e())this.A=e,this.m=null;else if(null!==this.A)this.A=this.A.K(t,e);else{null==this.m&&(this.m=new hg);var r=E(t);this.m.contains(r)||this.m.add(r,new pc),r=this.m.get(r),t=H(t),r.nc(t,e)}},pc.prototype.R=function(t){null!==this.m&&ig(this.m,function(e,r){t(e,r)})};var kg="auth.firebase.com",mg=["remember","redirectTo"];og.prototype.set=function(t,e){if(!e){if(!this.ce.length)throw Error("fb.login.SessionManager : No storage options available!");e=this.ce[0]}e.set(this.Re,t)},og.prototype.get=function(){var t=Qa(this.ce,q(this.og,this)),t=Pa(t,function(t){return null!==t});return Xa(t,function(t,e){return ad(e.token)-ad(t.token)}),0o.status){try{t=nb(o.responseText)}catch(t){}r(null,t)}else r(500<=o.status&&600>o.status?Eg("SERVER_ERROR"):Eg("NETWORK_ERROR"));r=null,vg(window,"beforeunload",n)}},"GET"===a)t+=(/\?/.test(t)?"":"?")+kb(e),i=null;else{var s=this.options.headers.content_type;"application/json"===s&&(i=B(e)),"application/x-www-form-urlencoded"===s&&(i=kb(e))}o.open(a,t,!0),t={"X-Requested-With":"XMLHttpRequest",Accept:"application/json;text/plain"},za(t,this.options.headers);for(var c in t)o.setRequestHeader(c,t[c]);o.send(i)},Gg.isAvailable=function(){var t;return(t=!!window.XMLHttpRequest)&&(t=pg(),t=!(t.match(/MSIE/)||t.match(/Trident/))||sg(10)),t},Gg.prototype.Cc=function(){return"json"},Hg.prototype.open=function(t,e,r){function n(){r&&(r(Eg("USER_CANCELLED")),r=null)}var i,o=this,a=Qc(kg);e.requestId=this.pc,e.redirectTo=a.scheme+"://"+a.host+"/blank/page.html",t+=/\?/.test(t)?"":"?",t+=kb(e),(i=window.open(t,"_blank","location=no"))&&ha(i.addEventListener)?(i.addEventListener("loadstart",function(t){var e;if(e=t&&t.url)t:{try{var s=document.createElement("a");s.href=t.url,e=s.host===a.host&&"/blank/page.html"===s.pathname;break t}catch(t){}e=!1}e&&(t=xg(t.url),i.removeEventListener("exit",n),i.close(),t=new lg(null,null,{requestId:o.pc,requestKey:t}),o.Ef.requestWithCredential("/auth/session",t,r),r=null)}),i.addEventListener("exit",n)):r(Eg("TRANSPORT_UNAVAILABLE"))},Hg.isAvailable=function(){return qg()},Hg.prototype.Cc=function(){return"redirect"},Ig.prototype.open=function(t,e,r){function n(){r&&(r(Eg("REQUEST_INTERRUPTED")),r=null)}function i(){setTimeout(function(){window.__firebase_auth_jsonp[o]=void 0,wa(window.__firebase_auth_jsonp)&&(window.__firebase_auth_jsonp=void 0);try{var t=document.getElementById(o);t&&t.parentNode.removeChild(t)}catch(t){}},1),vg(window,"beforeunload",n)}var o="fn"+(new Date).getTime()+Math.floor(99999*Math.random());e[this.options.callback_parameter]="__firebase_auth_jsonp."+o,t+=(/\?/.test(t)?"":"?")+kb(e),ug(window,"beforeunload",n),window.__firebase_auth_jsonp[o]=function(t){r&&(r(null,t),r=null),i()},Jg(o,t,r)},Ig.isAvailable=function(){return"undefined"!=typeof document&&null!=document.createElement},Ig.prototype.Cc=function(){return"json"},ma(Kg,Lf),g=Kg.prototype,g.ye=function(){return this.nb||null},g.te=function(t,e){Tg(this);var r=ng(t);r.$a._method="POST",this.qc("/users",r,function(t,r){t?R(e,t):R(e,t,r)})},g.Ue=function(t,e){var r=this;Tg(this);var n="/users/"+encodeURIComponent(t.email),i=ng(t);i.$a._method="DELETE",this.qc(n,i,function(t,n){!t&&n&&n.uid&&r.nb&&r.nb.uid&&r.nb.uid===n.uid&&Rg(r),R(e,t)})},g.qe=function(t,e){Tg(this);var r="/users/"+encodeURIComponent(t.email)+"/password",n=ng(t);n.$a._method="PUT",n.$a.password=t.newPassword,this.qc(r,n,function(t){R(e,t)})},g.pe=function(t,e){Tg(this);var r="/users/"+encodeURIComponent(t.oldEmail)+"/email",n=ng(t);n.$a._method="PUT",n.$a.email=t.newEmail,n.$a.password=t.password,this.qc(r,n,function(t){R(e,t)})},g.We=function(t,e){Tg(this);var r="/users/"+encodeURIComponent(t.email)+"/password",n=ng(t);n.$a._method="POST",this.qc(r,n,function(t){R(e,t)})},g.qc=function(t,e,r){Wg(this,[Gg,Ig],t,e,r)},g.Be=function(t){return K("auth_status"===t,'initial event must be of type "auth_status"'),this.Te?null:[this.nb]};var ah,bh;$g.prototype.open=function(t,e){this.hf=0,this.la=e,this.Af=new Xg(t),this.Ab=!1;var r=this;this.rb=setTimeout(function(){r.f("Timed out trying to connect."),r.hb(),r.rb=null},Math.floor(3e4)),Sc(function(){if(!r.Ab){r.Ta=new ch(function(t,e,n,i,o){if(dh(r,arguments),r.Ta)if(r.rb&&(clearTimeout(r.rb),r.rb=null),r.Hc=!0,"start"==t)r.id=e,r.Gf=n;else{if("close"!==t)throw Error("Unrecognized command received: "+t);e?(r.Ta.Xd=!1,Yg(r.Af,e,function(){r.hb()})):r.hb()}},function(t,e){dh(r,arguments),Zg(r.Af,t,e)},function(){r.hb()},r.jd);var t={start:"t"};t.ser=Math.floor(1e8*Math.random()),r.Ta.ie&&(t.cb=r.Ta.ie),t.v="5",r.Zd&&(t.s=r.Zd),"undefined"!=typeof location&&location.href&&-1!==location.href.indexOf("firebaseio.com")&&(t.r="f"),t=r.jd(t),r.f("Connecting via long-poll to "+t),eh(r.Ta,t,function(){})}})},$g.prototype.start=function(){var t=this.Ta,e=this.Gf;for(t.sg=this.id,t.tg=e,t.me=!0;fh(t););t=this.id,e=this.Gf,this.gc=document.createElement("iframe");var r={dframe:"t"};r.id=t,r.pw=e,this.gc.src=this.jd(r),this.gc.style.display="none",document.body.appendChild(this.gc)},$g.isAvailable=function(){return ah||!bh&&"undefined"!=typeof document&&null!=document.createElement&&!("object"==typeof window&&window.chrome&&window.chrome.extension&&!/^chrome/.test(window.location.href))&&!("object"==typeof Windows&&"object"==typeof Windows.Vg)&&!0},g=$g.prototype,g.Ed=function(){},g.dd=function(){this.Ab=!0,this.Ta&&(this.Ta.close(),this.Ta=null),this.gc&&(document.body.removeChild(this.gc),this.gc=null),this.rb&&(clearTimeout(this.rb),this.rb=null)},g.hb=function(){this.Ab||(this.f("Longpoll is closing itself"),this.dd(),this.la&&(this.la(this.Hc),this.la=null))},g.close=function(){this.Ab||(this.f("Longpoll is being closed."),this.dd())},g.send=function(t){t=B(t),this.pb+=t.length,Nb(this.Va,"bytes_sent",t.length),t=Jc(t),t=fb(t,!0),t=Wc(t,1840);for(var e=0;e=t.length){var e=Number(t);if(!isNaN(e)){n.cf=e,n.frames=[],t=null;break t}}n.cf=1,n.frames=[]}null!==t&&lh(n,t)}},this.ua.onerror=function(t){n.f("WebSocket error. Closing connection."),(t=t.message||t.data)&&n.f(t),n.hb()}},ih.prototype.start=function(){},ih.isAvailable=function(){var t=!1;if("undefined"!=typeof navigator&&navigator.userAgent){var e=navigator.userAgent.match(/Android ([0-9]{0,}\.[0-9]{0,})/);e&&1parseFloat(e[1])&&(t=!0)}return!t&&null!==hh&&!jh},ih.responsesRequiredToBeHealthy=2,ih.healthyTimeout=3e4,g=ih.prototype,g.Ed=function(){Cc.remove("previous_websocket_failure")},g.send=function(t){kh(this),t=B(t),this.pb+=t.length,Nb(this.Va,"bytes_sent",t.length),t=Wc(t,16384),1=t)throw Error("Query.limit: First argument must be a positive integer.");if(this.o.ja)throw Error("Query.limit: Limit was already set (by another call to limit, limitToFirst, orlimitToLast.");var e=this.o.Ie(t);return li(e),new Y(this.k,this.path,e,this.kc)},g.Je=function(t){if(x("Query.limitToFirst",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limitToFirst: First argument must be a positive integer.");if(this.o.ja)throw Error("Query.limitToFirst: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.o.Je(t),this.kc)},g.Ke=function(t){if(x("Query.limitToLast",1,1,arguments.length),!ga(t)||Math.floor(t)!==t||0>=t)throw Error("Query.limitToLast: First argument must be a positive integer.");if(this.o.ja)throw Error("Query.limitToLast: Limit was already set (by another call to limit, limitToFirst, or limitToLast).");return new Y(this.k,this.path,this.o.Ke(t),this.kc)},g.Cg=function(t){if(x("Query.orderByChild",1,1,arguments.length),"$key"===t)throw Error('Query.orderByChild: "$key" is invalid. Use Query.orderByKey() instead.');if("$priority"===t)throw Error('Query.orderByChild: "$priority" is invalid. Use Query.orderByPriority() instead.');if("$value"===t)throw Error('Query.orderByChild: "$value" is invalid. Use Query.orderByValue() instead.');$f("Query.orderByChild",1,t,!1),mi(this,"Query.orderByChild");var e=be(this.o,new Sd(t));return ki(e),new Y(this.k,this.path,e,!0)},g.Dg=function(){x("Query.orderByKey",0,0,arguments.length),mi(this,"Query.orderByKey");var t=be(this.o,Od);return ki(t),new Y(this.k,this.path,t,!0)},g.Eg=function(){x("Query.orderByPriority",0,0,arguments.length),mi(this,"Query.orderByPriority");var t=be(this.o,N);return ki(t),new Y(this.k,this.path,t,!0)},g.Fg=function(){x("Query.orderByValue",0,0,arguments.length),mi(this,"Query.orderByValue");var t=be(this.o,Yd);return ki(t),new Y(this.k,this.path,t,!0)},g.ae=function(t,e){x("Query.startAt",0,2,arguments.length),Vf("Query.startAt",t,this.path,!0),$f("Query.startAt",2,e,!0);var r=this.o.ae(t,e);if(li(r),ki(r),this.o.ma)throw Error("Query.startAt: Starting point was already set (by another call to startAt or equalTo).");return n(t)||(e=t=null),new Y(this.k,this.path,r,this.kc)},g.td=function(t,e){x("Query.endAt",0,2,arguments.length),Vf("Query.endAt",t,this.path,!0),$f("Query.endAt",2,e,!0);var r=this.o.td(t,e);if(li(r),ki(r),this.o.pa)throw Error("Query.endAt: Ending point was already set (by another call to endAt or equalTo).");return new Y(this.k,this.path,r,this.kc)},g.ig=function(t,e){if(x("Query.equalTo",1,2,arguments.length),Vf("Query.equalTo",t,this.path,!1),$f("Query.equalTo",2,e,!0),this.o.ma)throw Error("Query.equalTo: Starting point was already set (by another call to endAt or equalTo).");if(this.o.pa)throw Error("Query.equalTo: Ending point was already set (by another call to endAt or equalTo).");return this.ae(t,e).td(t,e)},g.toString=function(){x("Query.toString",0,0,arguments.length);for(var t=this.path,e="",r=t.Z;r"+c.toUpperCase()+"

",e.appendChild(r),u){var n="VR mode does not support preview tiles. Stopping code execution.";throw console.log("ERROR: "+n),new Error(n)}if(!h){var o=document.createElement("span");o.className="altspace-vr-notice",o.innerHTML="

View

",e.insertBefore(o,r);var s=document.createElement("span");s.className="altspace-vr-notice",s.innerHTML='

in AltspaceVR

',e.appendChild(s);var n="Not in VR mode. Stopping code execution.";throw u&&console.log("ERROR: "+n),new Error(n)}}}function r(t){c=t}function n(){var t=document.querySelector("link[rel=canonical]"),e=t?t.href:window.location.href;return new s(e)}function i(){var t=n(),e=t.path.split("/"),r=e[e.length-1];return r}function o(){var t=n(),e=t.path.split("/"),r="team"==e[1],i=r?"team-"+e[2]:e[1];return i}var a=window.Please,s=window.Url,c="VR CodePen",u=window.name&&"pen-"===window.name.slice(0,4),h=!!window.altspace.inClient,l=!!location.href.match("codepen.io/");return{inTile:u,inVR:h,inCodePen:l,ensureInVR:e,setName:r,getPenId:i,getAuthorId:o,printDebugInfo:t}}(),window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},altspace.utilities.Simulation=function(t){function e(){window.requestAnimationFrame(e),a.updateAllBehaviors&&a.updateAllBehaviors(),n.render(a,i)}function r(){function t(){n=altspace.getThreeJSRenderer(),i=new THREE.PerspectiveCamera}function e(){n=new THREE.WebGLRenderer({antialias:!0}),i=new THREE.PerspectiveCamera,i.position.z=500;var t=function(){i.aspect=window.innerWidth/window.innerHeight,i.updateProjectionMatrix(),n.setSize(window.innerWidth,window.innerHeight)};document.addEventListener("DOMContentLoaded",function(t){document.body.style.margin="0px",document.body.style.overflow="hidden",n.setClearColor("#035F72");var e=document.createElement("div");document.body.appendChild(e),e.appendChild(n.domElement)}),window.addEventListener("resize",t),t(),i.fov=45,i.near=1,i.far=2e3,a.add(i),a.add(new THREE.AmbientLight("white"));var e=altspace&&altspace.utilities&&altspace.utilities.shims&&altspace.utilities.shims.cursor;e&&altspace.utilities.shims.cursor.init(a,i)}altspace&&altspace.inClient?t():e()}t=t||{},void 0===t.auto&&(t.auto=!0);var n,i,o={},a=new THREE.Scene;return r(),t.auto&&window.requestAnimationFrame(e),Object.defineProperty(o,"scene",{get:function(){return a}}),Object.defineProperty(o,"renderer",{get:function(){return n}}),Object.defineProperty(o,"camera",{get:function(){return i},set:function(t){i=t}}),o},window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},altspace.utilities.multiloader=function(){function t(){var t,e=[],r=[],n=[],i=0;return{objUrls:e,mtlUrls:r,objects:n,error:t,objectsLoaded:i}}function e(t){var e=t||{};o=e.TRACE||!1,e.crossOrigin&&(s=e.crossOrigin),e.baseUrl&&(a=e.baseUrl),"/"!==a.slice(-1)&&(a+="/"),i=new altspace.utilities.shims.OBJMTLLoader,i.crossOrigin=s,o&&console.log("MultiLoader initialized with params",t)}function r(e,r){var s=e,c=Date.now();if(!s||!s instanceof t)throw new Error("MultiLoader.load expects first arg of type LoadRequest");if(!r||"function"!=typeof r)throw new Error("MultiLoader.load expects second arg of type function");if(!s.objUrls||!s.mtlUrls||s.objUrls.length!==s.mtlUrls.length)throw new Error("MultiLoader.load called with bad LoadRequest");var u=s.objUrls.length;o&&console.log("Loading models...");for(var h=0;h0?r[0]:null}var a,s,c,u,h=new THREE.Raycaster;return{init:t}}(),function(){function t(e){var r,n;if(e.bubbles&&(e.currentTarget=this,e.stopPropagation=function(){r=!0},e.stopImmediatePropagation=function(){n=!0}),this._listeners){var i=this._listeners,o=i[e.type];if(o){e.target=e.target||this;for(var a=[],s=o.length,c=0;c0)for(var t=0;te.buttons;i++)n[i]=!1;for(var i=0;i>e.axes;i++)r[i]=!1;t.position&&(r[0]=!0,r[1]=!0,n[10]=!0),t.rotation&&(r[2]=!0,r[3]=!0,n[11]=!0),t.scale&&(n[12]=!0,n[13]=!0),n[8]=!0,e.preventDefault(r,n)}function i(e){if(altspace&&altspace.inClient||!window.chrome||!a||(a=r()),a){var n=a.buttons[8].pressed;if(n)return c.isMine||c.takeOwnership(),o.position.copy(u.position),o.rotation.copy(u.rotation),void o.scale.copy(u.scale);if(t.position){var i=a.buttons[10].pressed;p&&!i&&(l=!l),p=i;var s=a.axes[0],d=a.axes[1],g=Math.abs(s)>m||Math.abs(d)>m;g&&!c.isMine&&c.takeOwnership();var v=200*(e/1e3);!l&&Math.abs(s)>m&&(o.position.x+=v*s),!l&&Math.abs(d)>m&&(o.position.z+=v*d),l&&Math.abs(s)>m&&(o.position.x+=v*s),l&&Math.abs(d)>m&&(o.position.y+=v*-d)}if(t.rotation){var y=a.buttons[11].pressed;f&&!y&&(h=!h),f=y;var b=a.axes[2],x=a.axes[3],w=Math.abs(b)>m||Math.abs(x)>m;w&&!c.isMine&&c.takeOwnership();var _=Math.PI*(e/1e3);!h&&Math.abs(b)>m&&(o.rotation.y+=_*b),!h&&Math.abs(x)>m&&(o.rotation.x+=_*x),h&&Math.abs(b)>m&&(o.rotation.z+=_*-b)}if(t.scale){var S=10*(e/1e3),M=a.buttons[12].pressed,E=a.buttons[13].pressed,T=a.buttons[12].pressed||a.buttons[13].pressed;T&&!c.isMine&&c.takeOwnership();var A=o.scale,C=new THREE.Vector3(1,1,1);C.multiplyScalar(S),M&&o.scale.add(C),E&&A.x>C.x&&A.y>C.y&&A.z>C.z&&o.scale.sub(C)}}}var o,a,s,c,u,h=!1,l=!1,f=!1,p=!1,d=!1,m=.2;return t=t||{},void 0===t.position&&(t.position=!0),void 0===t.rotation&&(t.rotation=!0),void 0===t.scale&&(t.scale=!0),{awake:e,update:i}},window.altspace=window.altspace||{},window.altspace.utilities=window.altspace.utilities||{},window.altspace.utilities.behaviors=window.altspace.utilities.behaviors||{},altspace.utilities.behaviors.HoverColor=function(t){function e(e,a){c=e,l=a,c.addEventListener("cursordown",r),l.addEventListener("cursorup",o),"cursorenter"===t.event&&(c.addEventListener("cursorenter",n),c.addEventListener("cursorleave",i))}function r(e){u=c,"cursordown"===t.event&&a(u)}function n(t){u&&u!==c||(h&&unsetcolor(h),h=c,a(c))}function i(t){h===c&&(h=null,s(c))}function o(e){"cursordown"===t.event&&u&&s(u),u=null}function a(e){e.material&&e.material.color&&(e.userData.origColor=e.material.color,e.material.color=t.color,e.material&&(e.material.needsUpdate=!0));for(var r=0;r.01&&(s.rotation.y+=p,p*=.97)}function a(){}t=t||{};var s,c,u,h=!1,l=0,f=5,p=0;return{awake:e,start:a,update:o}},function t(e,r,n){function i(a,s){if(!r[a]){if(!e[a]){var c="function"==typeof require&&require;if(!s&&c)return require(a,!0);if(o)return o(a,!0);var u=new Error("Cannot find module '"+a+"'");throw u.code="MODULE_NOT_FOUND",u}var h=r[a]={exports:{}};e[a][0].call(h.exports,function(t){var r=e[a][1][t];return i(r?r:t)},h,h.exports,t,e,r,n)}return r[a].exports}for(var o="function"==typeof require&&require,a=0;a1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!w(this,t)}}),g&&n.setDesc(h.prototype,"size",{get:function(){return c(this[y])}}),h},def:function(t,e,r){var n,i,o=w(t,e);return o?o.v=r:(t._l=o={i:i=x(e,!0),k:e,v:r,p:n=t._l,n:void 0,r:!1},t._f||(t._f=o),n&&(n.n=o),t[y]++,"F"!==i&&(t._i[i]=o)),t},getEntry:w,setStrong:function(t,e,r){h(t,e,function(t,e){this._t=t,this._k=e,this._l=void 0},function(){for(var t=this,e=t._k,r=t._l;r&&r.r;)r=r.p;return t._t&&(t._l=r=r?r.n:t._t._f)?"keys"==e?l(0,r.k):"values"==e?l(0,r.v):l(0,[r.k,r.v]):(t._t=void 0,l(1))},r?"entries":"values",!r,!0),m(e)}}},{"./$":44,"./$.ctx":23,"./$.defined":24,"./$.descriptors":25,"./$.for-of":29,"./$.has":32,"./$.hide":33,"./$.is-object":37,"./$.iter-define":40,"./$.iter-step":42,"./$.redefine-all":48,"./$.set-species":50,"./$.strict-new":53,"./$.uid":59}],20:[function(t,e,r){var n=t("./$.for-of"),i=t("./$.classof");e.exports=function(t){return function(){if(i(this)!=t)throw TypeError(t+"#toJSON isn't generic");var e=[];return n(this,!1,e.push,e),e}}},{"./$.classof":17,"./$.for-of":29}],21:[function(t,e,r){"use strict";var n=t("./$"),i=t("./$.global"),o=t("./$.export"),a=t("./$.fails"),s=t("./$.hide"),c=t("./$.redefine-all"),u=t("./$.for-of"),h=t("./$.strict-new"),l=t("./$.is-object"),f=t("./$.set-to-string-tag"),p=t("./$.descriptors");e.exports=function(t,e,r,d,m,g){var v=i[t],y=v,b=m?"set":"add",x=y&&y.prototype,w={};return p&&"function"==typeof y&&(g||x.forEach&&!a(function(){(new y).entries().next()}))?(y=e(function(e,r){h(e,y,t),e._c=new v,void 0!=r&&u(r,m,e[b],e)}),n.each.call("add,clear,delete,forEach,get,has,set,keys,values,entries".split(","),function(t){var e="add"==t||"set"==t;t in x&&(!g||"clear"!=t)&&s(y.prototype,t,function(r,n){if(!e&&g&&!l(r))return"get"==t&&void 0;var i=this._c[t](0===r?0:r,n);return e?this:i})}),"size"in x&&n.setDesc(y.prototype,"size",{get:function(){return this._c.size}})):(y=d.getConstructor(e,t,m,b),c(y.prototype,r)),f(y,t),w[t]=y,o(o.G+o.W+o.F,w),g||d.setStrong(y,t,m),y}},{"./$":44,"./$.descriptors":25,"./$.export":27,"./$.fails":28,"./$.for-of":29,"./$.global":31,"./$.hide":33,"./$.is-object":37,"./$.redefine-all":48,"./$.set-to-string-tag":51,"./$.strict-new":53}],22:[function(t,e,r){var n=e.exports={version:"1.2.6"};"number"==typeof __e&&(__e=n)},{}],23:[function(t,e,r){var n=t("./$.a-function");e.exports=function(t,e,r){if(n(t),void 0===e)return t;switch(r){case 1:return function(r){return t.call(e,r)};case 2:return function(r,n){return t.call(e,r,n)};case 3:return function(r,n,i){return t.call(e,r,n,i)}}return function(){return t.apply(e,arguments)}}},{"./$.a-function":14}],24:[function(t,e,r){e.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},{}],25:[function(t,e,r){e.exports=!t("./$.fails")(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},{"./$.fails":28}],26:[function(t,e,r){var n=t("./$");e.exports=function(t){var e=n.getKeys(t),r=n.getSymbols;if(r)for(var i,o=r(t),a=n.isEnum,s=0;o.length>s;)a.call(t,i=o[s++])&&e.push(i);return e}},{"./$":44}],27:[function(t,e,r){var n=t("./$.global"),i=t("./$.core"),o=t("./$.ctx"),a="prototype",s=function(t,e,r){var c,u,h,l=t&s.F,f=t&s.G,p=t&s.S,d=t&s.P,m=t&s.B,g=t&s.W,v=f?i:i[e]||(i[e]={}),y=f?n:p?n[e]:(n[e]||{})[a];f&&(r=e);for(c in r)u=!l&&y&&c in y,u&&c in v||(h=u?y[c]:r[c],v[c]=f&&"function"!=typeof y[c]?r[c]:m&&u?o(h,n):g&&y[c]==h?function(t){var e=function(e){return this instanceof t?new t(e):t(e)};return e[a]=t[a],e}(h):d&&"function"==typeof h?o(Function.call,h):h,d&&((v[a]||(v[a]={}))[c]=h))};s.F=1,s.G=2,s.S=4,s.P=8,s.B=16,s.W=32,e.exports=s},{"./$.core":22,"./$.ctx":23,"./$.global":31}],28:[function(t,e,r){e.exports=function(t){try{return!!t()}catch(t){return!0}}},{}],29:[function(t,e,r){var n=t("./$.ctx"),i=t("./$.iter-call"),o=t("./$.is-array-iter"),a=t("./$.an-object"),s=t("./$.to-length"),c=t("./core.get-iterator-method");e.exports=function(t,e,r,u){var h,l,f,p=c(t),d=n(r,u,e?2:1),m=0;if("function"!=typeof p)throw TypeError(t+" is not iterable!");if(o(p))for(h=s(t.length);h>m;m++)e?d(a(l=t[m])[0],l[1]):d(t[m]);else for(f=p.call(t);!(l=f.next()).done;)i(f,d,l.value,e)}},{"./$.an-object":16,"./$.ctx":23,"./$.is-array-iter":35,"./$.iter-call":38,"./$.to-length":57,"./core.get-iterator-method":61}],30:[function(t,e,r){var n=t("./$.to-iobject"),i=t("./$").getNames,o={}.toString,a="object"==typeof window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],s=function(t){try{return i(t)}catch(t){return a.slice()}};e.exports.get=function(t){return a&&"[object Window]"==o.call(t)?s(t):i(n(t))}},{"./$":44,"./$.to-iobject":56}],31:[function(t,e,r){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},{}],32:[function(t,e,r){var n={}.hasOwnProperty;e.exports=function(t,e){return n.call(t,e)}},{}],33:[function(t,e,r){var n=t("./$"),i=t("./$.property-desc");e.exports=t("./$.descriptors")?function(t,e,r){return n.setDesc(t,e,i(1,r))}:function(t,e,r){return t[e]=r,t}},{"./$":44,"./$.descriptors":25,"./$.property-desc":47}],34:[function(t,e,r){var n=t("./$.cof");e.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==n(t)?t.split(""):Object(t)}},{"./$.cof":18}],35:[function(t,e,r){var n=t("./$.iterators"),i=t("./$.wks")("iterator"),o=Array.prototype;e.exports=function(t){return void 0!==t&&(n.Array===t||o[i]===t)}},{"./$.iterators":43,"./$.wks":60}],36:[function(t,e,r){var n=t("./$.cof");e.exports=Array.isArray||function(t){return"Array"==n(t)}},{"./$.cof":18}],37:[function(t,e,r){e.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},{}],38:[function(t,e,r){var n=t("./$.an-object");e.exports=function(t,e,r,i){try{return i?e(n(r)[0],r[1]):e(r)}catch(e){var o=t.return;throw void 0!==o&&n(o.call(t)),e}}},{"./$.an-object":16}],39:[function(t,e,r){"use strict";var n=t("./$"),i=t("./$.property-desc"),o=t("./$.set-to-string-tag"),a={};t("./$.hide")(a,t("./$.wks")("iterator"),function(){return this}),e.exports=function(t,e,r){t.prototype=n.create(a,{next:i(1,r)}),o(t,e+" Iterator")}},{"./$":44,"./$.hide":33,"./$.property-desc":47,"./$.set-to-string-tag":51,"./$.wks":60}],40:[function(t,e,r){"use strict";var n=t("./$.library"),i=t("./$.export"),o=t("./$.redefine"),a=t("./$.hide"),s=t("./$.has"),c=t("./$.iterators"),u=t("./$.iter-create"),h=t("./$.set-to-string-tag"),l=t("./$").getProto,f=t("./$.wks")("iterator"),p=!([].keys&&"next"in[].keys()),d="@@iterator",m="keys",g="values",v=function(){return this};e.exports=function(t,e,r,y,b,x,w){u(r,e,y);var _,S,M=function(t){if(!p&&t in C)return C[t];switch(t){case m:return function(){return new r(this,t)};case g:return function(){return new r(this,t)}}return function(){return new r(this,t)}},E=e+" Iterator",T=b==g,A=!1,C=t.prototype,L=C[f]||C[d]||b&&C[b],k=L||M(b);if(L){var F=l(k.call(new t));h(F,E,!0),!n&&s(C,d)&&a(F,f,v),T&&L.name!==g&&(A=!0,k=function(){return L.call(this)})}if(n&&!w||!p&&!A&&C[f]||a(C,f,k),c[e]=k,c[E]=v,b)if(_={values:T?k:M(g),keys:x?k:M(m),entries:T?M("entries"):k},w)for(S in _)S in C||o(C,S,_[S]);else i(i.P+i.F*(p||A),e,_);return _}},{"./$":44,"./$.export":27,"./$.has":32,"./$.hide":33,"./$.iter-create":39,"./$.iterators":43,"./$.library":46,"./$.redefine":49,"./$.set-to-string-tag":51,"./$.wks":60}],41:[function(t,e,r){var n=t("./$.wks")("iterator"),i=!1;try{var o=[7][n]();o.return=function(){i=!0},Array.from(o,function(){throw 2})}catch(t){}e.exports=function(t,e){if(!e&&!i)return!1;var r=!1;try{var o=[7],a=o[n]();a.next=function(){r=!0},o[n]=function(){return a},t(o)}catch(t){}return r}},{"./$.wks":60}],42:[function(t,e,r){e.exports=function(t,e){return{value:e,done:!!t}}},{}],43:[function(t,e,r){e.exports={}},{}],44:[function(t,e,r){var n=Object;e.exports={create:n.create,getProto:n.getPrototypeOf,isEnum:{}.propertyIsEnumerable,getDesc:n.getOwnPropertyDescriptor,setDesc:n.defineProperty,setDescs:n.defineProperties,getKeys:n.keys,getNames:n.getOwnPropertyNames,getSymbols:n.getOwnPropertySymbols,each:[].forEach}},{}],45:[function(t,e,r){var n=t("./$"),i=t("./$.to-iobject");e.exports=function(t,e){for(var r,o=i(t),a=n.getKeys(o),s=a.length,c=0;s>c;)if(o[r=a[c++]]===e)return r}},{"./$":44,"./$.to-iobject":56}],46:[function(t,e,r){e.exports=!0},{}],47:[function(t,e,r){e.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},{}],48:[function(t,e,r){var n=t("./$.redefine");e.exports=function(t,e){for(var r in e)n(t,r,e[r]);return t}},{"./$.redefine":49}],49:[function(t,e,r){e.exports=t("./$.hide")},{"./$.hide":33}],50:[function(t,e,r){"use strict";var n=t("./$.core"),i=t("./$"),o=t("./$.descriptors"),a=t("./$.wks")("species");e.exports=function(t){var e=n[t];o&&e&&!e[a]&&i.setDesc(e,a,{configurable:!0,get:function(){return this}})}},{"./$":44,"./$.core":22,"./$.descriptors":25,"./$.wks":60}],51:[function(t,e,r){var n=t("./$").setDesc,i=t("./$.has"),o=t("./$.wks")("toStringTag");e.exports=function(t,e,r){t&&!i(t=r?t:t.prototype,o)&&n(t,o,{configurable:!0,value:e})}},{"./$":44,"./$.has":32,"./$.wks":60}],52:[function(t,e,r){var n=t("./$.global"),i="__core-js_shared__",o=n[i]||(n[i]={});e.exports=function(t){return o[t]||(o[t]={})}},{"./$.global":31}],53:[function(t,e,r){e.exports=function(t,e,r){if(!(t instanceof e))throw TypeError(r+": use the 'new' operator!");return t}},{}],54:[function(t,e,r){var n=t("./$.to-integer"),i=t("./$.defined");e.exports=function(t){return function(e,r){var o,a,s=String(i(e)),c=n(r),u=s.length;return c<0||c>=u?t?"":void 0:(o=s.charCodeAt(c),o<55296||o>56319||c+1===u||(a=s.charCodeAt(c+1))<56320||a>57343?t?s.charAt(c):o:t?s.slice(c,c+2):(o-55296<<10)+(a-56320)+65536)}}},{"./$.defined":24,"./$.to-integer":55}],55:[function(t,e,r){var n=Math.ceil,i=Math.floor;e.exports=function(t){return isNaN(t=+t)?0:(t>0?i:n)(t)}},{}],56:[function(t,e,r){var n=t("./$.iobject"),i=t("./$.defined");e.exports=function(t){return n(i(t))}},{"./$.defined":24,"./$.iobject":34}],57:[function(t,e,r){var n=t("./$.to-integer"),i=Math.min;e.exports=function(t){return t>0?i(n(t),9007199254740991):0}},{"./$.to-integer":55}],58:[function(t,e,r){var n=t("./$.defined");e.exports=function(t){return Object(n(t))}},{"./$.defined":24}],59:[function(t,e,r){var n=0,i=Math.random();e.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+i).toString(36))}},{}],60:[function(t,e,r){var n=t("./$.shared")("wks"),i=t("./$.uid"),o=t("./$.global").Symbol;e.exports=function(t){return n[t]||(n[t]=o&&o[t]||(o||i)("Symbol."+t))}},{"./$.global":31,"./$.shared":52,"./$.uid":59}],61:[function(t,e,r){var n=t("./$.classof"),i=t("./$.wks")("iterator"),o=t("./$.iterators");e.exports=t("./$.core").getIteratorMethod=function(t){if(void 0!=t)return t[i]||t["@@iterator"]||o[n(t)]}},{"./$.classof":17,"./$.core":22,"./$.iterators":43,"./$.wks":60}],62:[function(t,e,r){"use strict";var n=t("./$.ctx"),i=t("./$.export"),o=t("./$.to-object"),a=t("./$.iter-call"),s=t("./$.is-array-iter"),c=t("./$.to-length"),u=t("./core.get-iterator-method");i(i.S+i.F*!t("./$.iter-detect")(function(t){Array.from(t)}),"Array",{from:function(t){var e,r,i,h,l=o(t),f="function"==typeof this?this:Array,p=arguments,d=p.length,m=d>1?p[1]:void 0,g=void 0!==m,v=0,y=u(l);if(g&&(m=n(m,d>2?p[2]:void 0,2)),void 0==y||f==Array&&s(y))for(e=c(l.length),r=new f(e);e>v;v++)r[v]=g?m(l[v],v):l[v];else for(h=y.call(l),r=new f;!(i=h.next()).done;v++)r[v]=g?a(h,m,[i.value,v],!0):i.value;return r.length=v,r}})},{"./$.ctx":23,"./$.export":27,"./$.is-array-iter":35,"./$.iter-call":38,"./$.iter-detect":41,"./$.to-length":57,"./$.to-object":58,"./core.get-iterator-method":61}],63:[function(t,e,r){"use strict";var n=t("./$.add-to-unscopables"),i=t("./$.iter-step"),o=t("./$.iterators"),a=t("./$.to-iobject");e.exports=t("./$.iter-define")(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,r=this._i++;return!t||r>=t.length?(this._t=void 0,i(1)):"keys"==e?i(0,r):"values"==e?i(0,t[r]):i(0,[r,t[r]])},"values"),o.Arguments=o.Array,n("keys"),n("values"),n("entries")},{"./$.add-to-unscopables":15,"./$.iter-define":40,"./$.iter-step":42,"./$.iterators":43,"./$.to-iobject":56}],64:[function(t,e,r){"use strict";var n=t("./$.collection-strong");t("./$.collection")("Map",function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},{get:function(t){var e=n.getEntry(this,t);return e&&e.v},set:function(t,e){return n.def(this,0===t?0:t,e)}},n,!0)},{"./$.collection":21,"./$.collection-strong":19}],65:[function(t,e,r){},{}],66:[function(t,e,r){"use strict";var n=t("./$.string-at")(!0);t("./$.iter-define")(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,r=this._i;return r>=e.length?{value:void 0,done:!0}:(t=n(e,r),this._i+=t.length,{value:t,done:!1})})},{"./$.iter-define":40,"./$.string-at":54}],67:[function(t,e,r){"use strict";var n=t("./$"),i=t("./$.global"),o=t("./$.has"),a=t("./$.descriptors"),s=t("./$.export"),c=t("./$.redefine"),u=t("./$.fails"),h=t("./$.shared"),l=t("./$.set-to-string-tag"),f=t("./$.uid"),p=t("./$.wks"),d=t("./$.keyof"),m=t("./$.get-names"),g=t("./$.enum-keys"),v=t("./$.is-array"),y=t("./$.an-object"),b=t("./$.to-iobject"),x=t("./$.property-desc"),w=n.getDesc,_=n.setDesc,S=n.create,M=m.get,E=i.Symbol,T=i.JSON,A=T&&T.stringify,C=!1,L=p("_hidden"),k=n.isEnum,F=h("symbol-registry"),P=h("symbols"),R="function"==typeof E,D=Object.prototype,O=a&&u(function(){return 7!=S(_({},"a",{get:function(){return _(this,"a",{value:7}).a}})).a})?function(t,e,r){var n=w(D,e);n&&delete D[e],_(t,e,r),n&&t!==D&&_(D,e,n)}:_,$=function(t){var e=P[t]=S(E.prototype);return e._k=t,a&&C&&O(D,t,{configurable:!0,set:function(e){o(this,L)&&o(this[L],t)&&(this[L][t]=!1),O(this,t,x(1,e))}}),e},j=function(t){return"symbol"==typeof t},U=function(t,e,r){return r&&o(P,e)?(r.enumerable?(o(t,L)&&t[L][e]&&(t[L][e]=!1),r=S(r,{enumerable:x(0,!1)})):(o(t,L)||_(t,L,x(1,{})),t[L][e]=!0),O(t,e,r)):_(t,e,r)},B=function(t,e){y(t);for(var r,n=g(e=b(e)),i=0,o=n.length;o>i;)U(t,r=n[i++],e[r]);return t},N=function(t,e){return void 0===e?S(t):B(S(t),e)},I=function(t){var e=k.call(this,t);return!(e||!o(this,t)||!o(P,t)||o(this,L)&&this[L][t])||e},V=function(t,e){var r=w(t=b(t),e);return!r||!o(P,e)||o(t,L)&&t[L][e]||(r.enumerable=!0),r},G=function(t){for(var e,r=M(b(t)),n=[],i=0;r.length>i;)o(P,e=r[i++])||e==L||n.push(e);return n},z=function(t){for(var e,r=M(b(t)),n=[],i=0;r.length>i;)o(P,e=r[i++])&&n.push(P[e]);return n},H=function(t){if(void 0!==t&&!j(t)){for(var e,r,n=[t],i=1,o=arguments;o.length>i;)n.push(o[i++]);return e=n[1],"function"==typeof e&&(r=e),!r&&v(e)||(e=function(t,e){if(r&&(e=r.call(this,t,e)),!j(e))return e}),n[1]=e,A.apply(T,n)}},W=u(function(){var t=E();return"[null]"!=A([t])||"{}"!=A({a:t})||"{}"!=A(Object(t))});R||(E=function(){if(j(this))throw TypeError("Symbol is not a constructor");return $(f(arguments.length>0?arguments[0]:void 0))},c(E.prototype,"toString",function(){return this._k}),j=function(t){return t instanceof E},n.create=N,n.isEnum=I,n.getDesc=V,n.setDesc=U,n.setDescs=B,n.getNames=m.get=G,n.getSymbols=z,a&&!t("./$.library")&&c(D,"propertyIsEnumerable",I,!0));var q={for:function(t){return o(F,t+="")?F[t]:F[t]=E(t)},keyFor:function(t){return d(F,t)},useSetter:function(){C=!0},useSimple:function(){C=!1}};n.each.call("hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),function(t){var e=p(t);q[t]=R?e:$(e)}),C=!0,s(s.G+s.W,{Symbol:E}),s(s.S,"Symbol",q),s(s.S+s.F*!R,"Object",{create:N,defineProperty:U,defineProperties:B,getOwnPropertyDescriptor:V,getOwnPropertyNames:G,getOwnPropertySymbols:z}),T&&s(s.S+s.F*(!R||W),"JSON",{stringify:H}),l(E,"Symbol"),l(Math,"Math",!0),l(i.JSON,"JSON",!0)},{"./$":44,"./$.an-object":16,"./$.descriptors":25,"./$.enum-keys":26,"./$.export":27,"./$.fails":28,"./$.get-names":30,"./$.global":31,"./$.has":32,"./$.is-array":36,"./$.keyof":45,"./$.library":46,"./$.property-desc":47,"./$.redefine":49,"./$.set-to-string-tag":51,"./$.shared":52,"./$.to-iobject":56,"./$.uid":59,"./$.wks":60}],68:[function(t,e,r){var n=t("./$.export");n(n.P,"Map",{toJSON:t("./$.collection-to-json")("Map")})},{"./$.collection-to-json":20,"./$.export":27}],69:[function(t,e,r){t("./es6.array.iterator");var n=t("./$.iterators");n.NodeList=n.HTMLCollection=n.Array},{"./$.iterators":43,"./es6.array.iterator":63}],70:[function(t,e,r){arguments[4][14][0].apply(r,arguments)},{dup:14}],71:[function(t,e,r){var n=t("./$.wks")("unscopables"),i=Array.prototype;void 0==i[n]&&t("./$.hide")(i,n,{}),e.exports=function(t){i[n][t]=!0}},{"./$.hide":99,"./$.wks":151}],72:[function(t,e,r){arguments[4][16][0].apply(r,arguments)},{"./$.is-object":106,dup:16}],73:[function(t,e,r){"use strict";var n=t("./$.to-object"),i=t("./$.to-index"),o=t("./$.to-length");e.exports=[].copyWithin||function(t,e){var r=n(this),a=o(r.length),s=i(t,a),c=i(e,a),u=arguments,h=u.length>2?u[2]:void 0,l=Math.min((void 0===h?a:i(h,a))-c,a-s),f=1;for(c0;)c in r?r[s]=r[c]:delete r[s],s+=f,c+=f;return r}},{"./$.to-index":144,"./$.to-length":147,"./$.to-object":148}],74:[function(t,e,r){"use strict";var n=t("./$.to-object"),i=t("./$.to-index"),o=t("./$.to-length");e.exports=[].fill||function(t){for(var e=n(this),r=o(e.length),a=arguments,s=a.length,c=i(s>1?a[1]:void 0,r),u=s>2?a[2]:void 0,h=void 0===u?r:i(u,r);h>c;)e[c++]=t;return e}},{"./$.to-index":144,"./$.to-length":147,"./$.to-object":148}],75:[function(t,e,r){var n=t("./$.to-iobject"),i=t("./$.to-length"),o=t("./$.to-index");e.exports=function(t){return function(e,r,a){var s,c=n(e),u=i(c.length),h=o(a,u);if(t&&r!=r){for(;u>h;)if(s=c[h++],s!=s)return!0}else for(;u>h;h++)if((t||h in c)&&c[h]===r)return t||h;return!t&&-1}}},{"./$.to-index":144,"./$.to-iobject":146,"./$.to-length":147}],76:[function(t,e,r){var n=t("./$.ctx"),i=t("./$.iobject"),o=t("./$.to-object"),a=t("./$.to-length"),s=t("./$.array-species-create");e.exports=function(t){var e=1==t,r=2==t,c=3==t,u=4==t,h=6==t,l=5==t||h;return function(f,p,d){for(var m,g,v=o(f),y=i(v),b=n(p,d,3),x=a(y.length),w=0,_=e?s(f,x):r?s(f,0):void 0;x>w;w++)if((l||w in y)&&(m=y[w],g=b(m,w,v),t))if(e)_[w]=g;else if(g)switch(t){case 3:return!0;case 5:return m;case 6:return w;case 2:_.push(m)}else if(u)return!1;return h?-1:c||u?u:_}}},{"./$.array-species-create":77,"./$.ctx":85,"./$.iobject":102,"./$.to-length":147,"./$.to-object":148}],77:[function(t,e,r){var n=t("./$.is-object"),i=t("./$.is-array"),o=t("./$.wks")("species");e.exports=function(t,e){var r;return i(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!i(r.prototype)||(r=void 0),n(r)&&(r=r[o],null===r&&(r=void 0))),new(void 0===r?Array:r)(e)}},{"./$.is-array":104,"./$.is-object":106,"./$.wks":151}],78:[function(t,e,r){arguments[4][17][0].apply(r,arguments)},{"./$.cof":79,"./$.wks":151,dup:17}],79:[function(t,e,r){arguments[4][18][0].apply(r,arguments)},{dup:18}],80:[function(t,e,r){arguments[4][19][0].apply(r,arguments)},{"./$":114,"./$.ctx":85,"./$.defined":86,"./$.descriptors":87,"./$.for-of":95,"./$.has":98,"./$.hide":99,"./$.is-object":106,"./$.iter-define":110,"./$.iter-step":112,"./$.redefine-all":128,"./$.set-species":133,"./$.strict-new":137,"./$.uid":150,dup:19}],81:[function(t,e,r){arguments[4][20][0].apply(r,arguments)},{"./$.classof":78,"./$.for-of":95,dup:20}],82:[function(t,e,r){"use strict";var n=t("./$.hide"),i=t("./$.redefine-all"),o=t("./$.an-object"),a=t("./$.is-object"),s=t("./$.strict-new"),c=t("./$.for-of"),u=t("./$.array-methods"),h=t("./$.has"),l=t("./$.uid")("weak"),f=Object.isExtensible||a,p=u(5),d=u(6),m=0,g=function(t){return t._l||(t._l=new v)},v=function(){this.a=[]},y=function(t,e){return p(t.a,function(t){return t[0]===e})};v.prototype={get:function(t){var e=y(this,t);if(e)return e[1]},has:function(t){return!!y(this,t)},set:function(t,e){var r=y(this,t);r?r[1]=e:this.a.push([t,e])},delete:function(t){var e=d(this.a,function(e){return e[0]===t});return~e&&this.a.splice(e,1),!!~e}},e.exports={getConstructor:function(t,e,r,n){var o=t(function(t,i){s(t,o,e),t._i=m++,t._l=void 0,void 0!=i&&c(i,r,t[n],t)});return i(o.prototype,{delete:function(t){return!!a(t)&&(f(t)?h(t,l)&&h(t[l],this._i)&&delete t[l][this._i]:g(this).delete(t))},has:function(t){return!!a(t)&&(f(t)?h(t,l)&&h(t[l],this._i):g(this).has(t))}}),o},def:function(t,e,r){return f(o(e))?(h(e,l)||n(e,l,{}),e[l][t._i]=r):g(t).set(e,r),t},frozenStore:g,WEAK:l}},{"./$.an-object":72,"./$.array-methods":76,"./$.for-of":95,"./$.has":98,"./$.hide":99,"./$.is-object":106,"./$.redefine-all":128,"./$.strict-new":137,"./$.uid":150}],83:[function(t,e,r){"use strict";var n=t("./$.global"),i=t("./$.export"),o=t("./$.redefine"),a=t("./$.redefine-all"),s=t("./$.for-of"),c=t("./$.strict-new"),u=t("./$.is-object"),h=t("./$.fails"),l=t("./$.iter-detect"),f=t("./$.set-to-string-tag");e.exports=function(t,e,r,p,d,m){var g=n[t],v=g,y=d?"set":"add",b=v&&v.prototype,x={},w=function(t){var e=b[t];o(b,t,"delete"==t?function(t){return!(m&&!u(t))&&e.call(this,0===t?0:t)}:"has"==t?function(t){return!(m&&!u(t))&&e.call(this,0===t?0:t)}:"get"==t?function(t){return m&&!u(t)?void 0:e.call(this,0===t?0:t)}:"add"==t?function(t){return e.call(this,0===t?0:t),this}:function(t,r){return e.call(this,0===t?0:t,r),this})};if("function"==typeof v&&(m||b.forEach&&!h(function(){(new v).entries().next()}))){var _,S=new v,M=S[y](m?{}:-0,1)!=S,E=h(function(){S.has(1)}),T=l(function(t){new v(t)});T||(v=e(function(e,r){c(e,v,t);var n=new g;return void 0!=r&&s(r,d,n[y],n),n}),v.prototype=b,b.constructor=v),m||S.forEach(function(t,e){_=1/e===-(1/0)}),(E||_)&&(w("delete"),w("has"),d&&w("get")),(_||M)&&w(y),m&&b.clear&&delete b.clear}else v=p.getConstructor(e,t,d,y),a(v.prototype,r);return f(v,t),x[t]=v,i(i.G+i.W+i.F*(v!=g),x),m||p.setStrong(v,t,d),v}},{"./$.export":90,"./$.fails":92,"./$.for-of":95,"./$.global":97,"./$.is-object":106,"./$.iter-detect":111,"./$.redefine":129,"./$.redefine-all":128,"./$.set-to-string-tag":134,"./$.strict-new":137}],84:[function(t,e,r){arguments[4][22][0].apply(r,arguments)},{dup:22}],85:[function(t,e,r){arguments[4][23][0].apply(r,arguments)},{"./$.a-function":70,dup:23}],86:[function(t,e,r){arguments[4][24][0].apply(r,arguments)},{dup:24}],87:[function(t,e,r){arguments[4][25][0].apply(r,arguments)},{"./$.fails":92,dup:25}],88:[function(t,e,r){var n=t("./$.is-object"),i=t("./$.global").document,o=n(i)&&n(i.createElement);e.exports=function(t){return o?i.createElement(t):{}}},{"./$.global":97,"./$.is-object":106}],89:[function(t,e,r){arguments[4][26][0].apply(r,arguments)},{"./$":114,dup:26}],90:[function(t,e,r){var n=t("./$.global"),i=t("./$.core"),o=t("./$.hide"),a=t("./$.redefine"),s=t("./$.ctx"),c="prototype",u=function(t,e,r){var h,l,f,p,d=t&u.F,m=t&u.G,g=t&u.S,v=t&u.P,y=t&u.B,b=m?n:g?n[e]||(n[e]={}):(n[e]||{})[c],x=m?i:i[e]||(i[e]={}),w=x[c]||(x[c]={});m&&(r=e);for(h in r)l=!d&&b&&h in b,f=(l?b:r)[h],p=y&&l?s(f,n):v&&"function"==typeof f?s(Function.call,f):f,b&&!l&&a(b,h,f),x[h]!=f&&o(x,h,p),v&&w[h]!=f&&(w[h]=f)};n.core=i,u.F=1,u.G=2,u.S=4,u.P=8,u.B=16,u.W=32,e.exports=u},{"./$.core":84,"./$.ctx":85,"./$.global":97,"./$.hide":99,"./$.redefine":129}],91:[function(t,e,r){var n=t("./$.wks")("match");e.exports=function(t){var e=/./;try{"/./"[t](e)}catch(r){try{return e[n]=!1,!"/./"[t](e)}catch(t){}}return!0}},{"./$.wks":151}],92:[function(t,e,r){arguments[4][28][0].apply(r,arguments)},{dup:28}],93:[function(t,e,r){"use strict";var n=t("./$.hide"),i=t("./$.redefine"),o=t("./$.fails"),a=t("./$.defined"),s=t("./$.wks");e.exports=function(t,e,r){var c=s(t),u=""[t];o(function(){var e={};return e[c]=function(){return 7},7!=""[t](e)})&&(i(String.prototype,t,r(a,c,u)),n(RegExp.prototype,c,2==e?function(t,e){return u.call(t,this,e)}:function(t){return u.call(t,this)}))}},{"./$.defined":86,"./$.fails":92,"./$.hide":99,"./$.redefine":129,"./$.wks":151}],94:[function(t,e,r){"use strict";var n=t("./$.an-object");e.exports=function(){var t=n(this),e="";return t.global&&(e+="g"),t.ignoreCase&&(e+="i"),t.multiline&&(e+="m"),t.unicode&&(e+="u"),t.sticky&&(e+="y"),e}},{"./$.an-object":72}],95:[function(t,e,r){arguments[4][29][0].apply(r,arguments)},{"./$.an-object":72,"./$.ctx":85,"./$.is-array-iter":103,"./$.iter-call":108,"./$.to-length":147,"./core.get-iterator-method":152,dup:29}],96:[function(t,e,r){arguments[4][30][0].apply(r,arguments)},{"./$":114,"./$.to-iobject":146,dup:30}],97:[function(t,e,r){arguments[4][31][0].apply(r,arguments)},{dup:31}],98:[function(t,e,r){arguments[4][32][0].apply(r,arguments)},{dup:32}],99:[function(t,e,r){arguments[4][33][0].apply(r,arguments)},{"./$":114,"./$.descriptors":87,"./$.property-desc":127,dup:33}],100:[function(t,e,r){e.exports=t("./$.global").document&&document.documentElement},{"./$.global":97}],101:[function(t,e,r){e.exports=function(t,e,r){var n=void 0===r;switch(e.length){case 0:return n?t():t.call(r);case 1:return n?t(e[0]):t.call(r,e[0]);case 2:return n?t(e[0],e[1]):t.call(r,e[0],e[1]);case 3:return n?t(e[0],e[1],e[2]):t.call(r,e[0],e[1],e[2]);case 4:return n?t(e[0],e[1],e[2],e[3]):t.call(r,e[0],e[1],e[2],e[3])}return t.apply(r,e)}},{}],102:[function(t,e,r){arguments[4][34][0].apply(r,arguments)},{"./$.cof":79,dup:34}],103:[function(t,e,r){arguments[4][35][0].apply(r,arguments)},{"./$.iterators":113,"./$.wks":151,dup:35}],104:[function(t,e,r){arguments[4][36][0].apply(r,arguments)},{"./$.cof":79,dup:36}],105:[function(t,e,r){var n=t("./$.is-object"),i=Math.floor;e.exports=function(t){return!n(t)&&isFinite(t)&&i(t)===t}},{"./$.is-object":106}],106:[function(t,e,r){arguments[4][37][0].apply(r,arguments)},{dup:37}],107:[function(t,e,r){var n=t("./$.is-object"),i=t("./$.cof"),o=t("./$.wks")("match");e.exports=function(t){var e;return n(t)&&(void 0!==(e=t[o])?!!e:"RegExp"==i(t))}},{"./$.cof":79,"./$.is-object":106,"./$.wks":151}],108:[function(t,e,r){arguments[4][38][0].apply(r,arguments)},{"./$.an-object":72,dup:38}],109:[function(t,e,r){arguments[4][39][0].apply(r,arguments)},{"./$":114,"./$.hide":99,"./$.property-desc":127,"./$.set-to-string-tag":134,"./$.wks":151,dup:39}],110:[function(t,e,r){arguments[4][40][0].apply(r,arguments)},{"./$":114,"./$.export":90,"./$.has":98,"./$.hide":99,"./$.iter-create":109,"./$.iterators":113,"./$.library":116,"./$.redefine":129,"./$.set-to-string-tag":134,"./$.wks":151,dup:40}],111:[function(t,e,r){arguments[4][41][0].apply(r,arguments)},{"./$.wks":151,dup:41}],112:[function(t,e,r){arguments[4][42][0].apply(r,arguments)},{dup:42}],113:[function(t,e,r){arguments[4][43][0].apply(r,arguments)},{dup:43}],114:[function(t,e,r){arguments[4][44][0].apply(r,arguments)},{dup:44}],115:[function(t,e,r){arguments[4][45][0].apply(r,arguments)},{"./$":114,"./$.to-iobject":146,dup:45}],116:[function(t,e,r){e.exports=!1},{}],117:[function(t,e,r){e.exports=Math.expm1||function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}},{}],118:[function(t,e,r){e.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},{}],119:[function(t,e,r){e.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},{}],120:[function(t,e,r){var n,i,o,a=t("./$.global"),s=t("./$.task").set,c=a.MutationObserver||a.WebKitMutationObserver,u=a.process,h=a.Promise,l="process"==t("./$.cof")(u),f=function(){var t,e,r;for(l&&(t=u.domain)&&(u.domain=null,t.exit());n;)e=n.domain,r=n.fn,e&&e.enter(),r(),e&&e.exit(),n=n.next;i=void 0,t&&t.enter()};if(l)o=function(){u.nextTick(f)};else if(c){var p=1,d=document.createTextNode("");new c(f).observe(d,{characterData:!0}),o=function(){d.data=p=-p}}else o=h&&h.resolve?function(){h.resolve().then(f)}:function(){s.call(a,f)};e.exports=function(t){var e={fn:t,next:void 0,domain:l&&u.domain};i&&(i.next=e),n||(n=e,o()),i=e}},{"./$.cof":79,"./$.global":97,"./$.task":143}],121:[function(t,e,r){var n=t("./$"),i=t("./$.to-object"),o=t("./$.iobject");e.exports=t("./$.fails")(function(){var t=Object.assign,e={},r={},n=Symbol(),i="abcdefghijklmnopqrst";return e[n]=7,i.split("").forEach(function(t){r[t]=t}),7!=t({},e)[n]||Object.keys(t({},r)).join("")!=i})?function(t,e){for(var r=i(t),a=arguments,s=a.length,c=1,u=n.getKeys,h=n.getSymbols,l=n.isEnum;s>c;)for(var f,p=o(a[c++]),d=h?u(p).concat(h(p)):u(p),m=d.length,g=0;m>g;)l.call(p,f=d[g++])&&(r[f]=p[f]);return r}:Object.assign},{"./$":114,"./$.fails":92,"./$.iobject":102,"./$.to-object":148}],122:[function(t,e,r){var n=t("./$.export"),i=t("./$.core"),o=t("./$.fails");e.exports=function(t,e){var r=(i.Object||{})[t]||Object[t],a={};a[t]=e(r),n(n.S+n.F*o(function(){r(1)}),"Object",a)}},{"./$.core":84,"./$.export":90,"./$.fails":92}],123:[function(t,e,r){var n=t("./$"),i=t("./$.to-iobject"),o=n.isEnum;e.exports=function(t){return function(e){for(var r,a=i(e),s=n.getKeys(a),c=s.length,u=0,h=[];c>u;)o.call(a,r=s[u++])&&h.push(t?[r,a[r]]:a[r]);return h}}},{"./$":114,"./$.to-iobject":146}],124:[function(t,e,r){var n=t("./$"),i=t("./$.an-object"),o=t("./$.global").Reflect;e.exports=o&&o.ownKeys||function(t){var e=n.getNames(i(t)),r=n.getSymbols;return r?e.concat(r(t)):e}},{"./$":114,"./$.an-object":72,"./$.global":97}],125:[function(t,e,r){"use strict";var n=t("./$.path"),i=t("./$.invoke"),o=t("./$.a-function");e.exports=function(){for(var t=o(this),e=arguments.length,r=Array(e),a=0,s=n._,c=!1;e>a;)(r[a]=arguments[a++])===s&&(c=!0);return function(){var n,o=this,a=arguments,u=a.length,h=0,l=0;if(!c&&!u)return i(t,r,o);if(n=r.slice(),c)for(;e>h;h++)n[h]===s&&(n[h]=a[l++]);for(;u>l;)n.push(a[l++]);return i(t,n,o)}}},{"./$.a-function":70,"./$.invoke":101,"./$.path":126}],126:[function(t,e,r){e.exports=t("./$.global")},{"./$.global":97}],127:[function(t,e,r){arguments[4][47][0].apply(r,arguments)},{dup:47}],128:[function(t,e,r){arguments[4][48][0].apply(r,arguments)},{"./$.redefine":129,dup:48}],129:[function(t,e,r){var n=t("./$.global"),i=t("./$.hide"),o=t("./$.uid")("src"),a="toString",s=Function[a],c=(""+s).split(a);t("./$.core").inspectSource=function(t){return s.call(t)},(e.exports=function(t,e,r,a){"function"==typeof r&&(r.hasOwnProperty(o)||i(r,o,t[e]?""+t[e]:c.join(String(e))),r.hasOwnProperty("name")||i(r,"name",e)),t===n?t[e]=r:(a||delete t[e],i(t,e,r))})(Function.prototype,a,function(){return"function"==typeof this&&this[o]||s.call(this)})},{"./$.core":84,"./$.global":97,"./$.hide":99,"./$.uid":150}],130:[function(t,e,r){e.exports=function(t,e){var r=e===Object(e)?function(t){return e[t]}:e;return function(e){return String(e).replace(t,r)}}},{}],131:[function(t,e,r){e.exports=Object.is||function(t,e){return t===e?0!==t||1/t===1/e:t!=t&&e!=e}},{}],132:[function(t,e,r){var n=t("./$").getDesc,i=t("./$.is-object"),o=t("./$.an-object"),a=function(t,e){if(o(t),!i(e)&&null!==e)throw TypeError(e+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,r,i){try{i=t("./$.ctx")(Function.call,n(Object.prototype,"__proto__").set,2),i(e,[]),r=!(e instanceof Array)}catch(t){r=!0}return function(t,e){return a(t,e),r?t.__proto__=e:i(t,e),t}}({},!1):void 0),check:a}},{"./$":114,"./$.an-object":72,"./$.ctx":85,"./$.is-object":106}],133:[function(t,e,r){"use strict";var n=t("./$.global"),i=t("./$"),o=t("./$.descriptors"),a=t("./$.wks")("species");e.exports=function(t){var e=n[t];o&&e&&!e[a]&&i.setDesc(e,a,{configurable:!0,get:function(){return this}})}},{"./$":114,"./$.descriptors":87,"./$.global":97,"./$.wks":151}],134:[function(t,e,r){arguments[4][51][0].apply(r,arguments)},{"./$":114,"./$.has":98,"./$.wks":151,dup:51}],135:[function(t,e,r){arguments[4][52][0].apply(r,arguments)},{"./$.global":97,dup:52}],136:[function(t,e,r){var n=t("./$.an-object"),i=t("./$.a-function"),o=t("./$.wks")("species"); +e.exports=function(t,e){var r,a=n(t).constructor;return void 0===a||void 0==(r=n(a)[o])?e:i(r)}},{"./$.a-function":70,"./$.an-object":72,"./$.wks":151}],137:[function(t,e,r){arguments[4][53][0].apply(r,arguments)},{dup:53}],138:[function(t,e,r){arguments[4][54][0].apply(r,arguments)},{"./$.defined":86,"./$.to-integer":145,dup:54}],139:[function(t,e,r){var n=t("./$.is-regexp"),i=t("./$.defined");e.exports=function(t,e,r){if(n(e))throw TypeError("String#"+r+" doesn't accept regex!");return String(i(t))}},{"./$.defined":86,"./$.is-regexp":107}],140:[function(t,e,r){var n=t("./$.to-length"),i=t("./$.string-repeat"),o=t("./$.defined");e.exports=function(t,e,r,a){var s=String(o(t)),c=s.length,u=void 0===r?" ":String(r),h=n(e);if(h<=c)return s;""==u&&(u=" ");var l=h-c,f=i.call(u,Math.ceil(l/u.length));return f.length>l&&(f=f.slice(0,l)),a?f+s:s+f}},{"./$.defined":86,"./$.string-repeat":141,"./$.to-length":147}],141:[function(t,e,r){"use strict";var n=t("./$.to-integer"),i=t("./$.defined");e.exports=function(t){var e=String(i(this)),r="",o=n(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(e+=e))1&o&&(r+=e);return r}},{"./$.defined":86,"./$.to-integer":145}],142:[function(t,e,r){var n=t("./$.export"),i=t("./$.defined"),o=t("./$.fails"),a="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff",s="["+a+"]",c="​…",u=RegExp("^"+s+s+"*"),h=RegExp(s+s+"*$"),l=function(t,e){var r={};r[t]=e(f),n(n.P+n.F*o(function(){return!!a[t]()||c[t]()!=c}),"String",r)},f=l.trim=function(t,e){return t=String(i(t)),1&e&&(t=t.replace(u,"")),2&e&&(t=t.replace(h,"")),t};e.exports=l},{"./$.defined":86,"./$.export":90,"./$.fails":92}],143:[function(t,e,r){var n,i,o,a=t("./$.ctx"),s=t("./$.invoke"),c=t("./$.html"),u=t("./$.dom-create"),h=t("./$.global"),l=h.process,f=h.setImmediate,p=h.clearImmediate,d=h.MessageChannel,m=0,g={},v="onreadystatechange",y=function(){var t=+this;if(g.hasOwnProperty(t)){var e=g[t];delete g[t],e()}},b=function(t){y.call(t.data)};f&&p||(f=function(t){for(var e=[],r=1;arguments.length>r;)e.push(arguments[r++]);return g[++m]=function(){s("function"==typeof t?t:Function(t),e)},n(m),m},p=function(t){delete g[t]},"process"==t("./$.cof")(l)?n=function(t){l.nextTick(a(y,t,1))}:d?(i=new d,o=i.port2,i.port1.onmessage=b,n=a(o.postMessage,o,1)):h.addEventListener&&"function"==typeof postMessage&&!h.importScripts?(n=function(t){h.postMessage(t+"","*")},h.addEventListener("message",b,!1)):n=v in u("script")?function(t){c.appendChild(u("script"))[v]=function(){c.removeChild(this),y.call(t)}}:function(t){setTimeout(a(y,t,1),0)}),e.exports={set:f,clear:p}},{"./$.cof":79,"./$.ctx":85,"./$.dom-create":88,"./$.global":97,"./$.html":100,"./$.invoke":101}],144:[function(t,e,r){var n=t("./$.to-integer"),i=Math.max,o=Math.min;e.exports=function(t,e){return t=n(t),t<0?i(t+e,0):o(t,e)}},{"./$.to-integer":145}],145:[function(t,e,r){arguments[4][55][0].apply(r,arguments)},{dup:55}],146:[function(t,e,r){arguments[4][56][0].apply(r,arguments)},{"./$.defined":86,"./$.iobject":102,dup:56}],147:[function(t,e,r){arguments[4][57][0].apply(r,arguments)},{"./$.to-integer":145,dup:57}],148:[function(t,e,r){arguments[4][58][0].apply(r,arguments)},{"./$.defined":86,dup:58}],149:[function(t,e,r){var n=t("./$.is-object");e.exports=function(t,e){if(!n(t))return t;var r,i;if(e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;if("function"==typeof(r=t.valueOf)&&!n(i=r.call(t)))return i;if(!e&&"function"==typeof(r=t.toString)&&!n(i=r.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},{"./$.is-object":106}],150:[function(t,e,r){arguments[4][59][0].apply(r,arguments)},{dup:59}],151:[function(t,e,r){arguments[4][60][0].apply(r,arguments)},{"./$.global":97,"./$.shared":135,"./$.uid":150,dup:60}],152:[function(t,e,r){arguments[4][61][0].apply(r,arguments)},{"./$.classof":78,"./$.core":84,"./$.iterators":113,"./$.wks":151,dup:61}],153:[function(t,e,r){"use strict";var n,i=t("./$"),o=t("./$.export"),a=t("./$.descriptors"),s=t("./$.property-desc"),c=t("./$.html"),u=t("./$.dom-create"),h=t("./$.has"),l=t("./$.cof"),f=t("./$.invoke"),p=t("./$.fails"),d=t("./$.an-object"),m=t("./$.a-function"),g=t("./$.is-object"),v=t("./$.to-object"),y=t("./$.to-iobject"),b=t("./$.to-integer"),x=t("./$.to-index"),w=t("./$.to-length"),_=t("./$.iobject"),S=t("./$.uid")("__proto__"),M=t("./$.array-methods"),E=t("./$.array-includes")(!1),T=Object.prototype,A=Array.prototype,C=A.slice,L=A.join,k=i.setDesc,F=i.getDesc,P=i.setDescs,R={};a||(n=!p(function(){return 7!=k(u("div"),"a",{get:function(){return 7}}).a}),i.setDesc=function(t,e,r){if(n)try{return k(t,e,r)}catch(t){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(d(t)[e]=r.value),t},i.getDesc=function(t,e){if(n)try{return F(t,e)}catch(t){}if(h(t,e))return s(!T.propertyIsEnumerable.call(t,e),t[e])},i.setDescs=P=function(t,e){d(t);for(var r,n=i.getKeys(e),o=n.length,a=0;o>a;)i.setDesc(t,r=n[a++],e[r]);return t}),o(o.S+o.F*!a,"Object",{getOwnPropertyDescriptor:i.getDesc,defineProperty:i.setDesc,defineProperties:P});var D="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),O=D.concat("length","prototype"),$=D.length,j=function(){var t,e=u("iframe"),r=$,n=">";for(e.style.display="none",c.appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("