!function(exports){"use strict";var commonjsGlobal="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function unwrapExports(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function createCommonjsModule(e,t){return e(t={exports:{}},t.exports),t.exports}var _global=createCommonjsModule(function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}),_global$1={default:_global,__moduleExports:_global},hasOwnProperty={}.hasOwnProperty,_has=function(e,t){return hasOwnProperty.call(e,t)},_has$1={default:_has,__moduleExports:_has},_fails=function(e){try{return!!e()}catch(e){return!0}},_fails$1={default:_fails,__moduleExports:_fails},require$$1=_fails$1&&_fails||_fails$1,_descriptors=!require$$1(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}),_descriptors$1={default:_descriptors,__moduleExports:_descriptors},_core=createCommonjsModule(function(e){var t=e.exports={version:"2.6.9"};"number"==typeof __e&&(__e=t)}),_core_1=_core.version,_core$1={default:_core,__moduleExports:_core,version:_core_1},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},classCallCheck=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")},createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),defineProperty=function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e},_extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},get=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},inherits=function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)},possibleConstructorReturn=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t},slicedToArray=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},toConsumableArray=function(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)},_isObject=function(e){return"object"===(void 0===e?"undefined":_typeof(e))?null!==e:"function"==typeof e},_isObject$1={default:_isObject,__moduleExports:_isObject},isObject=_isObject$1&&_isObject||_isObject$1,_anObject=function(e){if(!isObject(e))throw TypeError(e+" is not an object!");return e},_anObject$1={default:_anObject,__moduleExports:_anObject},global$1=_global$1&&_global||_global$1,document$1=global$1.document,is=isObject(document$1)&&isObject(document$1.createElement),_domCreate=function(e){return is?document$1.createElement(e):{}},_domCreate$1={default:_domCreate,__moduleExports:_domCreate},require$$1$1=_descriptors$1&&_descriptors||_descriptors$1,cel=_domCreate$1&&_domCreate||_domCreate$1,_ie8DomDefine=!require$$1$1&&!require$$1(function(){return 7!=Object.defineProperty(cel("div"),"a",{get:function(){return 7}}).a}),_ie8DomDefine$1={default:_ie8DomDefine,__moduleExports:_ie8DomDefine},_toPrimitive=function(e,t){if(!isObject(e))return e;var r,n;if(t&&"function"==typeof(r=e.toString)&&!isObject(n=r.call(e)))return n;if("function"==typeof(r=e.valueOf)&&!isObject(n=r.call(e)))return n;if(!t&&"function"==typeof(r=e.toString)&&!isObject(n=r.call(e)))return n;throw TypeError("Can't convert object to primitive value")},_toPrimitive$1={default:_toPrimitive,__moduleExports:_toPrimitive},anObject=_anObject$1&&_anObject||_anObject$1,IE8_DOM_DEFINE=_ie8DomDefine$1&&_ie8DomDefine||_ie8DomDefine$1,toPrimitive=_toPrimitive$1&&_toPrimitive||_toPrimitive$1,dP=Object.defineProperty,f=require$$1$1?Object.defineProperty:function(e,t,r){if(anObject(e),t=toPrimitive(t,!0),anObject(r),IE8_DOM_DEFINE)try{return dP(e,t,r)}catch(e){}if("get"in r||"set"in r)throw TypeError("Accessors not supported!");return"value"in r&&(e[t]=r.value),e},_objectDp={f:f},_objectDp$1={default:_objectDp,__moduleExports:_objectDp,f:f},_propertyDesc=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},_propertyDesc$1={default:_propertyDesc,__moduleExports:_propertyDesc},$defineProperty=_objectDp$1&&_objectDp||_objectDp$1,createDesc=_propertyDesc$1&&_propertyDesc||_propertyDesc$1,_hide=require$$1$1?function(e,t,r){return $defineProperty.f(e,t,createDesc(1,r))}:function(e,t,r){return e[t]=r,e},_hide$1={default:_hide,__moduleExports:_hide},id=0,px=Math.random(),_uid=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++id+px).toString(36))},_uid$1={default:_uid,__moduleExports:_uid},_library=!1,_library$1={default:_library,__moduleExports:_library},require$$1$2=_core$1&&_core||_core$1,require$$0=_library$1&&_library||_library$1,_shared=createCommonjsModule(function(e){var t=global$1["__core-js_shared__"]||(global$1["__core-js_shared__"]={});(e.exports=function(e,r){return t[e]||(t[e]=void 0!==r?r:{})})("versions",[]).push({version:require$$1$2.version,mode:require$$0?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})}),_shared$1={default:_shared,__moduleExports:_shared},require$$0$1=_shared$1&&_shared||_shared$1,_functionToString=require$$0$1("native-function-to-string",Function.toString),_functionToString$1={default:_functionToString,__moduleExports:_functionToString},hide=_hide$1&&_hide||_hide$1,has=_has$1&&_has||_has$1,require$$26=_uid$1&&_uid||_uid$1,$toString=_functionToString$1&&_functionToString||_functionToString$1,_redefine=createCommonjsModule(function(e){var t=require$$26("src"),r=(""+$toString).split("toString");require$$1$2.inspectSource=function(e){return $toString.call(e)},(e.exports=function(e,n,o,i){var a="function"==typeof o;a&&(has(o,"name")||hide(o,"name",n)),e[n]!==o&&(a&&(has(o,t)||hide(o,t,e[n]?""+e[n]:r.join(String(n)))),e===global$1?e[n]=o:i?e[n]?e[n]=o:hide(e,n,o):(delete e[n],hide(e,n,o)))})(Function.prototype,"toString",function(){return"function"==typeof this&&this[t]||$toString.call(this)})}),_redefine$1={default:_redefine,__moduleExports:_redefine},_aFunction=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},_aFunction$1={default:_aFunction,__moduleExports:_aFunction},aFunction=_aFunction$1&&_aFunction||_aFunction$1,_ctx=function(e,t,r){if(aFunction(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,o){return e.call(t,r,n,o)}}return function(){return e.apply(t,arguments)}},_ctx$1={default:_ctx,__moduleExports:_ctx},redefine=_redefine$1&&_redefine||_redefine$1,ctx=_ctx$1&&_ctx||_ctx$1,PROTOTYPE="prototype",$export=function e(t,r,n){var o,i,a,s,c=t&e.F,u=t&e.G,l=t&e.P,p=t&e.B,f=u?global$1:t&e.S?global$1[r]||(global$1[r]={}):(global$1[r]||{})[PROTOTYPE],h=u?require$$1$2:require$$1$2[r]||(require$$1$2[r]={}),_=h[PROTOTYPE]||(h[PROTOTYPE]={});for(o in u&&(n=r),n)a=((i=!c&&f&&void 0!==f[o])?f:n)[o],s=p&&i?ctx(a,global$1):l&&"function"==typeof a?ctx(Function.call,a):a,f&&redefine(f,o,a,t&e.U),h[o]!=a&&hide(h,o,s),l&&_[o]!=a&&(_[o]=a)};global$1.core=require$$1$2,$export.F=1,$export.G=2,$export.S=4,$export.P=8,$export.B=16,$export.W=32,$export.U=64,$export.R=128;var _export=$export,_export$1={default:_export,__moduleExports:_export},_meta=createCommonjsModule(function(e){var t=require$$26("meta"),r=$defineProperty.f,n=0,o=Object.isExtensible||function(){return!0},i=!require$$1(function(){return o(Object.preventExtensions({}))}),a=function(e){r(e,t,{value:{i:"O"+ ++n,w:{}}})},s=e.exports={KEY:t,NEED:!1,fastKey:function(e,r){if(!isObject(e))return"symbol"==(void 0===e?"undefined":_typeof(e))?e:("string"==typeof e?"S":"P")+e;if(!has(e,t)){if(!o(e))return"F";if(!r)return"E";a(e)}return e[t].i},getWeak:function(e,r){if(!has(e,t)){if(!o(e))return!0;if(!r)return!1;a(e)}return e[t].w},onFreeze:function(e){return i&&s.NEED&&o(e)&&!has(e,t)&&a(e),e}}}),_meta_1=_meta.KEY,_meta_2=_meta.NEED,_meta_3=_meta.fastKey,_meta_4=_meta.getWeak,_meta_5=_meta.onFreeze,_meta$1={default:_meta,__moduleExports:_meta,KEY:_meta_1,NEED:_meta_2,fastKey:_meta_3,getWeak:_meta_4,onFreeze:_meta_5},_wks=createCommonjsModule(function(e){var t=require$$0$1("wks"),r=global$1.Symbol,n="function"==typeof r;(e.exports=function(e){return t[e]||(t[e]=n&&r[e]||(n?r:require$$26)("Symbol."+e))}).store=t}),_wks$1={default:_wks,__moduleExports:_wks},wks=_wks$1&&_wks||_wks$1,def=$defineProperty.f,TAG=wks("toStringTag"),_setToStringTag=function(e,t,r){e&&!has(e=r?e:e.prototype,TAG)&&def(e,TAG,{configurable:!0,value:t})},_setToStringTag$1={default:_setToStringTag,__moduleExports:_setToStringTag},f$1=wks,_wksExt={f:f$1},_wksExt$1={default:_wksExt,__moduleExports:_wksExt,f:f$1},wksExt=_wksExt$1&&_wksExt||_wksExt$1,defineProperty$1=$defineProperty.f,_wksDefine=function(e){var t=require$$1$2.Symbol||(require$$1$2.Symbol=require$$0?{}:global$1.Symbol||{});"_"==e.charAt(0)||e in t||defineProperty$1(t,e,{value:wksExt.f(e)})},_wksDefine$1={default:_wksDefine,__moduleExports:_wksDefine},toString={}.toString,_cof=function(e){return toString.call(e).slice(8,-1)},_cof$1={default:_cof,__moduleExports:_cof},require$$2=_cof$1&&_cof||_cof$1,_iobject=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==require$$2(e)?e.split(""):Object(e)},_iobject$1={default:_iobject,__moduleExports:_iobject},_defined=function(e){if(null==e)throw TypeError("Can't call method on  "+e);return e},_defined$1={default:_defined,__moduleExports:_defined},IObject=_iobject$1&&_iobject||_iobject$1,defined=_defined$1&&_defined||_defined$1,_toIobject=function(e){return IObject(defined(e))},_toIobject$1={default:_toIobject,__moduleExports:_toIobject},ceil=Math.ceil,floor=Math.floor,_toInteger=function(e){return isNaN(e=+e)?0:(e>0?floor:ceil)(e)},_toInteger$1={default:_toInteger,__moduleExports:_toInteger},toInteger=_toInteger$1&&_toInteger||_toInteger$1,min=Math.min,_toLength=function(e){return e>0?min(toInteger(e),9007199254740991):0},_toLength$1={default:_toLength,__moduleExports:_toLength},max=Math.max,min$1=Math.min,_toAbsoluteIndex=function(e,t){return(e=toInteger(e))<0?max(e+t,0):min$1(e,t)},_toAbsoluteIndex$1={default:_toAbsoluteIndex,__moduleExports:_toAbsoluteIndex},toIObject=_toIobject$1&&_toIobject||_toIobject$1,toLength=_toLength$1&&_toLength||_toLength$1,require$$15=_toAbsoluteIndex$1&&_toAbsoluteIndex||_toAbsoluteIndex$1,_arrayIncludes=function(e){return function(t,r,n){var o,i=toIObject(t),a=toLength(i.length),s=require$$15(n,a);if(e&&r!=r){for(;a>s;)if((o=i[s++])!=o)return!0}else for(;a>s;s++)if((e||s in i)&&i[s]===r)return e||s||0;return!e&&-1}},_arrayIncludes$1={default:_arrayIncludes,__moduleExports:_arrayIncludes},shared=require$$0$1("keys"),_sharedKey=function(e){return shared[e]||(shared[e]=require$$26(e))},_sharedKey$1={default:_sharedKey,__moduleExports:_sharedKey},require$$0$2=_arrayIncludes$1&&_arrayIncludes||_arrayIncludes$1,require$$0$3=_sharedKey$1&&_sharedKey||_sharedKey$1,arrayIndexOf=require$$0$2(!1),IE_PROTO=require$$0$3("IE_PROTO"),_objectKeysInternal=function(e,t){var r,n=toIObject(e),o=0,i=[];for(r in n)r!=IE_PROTO&&has(n,r)&&i.push(r);for(;t.length>o;)has(n,r=t[o++])&&(~arrayIndexOf(i,r)||i.push(r));return i},_objectKeysInternal$1={default:_objectKeysInternal,__moduleExports:_objectKeysInternal},_enumBugKeys="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),_enumBugKeys$1={default:_enumBugKeys,__moduleExports:_enumBugKeys},$keys=_objectKeysInternal$1&&_objectKeysInternal||_objectKeysInternal$1,require$$0$4=_enumBugKeys$1&&_enumBugKeys||_enumBugKeys$1,_objectKeys=Object.keys||function(e){return $keys(e,require$$0$4)},_objectKeys$1={default:_objectKeys,__moduleExports:_objectKeys},f$2=Object.getOwnPropertySymbols,_objectGops={f:f$2},_objectGops$1={default:_objectGops,__moduleExports:_objectGops,f:f$2},f$3={}.propertyIsEnumerable,_objectPie={f:f$3},_objectPie$1={default:_objectPie,__moduleExports:_objectPie,f:f$3},getKeys=_objectKeys$1&&_objectKeys||_objectKeys$1,gOPS=_objectGops$1&&_objectGops||_objectGops$1,require$$0$5=_objectPie$1&&_objectPie||_objectPie$1,_enumKeys=function(e){var t=getKeys(e),r=gOPS.f;if(r)for(var n,o=r(e),i=require$$0$5.f,a=0;o.length>a;)i.call(e,n=o[a++])&&t.push(n);return t},_enumKeys$1={default:_enumKeys,__moduleExports:_enumKeys},_isArray=Array.isArray||function(e){return"Array"==require$$2(e)},_isArray$1={default:_isArray,__moduleExports:_isArray},_toObject=function(e){return Object(defined(e))},_toObject$1={default:_toObject,__moduleExports:_toObject},_objectDps=require$$1$1?Object.defineProperties:function(e,t){anObject(e);for(var r,n=getKeys(t),o=n.length,i=0;o>i;)$defineProperty.f(e,r=n[i++],t[r]);return e},_objectDps$1={default:_objectDps,__moduleExports:_objectDps},document$2=global$1.document,_html=document$2&&document$2.documentElement,_html$1={default:_html,__moduleExports:_html},require$$1$3=_objectDps$1&&_objectDps||_objectDps$1,html=_html$1&&_html||_html$1,IE_PROTO$1=require$$0$3("IE_PROTO"),Empty=function(){},PROTOTYPE$1="prototype",_createDict=function(){var e,t=cel("iframe"),r=require$$0$4.length;for(t.style.display="none",html.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),_createDict=e.F;r--;)delete _createDict[PROTOTYPE$1][require$$0$4[r]];return _createDict()},_objectCreate=Object.create||function(e,t){var r;return null!==e?(Empty[PROTOTYPE$1]=anObject(e),r=new Empty,Empty[PROTOTYPE$1]=null,r[IE_PROTO$1]=e):r=_createDict(),void 0===t?r:require$$1$3(r,t)},_objectCreate$1={default:_objectCreate,__moduleExports:_objectCreate},hiddenKeys=require$$0$4.concat("length","prototype"),f$4=Object.getOwnPropertyNames||function(e){return $keys(e,hiddenKeys)},_objectGopn={f:f$4},_objectGopn$1={default:_objectGopn,__moduleExports:_objectGopn,f:f$4},gOPN=_objectGopn$1&&_objectGopn||_objectGopn$1,gOPN$1=gOPN.f,toString$1={}.toString,windowNames="object"==("undefined"==typeof window?"undefined":_typeof(window))&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],getWindowNames=function(e){try{return gOPN$1(e)}catch(e){return windowNames.slice()}},f$5=function(e){return windowNames&&"[object Window]"==toString$1.call(e)?getWindowNames(e):gOPN$1(toIObject(e))},_objectGopnExt={f:f$5},_objectGopnExt$1={default:_objectGopnExt,__moduleExports:_objectGopnExt,f:f$5},gOPD=Object.getOwnPropertyDescriptor,f$6=require$$1$1?gOPD:function(e,t){if(e=toIObject(e),t=toPrimitive(t,!0),IE8_DOM_DEFINE)try{return gOPD(e,t)}catch(e){}if(has(e,t))return createDesc(!require$$0$5.f.call(e,t),e[t])},_objectGopd={f:f$6},_objectGopd$1={default:_objectGopd,__moduleExports:_objectGopd,f:f$6},$export$1=_export$1&&_export||_export$1,meta=_meta$1&&_meta||_meta$1,setToStringTag=_setToStringTag$1&&_setToStringTag||_setToStringTag$1,require$$0$6=_wksDefine$1&&_wksDefine||_wksDefine$1,enumKeys=_enumKeys$1&&_enumKeys||_enumKeys$1,isArray=_isArray$1&&_isArray||_isArray$1,toObject=_toObject$1&&_toObject||_toObject$1,create=_objectCreate$1&&_objectCreate||_objectCreate$1,require$$1$4=_objectGopnExt$1&&_objectGopnExt||_objectGopnExt$1,require$$0$7=_objectGopd$1&&_objectGopd||_objectGopd$1,META=meta.KEY,gOPD$1=require$$0$7.f,dP$1=$defineProperty.f,gOPN$2=require$$1$4.f,$Symbol=global$1.Symbol,$JSON=global$1.JSON,_stringify=$JSON&&$JSON.stringify,PROTOTYPE$2="prototype",HIDDEN=wks("_hidden"),TO_PRIMITIVE=wks("toPrimitive"),isEnum={}.propertyIsEnumerable,SymbolRegistry=require$$0$1("symbol-registry"),AllSymbols=require$$0$1("symbols"),OPSymbols=require$$0$1("op-symbols"),ObjectProto=Object[PROTOTYPE$2],USE_NATIVE="function"==typeof $Symbol&&!!gOPS.f,QObject=global$1.QObject,setter=!QObject||!QObject[PROTOTYPE$2]||!QObject[PROTOTYPE$2].findChild,setSymbolDesc=require$$1$1&&require$$1(function(){return 7!=create(dP$1({},"a",{get:function(){return dP$1(this,"a",{value:7}).a}})).a})?function(e,t,r){var n=gOPD$1(ObjectProto,t);n&&delete ObjectProto[t],dP$1(e,t,r),n&&e!==ObjectProto&&dP$1(ObjectProto,t,n)}:dP$1,wrap=function(e){var t=AllSymbols[e]=create($Symbol[PROTOTYPE$2]);return t._k=e,t},isSymbol=USE_NATIVE&&"symbol"==_typeof($Symbol.iterator)?function(e){return"symbol"==(void 0===e?"undefined":_typeof(e))}:function(e){return e instanceof $Symbol},$defineProperty$1=function(e,t,r){return e===ObjectProto&&$defineProperty$1(OPSymbols,t,r),anObject(e),t=toPrimitive(t,!0),anObject(r),has(AllSymbols,t)?(r.enumerable?(has(e,HIDDEN)&&e[HIDDEN][t]&&(e[HIDDEN][t]=!1),r=create(r,{enumerable:createDesc(0,!1)})):(has(e,HIDDEN)||dP$1(e,HIDDEN,createDesc(1,{})),e[HIDDEN][t]=!0),setSymbolDesc(e,t,r)):dP$1(e,t,r)},$defineProperties=function(e,t){anObject(e);for(var r,n=enumKeys(t=toIObject(t)),o=0,i=n.length;i>o;)$defineProperty$1(e,r=n[o++],t[r]);return e},$create=function(e,t){return void 0===t?create(e):$defineProperties(create(e),t)},$propertyIsEnumerable=function(e){var t=isEnum.call(this,e=toPrimitive(e,!0));return!(this===ObjectProto&&has(AllSymbols,e)&&!has(OPSymbols,e))&&(!(t||!has(this,e)||!has(AllSymbols,e)||has(this,HIDDEN)&&this[HIDDEN][e])||t)},$getOwnPropertyDescriptor=function(e,t){if(e=toIObject(e),t=toPrimitive(t,!0),e!==ObjectProto||!has(AllSymbols,t)||has(OPSymbols,t)){var r=gOPD$1(e,t);return!r||!has(AllSymbols,t)||has(e,HIDDEN)&&e[HIDDEN][t]||(r.enumerable=!0),r}},$getOwnPropertyNames=function(e){for(var t,r=gOPN$2(toIObject(e)),n=[],o=0;r.length>o;)has(AllSymbols,t=r[o++])||t==HIDDEN||t==META||n.push(t);return n},$getOwnPropertySymbols=function(e){for(var t,r=e===ObjectProto,n=gOPN$2(r?OPSymbols:toIObject(e)),o=[],i=0;n.length>i;)!has(AllSymbols,t=n[i++])||r&&!has(ObjectProto,t)||o.push(AllSymbols[t]);return o};USE_NATIVE||($Symbol=function(){if(this instanceof $Symbol)throw TypeError("Symbol is not a constructor!");var e=require$$26(arguments.length>0?arguments[0]:void 0),t=function t(r){this===ObjectProto&&t.call(OPSymbols,r),has(this,HIDDEN)&&has(this[HIDDEN],e)&&(this[HIDDEN][e]=!1),setSymbolDesc(this,e,createDesc(1,r))};return require$$1$1&&setter&&setSymbolDesc(ObjectProto,e,{configurable:!0,set:t}),wrap(e)},redefine($Symbol[PROTOTYPE$2],"toString",function(){return this._k}),require$$0$7.f=$getOwnPropertyDescriptor,$defineProperty.f=$defineProperty$1,gOPN.f=require$$1$4.f=$getOwnPropertyNames,require$$0$5.f=$propertyIsEnumerable,gOPS.f=$getOwnPropertySymbols,require$$1$1&&!require$$0&&redefine(ObjectProto,"propertyIsEnumerable",$propertyIsEnumerable,!0),wksExt.f=function(e){return wrap(wks(e))}),$export$1($export$1.G+$export$1.W+$export$1.F*!USE_NATIVE,{Symbol:$Symbol});for(var es6Symbols="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),j=0;es6Symbols.length>j;)wks(es6Symbols[j++]);for(var wellKnownSymbols=getKeys(wks.store),k=0;wellKnownSymbols.length>k;)require$$0$6(wellKnownSymbols[k++]);$export$1($export$1.S+$export$1.F*!USE_NATIVE,"Symbol",{for:function(e){return has(SymbolRegistry,e+="")?SymbolRegistry[e]:SymbolRegistry[e]=$Symbol(e)},keyFor:function(e){if(!isSymbol(e))throw TypeError(e+" is not a symbol!");for(var t in SymbolRegistry)if(SymbolRegistry[t]===e)return t},useSetter:function(){setter=!0},useSimple:function(){setter=!1}}),$export$1($export$1.S+$export$1.F*!USE_NATIVE,"Object",{create:$create,defineProperty:$defineProperty$1,defineProperties:$defineProperties,getOwnPropertyDescriptor:$getOwnPropertyDescriptor,getOwnPropertyNames:$getOwnPropertyNames,getOwnPropertySymbols:$getOwnPropertySymbols});var FAILS_ON_PRIMITIVES=require$$1(function(){gOPS.f(1)});$export$1($export$1.S+$export$1.F*FAILS_ON_PRIMITIVES,"Object",{getOwnPropertySymbols:function(e){return gOPS.f(toObject(e))}}),$JSON&&$export$1($export$1.S+$export$1.F*(!USE_NATIVE||require$$1(function(){var e=$Symbol();return"[null]"!=_stringify([e])||"{}"!=_stringify({a:e})||"{}"!=_stringify(Object(e))})),"JSON",{stringify:function(e){for(var t,r,n=[e],o=1;arguments.length>o;)n.push(arguments[o++]);if(r=t=n[1],(isObject(t)||void 0!==e)&&!isSymbol(e))return isArray(t)||(t=function(e,t){if("function"==typeof r&&(t=r.call(this,e,t)),!isSymbol(t))return t}),n[1]=t,_stringify.apply($JSON,n)}}),$Symbol[PROTOTYPE$2][TO_PRIMITIVE]||hide($Symbol[PROTOTYPE$2],TO_PRIMITIVE,$Symbol[PROTOTYPE$2].valueOf),setToStringTag($Symbol,"Symbol"),setToStringTag(Math,"Math",!0),setToStringTag(global$1.JSON,"JSON",!0),$export$1($export$1.S,"Object",{create:create}),$export$1($export$1.S+$export$1.F*!require$$1$1,"Object",{defineProperty:$defineProperty.f}),$export$1($export$1.S+$export$1.F*!require$$1$1,"Object",{defineProperties:require$$1$3});var _objectSap=function(e,t){var r=(require$$1$2.Object||{})[e]||Object[e],n={};n[e]=t(r),$export$1($export$1.S+$export$1.F*require$$1(function(){r(1)}),"Object",n)},_objectSap$1={default:_objectSap,__moduleExports:_objectSap},require$$0$8=_objectSap$1&&_objectSap||_objectSap$1,$getOwnPropertyDescriptor$1=require$$0$7.f;require$$0$8("getOwnPropertyDescriptor",function(){return function(e,t){return $getOwnPropertyDescriptor$1(toIObject(e),t)}});var IE_PROTO$2=require$$0$3("IE_PROTO"),ObjectProto$1=Object.prototype,_objectGpo=Object.getPrototypeOf||function(e){return e=toObject(e),has(e,IE_PROTO$2)?e[IE_PROTO$2]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?ObjectProto$1:null},_objectGpo$1={default:_objectGpo,__moduleExports:_objectGpo},getPrototypeOf=_objectGpo$1&&_objectGpo||_objectGpo$1;require$$0$8("getPrototypeOf",function(){return function(e){return getPrototypeOf(toObject(e))}}),require$$0$8("keys",function(){return function(e){return getKeys(toObject(e))}}),require$$0$8("getOwnPropertyNames",function(){return require$$1$4.f});var meta$1=meta.onFreeze;require$$0$8("freeze",function(e){return function(t){return e&&isObject(t)?e(meta$1(t)):t}});var meta$2=meta.onFreeze;require$$0$8("seal",function(e){return function(t){return e&&isObject(t)?e(meta$2(t)):t}});var meta$3=meta.onFreeze;require$$0$8("preventExtensions",function(e){return function(t){return e&&isObject(t)?e(meta$3(t)):t}}),require$$0$8("isFrozen",function(e){return function(t){return!isObject(t)||!!e&&e(t)}}),require$$0$8("isSealed",function(e){return function(t){return!isObject(t)||!!e&&e(t)}}),require$$0$8("isExtensible",function(e){return function(t){return!!isObject(t)&&(!e||e(t))}});var $assign=Object.assign,_objectAssign=!$assign||require$$1(function(){var e={},t={},r=Symbol(),n="abcdefghijklmnopqrst";return e[r]=7,n.split("").forEach(function(e){t[e]=e}),7!=$assign({},e)[r]||Object.keys($assign({},t)).join("")!=n})?function(e,t){for(var r=toObject(e),n=arguments.length,o=1,i=gOPS.f,a=require$$0$5.f;n>o;)for(var s,c=IObject(arguments[o++]),u=i?getKeys(c).concat(i(c)):getKeys(c),l=u.length,p=0;l>p;)s=u[p++],require$$1$1&&!a.call(c,s)||(r[s]=c[s]);return r}:$assign,_objectAssign$1={default:_objectAssign,__moduleExports:_objectAssign},assign=_objectAssign$1&&_objectAssign||_objectAssign$1;$export$1($export$1.S+$export$1.F,"Object",{assign:assign});var _sameValue=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t},_sameValue$1={default:_sameValue,__moduleExports:_sameValue},sameValue=_sameValue$1&&_sameValue||_sameValue$1;$export$1($export$1.S,"Object",{is:sameValue});var check=function(e,t){if(anObject(e),!isObject(t)&&null!==t)throw TypeError(t+": can't set as prototype!")},_setProto={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=ctx(Function.call,require$$0$7.f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return check(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:check},_setProto_1=_setProto.set,_setProto_2=_setProto.check,_setProto$1={default:_setProto,__moduleExports:_setProto,set:_setProto_1,check:_setProto_2},setProto=_setProto$1&&_setProto||_setProto$1;$export$1($export$1.S,"Object",{setPrototypeOf:setProto.set});var TAG$1=wks("toStringTag"),ARG="Arguments"==require$$2(function(){return arguments}()),tryGet=function(e,t){try{return e[t]}catch(e){}},_classof=function(e){var t,r,n;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(r=tryGet(t=Object(e),TAG$1))?r:ARG?require$$2(t):"Object"==(n=require$$2(t))&&"function"==typeof t.callee?"Arguments":n},_classof$1={default:_classof,__moduleExports:_classof},classof=_classof$1&&_classof||_classof$1,test={};test[wks("toStringTag")]="z",test+""!="[object z]"&&redefine(Object.prototype,"toString",function(){return"[object "+classof(this)+"]"},!0);var _invoke=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)},_invoke$1={default:_invoke,__moduleExports:_invoke},invoke=_invoke$1&&_invoke||_invoke$1,arraySlice=[].slice,factories={},construct=function(e,t,r){if(!(t in factories)){for(var n=[],o=0;o<t;o++)n[o]="a["+o+"]";factories[t]=Function("F,a","return new F("+n.join(",")+")")}return factories[t](e,r)},_bind=Function.bind||function(e){var t=aFunction(this),r=arraySlice.call(arguments,1),n=function n(){var o=r.concat(arraySlice.call(arguments));return this instanceof n?construct(t,o.length,o):invoke(t,o,e)};return isObject(t.prototype)&&(n.prototype=t.prototype),n},_bind$1={default:_bind,__moduleExports:_bind},bind=_bind$1&&_bind||_bind$1;$export$1($export$1.P,"Function",{bind:bind});var dP$2=$defineProperty.f,FProto=Function.prototype,nameRE=/^\s*function ([^ (]*)/,NAME="name";NAME in FProto||require$$1$1&&dP$2(FProto,NAME,{configurable:!0,get:function(){try{return(""+this).match(nameRE)[1]}catch(e){return""}}});var HAS_INSTANCE=wks("hasInstance"),FunctionProto=Function.prototype;HAS_INSTANCE in FunctionProto||$defineProperty.f(FunctionProto,HAS_INSTANCE,{value:function(e){if("function"!=typeof this||!isObject(e))return!1;if(!isObject(this.prototype))return e instanceof this;for(;e=getPrototypeOf(e);)if(this.prototype===e)return!0;return!1}});var _stringWs="\t\n\v\f\r   ᠎             　\u2028\u2029\ufeff",_stringWs$1={default:_stringWs,__moduleExports:_stringWs},require$$2$1=_stringWs$1&&_stringWs||_stringWs$1,space="["+require$$2$1+"]",non="​",ltrim=RegExp("^"+space+space+"*"),rtrim=RegExp(space+space+"*$"),exporter=function(e,t,r){var n={},o=require$$1(function(){return!!require$$2$1[e]()||non[e]()!=non}),i=n[e]=o?t(trim):require$$2$1[e];r&&(n[r]=i),$export$1($export$1.P+$export$1.F*o,"String",n)},trim=exporter.trim=function(e,t){return e=String(defined(e)),1&t&&(e=e.replace(ltrim,"")),2&t&&(e=e.replace(rtrim,"")),e},_stringTrim=exporter,_stringTrim$1={default:_stringTrim,__moduleExports:_stringTrim},require$$0$9=_stringTrim$1&&_stringTrim||_stringTrim$1,$parseInt=global$1.parseInt,$trim=require$$0$9.trim,hex=/^[-+]?0[xX]/,_parseInt=8!==$parseInt(require$$2$1+"08")||22!==$parseInt(require$$2$1+"0x16")?function(e,t){var r=$trim(String(e),3);return $parseInt(r,t>>>0||(hex.test(r)?16:10))}:$parseInt,_parseInt$1={default:_parseInt,__moduleExports:_parseInt},$parseInt$1=_parseInt$1&&_parseInt||_parseInt$1;$export$1($export$1.G+$export$1.F*(parseInt!=$parseInt$1),{parseInt:$parseInt$1});var $parseFloat=global$1.parseFloat,$trim$1=require$$0$9.trim,_parseFloat=1/$parseFloat(require$$2$1+"-0")!=-1/0?function(e){var t=$trim$1(String(e),3),r=$parseFloat(t);return 0===r&&"-"==t.charAt(0)?-0:r}:$parseFloat,_parseFloat$1={default:_parseFloat,__moduleExports:_parseFloat},$parseFloat$1=_parseFloat$1&&_parseFloat||_parseFloat$1;$export$1($export$1.G+$export$1.F*(parseFloat!=$parseFloat$1),{parseFloat:$parseFloat$1});var setPrototypeOf=setProto.set,_inheritIfRequired=function(e,t,r){var n,o=t.constructor;return o!==r&&"function"==typeof o&&(n=o.prototype)!==r.prototype&&isObject(n)&&setPrototypeOf&&setPrototypeOf(e,n),e},_inheritIfRequired$1={default:_inheritIfRequired,__moduleExports:_inheritIfRequired},inheritIfRequired=_inheritIfRequired$1&&_inheritIfRequired||_inheritIfRequired$1,gOPN$3=gOPN.f,gOPD$2=require$$0$7.f,dP$3=$defineProperty.f,$trim$2=require$$0$9.trim,NUMBER="Number",$Number=global$1[NUMBER],Base=$Number,proto=$Number.prototype,BROKEN_COF=require$$2(create(proto))==NUMBER,TRIM="trim"in String.prototype,toNumber=function(e){var t=toPrimitive(e,!1);if("string"==typeof t&&t.length>2){var r,n,o,i=(t=TRIM?t.trim():$trim$2(t,3)).charCodeAt(0);if(43===i||45===i){if(88===(r=t.charCodeAt(2))||120===r)return NaN}else if(48===i){switch(t.charCodeAt(1)){case 66:case 98:n=2,o=49;break;case 79:case 111:n=8,o=55;break;default:return+t}for(var a,s=t.slice(2),c=0,u=s.length;c<u;c++)if((a=s.charCodeAt(c))<48||a>o)return NaN;return parseInt(s,n)}}return+t};if(!$Number(" 0o1")||!$Number("0b1")||$Number("+0x1")){$Number=function(e){var t=arguments.length<1?0:e,r=this;return r instanceof $Number&&(BROKEN_COF?require$$1(function(){proto.valueOf.call(r)}):require$$2(r)!=NUMBER)?inheritIfRequired(new Base(toNumber(t)),r,$Number):toNumber(t)};for(var keys=require$$1$1?gOPN$3(Base):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),j$1=0,key;keys.length>j$1;j$1++)has(Base,key=keys[j$1])&&!has($Number,key)&&dP$3($Number,key,gOPD$2(Base,key));$Number.prototype=proto,proto.constructor=$Number,redefine(global$1,NUMBER,$Number)}var _aNumberValue=function(e,t){if("number"!=typeof e&&"Number"!=require$$2(e))throw TypeError(t);return+e},_aNumberValue$1={default:_aNumberValue,__moduleExports:_aNumberValue},_stringRepeat=function(e){var t=String(defined(this)),r="",n=toInteger(e);if(n<0||n==1/0)throw RangeError("Count can't be negative");for(;n>0;(n>>>=1)&&(t+=t))1&n&&(r+=t);return r},_stringRepeat$1={default:_stringRepeat,__moduleExports:_stringRepeat},aNumberValue=_aNumberValue$1&&_aNumberValue||_aNumberValue$1,repeat=_stringRepeat$1&&_stringRepeat||_stringRepeat$1,$toFixed=1..toFixed,floor$1=Math.floor,data=[0,0,0,0,0,0],ERROR="Number.toFixed: incorrect invocation!",ZERO="0",multiply=function(e,t){for(var r=-1,n=t;++r<6;)n+=e*data[r],data[r]=n%1e7,n=floor$1(n/1e7)},divide=function(e){for(var t=6,r=0;--t>=0;)r+=data[t],data[t]=floor$1(r/e),r=r%e*1e7},numToString=function(){for(var e=6,t="";--e>=0;)if(""!==t||0===e||0!==data[e]){var r=String(data[e]);t=""===t?r:t+repeat.call(ZERO,7-r.length)+r}return t},pow=function e(t,r,n){return 0===r?n:r%2==1?e(t,r-1,n*t):e(t*t,r/2,n)},log=function(e){for(var t=0,r=e;r>=4096;)t+=12,r/=4096;for(;r>=2;)t+=1,r/=2;return t};$export$1($export$1.P+$export$1.F*(!!$toFixed&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!require$$1(function(){$toFixed.call({})})),"Number",{toFixed:function(e){var t,r,n,o,i=aNumberValue(this,ERROR),a=toInteger(e),s="",c=ZERO;if(a<0||a>20)throw RangeError(ERROR);if(i!=i)return"NaN";if(i<=-1e21||i>=1e21)return String(i);if(i<0&&(s="-",i=-i),i>1e-21)if(r=(t=log(i*pow(2,69,1))-69)<0?i*pow(2,-t,1):i/pow(2,t,1),r*=4503599627370496,(t=52-t)>0){for(multiply(0,r),n=a;n>=7;)multiply(1e7,0),n-=7;for(multiply(pow(10,n,1),0),n=t-1;n>=23;)divide(1<<23),n-=23;divide(1<<n),multiply(1,1),divide(2),c=numToString()}else multiply(0,r),multiply(1<<-t,0),c=numToString()+repeat.call(ZERO,a);return c=a>0?s+((o=c.length)<=a?"0."+repeat.call(ZERO,a-o)+c:c.slice(0,o-a)+"."+c.slice(o-a)):s+c}});var $toPrecision=1..toPrecision;$export$1($export$1.P+$export$1.F*(require$$1(function(){return"1"!==$toPrecision.call(1,void 0)})||!require$$1(function(){$toPrecision.call({})})),"Number",{toPrecision:function(e){var t=aNumberValue(this,"Number#toPrecision: incorrect invocation!");return void 0===e?$toPrecision.call(t):$toPrecision.call(t,e)}}),$export$1($export$1.S,"Number",{EPSILON:Math.pow(2,-52)});var _isFinite=global$1.isFinite;$export$1($export$1.S,"Number",{isFinite:function(e){return"number"==typeof e&&_isFinite(e)}});var floor$2=Math.floor,_isInteger=function(e){return!isObject(e)&&isFinite(e)&&floor$2(e)===e},_isInteger$1={default:_isInteger,__moduleExports:_isInteger},isInteger=_isInteger$1&&_isInteger||_isInteger$1;$export$1($export$1.S,"Number",{isInteger:isInteger}),$export$1($export$1.S,"Number",{isNaN:function(e){return e!=e}});var abs=Math.abs;$export$1($export$1.S,"Number",{isSafeInteger:function(e){return isInteger(e)&&abs(e)<=9007199254740991}}),$export$1($export$1.S,"Number",{MAX_SAFE_INTEGER:9007199254740991}),$export$1($export$1.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991}),$export$1($export$1.S+$export$1.F*(Number.parseFloat!=$parseFloat$1),"Number",{parseFloat:$parseFloat$1}),$export$1($export$1.S+$export$1.F*(Number.parseInt!=$parseInt$1),"Number",{parseInt:$parseInt$1});var _mathLog1p=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)},_mathLog1p$1={default:_mathLog1p,__moduleExports:_mathLog1p},require$$0$a=_mathLog1p$1&&_mathLog1p||_mathLog1p$1,sqrt=Math.sqrt,$acosh=Math.acosh;$export$1($export$1.S+$export$1.F*!($acosh&&710==Math.floor($acosh(Number.MAX_VALUE))&&$acosh(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:require$$0$a(e-1+sqrt(e-1)*sqrt(e+1))}});var $asinh=Math.asinh;function asinh(e){return isFinite(e=+e)&&0!=e?e<0?-asinh(-e):Math.log(e+Math.sqrt(e*e+1)):e}$export$1($export$1.S+$export$1.F*!($asinh&&1/$asinh(0)>0),"Math",{asinh:asinh});var $atanh=Math.atanh;$export$1($export$1.S+$export$1.F*!($atanh&&1/$atanh(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}});var _mathSign=Math.sign||function(e){return 0==(e=+e)||e!=e?e:e<0?-1:1},_mathSign$1={default:_mathSign,__moduleExports:_mathSign},require$$0$b=_mathSign$1&&_mathSign||_mathSign$1;$export$1($export$1.S,"Math",{cbrt:function(e){return require$$0$b(e=+e)*Math.pow(Math.abs(e),1/3)}}),$export$1($export$1.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}});var exp=Math.exp;$export$1($export$1.S,"Math",{cosh:function(e){return(exp(e=+e)+exp(-e))/2}});var $expm1=Math.expm1,_mathExpm1=!$expm1||$expm1(10)>22025.465794806718||$expm1(10)<22025.465794806718||-2e-17!=$expm1(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:$expm1,_mathExpm1$1={default:_mathExpm1,__moduleExports:_mathExpm1},expm1=_mathExpm1$1&&_mathExpm1||_mathExpm1$1;$export$1($export$1.S+$export$1.F*(expm1!=Math.expm1),"Math",{expm1:expm1});var pow$1=Math.pow,EPSILON=pow$1(2,-52),EPSILON32=pow$1(2,-23),MAX32=pow$1(2,127)*(2-EPSILON32),MIN32=pow$1(2,-126),roundTiesToEven=function(e){return e+1/EPSILON-1/EPSILON},_mathFround=Math.fround||function(e){var t,r,n=Math.abs(e),o=require$$0$b(e);return n<MIN32?o*roundTiesToEven(n/MIN32/EPSILON32)*MIN32*EPSILON32:(r=(t=(1+EPSILON32/EPSILON)*n)-(t-n))>MAX32||r!=r?o*(1/0):o*r},_mathFround$1={default:_mathFround,__moduleExports:_mathFround},fround=_mathFround$1&&_mathFround||_mathFround$1;$export$1($export$1.S,"Math",{fround:fround});var abs$1=Math.abs;$export$1($export$1.S,"Math",{hypot:function(e,t){for(var r,n,o=0,i=0,a=arguments.length,s=0;i<a;)s<(r=abs$1(arguments[i++]))?(o=o*(n=s/r)*n+1,s=r):o+=r>0?(n=r/s)*n:r;return s===1/0?1/0:s*Math.sqrt(o)}});var $imul=Math.imul;$export$1($export$1.S+$export$1.F*require$$1(function(){return-5!=$imul(4294967295,5)||2!=$imul.length}),"Math",{imul:function(e,t){var r=+e,n=+t,o=65535&r,i=65535&n;return 0|o*i+((65535&r>>>16)*i+o*(65535&n>>>16)<<16>>>0)}}),$export$1($export$1.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}}),$export$1($export$1.S,"Math",{log1p:require$$0$a}),$export$1($export$1.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}}),$export$1($export$1.S,"Math",{sign:require$$0$b});var exp$1=Math.exp;$export$1($export$1.S+$export$1.F*require$$1(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(expm1(e)-expm1(-e))/2:(exp$1(e-1)-exp$1(-e-1))*(Math.E/2)}});var exp$2=Math.exp;$export$1($export$1.S,"Math",{tanh:function(e){var t=expm1(e=+e),r=expm1(-e);return t==1/0?1:r==1/0?-1:(t-r)/(exp$2(e)+exp$2(-e))}}),$export$1($export$1.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}});var fromCharCode=String.fromCharCode,$fromCodePoint=String.fromCodePoint;$export$1($export$1.S+$export$1.F*(!!$fromCodePoint&&1!=$fromCodePoint.length),"String",{fromCodePoint:function(e){for(var t,r=[],n=arguments.length,o=0;n>o;){if(t=+arguments[o++],require$$15(t,1114111)!==t)throw RangeError(t+" is not a valid code point");r.push(t<65536?fromCharCode(t):fromCharCode(55296+((t-=65536)>>10),t%1024+56320))}return r.join("")}}),$export$1($export$1.S,"String",{raw:function(e){for(var t=toIObject(e.raw),r=toLength(t.length),n=arguments.length,o=[],i=0;r>i;)o.push(String(t[i++])),i<n&&o.push(String(arguments[i]));return o.join("")}}),require$$0$9("trim",function(e){return function(){return e(this,3)}});var _stringAt=function(e){return function(t,r){var n,o,i=String(defined(t)),a=toInteger(r),s=i.length;return a<0||a>=s?e?"":void 0:(n=i.charCodeAt(a))<55296||n>56319||a+1===s||(o=i.charCodeAt(a+1))<56320||o>57343?e?i.charAt(a):n:e?i.slice(a,a+2):o-56320+(n-55296<<10)+65536}},_stringAt$1={default:_stringAt,__moduleExports:_stringAt},_iterators={},_iterators$1={default:_iterators,__moduleExports:_iterators},IteratorPrototype={};hide(IteratorPrototype,wks("iterator"),function(){return this});var _iterCreate=function(e,t,r){e.prototype=create(IteratorPrototype,{next:createDesc(1,r)}),setToStringTag(e,t+" Iterator")},_iterCreate$1={default:_iterCreate,__moduleExports:_iterCreate},Iterators=_iterators$1&&_iterators||_iterators$1,require$$0$c=_iterCreate$1&&_iterCreate||_iterCreate$1,ITERATOR=wks("iterator"),BUGGY=!([].keys&&"next"in[].keys()),FF_ITERATOR="@@iterator",KEYS="keys",VALUES="values",returnThis=function(){return this},_iterDefine=function(e,t,r,n,o,i,a){require$$0$c(r,t,n);var s,c,u,l=function(e){if(!BUGGY&&e in _)return _[e];switch(e){case KEYS:case VALUES:return function(){return new r(this,e)}}return function(){return new r(this,e)}},p=t+" Iterator",f=o==VALUES,h=!1,_=e.prototype,d=_[ITERATOR]||_[FF_ITERATOR]||o&&_[o],b=d||l(o),y=o?f?l("entries"):b:void 0,m="Array"==t&&_.entries||d;if(m&&(u=getPrototypeOf(m.call(new e)))!==Object.prototype&&u.next&&(setToStringTag(u,p,!0),require$$0||"function"==typeof u[ITERATOR]||hide(u,ITERATOR,returnThis)),f&&d&&d.name!==VALUES&&(h=!0,b=function(){return d.call(this)}),require$$0&&!a||!BUGGY&&!h&&_[ITERATOR]||hide(_,ITERATOR,b),Iterators[t]=b,Iterators[p]=returnThis,o)if(s={values:f?b:l(VALUES),keys:i?b:l(KEYS),entries:y},a)for(c in s)c in _||redefine(_,c,s[c]);else $export$1($export$1.P+$export$1.F*(BUGGY||h),t,s);return s},_iterDefine$1={default:_iterDefine,__moduleExports:_iterDefine},require$$0$d=_stringAt$1&&_stringAt||_stringAt$1,$iterDefine=_iterDefine$1&&_iterDefine||_iterDefine$1,$at=require$$0$d(!0);$iterDefine(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,r=this._i;return r>=t.length?{value:void 0,done:!0}:(e=$at(t,r),this._i+=e.length,{value:e,done:!1})});var $at$1=require$$0$d(!1);$export$1($export$1.P,"String",{codePointAt:function(e){return $at$1(this,e)}});var MATCH=wks("match"),_isRegexp=function(e){var t;return isObject(e)&&(void 0!==(t=e[MATCH])?!!t:"RegExp"==require$$2(e))},_isRegexp$1={default:_isRegexp,__moduleExports:_isRegexp},isRegExp=_isRegexp$1&&_isRegexp||_isRegexp$1,_stringContext=function(e,t,r){if(isRegExp(t))throw TypeError("String#"+r+" doesn't accept regex!");return String(defined(e))},_stringContext$1={default:_stringContext,__moduleExports:_stringContext},MATCH$1=wks("match"),_failsIsRegexp=function(e){var t=/./;try{"/./"[e](t)}catch(r){try{return t[MATCH$1]=!1,!"/./"[e](t)}catch(e){}}return!0},_failsIsRegexp$1={default:_failsIsRegexp,__moduleExports:_failsIsRegexp},context=_stringContext$1&&_stringContext||_stringContext$1,require$$0$e=_failsIsRegexp$1&&_failsIsRegexp||_failsIsRegexp$1,ENDS_WITH="endsWith",$endsWith=""[ENDS_WITH];$export$1($export$1.P+$export$1.F*require$$0$e(ENDS_WITH),"String",{endsWith:function(e){var t=context(this,e,ENDS_WITH),r=arguments.length>1?arguments[1]:void 0,n=toLength(t.length),o=void 0===r?n:Math.min(toLength(r),n),i=String(e);return $endsWith?$endsWith.call(t,i,o):t.slice(o-i.length,o)===i}});var INCLUDES="includes";$export$1($export$1.P+$export$1.F*require$$0$e(INCLUDES),"String",{includes:function(e){return!!~context(this,e,INCLUDES).indexOf(e,arguments.length>1?arguments[1]:void 0)}}),$export$1($export$1.P,"String",{repeat:repeat});var STARTS_WITH="startsWith",$startsWith=""[STARTS_WITH];$export$1($export$1.P+$export$1.F*require$$0$e(STARTS_WITH),"String",{startsWith:function(e){var t=context(this,e,STARTS_WITH),r=toLength(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),n=String(e);return $startsWith?$startsWith.call(t,n,r):t.slice(r,r+n.length)===n}});var quot=/"/g,createHTML=function(e,t,r,n){var o=String(defined(e)),i="<"+t;return""!==r&&(i+=" "+r+'="'+String(n).replace(quot,"&quot;")+'"'),i+">"+o+"</"+t+">"},_stringHtml=function(e,t){var r={};r[e]=t(createHTML),$export$1($export$1.P+$export$1.F*require$$1(function(){var t=""[e]('"');return t!==t.toLowerCase()||t.split('"').length>3}),"String",r)},_stringHtml$1={default:_stringHtml,__moduleExports:_stringHtml},require$$0$f=_stringHtml$1&&_stringHtml||_stringHtml$1;require$$0$f("anchor",function(e){return function(t){return e(this,"a","name",t)}}),require$$0$f("big",function(e){return function(){return e(this,"big","","")}}),require$$0$f("blink",function(e){return function(){return e(this,"blink","","")}}),require$$0$f("bold",function(e){return function(){return e(this,"b","","")}}),require$$0$f("fixed",function(e){return function(){return e(this,"tt","","")}}),require$$0$f("fontcolor",function(e){return function(t){return e(this,"font","color",t)}}),require$$0$f("fontsize",function(e){return function(t){return e(this,"font","size",t)}}),require$$0$f("italics",function(e){return function(){return e(this,"i","","")}}),require$$0$f("link",function(e){return function(t){return e(this,"a","href",t)}}),require$$0$f("small",function(e){return function(){return e(this,"small","","")}}),require$$0$f("strike",function(e){return function(){return e(this,"strike","","")}}),require$$0$f("sub",function(e){return function(){return e(this,"sub","","")}}),require$$0$f("sup",function(e){return function(){return e(this,"sup","","")}}),$export$1($export$1.S,"Date",{now:function(){return(new Date).getTime()}}),$export$1($export$1.P+$export$1.F*require$$1(function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})}),"Date",{toJSON:function(e){var t=toObject(this),r=toPrimitive(t);return"number"!=typeof r||isFinite(r)?t.toISOString():null}});var getTime=Date.prototype.getTime,$toISOString=Date.prototype.toISOString,lz=function(e){return e>9?e:"0"+e},_dateToIsoString=require$$1(function(){return"0385-07-25T07:06:39.999Z"!=$toISOString.call(new Date(-5e13-1))})||!require$$1(function(){$toISOString.call(new Date(NaN))})?function(){if(!isFinite(getTime.call(this)))throw RangeError("Invalid time value");var e=this,t=e.getUTCFullYear(),r=e.getUTCMilliseconds(),n=t<0?"-":t>9999?"+":"";return n+("00000"+Math.abs(t)).slice(n?-6:-4)+"-"+lz(e.getUTCMonth()+1)+"-"+lz(e.getUTCDate())+"T"+lz(e.getUTCHours())+":"+lz(e.getUTCMinutes())+":"+lz(e.getUTCSeconds())+"."+(r>99?r:"0"+lz(r))+"Z"}:$toISOString,_dateToIsoString$1={default:_dateToIsoString,__moduleExports:_dateToIsoString},toISOString=_dateToIsoString$1&&_dateToIsoString||_dateToIsoString$1;$export$1($export$1.P+$export$1.F*(Date.prototype.toISOString!==toISOString),"Date",{toISOString:toISOString});var DateProto=Date.prototype,INVALID_DATE="Invalid Date",TO_STRING="toString",$toString$1=DateProto[TO_STRING],getTime$1=DateProto.getTime;new Date(NaN)+""!=INVALID_DATE&&redefine(DateProto,TO_STRING,function(){var e=getTime$1.call(this);return e==e?$toString$1.call(this):INVALID_DATE});var NUMBER$1="number",_dateToPrimitive=function(e){if("string"!==e&&e!==NUMBER$1&&"default"!==e)throw TypeError("Incorrect hint");return toPrimitive(anObject(this),e!=NUMBER$1)},_dateToPrimitive$1={default:_dateToPrimitive,__moduleExports:_dateToPrimitive},require$$2$2=_dateToPrimitive$1&&_dateToPrimitive||_dateToPrimitive$1,TO_PRIMITIVE$1=wks("toPrimitive"),proto$1=Date.prototype;TO_PRIMITIVE$1 in proto$1||hide(proto$1,TO_PRIMITIVE$1,require$$2$2),$export$1($export$1.S,"Array",{isArray:isArray});var _iterCall=function(e,t,r,n){try{return n?t(anObject(r)[0],r[1]):t(r)}catch(t){var o=e.return;throw void 0!==o&&anObject(o.call(e)),t}},_iterCall$1={default:_iterCall,__moduleExports:_iterCall},ITERATOR$1=wks("iterator"),ArrayProto=Array.prototype,_isArrayIter=function(e){return void 0!==e&&(Iterators.Array===e||ArrayProto[ITERATOR$1]===e)},_isArrayIter$1={default:_isArrayIter,__moduleExports:_isArrayIter},_createProperty=function(e,t,r){t in e?$defineProperty.f(e,t,createDesc(0,r)):e[t]=r},_createProperty$1={default:_createProperty,__moduleExports:_createProperty},ITERATOR$2=wks("iterator"),core_getIteratorMethod=require$$1$2.getIteratorMethod=function(e){if(null!=e)return e[ITERATOR$2]||e["@@iterator"]||Iterators[classof(e)]},core_getIteratorMethod$1={default:core_getIteratorMethod,__moduleExports:core_getIteratorMethod},ITERATOR$3=wks("iterator"),SAFE_CLOSING=!1;try{var riter=[7][ITERATOR$3]();riter.return=function(){SAFE_CLOSING=!0},Array.from(riter,function(){throw 2})}catch(e){}var _iterDetect=function(e,t){if(!t&&!SAFE_CLOSING)return!1;var r=!1;try{var n=[7],o=n[ITERATOR$3]();o.next=function(){return{done:r=!0}},n[ITERATOR$3]=function(){return o},e(n)}catch(e){}return r},_iterDetect$1={default:_iterDetect,__moduleExports:_iterDetect},call=_iterCall$1&&_iterCall||_iterCall$1,require$$21=_isArrayIter$1&&_isArrayIter||_isArrayIter$1,createProperty=_createProperty$1&&_createProperty||_createProperty$1,require$$25=core_getIteratorMethod$1&&core_getIteratorMethod||core_getIteratorMethod$1,require$$33=_iterDetect$1&&_iterDetect||_iterDetect$1;$export$1($export$1.S+$export$1.F*!require$$33(function(e){}),"Array",{from:function(e){var t,r,n,o,i=toObject(e),a="function"==typeof this?this:Array,s=arguments.length,c=s>1?arguments[1]:void 0,u=void 0!==c,l=0,p=require$$25(i);if(u&&(c=ctx(c,s>2?arguments[2]:void 0,2)),null==p||a==Array&&require$$21(p))for(r=new a(t=toLength(i.length));t>l;l++)createProperty(r,l,u?c(i[l],l):i[l]);else for(o=p.call(i),r=new a;!(n=o.next()).done;l++)createProperty(r,l,u?call(o,c,[n.value,l],!0):n.value);return r.length=l,r}}),$export$1($export$1.S+$export$1.F*require$$1(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,r=new("function"==typeof this?this:Array)(t);t>e;)createProperty(r,e,arguments[e++]);return r.length=t,r}});var _strictMethod=function(e,t){return!!e&&require$$1(function(){t?e.call(null,function(){},1):e.call(null)})},_strictMethod$1={default:_strictMethod,__moduleExports:_strictMethod},require$$0$g=_strictMethod$1&&_strictMethod||_strictMethod$1,arrayJoin=[].join;$export$1($export$1.P+$export$1.F*(IObject!=Object||!require$$0$g(arrayJoin)),"Array",{join:function(e){return arrayJoin.call(toIObject(this),void 0===e?",":e)}});var arraySlice$1=[].slice;$export$1($export$1.P+$export$1.F*require$$1(function(){html&&arraySlice$1.call(html)}),"Array",{slice:function(e,t){var r=toLength(this.length),n=require$$2(this);if(t=void 0===t?r:t,"Array"==n)return arraySlice$1.call(this,e,t);for(var o=require$$15(e,r),i=require$$15(t,r),a=toLength(i-o),s=new Array(a),c=0;c<a;c++)s[c]="String"==n?this.charAt(o+c):this[o+c];return s}});var $sort=[].sort,test$1=[1,2,3];$export$1($export$1.P+$export$1.F*(require$$1(function(){test$1.sort(void 0)})||!require$$1(function(){test$1.sort(null)})||!require$$0$g($sort)),"Array",{sort:function(e){return void 0===e?$sort.call(toObject(this)):$sort.call(toObject(this),aFunction(e))}});var SPECIES=wks("species"),_arraySpeciesConstructor=function(e){var t;return isArray(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!isArray(t.prototype)||(t=void 0),isObject(t)&&null===(t=t[SPECIES])&&(t=void 0)),void 0===t?Array:t},_arraySpeciesConstructor$1={default:_arraySpeciesConstructor,__moduleExports:_arraySpeciesConstructor},speciesConstructor=_arraySpeciesConstructor$1&&_arraySpeciesConstructor||_arraySpeciesConstructor$1,_arraySpeciesCreate=function(e,t){return new(speciesConstructor(e))(t)},_arraySpeciesCreate$1={default:_arraySpeciesCreate,__moduleExports:_arraySpeciesCreate},arraySpeciesCreate=_arraySpeciesCreate$1&&_arraySpeciesCreate||_arraySpeciesCreate$1,_arrayMethods=function(e,t){var r=1==e,n=2==e,o=3==e,i=4==e,a=6==e,s=5==e||a,c=t||arraySpeciesCreate;return function(t,u,l){for(var p,f,h=toObject(t),_=IObject(h),d=ctx(u,l,3),b=toLength(_.length),y=0,m=r?c(t,b):n?c(t,0):void 0;b>y;y++)if((s||y in _)&&(f=d(p=_[y],y,h),e))if(r)m[y]=f;else if(f)switch(e){case 3:return!0;case 5:return p;case 6:return y;case 2:m.push(p)}else if(i)return!1;return a?-1:o||i?i:m}},_arrayMethods$1={default:_arrayMethods,__moduleExports:_arrayMethods},require$$28=_arrayMethods$1&&_arrayMethods||_arrayMethods$1,$forEach=require$$28(0),STRICT=require$$0$g([].forEach,!0);$export$1($export$1.P+$export$1.F*!STRICT,"Array",{forEach:function(e){return $forEach(this,e,arguments[1])}});var $map=require$$28(1);$export$1($export$1.P+$export$1.F*!require$$0$g([].map,!0),"Array",{map:function(e){return $map(this,e,arguments[1])}});var $filter=require$$28(2);$export$1($export$1.P+$export$1.F*!require$$0$g([].filter,!0),"Array",{filter:function(e){return $filter(this,e,arguments[1])}});var $some=require$$28(3);$export$1($export$1.P+$export$1.F*!require$$0$g([].some,!0),"Array",{some:function(e){return $some(this,e,arguments[1])}});var $every=require$$28(4);$export$1($export$1.P+$export$1.F*!require$$0$g([].every,!0),"Array",{every:function(e){return $every(this,e,arguments[1])}});var _arrayReduce=function(e,t,r,n,o){aFunction(t);var i=toObject(e),a=IObject(i),s=toLength(i.length),c=o?s-1:0,u=o?-1:1;if(r<2)for(;;){if(c in a){n=a[c],c+=u;break}if(c+=u,o?c<0:s<=c)throw TypeError("Reduce of empty array with no initial value")}for(;o?c>=0:s>c;c+=u)c in a&&(n=t(n,a[c],c,i));return n},_arrayReduce$1={default:_arrayReduce,__moduleExports:_arrayReduce},$reduce=_arrayReduce$1&&_arrayReduce||_arrayReduce$1;$export$1($export$1.P+$export$1.F*!require$$0$g([].reduce,!0),"Array",{reduce:function(e){return $reduce(this,e,arguments.length,arguments[1],!1)}}),$export$1($export$1.P+$export$1.F*!require$$0$g([].reduceRight,!0),"Array",{reduceRight:function(e){return $reduce(this,e,arguments.length,arguments[1],!0)}});var $indexOf=require$$0$2(!1),$native=[].indexOf,NEGATIVE_ZERO=!!$native&&1/[1].indexOf(1,-0)<0;$export$1($export$1.P+$export$1.F*(NEGATIVE_ZERO||!require$$0$g($native)),"Array",{indexOf:function(e){return NEGATIVE_ZERO?$native.apply(this,arguments)||0:$indexOf(this,e,arguments[1])}});var $native$1=[].lastIndexOf,NEGATIVE_ZERO$1=!!$native$1&&1/[1].lastIndexOf(1,-0)<0;$export$1($export$1.P+$export$1.F*(NEGATIVE_ZERO$1||!require$$0$g($native$1)),"Array",{lastIndexOf:function(e){if(NEGATIVE_ZERO$1)return $native$1.apply(this,arguments)||0;var t=toIObject(this),r=toLength(t.length),n=r-1;for(arguments.length>1&&(n=Math.min(n,toInteger(arguments[1]))),n<0&&(n=r+n);n>=0;n--)if(n in t&&t[n]===e)return n||0;return-1}});var _arrayCopyWithin=[].copyWithin||function(e,t){var r=toObject(this),n=toLength(r.length),o=require$$15(e,n),i=require$$15(t,n),a=arguments.length>2?arguments[2]:void 0,s=Math.min((void 0===a?n:require$$15(a,n))-i,n-o),c=1;for(i<o&&o<i+s&&(c=-1,i+=s-1,o+=s-1);s-- >0;)i in r?r[o]=r[i]:delete r[o],o+=c,i+=c;return r},_arrayCopyWithin$1={default:_arrayCopyWithin,__moduleExports:_arrayCopyWithin},UNSCOPABLES=wks("unscopables"),ArrayProto$1=Array.prototype;null==ArrayProto$1[UNSCOPABLES]&&hide(ArrayProto$1,UNSCOPABLES,{});var _addToUnscopables=function(e){ArrayProto$1[UNSCOPABLES][e]=!0},_addToUnscopables$1={default:_addToUnscopables,__moduleExports:_addToUnscopables},require$$36=_arrayCopyWithin$1&&_arrayCopyWithin||_arrayCopyWithin$1,require$$0$h=_addToUnscopables$1&&_addToUnscopables||_addToUnscopables$1;$export$1($export$1.P,"Array",{copyWithin:require$$36}),require$$0$h("copyWithin");var _arrayFill=function(e){for(var t=toObject(this),r=toLength(t.length),n=arguments.length,o=require$$15(n>1?arguments[1]:void 0,r),i=n>2?arguments[2]:void 0,a=void 0===i?r:require$$15(i,r);a>o;)t[o++]=e;return t},_arrayFill$1={default:_arrayFill,__moduleExports:_arrayFill},require$$35=_arrayFill$1&&_arrayFill||_arrayFill$1;$export$1($export$1.P,"Array",{fill:require$$35}),require$$0$h("fill");var $find=require$$28(5),KEY="find",forced=!0;KEY in[]&&Array(1)[KEY](function(){forced=!1}),$export$1($export$1.P+$export$1.F*forced,"Array",{find:function(e){return $find(this,e,arguments.length>1?arguments[1]:void 0)}}),require$$0$h(KEY);var $find$1=require$$28(6),KEY$1="findIndex",forced$1=!0;KEY$1 in[]&&Array(1)[KEY$1](function(){forced$1=!1}),$export$1($export$1.P+$export$1.F*forced$1,"Array",{findIndex:function(e){return $find$1(this,e,arguments.length>1?arguments[1]:void 0)}}),require$$0$h(KEY$1);var SPECIES$1=wks("species"),_setSpecies=function(e){var t=global$1[e];require$$1$1&&t&&!t[SPECIES$1]&&$defineProperty.f(t,SPECIES$1,{configurable:!0,get:function(){return this}})},_setSpecies$1={default:_setSpecies,__moduleExports:_setSpecies},require$$2$3=_setSpecies$1&&_setSpecies||_setSpecies$1;require$$2$3("Array");var _iterStep=function(e,t){return{value:t,done:!!e}},_iterStep$1={default:_iterStep,__moduleExports:_iterStep},step=_iterStep$1&&_iterStep||_iterStep$1,es6_array_iterator=$iterDefine(Array,"Array",function(e,t){this._t=toIObject(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,r=this._i++;return!e||r>=e.length?(this._t=void 0,step(1)):step(0,"keys"==t?r:"values"==t?e[r]:[r,e[r]])},"values");Iterators.Arguments=Iterators.Array,require$$0$h("keys"),require$$0$h("values"),require$$0$h("entries");var es6_array_iterator$1={default:es6_array_iterator,__moduleExports:es6_array_iterator},_flags=function(){var e=anObject(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t},_flags$1={default:_flags,__moduleExports:_flags},getFlags=_flags$1&&_flags||_flags$1,dP$4=$defineProperty.f,gOPN$4=gOPN.f,$RegExp=global$1.RegExp,Base$1=$RegExp,proto$2=$RegExp.prototype,re1=/a/g,re2=/a/g,CORRECT_NEW=new $RegExp(re1)!==re1;if(require$$1$1&&(!CORRECT_NEW||require$$1(function(){return re2[wks("match")]=!1,$RegExp(re1)!=re1||$RegExp(re2)==re2||"/a/i"!=$RegExp(re1,"i")}))){$RegExp=function(e,t){var r=this instanceof $RegExp,n=isRegExp(e),o=void 0===t;return!r&&n&&e.constructor===$RegExp&&o?e:inheritIfRequired(CORRECT_NEW?new Base$1(n&&!o?e.source:e,t):Base$1((n=e instanceof $RegExp)?e.source:e,n&&o?getFlags.call(e):t),r?this:proto$2,$RegExp)};for(var proxy=function(e){e in $RegExp||dP$4($RegExp,e,{configurable:!0,get:function(){return Base$1[e]},set:function(t){Base$1[e]=t}})},keys$1=gOPN$4(Base$1),i=0;keys$1.length>i;)proxy(keys$1[i++]);proto$2.constructor=$RegExp,$RegExp.prototype=proto$2,redefine(global$1,"RegExp",$RegExp)}require$$2$3("RegExp");var nativeExec=RegExp.prototype.exec,nativeReplace=String.prototype.replace,patchedExec=nativeExec,LAST_INDEX="lastIndex",UPDATES_LAST_INDEX_WRONG=function(){var e=/a/,t=/b*/g;return nativeExec.call(e,"a"),nativeExec.call(t,"a"),0!==e[LAST_INDEX]||0!==t[LAST_INDEX]}(),NPCG_INCLUDED=void 0!==/()??/.exec("")[1],PATCH=UPDATES_LAST_INDEX_WRONG||NPCG_INCLUDED;PATCH&&(patchedExec=function(e){var t,r,n,o,i=this;return NPCG_INCLUDED&&(r=new RegExp("^"+i.source+"$(?!\\s)",getFlags.call(i))),UPDATES_LAST_INDEX_WRONG&&(t=i[LAST_INDEX]),n=nativeExec.call(i,e),UPDATES_LAST_INDEX_WRONG&&n&&(i[LAST_INDEX]=i.global?n.index+n[0].length:t),NPCG_INCLUDED&&n&&n.length>1&&nativeReplace.call(n[0],r,function(){for(o=1;o<arguments.length-2;o++)void 0===arguments[o]&&(n[o]=void 0)}),n});var _regexpExec=patchedExec,_regexpExec$1={default:_regexpExec,__moduleExports:_regexpExec},regexpExec=_regexpExec$1&&_regexpExec||_regexpExec$1;$export$1({target:"RegExp",proto:!0,forced:regexpExec!==/./.exec},{exec:regexpExec}),require$$1$1&&"g"!=/./g.flags&&$defineProperty.f(RegExp.prototype,"flags",{configurable:!0,get:getFlags});var TO_STRING$1="toString",$toString$2=/./[TO_STRING$1],define=function(e){redefine(RegExp.prototype,TO_STRING$1,e,!0)};require$$1(function(){return"/a/b"!=$toString$2.call({source:"a",flags:"b"})})?define(function(){var e=anObject(this);return"/".concat(e.source,"/","flags"in e?e.flags:!require$$1$1&&e instanceof RegExp?getFlags.call(e):void 0)}):$toString$2.name!=TO_STRING$1&&define(function(){return $toString$2.call(this)});var at=require$$0$d(!0),_advanceStringIndex=function(e,t,r){return t+(r?at(e,t).length:1)},_advanceStringIndex$1={default:_advanceStringIndex,__moduleExports:_advanceStringIndex},builtinExec=RegExp.prototype.exec,_regexpExecAbstract=function(e,t){var r=e.exec;if("function"==typeof r){var n=r.call(e,t);if("object"!==(void 0===n?"undefined":_typeof(n)))throw new TypeError("RegExp exec method returned something other than an Object or null");return n}if("RegExp"!==classof(e))throw new TypeError("RegExp#exec called on incompatible receiver");return builtinExec.call(e,t)},_regexpExecAbstract$1={default:_regexpExecAbstract,__moduleExports:_regexpExecAbstract},SPECIES$2=wks("species"),REPLACE_SUPPORTS_NAMED_GROUPS=!require$$1(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$<a>")}),SPLIT_WORKS_WITH_OVERWRITTEN_EXEC=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var r="ab".split(e);return 2===r.length&&"a"===r[0]&&"b"===r[1]}(),_fixReWks=function(e,t,r){var n=wks(e),o=!require$$1(function(){var t={};return t[n]=function(){return 7},7!=""[e](t)}),i=o?!require$$1(function(){var t=!1,r=/a/;return r.exec=function(){return t=!0,null},"split"===e&&(r.constructor={},r.constructor[SPECIES$2]=function(){return r}),r[n](""),!t}):void 0;if(!o||!i||"replace"===e&&!REPLACE_SUPPORTS_NAMED_GROUPS||"split"===e&&!SPLIT_WORKS_WITH_OVERWRITTEN_EXEC){var a=/./[n],s=r(defined,n,""[e],function(e,t,r,n,i){return t.exec===regexpExec?o&&!i?{done:!0,value:a.call(t,r,n)}:{done:!0,value:e.call(r,t,n)}:{done:!1}}),c=s[0],u=s[1];redefine(String.prototype,e,c),hide(RegExp.prototype,n,2==t?function(e,t){return u.call(e,this,t)}:function(e){return u.call(e,this)})}},_fixReWks$1={default:_fixReWks,__moduleExports:_fixReWks},advanceStringIndex=_advanceStringIndex$1&&_advanceStringIndex||_advanceStringIndex$1,callRegExpExec=_regexpExecAbstract$1&&_regexpExecAbstract||_regexpExecAbstract$1,require$$0$i=_fixReWks$1&&_fixReWks||_fixReWks$1;require$$0$i("match",1,function(e,t,r,n){return[function(r){var n=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=n(r,e,this);if(t.done)return t.value;var o=anObject(e),i=String(this);if(!o.global)return callRegExpExec(o,i);var a=o.unicode;o.lastIndex=0;for(var s,c=[],u=0;null!==(s=callRegExpExec(o,i));){var l=String(s[0]);c[u]=l,""===l&&(o.lastIndex=advanceStringIndex(i,toLength(o.lastIndex),a)),u++}return 0===u?null:c}]});var max$1=Math.max,min$2=Math.min,floor$3=Math.floor,SUBSTITUTION_SYMBOLS=/\$([$&`']|\d\d?|<[^>]*>)/g,SUBSTITUTION_SYMBOLS_NO_NAMED=/\$([$&`']|\d\d?)/g,maybeToString=function(e){return void 0===e?e:String(e)};require$$0$i("replace",2,function(e,t,r,n){return[function(n,o){var i=e(this),a=null==n?void 0:n[t];return void 0!==a?a.call(n,i,o):r.call(String(i),n,o)},function(e,t){var i=n(r,e,this,t);if(i.done)return i.value;var a=anObject(e),s=String(this),c="function"==typeof t;c||(t=String(t));var u=a.global;if(u){var l=a.unicode;a.lastIndex=0}for(var p=[];;){var f=callRegExpExec(a,s);if(null===f)break;if(p.push(f),!u)break;""===String(f[0])&&(a.lastIndex=advanceStringIndex(s,toLength(a.lastIndex),l))}for(var h="",_=0,d=0;d<p.length;d++){f=p[d];for(var b=String(f[0]),y=max$1(min$2(toInteger(f.index),s.length),0),m=[],$=1;$<f.length;$++)m.push(maybeToString(f[$]));var v=f.groups;if(c){var g=[b].concat(m,y,s);void 0!==v&&g.push(v);var E=String(t.apply(void 0,g))}else E=o(b,s,y,m,v,t);y>=_&&(h+=s.slice(_,y)+E,_=y+b.length)}return h+s.slice(_)}];function o(e,t,n,o,i,a){var s=n+e.length,c=o.length,u=SUBSTITUTION_SYMBOLS_NO_NAMED;return void 0!==i&&(i=toObject(i),u=SUBSTITUTION_SYMBOLS),r.call(a,u,function(r,a){var u;switch(a.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,n);case"'":return t.slice(s);case"<":u=i[a.slice(1,-1)];break;default:var l=+a;if(0===l)return r;if(l>c){var p=floor$3(l/10);return 0===p?r:p<=c?void 0===o[p-1]?a.charAt(1):o[p-1]+a.charAt(1):r}u=o[l-1]}return void 0===u?"":u})}}),require$$0$i("search",1,function(e,t,r,n){return[function(r){var n=e(this),o=null==r?void 0:r[t];return void 0!==o?o.call(r,n):new RegExp(r)[t](String(n))},function(e){var t=n(r,e,this);if(t.done)return t.value;var o=anObject(e),i=String(this),a=o.lastIndex;sameValue(a,0)||(o.lastIndex=0);var s=callRegExpExec(o,i);return sameValue(o.lastIndex,a)||(o.lastIndex=a),null===s?-1:s.index}]});var SPECIES$3=wks("species"),_speciesConstructor=function(e,t){var r,n=anObject(e).constructor;return void 0===n||null==(r=anObject(n)[SPECIES$3])?t:aFunction(r)},_speciesConstructor$1={default:_speciesConstructor,__moduleExports:_speciesConstructor},speciesConstructor$1=_speciesConstructor$1&&_speciesConstructor||_speciesConstructor$1,$min=Math.min,$push=[].push,$SPLIT="split",LENGTH="length",LAST_INDEX$1="lastIndex",MAX_UINT32=4294967295,SUPPORTS_Y=!require$$1(function(){});require$$0$i("split",2,function(e,t,r,n){var o;return o="c"=="abbc"[$SPLIT](/(b)*/)[1]||4!="test"[$SPLIT](/(?:)/,-1)[LENGTH]||2!="ab"[$SPLIT](/(?:ab)*/)[LENGTH]||4!="."[$SPLIT](/(.?)(.?)/)[LENGTH]||"."[$SPLIT](/()()/)[LENGTH]>1||""[$SPLIT](/.?/)[LENGTH]?function(e,t){var n=String(this);if(void 0===e&&0===t)return[];if(!isRegExp(e))return r.call(n,e,t);for(var o,i,a,s=[],c=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),u=0,l=void 0===t?MAX_UINT32:t>>>0,p=new RegExp(e.source,c+"g");(o=regexpExec.call(p,n))&&!((i=p[LAST_INDEX$1])>u&&(s.push(n.slice(u,o.index)),o[LENGTH]>1&&o.index<n[LENGTH]&&$push.apply(s,o.slice(1)),a=o[0][LENGTH],u=i,s[LENGTH]>=l));)p[LAST_INDEX$1]===o.index&&p[LAST_INDEX$1]++;return u===n[LENGTH]?!a&&p.test("")||s.push(""):s.push(n.slice(u)),s[LENGTH]>l?s.slice(0,l):s}:"0"[$SPLIT](void 0,0)[LENGTH]?function(e,t){return void 0===e&&0===t?[]:r.call(this,e,t)}:r,[function(r,n){var i=e(this),a=null==r?void 0:r[t];return void 0!==a?a.call(r,i,n):o.call(String(i),r,n)},function(e,t){var i=n(o,e,this,t,o!==r);if(i.done)return i.value;var a=anObject(e),s=String(this),c=speciesConstructor$1(a,RegExp),u=a.unicode,l=(a.ignoreCase?"i":"")+(a.multiline?"m":"")+(a.unicode?"u":"")+(SUPPORTS_Y?"y":"g"),p=new c(SUPPORTS_Y?a:"^(?:"+a.source+")",l),f=void 0===t?MAX_UINT32:t>>>0;if(0===f)return[];if(0===s.length)return null===callRegExpExec(p,s)?[s]:[];for(var h=0,_=0,d=[];_<s.length;){p.lastIndex=SUPPORTS_Y?_:0;var b,y=callRegExpExec(p,SUPPORTS_Y?s:s.slice(_));if(null===y||(b=$min(toLength(p.lastIndex+(SUPPORTS_Y?0:_)),s.length))===h)_=advanceStringIndex(s,_,u);else{if(d.push(s.slice(h,_)),d.length===f)return d;for(var m=1;m<=y.length-1;m++)if(d.push(y[m]),d.length===f)return d;_=h=b}}return d.push(s.slice(h)),d}]});var _anInstance=function(e,t,r,n){if(!(e instanceof t)||void 0!==n&&n in e)throw TypeError(r+": incorrect invocation!");return e},_anInstance$1={default:_anInstance,__moduleExports:_anInstance},_forOf=createCommonjsModule(function(e){var t={},r={},n=e.exports=function(e,n,o,i,a){var s,c,u,l,p=a?function(){return e}:require$$25(e),f=ctx(o,i,n?2:1),h=0;if("function"!=typeof p)throw TypeError(e+" is not iterable!");if(require$$21(p)){for(s=toLength(e.length);s>h;h++)if((l=n?f(anObject(c=e[h])[0],c[1]):f(e[h]))===t||l===r)return l}else for(u=p.call(e);!(c=u.next()).done;)if((l=call(u,f,c.value,n))===t||l===r)return l};n.BREAK=t,n.RETURN=r}),_forOf$1={default:_forOf,__moduleExports:_forOf},process=global$1.process,setTask=global$1.setImmediate,clearTask=global$1.clearImmediate,MessageChannel=global$1.MessageChannel,Dispatch=global$1.Dispatch,counter=0,queue={},ONREADYSTATECHANGE="onreadystatechange",defer,channel,port,run=function(){var e=+this;if(queue.hasOwnProperty(e)){var t=queue[e];delete queue[e],t()}},listener=function(e){run.call(e.data)};setTask&&clearTask||(setTask=function(e){for(var t=[],r=1;arguments.length>r;)t.push(arguments[r++]);return queue[++counter]=function(){invoke("function"==typeof e?e:Function(e),t)},defer(counter),counter},clearTask=function(e){delete queue[e]},"process"==require$$2(process)?defer=function(e){process.nextTick(ctx(run,e,1))}:Dispatch&&Dispatch.now?defer=function(e){Dispatch.now(ctx(run,e,1))}:MessageChannel?(channel=new MessageChannel,port=channel.port2,channel.port1.onmessage=listener,defer=ctx(port.postMessage,port,1)):global$1.addEventListener&&"function"==typeof postMessage&&!global$1.importScripts?(defer=function(e){global$1.postMessage(e+"","*")},global$1.addEventListener("message",listener,!1)):defer=ONREADYSTATECHANGE in cel("script")?function(e){html.appendChild(cel("script"))[ONREADYSTATECHANGE]=function(){html.removeChild(this),run.call(e)}}:function(e){setTimeout(ctx(run,e,1),0)});var _task={set:setTask,clear:clearTask},_task_1=_task.set,_task_2=_task.clear,_task$1={default:_task,__moduleExports:_task,set:_task_1,clear:_task_2},$task=_task$1&&_task||_task$1,macrotask=$task.set,Observer=global$1.MutationObserver||global$1.WebKitMutationObserver,process$1=global$1.process,Promise$1=global$1.Promise,isNode="process"==require$$2(process$1),_microtask=function(){var e,t,r,n=function(){var n,o;for(isNode&&(n=process$1.domain)&&n.exit();e;){o=e.fn,e=e.next;try{o()}catch(n){throw e?r():t=void 0,n}}t=void 0,n&&n.enter()};if(isNode)r=function(){process$1.nextTick(n)};else if(!Observer||global$1.navigator&&global$1.navigator.standalone)if(Promise$1&&Promise$1.resolve){var o=Promise$1.resolve(void 0);r=function(){o.then(n)}}else r=function(){macrotask.call(global$1,n)};else{var i=!0,a=document.createTextNode("");new Observer(n).observe(a,{characterData:!0}),r=function(){a.data=i=!i}}return function(n){var o={fn:n,next:void 0};t&&(t.next=o),e||(e=o,r()),t=o}},_microtask$1={default:_microtask,__moduleExports:_microtask};function PromiseCapability(e){var t,r;this.promise=new e(function(e,n){if(void 0!==t||void 0!==r)throw TypeError("Bad Promise constructor");t=e,r=n}),this.resolve=aFunction(t),this.reject=aFunction(r)}var f$7=function(e){return new PromiseCapability(e)},_newPromiseCapability={f:f$7},_newPromiseCapability$1={default:_newPromiseCapability,__moduleExports:_newPromiseCapability,f:f$7},_perform=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}},_perform$1={default:_perform,__moduleExports:_perform},navigator=global$1.navigator,_userAgent=navigator&&navigator.userAgent||"",_userAgent$1={default:_userAgent,__moduleExports:_userAgent},newPromiseCapability=_newPromiseCapability$1&&_newPromiseCapability||_newPromiseCapability$1,_promiseResolve=function(e,t){if(anObject(e),isObject(t)&&t.constructor===e)return t;var r=newPromiseCapability.f(e);return(0,r.resolve)(t),r.promise},_promiseResolve$1={default:_promiseResolve,__moduleExports:_promiseResolve},_redefineAll=function(e,t,r){for(var n in t)redefine(e,n,t[n],r);return e},_redefineAll$1={default:_redefineAll,__moduleExports:_redefineAll},anInstance=_anInstance$1&&_anInstance||_anInstance$1,forOf=_forOf$1&&_forOf||_forOf$1,require$$0$j=_microtask$1&&_microtask||_microtask$1,perform=_perform$1&&_perform||_perform$1,userAgent=_userAgent$1&&_userAgent||_userAgent$1,promiseResolve=_promiseResolve$1&&_promiseResolve||_promiseResolve$1,redefineAll=_redefineAll$1&&_redefineAll||_redefineAll$1,task=$task.set,microtask=require$$0$j(),PROMISE="Promise",TypeError$1=global$1.TypeError,process$2=global$1.process,versions=process$2&&process$2.versions,v8=versions&&versions.v8||"",$Promise=global$1[PROMISE],isNode$1="process"==classof(process$2),empty=function(){},Internal,newGenericPromiseCapability,OwnPromiseCapability,Wrapper,newPromiseCapability$1=newGenericPromiseCapability=newPromiseCapability.f,USE_NATIVE$1=!!function(){try{var e=$Promise.resolve(1),t=(e.constructor={})[wks("species")]=function(e){e(empty,empty)};return(isNode$1||"function"==typeof PromiseRejectionEvent)&&e.then(empty)instanceof t&&0!==v8.indexOf("6.6")&&-1===userAgent.indexOf("Chrome/66")}catch(e){}}(),isThenable=function(e){var t;return!(!isObject(e)||"function"!=typeof(t=e.then))&&t},notify=function(e,t){if(!e._n){e._n=!0;var r=e._c;microtask(function(){for(var n=e._v,o=1==e._s,i=0,a=function(t){var r,i,a,s=o?t.ok:t.fail,c=t.resolve,u=t.reject,l=t.domain;try{s?(o||(2==e._h&&onHandleUnhandled(e),e._h=1),!0===s?r=n:(l&&l.enter(),r=s(n),l&&(l.exit(),a=!0)),r===t.promise?u(TypeError$1("Promise-chain cycle")):(i=isThenable(r))?i.call(r,c,u):c(r)):u(n)}catch(e){l&&!a&&l.exit(),u(e)}};r.length>i;)a(r[i++]);e._c=[],e._n=!1,t&&!e._h&&onUnhandled(e)})}},onUnhandled=function(e){task.call(global$1,function(){var t,r,n,o=e._v,i=isUnhandled(e);if(i&&(t=perform(function(){isNode$1?process$2.emit("unhandledRejection",o,e):(r=global$1.onunhandledrejection)?r({promise:e,reason:o}):(n=global$1.console)&&n.error&&n.error("Unhandled promise rejection",o)}),e._h=isNode$1||isUnhandled(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},isUnhandled=function(e){return 1!==e._h&&0===(e._a||e._c).length},onHandleUnhandled=function(e){task.call(global$1,function(){var t;isNode$1?process$2.emit("rejectionHandled",e):(t=global$1.onrejectionhandled)&&t({promise:e,reason:e._v})})},$reject=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),notify(t,!0))},$resolve=function e(t){var r,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===t)throw TypeError$1("Promise can't be resolved itself");(r=isThenable(t))?microtask(function(){var o={_w:n,_d:!1};try{r.call(t,ctx(e,o,1),ctx($reject,o,1))}catch(e){$reject.call(o,e)}}):(n._v=t,n._s=1,notify(n,!1))}catch(e){$reject.call({_w:n,_d:!1},e)}}};USE_NATIVE$1||($Promise=function(e){anInstance(this,$Promise,PROMISE,"_h"),aFunction(e),Internal.call(this);try{e(ctx($resolve,this,1),ctx($reject,this,1))}catch(e){$reject.call(this,e)}},Internal=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1},Internal.prototype=redefineAll($Promise.prototype,{then:function(e,t){var r=newPromiseCapability$1(speciesConstructor$1(this,$Promise));return r.ok="function"!=typeof e||e,r.fail="function"==typeof t&&t,r.domain=isNode$1?process$2.domain:void 0,this._c.push(r),this._a&&this._a.push(r),this._s&&notify(this,!1),r.promise},catch:function(e){return this.then(void 0,e)}}),OwnPromiseCapability=function(){var e=new Internal;this.promise=e,this.resolve=ctx($resolve,e,1),this.reject=ctx($reject,e,1)},newPromiseCapability.f=newPromiseCapability$1=function(e){return e===$Promise||e===Wrapper?new OwnPromiseCapability(e):newGenericPromiseCapability(e)}),$export$1($export$1.G+$export$1.W+$export$1.F*!USE_NATIVE$1,{Promise:$Promise}),setToStringTag($Promise,PROMISE),require$$2$3(PROMISE),Wrapper=require$$1$2[PROMISE],$export$1($export$1.S+$export$1.F*!USE_NATIVE$1,PROMISE,{reject:function(e){var t=newPromiseCapability$1(this);return(0,t.reject)(e),t.promise}}),$export$1($export$1.S+$export$1.F*(require$$0||!USE_NATIVE$1),PROMISE,{resolve:function(e){return promiseResolve(require$$0&&this===Wrapper?$Promise:this,e)}}),$export$1($export$1.S+$export$1.F*!(USE_NATIVE$1&&require$$33(function(e){$Promise.all(e).catch(empty)})),PROMISE,{all:function(e){var t=this,r=newPromiseCapability$1(t),n=r.resolve,o=r.reject,i=perform(function(){var r=[],i=0,a=1;forOf(e,!1,function(e){var s=i++,c=!1;r.push(void 0),a++,t.resolve(e).then(function(e){c||(c=!0,r[s]=e,--a||n(r))},o)}),--a||n(r)});return i.e&&o(i.v),r.promise},race:function(e){var t=this,r=newPromiseCapability$1(t),n=r.reject,o=perform(function(){forOf(e,!1,function(e){t.resolve(e).then(r.resolve,n)})});return o.e&&n(o.v),r.promise}});var _validateCollection=function(e,t){if(!isObject(e)||e._t!==t)throw TypeError("Incompatible receiver, "+t+" required!");return e},_validateCollection$1={default:_validateCollection,__moduleExports:_validateCollection},validate=_validateCollection$1&&_validateCollection||_validateCollection$1,dP$5=$defineProperty.f,fastKey=meta.fastKey,SIZE=require$$1$1?"_s":"size",getEntry=function(e,t){var r,n=fastKey(t);if("F"!==n)return e._i[n];for(r=e._f;r;r=r.n)if(r.k==t)return r},_collectionStrong={getConstructor:function(e,t,r,n){var o=e(function(e,i){anInstance(e,o,t,"_i"),e._t=t,e._i=create(null),e._f=void 0,e._l=void 0,e[SIZE]=0,null!=i&&forOf(i,r,e[n],e)});return redefineAll(o.prototype,{clear:function(){for(var e=validate(this,t),r=e._i,n=e._f;n;n=n.n)n.r=!0,n.p&&(n.p=n.p.n=void 0),delete r[n.i];e._f=e._l=void 0,e[SIZE]=0},delete:function(e){var r=validate(this,t),n=getEntry(r,e);if(n){var o=n.n,i=n.p;delete r._i[n.i],n.r=!0,i&&(i.n=o),o&&(o.p=i),r._f==n&&(r._f=o),r._l==n&&(r._l=i),r[SIZE]--}return!!n},forEach:function(e){validate(this,t);for(var r,n=ctx(e,arguments.length>1?arguments[1]:void 0,3);r=r?r.n:this._f;)for(n(r.v,r.k,this);r&&r.r;)r=r.p},has:function(e){return!!getEntry(validate(this,t),e)}}),require$$1$1&&dP$5(o.prototype,"size",{get:function(){return validate(this,t)[SIZE]}}),o},def:function(e,t,r){var n,o,i=getEntry(e,t);return i?i.v=r:(e._l=i={i:o=fastKey(t,!0),k:t,v:r,p:n=e._l,n:void 0,r:!1},e._f||(e._f=i),n&&(n.n=i),e[SIZE]++,"F"!==o&&(e._i[o]=i)),e},getEntry:getEntry,setStrong:function(e,t,r){$iterDefine(e,t,function(e,r){this._t=validate(e,t),this._k=r,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?step(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,step(1))},r?"entries":"values",!r,!0),require$$2$3(t)}},_collectionStrong_1=_collectionStrong.getConstructor,_collectionStrong_2=_collectionStrong.def,_collectionStrong_3=_collectionStrong.getEntry,_collectionStrong_4=_collectionStrong.setStrong,_collectionStrong$1={default:_collectionStrong,__moduleExports:_collectionStrong,getConstructor:_collectionStrong_1,def:_collectionStrong_2,getEntry:_collectionStrong_3,setStrong:_collectionStrong_4},_collection=function(e,t,r,n,o,i){var a=global$1[e],s=a,c=o?"set":"add",u=s&&s.prototype,l={},p=function(e){var t=u[e];redefine(u,e,"delete"==e?function(e){return!(i&&!isObject(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(i&&!isObject(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return i&&!isObject(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 s&&(i||u.forEach&&!require$$1(function(){(new s).entries().next()}))){var f=new s,h=f[c](i?{}:-0,1)!=f,_=require$$1(function(){f.has(1)}),d=require$$33(function(e){new s(e)}),b=!i&&require$$1(function(){for(var e=new s,t=5;t--;)e[c](t,t);return!e.has(-0)});d||((s=t(function(t,r){anInstance(t,s,e);var n=inheritIfRequired(new a,t,s);return null!=r&&forOf(r,o,n[c],n),n})).prototype=u,u.constructor=s),(_||b)&&(p("delete"),p("has"),o&&p("get")),(b||h)&&p(c),i&&u.clear&&delete u.clear}else s=n.getConstructor(t,e,o,c),redefineAll(s.prototype,r),meta.NEED=!0;return setToStringTag(s,e),l[e]=s,$export$1($export$1.G+$export$1.W+$export$1.F*(s!=a),l),i||n.setStrong(s,e,o),s},_collection$1={default:_collection,__moduleExports:_collection},strong=_collectionStrong$1&&_collectionStrong||_collectionStrong$1,require$$0$k=_collection$1&&_collection||_collection$1,MAP="Map",es6_map=require$$0$k(MAP,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=strong.getEntry(validate(this,MAP),e);return t&&t.v},set:function(e,t){return strong.def(validate(this,MAP),0===e?0:e,t)}},strong,!0),es6_map$1={default:es6_map,__moduleExports:es6_map},SET="Set",es6_set=require$$0$k(SET,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return strong.def(validate(this,SET),e=0===e?0:e,e)}},strong),es6_set$1={default:es6_set,__moduleExports:es6_set},getWeak=meta.getWeak,arrayFind=require$$28(5),arrayFindIndex=require$$28(6),id$1=0,uncaughtFrozenStore=function(e){return e._l||(e._l=new UncaughtFrozenStore)},UncaughtFrozenStore=function(){this.a=[]},findUncaughtFrozen=function(e,t){return arrayFind(e.a,function(e){return e[0]===t})};UncaughtFrozenStore.prototype={get:function(e){var t=findUncaughtFrozen(this,e);if(t)return t[1]},has:function(e){return!!findUncaughtFrozen(this,e)},set:function(e,t){var r=findUncaughtFrozen(this,e);r?r[1]=t:this.a.push([e,t])},delete:function(e){var t=arrayFindIndex(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}};var _collectionWeak={getConstructor:function(e,t,r,n){var o=e(function(e,i){anInstance(e,o,t,"_i"),e._t=t,e._i=id$1++,e._l=void 0,null!=i&&forOf(i,r,e[n],e)});return redefineAll(o.prototype,{delete:function(e){if(!isObject(e))return!1;var r=getWeak(e);return!0===r?uncaughtFrozenStore(validate(this,t)).delete(e):r&&has(r,this._i)&&delete r[this._i]},has:function(e){if(!isObject(e))return!1;var r=getWeak(e);return!0===r?uncaughtFrozenStore(validate(this,t)).has(e):r&&has(r,this._i)}}),o},def:function(e,t,r){var n=getWeak(anObject(t),!0);return!0===n?uncaughtFrozenStore(e).set(t,r):n[e._i]=r,e},ufstore:uncaughtFrozenStore},_collectionWeak_1=_collectionWeak.getConstructor,_collectionWeak_2=_collectionWeak.def,_collectionWeak_3=_collectionWeak.ufstore,_collectionWeak$1={default:_collectionWeak,__moduleExports:_collectionWeak,getConstructor:_collectionWeak_1,def:_collectionWeak_2,ufstore:_collectionWeak_3},weak=_collectionWeak$1&&_collectionWeak||_collectionWeak$1,es6_weakMap=createCommonjsModule(function(e){var t,r=require$$28(0),n=validate,o=!global$1.ActiveXObject&&"ActiveXObject"in global$1,i=meta.getWeak,a=Object.isExtensible,s=weak.ufstore,c=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},u={get:function(e){if(isObject(e)){var t=i(e);return!0===t?s(validate(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return weak.def(validate(this,"WeakMap"),e,t)}},l=e.exports=require$$0$k("WeakMap",c,u,weak,!0,!0);n&&o&&(t=weak.getConstructor(c,"WeakMap"),assign(t.prototype,u),meta.NEED=!0,r(["delete","has","get","set"],function(e){var r=l.prototype,n=r[e];redefine(r,e,function(r,o){if(isObject(r)&&!a(r)){this._f||(this._f=new t);var i=this._f[e](r,o);return"set"==e?this:i}return n.call(this,r,o)})}))}),es6_weakMap$1={default:es6_weakMap,__moduleExports:es6_weakMap},WEAK_SET="WeakSet";require$$0$k(WEAK_SET,function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return weak.def(validate(this,WEAK_SET),e,!0)}},weak,!1,!0);for(var TYPED=require$$26("typed_array"),VIEW=require$$26("view"),ABV=!(!global$1.ArrayBuffer||!global$1.DataView),CONSTR=ABV,i$1=0,l=9,Typed,TypedArrayConstructors="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");i$1<l;)(Typed=global$1[TypedArrayConstructors[i$1++]])?(hide(Typed.prototype,TYPED,!0),hide(Typed.prototype,VIEW,!0)):CONSTR=!1;var _typed={ABV:ABV,CONSTR:CONSTR,TYPED:TYPED,VIEW:VIEW},_typed_1=_typed.ABV,_typed_2=_typed.CONSTR,_typed_3=_typed.TYPED,_typed_4=_typed.VIEW,_typed$1={default:_typed,__moduleExports:_typed,ABV:_typed_1,CONSTR:_typed_2,TYPED:_typed_3,VIEW:_typed_4},_toIndex=function(e){if(void 0===e)return 0;var t=toInteger(e),r=toLength(t);if(t!==r)throw RangeError("Wrong length!");return r},_toIndex$1={default:_toIndex,__moduleExports:_toIndex},require$$5=_typed$1&&_typed||_typed$1,require$$14=_toIndex$1&&_toIndex||_toIndex$1,_typedBuffer=createCommonjsModule(function(e,t){var r=gOPN.f,n=$defineProperty.f,o="prototype",i="Wrong index!",a=global$1.ArrayBuffer,s=global$1.DataView,c=global$1.Math,u=global$1.RangeError,l=global$1.Infinity,p=a,f=c.abs,h=c.pow,_=c.floor,d=c.log,b=c.LN2,y=require$$1$1?"_b":"buffer",m=require$$1$1?"_l":"byteLength",$=require$$1$1?"_o":"byteOffset";function v(e,t,r){var n,o,i,a=new Array(r),s=8*r-t-1,c=(1<<s)-1,u=c>>1,p=23===t?h(2,-24)-h(2,-77):0,y=0,m=e<0||0===e&&1/e<0?1:0;for((e=f(e))!=e||e===l?(o=e!=e?1:0,n=c):(n=_(d(e)/b),e*(i=h(2,-n))<1&&(n--,i*=2),(e+=n+u>=1?p/i:p*h(2,1-u))*i>=2&&(n++,i/=2),n+u>=c?(o=0,n=c):n+u>=1?(o=(e*i-1)*h(2,t),n+=u):(o=e*h(2,u-1)*h(2,t),n=0));t>=8;a[y++]=255&o,o/=256,t-=8);for(n=n<<t|o,s+=t;s>0;a[y++]=255&n,n/=256,s-=8);return a[--y]|=128*m,a}function g(e,t,r){var n,o=8*r-t-1,i=(1<<o)-1,a=i>>1,s=o-7,c=r-1,u=e[c--],p=127&u;for(u>>=7;s>0;p=256*p+e[c],c--,s-=8);for(n=p&(1<<-s)-1,p>>=-s,s+=t;s>0;n=256*n+e[c],c--,s-=8);if(0===p)p=1-a;else{if(p===i)return n?NaN:u?-l:l;n+=h(2,t),p-=a}return(u?-1:1)*n*h(2,p-t)}function E(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function S(e){return[255&e]}function O(e){return[255&e,e>>8&255]}function x(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function w(e){return v(e,52,8)}function T(e){return v(e,23,4)}function A(e,t,r){n(e[o],t,{get:function(){return this[r]}})}function C(e,t,r,n){var o=require$$14(+r);if(o+t>e[m])throw u(i);var a=e[y]._b,s=o+e[$],c=a.slice(s,s+t);return n?c:c.reverse()}function I(e,t,r,n,o,a){var s=require$$14(+r);if(s+t>e[m])throw u(i);for(var c=e[y]._b,l=s+e[$],p=n(+o),f=0;f<t;f++)c[l+f]=p[a?f:t-f-1]}if(require$$5.ABV){if(!require$$1(function(){a(1)})||!require$$1(function(){new a(-1)})||require$$1(function(){return new a,new a(1.5),new a(NaN),"ArrayBuffer"!=a.name})){for(var P,j=(a=function(e){return anInstance(this,a),new p(require$$14(e))})[o]=p[o],R=r(p),k=0;R.length>k;)(P=R[k++])in a||hide(a,P,p[P]);require$$0||(j.constructor=a)}var M=new s(new a(2)),N=s[o].setInt8;M.setInt8(0,2147483648),M.setInt8(1,2147483649),!M.getInt8(0)&&M.getInt8(1)||redefineAll(s[o],{setInt8:function(e,t){N.call(this,e,t<<24>>24)},setUint8:function(e,t){N.call(this,e,t<<24>>24)}},!0)}else a=function(e){anInstance(this,a,"ArrayBuffer");var t=require$$14(e);this._b=require$$35.call(new Array(t),0),this[m]=t},s=function(e,t,r){anInstance(this,s,"DataView"),anInstance(e,a,"DataView");var n=e[m],o=toInteger(t);if(o<0||o>n)throw u("Wrong offset!");if(o+(r=void 0===r?n-o:toLength(r))>n)throw u("Wrong length!");this[y]=e,this[$]=o,this[m]=r},require$$1$1&&(A(a,"byteLength","_l"),A(s,"buffer","_b"),A(s,"byteLength","_l"),A(s,"byteOffset","_o")),redefineAll(s[o],{getInt8:function(e){return C(this,1,e)[0]<<24>>24},getUint8:function(e){return C(this,1,e)[0]},getInt16:function(e){var t=C(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=C(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return E(C(this,4,e,arguments[1]))},getUint32:function(e){return E(C(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return g(C(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return g(C(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){I(this,1,e,S,t)},setUint8:function(e,t){I(this,1,e,S,t)},setInt16:function(e,t){I(this,2,e,O,t,arguments[2])},setUint16:function(e,t){I(this,2,e,O,t,arguments[2])},setInt32:function(e,t){I(this,4,e,x,t,arguments[2])},setUint32:function(e,t){I(this,4,e,x,t,arguments[2])},setFloat32:function(e,t){I(this,4,e,T,t,arguments[2])},setFloat64:function(e,t){I(this,8,e,w,t,arguments[2])}});setToStringTag(a,"ArrayBuffer"),setToStringTag(s,"DataView"),hide(s[o],require$$5.VIEW,!0),t.ArrayBuffer=a,t.DataView=s}),_typedBuffer$1={default:_typedBuffer,__moduleExports:_typedBuffer},require$$6=_typedBuffer$1&&_typedBuffer||_typedBuffer$1,ArrayBuffer$1=global$1.ArrayBuffer,$ArrayBuffer=require$$6.ArrayBuffer,$DataView=require$$6.DataView,$isView=require$$5.ABV&&ArrayBuffer$1.isView,$slice=$ArrayBuffer.prototype.slice,VIEW$1=require$$5.VIEW,ARRAY_BUFFER="ArrayBuffer";$export$1($export$1.G+$export$1.W+$export$1.F*(ArrayBuffer$1!==$ArrayBuffer),{ArrayBuffer:$ArrayBuffer}),$export$1($export$1.S+$export$1.F*!require$$5.CONSTR,ARRAY_BUFFER,{isView:function(e){return $isView&&$isView(e)||isObject(e)&&VIEW$1 in e}}),$export$1($export$1.P+$export$1.U+$export$1.F*require$$1(function(){return!new $ArrayBuffer(2).slice(1,void 0).byteLength}),ARRAY_BUFFER,{slice:function(e,t){if(void 0!==$slice&&void 0===t)return $slice.call(anObject(this),e);for(var r=anObject(this).byteLength,n=require$$15(e,r),o=require$$15(void 0===t?r:t,r),i=new(speciesConstructor$1(this,$ArrayBuffer))(toLength(o-n)),a=new $DataView(this),s=new $DataView(i),c=0;n<o;)s.setUint8(c++,a.getUint8(n++));return i}}),require$$2$3(ARRAY_BUFFER),$export$1($export$1.G+$export$1.W+$export$1.F*!require$$5.ABV,{DataView:require$$6.DataView});var $iterators=es6_array_iterator$1&&es6_array_iterator||es6_array_iterator$1,_typedArray=createCommonjsModule(function(e){if(require$$1$1){var t=require$$0,r=global$1,n=require$$1,o=$export$1,i=require$$5,a=require$$6,s=ctx,c=anInstance,u=createDesc,l=hide,p=redefineAll,f=toInteger,h=toLength,_=require$$14,d=require$$15,b=toPrimitive,y=has,m=classof,$=isObject,v=toObject,g=require$$21,E=create,S=getPrototypeOf,O=gOPN.f,x=require$$25,w=require$$26,T=wks,A=require$$28,C=require$$0$2,I=speciesConstructor$1,P=$iterators,j=Iterators,R=require$$33,k=require$$2$3,M=require$$35,N=require$$36,L=$defineProperty,F=require$$0$7,D=L.f,B=F.f,U=r.RangeError,W=r.TypeError,G=r.Uint8Array,q=Array.prototype,z=a.ArrayBuffer,V=a.DataView,K=A(0),H=A(2),Y=A(3),X=A(4),J=A(5),Z=A(6),Q=C(!0),ee=C(!1),te=P.values,re=P.keys,ne=P.entries,oe=q.lastIndexOf,ie=q.reduce,ae=q.reduceRight,se=q.join,ce=q.sort,ue=q.slice,le=q.toString,pe=q.toLocaleString,fe=T("iterator"),he=T("toStringTag"),_e=w("typed_constructor"),de=w("def_constructor"),be=i.CONSTR,ye=i.TYPED,me=i.VIEW,$e=A(1,function(e,t){return Oe(I(e,e[de]),t)}),ve=n(function(){return 1===new G(new Uint16Array([1]).buffer)[0]}),ge=!!G&&!!G.prototype.set&&n(function(){new G(1).set({})}),Ee=function(e,t){var r=f(e);if(r<0||r%t)throw U("Wrong offset!");return r},Se=function(e){if($(e)&&ye in e)return e;throw W(e+" is not a typed array!")},Oe=function(e,t){if(!($(e)&&_e in e))throw W("It is not a typed array constructor!");return new e(t)},xe=function(e,t){return we(I(e,e[de]),t)},we=function(e,t){for(var r=0,n=t.length,o=Oe(e,n);n>r;)o[r]=t[r++];return o},Te=function(e,t,r){D(e,t,{get:function(){return this._d[r]}})},Ae=function(e){var t,r,n,o,i,a,c=v(e),u=arguments.length,l=u>1?arguments[1]:void 0,p=void 0!==l,f=x(c);if(null!=f&&!g(f)){for(a=f.call(c),n=[],t=0;!(i=a.next()).done;t++)n.push(i.value);c=n}for(p&&u>2&&(l=s(l,arguments[2],2)),t=0,r=h(c.length),o=Oe(this,r);r>t;t++)o[t]=p?l(c[t],t):c[t];return o},Ce=function(){for(var e=0,t=arguments.length,r=Oe(this,t);t>e;)r[e]=arguments[e++];return r},Ie=!!G&&n(function(){pe.call(new G(1))}),Pe=function(){return pe.apply(Ie?ue.call(Se(this)):Se(this),arguments)},je={copyWithin:function(e,t){return N.call(Se(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return X(Se(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return M.apply(Se(this),arguments)},filter:function(e){return xe(this,H(Se(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return J(Se(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return Z(Se(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){K(Se(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ee(Se(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return Q(Se(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return se.apply(Se(this),arguments)},lastIndexOf:function(e){return oe.apply(Se(this),arguments)},map:function(e){return $e(Se(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ie.apply(Se(this),arguments)},reduceRight:function(e){return ae.apply(Se(this),arguments)},reverse:function(){for(var e,t=Se(this).length,r=Math.floor(t/2),n=0;n<r;)e=this[n],this[n++]=this[--t],this[t]=e;return this},some:function(e){return Y(Se(this),e,arguments.length>1?arguments[1]:void 0)},sort:function(e){return ce.call(Se(this),e)},subarray:function(e,t){var r=Se(this),n=r.length,o=d(e,n);return new(I(r,r[de]))(r.buffer,r.byteOffset+o*r.BYTES_PER_ELEMENT,h((void 0===t?n:d(t,n))-o))}},Re=function(e,t){return xe(this,ue.call(Se(this),e,t))},ke=function(e){Se(this);var t=Ee(arguments[1],1),r=this.length,n=v(e),o=h(n.length),i=0;if(o+t>r)throw U("Wrong length!");for(;i<o;)this[t+i]=n[i++]},Me={entries:function(){return ne.call(Se(this))},keys:function(){return re.call(Se(this))},values:function(){return te.call(Se(this))}},Ne=function(e,t){return $(e)&&e[ye]&&"symbol"!=(void 0===t?"undefined":_typeof(t))&&t in e&&String(+t)==String(t)},Le=function(e,t){return Ne(e,t=b(t,!0))?u(2,e[t]):B(e,t)},Fe=function(e,t,r){return!(Ne(e,t=b(t,!0))&&$(r)&&y(r,"value"))||y(r,"get")||y(r,"set")||r.configurable||y(r,"writable")&&!r.writable||y(r,"enumerable")&&!r.enumerable?D(e,t,r):(e[t]=r.value,e)};be||(F.f=Le,L.f=Fe),o(o.S+o.F*!be,"Object",{getOwnPropertyDescriptor:Le,defineProperty:Fe}),n(function(){le.call({})})&&(le=pe=function(){return se.call(this)});var De=p({},je);p(De,Me),l(De,fe,Me.values),p(De,{slice:Re,set:ke,constructor:function(){},toString:le,toLocaleString:Pe}),Te(De,"buffer","b"),Te(De,"byteOffset","o"),Te(De,"byteLength","l"),Te(De,"length","e"),D(De,he,{get:function(){return this[ye]}}),e.exports=function(e,a,s,u){var p=e+((u=!!u)?"Clamped":"")+"Array",f="get"+e,d="set"+e,b=r[p],y=b||{},v=b&&S(b),g=!b||!i.ABV,x={},w=b&&b.prototype,T=function(e,t){D(e,t,{get:function(){return function(e,t){var r=e._d;return r.v[f](t*a+r.o,ve)}(this,t)},set:function(e){return function(e,t,r){var n=e._d;u&&(r=(r=Math.round(r))<0?0:r>255?255:255&r),n.v[d](t*a+n.o,r,ve)}(this,t,e)},enumerable:!0})};g?(b=s(function(e,t,r,n){c(e,b,p,"_d");var o,i,s,u,f=0,d=0;if($(t)){if(!(t instanceof z||"ArrayBuffer"==(u=m(t))||"SharedArrayBuffer"==u))return ye in t?we(b,t):Ae.call(b,t);o=t,d=Ee(r,a);var y=t.byteLength;if(void 0===n){if(y%a)throw U("Wrong length!");if((i=y-d)<0)throw U("Wrong length!")}else if((i=h(n)*a)+d>y)throw U("Wrong length!");s=i/a}else s=_(t),o=new z(i=s*a);for(l(e,"_d",{b:o,o:d,l:i,e:s,v:new V(o)});f<s;)T(e,f++)}),w=b.prototype=E(De),l(w,"constructor",b)):n(function(){b(1)})&&n(function(){new b(-1)})&&R(function(e){new b,new b(null),new b(1.5),new b(e)},!0)||(b=s(function(e,t,r,n){var o;return c(e,b,p),$(t)?t instanceof z||"ArrayBuffer"==(o=m(t))||"SharedArrayBuffer"==o?void 0!==n?new y(t,Ee(r,a),n):void 0!==r?new y(t,Ee(r,a)):new y(t):ye in t?we(b,t):Ae.call(b,t):new y(_(t))}),K(v!==Function.prototype?O(y).concat(O(v)):O(y),function(e){e in b||l(b,e,y[e])}),b.prototype=w,t||(w.constructor=b));var A=w[fe],C=!!A&&("values"==A.name||null==A.name),I=Me.values;l(b,_e,!0),l(w,ye,p),l(w,me,!0),l(w,de,b),(u?new b(1)[he]==p:he in w)||D(w,he,{get:function(){return p}}),x[p]=b,o(o.G+o.W+o.F*(b!=y),x),o(o.S,p,{BYTES_PER_ELEMENT:a}),o(o.S+o.F*n(function(){y.of.call(b,1)}),p,{from:Ae,of:Ce}),"BYTES_PER_ELEMENT"in w||l(w,"BYTES_PER_ELEMENT",a),o(o.P,p,je),k(p),o(o.P+o.F*ge,p,{set:ke}),o(o.P+o.F*!C,p,Me),t||w.toString==le||(w.toString=le),o(o.P+o.F*n(function(){new b(1).slice()}),p,{slice:Re}),o(o.P+o.F*(n(function(){return[1,2].toLocaleString()!=new b([1,2]).toLocaleString()})||!n(function(){w.toLocaleString.call([1,2])})),p,{toLocaleString:Pe}),j[p]=C?A:I,t||C||l(w,fe,I)}}else e.exports=function(){}}),_typedArray$1={default:_typedArray,__moduleExports:_typedArray},require$$0$l=_typedArray$1&&_typedArray||_typedArray$1;require$$0$l("Int8",1,function(e){return function(t,r,n){return e(this,t,r,n)}}),require$$0$l("Uint8",1,function(e){return function(t,r,n){return e(this,t,r,n)}}),require$$0$l("Uint8",1,function(e){return function(t,r,n){return e(this,t,r,n)}},!0),require$$0$l("Int16",2,function(e){return function(t,r,n){return e(this,t,r,n)}}),require$$0$l("Uint16",2,function(e){return function(t,r,n){return e(this,t,r,n)}}),require$$0$l("Int32",4,function(e){return function(t,r,n){return e(this,t,r,n)}}),require$$0$l("Uint32",4,function(e){return function(t,r,n){return e(this,t,r,n)}}),require$$0$l("Float32",4,function(e){return function(t,r,n){return e(this,t,r,n)}}),require$$0$l("Float64",8,function(e){return function(t,r,n){return e(this,t,r,n)}});var rApply=(global$1.Reflect||{}).apply,fApply=Function.apply;$export$1($export$1.S+$export$1.F*!require$$1(function(){rApply(function(){})}),"Reflect",{apply:function(e,t,r){var n=aFunction(e),o=anObject(r);return rApply?rApply(n,t,o):fApply.call(n,t,o)}});var rConstruct=(global$1.Reflect||{}).construct,NEW_TARGET_BUG=require$$1(function(){function e(){}return!(rConstruct(function(){},[],e)instanceof e)}),ARGS_BUG=!require$$1(function(){rConstruct(function(){})});$export$1($export$1.S+$export$1.F*(NEW_TARGET_BUG||ARGS_BUG),"Reflect",{construct:function(e,t){aFunction(e),anObject(t);var r=arguments.length<3?e:aFunction(arguments[2]);if(ARGS_BUG&&!NEW_TARGET_BUG)return rConstruct(e,t,r);if(e==r){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var n=[null];return n.push.apply(n,t),new(bind.apply(e,n))}var o=r.prototype,i=create(isObject(o)?o:Object.prototype),a=Function.apply.call(e,i,t);return isObject(a)?a:i}}),$export$1($export$1.S+$export$1.F*require$$1(function(){Reflect.defineProperty($defineProperty.f({},1,{value:1}),1,{value:2})}),"Reflect",{defineProperty:function(e,t,r){anObject(e),t=toPrimitive(t,!0),anObject(r);try{return $defineProperty.f(e,t,r),!0}catch(e){return!1}}});var gOPD$3=require$$0$7.f;$export$1($export$1.S,"Reflect",{deleteProperty:function(e,t){var r=gOPD$3(anObject(e),t);return!(r&&!r.configurable)&&delete e[t]}});var Enumerate=function(e){this._t=anObject(e),this._i=0;var t,r=this._k=[];for(t in e)r.push(t)};function get$1(e,t){var r,n,o=arguments.length<3?e:arguments[2];return anObject(e)===o?e[t]:(r=require$$0$7.f(e,t))?has(r,"value")?r.value:void 0!==r.get?r.get.call(o):void 0:isObject(n=getPrototypeOf(e))?get$1(n,t,o):void 0}require$$0$c(Enumerate,"Object",function(){var e,t=this._k;do{if(this._i>=t.length)return{value:void 0,done:!0}}while(!((e=t[this._i++])in this._t));return{value:e,done:!1}}),$export$1($export$1.S,"Reflect",{enumerate:function(e){return new Enumerate(e)}}),$export$1($export$1.S,"Reflect",{get:get$1}),$export$1($export$1.S,"Reflect",{getOwnPropertyDescriptor:function(e,t){return require$$0$7.f(anObject(e),t)}}),$export$1($export$1.S,"Reflect",{getPrototypeOf:function(e){return getPrototypeOf(anObject(e))}}),$export$1($export$1.S,"Reflect",{has:function(e,t){return t in e}});var $isExtensible=Object.isExtensible;$export$1($export$1.S,"Reflect",{isExtensible:function(e){return anObject(e),!$isExtensible||$isExtensible(e)}});var Reflect$1=global$1.Reflect,_ownKeys=Reflect$1&&Reflect$1.ownKeys||function(e){var t=gOPN.f(anObject(e)),r=gOPS.f;return r?t.concat(r(e)):t},_ownKeys$1={default:_ownKeys,__moduleExports:_ownKeys},ownKeys=_ownKeys$1&&_ownKeys||_ownKeys$1;$export$1($export$1.S,"Reflect",{ownKeys:ownKeys});var $preventExtensions=Object.preventExtensions;function set(e,t,r){var n,o,i=arguments.length<4?e:arguments[3],a=require$$0$7.f(anObject(e),t);if(!a){if(isObject(o=getPrototypeOf(e)))return set(o,t,r,i);a=createDesc(0)}if(has(a,"value")){if(!1===a.writable||!isObject(i))return!1;if(n=require$$0$7.f(i,t)){if(n.get||n.set||!1===n.writable)return!1;n.value=r,$defineProperty.f(i,t,n)}else $defineProperty.f(i,t,createDesc(0,r));return!0}return void 0!==a.set&&(a.set.call(i,r),!0)}$export$1($export$1.S,"Reflect",{preventExtensions:function(e){anObject(e);try{return $preventExtensions&&$preventExtensions(e),!0}catch(e){return!1}}}),$export$1($export$1.S,"Reflect",{set:set}),setProto&&$export$1($export$1.S,"Reflect",{setPrototypeOf:function(e,t){setProto.check(e,t);try{return setProto.set(e,t),!0}catch(e){return!1}}});var $includes=require$$0$2(!0);$export$1($export$1.P,"Array",{includes:function(e){return $includes(this,e,arguments.length>1?arguments[1]:void 0)}}),require$$0$h("includes");var IS_CONCAT_SPREADABLE=wks("isConcatSpreadable");function flattenIntoArray(e,t,r,n,o,i,a,s){for(var c,u,l=o,p=0,f=!!a&&ctx(a,s,3);p<n;){if(p in r){if(c=f?f(r[p],p,t):r[p],u=!1,isObject(c)&&(u=void 0!==(u=c[IS_CONCAT_SPREADABLE])?!!u:isArray(c)),u&&i>0)l=flattenIntoArray(e,t,c,toLength(c.length),l,i-1)-1;else{if(l>=9007199254740991)throw TypeError();e[l]=c}l++}p++}return l}var _flattenIntoArray=flattenIntoArray,_flattenIntoArray$1={default:_flattenIntoArray,__moduleExports:_flattenIntoArray},flattenIntoArray$1=_flattenIntoArray$1&&_flattenIntoArray||_flattenIntoArray$1;$export$1($export$1.P,"Array",{flatMap:function(e){var t,r,n=toObject(this);return aFunction(e),t=toLength(n.length),r=arraySpeciesCreate(n,0),flattenIntoArray$1(r,n,n,t,0,1,e,arguments[1]),r}}),require$$0$h("flatMap"),$export$1($export$1.P,"Array",{flatten:function(){var e=arguments[0],t=toObject(this),r=toLength(t.length),n=arraySpeciesCreate(t,0);return flattenIntoArray$1(n,t,t,r,0,void 0===e?1:toInteger(e)),n}}),require$$0$h("flatten");var $at$2=require$$0$d(!0);$export$1($export$1.P,"String",{at:function(e){return $at$2(this,e)}});var _stringPad=function(e,t,r,n){var o=String(defined(e)),i=o.length,a=void 0===r?" ":String(r),s=toLength(t);if(s<=i||""==a)return o;var c=s-i,u=repeat.call(a,Math.ceil(c/a.length));return u.length>c&&(u=u.slice(0,c)),n?u+o:o+u},_stringPad$1={default:_stringPad,__moduleExports:_stringPad},$pad=_stringPad$1&&_stringPad||_stringPad$1,WEBKIT_BUG=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);$export$1($export$1.P+$export$1.F*WEBKIT_BUG,"String",{padStart:function(e){return $pad(this,e,arguments.length>1?arguments[1]:void 0,!0)}});var WEBKIT_BUG$1=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(userAgent);$export$1($export$1.P+$export$1.F*WEBKIT_BUG$1,"String",{padEnd:function(e){return $pad(this,e,arguments.length>1?arguments[1]:void 0,!1)}}),require$$0$9("trimLeft",function(e){return function(){return e(this,1)}},"trimStart"),require$$0$9("trimRight",function(e){return function(){return e(this,2)}},"trimEnd");var RegExpProto=RegExp.prototype,$RegExpStringIterator=function(e,t){this._r=e,this._s=t};require$$0$c($RegExpStringIterator,"RegExp String",function(){var e=this._r.exec(this._s);return{value:e,done:null===e}}),$export$1($export$1.P,"String",{matchAll:function(e){if(defined(this),!isRegExp(e))throw TypeError(e+" is not a regexp!");var t=String(this),r="flags"in RegExpProto?String(e.flags):getFlags.call(e),n=new RegExp(e.source,~r.indexOf("g")?r:"g"+r);return n.lastIndex=toLength(e.lastIndex),new $RegExpStringIterator(n,t)}}),require$$0$6("asyncIterator"),require$$0$6("observable"),$export$1($export$1.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,r,n=toIObject(e),o=require$$0$7.f,i=ownKeys(n),a={},s=0;i.length>s;)void 0!==(r=o(n,t=i[s++]))&&createProperty(a,t,r);return a}});var isEnum$1=require$$0$5.f,_objectToArray=function(e){return function(t){for(var r,n=toIObject(t),o=getKeys(n),i=o.length,a=0,s=[];i>a;)r=o[a++],require$$1$1&&!isEnum$1.call(n,r)||s.push(e?[r,n[r]]:n[r]);return s}},_objectToArray$1={default:_objectToArray,__moduleExports:_objectToArray},require$$0$m=_objectToArray$1&&_objectToArray||_objectToArray$1,$values=require$$0$m(!1);$export$1($export$1.S,"Object",{values:function(e){return $values(e)}});var $entries=require$$0$m(!0);$export$1($export$1.S,"Object",{entries:function(e){return $entries(e)}});var _objectForcedPam=require$$0||!require$$1(function(){var e=Math.random();__defineSetter__.call(null,e,function(){}),delete global$1[e]}),_objectForcedPam$1={default:_objectForcedPam,__moduleExports:_objectForcedPam},require$$2$4=_objectForcedPam$1&&_objectForcedPam||_objectForcedPam$1;require$$1$1&&$export$1($export$1.P+require$$2$4,"Object",{__defineGetter__:function(e,t){$defineProperty.f(toObject(this),e,{get:aFunction(t),enumerable:!0,configurable:!0})}}),require$$1$1&&$export$1($export$1.P+require$$2$4,"Object",{__defineSetter__:function(e,t){$defineProperty.f(toObject(this),e,{set:aFunction(t),enumerable:!0,configurable:!0})}});var getOwnPropertyDescriptor=require$$0$7.f;require$$1$1&&$export$1($export$1.P+require$$2$4,"Object",{__lookupGetter__:function(e){var t,r=toObject(this),n=toPrimitive(e,!0);do{if(t=getOwnPropertyDescriptor(r,n))return t.get}while(r=getPrototypeOf(r))}});var getOwnPropertyDescriptor$1=require$$0$7.f;require$$1$1&&$export$1($export$1.P+require$$2$4,"Object",{__lookupSetter__:function(e){var t,r=toObject(this),n=toPrimitive(e,!0);do{if(t=getOwnPropertyDescriptor$1(r,n))return t.set}while(r=getPrototypeOf(r))}});var _arrayFromIterable=function(e,t){var r=[];return forOf(e,!1,r.push,r,t),r},_arrayFromIterable$1={default:_arrayFromIterable,__moduleExports:_arrayFromIterable},from=_arrayFromIterable$1&&_arrayFromIterable||_arrayFromIterable$1,_collectionToJson=function(e){return function(){if(classof(this)!=e)throw TypeError(e+"#toJSON isn't generic");return from(this)}},_collectionToJson$1={default:_collectionToJson,__moduleExports:_collectionToJson},require$$0$n=_collectionToJson$1&&_collectionToJson||_collectionToJson$1;$export$1($export$1.P+$export$1.R,"Map",{toJSON:require$$0$n("Map")}),$export$1($export$1.P+$export$1.R,"Set",{toJSON:require$$0$n("Set")});var _setCollectionOf=function(e){$export$1($export$1.S,e,{of:function(){for(var e=arguments.length,t=new Array(e);e--;)t[e]=arguments[e];return new this(t)}})},_setCollectionOf$1={default:_setCollectionOf,__moduleExports:_setCollectionOf},require$$0$o=_setCollectionOf$1&&_setCollectionOf||_setCollectionOf$1;require$$0$o("Map"),require$$0$o("Set"),require$$0$o("WeakMap"),require$$0$o("WeakSet");var _setCollectionFrom=function(e){$export$1($export$1.S,e,{from:function(e){var t,r,n,o,i=arguments[1];return aFunction(this),(t=void 0!==i)&&aFunction(i),null==e?new this:(r=[],t?(n=0,o=ctx(i,arguments[2],2),forOf(e,!1,function(e){r.push(o(e,n++))})):forOf(e,!1,r.push,r),new this(r))}})},_setCollectionFrom$1={default:_setCollectionFrom,__moduleExports:_setCollectionFrom},require$$0$p=_setCollectionFrom$1&&_setCollectionFrom||_setCollectionFrom$1;require$$0$p("Map"),require$$0$p("Set"),require$$0$p("WeakMap"),require$$0$p("WeakSet"),$export$1($export$1.G,{global:global$1}),$export$1($export$1.S,"System",{global:global$1}),$export$1($export$1.S,"Error",{isError:function(e){return"Error"===require$$2(e)}}),$export$1($export$1.S,"Math",{clamp:function(e,t,r){return Math.min(r,Math.max(t,e))}}),$export$1($export$1.S,"Math",{DEG_PER_RAD:Math.PI/180});var RAD_PER_DEG=180/Math.PI;$export$1($export$1.S,"Math",{degrees:function(e){return e*RAD_PER_DEG}});var _mathScale=Math.scale||function(e,t,r,n,o){return 0===arguments.length||e!=e||t!=t||r!=r||n!=n||o!=o?NaN:e===1/0||e===-1/0?e:(e-t)*(o-n)/(r-t)+n},_mathScale$1={default:_mathScale,__moduleExports:_mathScale},require$$0$q=_mathScale$1&&_mathScale||_mathScale$1;$export$1($export$1.S,"Math",{fscale:function(e,t,r,n,o){return fround(require$$0$q(e,t,r,n,o))}}),$export$1($export$1.S,"Math",{iaddh:function(e,t,r,n){var o=e>>>0,i=r>>>0;return(t>>>0)+(n>>>0)+((o&i|(o|i)&~(o+i>>>0))>>>31)|0}}),$export$1($export$1.S,"Math",{isubh:function(e,t,r,n){var o=e>>>0,i=r>>>0;return(t>>>0)-(n>>>0)-((~o&i|~(o^i)&o-i>>>0)>>>31)|0}}),$export$1($export$1.S,"Math",{imulh:function(e,t){var r=+e,n=+t,o=65535&r,i=65535&n,a=r>>16,s=n>>16,c=(a*i>>>0)+(o*i>>>16);return a*s+(c>>16)+((o*s>>>0)+(65535&c)>>16)}}),$export$1($export$1.S,"Math",{RAD_PER_DEG:180/Math.PI});var DEG_PER_RAD=Math.PI/180;$export$1($export$1.S,"Math",{radians:function(e){return e*DEG_PER_RAD}}),$export$1($export$1.S,"Math",{scale:require$$0$q}),$export$1($export$1.S,"Math",{umulh:function(e,t){var r=+e,n=+t,o=65535&r,i=65535&n,a=r>>>16,s=n>>>16,c=(a*i>>>0)+(o*i>>>16);return a*s+(c>>>16)+((o*s>>>0)+(65535&c)>>>16)}}),$export$1($export$1.S,"Math",{signbit:function(e){return(e=+e)!=e?e:0==e?1/e==1/0:e>0}}),$export$1($export$1.P+$export$1.R,"Promise",{finally:function(e){var t=speciesConstructor$1(this,require$$1$2.Promise||global$1.Promise),r="function"==typeof e;return this.then(r?function(r){return promiseResolve(t,e()).then(function(){return r})}:e,r?function(r){return promiseResolve(t,e()).then(function(){throw r})}:e)}}),$export$1($export$1.S,"Promise",{try:function(e){var t=newPromiseCapability.f(this),r=perform(e);return(r.e?t.reject:t.resolve)(r.v),t.promise}});var Map=es6_map$1&&es6_map||es6_map$1,require$$1$5=es6_weakMap$1&&es6_weakMap||es6_weakMap$1,shared$1=require$$0$1("metadata"),store=shared$1.store||(shared$1.store=new require$$1$5),getOrCreateMetadataMap=function(e,t,r){var n=store.get(e);if(!n){if(!r)return;store.set(e,n=new Map)}var o=n.get(t);if(!o){if(!r)return;n.set(t,o=new Map)}return o},ordinaryHasOwnMetadata=function(e,t,r){var n=getOrCreateMetadataMap(t,r,!1);return void 0!==n&&n.has(e)},ordinaryGetOwnMetadata=function(e,t,r){var n=getOrCreateMetadataMap(t,r,!1);return void 0===n?void 0:n.get(e)},ordinaryDefineOwnMetadata=function(e,t,r,n){getOrCreateMetadataMap(r,n,!0).set(e,t)},ordinaryOwnMetadataKeys=function(e,t){var r=getOrCreateMetadataMap(e,t,!1),n=[];return r&&r.forEach(function(e,t){n.push(t)}),n},toMetaKey=function(e){return void 0===e||"symbol"==(void 0===e?"undefined":_typeof(e))?e:String(e)},exp$3=function(e){$export$1($export$1.S,"Reflect",e)},_metadata={store:store,map:getOrCreateMetadataMap,has:ordinaryHasOwnMetadata,get:ordinaryGetOwnMetadata,set:ordinaryDefineOwnMetadata,keys:ordinaryOwnMetadataKeys,key:toMetaKey,exp:exp$3},_metadata_1=_metadata.store,_metadata_2=_metadata.map,_metadata_3=_metadata.has,_metadata_4=_metadata.get,_metadata_5=_metadata.set,_metadata_6=_metadata.keys,_metadata_7=_metadata.key,_metadata_8=_metadata.exp,_metadata$1={default:_metadata,__moduleExports:_metadata,store:_metadata_1,map:_metadata_2,has:_metadata_3,get:_metadata_4,set:_metadata_5,keys:_metadata_6,key:_metadata_7,exp:_metadata_8},$metadata=_metadata$1&&_metadata||_metadata$1,toMetaKey$1=$metadata.key,ordinaryDefineOwnMetadata$1=$metadata.set;$metadata.exp({defineMetadata:function(e,t,r,n){ordinaryDefineOwnMetadata$1(e,t,anObject(r),toMetaKey$1(n))}});var toMetaKey$2=$metadata.key,getOrCreateMetadataMap$1=$metadata.map,store$1=$metadata.store;$metadata.exp({deleteMetadata:function(e,t){var r=arguments.length<3?void 0:toMetaKey$2(arguments[2]),n=getOrCreateMetadataMap$1(anObject(t),r,!1);if(void 0===n||!n.delete(e))return!1;if(n.size)return!0;var o=store$1.get(t);return o.delete(r),!!o.size||store$1.delete(t)}});var ordinaryHasOwnMetadata$1=$metadata.has,ordinaryGetOwnMetadata$1=$metadata.get,toMetaKey$3=$metadata.key,ordinaryGetMetadata=function e(t,r,n){if(ordinaryHasOwnMetadata$1(t,r,n))return ordinaryGetOwnMetadata$1(t,r,n);var o=getPrototypeOf(r);return null!==o?e(t,o,n):void 0};$metadata.exp({getMetadata:function(e,t){return ordinaryGetMetadata(e,anObject(t),arguments.length<3?void 0:toMetaKey$3(arguments[2]))}});var Set=es6_set$1&&es6_set||es6_set$1,ordinaryOwnMetadataKeys$1=$metadata.keys,toMetaKey$4=$metadata.key,ordinaryMetadataKeys=function e(t,r){var n=ordinaryOwnMetadataKeys$1(t,r),o=getPrototypeOf(t);if(null===o)return n;var i=e(o,r);return i.length?n.length?from(new Set(n.concat(i))):i:n};$metadata.exp({getMetadataKeys:function(e){return ordinaryMetadataKeys(anObject(e),arguments.length<2?void 0:toMetaKey$4(arguments[1]))}});var ordinaryGetOwnMetadata$2=$metadata.get,toMetaKey$5=$metadata.key;$metadata.exp({getOwnMetadata:function(e,t){return ordinaryGetOwnMetadata$2(e,anObject(t),arguments.length<3?void 0:toMetaKey$5(arguments[2]))}});var ordinaryOwnMetadataKeys$2=$metadata.keys,toMetaKey$6=$metadata.key;$metadata.exp({getOwnMetadataKeys:function(e){return ordinaryOwnMetadataKeys$2(anObject(e),arguments.length<2?void 0:toMetaKey$6(arguments[1]))}});var ordinaryHasOwnMetadata$2=$metadata.has,toMetaKey$7=$metadata.key,ordinaryHasMetadata=function e(t,r,n){if(ordinaryHasOwnMetadata$2(t,r,n))return!0;var o=getPrototypeOf(r);return null!==o&&e(t,o,n)};$metadata.exp({hasMetadata:function(e,t){return ordinaryHasMetadata(e,anObject(t),arguments.length<3?void 0:toMetaKey$7(arguments[2]))}});var ordinaryHasOwnMetadata$3=$metadata.has,toMetaKey$8=$metadata.key;$metadata.exp({hasOwnMetadata:function(e,t){return ordinaryHasOwnMetadata$3(e,anObject(t),arguments.length<3?void 0:toMetaKey$8(arguments[2]))}});var toMetaKey$9=$metadata.key,ordinaryDefineOwnMetadata$2=$metadata.set;$metadata.exp({metadata:function(e,t){return function(r,n){ordinaryDefineOwnMetadata$2(e,t,(void 0!==n?anObject:aFunction)(r),toMetaKey$9(n))}}});var microtask$1=require$$0$j(),process$3=global$1.process,isNode$2="process"==require$$2(process$3);$export$1($export$1.G,{asap:function(e){var t=isNode$2&&process$3.domain;microtask$1(t?t.bind(e):e)}});var microtask$2=require$$0$j(),OBSERVABLE=wks("observable"),RETURN=forOf.RETURN,getMethod=function(e){return null==e?void 0:aFunction(e)},cleanupSubscription=function(e){var t=e._c;t&&(e._c=void 0,t())},subscriptionClosed=function(e){return void 0===e._o},closeSubscription=function(e){subscriptionClosed(e)||(e._o=void 0,cleanupSubscription(e))},Subscription=function(e,t){anObject(e),this._c=void 0,this._o=e,e=new SubscriptionObserver(this);try{var r=t(e),n=r;null!=r&&("function"==typeof r.unsubscribe?r=function(){n.unsubscribe()}:aFunction(r),this._c=r)}catch(t){return void e.error(t)}subscriptionClosed(this)&&cleanupSubscription(this)};Subscription.prototype=redefineAll({},{unsubscribe:function(){closeSubscription(this)}});var SubscriptionObserver=function(e){this._s=e};SubscriptionObserver.prototype=redefineAll({},{next:function(e){var t=this._s;if(!subscriptionClosed(t)){var r=t._o;try{var n=getMethod(r.next);if(n)return n.call(r,e)}catch(e){try{closeSubscription(t)}finally{throw e}}}},error:function(e){var t=this._s;if(subscriptionClosed(t))throw e;var r=t._o;t._o=void 0;try{var n=getMethod(r.error);if(!n)throw e;e=n.call(r,e)}catch(e){try{cleanupSubscription(t)}finally{throw e}}return cleanupSubscription(t),e},complete:function(e){var t=this._s;if(!subscriptionClosed(t)){var r=t._o;t._o=void 0;try{var n=getMethod(r.complete);e=n?n.call(r,e):void 0}catch(e){try{cleanupSubscription(t)}finally{throw e}}return cleanupSubscription(t),e}}});var $Observable=function(e){anInstance(this,$Observable,"Observable","_f")._f=aFunction(e)};redefineAll($Observable.prototype,{subscribe:function(e){return new Subscription(e,this._f)},forEach:function(e){var t=this;return new(require$$1$2.Promise||global$1.Promise)(function(r,n){aFunction(e);var o=t.subscribe({next:function(t){try{return e(t)}catch(e){n(e),o.unsubscribe()}},error:n,complete:r})})}}),redefineAll($Observable,{from:function(e){var t="function"==typeof this?this:$Observable,r=getMethod(anObject(e)[OBSERVABLE]);if(r){var n=anObject(r.call(e));return n.constructor===t?n:new t(function(e){return n.subscribe(e)})}return new t(function(t){var r=!1;return microtask$2(function(){if(!r){try{if(forOf(e,!1,function(e){if(t.next(e),r)return RETURN})===RETURN)return}catch(e){if(r)throw e;return void t.error(e)}t.complete()}}),function(){r=!0}})},of:function(){for(var e=0,t=arguments.length,r=new Array(t);e<t;)r[e]=arguments[e++];return new("function"==typeof this?this:$Observable)(function(e){var t=!1;return microtask$2(function(){if(!t){for(var n=0;n<r.length;++n)if(e.next(r[n]),t)return;e.complete()}}),function(){t=!0}})}}),hide($Observable.prototype,OBSERVABLE,function(){return this}),$export$1($export$1.G,{Observable:$Observable}),require$$2$3("Observable");var slice=[].slice,MSIE=/MSIE .\./.test(userAgent),wrap$1=function(e){return function(t,r){var n=arguments.length>2,o=!!n&&slice.call(arguments,2);return e(n?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,r)}};$export$1($export$1.G+$export$1.B+$export$1.F*MSIE,{setTimeout:wrap$1(global$1.setTimeout),setInterval:wrap$1(global$1.setInterval)}),$export$1($export$1.G+$export$1.B,{setImmediate:$task.set,clearImmediate:$task.clear});for(var ITERATOR$4=wks("iterator"),TO_STRING_TAG=wks("toStringTag"),ArrayValues=Iterators.Array,DOMIterables={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},collections=getKeys(DOMIterables),i$2=0;i$2<collections.length;i$2++){var NAME$1=collections[i$2],explicit=DOMIterables[NAME$1],Collection=global$1[NAME$1],proto$3=Collection&&Collection.prototype,key$1;if(proto$3&&(proto$3[ITERATOR$4]||hide(proto$3,ITERATOR$4,ArrayValues),proto$3[TO_STRING_TAG]||hide(proto$3,TO_STRING_TAG,NAME$1),Iterators[NAME$1]=ArrayValues,explicit))for(key$1 in $iterators)proto$3[key$1]||redefine(proto$3,key$1,$iterators[key$1],!0)}var runtime=createCommonjsModule(function(e){!function(t){var r,n=Object.prototype,o=n.hasOwnProperty,i="function"==typeof Symbol?Symbol:{},a=i.iterator||"@@iterator",s=i.asyncIterator||"@@asyncIterator",c=i.toStringTag||"@@toStringTag",u=t.regeneratorRuntime;if(u)e.exports=u;else{(u=t.regeneratorRuntime=e.exports).wrap=$;var l="suspendedStart",p="suspendedYield",f="executing",h="completed",_={},d={};d[a]=function(){return this};var b=Object.getPrototypeOf,y=b&&b(b(I([])));y&&y!==n&&o.call(y,a)&&(d=y);var m=S.prototype=g.prototype=Object.create(d);E.prototype=m.constructor=S,S.constructor=E,S[c]=E.displayName="GeneratorFunction",u.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===E||"GeneratorFunction"===(t.displayName||t.name))},u.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,S):(e.__proto__=S,c in e||(e[c]="GeneratorFunction")),e.prototype=Object.create(m),e},u.awrap=function(e){return{__await:e}},O(x.prototype),x.prototype[s]=function(){return this},u.AsyncIterator=x,u.async=function(e,t,r,n){var o=new x($(e,t,r,n));return u.isGeneratorFunction(t)?o:o.next().then(function(e){return e.done?e.value:o.next()})},O(m),m[c]="Generator",m[a]=function(){return this},m.toString=function(){return"[object Generator]"},u.keys=function(e){var t=[];for(var r in e)t.push(r);return t.reverse(),function r(){for(;t.length;){var n=t.pop();if(n in e)return r.value=n,r.done=!1,r}return r.done=!0,r}},u.values=I,C.prototype={constructor:C,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=r,this.done=!1,this.delegate=null,this.method="next",this.arg=r,this.tryEntries.forEach(A),!e)for(var t in this)"t"===t.charAt(0)&&o.call(this,t)&&!isNaN(+t.slice(1))&&(this[t]=r)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var t=this;function n(n,o){return s.type="throw",s.arg=e,t.next=n,o&&(t.method="next",t.arg=r),!!o}for(var i=this.tryEntries.length-1;i>=0;--i){var a=this.tryEntries[i],s=a.completion;if("root"===a.tryLoc)return n("end");if(a.tryLoc<=this.prev){var c=o.call(a,"catchLoc"),u=o.call(a,"finallyLoc");if(c&&u){if(this.prev<a.catchLoc)return n(a.catchLoc,!0);if(this.prev<a.finallyLoc)return n(a.finallyLoc)}else if(c){if(this.prev<a.catchLoc)return n(a.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<a.finallyLoc)return n(a.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&o.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var i=n;break}}i&&("break"===e||"continue"===e)&&i.tryLoc<=t&&t<=i.finallyLoc&&(i=null);var a=i?i.completion:{};return a.type=e,a.arg=t,i?(this.method="next",this.next=i.finallyLoc,_):this.complete(a)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),_},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),A(r),_}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;A(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,n){return this.delegate={iterator:I(e),resultName:t,nextLoc:n},"next"===this.method&&(this.arg=r),_}}}function $(e,t,r,n){var o=t&&t.prototype instanceof g?t:g,i=Object.create(o.prototype),a=new C(n||[]);return i._invoke=function(e,t,r){var n=l;return function(o,i){if(n===f)throw new Error("Generator is already running");if(n===h){if("throw"===o)throw i;return P()}for(r.method=o,r.arg=i;;){var a=r.delegate;if(a){var s=w(a,r);if(s){if(s===_)continue;return s}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(n===l)throw n=h,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);n=f;var c=v(e,t,r);if("normal"===c.type){if(n=r.done?h:p,c.arg===_)continue;return{value:c.arg,done:r.done}}"throw"===c.type&&(n=h,r.method="throw",r.arg=c.arg)}}}(e,r,a),i}function v(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}function g(){}function E(){}function S(){}function O(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function x(e){function r(t,n,i,a){var s=v(e[t],e,n);if("throw"!==s.type){var c=s.arg,u=c.value;return u&&"object"===(void 0===u?"undefined":_typeof(u))&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(e){r("next",e,i,a)},function(e){r("throw",e,i,a)}):Promise.resolve(u).then(function(e){c.value=e,i(c)},a)}a(s.arg)}var n;"object"===_typeof(t.process)&&t.process.domain&&(r=t.process.domain.bind(r)),this._invoke=function(e,t){function o(){return new Promise(function(n,o){r(e,t,n,o)})}return n=n?n.then(o,o):o()}}function w(e,t){var n=e.iterator[t.method];if(n===r){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=r,w(e,t),"throw"===t.method))return _;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return _}var o=v(n,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,_;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=r),t.delegate=null,_):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,_)}function T(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function A(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function C(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(T,this),this.reset(!0)}function I(e){if(e){var t=e[a];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var n=-1,i=function t(){for(;++n<e.length;)if(o.call(e,n))return t.value=e[n],t.done=!1,t;return t.value=r,t.done=!0,t};return i.next=i}}return{next:P}}function P(){return{value:r,done:!0}}}("object"===_typeof(commonjsGlobal)?commonjsGlobal:"object"===("undefined"==typeof window?"undefined":_typeof(window))?window:"object"===("undefined"==typeof self?"undefined":_typeof(self))?self:commonjsGlobal)}),_replacer=function(e,t){var r=t===Object(t)?function(e){return t[e]}:t;return function(t){return String(t).replace(e,r)}},_replacer$1={default:_replacer,__moduleExports:_replacer},require$$0$r=_replacer$1&&_replacer||_replacer$1,$re=require$$0$r(/[\\^$*+?.()|[\]{}]/g,"\\$&");$export$1($export$1.S,"RegExp",{escape:function(e){return $re(e)}});var _escape=require$$1$2.RegExp.escape;if(commonjsGlobal._babelPolyfill)throw new Error("only one instance of babel-polyfill is allowed");commonjsGlobal._babelPolyfill=!0;var DEFINE_PROPERTY="defineProperty";function define$1(e,t,r){e[t]||Object[DEFINE_PROPERTY](e,t,{writable:!0,configurable:!0,value:r})}function __decorate(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(a=(i<3?o(a):i>3?o(t,r,a):o(t,r))||a);return i>3&&a&&Object.defineProperty(t,r,a),a}function __metadata(e,t){if("object"===("undefined"==typeof Reflect?"undefined":_typeof(Reflect))&&"function"==typeof Reflect.metadata)return Reflect.metadata(e,t)}function __awaiter(e,t,r,n){return new(r||(r=Promise))(function(o,i){function a(e){try{c(n.next(e))}catch(e){i(e)}}function s(e){try{c(n.throw(e))}catch(e){i(e)}}function c(e){e.done?o(e.value):new r(function(t){t(e.value)}).then(a,s)}c((n=n.apply(e,t||[])).next())})}define$1(String.prototype,"padLeft","".padStart),define$1(String.prototype,"padRight","".padEnd),"pop,reverse,shift,keys,values,entries,indexOf,every,some,forEach,map,filter,find,findIndex,includes,join,slice,concat,push,splice,unshift,sort,lastIndexOf,reduce,reduceRight,copyWithin,fill".split(",").forEach(function(e){[][e]&&define$1(Array,e,Function.call.bind([][e]))});var global$2="undefined"!=typeof global?global:"undefined"!=typeof self?self:"undefined"!=typeof window?window:{},freeGlobal="object"==(void 0===global$2?"undefined":_typeof(global$2))&&global$2&&global$2.Object===Object&&global$2,freeSelf="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),_Symbol=root.Symbol,objectProto=Object.prototype,hasOwnProperty$1=objectProto.hasOwnProperty,nativeObjectToString=objectProto.toString,symToStringTag=_Symbol?_Symbol.toStringTag:void 0;function getRawTag(e){var t=hasOwnProperty$1.call(e,symToStringTag),r=e[symToStringTag];try{e[symToStringTag]=void 0;var n=!0}catch(e){}var o=nativeObjectToString.call(e);return n&&(t?e[symToStringTag]=r:delete e[symToStringTag]),o}var objectProto$1=Object.prototype,nativeObjectToString$1=objectProto$1.toString;function objectToString(e){return nativeObjectToString$1.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag$1=_Symbol?_Symbol.toStringTag:void 0;function baseGetTag(e){return null==e?void 0===e?undefinedTag:nullTag:symToStringTag$1&&symToStringTag$1 in Object(e)?getRawTag(e):objectToString(e)}function overArg(e,t){return function(r){return e(t(r))}}var getPrototype=overArg(Object.getPrototypeOf,Object);function isObjectLike(e){return null!=e&&"object"==(void 0===e?"undefined":_typeof(e))}var objectTag="[object Object]",funcProto=Function.prototype,objectProto$2=Object.prototype,funcToString=funcProto.toString,hasOwnProperty$2=objectProto$2.hasOwnProperty,objectCtorString=funcToString.call(Object),root$1;function isPlainObject(e){if(!isObjectLike(e)||baseGetTag(e)!=objectTag)return!1;var t=getPrototype(e);if(null===t)return!0;var r=hasOwnProperty$2.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&funcToString.call(r)==objectCtorString}function symbolObservablePonyfill(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}root$1="undefined"!=typeof self?self:"undefined"!=typeof window?window:void 0!==global$2?global$2:"undefined"!=typeof module?module:Function("return this")();var result=symbolObservablePonyfill(root$1),ActionTypes={INIT:"@@redux/INIT"};function createStore(e,t,r){var n;if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error("Expected the enhancer to be a function.");return r(createStore)(e,t)}if("function"!=typeof e)throw new Error("Expected the reducer to be a function.");var o=e,i=t,a=[],s=a,c=!1;function u(){s===a&&(s=a.slice())}function l(){return i}function p(e){if("function"!=typeof e)throw new Error("Expected listener to be a function.");var t=!0;return u(),s.push(e),function(){if(t){t=!1,u();var r=s.indexOf(e);s.splice(r,1)}}}function f(e){if(!isPlainObject(e))throw new Error("Actions must be plain objects. Use custom middleware for async actions.");if(void 0===e.type)throw new Error('Actions may not have an undefined "type" property. Have you misspelled a constant?');if(c)throw new Error("Reducers may not dispatch actions.");try{c=!0,i=o(i,e)}finally{c=!1}for(var t=a=s,r=0;r<t.length;r++){(0,t[r])()}return e}return f({type:ActionTypes.INIT}),(n={dispatch:f,subscribe:p,getState:l,replaceReducer:function(e){if("function"!=typeof e)throw new Error("Expected the nextReducer to be a function.");o=e,f({type:ActionTypes.INIT})}})[result]=function(){var e,t=p;return(e={subscribe:function(e){if("object"!==(void 0===e?"undefined":_typeof(e)))throw new TypeError("Expected the observer to be an object.");function r(){e.next&&e.next(l())}return r(),{unsubscribe:t(r)}}})[result]=function(){return this},e},n}function getUndefinedStateErrorMessage(e,t){var r=t&&t.type;return"Given action "+(r&&'"'+r.toString()+'"'||"an action")+', reducer "'+e+'" returned undefined. To ignore an action, you must explicitly return the previous state. If you want this reducer to hold no value, you can return null instead of undefined.'}function assertReducerShape(e){Object.keys(e).forEach(function(t){var r=e[t];if(void 0===r(void 0,{type:ActionTypes.INIT}))throw new Error('Reducer "'+t+"\" returned undefined during initialization. If the state passed to the reducer is undefined, you must explicitly return the initial state. The initial state may not be undefined. If you don't want to set a value for this reducer, you can use null instead of undefined.");if(void 0===r(void 0,{type:"@@redux/PROBE_UNKNOWN_ACTION_"+Math.random().toString(36).substring(7).split("").join(".")}))throw new Error('Reducer "'+t+"\" returned undefined when probed with a random type. Don't try to handle "+ActionTypes.INIT+' or other actions in "redux/*" namespace. They are considered private. Instead, you must return the current state for any unknown actions, unless it is undefined, in which case you must return the initial state, regardless of the action type. The initial state may not be undefined, but can be null.')})}function combineReducers(e){for(var t=Object.keys(e),r={},n=0;n<t.length;n++){var o=t[n];"function"==typeof e[o]&&(r[o]=e[o])}var i=Object.keys(r),a=void 0;try{assertReducerShape(r)}catch(e){a=e}return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments[1];if(a)throw a;for(var n=!1,o={},s=0;s<i.length;s++){var c=i[s],u=r[c],l=e[c],p=u(l,t);if(void 0===p){var f=getUndefinedStateErrorMessage(c,t);throw new Error(f)}o[c]=p,n=n||p!==l}return n?o:e}}function compose(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce(function(e,t){return function(){return e(t.apply(void 0,arguments))}})}var _extends$1=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e};function applyMiddleware(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(r,n,o){var i,a=e(r,n,o),s=a.dispatch,c={getState:a.getState,dispatch:function(e){return s(e)}};return i=t.map(function(e){return e(c)}),s=compose.apply(void 0,i)(a.dispatch),_extends$1({},a,{dispatch:s})}}}var __window="undefined"!=typeof window&&window,__self="undefined"!=typeof self&&"undefined"!=typeof WorkerGlobalScope&&self instanceof WorkerGlobalScope&&self,__global=void 0!==commonjsGlobal&&commonjsGlobal,_root=__window||__global||__self,root_1=_root;!function(){if(!_root)throw new Error("RxJS could not find any global context (window, self, global)")}();var root$2={root:root_1},root$3={default:root$2,__moduleExports:root$2,root:root_1};function isFunction(e){return"function"==typeof e}var isFunction_2=isFunction,isFunction_1={isFunction:isFunction_2},isFunction$1={default:isFunction_1,__moduleExports:isFunction_1,isFunction:isFunction_2},isArray_1=Array.isArray||function(e){return e&&"number"==typeof e.length},isArray$1={isArray:isArray_1},isArray$2={default:isArray$1,__moduleExports:isArray$1,isArray:isArray_1};function isObject$1(e){return null!=e&&"object"===(void 0===e?"undefined":_typeof(e))}var isObject_2=isObject$1,isObject_1={isObject:isObject_2},isObject$2={default:isObject_1,__moduleExports:isObject_1,isObject:isObject_2},errorObject_1={e:{}},errorObject={errorObject:errorObject_1},errorObject$1={default:errorObject,__moduleExports:errorObject,errorObject:errorObject_1},errorObject_1$1=errorObject$1&&errorObject||errorObject$1,tryCatchTarget;function tryCatcher(){try{return tryCatchTarget.apply(this,arguments)}catch(e){return errorObject_1$1.errorObject.e=e,errorObject_1$1.errorObject}}function tryCatch(e){return tryCatchTarget=e,tryCatcher}var tryCatch_2=tryCatch,tryCatch_1={tryCatch:tryCatch_2},tryCatch$1={default:tryCatch_1,__moduleExports:tryCatch_1,tryCatch:tryCatch_2},__extends=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},UnsubscriptionError=function(e){function t(t){e.call(this),this.errors=t;var r=Error.call(this,t?t.length+" errors occurred during unsubscription:\n  "+t.map(function(e,t){return t+1+") "+e.toString()}).join("\n  "):"");this.name=r.name="UnsubscriptionError",this.stack=r.stack,this.message=r.message}return __extends(t,e),t}(Error),UnsubscriptionError_2=UnsubscriptionError,UnsubscriptionError_1={UnsubscriptionError:UnsubscriptionError_2},UnsubscriptionError$1={default:UnsubscriptionError_1,__moduleExports:UnsubscriptionError_1,UnsubscriptionError:UnsubscriptionError_2},isArray_1$1=isArray$2&&isArray$1||isArray$2,isObject_1$1=isObject$2&&isObject_1||isObject$2,isFunction_1$1=isFunction$1&&isFunction_1||isFunction$1,tryCatch_1$1=tryCatch$1&&tryCatch_1||tryCatch$1,UnsubscriptionError_1$1=UnsubscriptionError$1&&UnsubscriptionError_1||UnsubscriptionError$1,Subscription$1=function(){function e(e){this.closed=!1,this._parent=null,this._parents=null,this._subscriptions=null,e&&(this._unsubscribe=e)}return e.prototype.unsubscribe=function(){var e,t=!1;if(!this.closed){var r=this._parent,n=this._parents,o=this._unsubscribe,i=this._subscriptions;this.closed=!0,this._parent=null,this._parents=null,this._subscriptions=null;for(var a=-1,s=n?n.length:0;r;)r.remove(this),r=++a<s&&n[a]||null;if(isFunction_1$1.isFunction(o))tryCatch_1$1.tryCatch(o).call(this)===errorObject_1$1.errorObject&&(t=!0,e=e||(errorObject_1$1.errorObject.e instanceof UnsubscriptionError_1$1.UnsubscriptionError?flattenUnsubscriptionErrors(errorObject_1$1.errorObject.e.errors):[errorObject_1$1.errorObject.e]));if(isArray_1$1.isArray(i))for(a=-1,s=i.length;++a<s;){var c=i[a];if(isObject_1$1.isObject(c))if(tryCatch_1$1.tryCatch(c.unsubscribe).call(c)===errorObject_1$1.errorObject){t=!0,e=e||[];var u=errorObject_1$1.errorObject.e;u instanceof UnsubscriptionError_1$1.UnsubscriptionError?e=e.concat(flattenUnsubscriptionErrors(u.errors)):e.push(u)}}if(t)throw new UnsubscriptionError_1$1.UnsubscriptionError(e)}},e.prototype.add=function(t){if(!t||t===e.EMPTY)return e.EMPTY;if(t===this)return this;var r=t;switch(void 0===t?"undefined":_typeof(t)){case"function":r=new e(t);case"object":if(r.closed||"function"!=typeof r.unsubscribe)return r;if(this.closed)return r.unsubscribe(),r;if("function"!=typeof r._addParent){var n=r;(r=new e)._subscriptions=[n]}break;default:throw new Error("unrecognized teardown "+t+" added to Subscription.")}return(this._subscriptions||(this._subscriptions=[])).push(r),r._addParent(this),r},e.prototype.remove=function(e){var t=this._subscriptions;if(t){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},e.prototype._addParent=function(e){var t=this._parent,r=this._parents;t&&t!==e?r?-1===r.indexOf(e)&&r.push(e):this._parents=[e]:this._parent=e},e.EMPTY=function(e){return e.closed=!0,e}(new e),e}(),Subscription_2=Subscription$1;function flattenUnsubscriptionErrors(e){return e.reduce(function(e,t){return e.concat(t instanceof UnsubscriptionError_1$1.UnsubscriptionError?t.errors:t)},[])}var Subscription_1={Subscription:Subscription_2},Subscription$2={default:Subscription_1,__moduleExports:Subscription_1,Subscription:Subscription_2},empty$1={closed:!0,next:function(e){},error:function(e){throw e},complete:function(){}},Observer$1={empty:empty$1},Observer$2={default:Observer$1,__moduleExports:Observer$1,empty:empty$1},root_1$1=root$3&&root$2||root$3,rxSubscriber=createCommonjsModule(function(e,t){var r=root_1$1.root.Symbol;t.rxSubscriber="function"==typeof r&&"function"==typeof r.for?r.for("rxSubscriber"):"@@rxSubscriber",t.$$rxSubscriber=t.rxSubscriber}),rxSubscriber_1=rxSubscriber.rxSubscriber,rxSubscriber_2=rxSubscriber.$$rxSubscriber,rxSubscriber$1={default:rxSubscriber,__moduleExports:rxSubscriber,rxSubscriber:rxSubscriber_1,$$rxSubscriber:rxSubscriber_2},Subscription_1$1=Subscription$2&&Subscription_1||Subscription$2,Observer_1=Observer$2&&Observer$1||Observer$2,rxSubscriber_1$1=rxSubscriber$1&&rxSubscriber||rxSubscriber$1,__extends$1=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Subscriber=function(e){function t(t,r,n){switch(e.call(this),this.syncErrorValue=null,this.syncErrorThrown=!1,this.syncErrorThrowable=!1,this.isStopped=!1,arguments.length){case 0:this.destination=Observer_1.empty;break;case 1:if(!t){this.destination=Observer_1.empty;break}if("object"===(void 0===t?"undefined":_typeof(t))){if(isTrustedSubscriber(t)){var o=t[rxSubscriber_1$1.rxSubscriber]();this.syncErrorThrowable=o.syncErrorThrowable,this.destination=o,o.add(this)}else this.syncErrorThrowable=!0,this.destination=new SafeSubscriber(this,t);break}default:this.syncErrorThrowable=!0,this.destination=new SafeSubscriber(this,t,r,n)}}return __extends$1(t,e),t.prototype[rxSubscriber_1$1.rxSubscriber]=function(){return this},t.create=function(e,r,n){var o=new t(e,r,n);return o.syncErrorThrowable=!1,o},t.prototype.next=function(e){this.isStopped||this._next(e)},t.prototype.error=function(e){this.isStopped||(this.isStopped=!0,this._error(e))},t.prototype.complete=function(){this.isStopped||(this.isStopped=!0,this._complete())},t.prototype.unsubscribe=function(){this.closed||(this.isStopped=!0,e.prototype.unsubscribe.call(this))},t.prototype._next=function(e){this.destination.next(e)},t.prototype._error=function(e){this.destination.error(e),this.unsubscribe()},t.prototype._complete=function(){this.destination.complete(),this.unsubscribe()},t.prototype._unsubscribeAndRecycle=function(){var e=this._parent,t=this._parents;return this._parent=null,this._parents=null,this.unsubscribe(),this.closed=!1,this.isStopped=!1,this._parent=e,this._parents=t,this},t}(Subscription_1$1.Subscription),Subscriber_2=Subscriber,SafeSubscriber=function(e){function t(t,r,n,o){var i;e.call(this),this._parentSubscriber=t;var a=this;isFunction_1$1.isFunction(r)?i=r:r&&(i=r.next,n=r.error,o=r.complete,r!==Observer_1.empty&&(a=Object.create(r),isFunction_1$1.isFunction(a.unsubscribe)&&this.add(a.unsubscribe.bind(a)),a.unsubscribe=this.unsubscribe.bind(this))),this._context=a,this._next=i,this._error=n,this._complete=o}return __extends$1(t,e),t.prototype.next=function(e){if(!this.isStopped&&this._next){var t=this._parentSubscriber;t.syncErrorThrowable?this.__tryOrSetError(t,this._next,e)&&this.unsubscribe():this.__tryOrUnsub(this._next,e)}},t.prototype.error=function(e){if(!this.isStopped){var t=this._parentSubscriber;if(this._error)t.syncErrorThrowable?(this.__tryOrSetError(t,this._error,e),this.unsubscribe()):(this.__tryOrUnsub(this._error,e),this.unsubscribe());else{if(!t.syncErrorThrowable)throw this.unsubscribe(),e;t.syncErrorValue=e,t.syncErrorThrown=!0,this.unsubscribe()}}},t.prototype.complete=function(){var e=this;if(!this.isStopped){var t=this._parentSubscriber;if(this._complete){var r=function(){return e._complete.call(e._context)};t.syncErrorThrowable?(this.__tryOrSetError(t,r),this.unsubscribe()):(this.__tryOrUnsub(r),this.unsubscribe())}else this.unsubscribe()}},t.prototype.__tryOrUnsub=function(e,t){try{e.call(this._context,t)}catch(e){throw this.unsubscribe(),e}},t.prototype.__tryOrSetError=function(e,t,r){try{t.call(this._context,r)}catch(t){return e.syncErrorValue=t,e.syncErrorThrown=!0,!0}return!1},t.prototype._unsubscribe=function(){var e=this._parentSubscriber;this._context=null,this._parentSubscriber=null,e.unsubscribe()},t}(Subscriber);function isTrustedSubscriber(e){return e instanceof Subscriber||"syncErrorThrowable"in e&&e[rxSubscriber_1$1.rxSubscriber]}var Subscriber_1={Subscriber:Subscriber_2},Subscriber$1={default:Subscriber_1,__moduleExports:Subscriber_1,Subscriber:Subscriber_2},Subscriber_1$1=Subscriber$1&&Subscriber_1||Subscriber$1;function toSubscriber(e,t,r){if(e){if(e instanceof Subscriber_1$1.Subscriber)return e;if(e[rxSubscriber_1$1.rxSubscriber])return e[rxSubscriber_1$1.rxSubscriber]()}return e||t||r?new Subscriber_1$1.Subscriber(e,t,r):new Subscriber_1$1.Subscriber(Observer_1.empty)}var toSubscriber_2=toSubscriber,toSubscriber_1={toSubscriber:toSubscriber_2},toSubscriber$1={default:toSubscriber_1,__moduleExports:toSubscriber_1,toSubscriber:toSubscriber_2},observable=createCommonjsModule(function(e,t){function r(e){var t,r=e.Symbol;return"function"==typeof r?r.observable?t=r.observable:(t=r("observable"),r.observable=t):t="@@observable",t}t.getSymbolObservable=r,t.observable=r(root_1$1.root),t.$$observable=t.observable}),observable_1=observable.getSymbolObservable,observable_2=observable.observable,observable_3=observable.$$observable,observable$1={default:observable,__moduleExports:observable,getSymbolObservable:observable_1,observable:observable_2,$$observable:observable_3};function noop(){}var noop_2=noop,noop_1={noop:noop_2},noop$1={default:noop_1,__moduleExports:noop_1,noop:noop_2},noop_1$1=noop$1&&noop_1||noop$1;function pipe(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return pipeFromArray(e)}var pipe_2=pipe;function pipeFromArray(e){return e?1===e.length?e[0]:function(t){return e.reduce(function(e,t){return t(e)},t)}:noop_1$1.noop}var pipeFromArray_1=pipeFromArray,pipe_1={pipe:pipe_2,pipeFromArray:pipeFromArray_1},pipe$1={default:pipe_1,__moduleExports:pipe_1,pipe:pipe_2,pipeFromArray:pipeFromArray_1},toSubscriber_1$1=toSubscriber$1&&toSubscriber_1||toSubscriber$1,observable_1$1=observable$1&&observable||observable$1,pipe_1$1=pipe$1&&pipe_1||pipe$1,Observable=function(){function e(e){this._isScalar=!1,e&&(this._subscribe=e)}return e.prototype.lift=function(t){var r=new e;return r.source=this,r.operator=t,r},e.prototype.subscribe=function(e,t,r){var n=this.operator,o=toSubscriber_1$1.toSubscriber(e,t,r);if(n?n.call(o,this.source):o.add(this.source||!o.syncErrorThrowable?this._subscribe(o):this._trySubscribe(o)),o.syncErrorThrowable&&(o.syncErrorThrowable=!1,o.syncErrorThrown))throw o.syncErrorValue;return o},e.prototype._trySubscribe=function(e){try{return this._subscribe(e)}catch(t){e.syncErrorThrown=!0,e.syncErrorValue=t,e.error(t)}},e.prototype.forEach=function(e,t){var r=this;if(t||(root_1$1.root.Rx&&root_1$1.root.Rx.config&&root_1$1.root.Rx.config.Promise?t=root_1$1.root.Rx.config.Promise:root_1$1.root.Promise&&(t=root_1$1.root.Promise)),!t)throw new Error("no Promise impl found");return new t(function(t,n){var o;o=r.subscribe(function(t){if(o)try{e(t)}catch(e){n(e),o.unsubscribe()}else e(t)},n,t)})},e.prototype._subscribe=function(e){return this.source.subscribe(e)},e.prototype[observable_1$1.observable]=function(){return this},e.prototype.pipe=function(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 0===e.length?this:pipe_1$1.pipeFromArray(e)(this)},e.prototype.toPromise=function(e){var t=this;if(e||(root_1$1.root.Rx&&root_1$1.root.Rx.config&&root_1$1.root.Rx.config.Promise?e=root_1$1.root.Rx.config.Promise:root_1$1.root.Promise&&(e=root_1$1.root.Promise)),!e)throw new Error("no Promise impl found");return new e(function(e,r){var n;t.subscribe(function(e){return n=e},function(e){return r(e)},function(){return e(n)})})},e.create=function(t){return new e(t)},e}(),Observable_2=Observable,Observable_1={Observable:Observable_2},Observable$1={default:Observable_1,__moduleExports:Observable_1,Observable:Observable_2},__extends$2=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ObjectUnsubscribedError=function(e){function t(){var t=e.call(this,"object unsubscribed");this.name=t.name="ObjectUnsubscribedError",this.stack=t.stack,this.message=t.message}return __extends$2(t,e),t}(Error),ObjectUnsubscribedError_2=ObjectUnsubscribedError,ObjectUnsubscribedError_1={ObjectUnsubscribedError:ObjectUnsubscribedError_2},ObjectUnsubscribedError$1={default:ObjectUnsubscribedError_1,__moduleExports:ObjectUnsubscribedError_1,ObjectUnsubscribedError:ObjectUnsubscribedError_2},__extends$3=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},SubjectSubscription=function(e){function t(t,r){e.call(this),this.subject=t,this.subscriber=r,this.closed=!1}return __extends$3(t,e),t.prototype.unsubscribe=function(){if(!this.closed){this.closed=!0;var e=this.subject,t=e.observers;if(this.subject=null,t&&0!==t.length&&!e.isStopped&&!e.closed){var r=t.indexOf(this.subscriber);-1!==r&&t.splice(r,1)}}},t}(Subscription_1$1.Subscription),SubjectSubscription_2=SubjectSubscription,SubjectSubscription_1={SubjectSubscription:SubjectSubscription_2},SubjectSubscription$1={default:SubjectSubscription_1,__moduleExports:SubjectSubscription_1,SubjectSubscription:SubjectSubscription_2},Observable_1$1=Observable$1&&Observable_1||Observable$1,ObjectUnsubscribedError_1$1=ObjectUnsubscribedError$1&&ObjectUnsubscribedError_1||ObjectUnsubscribedError$1,SubjectSubscription_1$1=SubjectSubscription$1&&SubjectSubscription_1||SubjectSubscription$1,__extends$4=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},SubjectSubscriber=function(e){function t(t){e.call(this,t),this.destination=t}return __extends$4(t,e),t}(Subscriber_1$1.Subscriber),SubjectSubscriber_1=SubjectSubscriber,Subject=function(e){function t(){e.call(this),this.observers=[],this.closed=!1,this.isStopped=!1,this.hasError=!1,this.thrownError=null}return __extends$4(t,e),t.prototype[rxSubscriber_1$1.rxSubscriber]=function(){return new SubjectSubscriber(this)},t.prototype.lift=function(e){var t=new AnonymousSubject(this,this);return t.operator=e,t},t.prototype.next=function(e){if(this.closed)throw new ObjectUnsubscribedError_1$1.ObjectUnsubscribedError;if(!this.isStopped)for(var t=this.observers,r=t.length,n=t.slice(),o=0;o<r;o++)n[o].next(e)},t.prototype.error=function(e){if(this.closed)throw new ObjectUnsubscribedError_1$1.ObjectUnsubscribedError;this.hasError=!0,this.thrownError=e,this.isStopped=!0;for(var t=this.observers,r=t.length,n=t.slice(),o=0;o<r;o++)n[o].error(e);this.observers.length=0},t.prototype.complete=function(){if(this.closed)throw new ObjectUnsubscribedError_1$1.ObjectUnsubscribedError;this.isStopped=!0;for(var e=this.observers,t=e.length,r=e.slice(),n=0;n<t;n++)r[n].complete();this.observers.length=0},t.prototype.unsubscribe=function(){this.isStopped=!0,this.closed=!0,this.observers=null},t.prototype._trySubscribe=function(t){if(this.closed)throw new ObjectUnsubscribedError_1$1.ObjectUnsubscribedError;return e.prototype._trySubscribe.call(this,t)},t.prototype._subscribe=function(e){if(this.closed)throw new ObjectUnsubscribedError_1$1.ObjectUnsubscribedError;return this.hasError?(e.error(this.thrownError),Subscription_1$1.Subscription.EMPTY):this.isStopped?(e.complete(),Subscription_1$1.Subscription.EMPTY):(this.observers.push(e),new SubjectSubscription_1$1.SubjectSubscription(this,e))},t.prototype.asObservable=function(){var e=new Observable_1$1.Observable;return e.source=this,e},t.create=function(e,t){return new AnonymousSubject(e,t)},t}(Observable_1$1.Observable),Subject_2=Subject,AnonymousSubject=function(e){function t(t,r){e.call(this),this.destination=t,this.source=r}return __extends$4(t,e),t.prototype.next=function(e){var t=this.destination;t&&t.next&&t.next(e)},t.prototype.error=function(e){var t=this.destination;t&&t.error&&this.destination.error(e)},t.prototype.complete=function(){var e=this.destination;e&&e.complete&&this.destination.complete()},t.prototype._subscribe=function(e){return this.source?this.source.subscribe(e):Subscription_1$1.Subscription.EMPTY},t}(Subject),AnonymousSubject_1=AnonymousSubject,Subject_1={SubjectSubscriber:SubjectSubscriber_1,Subject:Subject_2,AnonymousSubject:AnonymousSubject_1},Subject$1={default:Subject_1,__moduleExports:Subject_1,SubjectSubscriber:SubjectSubscriber_1,Subject:Subject_2,AnonymousSubject:AnonymousSubject_1},__extends$5=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function map(e,t){return function(r){if("function"!=typeof e)throw new TypeError("argument is not a function. Are you looking for `mapTo()`?");return r.lift(new MapOperator(e,t))}}var map_2=map,MapOperator=function(){function e(e,t){this.project=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new MapSubscriber(e,this.project,this.thisArg))},e}(),MapOperator_1=MapOperator,MapSubscriber=function(e){function t(t,r,n){e.call(this,t),this.project=r,this.count=0,this.thisArg=n||this}return __extends$5(t,e),t.prototype._next=function(e){var t;try{t=this.project.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(Subscriber_1$1.Subscriber),map_1={map:map_2,MapOperator:MapOperator_1},map$1={default:map_1,__moduleExports:map_1,map:map_2,MapOperator:MapOperator_1},map_1$1=map$1&&map_1||map$1;function map$2(e,t){return map_1$1.map(e,t)(this)}var map_3=map$2,map_2$1={map:map_3},map$3={default:map_2$1,__moduleExports:map_2$1,map:map_3},__extends$6=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},OuterSubscriber=function(e){function t(){e.apply(this,arguments)}return __extends$6(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(t)},t.prototype.notifyError=function(e,t){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.destination.complete()},t}(Subscriber_1$1.Subscriber),OuterSubscriber_2=OuterSubscriber,OuterSubscriber_1={OuterSubscriber:OuterSubscriber_2},OuterSubscriber$1={default:OuterSubscriber_1,__moduleExports:OuterSubscriber_1,OuterSubscriber:OuterSubscriber_2},isArrayLike_1=function(e){return e&&"number"==typeof e.length},isArrayLike={isArrayLike:isArrayLike_1},isArrayLike$1={default:isArrayLike,__moduleExports:isArrayLike,isArrayLike:isArrayLike_1};function isPromise(e){return e&&"function"!=typeof e.subscribe&&"function"==typeof e.then}var isPromise_2=isPromise,isPromise_1={isPromise:isPromise_2},isPromise$1={default:isPromise_1,__moduleExports:isPromise_1,isPromise:isPromise_2},iterator=createCommonjsModule(function(e,t){function r(e){var t=e.Symbol;if("function"==typeof t)return t.iterator||(t.iterator=t("iterator polyfill")),t.iterator;var r=e.Set;if(r&&"function"==typeof(new r)["@@iterator"])return"@@iterator";var n=e.Map;if(n)for(var o=Object.getOwnPropertyNames(n.prototype),i=0;i<o.length;++i){var a=o[i];if("entries"!==a&&"size"!==a&&n.prototype[a]===n.prototype.entries)return a}return"@@iterator"}t.symbolIteratorPonyfill=r,t.iterator=r(root_1$1.root),t.$$iterator=t.iterator}),iterator_1=iterator.symbolIteratorPonyfill,iterator_2=iterator.iterator,iterator_3=iterator.$$iterator,iterator$1={default:iterator,__moduleExports:iterator,symbolIteratorPonyfill:iterator_1,iterator:iterator_2,$$iterator:iterator_3},__extends$7=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},InnerSubscriber=function(e){function t(t,r,n){e.call(this),this.parent=t,this.outerValue=r,this.outerIndex=n,this.index=0}return __extends$7(t,e),t.prototype._next=function(e){this.parent.notifyNext(this.outerValue,e,this.outerIndex,this.index++,this)},t.prototype._error=function(e){this.parent.notifyError(e,this),this.unsubscribe()},t.prototype._complete=function(){this.parent.notifyComplete(this),this.unsubscribe()},t}(Subscriber_1$1.Subscriber),InnerSubscriber_2=InnerSubscriber,InnerSubscriber_1={InnerSubscriber:InnerSubscriber_2},InnerSubscriber$1={default:InnerSubscriber_1,__moduleExports:InnerSubscriber_1,InnerSubscriber:InnerSubscriber_2},isArrayLike_1$1=isArrayLike$1&&isArrayLike||isArrayLike$1,isPromise_1$1=isPromise$1&&isPromise_1||isPromise$1,iterator_1$1=iterator$1&&iterator||iterator$1,InnerSubscriber_1$1=InnerSubscriber$1&&InnerSubscriber_1||InnerSubscriber$1;function subscribeToResult(e,t,r,n){var o=new InnerSubscriber_1$1.InnerSubscriber(e,r,n);if(o.closed)return null;if(t instanceof Observable_1$1.Observable)return t._isScalar?(o.next(t.value),o.complete(),null):(o.syncErrorThrowable=!0,t.subscribe(o));if(isArrayLike_1$1.isArrayLike(t)){for(var i=0,a=t.length;i<a&&!o.closed;i++)o.next(t[i]);o.closed||o.complete()}else{if(isPromise_1$1.isPromise(t))return t.then(function(e){o.closed||(o.next(e),o.complete())},function(e){return o.error(e)}).then(null,function(e){root_1$1.root.setTimeout(function(){throw e})}),o;if(t&&"function"==typeof t[iterator_1$1.iterator])for(var s=t[iterator_1$1.iterator]();;){var c=s.next();if(c.done){o.complete();break}if(o.next(c.value),o.closed)break}else if(t&&"function"==typeof t[observable_1$1.observable]){var u=t[observable_1$1.observable]();if("function"==typeof u.subscribe)return u.subscribe(new InnerSubscriber_1$1.InnerSubscriber(e,r,n));o.error(new TypeError("Provided object does not correctly implement Symbol.observable"))}else{var l="You provided "+(isObject_1$1.isObject(t)?"an invalid object":"'"+t+"'")+" where a stream was expected. You can provide an Observable, Promise, Array, or Iterable.";o.error(new TypeError(l))}}return null}var subscribeToResult_2=subscribeToResult,subscribeToResult_1={subscribeToResult:subscribeToResult_2},subscribeToResult$1={default:subscribeToResult_1,__moduleExports:subscribeToResult_1,subscribeToResult:subscribeToResult_2},OuterSubscriber_1$1=OuterSubscriber$1&&OuterSubscriber_1||OuterSubscriber$1,subscribeToResult_1$1=subscribeToResult$1&&subscribeToResult_1||subscribeToResult$1,__extends$8=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function switchMap(e,t){return function(r){return r.lift(new SwitchMapOperator(e,t))}}var switchMap_2=switchMap,SwitchMapOperator=function(){function e(e,t){this.project=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new SwitchMapSubscriber(e,this.project,this.resultSelector))},e}(),SwitchMapSubscriber=function(e){function t(t,r,n){e.call(this,t),this.project=r,this.resultSelector=n,this.index=0}return __extends$8(t,e),t.prototype._next=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){return void this.destination.error(e)}this._innerSub(t,e,r)},t.prototype._innerSub=function(e,t,r){var n=this.innerSubscription;n&&n.unsubscribe(),this.add(this.innerSubscription=subscribeToResult_1$1.subscribeToResult(this,e,t,r))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,r,n,o){this.resultSelector?this._tryNotifyNext(e,t,r,n):this.destination.next(t)},t.prototype._tryNotifyNext=function(e,t,r,n){var o;try{o=this.resultSelector(e,t,r,n)}catch(e){return void this.destination.error(e)}this.destination.next(o)},t}(OuterSubscriber_1$1.OuterSubscriber),switchMap_1={switchMap:switchMap_2},switchMap$1={default:switchMap_1,__moduleExports:switchMap_1,switchMap:switchMap_2},switchMap_1$1=switchMap$1&&switchMap_1||switchMap$1;function switchMap$2(e,t){return switchMap_1$1.switchMap(e,t)(this)}var switchMap_3=switchMap$2,switchMap_2$1={switchMap:switchMap_3},switchMap$3={default:switchMap_2$1,__moduleExports:switchMap_2$1,switchMap:switchMap_3},__extends$9=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ScalarObservable=function(e){function t(t,r){e.call(this),this.value=t,this.scheduler=r,this._isScalar=!0,r&&(this._isScalar=!1)}return __extends$9(t,e),t.create=function(e,r){return new t(e,r)},t.dispatch=function(e){var t=e.done,r=e.value,n=e.subscriber;t?n.complete():(n.next(r),n.closed||(e.done=!0,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.value,n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{done:!1,value:r,subscriber:e});e.next(r),e.closed||e.complete()},t}(Observable_1$1.Observable),ScalarObservable_2=ScalarObservable,ScalarObservable_1={ScalarObservable:ScalarObservable_2},ScalarObservable$1={default:ScalarObservable_1,__moduleExports:ScalarObservable_1,ScalarObservable:ScalarObservable_2},__extends$a=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},EmptyObservable=function(e){function t(t){e.call(this),this.scheduler=t}return __extends$a(t,e),t.create=function(e){return new t(e)},t.dispatch=function(e){e.subscriber.complete()},t.prototype._subscribe=function(e){var r=this.scheduler;if(r)return r.schedule(t.dispatch,0,{subscriber:e});e.complete()},t}(Observable_1$1.Observable),EmptyObservable_2=EmptyObservable,EmptyObservable_1={EmptyObservable:EmptyObservable_2},EmptyObservable$1={default:EmptyObservable_1,__moduleExports:EmptyObservable_1,EmptyObservable:EmptyObservable_2};function isScheduler(e){return e&&"function"==typeof e.schedule}var isScheduler_2=isScheduler,isScheduler_1={isScheduler:isScheduler_2},isScheduler$1={default:isScheduler_1,__moduleExports:isScheduler_1,isScheduler:isScheduler_2},ScalarObservable_1$1=ScalarObservable$1&&ScalarObservable_1||ScalarObservable$1,EmptyObservable_1$1=EmptyObservable$1&&EmptyObservable_1||EmptyObservable$1,isScheduler_1$1=isScheduler$1&&isScheduler_1||isScheduler$1,__extends$b=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ArrayObservable=function(e){function t(t,r){e.call(this),this.array=t,this.scheduler=r,r||1!==t.length||(this._isScalar=!0,this.value=t[0])}return __extends$b(t,e),t.create=function(e,r){return new t(e,r)},t.of=function(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];var n=e[e.length-1];isScheduler_1$1.isScheduler(n)?e.pop():n=null;var o=e.length;return o>1?new t(e,n):1===o?new ScalarObservable_1$1.ScalarObservable(e[0],n):new EmptyObservable_1$1.EmptyObservable(n)},t.dispatch=function(e){var t=e.array,r=e.index,n=e.count,o=e.subscriber;r>=n?o.complete():(o.next(t[r]),o.closed||(e.index=r+1,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.array,n=r.length,o=this.scheduler;if(o)return o.schedule(t.dispatch,0,{array:r,index:0,count:n,subscriber:e});for(var i=0;i<n&&!e.closed;i++)e.next(r[i]);e.complete()},t}(Observable_1$1.Observable),ArrayObservable_2=ArrayObservable,ArrayObservable_1={ArrayObservable:ArrayObservable_2},ArrayObservable$1={default:ArrayObservable_1,__moduleExports:ArrayObservable_1,ArrayObservable:ArrayObservable_2},ArrayObservable_1$1=ArrayObservable$1&&ArrayObservable_1||ArrayObservable$1,of_1=ArrayObservable_1$1.ArrayObservable.of,of={of:of_1},of$1={default:of,__moduleExports:of,of:of_1},__extends$c=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},PromiseObservable=function(e){function t(t,r){e.call(this),this.promise=t,this.scheduler=r}return __extends$c(t,e),t.create=function(e,r){return new t(e,r)},t.prototype._subscribe=function(e){var t=this,r=this.promise,n=this.scheduler;if(null==n)this._isScalar?e.closed||(e.next(this.value),e.complete()):r.then(function(r){t.value=r,t._isScalar=!0,e.closed||(e.next(r),e.complete())},function(t){e.closed||e.error(t)}).then(null,function(e){root_1$1.root.setTimeout(function(){throw e})});else if(this._isScalar){if(!e.closed)return n.schedule(dispatchNext,0,{value:this.value,subscriber:e})}else r.then(function(r){t.value=r,t._isScalar=!0,e.closed||e.add(n.schedule(dispatchNext,0,{value:r,subscriber:e}))},function(t){e.closed||e.add(n.schedule(dispatchError,0,{err:t,subscriber:e}))}).then(null,function(e){root_1$1.root.setTimeout(function(){throw e})})},t}(Observable_1$1.Observable),PromiseObservable_2=PromiseObservable;function dispatchNext(e){var t=e.value,r=e.subscriber;r.closed||(r.next(t),r.complete())}function dispatchError(e){var t=e.err,r=e.subscriber;r.closed||r.error(t)}var PromiseObservable_1={PromiseObservable:PromiseObservable_2},PromiseObservable$1={default:PromiseObservable_1,__moduleExports:PromiseObservable_1,PromiseObservable:PromiseObservable_2},__extends$d=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},IteratorObservable=function(e){function t(t,r){if(e.call(this),this.scheduler=r,null==t)throw new Error("iterator cannot be null.");this.iterator=getIterator(t)}return __extends$d(t,e),t.create=function(e,r){return new t(e,r)},t.dispatch=function(e){var t=e.index,r=e.hasError,n=e.iterator,o=e.subscriber;if(r)o.error(e.error);else{var i=n.next();i.done?o.complete():(o.next(i.value),e.index=t+1,o.closed?"function"==typeof n.return&&n.return():this.schedule(e))}},t.prototype._subscribe=function(e){var r=this.iterator,n=this.scheduler;if(n)return n.schedule(t.dispatch,0,{index:0,iterator:r,subscriber:e});for(;;){var o=r.next();if(o.done){e.complete();break}if(e.next(o.value),e.closed){"function"==typeof r.return&&r.return();break}}},t}(Observable_1$1.Observable),IteratorObservable_2=IteratorObservable,StringIterator=function(){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=e.length),this.str=e,this.idx=t,this.len=r}return e.prototype[iterator_1$1.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.str.charAt(this.idx++)}:{done:!0,value:void 0}},e}(),ArrayIterator=function(){function e(e,t,r){void 0===t&&(t=0),void 0===r&&(r=toLength$1(e)),this.arr=e,this.idx=t,this.len=r}return e.prototype[iterator_1$1.iterator]=function(){return this},e.prototype.next=function(){return this.idx<this.len?{done:!1,value:this.arr[this.idx++]}:{done:!0,value:void 0}},e}();function getIterator(e){var t=e[iterator_1$1.iterator];if(!t&&"string"==typeof e)return new StringIterator(e);if(!t&&void 0!==e.length)return new ArrayIterator(e);if(!t)throw new TypeError("object is not iterable");return e[iterator_1$1.iterator]()}var maxSafeInteger=Math.pow(2,53)-1;function toLength$1(e){var t=+e.length;return isNaN(t)?0:0!==t&&numberIsFinite(t)?(t=sign(t)*Math.floor(Math.abs(t)))<=0?0:t>maxSafeInteger?maxSafeInteger:t:t}function numberIsFinite(e){return"number"==typeof e&&root_1$1.root.isFinite(e)}function sign(e){var t=+e;return 0===t?t:isNaN(t)?t:t<0?-1:1}var IteratorObservable_1={IteratorObservable:IteratorObservable_2},IteratorObservable$1={default:IteratorObservable_1,__moduleExports:IteratorObservable_1,IteratorObservable:IteratorObservable_2},__extends$e=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ArrayLikeObservable=function(e){function t(t,r){e.call(this),this.arrayLike=t,this.scheduler=r,r||1!==t.length||(this._isScalar=!0,this.value=t[0])}return __extends$e(t,e),t.create=function(e,r){var n=e.length;return 0===n?new EmptyObservable_1$1.EmptyObservable:1===n?new ScalarObservable_1$1.ScalarObservable(e[0],r):new t(e,r)},t.dispatch=function(e){var t=e.arrayLike,r=e.index,n=e.length,o=e.subscriber;o.closed||(r>=n?o.complete():(o.next(t[r]),e.index=r+1,this.schedule(e)))},t.prototype._subscribe=function(e){var r=this.arrayLike,n=this.scheduler,o=r.length;if(n)return n.schedule(t.dispatch,0,{arrayLike:r,index:0,length:o,subscriber:e});for(var i=0;i<o&&!e.closed;i++)e.next(r[i]);e.complete()},t}(Observable_1$1.Observable),ArrayLikeObservable_2=ArrayLikeObservable,ArrayLikeObservable_1={ArrayLikeObservable:ArrayLikeObservable_2},ArrayLikeObservable$1={default:ArrayLikeObservable_1,__moduleExports:ArrayLikeObservable_1,ArrayLikeObservable:ArrayLikeObservable_2},Notification=function(){function e(e,t,r){this.kind=e,this.value=t,this.error=r,this.hasValue="N"===e}return e.prototype.observe=function(e){switch(this.kind){case"N":return e.next&&e.next(this.value);case"E":return e.error&&e.error(this.error);case"C":return e.complete&&e.complete()}},e.prototype.do=function(e,t,r){switch(this.kind){case"N":return e&&e(this.value);case"E":return t&&t(this.error);case"C":return r&&r()}},e.prototype.accept=function(e,t,r){return e&&"function"==typeof e.next?this.observe(e):this.do(e,t,r)},e.prototype.toObservable=function(){switch(this.kind){case"N":return Observable_1$1.Observable.of(this.value);case"E":return Observable_1$1.Observable.throw(this.error);case"C":return Observable_1$1.Observable.empty()}throw new Error("unexpected notification kind value")},e.createNext=function(t){return void 0!==t?new e("N",t):e.undefinedValueNotification},e.createError=function(t){return new e("E",void 0,t)},e.createComplete=function(){return e.completeNotification},e.completeNotification=new e("C"),e.undefinedValueNotification=new e("N",void 0),e}(),Notification_2=Notification,Notification_1={Notification:Notification_2},Notification$1={default:Notification_1,__moduleExports:Notification_1,Notification:Notification_2},Notification_1$1=Notification$1&&Notification_1||Notification$1,__extends$f=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function observeOn(e,t){return void 0===t&&(t=0),function(r){return r.lift(new ObserveOnOperator(e,t))}}var observeOn_2=observeOn,ObserveOnOperator=function(){function e(e,t){void 0===t&&(t=0),this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return t.subscribe(new ObserveOnSubscriber(e,this.scheduler,this.delay))},e}(),ObserveOnOperator_1=ObserveOnOperator,ObserveOnSubscriber=function(e){function t(t,r,n){void 0===n&&(n=0),e.call(this,t),this.scheduler=r,this.delay=n}return __extends$f(t,e),t.dispatch=function(e){var t=e.notification,r=e.destination;t.observe(r),this.unsubscribe()},t.prototype.scheduleMessage=function(e){this.add(this.scheduler.schedule(t.dispatch,this.delay,new ObserveOnMessage(e,this.destination)))},t.prototype._next=function(e){this.scheduleMessage(Notification_1$1.Notification.createNext(e))},t.prototype._error=function(e){this.scheduleMessage(Notification_1$1.Notification.createError(e))},t.prototype._complete=function(){this.scheduleMessage(Notification_1$1.Notification.createComplete())},t}(Subscriber_1$1.Subscriber),ObserveOnSubscriber_1=ObserveOnSubscriber,ObserveOnMessage=function(e,t){this.notification=e,this.destination=t},ObserveOnMessage_1=ObserveOnMessage,observeOn_1={observeOn:observeOn_2,ObserveOnOperator:ObserveOnOperator_1,ObserveOnSubscriber:ObserveOnSubscriber_1,ObserveOnMessage:ObserveOnMessage_1},observeOn$1={default:observeOn_1,__moduleExports:observeOn_1,observeOn:observeOn_2,ObserveOnOperator:ObserveOnOperator_1,ObserveOnSubscriber:ObserveOnSubscriber_1,ObserveOnMessage:ObserveOnMessage_1},PromiseObservable_1$1=PromiseObservable$1&&PromiseObservable_1||PromiseObservable$1,IteratorObservable_1$1=IteratorObservable$1&&IteratorObservable_1||IteratorObservable$1,ArrayLikeObservable_1$1=ArrayLikeObservable$1&&ArrayLikeObservable_1||ArrayLikeObservable$1,observeOn_1$1=observeOn$1&&observeOn_1||observeOn$1,__extends$g=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},FromObservable=function(e){function t(t,r){e.call(this,null),this.ish=t,this.scheduler=r}return __extends$g(t,e),t.create=function(e,r){if(null!=e){if("function"==typeof e[observable_1$1.observable])return e instanceof Observable_1$1.Observable&&!r?e:new t(e,r);if(isArray_1$1.isArray(e))return new ArrayObservable_1$1.ArrayObservable(e,r);if(isPromise_1$1.isPromise(e))return new PromiseObservable_1$1.PromiseObservable(e,r);if("function"==typeof e[iterator_1$1.iterator]||"string"==typeof e)return new IteratorObservable_1$1.IteratorObservable(e,r);if(isArrayLike_1$1.isArrayLike(e))return new ArrayLikeObservable_1$1.ArrayLikeObservable(e,r)}throw new TypeError((null!==e&&(void 0===e?"undefined":_typeof(e))||e)+" is not observable")},t.prototype._subscribe=function(e){var t=this.ish,r=this.scheduler;return null==r?t[observable_1$1.observable]().subscribe(e):t[observable_1$1.observable]().subscribe(new observeOn_1$1.ObserveOnSubscriber(e,r,0))},t}(Observable_1$1.Observable),FromObservable_2=FromObservable,FromObservable_1={FromObservable:FromObservable_2},FromObservable$1={default:FromObservable_1,__moduleExports:FromObservable_1,FromObservable:FromObservable_2},FromObservable_1$1=FromObservable$1&&FromObservable_1||FromObservable$1,from_1=FromObservable_1$1.FromObservable.create,from$1={from:from_1},from$2={default:from$1,__moduleExports:from$1,from:from_1},__extends$h=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function filter(e,t){return function(r){return r.lift(new FilterOperator(e,t))}}var filter_2=filter,FilterOperator=function(){function e(e,t){this.predicate=e,this.thisArg=t}return e.prototype.call=function(e,t){return t.subscribe(new FilterSubscriber(e,this.predicate,this.thisArg))},e}(),FilterSubscriber=function(e){function t(t,r,n){e.call(this,t),this.predicate=r,this.thisArg=n,this.count=0}return __extends$h(t,e),t.prototype._next=function(e){var t;try{t=this.predicate.call(this.thisArg,e,this.count++)}catch(e){return void this.destination.error(e)}t&&this.destination.next(e)},t}(Subscriber_1$1.Subscriber),filter_1={filter:filter_2},filter$1={default:filter_1,__moduleExports:filter_1,filter:filter_2},filter_1$1=filter$1&&filter_1||filter$1;function filter$2(e,t){return filter_1$1.filter(e,t)(this)}var filter_3=filter$2,filter_2$1={filter:filter_3},filter$3={default:filter_2$1,__moduleExports:filter_2$1,filter:filter_3},keyHasType=function(e,t){return e===t||"function"==typeof t&&e===t.toString()};function ofType(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return filter_3.call(e,function(e){var r=e.type,n=t.length;if(1===n)return keyHasType(r,t[0]);for(var o=0;o<n;o++)if(keyHasType(r,t[o]))return!0;return!1})}}var _createClass=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function _classCallCheck(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function _possibleConstructorReturn(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==(void 0===t?"undefined":_typeof(t))&&"function"!=typeof t?e:t}function _inherits(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+(void 0===t?"undefined":_typeof(t)));e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var ActionsObservable=function(e){function t(e){_classCallCheck(this,t);var r=_possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.source=e,r}return _inherits(t,Observable_2),_createClass(t,null,[{key:"of",value:function(){return new this(of_1.apply(void 0,arguments))}},{key:"from",value:function(e,t){return new this(from_1(e,t))}}]),_createClass(t,[{key:"lift",value:function(e){var r=new t(this);return r.operator=e,r}},{key:"ofType",value:function(){return ofType.apply(void 0,arguments)(this)}}]),t}(),EPIC_END="@@redux-observable/EPIC_END",_extends$2=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},defaultAdapter={input:function(e){return e},output:function(e){return e}},defaultOptions={adapter:defaultAdapter};function createEpicMiddleware(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:defaultOptions;if("function"!=typeof e)throw new TypeError("You must provide a root Epic to createEpicMiddleware");t=_extends$2({},defaultOptions,t);var r=new Subject_2,n=t.adapter.input(new ActionsObservable(r)),o=new Subject_2,i=void 0,a=function(a){return i=a,function(a){var s;return(s=map_3.call(o,function(e){var r=i,o="dependencies"in t?e(n,r,t.dependencies):e(n,r);if(!o)throw new TypeError('Your root Epic "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return o}),switchMap_3).call(s,function(e){return t.adapter.output(e)}).subscribe(i.dispatch),o.next(e),function(e){var t=a(e);return r.next(e),t}}};return a.replaceEpic=function(e){i.dispatch({type:EPIC_END}),o.next(e)},a}var __extends$i=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function mergeMap(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(n){return"number"==typeof t&&(r=t,t=null),n.lift(new MergeMapOperator(e,t,r))}}var mergeMap_2=mergeMap,MergeMapOperator=function(){function e(e,t,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.project=e,this.resultSelector=t,this.concurrent=r}return e.prototype.call=function(e,t){return t.subscribe(new MergeMapSubscriber(e,this.project,this.resultSelector,this.concurrent))},e}(),MergeMapOperator_1=MergeMapOperator,MergeMapSubscriber=function(e){function t(t,r,n,o){void 0===o&&(o=Number.POSITIVE_INFINITY),e.call(this,t),this.project=r,this.resultSelector=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return __extends$i(t,e),t.prototype._next=function(e){this.active<this.concurrent?this._tryNext(e):this.buffer.push(e)},t.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.project(e,r)}catch(e){return void this.destination.error(e)}this.active++,this._innerSub(t,e,r)},t.prototype._innerSub=function(e,t,r){this.add(subscribeToResult_1$1.subscribeToResult(this,e,t,r))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,r,n,o){this.resultSelector?this._notifyResultSelector(e,t,r,n):this.destination.next(t)},t.prototype._notifyResultSelector=function(e,t,r,n){var o;try{o=this.resultSelector(e,t,r,n)}catch(e){return void this.destination.error(e)}this.destination.next(o)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(OuterSubscriber_1$1.OuterSubscriber),MergeMapSubscriber_1=MergeMapSubscriber,mergeMap_1={mergeMap:mergeMap_2,MergeMapOperator:MergeMapOperator_1,MergeMapSubscriber:MergeMapSubscriber_1},mergeMap$1={default:mergeMap_1,__moduleExports:mergeMap_1,mergeMap:mergeMap_2,MergeMapOperator:MergeMapOperator_1,MergeMapSubscriber:MergeMapSubscriber_1};function identity(e){return e}var identity_2=identity,identity_1={identity:identity_2},identity$1={default:identity_1,__moduleExports:identity_1,identity:identity_2},mergeMap_1$1=mergeMap$1&&mergeMap_1||mergeMap$1,identity_1$1=identity$1&&identity_1||identity$1;function mergeAll(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),mergeMap_1$1.mergeMap(identity_1$1.identity,null,e)}var mergeAll_2=mergeAll,mergeAll_1={mergeAll:mergeAll_2},mergeAll$1={default:mergeAll_1,__moduleExports:mergeAll_1,mergeAll:mergeAll_2},mergeAll_1$1=mergeAll$1&&mergeAll_1||mergeAll$1;function merge(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=Number.POSITIVE_INFINITY,n=null,o=e[e.length-1];return isScheduler_1$1.isScheduler(o)?(n=e.pop(),e.length>1&&"number"==typeof e[e.length-1]&&(r=e.pop())):"number"==typeof o&&(r=e.pop()),null===n&&1===e.length&&e[0]instanceof Observable_1$1.Observable?e[0]:mergeAll_1$1.mergeAll(r)(new ArrayObservable_1$1.ArrayObservable(e,n))}var merge_2=merge,merge_1={merge:merge_2},merge$1={default:merge_1,__moduleExports:merge_1,merge:merge_2};function _toConsumableArray(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}var combineEpics=function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(){for(var e=arguments.length,r=Array(e),n=0;n<e;n++)r[n]=arguments[n];return merge_2.apply(void 0,_toConsumableArray(t.map(function(e){var t=e.apply(void 0,r);if(!t)throw new TypeError('combineEpics: one of the provided Epics "'+(e.name||"<anonymous>")+"\" does not return a stream. Double check you're not missing a return statement!");return t})))}},objectPath=createCommonjsModule(function(e){e.exports=function(){var e=Object.prototype.toString,t=Object.prototype.hasOwnProperty;function r(e){if(!e)return!0;if(s(e)&&0===e.length)return!0;if(!i(e)){for(var r in e)if(t.call(e,r))return!1;return!0}return!1}function n(t){return e.call(t)}function o(e){return"number"==typeof e||"[object Number]"===n(e)}function i(e){return"string"==typeof e||"[object String]"===n(e)}function a(e){return"object"===(void 0===e?"undefined":_typeof(e))&&"[object Object]"===n(e)}function s(e){return"object"===(void 0===e?"undefined":_typeof(e))&&"number"==typeof e.length&&"[object Array]"===n(e)}function c(e){var t=parseInt(e);return t.toString()===e?t:e}function u(e,t,n,a){if(o(t)&&(t=[t]),r(t))return e;if(i(t))return u(e,t.split(".").map(c),n,a);var s=t[0];if(1===t.length){var l=e[s];return void 0!==l&&a||(e[s]=n),l}return void 0===e[s]&&(o(t[1])?e[s]=[]:e[s]={}),u(e[s],t.slice(1),n,a)}var l=function e(t){return Object.keys(e).reduce(function(r,n){return"function"==typeof e[n]&&(r[n]=e[n].bind(e,t)),r},{})};return l.has=function(e,n){if(r(e))return!1;if(o(n)?n=[n]:i(n)&&(n=n.split(".")),r(n)||0===n.length)return!1;for(var c=0;c<n.length;c++){var u=n[c];if(!a(e)&&!s(e)||!t.call(e,u))return!1;e=e[u]}return!0},l.ensureExists=function(e,t,r){return u(e,t,r,!0)},l.set=function(e,t,r,n){return u(e,t,r,n)},l.insert=function(e,t,r,n){var o=l.get(e,t);n=~~n,s(o)||l.set(e,t,o=[]),o.splice(n,0,r)},l.empty=function(e,c){if(r(c))return e;if(!r(e)){var u,p;if(!(u=l.get(e,c)))return e;if(i(u))return l.set(e,c,"");if(function(e){return"boolean"==typeof e||"[object Boolean]"===n(e)}(u))return l.set(e,c,!1);if(o(u))return l.set(e,c,0);if(s(u))u.length=0;else{if(!a(u))return l.set(e,c,null);for(p in u)t.call(u,p)&&delete u[p]}}},l.push=function(e,t){var r=l.get(e,t);s(r)||l.set(e,t,r=[]),r.push.apply(r,Array.prototype.slice.call(arguments,2))},l.coalesce=function(e,t,r){for(var n,o=0,i=t.length;o<i;o++)if(void 0!==(n=l.get(e,t[o])))return n;return r},l.get=function(e,t,n){if(o(t)&&(t=[t]),r(t))return e;if(r(e))return n;if(i(t))return l.get(e,t.split("."),n);var a=c(t[0]);return 1===t.length?void 0===e[a]?n:e[a]:l.get(e[a],t.slice(1),n)},l.del=function(e,t){return function e(t,n){if(o(n)&&(n=[n]),!r(t)){if(r(n))return t;if(i(n))return e(t,n.split("."));var a=c(n[0]),u=t[a];if(1===n.length)void 0!==u&&(s(t)?t.splice(a,1):delete t[a]);else if(void 0!==t[a])return e(t[a],n.slice(1));return t}}(e,t)},l}()}),objectPath$1={default:objectPath,__moduleExports:objectPath},require$$0$s=objectPath$1&&objectPath||objectPath$1,getValue=require$$0$s.get;function defaultCompare(e,t){return e===t}function watch(e,t,r){r=r||defaultCompare;var n=getValue(e(),t);return function(o){return function(){var i=getValue(e(),t);if(!r(n,i)){var a=n;n=i,o(i,a,t)}}}}var reduxWatch=watch,fromPromise_1=PromiseObservable_1$1.PromiseObservable.create,fromPromise={fromPromise:fromPromise_1},fromPromise$1={default:fromPromise,__moduleExports:fromPromise,fromPromise:fromPromise_1},__extends$j=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function audit(e){return function(t){return t.lift(new AuditOperator(e))}}var audit_2=audit,AuditOperator=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new AuditSubscriber(e,this.durationSelector))},e}(),AuditSubscriber=function(e){function t(t,r){e.call(this,t),this.durationSelector=r,this.hasValue=!1}return __extends$j(t,e),t.prototype._next=function(e){if(this.value=e,this.hasValue=!0,!this.throttled){var t=tryCatch_1$1.tryCatch(this.durationSelector)(e);if(t===errorObject_1$1.errorObject)this.destination.error(errorObject_1$1.errorObject.e);else{var r=subscribeToResult_1$1.subscribeToResult(this,t);r.closed?this.clearThrottle():this.add(this.throttled=r)}}},t.prototype.clearThrottle=function(){var e=this.value,t=this.hasValue,r=this.throttled;r&&(this.remove(r),this.throttled=null,r.unsubscribe()),t&&(this.value=null,this.hasValue=!1,this.destination.next(e))},t.prototype.notifyNext=function(e,t,r,n){this.clearThrottle()},t.prototype.notifyComplete=function(){this.clearThrottle()},t}(OuterSubscriber_1$1.OuterSubscriber),audit_1={audit:audit_2},audit$1={default:audit_1,__moduleExports:audit_1,audit:audit_2},__extends$k=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},Action=function(e){function t(t,r){e.call(this)}return __extends$k(t,e),t.prototype.schedule=function(e,t){return this},t}(Subscription_1$1.Subscription),Action_2=Action,Action_1={Action:Action_2},Action$1={default:Action_1,__moduleExports:Action_1,Action:Action_2},Action_1$1=Action$1&&Action_1||Action$1,__extends$l=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},AsyncAction=function(e){function t(t,r){e.call(this,t,r),this.scheduler=t,this.pending=!1,this.work=r}return __extends$l(t,e),t.prototype.schedule=function(e,t){if(void 0===t&&(t=0),this.closed)return this;this.state=e,this.pending=!0;var r=this.id,n=this.scheduler;return null!=r&&(this.id=this.recycleAsyncId(n,r,t)),this.delay=t,this.id=this.id||this.requestAsyncId(n,this.id,t),this},t.prototype.requestAsyncId=function(e,t,r){return void 0===r&&(r=0),root_1$1.root.setInterval(e.flush.bind(e,this),r)},t.prototype.recycleAsyncId=function(e,t,r){if(void 0===r&&(r=0),null!==r&&this.delay===r&&!1===this.pending)return t;root_1$1.root.clearInterval(t)},t.prototype.execute=function(e,t){if(this.closed)return new Error("executing a cancelled action");this.pending=!1;var r=this._execute(e,t);if(r)return r;!1===this.pending&&null!=this.id&&(this.id=this.recycleAsyncId(this.scheduler,this.id,null))},t.prototype._execute=function(e,t){var r=!1,n=void 0;try{this.work(e)}catch(e){r=!0,n=!!e&&e||new Error(e)}if(r)return this.unsubscribe(),n},t.prototype._unsubscribe=function(){var e=this.id,t=this.scheduler,r=t.actions,n=r.indexOf(this);this.work=null,this.state=null,this.pending=!1,this.scheduler=null,-1!==n&&r.splice(n,1),null!=e&&(this.id=this.recycleAsyncId(t,e,null)),this.delay=null},t}(Action_1$1.Action),AsyncAction_2=AsyncAction,AsyncAction_1={AsyncAction:AsyncAction_2},AsyncAction$1={default:AsyncAction_1,__moduleExports:AsyncAction_1,AsyncAction:AsyncAction_2},Scheduler=function(){function e(t,r){void 0===r&&(r=e.now),this.SchedulerAction=t,this.now=r}return e.prototype.schedule=function(e,t,r){return void 0===t&&(t=0),new this.SchedulerAction(this,e).schedule(r,t)},e.now=Date.now?Date.now:function(){return+new Date},e}(),Scheduler_2=Scheduler,Scheduler_1={Scheduler:Scheduler_2},Scheduler$1={default:Scheduler_1,__moduleExports:Scheduler_1,Scheduler:Scheduler_2},Scheduler_1$1=Scheduler$1&&Scheduler_1||Scheduler$1,__extends$m=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},AsyncScheduler=function(e){function t(){e.apply(this,arguments),this.actions=[],this.active=!1,this.scheduled=void 0}return __extends$m(t,e),t.prototype.flush=function(e){var t=this.actions;if(this.active)t.push(e);else{var r;this.active=!0;do{if(r=e.execute(e.state,e.delay))break}while(e=t.shift());if(this.active=!1,r){for(;e=t.shift();)e.unsubscribe();throw r}}},t}(Scheduler_1$1.Scheduler),AsyncScheduler_2=AsyncScheduler,AsyncScheduler_1={AsyncScheduler:AsyncScheduler_2},AsyncScheduler$1={default:AsyncScheduler_1,__moduleExports:AsyncScheduler_1,AsyncScheduler:AsyncScheduler_2},AsyncAction_1$1=AsyncAction$1&&AsyncAction_1||AsyncAction$1,AsyncScheduler_1$1=AsyncScheduler$1&&AsyncScheduler_1||AsyncScheduler$1,async_1=new AsyncScheduler_1$1.AsyncScheduler(AsyncAction_1$1.AsyncAction),async={async:async_1},async$1={default:async,__moduleExports:async,async:async_1};function isNumeric(e){return!isArray_1$1.isArray(e)&&e-parseFloat(e)+1>=0}var isNumeric_2=isNumeric,isNumeric_1={isNumeric:isNumeric_2},isNumeric$1={default:isNumeric_1,__moduleExports:isNumeric_1,isNumeric:isNumeric_2};function isDate(e){return e instanceof Date&&!isNaN(+e)}var isDate_2=isDate,isDate_1={isDate:isDate_2},isDate$1={default:isDate_1,__moduleExports:isDate_1,isDate:isDate_2},isNumeric_1$1=isNumeric$1&&isNumeric_1||isNumeric$1,async_1$1=async$1&&async||async$1,isDate_1$1=isDate$1&&isDate_1||isDate$1,__extends$n=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},TimerObservable=function(e){function t(t,r,n){void 0===t&&(t=0),e.call(this),this.period=-1,this.dueTime=0,isNumeric_1$1.isNumeric(r)?this.period=Number(r)<1?1:Number(r):isScheduler_1$1.isScheduler(r)&&(n=r),isScheduler_1$1.isScheduler(n)||(n=async_1$1.async),this.scheduler=n,this.dueTime=isDate_1$1.isDate(t)?+t-this.scheduler.now():t}return __extends$n(t,e),t.create=function(e,r,n){return void 0===e&&(e=0),new t(e,r,n)},t.dispatch=function(e){var t=e.index,r=e.period,n=e.subscriber;if(n.next(t),!n.closed){if(-1===r)return n.complete();e.index=t+1,this.schedule(e,r)}},t.prototype._subscribe=function(e){var r=this.period,n=this.dueTime;return this.scheduler.schedule(t.dispatch,n,{index:0,period:r,subscriber:e})},t}(Observable_1$1.Observable),TimerObservable_2=TimerObservable,TimerObservable_1={TimerObservable:TimerObservable_2},TimerObservable$1={default:TimerObservable_1,__moduleExports:TimerObservable_1,TimerObservable:TimerObservable_2},TimerObservable_1$1=TimerObservable$1&&TimerObservable_1||TimerObservable$1,timer_1=TimerObservable_1$1.TimerObservable.create,timer={timer:timer_1},timer$1={default:timer,__moduleExports:timer,timer:timer_1},audit_1$1=audit$1&&audit_1||audit$1,timer_1$1=timer$1&&timer||timer$1;function auditTime(e,t){return void 0===t&&(t=async_1$1.async),audit_1$1.audit(function(){return timer_1$1.timer(e,t)})}var auditTime_2=auditTime,auditTime_1={auditTime:auditTime_2},auditTime$1={default:auditTime_1,__moduleExports:auditTime_1,auditTime:auditTime_2},__extends$o=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function buffer(e){return function(t){return t.lift(new BufferOperator(e))}}var buffer_2=buffer,BufferOperator=function(){function e(e){this.closingNotifier=e}return e.prototype.call=function(e,t){return t.subscribe(new BufferSubscriber(e,this.closingNotifier))},e}(),BufferSubscriber=function(e){function t(t,r){e.call(this,t),this.buffer=[],this.add(subscribeToResult_1$1.subscribeToResult(this,r))}return __extends$o(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype.notifyNext=function(e,t,r,n,o){var i=this.buffer;this.buffer=[],this.destination.next(i)},t}(OuterSubscriber_1$1.OuterSubscriber),buffer_1={buffer:buffer_2},buffer$1={default:buffer_1,__moduleExports:buffer_1,buffer:buffer_2},__extends$p=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function bufferCount(e,t){return void 0===t&&(t=null),function(r){return r.lift(new BufferCountOperator(e,t))}}var bufferCount_2=bufferCount,BufferCountOperator=function(){function e(e,t){this.bufferSize=e,this.startBufferEvery=t,this.subscriberClass=t&&e!==t?BufferSkipCountSubscriber:BufferCountSubscriber}return e.prototype.call=function(e,t){return t.subscribe(new this.subscriberClass(e,this.bufferSize,this.startBufferEvery))},e}(),BufferCountSubscriber=function(e){function t(t,r){e.call(this,t),this.bufferSize=r,this.buffer=[]}return __extends$p(t,e),t.prototype._next=function(e){var t=this.buffer;t.push(e),t.length==this.bufferSize&&(this.destination.next(t),this.buffer=[])},t.prototype._complete=function(){var t=this.buffer;t.length>0&&this.destination.next(t),e.prototype._complete.call(this)},t}(Subscriber_1$1.Subscriber),BufferSkipCountSubscriber=function(e){function t(t,r,n){e.call(this,t),this.bufferSize=r,this.startBufferEvery=n,this.buffers=[],this.count=0}return __extends$p(t,e),t.prototype._next=function(e){var t=this.bufferSize,r=this.startBufferEvery,n=this.buffers,o=this.count;this.count++,o%r==0&&n.push([]);for(var i=n.length;i--;){var a=n[i];a.push(e),a.length===t&&(n.splice(i,1),this.destination.next(a))}},t.prototype._complete=function(){for(var t=this.buffers,r=this.destination;t.length>0;){var n=t.shift();n.length>0&&r.next(n)}e.prototype._complete.call(this)},t}(Subscriber_1$1.Subscriber),bufferCount_1={bufferCount:bufferCount_2},bufferCount$1={default:bufferCount_1,__moduleExports:bufferCount_1,bufferCount:bufferCount_2},__extends$q=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function bufferTime(e){var t=arguments.length,r=async_1$1.async;isScheduler_1$1.isScheduler(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],t--);var n=null;t>=2&&(n=arguments[1]);var o=Number.POSITIVE_INFINITY;return t>=3&&(o=arguments[2]),function(t){return t.lift(new BufferTimeOperator(e,n,o,r))}}var bufferTime_2=bufferTime,BufferTimeOperator=function(){function e(e,t,r,n){this.bufferTimeSpan=e,this.bufferCreationInterval=t,this.maxBufferSize=r,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new BufferTimeSubscriber(e,this.bufferTimeSpan,this.bufferCreationInterval,this.maxBufferSize,this.scheduler))},e}(),Context=function(){this.buffer=[]},BufferTimeSubscriber=function(e){function t(t,r,n,o,i){e.call(this,t),this.bufferTimeSpan=r,this.bufferCreationInterval=n,this.maxBufferSize=o,this.scheduler=i,this.contexts=[];var a=this.openContext();if(this.timespanOnly=null==n||n<0,this.timespanOnly){var s={subscriber:this,context:a,bufferTimeSpan:r};this.add(a.closeAction=i.schedule(dispatchBufferTimeSpanOnly,r,s))}else{var c={subscriber:this,context:a},u={bufferTimeSpan:r,bufferCreationInterval:n,subscriber:this,scheduler:i};this.add(a.closeAction=i.schedule(dispatchBufferClose,r,c)),this.add(i.schedule(dispatchBufferCreation,n,u))}}return __extends$q(t,e),t.prototype._next=function(e){for(var t,r=this.contexts,n=r.length,o=0;o<n;o++){var i=r[o],a=i.buffer;a.push(e),a.length==this.maxBufferSize&&(t=i)}t&&this.onBufferFull(t)},t.prototype._error=function(t){this.contexts.length=0,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts,r=this.destination;t.length>0;){var n=t.shift();r.next(n.buffer)}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.contexts=null},t.prototype.onBufferFull=function(e){this.closeContext(e);var t=e.closeAction;if(t.unsubscribe(),this.remove(t),!this.closed&&this.timespanOnly){e=this.openContext();var r=this.bufferTimeSpan,n={subscriber:this,context:e,bufferTimeSpan:r};this.add(e.closeAction=this.scheduler.schedule(dispatchBufferTimeSpanOnly,r,n))}},t.prototype.openContext=function(){var e=new Context;return this.contexts.push(e),e},t.prototype.closeContext=function(e){this.destination.next(e.buffer);var t=this.contexts;(t?t.indexOf(e):-1)>=0&&t.splice(t.indexOf(e),1)},t}(Subscriber_1$1.Subscriber);function dispatchBufferTimeSpanOnly(e){var t=e.subscriber,r=e.context;r&&t.closeContext(r),t.closed||(e.context=t.openContext(),e.context.closeAction=this.schedule(e,e.bufferTimeSpan))}function dispatchBufferCreation(e){var t=e.bufferCreationInterval,r=e.bufferTimeSpan,n=e.subscriber,o=e.scheduler,i=n.openContext();n.closed||(n.add(i.closeAction=o.schedule(dispatchBufferClose,r,{subscriber:n,context:i})),this.schedule(e,t))}function dispatchBufferClose(e){var t=e.subscriber,r=e.context;t.closeContext(r)}var bufferTime_1={bufferTime:bufferTime_2},bufferTime$1={default:bufferTime_1,__moduleExports:bufferTime_1,bufferTime:bufferTime_2},__extends$r=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function bufferToggle(e,t){return function(r){return r.lift(new BufferToggleOperator(e,t))}}var bufferToggle_2=bufferToggle,BufferToggleOperator=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new BufferToggleSubscriber(e,this.openings,this.closingSelector))},e}(),BufferToggleSubscriber=function(e){function t(t,r,n){e.call(this,t),this.openings=r,this.closingSelector=n,this.contexts=[],this.add(subscribeToResult_1$1.subscribeToResult(this,r))}return __extends$r(t,e),t.prototype._next=function(e){for(var t=this.contexts,r=t.length,n=0;n<r;n++)t[n].buffer.push(e)},t.prototype._error=function(t){for(var r=this.contexts;r.length>0;){var n=r.shift();n.subscription.unsubscribe(),n.buffer=null,n.subscription=null}this.contexts=null,e.prototype._error.call(this,t)},t.prototype._complete=function(){for(var t=this.contexts;t.length>0;){var r=t.shift();this.destination.next(r.buffer),r.subscription.unsubscribe(),r.buffer=null,r.subscription=null}this.contexts=null,e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,r,n,o){e?this.closeBuffer(e):this.openBuffer(t)},t.prototype.notifyComplete=function(e){this.closeBuffer(e.context)},t.prototype.openBuffer=function(e){try{var t=this.closingSelector.call(this,e);t&&this.trySubscribe(t)}catch(e){this._error(e)}},t.prototype.closeBuffer=function(e){var t=this.contexts;if(t&&e){var r=e.buffer,n=e.subscription;this.destination.next(r),t.splice(t.indexOf(e),1),this.remove(n),n.unsubscribe()}},t.prototype.trySubscribe=function(e){var t=this.contexts,r=new Subscription_1$1.Subscription,n={buffer:[],subscription:r};t.push(n);var o=subscribeToResult_1$1.subscribeToResult(this,e,n);!o||o.closed?this.closeBuffer(n):(o.context=n,this.add(o),r.add(o))},t}(OuterSubscriber_1$1.OuterSubscriber),bufferToggle_1={bufferToggle:bufferToggle_2},bufferToggle$1={default:bufferToggle_1,__moduleExports:bufferToggle_1,bufferToggle:bufferToggle_2},__extends$s=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function bufferWhen(e){return function(t){return t.lift(new BufferWhenOperator(e))}}var bufferWhen_2=bufferWhen,BufferWhenOperator=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new BufferWhenSubscriber(e,this.closingSelector))},e}(),BufferWhenSubscriber=function(e){function t(t,r){e.call(this,t),this.closingSelector=r,this.subscribing=!1,this.openBuffer()}return __extends$s(t,e),t.prototype._next=function(e){this.buffer.push(e)},t.prototype._complete=function(){var t=this.buffer;t&&this.destination.next(t),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.buffer=null,this.subscribing=!1},t.prototype.notifyNext=function(e,t,r,n,o){this.openBuffer()},t.prototype.notifyComplete=function(){this.subscribing?this.complete():this.openBuffer()},t.prototype.openBuffer=function(){var e=this.closingSubscription;e&&(this.remove(e),e.unsubscribe());var t=this.buffer;this.buffer&&this.destination.next(t),this.buffer=[];var r=tryCatch_1$1.tryCatch(this.closingSelector)();r===errorObject_1$1.errorObject?this.error(errorObject_1$1.errorObject.e):(e=new Subscription_1$1.Subscription,this.closingSubscription=e,this.add(e),this.subscribing=!0,e.add(subscribeToResult_1$1.subscribeToResult(this,r)),this.subscribing=!1)},t}(OuterSubscriber_1$1.OuterSubscriber),bufferWhen_1={bufferWhen:bufferWhen_2},bufferWhen$1={default:bufferWhen_1,__moduleExports:bufferWhen_1,bufferWhen:bufferWhen_2},__extends$t=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function catchError(e){return function(t){var r=new CatchOperator(e),n=t.lift(r);return r.caught=n}}var catchError_2=catchError,CatchOperator=function(){function e(e){this.selector=e}return e.prototype.call=function(e,t){return t.subscribe(new CatchSubscriber(e,this.selector,this.caught))},e}(),CatchSubscriber=function(e){function t(t,r,n){e.call(this,t),this.selector=r,this.caught=n}return __extends$t(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=void 0;try{r=this.selector(t,this.caught)}catch(t){return void e.prototype.error.call(this,t)}this._unsubscribeAndRecycle(),this.add(subscribeToResult_1$1.subscribeToResult(this,r))}},t}(OuterSubscriber_1$1.OuterSubscriber),catchError_1={catchError:catchError_2},catchError$1={default:catchError_1,__moduleExports:catchError_1,catchError:catchError_2},__extends$u=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},none={};function combineLatest(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=null;return"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&isArray_1$1.isArray(e[0])&&(e=e[0].slice()),function(t){return t.lift.call(new ArrayObservable_1$1.ArrayObservable([t].concat(e)),new CombineLatestOperator(r))}}var combineLatest_2=combineLatest,CombineLatestOperator=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new CombineLatestSubscriber(e,this.project))},e}(),CombineLatestOperator_1=CombineLatestOperator,CombineLatestSubscriber=function(e){function t(t,r){e.call(this,t),this.project=r,this.active=0,this.values=[],this.observables=[]}return __extends$u(t,e),t.prototype._next=function(e){this.values.push(none),this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{this.active=t,this.toRespond=t;for(var r=0;r<t;r++){var n=e[r];this.add(subscribeToResult_1$1.subscribeToResult(this,n,n,r))}}},t.prototype.notifyComplete=function(e){0==(this.active-=1)&&this.destination.complete()},t.prototype.notifyNext=function(e,t,r,n,o){var i=this.values,a=i[r],s=this.toRespond?a===none?--this.toRespond:this.toRespond:0;i[r]=t,0===s&&(this.project?this._tryProject(i):this.destination.next(i.slice()))},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(OuterSubscriber_1$1.OuterSubscriber),CombineLatestSubscriber_1=CombineLatestSubscriber,combineLatest_1={combineLatest:combineLatest_2,CombineLatestOperator:CombineLatestOperator_1,CombineLatestSubscriber:CombineLatestSubscriber_1},combineLatest$1={default:combineLatest_1,__moduleExports:combineLatest_1,combineLatest:combineLatest_2,CombineLatestOperator:CombineLatestOperator_1,CombineLatestSubscriber:CombineLatestSubscriber_1},combineLatest_1$1=combineLatest$1&&combineLatest_1||combineLatest$1;function combineAll(e){return function(t){return t.lift(new combineLatest_1$1.CombineLatestOperator(e))}}var combineAll_2=combineAll,combineAll_1={combineAll:combineAll_2},combineAll$1={default:combineAll_1,__moduleExports:combineAll_1,combineAll:combineAll_2};function concatAll(){return mergeAll_1$1.mergeAll(1)}var concatAll_2=concatAll,concatAll_1={concatAll:concatAll_2},concatAll$1={default:concatAll_1,__moduleExports:concatAll_1,concatAll:concatAll_2},of_1$1=of$1&&of||of$1,from_1$1=from$2&&from$1||from$2,concatAll_1$1=concatAll$1&&concatAll_1||concatAll$1;function concat(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 1===e.length||2===e.length&&isScheduler_1$1.isScheduler(e[1])?from_1$1.from(e[0]):concatAll_1$1.concatAll()(of_1$1.of.apply(void 0,e))}var concat_2=concat,concat_1={concat:concat_2},concat$1={default:concat_1,__moduleExports:concat_1,concat:concat_2},concat_2$1=concat$1&&concat_1||concat$1,concat_2$2=concat_2$1,concatStatic=concat_2$2.concat;function concat$2(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){return t.lift.call(concat_2$1.concat.apply(void 0,[t].concat(e)))}}var concat_4=concat$2,concat_3={concatStatic:concatStatic,concat:concat_4},concat$3={default:concat_3,__moduleExports:concat_3,concatStatic:concatStatic,concat:concat_4};function concatMap(e,t){return mergeMap_1$1.mergeMap(e,t,1)}var concatMap_2=concatMap,concatMap_1={concatMap:concatMap_2},concatMap$1={default:concatMap_1,__moduleExports:concatMap_1,concatMap:concatMap_2},concatMap_1$1=concatMap$1&&concatMap_1||concatMap$1;function concatMapTo(e,t){return concatMap_1$1.concatMap(function(){return e},t)}var concatMapTo_2=concatMapTo,concatMapTo_1={concatMapTo:concatMapTo_2},concatMapTo$1={default:concatMapTo_1,__moduleExports:concatMapTo_1,concatMapTo:concatMapTo_2},__extends$v=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function count(e){return function(t){return t.lift(new CountOperator(e,t))}}var count_2=count,CountOperator=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new CountSubscriber(e,this.predicate,this.source))},e}(),CountSubscriber=function(e){function t(t,r,n){e.call(this,t),this.predicate=r,this.source=n,this.count=0,this.index=0}return __extends$v(t,e),t.prototype._next=function(e){this.predicate?this._tryPredicate(e):this.count++},t.prototype._tryPredicate=function(e){var t;try{t=this.predicate(e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t&&this.count++},t.prototype._complete=function(){this.destination.next(this.count),this.destination.complete()},t}(Subscriber_1$1.Subscriber),count_1={count:count_2},count$1={default:count_1,__moduleExports:count_1,count:count_2},__extends$w=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function debounce(e){return function(t){return t.lift(new DebounceOperator(e))}}var debounce_2=debounce,DebounceOperator=function(){function e(e){this.durationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new DebounceSubscriber(e,this.durationSelector))},e}(),DebounceSubscriber=function(e){function t(t,r){e.call(this,t),this.durationSelector=r,this.hasValue=!1,this.durationSubscription=null}return __extends$w(t,e),t.prototype._next=function(e){try{var t=this.durationSelector.call(this,e);t&&this._tryNext(e,t)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.emitValue(),this.destination.complete()},t.prototype._tryNext=function(e,t){var r=this.durationSubscription;this.value=e,this.hasValue=!0,r&&(r.unsubscribe(),this.remove(r)),(r=subscribeToResult_1$1.subscribeToResult(this,t)).closed||this.add(this.durationSubscription=r)},t.prototype.notifyNext=function(e,t,r,n,o){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){if(this.hasValue){var t=this.value,r=this.durationSubscription;r&&(this.durationSubscription=null,r.unsubscribe(),this.remove(r)),this.value=null,this.hasValue=!1,e.prototype._next.call(this,t)}},t}(OuterSubscriber_1$1.OuterSubscriber),debounce_1={debounce:debounce_2},debounce$1={default:debounce_1,__moduleExports:debounce_1,debounce:debounce_2},__extends$x=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function debounceTime(e,t){return void 0===t&&(t=async_1$1.async),function(r){return r.lift(new DebounceTimeOperator(e,t))}}var debounceTime_2=debounceTime,DebounceTimeOperator=function(){function e(e,t){this.dueTime=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new DebounceTimeSubscriber(e,this.dueTime,this.scheduler))},e}(),DebounceTimeSubscriber=function(e){function t(t,r,n){e.call(this,t),this.dueTime=r,this.scheduler=n,this.debouncedSubscription=null,this.lastValue=null,this.hasValue=!1}return __extends$x(t,e),t.prototype._next=function(e){this.clearDebounce(),this.lastValue=e,this.hasValue=!0,this.add(this.debouncedSubscription=this.scheduler.schedule(dispatchNext$1,this.dueTime,this))},t.prototype._complete=function(){this.debouncedNext(),this.destination.complete()},t.prototype.debouncedNext=function(){this.clearDebounce(),this.hasValue&&(this.destination.next(this.lastValue),this.lastValue=null,this.hasValue=!1)},t.prototype.clearDebounce=function(){var e=this.debouncedSubscription;null!==e&&(this.remove(e),e.unsubscribe(),this.debouncedSubscription=null)},t}(Subscriber_1$1.Subscriber);function dispatchNext$1(e){e.debouncedNext()}var debounceTime_1={debounceTime:debounceTime_2},debounceTime$1={default:debounceTime_1,__moduleExports:debounceTime_1,debounceTime:debounceTime_2},__extends$y=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function defaultIfEmpty(e){return void 0===e&&(e=null),function(t){return t.lift(new DefaultIfEmptyOperator(e))}}var defaultIfEmpty_2=defaultIfEmpty,DefaultIfEmptyOperator=function(){function e(e){this.defaultValue=e}return e.prototype.call=function(e,t){return t.subscribe(new DefaultIfEmptySubscriber(e,this.defaultValue))},e}(),DefaultIfEmptySubscriber=function(e){function t(t,r){e.call(this,t),this.defaultValue=r,this.isEmpty=!0}return __extends$y(t,e),t.prototype._next=function(e){this.isEmpty=!1,this.destination.next(e)},t.prototype._complete=function(){this.isEmpty&&this.destination.next(this.defaultValue),this.destination.complete()},t}(Subscriber_1$1.Subscriber),defaultIfEmpty_1={defaultIfEmpty:defaultIfEmpty_2},defaultIfEmpty$1={default:defaultIfEmpty_1,__moduleExports:defaultIfEmpty_1,defaultIfEmpty:defaultIfEmpty_2},__extends$z=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function delay(e,t){void 0===t&&(t=async_1$1.async);var r=isDate_1$1.isDate(e)?+e-t.now():Math.abs(e);return function(e){return e.lift(new DelayOperator(r,t))}}var delay_2=delay,DelayOperator=function(){function e(e,t){this.delay=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new DelaySubscriber(e,this.delay,this.scheduler))},e}(),DelaySubscriber=function(e){function t(t,r,n){e.call(this,t),this.delay=r,this.scheduler=n,this.queue=[],this.active=!1,this.errored=!1}return __extends$z(t,e),t.dispatch=function(e){for(var t=e.source,r=t.queue,n=e.scheduler,o=e.destination;r.length>0&&r[0].time-n.now()<=0;)r.shift().notification.observe(o);if(r.length>0){var i=Math.max(0,r[0].time-n.now());this.schedule(e,i)}else this.unsubscribe(),t.active=!1},t.prototype._schedule=function(e){this.active=!0,this.add(e.schedule(t.dispatch,this.delay,{source:this,destination:this.destination,scheduler:e}))},t.prototype.scheduleNotification=function(e){if(!0!==this.errored){var t=this.scheduler,r=new DelayMessage(t.now()+this.delay,e);this.queue.push(r),!1===this.active&&this._schedule(t)}},t.prototype._next=function(e){this.scheduleNotification(Notification_1$1.Notification.createNext(e))},t.prototype._error=function(e){this.errored=!0,this.queue=[],this.destination.error(e)},t.prototype._complete=function(){this.scheduleNotification(Notification_1$1.Notification.createComplete())},t}(Subscriber_1$1.Subscriber),DelayMessage=function(e,t){this.time=e,this.notification=t},delay_1={delay:delay_2},delay$1={default:delay_1,__moduleExports:delay_1,delay:delay_2},__extends$A=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function delayWhen(e,t){return t?function(r){return new SubscriptionDelayObservable(r,t).lift(new DelayWhenOperator(e))}:function(t){return t.lift(new DelayWhenOperator(e))}}var delayWhen_2=delayWhen,DelayWhenOperator=function(){function e(e){this.delayDurationSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new DelayWhenSubscriber(e,this.delayDurationSelector))},e}(),DelayWhenSubscriber=function(e){function t(t,r){e.call(this,t),this.delayDurationSelector=r,this.completed=!1,this.delayNotifierSubscriptions=[],this.values=[]}return __extends$A(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.destination.next(e),this.removeSubscription(o),this.tryComplete()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){var t=this.removeSubscription(e);t&&this.destination.next(t),this.tryComplete()},t.prototype._next=function(e){try{var t=this.delayDurationSelector(e);t&&this.tryDelay(t,e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.completed=!0,this.tryComplete()},t.prototype.removeSubscription=function(e){e.unsubscribe();var t=this.delayNotifierSubscriptions.indexOf(e),r=null;return-1!==t&&(r=this.values[t],this.delayNotifierSubscriptions.splice(t,1),this.values.splice(t,1)),r},t.prototype.tryDelay=function(e,t){var r=subscribeToResult_1$1.subscribeToResult(this,e,t);r&&!r.closed&&(this.add(r),this.delayNotifierSubscriptions.push(r)),this.values.push(t)},t.prototype.tryComplete=function(){this.completed&&0===this.delayNotifierSubscriptions.length&&this.destination.complete()},t}(OuterSubscriber_1$1.OuterSubscriber),SubscriptionDelayObservable=function(e){function t(t,r){e.call(this),this.source=t,this.subscriptionDelay=r}return __extends$A(t,e),t.prototype._subscribe=function(e){this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(e,this.source))},t}(Observable_1$1.Observable),SubscriptionDelaySubscriber=function(e){function t(t,r){e.call(this),this.parent=t,this.source=r,this.sourceSubscribed=!1}return __extends$A(t,e),t.prototype._next=function(e){this.subscribeToSource()},t.prototype._error=function(e){this.unsubscribe(),this.parent.error(e)},t.prototype._complete=function(){this.subscribeToSource()},t.prototype.subscribeToSource=function(){this.sourceSubscribed||(this.sourceSubscribed=!0,this.unsubscribe(),this.source.subscribe(this.parent))},t}(Subscriber_1$1.Subscriber),delayWhen_1={delayWhen:delayWhen_2},delayWhen$1={default:delayWhen_1,__moduleExports:delayWhen_1,delayWhen:delayWhen_2},__extends$B=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function dematerialize(){return function(e){return e.lift(new DeMaterializeOperator)}}var dematerialize_2=dematerialize,DeMaterializeOperator=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new DeMaterializeSubscriber(e))},e}(),DeMaterializeSubscriber=function(e){function t(t){e.call(this,t)}return __extends$B(t,e),t.prototype._next=function(e){e.observe(this.destination)},t}(Subscriber_1$1.Subscriber),dematerialize_1={dematerialize:dematerialize_2},dematerialize$1={default:dematerialize_1,__moduleExports:dematerialize_1,dematerialize:dematerialize_2};function minimalSetImpl(){return function(){function e(){this._values=[]}return e.prototype.add=function(e){this.has(e)||this._values.push(e)},e.prototype.has=function(e){return-1!==this._values.indexOf(e)},Object.defineProperty(e.prototype,"size",{get:function(){return this._values.length},enumerable:!0,configurable:!0}),e.prototype.clear=function(){this._values.length=0},e}()}var minimalSetImpl_1=minimalSetImpl,Set$1=root_1$1.root.Set||minimalSetImpl(),_Set={minimalSetImpl:minimalSetImpl_1,Set:Set$1},_Set$1={default:_Set,__moduleExports:_Set,minimalSetImpl:minimalSetImpl_1,Set:Set$1},Set_1=_Set$1&&_Set||_Set$1,__extends$C=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function distinct(e,t){return function(r){return r.lift(new DistinctOperator(e,t))}}var distinct_2=distinct,DistinctOperator=function(){function e(e,t){this.keySelector=e,this.flushes=t}return e.prototype.call=function(e,t){return t.subscribe(new DistinctSubscriber(e,this.keySelector,this.flushes))},e}(),DistinctSubscriber=function(e){function t(t,r,n){e.call(this,t),this.keySelector=r,this.values=new Set_1.Set,n&&this.add(subscribeToResult_1$1.subscribeToResult(this,n))}return __extends$C(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.values.clear()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype._next=function(e){this.keySelector?this._useKeySelector(e):this._finalizeNext(e,e)},t.prototype._useKeySelector=function(e){var t,r=this.destination;try{t=this.keySelector(e)}catch(e){return void r.error(e)}this._finalizeNext(t,e)},t.prototype._finalizeNext=function(e,t){var r=this.values;r.has(e)||(r.add(e),this.destination.next(t))},t}(OuterSubscriber_1$1.OuterSubscriber),DistinctSubscriber_1=DistinctSubscriber,distinct_1={distinct:distinct_2,DistinctSubscriber:DistinctSubscriber_1},distinct$1={default:distinct_1,__moduleExports:distinct_1,distinct:distinct_2,DistinctSubscriber:DistinctSubscriber_1},__extends$D=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function distinctUntilChanged(e,t){return function(r){return r.lift(new DistinctUntilChangedOperator(e,t))}}var distinctUntilChanged_2=distinctUntilChanged,DistinctUntilChangedOperator=function(){function e(e,t){this.compare=e,this.keySelector=t}return e.prototype.call=function(e,t){return t.subscribe(new DistinctUntilChangedSubscriber(e,this.compare,this.keySelector))},e}(),DistinctUntilChangedSubscriber=function(e){function t(t,r,n){e.call(this,t),this.keySelector=n,this.hasKey=!1,"function"==typeof r&&(this.compare=r)}return __extends$D(t,e),t.prototype.compare=function(e,t){return e===t},t.prototype._next=function(e){var t=e;if(this.keySelector&&(t=tryCatch_1$1.tryCatch(this.keySelector)(e))===errorObject_1$1.errorObject)return this.destination.error(errorObject_1$1.errorObject.e);var r=!1;if(this.hasKey){if((r=tryCatch_1$1.tryCatch(this.compare)(this.key,t))===errorObject_1$1.errorObject)return this.destination.error(errorObject_1$1.errorObject.e)}else this.hasKey=!0;!1===Boolean(r)&&(this.key=t,this.destination.next(e))},t}(Subscriber_1$1.Subscriber),distinctUntilChanged_1={distinctUntilChanged:distinctUntilChanged_2},distinctUntilChanged$1={default:distinctUntilChanged_1,__moduleExports:distinctUntilChanged_1,distinctUntilChanged:distinctUntilChanged_2},distinctUntilChanged_1$1=distinctUntilChanged$1&&distinctUntilChanged_1||distinctUntilChanged$1;function distinctUntilKeyChanged(e,t){return distinctUntilChanged_1$1.distinctUntilChanged(function(r,n){return t?t(r[e],n[e]):r[e]===n[e]})}var distinctUntilKeyChanged_2=distinctUntilKeyChanged,distinctUntilKeyChanged_1={distinctUntilKeyChanged:distinctUntilKeyChanged_2},distinctUntilKeyChanged$1={default:distinctUntilKeyChanged_1,__moduleExports:distinctUntilKeyChanged_1,distinctUntilKeyChanged:distinctUntilKeyChanged_2},__extends$E=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ArgumentOutOfRangeError=function(e){function t(){var t=e.call(this,"argument out of range");this.name=t.name="ArgumentOutOfRangeError",this.stack=t.stack,this.message=t.message}return __extends$E(t,e),t}(Error),ArgumentOutOfRangeError_2=ArgumentOutOfRangeError,ArgumentOutOfRangeError_1={ArgumentOutOfRangeError:ArgumentOutOfRangeError_2},ArgumentOutOfRangeError$1={default:ArgumentOutOfRangeError_1,__moduleExports:ArgumentOutOfRangeError_1,ArgumentOutOfRangeError:ArgumentOutOfRangeError_2},ArgumentOutOfRangeError_1$1=ArgumentOutOfRangeError$1&&ArgumentOutOfRangeError_1||ArgumentOutOfRangeError$1,__extends$F=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function elementAt(e,t){return function(r){return r.lift(new ElementAtOperator(e,t))}}var elementAt_2=elementAt,ElementAtOperator=function(){function e(e,t){if(this.index=e,this.defaultValue=t,e<0)throw new ArgumentOutOfRangeError_1$1.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new ElementAtSubscriber(e,this.index,this.defaultValue))},e}(),ElementAtSubscriber=function(e){function t(t,r,n){e.call(this,t),this.index=r,this.defaultValue=n}return __extends$F(t,e),t.prototype._next=function(e){0==this.index--&&(this.destination.next(e),this.destination.complete())},t.prototype._complete=function(){var e=this.destination;this.index>=0&&(void 0!==this.defaultValue?e.next(this.defaultValue):e.error(new ArgumentOutOfRangeError_1$1.ArgumentOutOfRangeError)),e.complete()},t}(Subscriber_1$1.Subscriber),elementAt_1={elementAt:elementAt_2},elementAt$1={default:elementAt_1,__moduleExports:elementAt_1,elementAt:elementAt_2},__extends$G=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function every(e,t){return function(r){return r.lift(new EveryOperator(e,t,r))}}var every_2=every,EveryOperator=function(){function e(e,t,r){this.predicate=e,this.thisArg=t,this.source=r}return e.prototype.call=function(e,t){return t.subscribe(new EverySubscriber(e,this.predicate,this.thisArg,this.source))},e}(),EverySubscriber=function(e){function t(t,r,n,o){e.call(this,t),this.predicate=r,this.thisArg=n,this.source=o,this.index=0,this.thisArg=n||this}return __extends$G(t,e),t.prototype.notifyComplete=function(e){this.destination.next(e),this.destination.complete()},t.prototype._next=function(e){var t=!1;try{t=this.predicate.call(this.thisArg,e,this.index++,this.source)}catch(e){return void this.destination.error(e)}t||this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(Subscriber_1$1.Subscriber),every_1={every:every_2},every$1={default:every_1,__moduleExports:every_1,every:every_2},__extends$H=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function exhaust(){return function(e){return e.lift(new SwitchFirstOperator)}}var exhaust_2=exhaust,SwitchFirstOperator=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new SwitchFirstSubscriber(e))},e}(),SwitchFirstSubscriber=function(e){function t(t){e.call(this,t),this.hasCompleted=!1,this.hasSubscription=!1}return __extends$H(t,e),t.prototype._next=function(e){this.hasSubscription||(this.hasSubscription=!0,this.add(subscribeToResult_1$1.subscribeToResult(this,e)))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(OuterSubscriber_1$1.OuterSubscriber),exhaust_1={exhaust:exhaust_2},exhaust$1={default:exhaust_1,__moduleExports:exhaust_1,exhaust:exhaust_2},__extends$I=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function exhaustMap(e,t){return function(r){return r.lift(new SwitchFirstMapOperator(e,t))}}var exhaustMap_2=exhaustMap,SwitchFirstMapOperator=function(){function e(e,t){this.project=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new SwitchFirstMapSubscriber(e,this.project,this.resultSelector))},e}(),SwitchFirstMapSubscriber=function(e){function t(t,r,n){e.call(this,t),this.project=r,this.resultSelector=n,this.hasSubscription=!1,this.hasCompleted=!1,this.index=0}return __extends$I(t,e),t.prototype._next=function(e){this.hasSubscription||this.tryNext(e)},t.prototype.tryNext=function(e){var t=this.index++,r=this.destination;try{var n=this.project(e,t);this.hasSubscription=!0,this.add(subscribeToResult_1$1.subscribeToResult(this,n,e,t))}catch(e){r.error(e)}},t.prototype._complete=function(){this.hasCompleted=!0,this.hasSubscription||this.destination.complete()},t.prototype.notifyNext=function(e,t,r,n,o){var i=this.resultSelector,a=this.destination;i?this.trySelectResult(e,t,r,n):a.next(t)},t.prototype.trySelectResult=function(e,t,r,n){var o=this.resultSelector,i=this.destination;try{var a=o(e,t,r,n);i.next(a)}catch(e){i.error(e)}},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){this.remove(e),this.hasSubscription=!1,this.hasCompleted&&this.destination.complete()},t}(OuterSubscriber_1$1.OuterSubscriber),exhaustMap_1={exhaustMap:exhaustMap_2},exhaustMap$1={default:exhaustMap_1,__moduleExports:exhaustMap_1,exhaustMap:exhaustMap_2},__extends$J=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function expand(e,t,r){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===r&&(r=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,function(n){return n.lift(new ExpandOperator(e,t,r))}}var expand_2=expand,ExpandOperator=function(){function e(e,t,r){this.project=e,this.concurrent=t,this.scheduler=r}return e.prototype.call=function(e,t){return t.subscribe(new ExpandSubscriber(e,this.project,this.concurrent,this.scheduler))},e}(),ExpandOperator_1=ExpandOperator,ExpandSubscriber=function(e){function t(t,r,n,o){e.call(this,t),this.project=r,this.concurrent=n,this.scheduler=o,this.index=0,this.active=0,this.hasCompleted=!1,n<Number.POSITIVE_INFINITY&&(this.buffer=[])}return __extends$J(t,e),t.dispatch=function(e){var t=e.subscriber,r=e.result,n=e.value,o=e.index;t.subscribeToProjection(r,n,o)},t.prototype._next=function(e){var r=this.destination;if(r.closed)this._complete();else{var n=this.index++;if(this.active<this.concurrent){r.next(e);var o=tryCatch_1$1.tryCatch(this.project)(e,n);if(o===errorObject_1$1.errorObject)r.error(errorObject_1$1.errorObject.e);else if(this.scheduler){var i={subscriber:this,result:o,value:e,index:n};this.add(this.scheduler.schedule(t.dispatch,0,i))}else this.subscribeToProjection(o,e,n)}else this.buffer.push(e)}},t.prototype.subscribeToProjection=function(e,t,r){this.active++,this.add(subscribeToResult_1$1.subscribeToResult(this,e,t,r))},t.prototype._complete=function(){this.hasCompleted=!0,this.hasCompleted&&0===this.active&&this.destination.complete()},t.prototype.notifyNext=function(e,t,r,n,o){this._next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t&&t.length>0&&this._next(t.shift()),this.hasCompleted&&0===this.active&&this.destination.complete()},t}(OuterSubscriber_1$1.OuterSubscriber),ExpandSubscriber_1=ExpandSubscriber,expand_1={expand:expand_2,ExpandOperator:ExpandOperator_1,ExpandSubscriber:ExpandSubscriber_1},expand$1={default:expand_1,__moduleExports:expand_1,expand:expand_2,ExpandOperator:ExpandOperator_1,ExpandSubscriber:ExpandSubscriber_1},__extends$K=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function finalize(e){return function(t){return t.lift(new FinallyOperator(e))}}var finalize_2=finalize,FinallyOperator=function(){function e(e){this.callback=e}return e.prototype.call=function(e,t){return t.subscribe(new FinallySubscriber(e,this.callback))},e}(),FinallySubscriber=function(e){function t(t,r){e.call(this,t),this.add(new Subscription_1$1.Subscription(r))}return __extends$K(t,e),t}(Subscriber_1$1.Subscriber),finalize_1={finalize:finalize_2},finalize$1={default:finalize_1,__moduleExports:finalize_1,finalize:finalize_2},__extends$L=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function find(e,t){if("function"!=typeof e)throw new TypeError("predicate is not a function");return function(r){return r.lift(new FindValueOperator(e,r,!1,t))}}var find_2=find,FindValueOperator=function(){function e(e,t,r,n){this.predicate=e,this.source=t,this.yieldIndex=r,this.thisArg=n}return e.prototype.call=function(e,t){return t.subscribe(new FindValueSubscriber(e,this.predicate,this.source,this.yieldIndex,this.thisArg))},e}(),FindValueOperator_1=FindValueOperator,FindValueSubscriber=function(e){function t(t,r,n,o,i){e.call(this,t),this.predicate=r,this.source=n,this.yieldIndex=o,this.thisArg=i,this.index=0}return __extends$L(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){var t=this.predicate,r=this.thisArg,n=this.index++;try{t.call(r||this,e,n,this.source)&&this.notifyComplete(this.yieldIndex?n:e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){this.notifyComplete(this.yieldIndex?-1:void 0)},t}(Subscriber_1$1.Subscriber),FindValueSubscriber_1=FindValueSubscriber,find_1={find:find_2,FindValueOperator:FindValueOperator_1,FindValueSubscriber:FindValueSubscriber_1},find$1={default:find_1,__moduleExports:find_1,find:find_2,FindValueOperator:FindValueOperator_1,FindValueSubscriber:FindValueSubscriber_1},find_1$1=find$1&&find_1||find$1;function findIndex(e,t){return function(r){return r.lift(new find_1$1.FindValueOperator(e,r,!0,t))}}var findIndex_2=findIndex,findIndex_1={findIndex:findIndex_2},findIndex$1={default:findIndex_1,__moduleExports:findIndex_1,findIndex:findIndex_2},__extends$M=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},EmptyError=function(e){function t(){var t=e.call(this,"no elements in sequence");this.name=t.name="EmptyError",this.stack=t.stack,this.message=t.message}return __extends$M(t,e),t}(Error),EmptyError_2=EmptyError,EmptyError_1={EmptyError:EmptyError_2},EmptyError$1={default:EmptyError_1,__moduleExports:EmptyError_1,EmptyError:EmptyError_2},EmptyError_1$1=EmptyError$1&&EmptyError_1||EmptyError$1,__extends$N=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function first(e,t,r){return function(n){return n.lift(new FirstOperator(e,t,r,n))}}var first_2=first,FirstOperator=function(){function e(e,t,r,n){this.predicate=e,this.resultSelector=t,this.defaultValue=r,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new FirstSubscriber(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),FirstSubscriber=function(e){function t(t,r,n,o,i){e.call(this,t),this.predicate=r,this.resultSelector=n,this.defaultValue=o,this.source=i,this.index=0,this.hasCompleted=!1,this._emitted=!1}return __extends$N(t,e),t.prototype._next=function(e){var t=this.index++;this.predicate?this._tryPredicate(e,t):this._emit(e,t)},t.prototype._tryPredicate=function(e,t){var r;try{r=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}r&&this._emit(e,t)},t.prototype._emit=function(e,t){this.resultSelector?this._tryResultSelector(e,t):this._emitFinal(e)},t.prototype._tryResultSelector=function(e,t){var r;try{r=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this._emitFinal(r)},t.prototype._emitFinal=function(e){var t=this.destination;this._emitted||(this._emitted=!0,t.next(e),t.complete(),this.hasCompleted=!0)},t.prototype._complete=function(){var e=this.destination;this.hasCompleted||void 0===this.defaultValue?this.hasCompleted||e.error(new EmptyError_1$1.EmptyError):(e.next(this.defaultValue),e.complete())},t}(Subscriber_1$1.Subscriber),first_1={first:first_2},first$1={default:first_1,__moduleExports:first_1,first:first_2},MapPolyfill=function(){function e(){this.size=0,this._values=[],this._keys=[]}return e.prototype.get=function(e){var t=this._keys.indexOf(e);return-1===t?void 0:this._values[t]},e.prototype.set=function(e,t){var r=this._keys.indexOf(e);return-1===r?(this._keys.push(e),this._values.push(t),this.size++):this._values[r]=t,this},e.prototype.delete=function(e){var t=this._keys.indexOf(e);return-1!==t&&(this._values.splice(t,1),this._keys.splice(t,1),this.size--,!0)},e.prototype.clear=function(){this._keys.length=0,this._values.length=0,this.size=0},e.prototype.forEach=function(e,t){for(var r=0;r<this.size;r++)e.call(t,this._values[r],this._keys[r])},e}(),MapPolyfill_2=MapPolyfill,MapPolyfill_1={MapPolyfill:MapPolyfill_2},MapPolyfill$1={default:MapPolyfill_1,__moduleExports:MapPolyfill_1,MapPolyfill:MapPolyfill_2},MapPolyfill_1$1=MapPolyfill$1&&MapPolyfill_1||MapPolyfill$1,Map$1=root_1$1.root.Map||MapPolyfill_1$1.MapPolyfill,_Map={Map:Map$1},_Map$1={default:_Map,__moduleExports:_Map,Map:Map$1},FastMap=function(){function e(){this.values={}}return e.prototype.delete=function(e){return this.values[e]=null,!0},e.prototype.set=function(e,t){return this.values[e]=t,this},e.prototype.get=function(e){return this.values[e]},e.prototype.forEach=function(e,t){var r=this.values;for(var n in r)r.hasOwnProperty(n)&&null!==r[n]&&e.call(t,r[n],n)},e.prototype.clear=function(){this.values={}},e}(),FastMap_2=FastMap,FastMap_1={FastMap:FastMap_2},FastMap$1={default:FastMap_1,__moduleExports:FastMap_1,FastMap:FastMap_2},Subject_1$1=Subject$1&&Subject_1||Subject$1,Map_1=_Map$1&&_Map||_Map$1,FastMap_1$1=FastMap$1&&FastMap_1||FastMap$1,__extends$O=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function groupBy(e,t,r,n){return function(o){return o.lift(new GroupByOperator(e,t,r,n))}}var groupBy_2=groupBy,GroupByOperator=function(){function e(e,t,r,n){this.keySelector=e,this.elementSelector=t,this.durationSelector=r,this.subjectSelector=n}return e.prototype.call=function(e,t){return t.subscribe(new GroupBySubscriber(e,this.keySelector,this.elementSelector,this.durationSelector,this.subjectSelector))},e}(),GroupBySubscriber=function(e){function t(t,r,n,o,i){e.call(this,t),this.keySelector=r,this.elementSelector=n,this.durationSelector=o,this.subjectSelector=i,this.groups=null,this.attemptedToUnsubscribe=!1,this.count=0}return __extends$O(t,e),t.prototype._next=function(e){var t;try{t=this.keySelector(e)}catch(e){return void this.error(e)}this._group(e,t)},t.prototype._group=function(e,t){var r=this.groups;r||(r=this.groups="string"==typeof t?new FastMap_1$1.FastMap:new Map_1.Map);var n,o=r.get(t);if(this.elementSelector)try{n=this.elementSelector(e)}catch(e){this.error(e)}else n=e;if(!o){o=this.subjectSelector?this.subjectSelector():new Subject_1$1.Subject,r.set(t,o);var i=new GroupedObservable(t,o,this);if(this.destination.next(i),this.durationSelector){var a=void 0;try{a=this.durationSelector(new GroupedObservable(t,o))}catch(e){return void this.error(e)}this.add(a.subscribe(new GroupDurationSubscriber(t,o,this)))}}o.closed||o.next(n)},t.prototype._error=function(e){var t=this.groups;t&&(t.forEach(function(t,r){t.error(e)}),t.clear()),this.destination.error(e)},t.prototype._complete=function(){var e=this.groups;e&&(e.forEach(function(e,t){e.complete()}),e.clear()),this.destination.complete()},t.prototype.removeGroup=function(e){this.groups.delete(e)},t.prototype.unsubscribe=function(){this.closed||(this.attemptedToUnsubscribe=!0,0===this.count&&e.prototype.unsubscribe.call(this))},t}(Subscriber_1$1.Subscriber),GroupDurationSubscriber=function(e){function t(t,r,n){e.call(this,r),this.key=t,this.group=r,this.parent=n}return __extends$O(t,e),t.prototype._next=function(e){this.complete()},t.prototype._unsubscribe=function(){var e=this.parent,t=this.key;this.key=this.parent=null,e&&e.removeGroup(t)},t}(Subscriber_1$1.Subscriber),GroupedObservable=function(e){function t(t,r,n){e.call(this),this.key=t,this.groupSubject=r,this.refCountSubscription=n}return __extends$O(t,e),t.prototype._subscribe=function(e){var t=new Subscription_1$1.Subscription,r=this.refCountSubscription,n=this.groupSubject;return r&&!r.closed&&t.add(new InnerRefCountSubscription(r)),t.add(n.subscribe(e)),t},t}(Observable_1$1.Observable),GroupedObservable_1=GroupedObservable,InnerRefCountSubscription=function(e){function t(t){e.call(this),this.parent=t,t.count++}return __extends$O(t,e),t.prototype.unsubscribe=function(){var t=this.parent;t.closed||this.closed||(e.prototype.unsubscribe.call(this),t.count-=1,0===t.count&&t.attemptedToUnsubscribe&&t.unsubscribe())},t}(Subscription_1$1.Subscription),groupBy_1={groupBy:groupBy_2,GroupedObservable:GroupedObservable_1},groupBy$1={default:groupBy_1,__moduleExports:groupBy_1,groupBy:groupBy_2,GroupedObservable:GroupedObservable_1},__extends$P=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function ignoreElements(){return function(e){return e.lift(new IgnoreElementsOperator)}}var ignoreElements_2=ignoreElements,IgnoreElementsOperator=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new IgnoreElementsSubscriber(e))},e}(),IgnoreElementsSubscriber=function(e){function t(){e.apply(this,arguments)}return __extends$P(t,e),t.prototype._next=function(e){noop_1$1.noop()},t}(Subscriber_1$1.Subscriber),ignoreElements_1={ignoreElements:ignoreElements_2},ignoreElements$1={default:ignoreElements_1,__moduleExports:ignoreElements_1,ignoreElements:ignoreElements_2},__extends$Q=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function isEmpty(){return function(e){return e.lift(new IsEmptyOperator)}}var isEmpty_2=isEmpty,IsEmptyOperator=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new IsEmptySubscriber(e))},e}(),IsEmptySubscriber=function(e){function t(t){e.call(this,t)}return __extends$Q(t,e),t.prototype.notifyComplete=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype._next=function(e){this.notifyComplete(!1)},t.prototype._complete=function(){this.notifyComplete(!0)},t}(Subscriber_1$1.Subscriber),isEmpty_1={isEmpty:isEmpty_2},isEmpty$1={default:isEmpty_1,__moduleExports:isEmpty_1,isEmpty:isEmpty_2},__extends$R=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function last(e,t,r){return function(n){return n.lift(new LastOperator(e,t,r,n))}}var last_2=last,LastOperator=function(){function e(e,t,r,n){this.predicate=e,this.resultSelector=t,this.defaultValue=r,this.source=n}return e.prototype.call=function(e,t){return t.subscribe(new LastSubscriber(e,this.predicate,this.resultSelector,this.defaultValue,this.source))},e}(),LastSubscriber=function(e){function t(t,r,n,o,i){e.call(this,t),this.predicate=r,this.resultSelector=n,this.defaultValue=o,this.source=i,this.hasValue=!1,this.index=0,void 0!==o&&(this.lastValue=o,this.hasValue=!0)}return __extends$R(t,e),t.prototype._next=function(e){var t=this.index++;if(this.predicate)this._tryPredicate(e,t);else{if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryPredicate=function(e,t){var r;try{r=this.predicate(e,t,this.source)}catch(e){return void this.destination.error(e)}if(r){if(this.resultSelector)return void this._tryResultSelector(e,t);this.lastValue=e,this.hasValue=!0}},t.prototype._tryResultSelector=function(e,t){var r;try{r=this.resultSelector(e,t)}catch(e){return void this.destination.error(e)}this.lastValue=r,this.hasValue=!0},t.prototype._complete=function(){var e=this.destination;this.hasValue?(e.next(this.lastValue),e.complete()):e.error(new EmptyError_1$1.EmptyError)},t}(Subscriber_1$1.Subscriber),last_1={last:last_2},last$1={default:last_1,__moduleExports:last_1,last:last_2},__extends$S=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function mapTo(e){return function(t){return t.lift(new MapToOperator(e))}}var mapTo_2=mapTo,MapToOperator=function(){function e(e){this.value=e}return e.prototype.call=function(e,t){return t.subscribe(new MapToSubscriber(e,this.value))},e}(),MapToSubscriber=function(e){function t(t,r){e.call(this,t),this.value=r}return __extends$S(t,e),t.prototype._next=function(e){this.destination.next(this.value)},t}(Subscriber_1$1.Subscriber),mapTo_1={mapTo:mapTo_2},mapTo$1={default:mapTo_1,__moduleExports:mapTo_1,mapTo:mapTo_2},__extends$T=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function materialize(){return function(e){return e.lift(new MaterializeOperator)}}var materialize_2=materialize,MaterializeOperator=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new MaterializeSubscriber(e))},e}(),MaterializeSubscriber=function(e){function t(t){e.call(this,t)}return __extends$T(t,e),t.prototype._next=function(e){this.destination.next(Notification_1$1.Notification.createNext(e))},t.prototype._error=function(e){var t=this.destination;t.next(Notification_1$1.Notification.createError(e)),t.complete()},t.prototype._complete=function(){var e=this.destination;e.next(Notification_1$1.Notification.createComplete()),e.complete()},t}(Subscriber_1$1.Subscriber),materialize_1={materialize:materialize_2},materialize$1={default:materialize_1,__moduleExports:materialize_1,materialize:materialize_2},__extends$U=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function scan(e,t){var r=!1;return arguments.length>=2&&(r=!0),function(n){return n.lift(new ScanOperator(e,t,r))}}var scan_2=scan,ScanOperator=function(){function e(e,t,r){void 0===r&&(r=!1),this.accumulator=e,this.seed=t,this.hasSeed=r}return e.prototype.call=function(e,t){return t.subscribe(new ScanSubscriber(e,this.accumulator,this.seed,this.hasSeed))},e}(),ScanSubscriber=function(e){function t(t,r,n,o){e.call(this,t),this.accumulator=r,this._seed=n,this.hasSeed=o,this.index=0}return __extends$U(t,e),Object.defineProperty(t.prototype,"seed",{get:function(){return this._seed},set:function(e){this.hasSeed=!0,this._seed=e},enumerable:!0,configurable:!0}),t.prototype._next=function(e){if(this.hasSeed)return this._tryNext(e);this.seed=e,this.destination.next(e)},t.prototype._tryNext=function(e){var t,r=this.index++;try{t=this.accumulator(this.seed,e,r)}catch(e){this.destination.error(e)}this.seed=t,this.destination.next(t)},t}(Subscriber_1$1.Subscriber),scan_1={scan:scan_2},scan$1={default:scan_1,__moduleExports:scan_1,scan:scan_2},__extends$V=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function takeLast(e){return function(t){return 0===e?new EmptyObservable_1$1.EmptyObservable:t.lift(new TakeLastOperator(e))}}var takeLast_2=takeLast,TakeLastOperator=function(){function e(e){if(this.total=e,this.total<0)throw new ArgumentOutOfRangeError_1$1.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new TakeLastSubscriber(e,this.total))},e}(),TakeLastSubscriber=function(e){function t(t,r){e.call(this,t),this.total=r,this.ring=new Array,this.count=0}return __extends$V(t,e),t.prototype._next=function(e){var t=this.ring,r=this.total,n=this.count++;t.length<r?t.push(e):t[n%r]=e},t.prototype._complete=function(){var e=this.destination,t=this.count;if(t>0)for(var r=this.count>=this.total?this.total:this.count,n=this.ring,o=0;o<r;o++){var i=t++%r;e.next(n[i])}e.complete()},t}(Subscriber_1$1.Subscriber),takeLast_1={takeLast:takeLast_2},takeLast$1={default:takeLast_1,__moduleExports:takeLast_1,takeLast:takeLast_2},scan_1$1=scan$1&&scan_1||scan$1,takeLast_1$1=takeLast$1&&takeLast_1||takeLast$1,defaultIfEmpty_1$1=defaultIfEmpty$1&&defaultIfEmpty_1||defaultIfEmpty$1;function reduce(e,t){return arguments.length>=2?function(r){return pipe_1$1.pipe(scan_1$1.scan(e,t),takeLast_1$1.takeLast(1),defaultIfEmpty_1$1.defaultIfEmpty(t))(r)}:function(t){return pipe_1$1.pipe(scan_1$1.scan(function(t,r,n){return e(t,r,n+1)}),takeLast_1$1.takeLast(1))(t)}}var reduce_2=reduce,reduce_1={reduce:reduce_2},reduce$1={default:reduce_1,__moduleExports:reduce_1,reduce:reduce_2},reduce_1$1=reduce$1&&reduce_1||reduce$1;function max$2(e){var t="function"==typeof e?function(t,r){return e(t,r)>0?t:r}:function(e,t){return e>t?e:t};return reduce_1$1.reduce(t)}var max_2=max$2,max_1={max:max_2},max$3={default:max_1,__moduleExports:max_1,max:max_2},merge_2$1=merge$1&&merge_1||merge$1,merge_2$2=merge_2$1,mergeStatic=merge_2$2.merge;function merge$2(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){return t.lift.call(merge_2$1.merge.apply(void 0,[t].concat(e)))}}var merge_4=merge$2,merge_3={mergeStatic:mergeStatic,merge:merge_4},merge$3={default:merge_3,__moduleExports:merge_3,mergeStatic:mergeStatic,merge:merge_4},__extends$W=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function mergeMapTo(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),"number"==typeof t&&(r=t,t=null),function(n){return n.lift(new MergeMapToOperator(e,t,r))}}var mergeMapTo_2=mergeMapTo,MergeMapToOperator=function(){function e(e,t,r){void 0===r&&(r=Number.POSITIVE_INFINITY),this.ish=e,this.resultSelector=t,this.concurrent=r}return e.prototype.call=function(e,t){return t.subscribe(new MergeMapToSubscriber(e,this.ish,this.resultSelector,this.concurrent))},e}(),MergeMapToOperator_1=MergeMapToOperator,MergeMapToSubscriber=function(e){function t(t,r,n,o){void 0===o&&(o=Number.POSITIVE_INFINITY),e.call(this,t),this.ish=r,this.resultSelector=n,this.concurrent=o,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return __extends$W(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.resultSelector,r=this.index++,n=this.ish,o=this.destination;this.active++,this._innerSub(n,o,t,e,r)}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,r,n,o){this.add(subscribeToResult_1$1.subscribeToResult(this,e,n,o))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&this.destination.complete()},t.prototype.notifyNext=function(e,t,r,n,o){var i=this.resultSelector,a=this.destination;i?this.trySelectResult(e,t,r,n):a.next(t)},t.prototype.trySelectResult=function(e,t,r,n){var o,i=this.resultSelector,a=this.destination;try{o=i(e,t,r,n)}catch(e){return void a.error(e)}a.next(o)},t.prototype.notifyError=function(e){this.destination.error(e)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&this.destination.complete()},t}(OuterSubscriber_1$1.OuterSubscriber),MergeMapToSubscriber_1=MergeMapToSubscriber,mergeMapTo_1={mergeMapTo:mergeMapTo_2,MergeMapToOperator:MergeMapToOperator_1,MergeMapToSubscriber:MergeMapToSubscriber_1},mergeMapTo$1={default:mergeMapTo_1,__moduleExports:mergeMapTo_1,mergeMapTo:mergeMapTo_2,MergeMapToOperator:MergeMapToOperator_1,MergeMapToSubscriber:MergeMapToSubscriber_1},__extends$X=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function mergeScan(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),function(n){return n.lift(new MergeScanOperator(e,t,r))}}var mergeScan_2=mergeScan,MergeScanOperator=function(){function e(e,t,r){this.accumulator=e,this.seed=t,this.concurrent=r}return e.prototype.call=function(e,t){return t.subscribe(new MergeScanSubscriber(e,this.accumulator,this.seed,this.concurrent))},e}(),MergeScanOperator_1=MergeScanOperator,MergeScanSubscriber=function(e){function t(t,r,n,o){e.call(this,t),this.accumulator=r,this.acc=n,this.concurrent=o,this.hasValue=!1,this.hasCompleted=!1,this.buffer=[],this.active=0,this.index=0}return __extends$X(t,e),t.prototype._next=function(e){if(this.active<this.concurrent){var t=this.index++,r=tryCatch_1$1.tryCatch(this.accumulator)(this.acc,e),n=this.destination;r===errorObject_1$1.errorObject?n.error(errorObject_1$1.errorObject.e):(this.active++,this._innerSub(r,e,t))}else this.buffer.push(e)},t.prototype._innerSub=function(e,t,r){this.add(subscribeToResult_1$1.subscribeToResult(this,e,t,r))},t.prototype._complete=function(){this.hasCompleted=!0,0===this.active&&0===this.buffer.length&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t.prototype.notifyNext=function(e,t,r,n,o){var i=this.destination;this.acc=t,this.hasValue=!0,i.next(t)},t.prototype.notifyComplete=function(e){var t=this.buffer;this.remove(e),this.active--,t.length>0?this._next(t.shift()):0===this.active&&this.hasCompleted&&(!1===this.hasValue&&this.destination.next(this.acc),this.destination.complete())},t}(OuterSubscriber_1$1.OuterSubscriber),MergeScanSubscriber_1=MergeScanSubscriber,mergeScan_1={mergeScan:mergeScan_2,MergeScanOperator:MergeScanOperator_1,MergeScanSubscriber:MergeScanSubscriber_1},mergeScan$1={default:mergeScan_1,__moduleExports:mergeScan_1,mergeScan:mergeScan_2,MergeScanOperator:MergeScanOperator_1,MergeScanSubscriber:MergeScanSubscriber_1};function min$3(e){var t="function"==typeof e?function(t,r){return e(t,r)<0?t:r}:function(e,t){return e<t?e:t};return reduce_1$1.reduce(t)}var min_2=min$3,min_1={min:min_2},min$4={default:min_1,__moduleExports:min_1,min:min_2},__extends$Y=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function refCount(){return function(e){return e.lift(new RefCountOperator(e))}}var refCount_2=refCount,RefCountOperator=function(){function e(e){this.connectable=e}return e.prototype.call=function(e,t){var r=this.connectable;r._refCount++;var n=new RefCountSubscriber(e,r),o=t.subscribe(n);return n.closed||(n.connection=r.connect()),o},e}(),RefCountSubscriber=function(e){function t(t,r){e.call(this,t),this.connectable=r}return __extends$Y(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},t}(Subscriber_1$1.Subscriber),refCount_1={refCount:refCount_2},refCount$1={default:refCount_1,__moduleExports:refCount_1,refCount:refCount_2},refCount_1$1=refCount$1&&refCount_1||refCount$1,__extends$Z=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ConnectableObservable=function(e){function t(t,r){e.call(this),this.source=t,this.subjectFactory=r,this._refCount=0,this._isComplete=!1}return __extends$Z(t,e),t.prototype._subscribe=function(e){return this.getSubject().subscribe(e)},t.prototype.getSubject=function(){var e=this._subject;return e&&!e.isStopped||(this._subject=this.subjectFactory()),this._subject},t.prototype.connect=function(){var e=this._connection;return e||(this._isComplete=!1,(e=this._connection=new Subscription_1$1.Subscription).add(this.source.subscribe(new ConnectableSubscriber(this.getSubject(),this))),e.closed?(this._connection=null,e=Subscription_1$1.Subscription.EMPTY):this._connection=e),e},t.prototype.refCount=function(){return refCount_1$1.refCount()(this)},t}(Observable_1$1.Observable),ConnectableObservable_2=ConnectableObservable,connectableProto=ConnectableObservable.prototype,connectableObservableDescriptor={operator:{value:null},_refCount:{value:0,writable:!0},_subject:{value:null,writable:!0},_connection:{value:null,writable:!0},_subscribe:{value:connectableProto._subscribe},_isComplete:{value:connectableProto._isComplete,writable:!0},getSubject:{value:connectableProto.getSubject},connect:{value:connectableProto.connect},refCount:{value:connectableProto.refCount}},ConnectableSubscriber=function(e){function t(t,r){e.call(this,t),this.connectable=r}return __extends$Z(t,e),t.prototype._error=function(t){this._unsubscribe(),e.prototype._error.call(this,t)},t.prototype._complete=function(){this.connectable._isComplete=!0,this._unsubscribe(),e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._connection;e._refCount=0,e._subject=null,e._connection=null,t&&t.unsubscribe()}},t}(Subject_1$1.SubjectSubscriber),RefCountSubscriber$1=function(e){function t(t,r){e.call(this,t),this.connectable=r}return __extends$Z(t,e),t.prototype._unsubscribe=function(){var e=this.connectable;if(e){this.connectable=null;var t=e._refCount;if(t<=0)this.connection=null;else if(e._refCount=t-1,t>1)this.connection=null;else{var r=this.connection,n=e._connection;this.connection=null,!n||r&&n!==r||n.unsubscribe()}}else this.connection=null},t}(Subscriber_1$1.Subscriber),ConnectableObservable_1={ConnectableObservable:ConnectableObservable_2,connectableObservableDescriptor:connectableObservableDescriptor},ConnectableObservable$1={default:ConnectableObservable_1,__moduleExports:ConnectableObservable_1,ConnectableObservable:ConnectableObservable_2,connectableObservableDescriptor:connectableObservableDescriptor},ConnectableObservable_1$1=ConnectableObservable$1&&ConnectableObservable_1||ConnectableObservable$1;function multicast(e,t){return function(r){var n;if(n="function"==typeof e?e:function(){return e},"function"==typeof t)return r.lift(new MulticastOperator(n,t));var o=Object.create(r,ConnectableObservable_1$1.connectableObservableDescriptor);return o.source=r,o.subjectFactory=n,o}}var multicast_2=multicast,MulticastOperator=function(){function e(e,t){this.subjectFactory=e,this.selector=t}return e.prototype.call=function(e,t){var r=this.selector,n=this.subjectFactory(),o=r(n).subscribe(e);return o.add(t.subscribe(n)),o},e}(),MulticastOperator_1=MulticastOperator,multicast_1={multicast:multicast_2,MulticastOperator:MulticastOperator_1},multicast$1={default:multicast_1,__moduleExports:multicast_1,multicast:multicast_2,MulticastOperator:MulticastOperator_1},__extends$_=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function onErrorResumeNext(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return 1===e.length&&isArray_1$1.isArray(e[0])&&(e=e[0]),function(t){return t.lift(new OnErrorResumeNextOperator(e))}}var onErrorResumeNext_2=onErrorResumeNext;function onErrorResumeNextStatic(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r;return 1===e.length&&isArray_1$1.isArray(e[0])&&(e=e[0]),r=e.shift(),new FromObservable_1$1.FromObservable(r,null).lift(new OnErrorResumeNextOperator(e))}var onErrorResumeNextStatic_1=onErrorResumeNextStatic,OnErrorResumeNextOperator=function(){function e(e){this.nextSources=e}return e.prototype.call=function(e,t){return t.subscribe(new OnErrorResumeNextSubscriber(e,this.nextSources))},e}(),OnErrorResumeNextSubscriber=function(e){function t(t,r){e.call(this,t),this.destination=t,this.nextSources=r}return __extends$_(t,e),t.prototype.notifyError=function(e,t){this.subscribeToNextSource()},t.prototype.notifyComplete=function(e){this.subscribeToNextSource()},t.prototype._error=function(e){this.subscribeToNextSource()},t.prototype._complete=function(){this.subscribeToNextSource()},t.prototype.subscribeToNextSource=function(){var e=this.nextSources.shift();e?this.add(subscribeToResult_1$1.subscribeToResult(this,e)):this.destination.complete()},t}(OuterSubscriber_1$1.OuterSubscriber),onErrorResumeNext_1={onErrorResumeNext:onErrorResumeNext_2,onErrorResumeNextStatic:onErrorResumeNextStatic_1},onErrorResumeNext$1={default:onErrorResumeNext_1,__moduleExports:onErrorResumeNext_1,onErrorResumeNext:onErrorResumeNext_2,onErrorResumeNextStatic:onErrorResumeNextStatic_1},__extends$$=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function pairwise(){return function(e){return e.lift(new PairwiseOperator)}}var pairwise_2=pairwise,PairwiseOperator=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new PairwiseSubscriber(e))},e}(),PairwiseSubscriber=function(e){function t(t){e.call(this,t),this.hasPrev=!1}return __extends$$(t,e),t.prototype._next=function(e){this.hasPrev?this.destination.next([this.prev,e]):this.hasPrev=!0,this.prev=e},t}(Subscriber_1$1.Subscriber),pairwise_1={pairwise:pairwise_2},pairwise$1={default:pairwise_1,__moduleExports:pairwise_1,pairwise:pairwise_2};function not(e,t){function r(){return!r.pred.apply(r.thisArg,arguments)}return r.pred=e,r.thisArg=t,r}var not_2=not,not_1={not:not_2},not$1={default:not_1,__moduleExports:not_1,not:not_2},not_1$1=not$1&&not_1||not$1;function partition(e,t){return function(r){return[filter_1$1.filter(e,t)(r),filter_1$1.filter(not_1$1.not(e,t))(r)]}}var partition_2=partition,partition_1={partition:partition_2},partition$1={default:partition_1,__moduleExports:partition_1,partition:partition_2};function pluck(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=e.length;if(0===r)throw new Error("list of properties cannot be empty.");return function(t){return map_1$1.map(plucker(e,r))(t)}}var pluck_2=pluck;function plucker(e,t){return function(r){for(var n=r,o=0;o<t;o++){var i=n[e[o]];if(void 0===i)return;n=i}return n}}var pluck_1={pluck:pluck_2},pluck$1={default:pluck_1,__moduleExports:pluck_1,pluck:pluck_2},multicast_1$1=multicast$1&&multicast_1||multicast$1;function publish(e){return e?multicast_1$1.multicast(function(){return new Subject_1$1.Subject},e):multicast_1$1.multicast(new Subject_1$1.Subject)}var publish_2=publish,publish_1={publish:publish_2},publish$1={default:publish_1,__moduleExports:publish_1,publish:publish_2},__extends$10=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},BehaviorSubject=function(e){function t(t){e.call(this),this._value=t}return __extends$10(t,e),Object.defineProperty(t.prototype,"value",{get:function(){return this.getValue()},enumerable:!0,configurable:!0}),t.prototype._subscribe=function(t){var r=e.prototype._subscribe.call(this,t);return r&&!r.closed&&t.next(this._value),r},t.prototype.getValue=function(){if(this.hasError)throw this.thrownError;if(this.closed)throw new ObjectUnsubscribedError_1$1.ObjectUnsubscribedError;return this._value},t.prototype.next=function(t){e.prototype.next.call(this,this._value=t)},t}(Subject_1$1.Subject),BehaviorSubject_2=BehaviorSubject,BehaviorSubject_1={BehaviorSubject:BehaviorSubject_2},BehaviorSubject$1={default:BehaviorSubject_1,__moduleExports:BehaviorSubject_1,BehaviorSubject:BehaviorSubject_2},BehaviorSubject_1$1=BehaviorSubject$1&&BehaviorSubject_1||BehaviorSubject$1;function publishBehavior(e){return function(t){return multicast_1$1.multicast(new BehaviorSubject_1$1.BehaviorSubject(e))(t)}}var publishBehavior_2=publishBehavior,publishBehavior_1={publishBehavior:publishBehavior_2},publishBehavior$1={default:publishBehavior_1,__moduleExports:publishBehavior_1,publishBehavior:publishBehavior_2},__extends$11=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},AsyncSubject=function(e){function t(){e.apply(this,arguments),this.value=null,this.hasNext=!1,this.hasCompleted=!1}return __extends$11(t,e),t.prototype._subscribe=function(t){return this.hasError?(t.error(this.thrownError),Subscription_1$1.Subscription.EMPTY):this.hasCompleted&&this.hasNext?(t.next(this.value),t.complete(),Subscription_1$1.Subscription.EMPTY):e.prototype._subscribe.call(this,t)},t.prototype.next=function(e){this.hasCompleted||(this.value=e,this.hasNext=!0)},t.prototype.error=function(t){this.hasCompleted||e.prototype.error.call(this,t)},t.prototype.complete=function(){this.hasCompleted=!0,this.hasNext&&e.prototype.next.call(this,this.value),e.prototype.complete.call(this)},t}(Subject_1$1.Subject),AsyncSubject_2=AsyncSubject,AsyncSubject_1={AsyncSubject:AsyncSubject_2},AsyncSubject$1={default:AsyncSubject_1,__moduleExports:AsyncSubject_1,AsyncSubject:AsyncSubject_2},AsyncSubject_1$1=AsyncSubject$1&&AsyncSubject_1||AsyncSubject$1;function publishLast(){return function(e){return multicast_1$1.multicast(new AsyncSubject_1$1.AsyncSubject)(e)}}var publishLast_2=publishLast,publishLast_1={publishLast:publishLast_2},publishLast$1={default:publishLast_1,__moduleExports:publishLast_1,publishLast:publishLast_2},__extends$12=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},QueueAction=function(e){function t(t,r){e.call(this,t,r),this.scheduler=t,this.work=r}return __extends$12(t,e),t.prototype.schedule=function(t,r){return void 0===r&&(r=0),r>0?e.prototype.schedule.call(this,t,r):(this.delay=r,this.state=t,this.scheduler.flush(this),this)},t.prototype.execute=function(t,r){return r>0||this.closed?e.prototype.execute.call(this,t,r):this._execute(t,r)},t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0?e.prototype.requestAsyncId.call(this,t,r,n):t.flush(this)},t}(AsyncAction_1$1.AsyncAction),QueueAction_2=QueueAction,QueueAction_1={QueueAction:QueueAction_2},QueueAction$1={default:QueueAction_1,__moduleExports:QueueAction_1,QueueAction:QueueAction_2},__extends$13=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},QueueScheduler=function(e){function t(){e.apply(this,arguments)}return __extends$13(t,e),t}(AsyncScheduler_1$1.AsyncScheduler),QueueScheduler_2=QueueScheduler,QueueScheduler_1={QueueScheduler:QueueScheduler_2},QueueScheduler$1={default:QueueScheduler_1,__moduleExports:QueueScheduler_1,QueueScheduler:QueueScheduler_2},QueueAction_1$1=QueueAction$1&&QueueAction_1||QueueAction$1,QueueScheduler_1$1=QueueScheduler$1&&QueueScheduler_1||QueueScheduler$1,queue_1=new QueueScheduler_1$1.QueueScheduler(QueueAction_1$1.QueueAction),queue$1={queue:queue_1},queue$2={default:queue$1,__moduleExports:queue$1,queue:queue_1},queue_1$1=queue$2&&queue$1||queue$2,__extends$14=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ReplaySubject=function(e){function t(t,r,n){void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===r&&(r=Number.POSITIVE_INFINITY),e.call(this),this.scheduler=n,this._events=[],this._bufferSize=t<1?1:t,this._windowTime=r<1?1:r}return __extends$14(t,e),t.prototype.next=function(t){var r=this._getNow();this._events.push(new ReplayEvent(r,t)),this._trimBufferThenGetEvents(),e.prototype.next.call(this,t)},t.prototype._subscribe=function(e){var t,r=this._trimBufferThenGetEvents(),n=this.scheduler;if(this.closed)throw new ObjectUnsubscribedError_1$1.ObjectUnsubscribedError;this.hasError?t=Subscription_1$1.Subscription.EMPTY:this.isStopped?t=Subscription_1$1.Subscription.EMPTY:(this.observers.push(e),t=new SubjectSubscription_1$1.SubjectSubscription(this,e)),n&&e.add(e=new observeOn_1$1.ObserveOnSubscriber(e,n));for(var o=r.length,i=0;i<o&&!e.closed;i++)e.next(r[i].value);return this.hasError?e.error(this.thrownError):this.isStopped&&e.complete(),t},t.prototype._getNow=function(){return(this.scheduler||queue_1$1.queue).now()},t.prototype._trimBufferThenGetEvents=function(){for(var e=this._getNow(),t=this._bufferSize,r=this._windowTime,n=this._events,o=n.length,i=0;i<o&&!(e-n[i].time<r);)i++;return o>t&&(i=Math.max(i,o-t)),i>0&&n.splice(0,i),n},t}(Subject_1$1.Subject),ReplaySubject_2=ReplaySubject,ReplayEvent=function(e,t){this.time=e,this.value=t},ReplaySubject_1={ReplaySubject:ReplaySubject_2},ReplaySubject$1={default:ReplaySubject_1,__moduleExports:ReplaySubject_1,ReplaySubject:ReplaySubject_2},ReplaySubject_1$1=ReplaySubject$1&&ReplaySubject_1||ReplaySubject$1;function publishReplay(e,t,r,n){r&&"function"!=typeof r&&(n=r);var o="function"==typeof r?r:void 0,i=new ReplaySubject_1$1.ReplaySubject(e,t,n);return function(e){return multicast_1$1.multicast(function(){return i},o)(e)}}var publishReplay_2=publishReplay,publishReplay_1={publishReplay:publishReplay_2},publishReplay$1={default:publishReplay_1,__moduleExports:publishReplay_1,publishReplay:publishReplay_2},__extends$15=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function race(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];if(1===e.length){if(!isArray_1$1.isArray(e[0]))return e[0];e=e[0]}return new ArrayObservable_1$1.ArrayObservable(e).lift(new RaceOperator)}var race_2=race,RaceOperator=function(){function e(){}return e.prototype.call=function(e,t){return t.subscribe(new RaceSubscriber(e))},e}(),RaceOperator_1=RaceOperator,RaceSubscriber=function(e){function t(t){e.call(this,t),this.hasFirst=!1,this.observables=[],this.subscriptions=[]}return __extends$15(t,e),t.prototype._next=function(e){this.observables.push(e)},t.prototype._complete=function(){var e=this.observables,t=e.length;if(0===t)this.destination.complete();else{for(var r=0;r<t&&!this.hasFirst;r++){var n=e[r],o=subscribeToResult_1$1.subscribeToResult(this,n,n,r);this.subscriptions&&this.subscriptions.push(o),this.add(o)}this.observables=null}},t.prototype.notifyNext=function(e,t,r,n,o){if(!this.hasFirst){this.hasFirst=!0;for(var i=0;i<this.subscriptions.length;i++)if(i!==r){var a=this.subscriptions[i];a.unsubscribe(),this.remove(a)}this.subscriptions=null}this.destination.next(t)},t}(OuterSubscriber_1$1.OuterSubscriber),RaceSubscriber_1=RaceSubscriber,race_1={race:race_2,RaceOperator:RaceOperator_1,RaceSubscriber:RaceSubscriber_1},race$1={default:race_1,__moduleExports:race_1,race:race_2,RaceOperator:RaceOperator_1,RaceSubscriber:RaceSubscriber_1},race_2$1=race$1&&race_1||race$1;function race$2(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){return 1===e.length&&isArray_1$1.isArray(e[0])&&(e=e[0]),t.lift.call(race_2$1.race.apply(void 0,[t].concat(e)))}}var race_3=race$2,race_2$2={race:race_3},race$3={default:race_2$2,__moduleExports:race_2$2,race:race_3},__extends$16=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function repeat$1(e){return void 0===e&&(e=-1),function(t){return 0===e?new EmptyObservable_1$1.EmptyObservable:e<0?t.lift(new RepeatOperator(-1,t)):t.lift(new RepeatOperator(e-1,t))}}var repeat_2=repeat$1,RepeatOperator=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new RepeatSubscriber(e,this.count,this.source))},e}(),RepeatSubscriber=function(e){function t(t,r,n){e.call(this,t),this.count=r,this.source=n}return __extends$16(t,e),t.prototype.complete=function(){if(!this.isStopped){var t=this.source,r=this.count;if(0===r)return e.prototype.complete.call(this);r>-1&&(this.count=r-1),t.subscribe(this._unsubscribeAndRecycle())}},t}(Subscriber_1$1.Subscriber),repeat_1={repeat:repeat_2},repeat$2={default:repeat_1,__moduleExports:repeat_1,repeat:repeat_2},__extends$17=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function repeatWhen(e){return function(t){return t.lift(new RepeatWhenOperator(e))}}var repeatWhen_2=repeatWhen,RepeatWhenOperator=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new RepeatWhenSubscriber(e,this.notifier,t))},e}(),RepeatWhenSubscriber=function(e){function t(t,r,n){e.call(this,t),this.notifier=r,this.source=n,this.sourceIsBeingSubscribedTo=!0}return __extends$17(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.sourceIsBeingSubscribedTo=!0,this.source.subscribe(this)},t.prototype.notifyComplete=function(t){if(!1===this.sourceIsBeingSubscribedTo)return e.prototype.complete.call(this)},t.prototype.complete=function(){if(this.sourceIsBeingSubscribedTo=!1,!this.isStopped){if(this.retries||this.subscribeToRetries(),!this.retriesSubscription||this.retriesSubscription.closed)return e.prototype.complete.call(this);this._unsubscribeAndRecycle(),this.notifications.next()}},t.prototype._unsubscribe=function(){var e=this.notifications,t=this.retriesSubscription;e&&(e.unsubscribe(),this.notifications=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype._unsubscribeAndRecycle=function(){var t=this.notifications,r=this.retries,n=this.retriesSubscription;return this.notifications=null,this.retries=null,this.retriesSubscription=null,e.prototype._unsubscribeAndRecycle.call(this),this.notifications=t,this.retries=r,this.retriesSubscription=n,this},t.prototype.subscribeToRetries=function(){this.notifications=new Subject_1$1.Subject;var t=tryCatch_1$1.tryCatch(this.notifier)(this.notifications);if(t===errorObject_1$1.errorObject)return e.prototype.complete.call(this);this.retries=t,this.retriesSubscription=subscribeToResult_1$1.subscribeToResult(this,t)},t}(OuterSubscriber_1$1.OuterSubscriber),repeatWhen_1={repeatWhen:repeatWhen_2},repeatWhen$1={default:repeatWhen_1,__moduleExports:repeatWhen_1,repeatWhen:repeatWhen_2},__extends$18=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function retry(e){return void 0===e&&(e=-1),function(t){return t.lift(new RetryOperator(e,t))}}var retry_2=retry,RetryOperator=function(){function e(e,t){this.count=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new RetrySubscriber(e,this.count,this.source))},e}(),RetrySubscriber=function(e){function t(t,r,n){e.call(this,t),this.count=r,this.source=n}return __extends$18(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=this.source,n=this.count;if(0===n)return e.prototype.error.call(this,t);n>-1&&(this.count=n-1),r.subscribe(this._unsubscribeAndRecycle())}},t}(Subscriber_1$1.Subscriber),retry_1={retry:retry_2},retry$1={default:retry_1,__moduleExports:retry_1,retry:retry_2},__extends$19=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function retryWhen(e){return function(t){return t.lift(new RetryWhenOperator(e,t))}}var retryWhen_2=retryWhen,RetryWhenOperator=function(){function e(e,t){this.notifier=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new RetryWhenSubscriber(e,this.notifier,this.source))},e}(),RetryWhenSubscriber=function(e){function t(t,r,n){e.call(this,t),this.notifier=r,this.source=n}return __extends$19(t,e),t.prototype.error=function(t){if(!this.isStopped){var r=this.errors,n=this.retries,o=this.retriesSubscription;if(n)this.errors=null,this.retriesSubscription=null;else{if(r=new Subject_1$1.Subject,(n=tryCatch_1$1.tryCatch(this.notifier)(r))===errorObject_1$1.errorObject)return e.prototype.error.call(this,errorObject_1$1.errorObject.e);o=subscribeToResult_1$1.subscribeToResult(this,n)}this._unsubscribeAndRecycle(),this.errors=r,this.retries=n,this.retriesSubscription=o,r.next(t)}},t.prototype._unsubscribe=function(){var e=this.errors,t=this.retriesSubscription;e&&(e.unsubscribe(),this.errors=null),t&&(t.unsubscribe(),this.retriesSubscription=null),this.retries=null},t.prototype.notifyNext=function(e,t,r,n,o){var i=this.errors,a=this.retries,s=this.retriesSubscription;this.errors=null,this.retries=null,this.retriesSubscription=null,this._unsubscribeAndRecycle(),this.errors=i,this.retries=a,this.retriesSubscription=s,this.source.subscribe(this)},t}(OuterSubscriber_1$1.OuterSubscriber),retryWhen_1={retryWhen:retryWhen_2},retryWhen$1={default:retryWhen_1,__moduleExports:retryWhen_1,retryWhen:retryWhen_2},__extends$1a=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function sample(e){return function(t){return t.lift(new SampleOperator(e))}}var sample_2=sample,SampleOperator=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){var r=new SampleSubscriber(e),n=t.subscribe(r);return n.add(subscribeToResult_1$1.subscribeToResult(r,this.notifier)),n},e}(),SampleSubscriber=function(e){function t(){e.apply(this,arguments),this.hasValue=!1}return __extends$1a(t,e),t.prototype._next=function(e){this.value=e,this.hasValue=!0},t.prototype.notifyNext=function(e,t,r,n,o){this.emitValue()},t.prototype.notifyComplete=function(){this.emitValue()},t.prototype.emitValue=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.value))},t}(OuterSubscriber_1$1.OuterSubscriber),sample_1={sample:sample_2},sample$1={default:sample_1,__moduleExports:sample_1,sample:sample_2},__extends$1b=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function sampleTime(e,t){return void 0===t&&(t=async_1$1.async),function(r){return r.lift(new SampleTimeOperator(e,t))}}var sampleTime_2=sampleTime,SampleTimeOperator=function(){function e(e,t){this.period=e,this.scheduler=t}return e.prototype.call=function(e,t){return t.subscribe(new SampleTimeSubscriber(e,this.period,this.scheduler))},e}(),SampleTimeSubscriber=function(e){function t(t,r,n){e.call(this,t),this.period=r,this.scheduler=n,this.hasValue=!1,this.add(n.schedule(dispatchNotification,r,{subscriber:this,period:r}))}return __extends$1b(t,e),t.prototype._next=function(e){this.lastValue=e,this.hasValue=!0},t.prototype.notifyNext=function(){this.hasValue&&(this.hasValue=!1,this.destination.next(this.lastValue))},t}(Subscriber_1$1.Subscriber);function dispatchNotification(e){var t=e.subscriber,r=e.period;t.notifyNext(),this.schedule(e,r)}var sampleTime_1={sampleTime:sampleTime_2},sampleTime$1={default:sampleTime_1,__moduleExports:sampleTime_1,sampleTime:sampleTime_2},__extends$1c=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function sequenceEqual(e,t){return function(r){return r.lift(new SequenceEqualOperator(e,t))}}var sequenceEqual_2=sequenceEqual,SequenceEqualOperator=function(){function e(e,t){this.compareTo=e,this.comparor=t}return e.prototype.call=function(e,t){return t.subscribe(new SequenceEqualSubscriber(e,this.compareTo,this.comparor))},e}(),SequenceEqualOperator_1=SequenceEqualOperator,SequenceEqualSubscriber=function(e){function t(t,r,n){e.call(this,t),this.compareTo=r,this.comparor=n,this._a=[],this._b=[],this._oneComplete=!1,this.add(r.subscribe(new SequenceEqualCompareToSubscriber(t,this)))}return __extends$1c(t,e),t.prototype._next=function(e){this._oneComplete&&0===this._b.length?this.emit(!1):(this._a.push(e),this.checkValues())},t.prototype._complete=function(){this._oneComplete?this.emit(0===this._a.length&&0===this._b.length):this._oneComplete=!0},t.prototype.checkValues=function(){for(var e=this._a,t=this._b,r=this.comparor;e.length>0&&t.length>0;){var n=e.shift(),o=t.shift(),i=!1;r?(i=tryCatch_1$1.tryCatch(r)(n,o))===errorObject_1$1.errorObject&&this.destination.error(errorObject_1$1.errorObject.e):i=n===o,i||this.emit(!1)}},t.prototype.emit=function(e){var t=this.destination;t.next(e),t.complete()},t.prototype.nextB=function(e){this._oneComplete&&0===this._a.length?this.emit(!1):(this._b.push(e),this.checkValues())},t}(Subscriber_1$1.Subscriber),SequenceEqualSubscriber_1=SequenceEqualSubscriber,SequenceEqualCompareToSubscriber=function(e){function t(t,r){e.call(this,t),this.parent=r}return __extends$1c(t,e),t.prototype._next=function(e){this.parent.nextB(e)},t.prototype._error=function(e){this.parent.error(e)},t.prototype._complete=function(){this.parent._complete()},t}(Subscriber_1$1.Subscriber),sequenceEqual_1={sequenceEqual:sequenceEqual_2,SequenceEqualOperator:SequenceEqualOperator_1,SequenceEqualSubscriber:SequenceEqualSubscriber_1},sequenceEqual$1={default:sequenceEqual_1,__moduleExports:sequenceEqual_1,sequenceEqual:sequenceEqual_2,SequenceEqualOperator:SequenceEqualOperator_1,SequenceEqualSubscriber:SequenceEqualSubscriber_1};function shareSubjectFactory(){return new Subject_1$1.Subject}function share(){return function(e){return refCount_1$1.refCount()(multicast_1$1.multicast(shareSubjectFactory)(e))}}var share_2=share,share_1={share:share_2},share$1={default:share_1,__moduleExports:share_1,share:share_2};function shareReplay(e,t,r){return function(n){return n.lift(shareReplayOperator(e,t,r))}}var shareReplay_2=shareReplay;function shareReplayOperator(e,t,r){var n,o,i=0,a=!1,s=!1;return function(c){i++,n&&!a||(a=!1,n=new ReplaySubject_1$1.ReplaySubject(e,t,r),o=c.subscribe({next:function(e){n.next(e)},error:function(e){a=!0,n.error(e)},complete:function(){s=!0,n.complete()}}));var u=n.subscribe(this);return function(){i--,u.unsubscribe(),o&&0===i&&s&&o.unsubscribe()}}}var shareReplay_1={shareReplay:shareReplay_2},shareReplay$1={default:shareReplay_1,__moduleExports:shareReplay_1,shareReplay:shareReplay_2},__extends$1d=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function single(e){return function(t){return t.lift(new SingleOperator(e,t))}}var single_2=single,SingleOperator=function(){function e(e,t){this.predicate=e,this.source=t}return e.prototype.call=function(e,t){return t.subscribe(new SingleSubscriber(e,this.predicate,this.source))},e}(),SingleSubscriber=function(e){function t(t,r,n){e.call(this,t),this.predicate=r,this.source=n,this.seenValue=!1,this.index=0}return __extends$1d(t,e),t.prototype.applySingleValue=function(e){this.seenValue?this.destination.error("Sequence contains more than one element"):(this.seenValue=!0,this.singleValue=e)},t.prototype._next=function(e){var t=this.index++;this.predicate?this.tryNext(e,t):this.applySingleValue(e)},t.prototype.tryNext=function(e,t){try{this.predicate(e,t,this.source)&&this.applySingleValue(e)}catch(e){this.destination.error(e)}},t.prototype._complete=function(){var e=this.destination;this.index>0?(e.next(this.seenValue?this.singleValue:void 0),e.complete()):e.error(new EmptyError_1$1.EmptyError)},t}(Subscriber_1$1.Subscriber),single_1={single:single_2},single$1={default:single_1,__moduleExports:single_1,single:single_2},__extends$1e=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function skip(e){return function(t){return t.lift(new SkipOperator(e))}}var skip_2=skip,SkipOperator=function(){function e(e){this.total=e}return e.prototype.call=function(e,t){return t.subscribe(new SkipSubscriber(e,this.total))},e}(),SkipSubscriber=function(e){function t(t,r){e.call(this,t),this.total=r,this.count=0}return __extends$1e(t,e),t.prototype._next=function(e){++this.count>this.total&&this.destination.next(e)},t}(Subscriber_1$1.Subscriber),skip_1={skip:skip_2},skip$1={default:skip_1,__moduleExports:skip_1,skip:skip_2},__extends$1f=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function skipLast(e){return function(t){return t.lift(new SkipLastOperator(e))}}var skipLast_2=skipLast,SkipLastOperator=function(){function e(e){if(this._skipCount=e,this._skipCount<0)throw new ArgumentOutOfRangeError_1$1.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return 0===this._skipCount?t.subscribe(new Subscriber_1$1.Subscriber(e)):t.subscribe(new SkipLastSubscriber(e,this._skipCount))},e}(),SkipLastSubscriber=function(e){function t(t,r){e.call(this,t),this._skipCount=r,this._count=0,this._ring=new Array(r)}return __extends$1f(t,e),t.prototype._next=function(e){var t=this._skipCount,r=this._count++;if(r<t)this._ring[r]=e;else{var n=r%t,o=this._ring,i=o[n];o[n]=e,this.destination.next(i)}},t}(Subscriber_1$1.Subscriber),skipLast_1={skipLast:skipLast_2},skipLast$1={default:skipLast_1,__moduleExports:skipLast_1,skipLast:skipLast_2},__extends$1g=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function skipUntil(e){return function(t){return t.lift(new SkipUntilOperator(e))}}var skipUntil_2=skipUntil,SkipUntilOperator=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new SkipUntilSubscriber(e,this.notifier))},e}(),SkipUntilSubscriber=function(e){function t(t,r){e.call(this,t),this.hasValue=!1,this.isInnerStopped=!1,this.add(subscribeToResult_1$1.subscribeToResult(this,r))}return __extends$1g(t,e),t.prototype._next=function(t){this.hasValue&&e.prototype._next.call(this,t)},t.prototype._complete=function(){this.isInnerStopped?e.prototype._complete.call(this):this.unsubscribe()},t.prototype.notifyNext=function(e,t,r,n,o){this.hasValue=!0},t.prototype.notifyComplete=function(){this.isInnerStopped=!0,this.isStopped&&e.prototype._complete.call(this)},t}(OuterSubscriber_1$1.OuterSubscriber),skipUntil_1={skipUntil:skipUntil_2},skipUntil$1={default:skipUntil_1,__moduleExports:skipUntil_1,skipUntil:skipUntil_2},__extends$1h=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function skipWhile(e){return function(t){return t.lift(new SkipWhileOperator(e))}}var skipWhile_2=skipWhile,SkipWhileOperator=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new SkipWhileSubscriber(e,this.predicate))},e}(),SkipWhileSubscriber=function(e){function t(t,r){e.call(this,t),this.predicate=r,this.skipping=!0,this.index=0}return __extends$1h(t,e),t.prototype._next=function(e){var t=this.destination;this.skipping&&this.tryCallPredicate(e),this.skipping||t.next(e)},t.prototype.tryCallPredicate=function(e){try{var t=this.predicate(e,this.index++);this.skipping=Boolean(t)}catch(e){this.destination.error(e)}},t}(Subscriber_1$1.Subscriber),skipWhile_1={skipWhile:skipWhile_2},skipWhile$1={default:skipWhile_1,__moduleExports:skipWhile_1,skipWhile:skipWhile_2};function startWith(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){var r=e[e.length-1];isScheduler_1$1.isScheduler(r)?e.pop():r=null;var n=e.length;return 1===n?concat_2$1.concat(new ScalarObservable_1$1.ScalarObservable(e[0],r),t):n>1?concat_2$1.concat(new ArrayObservable_1$1.ArrayObservable(e,r),t):concat_2$1.concat(new EmptyObservable_1$1.EmptyObservable(r),t)}}var startWith_2=startWith,startWith_1={startWith:startWith_2},startWith$1={default:startWith_1,__moduleExports:startWith_1,startWith:startWith_2};function switchAll(){return switchMap_1$1.switchMap(identity_1$1.identity)}var switchAll_2=switchAll,switchAll_1={switchAll:switchAll_2},switchAll$1={default:switchAll_1,__moduleExports:switchAll_1,switchAll:switchAll_2},__extends$1i=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function switchMapTo(e,t){return function(r){return r.lift(new SwitchMapToOperator(e,t))}}var switchMapTo_2=switchMapTo,SwitchMapToOperator=function(){function e(e,t){this.observable=e,this.resultSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new SwitchMapToSubscriber(e,this.observable,this.resultSelector))},e}(),SwitchMapToSubscriber=function(e){function t(t,r,n){e.call(this,t),this.inner=r,this.resultSelector=n,this.index=0}return __extends$1i(t,e),t.prototype._next=function(e){var t=this.innerSubscription;t&&t.unsubscribe(),this.add(this.innerSubscription=subscribeToResult_1$1.subscribeToResult(this,this.inner,e,this.index++))},t.prototype._complete=function(){var t=this.innerSubscription;t&&!t.closed||e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){this.innerSubscription=null},t.prototype.notifyComplete=function(t){this.remove(t),this.innerSubscription=null,this.isStopped&&e.prototype._complete.call(this)},t.prototype.notifyNext=function(e,t,r,n,o){var i=this.resultSelector,a=this.destination;i?this.tryResultSelector(e,t,r,n):a.next(t)},t.prototype.tryResultSelector=function(e,t,r,n){var o,i=this.resultSelector,a=this.destination;try{o=i(e,t,r,n)}catch(e){return void a.error(e)}a.next(o)},t}(OuterSubscriber_1$1.OuterSubscriber),switchMapTo_1={switchMapTo:switchMapTo_2},switchMapTo$1={default:switchMapTo_1,__moduleExports:switchMapTo_1,switchMapTo:switchMapTo_2},__extends$1j=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function take(e){return function(t){return 0===e?new EmptyObservable_1$1.EmptyObservable:t.lift(new TakeOperator(e))}}var take_2=take,TakeOperator=function(){function e(e){if(this.total=e,this.total<0)throw new ArgumentOutOfRangeError_1$1.ArgumentOutOfRangeError}return e.prototype.call=function(e,t){return t.subscribe(new TakeSubscriber(e,this.total))},e}(),TakeSubscriber=function(e){function t(t,r){e.call(this,t),this.total=r,this.count=0}return __extends$1j(t,e),t.prototype._next=function(e){var t=this.total,r=++this.count;r<=t&&(this.destination.next(e),r===t&&(this.destination.complete(),this.unsubscribe()))},t}(Subscriber_1$1.Subscriber),take_1={take:take_2},take$1={default:take_1,__moduleExports:take_1,take:take_2},__extends$1k=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function takeUntil(e){return function(t){return t.lift(new TakeUntilOperator(e))}}var takeUntil_2=takeUntil,TakeUntilOperator=function(){function e(e){this.notifier=e}return e.prototype.call=function(e,t){return t.subscribe(new TakeUntilSubscriber(e,this.notifier))},e}(),TakeUntilSubscriber=function(e){function t(t,r){e.call(this,t),this.notifier=r,this.add(subscribeToResult_1$1.subscribeToResult(this,r))}return __extends$1k(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.complete()},t.prototype.notifyComplete=function(){},t}(OuterSubscriber_1$1.OuterSubscriber),takeUntil_1={takeUntil:takeUntil_2},takeUntil$1={default:takeUntil_1,__moduleExports:takeUntil_1,takeUntil:takeUntil_2},__extends$1l=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function takeWhile(e){return function(t){return t.lift(new TakeWhileOperator(e))}}var takeWhile_2=takeWhile,TakeWhileOperator=function(){function e(e){this.predicate=e}return e.prototype.call=function(e,t){return t.subscribe(new TakeWhileSubscriber(e,this.predicate))},e}(),TakeWhileSubscriber=function(e){function t(t,r){e.call(this,t),this.predicate=r,this.index=0}return __extends$1l(t,e),t.prototype._next=function(e){var t,r=this.destination;try{t=this.predicate(e,this.index++)}catch(e){return void r.error(e)}this.nextOrComplete(e,t)},t.prototype.nextOrComplete=function(e,t){var r=this.destination;Boolean(t)?r.next(e):r.complete()},t}(Subscriber_1$1.Subscriber),takeWhile_1={takeWhile:takeWhile_2},takeWhile$1={default:takeWhile_1,__moduleExports:takeWhile_1,takeWhile:takeWhile_2},__extends$1m=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function tap(e,t,r){return function(n){return n.lift(new DoOperator(e,t,r))}}var tap_2=tap,DoOperator=function(){function e(e,t,r){this.nextOrObserver=e,this.error=t,this.complete=r}return e.prototype.call=function(e,t){return t.subscribe(new DoSubscriber(e,this.nextOrObserver,this.error,this.complete))},e}(),DoSubscriber=function(e){function t(t,r,n,o){e.call(this,t);var i=new Subscriber_1$1.Subscriber(r,n,o);i.syncErrorThrowable=!0,this.add(i),this.safeSubscriber=i}return __extends$1m(t,e),t.prototype._next=function(e){var t=this.safeSubscriber;t.next(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.next(e)},t.prototype._error=function(e){var t=this.safeSubscriber;t.error(e),t.syncErrorThrown?this.destination.error(t.syncErrorValue):this.destination.error(e)},t.prototype._complete=function(){var e=this.safeSubscriber;e.complete(),e.syncErrorThrown?this.destination.error(e.syncErrorValue):this.destination.complete()},t}(Subscriber_1$1.Subscriber),tap_1={tap:tap_2},tap$1={default:tap_1,__moduleExports:tap_1,tap:tap_2},throttle_1=createCommonjsModule(function(e,t){var r=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};t.defaultThrottleConfig={leading:!0,trailing:!1},t.throttle=function(e,r){return void 0===r&&(r=t.defaultThrottleConfig),function(t){return t.lift(new n(e,r.leading,r.trailing))}};var n=function(){function e(e,t,r){this.durationSelector=e,this.leading=t,this.trailing=r}return e.prototype.call=function(e,t){return t.subscribe(new o(e,this.durationSelector,this.leading,this.trailing))},e}(),o=function(e){function t(t,r,n,o){e.call(this,t),this.destination=t,this.durationSelector=r,this._leading=n,this._trailing=o,this._hasTrailingValue=!1}return r(t,e),t.prototype._next=function(e){if(this.throttled)this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=e);else{var t=this.tryDurationSelector(e);t&&this.add(this.throttled=subscribeToResult_1$1.subscribeToResult(this,t)),this._leading&&(this.destination.next(e),this._trailing&&(this._hasTrailingValue=!0,this._trailingValue=e))}},t.prototype.tryDurationSelector=function(e){try{return this.durationSelector(e)}catch(e){return this.destination.error(e),null}},t.prototype._unsubscribe=function(){var e=this.throttled;this._trailingValue,this._hasTrailingValue,this._trailing;this._trailingValue=null,this._hasTrailingValue=!1,e&&(this.remove(e),this.throttled=null,e.unsubscribe())},t.prototype._sendTrailing=function(){var e=this,t=e.destination,r=e.throttled,n=e._trailing,o=e._trailingValue,i=e._hasTrailingValue;r&&n&&i&&(t.next(o),this._trailingValue=null,this._hasTrailingValue=!1)},t.prototype.notifyNext=function(e,t,r,n,o){this._sendTrailing(),this._unsubscribe()},t.prototype.notifyComplete=function(){this._sendTrailing(),this._unsubscribe()},t}(OuterSubscriber_1$1.OuterSubscriber)}),throttle_2=throttle_1.defaultThrottleConfig,throttle_3=throttle_1.throttle,throttle={default:throttle_1,__moduleExports:throttle_1,defaultThrottleConfig:throttle_2,throttle:throttle_3},throttle_1$1=throttle&&throttle_1||throttle,__extends$1n=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function throttleTime(e,t,r){return void 0===t&&(t=async_1$1.async),void 0===r&&(r=throttle_1$1.defaultThrottleConfig),function(n){return n.lift(new ThrottleTimeOperator(e,t,r.leading,r.trailing))}}var throttleTime_2=throttleTime,ThrottleTimeOperator=function(){function e(e,t,r,n){this.duration=e,this.scheduler=t,this.leading=r,this.trailing=n}return e.prototype.call=function(e,t){return t.subscribe(new ThrottleTimeSubscriber(e,this.duration,this.scheduler,this.leading,this.trailing))},e}(),ThrottleTimeSubscriber=function(e){function t(t,r,n,o,i){e.call(this,t),this.duration=r,this.scheduler=n,this.leading=o,this.trailing=i,this._hasTrailingValue=!1,this._trailingValue=null}return __extends$1n(t,e),t.prototype._next=function(e){this.throttled?this.trailing&&(this._trailingValue=e,this._hasTrailingValue=!0):(this.add(this.throttled=this.scheduler.schedule(dispatchNext$2,this.duration,{subscriber:this})),this.leading&&this.destination.next(e))},t.prototype.clearThrottle=function(){var e=this.throttled;e&&(this.trailing&&this._hasTrailingValue&&(this.destination.next(this._trailingValue),this._trailingValue=null,this._hasTrailingValue=!1),e.unsubscribe(),this.remove(e),this.throttled=null)},t}(Subscriber_1$1.Subscriber);function dispatchNext$2(e){e.subscriber.clearThrottle()}var throttleTime_1={throttleTime:throttleTime_2},throttleTime$1={default:throttleTime_1,__moduleExports:throttleTime_1,throttleTime:throttleTime_2},__extends$1o=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function timeInterval(e){return void 0===e&&(e=async_1$1.async),function(t){return t.lift(new TimeIntervalOperator(e))}}var timeInterval_2=timeInterval,TimeInterval=function(e,t){this.value=e,this.interval=t},TimeInterval_1=TimeInterval,TimeIntervalOperator=function(){function e(e){this.scheduler=e}return e.prototype.call=function(e,t){return t.subscribe(new TimeIntervalSubscriber(e,this.scheduler))},e}(),TimeIntervalSubscriber=function(e){function t(t,r){e.call(this,t),this.scheduler=r,this.lastTime=0,this.lastTime=r.now()}return __extends$1o(t,e),t.prototype._next=function(e){var t=this.scheduler.now(),r=t-this.lastTime;this.lastTime=t,this.destination.next(new TimeInterval(e,r))},t}(Subscriber_1$1.Subscriber),timeInterval_1={timeInterval:timeInterval_2,TimeInterval:TimeInterval_1},timeInterval$1={default:timeInterval_1,__moduleExports:timeInterval_1,timeInterval:timeInterval_2,TimeInterval:TimeInterval_1},__extends$1p=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},TimeoutError=function(e){function t(){var t=e.call(this,"Timeout has occurred");this.name=t.name="TimeoutError",this.stack=t.stack,this.message=t.message}return __extends$1p(t,e),t}(Error),TimeoutError_2=TimeoutError,TimeoutError_1={TimeoutError:TimeoutError_2},TimeoutError$1={default:TimeoutError_1,__moduleExports:TimeoutError_1,TimeoutError:TimeoutError_2},TimeoutError_1$1=TimeoutError$1&&TimeoutError_1||TimeoutError$1,__extends$1q=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function timeout(e,t){void 0===t&&(t=async_1$1.async);var r=isDate_1$1.isDate(e),n=r?+e-t.now():Math.abs(e);return function(e){return e.lift(new TimeoutOperator(n,r,t,new TimeoutError_1$1.TimeoutError))}}var timeout_2=timeout,TimeoutOperator=function(){function e(e,t,r,n){this.waitFor=e,this.absoluteTimeout=t,this.scheduler=r,this.errorInstance=n}return e.prototype.call=function(e,t){return t.subscribe(new TimeoutSubscriber(e,this.absoluteTimeout,this.waitFor,this.scheduler,this.errorInstance))},e}(),TimeoutSubscriber=function(e){function t(t,r,n,o,i){e.call(this,t),this.absoluteTimeout=r,this.waitFor=n,this.scheduler=o,this.errorInstance=i,this.action=null,this.scheduleTimeout()}return __extends$1q(t,e),t.dispatchTimeout=function(e){e.error(e.errorInstance)},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.errorInstance=null},t}(Subscriber_1$1.Subscriber),timeout_1={timeout:timeout_2},timeout$1={default:timeout_1,__moduleExports:timeout_1,timeout:timeout_2},__extends$1r=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function timeoutWith(e,t,r){return void 0===r&&(r=async_1$1.async),function(n){var o=isDate_1$1.isDate(e),i=o?+e-r.now():Math.abs(e);return n.lift(new TimeoutWithOperator(i,o,t,r))}}var timeoutWith_2=timeoutWith,TimeoutWithOperator=function(){function e(e,t,r,n){this.waitFor=e,this.absoluteTimeout=t,this.withObservable=r,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new TimeoutWithSubscriber(e,this.absoluteTimeout,this.waitFor,this.withObservable,this.scheduler))},e}(),TimeoutWithSubscriber=function(e){function t(t,r,n,o,i){e.call(this,t),this.absoluteTimeout=r,this.waitFor=n,this.withObservable=o,this.scheduler=i,this.action=null,this.scheduleTimeout()}return __extends$1r(t,e),t.dispatchTimeout=function(e){var t=e.withObservable;e._unsubscribeAndRecycle(),e.add(subscribeToResult_1$1.subscribeToResult(e,t))},t.prototype.scheduleTimeout=function(){var e=this.action;e?this.action=e.schedule(this,this.waitFor):this.add(this.action=this.scheduler.schedule(t.dispatchTimeout,this.waitFor,this))},t.prototype._next=function(t){this.absoluteTimeout||this.scheduleTimeout(),e.prototype._next.call(this,t)},t.prototype._unsubscribe=function(){this.action=null,this.scheduler=null,this.withObservable=null},t}(OuterSubscriber_1$1.OuterSubscriber),timeoutWith_1={timeoutWith:timeoutWith_2},timeoutWith$1={default:timeoutWith_1,__moduleExports:timeoutWith_1,timeoutWith:timeoutWith_2};function timestamp(e){return void 0===e&&(e=async_1$1.async),map_1$1.map(function(t){return new Timestamp(t,e.now())})}var timestamp_2=timestamp,Timestamp=function(e,t){this.value=e,this.timestamp=t},Timestamp_1=Timestamp,timestamp_1={timestamp:timestamp_2,Timestamp:Timestamp_1},timestamp$1={default:timestamp_1,__moduleExports:timestamp_1,timestamp:timestamp_2,Timestamp:Timestamp_1};function toArrayReducer(e,t,r){return 0===r?[t]:(e.push(t),e)}function toArray(){return reduce_1$1.reduce(toArrayReducer,[])}var toArray_2=toArray,toArray_1={toArray:toArray_2},toArray$1={default:toArray_1,__moduleExports:toArray_1,toArray:toArray_2},__extends$1s=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function window$1(e){return function(t){return t.lift(new WindowOperator(e))}}var window_2=window$1,WindowOperator=function(){function e(e){this.windowBoundaries=e}return e.prototype.call=function(e,t){var r=new WindowSubscriber(e),n=t.subscribe(r);return n.closed||r.add(subscribeToResult_1$1.subscribeToResult(r,this.windowBoundaries)),n},e}(),WindowSubscriber=function(e){function t(t){e.call(this,t),this.window=new Subject_1$1.Subject,t.next(this.window)}return __extends$1s(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.openWindow()},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this._complete()},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e)},t.prototype._complete=function(){this.window.complete(),this.destination.complete()},t.prototype._unsubscribe=function(){this.window=null},t.prototype.openWindow=function(){var e=this.window;e&&e.complete();var t=this.destination,r=this.window=new Subject_1$1.Subject;t.next(r)},t}(OuterSubscriber_1$1.OuterSubscriber),window_1={window:window_2},window$2={default:window_1,__moduleExports:window_1,window:window_2},__extends$1t=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function windowCount(e,t){return void 0===t&&(t=0),function(r){return r.lift(new WindowCountOperator(e,t))}}var windowCount_2=windowCount,WindowCountOperator=function(){function e(e,t){this.windowSize=e,this.startWindowEvery=t}return e.prototype.call=function(e,t){return t.subscribe(new WindowCountSubscriber(e,this.windowSize,this.startWindowEvery))},e}(),WindowCountSubscriber=function(e){function t(t,r,n){e.call(this,t),this.destination=t,this.windowSize=r,this.startWindowEvery=n,this.windows=[new Subject_1$1.Subject],this.count=0,t.next(this.windows[0])}return __extends$1t(t,e),t.prototype._next=function(e){for(var t=this.startWindowEvery>0?this.startWindowEvery:this.windowSize,r=this.destination,n=this.windowSize,o=this.windows,i=o.length,a=0;a<i&&!this.closed;a++)o[a].next(e);var s=this.count-n+1;if(s>=0&&s%t==0&&!this.closed&&o.shift().complete(),++this.count%t==0&&!this.closed){var c=new Subject_1$1.Subject;o.push(c),r.next(c)}},t.prototype._error=function(e){var t=this.windows;if(t)for(;t.length>0&&!this.closed;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){var e=this.windows;if(e)for(;e.length>0&&!this.closed;)e.shift().complete();this.destination.complete()},t.prototype._unsubscribe=function(){this.count=0,this.windows=null},t}(Subscriber_1$1.Subscriber),windowCount_1={windowCount:windowCount_2},windowCount$1={default:windowCount_1,__moduleExports:windowCount_1,windowCount:windowCount_2},__extends$1u=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function windowTime(e){var t=async_1$1.async,r=null,n=Number.POSITIVE_INFINITY;return isScheduler_1$1.isScheduler(arguments[3])&&(t=arguments[3]),isScheduler_1$1.isScheduler(arguments[2])?t=arguments[2]:isNumeric_1$1.isNumeric(arguments[2])&&(n=arguments[2]),isScheduler_1$1.isScheduler(arguments[1])?t=arguments[1]:isNumeric_1$1.isNumeric(arguments[1])&&(r=arguments[1]),function(o){return o.lift(new WindowTimeOperator(e,r,n,t))}}var windowTime_2=windowTime,WindowTimeOperator=function(){function e(e,t,r,n){this.windowTimeSpan=e,this.windowCreationInterval=t,this.maxWindowSize=r,this.scheduler=n}return e.prototype.call=function(e,t){return t.subscribe(new WindowTimeSubscriber(e,this.windowTimeSpan,this.windowCreationInterval,this.maxWindowSize,this.scheduler))},e}(),CountedSubject=function(e){function t(){e.apply(this,arguments),this._numberOfNextedValues=0}return __extends$1u(t,e),t.prototype.next=function(t){this._numberOfNextedValues++,e.prototype.next.call(this,t)},Object.defineProperty(t.prototype,"numberOfNextedValues",{get:function(){return this._numberOfNextedValues},enumerable:!0,configurable:!0}),t}(Subject_1$1.Subject),WindowTimeSubscriber=function(e){function t(t,r,n,o,i){e.call(this,t),this.destination=t,this.windowTimeSpan=r,this.windowCreationInterval=n,this.maxWindowSize=o,this.scheduler=i,this.windows=[];var a=this.openWindow();if(null!==n&&n>=0){var s={subscriber:this,window:a,context:null},c={windowTimeSpan:r,windowCreationInterval:n,subscriber:this,scheduler:i};this.add(i.schedule(dispatchWindowClose,r,s)),this.add(i.schedule(dispatchWindowCreation,n,c))}else{var u={subscriber:this,window:a,windowTimeSpan:r};this.add(i.schedule(dispatchWindowTimeSpanOnly,r,u))}}return __extends$1u(t,e),t.prototype._next=function(e){for(var t=this.windows,r=t.length,n=0;n<r;n++){var o=t[n];o.closed||(o.next(e),o.numberOfNextedValues>=this.maxWindowSize&&this.closeWindow(o))}},t.prototype._error=function(e){for(var t=this.windows;t.length>0;)t.shift().error(e);this.destination.error(e)},t.prototype._complete=function(){for(var e=this.windows;e.length>0;){var t=e.shift();t.closed||t.complete()}this.destination.complete()},t.prototype.openWindow=function(){var e=new CountedSubject;return this.windows.push(e),this.destination.next(e),e},t.prototype.closeWindow=function(e){e.complete();var t=this.windows;t.splice(t.indexOf(e),1)},t}(Subscriber_1$1.Subscriber);function dispatchWindowTimeSpanOnly(e){var t=e.subscriber,r=e.windowTimeSpan,n=e.window;n&&t.closeWindow(n),e.window=t.openWindow(),this.schedule(e,r)}function dispatchWindowCreation(e){var t=e.windowTimeSpan,r=e.subscriber,n=e.scheduler,o=e.windowCreationInterval,i=r.openWindow(),a={action:this,subscription:null},s={subscriber:r,window:i,context:a};a.subscription=n.schedule(dispatchWindowClose,t,s),this.add(a.subscription),this.schedule(e,o)}function dispatchWindowClose(e){var t=e.subscriber,r=e.window,n=e.context;n&&n.action&&n.subscription&&n.action.remove(n.subscription),t.closeWindow(r)}var windowTime_1={windowTime:windowTime_2},windowTime$1={default:windowTime_1,__moduleExports:windowTime_1,windowTime:windowTime_2},__extends$1v=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function windowToggle(e,t){return function(r){return r.lift(new WindowToggleOperator(e,t))}}var windowToggle_2=windowToggle,WindowToggleOperator=function(){function e(e,t){this.openings=e,this.closingSelector=t}return e.prototype.call=function(e,t){return t.subscribe(new WindowToggleSubscriber(e,this.openings,this.closingSelector))},e}(),WindowToggleSubscriber=function(e){function t(t,r,n){e.call(this,t),this.openings=r,this.closingSelector=n,this.contexts=[],this.add(this.openSubscription=subscribeToResult_1$1.subscribeToResult(this,r,r))}return __extends$1v(t,e),t.prototype._next=function(e){var t=this.contexts;if(t)for(var r=t.length,n=0;n<r;n++)t[n].window.next(e)},t.prototype._error=function(t){var r=this.contexts;if(this.contexts=null,r)for(var n=r.length,o=-1;++o<n;){var i=r[o];i.window.error(t),i.subscription.unsubscribe()}e.prototype._error.call(this,t)},t.prototype._complete=function(){var t=this.contexts;if(this.contexts=null,t)for(var r=t.length,n=-1;++n<r;){var o=t[n];o.window.complete(),o.subscription.unsubscribe()}e.prototype._complete.call(this)},t.prototype._unsubscribe=function(){var e=this.contexts;if(this.contexts=null,e)for(var t=e.length,r=-1;++r<t;){var n=e[r];n.window.unsubscribe(),n.subscription.unsubscribe()}},t.prototype.notifyNext=function(e,t,r,n,o){if(e===this.openings){var i=this.closingSelector,a=tryCatch_1$1.tryCatch(i)(t);if(a===errorObject_1$1.errorObject)return this.error(errorObject_1$1.errorObject.e);var s=new Subject_1$1.Subject,c=new Subscription_1$1.Subscription,u={window:s,subscription:c};this.contexts.push(u);var l=subscribeToResult_1$1.subscribeToResult(this,a,u);l.closed?this.closeWindow(this.contexts.length-1):(l.context=u,c.add(l)),this.destination.next(s)}else this.closeWindow(this.contexts.indexOf(e))},t.prototype.notifyError=function(e){this.error(e)},t.prototype.notifyComplete=function(e){e!==this.openSubscription&&this.closeWindow(this.contexts.indexOf(e.context))},t.prototype.closeWindow=function(e){if(-1!==e){var t=this.contexts,r=t[e],n=r.window,o=r.subscription;t.splice(e,1),n.complete(),o.unsubscribe()}},t}(OuterSubscriber_1$1.OuterSubscriber),windowToggle_1={windowToggle:windowToggle_2},windowToggle$1={default:windowToggle_1,__moduleExports:windowToggle_1,windowToggle:windowToggle_2},__extends$1w=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function windowWhen(e){return function(t){return t.lift(new WindowOperator$1(e))}}var windowWhen_2=windowWhen,WindowOperator$1=function(){function e(e){this.closingSelector=e}return e.prototype.call=function(e,t){return t.subscribe(new WindowSubscriber$1(e,this.closingSelector))},e}(),WindowSubscriber$1=function(e){function t(t,r){e.call(this,t),this.destination=t,this.closingSelector=r,this.openWindow()}return __extends$1w(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.openWindow(o)},t.prototype.notifyError=function(e,t){this._error(e)},t.prototype.notifyComplete=function(e){this.openWindow(e)},t.prototype._next=function(e){this.window.next(e)},t.prototype._error=function(e){this.window.error(e),this.destination.error(e),this.unsubscribeClosingNotification()},t.prototype._complete=function(){this.window.complete(),this.destination.complete(),this.unsubscribeClosingNotification()},t.prototype.unsubscribeClosingNotification=function(){this.closingNotification&&this.closingNotification.unsubscribe()},t.prototype.openWindow=function(e){void 0===e&&(e=null),e&&(this.remove(e),e.unsubscribe());var t=this.window;t&&t.complete();var r=this.window=new Subject_1$1.Subject;this.destination.next(r);var n=tryCatch_1$1.tryCatch(this.closingSelector)();if(n===errorObject_1$1.errorObject){var o=errorObject_1$1.errorObject.e;this.destination.error(o),this.window.error(o)}else this.add(this.closingNotification=subscribeToResult_1$1.subscribeToResult(this,n))},t}(OuterSubscriber_1$1.OuterSubscriber),windowWhen_1={windowWhen:windowWhen_2},windowWhen$1={default:windowWhen_1,__moduleExports:windowWhen_1,windowWhen:windowWhen_2},__extends$1x=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function withLatestFrom(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){var r;"function"==typeof e[e.length-1]&&(r=e.pop());var n=e;return t.lift(new WithLatestFromOperator(n,r))}}var withLatestFrom_2=withLatestFrom,WithLatestFromOperator=function(){function e(e,t){this.observables=e,this.project=t}return e.prototype.call=function(e,t){return t.subscribe(new WithLatestFromSubscriber(e,this.observables,this.project))},e}(),WithLatestFromSubscriber=function(e){function t(t,r,n){e.call(this,t),this.observables=r,this.project=n,this.toRespond=[];var o=r.length;this.values=new Array(o);for(var i=0;i<o;i++)this.toRespond.push(i);for(i=0;i<o;i++){var a=r[i];this.add(subscribeToResult_1$1.subscribeToResult(this,a,a,i))}}return __extends$1x(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.values[r]=t;var i=this.toRespond;if(i.length>0){var a=i.indexOf(r);-1!==a&&i.splice(a,1)}},t.prototype.notifyComplete=function(){},t.prototype._next=function(e){if(0===this.toRespond.length){var t=[e].concat(this.values);this.project?this._tryProject(t):this.destination.next(t)}},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(OuterSubscriber_1$1.OuterSubscriber),withLatestFrom_1={withLatestFrom:withLatestFrom_2},withLatestFrom$1={default:withLatestFrom_1,__moduleExports:withLatestFrom_1,withLatestFrom:withLatestFrom_2},__extends$1y=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function zip(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return function(t){return t.lift.call(zipStatic.apply(void 0,[t].concat(e)))}}var zip_2=zip;function zipStatic(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=e[e.length-1];return"function"==typeof r&&e.pop(),new ArrayObservable_1$1.ArrayObservable(e).lift(new ZipOperator(r))}var zipStatic_1=zipStatic,ZipOperator=function(){function e(e){this.project=e}return e.prototype.call=function(e,t){return t.subscribe(new ZipSubscriber(e,this.project))},e}(),ZipOperator_1=ZipOperator,ZipSubscriber=function(e){function t(t,r,n){void 0===n&&(n=Object.create(null)),e.call(this,t),this.iterators=[],this.active=0,this.project="function"==typeof r?r:null,this.values=n}return __extends$1y(t,e),t.prototype._next=function(e){var t=this.iterators;isArray_1$1.isArray(e)?t.push(new StaticArrayIterator(e)):"function"==typeof e[iterator_1$1.iterator]?t.push(new StaticIterator(e[iterator_1$1.iterator]())):t.push(new ZipBufferIterator(this.destination,this,e))},t.prototype._complete=function(){var e=this.iterators,t=e.length;if(0!==t){this.active=t;for(var r=0;r<t;r++){var n=e[r];n.stillUnsubscribed?this.add(n.subscribe(n,r)):this.active--}}else this.destination.complete()},t.prototype.notifyInactive=function(){this.active--,0===this.active&&this.destination.complete()},t.prototype.checkIterators=function(){for(var e=this.iterators,t=e.length,r=this.destination,n=0;n<t;n++){if("function"==typeof(a=e[n]).hasValue&&!a.hasValue())return}var o=!1,i=[];for(n=0;n<t;n++){var a,s=(a=e[n]).next();if(a.hasCompleted()&&(o=!0),s.done)return void r.complete();i.push(s.value)}this.project?this._tryProject(i):r.next(i),o&&r.complete()},t.prototype._tryProject=function(e){var t;try{t=this.project.apply(this,e)}catch(e){return void this.destination.error(e)}this.destination.next(t)},t}(Subscriber_1$1.Subscriber),ZipSubscriber_1=ZipSubscriber,StaticIterator=function(){function e(e){this.iterator=e,this.nextResult=e.next()}return e.prototype.hasValue=function(){return!0},e.prototype.next=function(){var e=this.nextResult;return this.nextResult=this.iterator.next(),e},e.prototype.hasCompleted=function(){var e=this.nextResult;return e&&e.done},e}(),StaticArrayIterator=function(){function e(e){this.array=e,this.index=0,this.length=0,this.length=e.length}return e.prototype[iterator_1$1.iterator]=function(){return this},e.prototype.next=function(e){var t=this.index++,r=this.array;return t<this.length?{value:r[t],done:!1}:{value:null,done:!0}},e.prototype.hasValue=function(){return this.array.length>this.index},e.prototype.hasCompleted=function(){return this.array.length===this.index},e}(),ZipBufferIterator=function(e){function t(t,r,n){e.call(this,t),this.parent=r,this.observable=n,this.stillUnsubscribed=!0,this.buffer=[],this.isComplete=!1}return __extends$1y(t,e),t.prototype[iterator_1$1.iterator]=function(){return this},t.prototype.next=function(){var e=this.buffer;return 0===e.length&&this.isComplete?{value:null,done:!0}:{value:e.shift(),done:!1}},t.prototype.hasValue=function(){return this.buffer.length>0},t.prototype.hasCompleted=function(){return 0===this.buffer.length&&this.isComplete},t.prototype.notifyComplete=function(){this.buffer.length>0?(this.isComplete=!0,this.parent.notifyInactive()):this.destination.complete()},t.prototype.notifyNext=function(e,t,r,n,o){this.buffer.push(t),this.parent.checkIterators()},t.prototype.subscribe=function(e,t){return subscribeToResult_1$1.subscribeToResult(this,this.observable,this,t)},t}(OuterSubscriber_1$1.OuterSubscriber),zip_1={zip:zip_2,zipStatic:zipStatic_1,ZipOperator:ZipOperator_1,ZipSubscriber:ZipSubscriber_1},zip$1={default:zip_1,__moduleExports:zip_1,zip:zip_2,zipStatic:zipStatic_1,ZipOperator:ZipOperator_1,ZipSubscriber:ZipSubscriber_1},zip_1$1=zip$1&&zip_1||zip$1;function zipAll(e){return function(t){return t.lift(new zip_1$1.ZipOperator(e))}}var zipAll_2=zipAll,zipAll_1={zipAll:zipAll_2},zipAll$1={default:zipAll_1,__moduleExports:zipAll_1,zipAll:zipAll_2},auditTime_1$1=auditTime$1&&auditTime_1||auditTime$1,buffer_1$1=buffer$1&&buffer_1||buffer$1,bufferCount_1$1=bufferCount$1&&bufferCount_1||bufferCount$1,bufferTime_1$1=bufferTime$1&&bufferTime_1||bufferTime$1,bufferToggle_1$1=bufferToggle$1&&bufferToggle_1||bufferToggle$1,bufferWhen_1$1=bufferWhen$1&&bufferWhen_1||bufferWhen$1,catchError_1$1=catchError$1&&catchError_1||catchError$1,combineAll_1$1=combineAll$1&&combineAll_1||combineAll$1,concat_1$1=concat$3&&concat_3||concat$3,concatMapTo_1$1=concatMapTo$1&&concatMapTo_1||concatMapTo$1,count_1$1=count$1&&count_1||count$1,debounce_1$1=debounce$1&&debounce_1||debounce$1,debounceTime_1$1=debounceTime$1&&debounceTime_1||debounceTime$1,delay_1$1=delay$1&&delay_1||delay$1,delayWhen_1$1=delayWhen$1&&delayWhen_1||delayWhen$1,dematerialize_1$1=dematerialize$1&&dematerialize_1||dematerialize$1,distinct_1$1=distinct$1&&distinct_1||distinct$1,distinctUntilKeyChanged_1$1=distinctUntilKeyChanged$1&&distinctUntilKeyChanged_1||distinctUntilKeyChanged$1,elementAt_1$1=elementAt$1&&elementAt_1||elementAt$1,every_1$1=every$1&&every_1||every$1,exhaust_1$1=exhaust$1&&exhaust_1||exhaust$1,exhaustMap_1$1=exhaustMap$1&&exhaustMap_1||exhaustMap$1,expand_1$1=expand$1&&expand_1||expand$1,finalize_1$1=finalize$1&&finalize_1||finalize$1,findIndex_1$1=findIndex$1&&findIndex_1||findIndex$1,first_1$1=first$1&&first_1||first$1,groupBy_1$1=groupBy$1&&groupBy_1||groupBy$1,ignoreElements_1$1=ignoreElements$1&&ignoreElements_1||ignoreElements$1,isEmpty_1$1=isEmpty$1&&isEmpty_1||isEmpty$1,last_1$1=last$1&&last_1||last$1,mapTo_1$1=mapTo$1&&mapTo_1||mapTo$1,materialize_1$1=materialize$1&&materialize_1||materialize$1,max_1$1=max$3&&max_1||max$3,merge_1$1=merge$3&&merge_3||merge$3,mergeMapTo_1$1=mergeMapTo$1&&mergeMapTo_1||mergeMapTo$1,mergeScan_1$1=mergeScan$1&&mergeScan_1||mergeScan$1,min_1$1=min$4&&min_1||min$4,onErrorResumeNext_1$1=onErrorResumeNext$1&&onErrorResumeNext_1||onErrorResumeNext$1,pairwise_1$1=pairwise$1&&pairwise_1||pairwise$1,partition_1$1=partition$1&&partition_1||partition$1,pluck_1$1=pluck$1&&pluck_1||pluck$1,publish_1$1=publish$1&&publish_1||publish$1,publishBehavior_1$1=publishBehavior$1&&publishBehavior_1||publishBehavior$1,publishLast_1$1=publishLast$1&&publishLast_1||publishLast$1,publishReplay_1$1=publishReplay$1&&publishReplay_1||publishReplay$1,race_1$1=race$3&&race_2$2||race$3,repeat_1$1=repeat$2&&repeat_1||repeat$2,repeatWhen_1$1=repeatWhen$1&&repeatWhen_1||repeatWhen$1,retry_1$1=retry$1&&retry_1||retry$1,retryWhen_1$1=retryWhen$1&&retryWhen_1||retryWhen$1,sample_1$1=sample$1&&sample_1||sample$1,sampleTime_1$1=sampleTime$1&&sampleTime_1||sampleTime$1,sequenceEqual_1$1=sequenceEqual$1&&sequenceEqual_1||sequenceEqual$1,share_1$1=share$1&&share_1||share$1,shareReplay_1$1=shareReplay$1&&shareReplay_1||shareReplay$1,single_1$1=single$1&&single_1||single$1,skip_1$1=skip$1&&skip_1||skip$1,skipLast_1$1=skipLast$1&&skipLast_1||skipLast$1,skipUntil_1$1=skipUntil$1&&skipUntil_1||skipUntil$1,skipWhile_1$1=skipWhile$1&&skipWhile_1||skipWhile$1,startWith_1$1=startWith$1&&startWith_1||startWith$1,switchAll_1$1=switchAll$1&&switchAll_1||switchAll$1,switchMapTo_1$1=switchMapTo$1&&switchMapTo_1||switchMapTo$1,take_1$1=take$1&&take_1||take$1,takeUntil_1$1=takeUntil$1&&takeUntil_1||takeUntil$1,takeWhile_1$1=takeWhile$1&&takeWhile_1||takeWhile$1,tap_1$1=tap$1&&tap_1||tap$1,throttleTime_1$1=throttleTime$1&&throttleTime_1||throttleTime$1,timeInterval_1$1=timeInterval$1&&timeInterval_1||timeInterval$1,timeout_1$1=timeout$1&&timeout_1||timeout$1,timeoutWith_1$1=timeoutWith$1&&timeoutWith_1||timeoutWith$1,timestamp_1$1=timestamp$1&&timestamp_1||timestamp$1,toArray_1$1=toArray$1&&toArray_1||toArray$1,window_1$1=window$2&&window_1||window$2,windowCount_1$1=windowCount$1&&windowCount_1||windowCount$1,windowTime_1$1=windowTime$1&&windowTime_1||windowTime$1,windowToggle_1$1=windowToggle$1&&windowToggle_1||windowToggle$1,windowWhen_1$1=windowWhen$1&&windowWhen_1||windowWhen$1,withLatestFrom_1$1=withLatestFrom$1&&withLatestFrom_1||withLatestFrom$1,zipAll_1$1=zipAll$1&&zipAll_1||zipAll$1,audit$2=audit_1$1.audit,auditTime$2=auditTime_1$1.auditTime,buffer$2=buffer_1$1.buffer,bufferCount$2=bufferCount_1$1.bufferCount,bufferTime$2=bufferTime_1$1.bufferTime,bufferToggle$2=bufferToggle_1$1.bufferToggle,bufferWhen$2=bufferWhen_1$1.bufferWhen,catchError$2=catchError_1$1.catchError,combineAll$2=combineAll_1$1.combineAll,combineLatest$2=combineLatest_1$1.combineLatest,concat$4=concat_1$1.concat,concatAll$2=concatAll_1$1.concatAll,concatMap$2=concatMap_1$1.concatMap,concatMapTo$2=concatMapTo_1$1.concatMapTo,count$2=count_1$1.count,debounce$2=debounce_1$1.debounce,debounceTime$2=debounceTime_1$1.debounceTime,defaultIfEmpty$2=defaultIfEmpty_1$1.defaultIfEmpty,delay$2=delay_1$1.delay,delayWhen$2=delayWhen_1$1.delayWhen,dematerialize$2=dematerialize_1$1.dematerialize,distinct$2=distinct_1$1.distinct,distinctUntilChanged$2=distinctUntilChanged_1$1.distinctUntilChanged,distinctUntilKeyChanged$2=distinctUntilKeyChanged_1$1.distinctUntilKeyChanged,elementAt$2=elementAt_1$1.elementAt,every$2=every_1$1.every,exhaust$2=exhaust_1$1.exhaust,exhaustMap$2=exhaustMap_1$1.exhaustMap,expand$2=expand_1$1.expand,filter$4=filter_1$1.filter,finalize$2=finalize_1$1.finalize,find$2=find_1$1.find,findIndex$2=findIndex_1$1.findIndex,first$2=first_1$1.first,groupBy$2=groupBy_1$1.groupBy,ignoreElements$2=ignoreElements_1$1.ignoreElements,isEmpty$2=isEmpty_1$1.isEmpty,last$2=last_1$1.last,map$4=map_1$1.map,mapTo$2=mapTo_1$1.mapTo,materialize$2=materialize_1$1.materialize,max$4=max_1$1.max,merge$4=merge_1$1.merge,mergeAll$2=mergeAll_1$1.mergeAll,mergeMap$2=mergeMap_1$1.mergeMap,mergeMap_2$1=mergeMap_1$1,flatMap=mergeMap_2$1.mergeMap,mergeMapTo$2=mergeMapTo_1$1.mergeMapTo,mergeScan$2=mergeScan_1$1.mergeScan,min$5=min_1$1.min,multicast$2=multicast_1$1.multicast,observeOn$2=observeOn_1$1.observeOn,onErrorResumeNext$2=onErrorResumeNext_1$1.onErrorResumeNext,pairwise$2=pairwise_1$1.pairwise,partition$2=partition_1$1.partition,pluck$2=pluck_1$1.pluck,publish$2=publish_1$1.publish,publishBehavior$2=publishBehavior_1$1.publishBehavior,publishLast$2=publishLast_1$1.publishLast,publishReplay$2=publishReplay_1$1.publishReplay,race$4=race_1$1.race,reduce$2=reduce_1$1.reduce,repeat$3=repeat_1$1.repeat,repeatWhen$2=repeatWhen_1$1.repeatWhen,retry$2=retry_1$1.retry,retryWhen$2=retryWhen_1$1.retryWhen,refCount$2=refCount_1$1.refCount,sample$2=sample_1$1.sample,sampleTime$2=sampleTime_1$1.sampleTime,scan$2=scan_1$1.scan,sequenceEqual$2=sequenceEqual_1$1.sequenceEqual,share$2=share_1$1.share,shareReplay$2=shareReplay_1$1.shareReplay,single$2=single_1$1.single,skip$2=skip_1$1.skip,skipLast$2=skipLast_1$1.skipLast,skipUntil$2=skipUntil_1$1.skipUntil,skipWhile$2=skipWhile_1$1.skipWhile,startWith$2=startWith_1$1.startWith,switchAll$2=switchAll_1$1.switchAll,switchMap$4=switchMap_1$1.switchMap,switchMapTo$2=switchMapTo_1$1.switchMapTo,take$2=take_1$1.take,takeLast$2=takeLast_1$1.takeLast,takeUntil$2=takeUntil_1$1.takeUntil,takeWhile$2=takeWhile_1$1.takeWhile,tap$2=tap_1$1.tap,throttle$1=throttle_1$1.throttle,throttleTime$2=throttleTime_1$1.throttleTime,timeInterval$2=timeInterval_1$1.timeInterval,timeout$2=timeout_1$1.timeout,timeoutWith$2=timeoutWith_1$1.timeoutWith,timestamp$2=timestamp_1$1.timestamp,toArray$2=toArray_1$1.toArray,window$3=window_1$1.window,windowCount$2=windowCount_1$1.windowCount,windowTime$2=windowTime_1$1.windowTime,windowToggle$2=windowToggle_1$1.windowToggle,windowWhen$2=windowWhen_1$1.windowWhen,withLatestFrom$2=withLatestFrom_1$1.withLatestFrom,zip$2=zip_1$1.zip,zipAll$2=zipAll_1$1.zipAll,operators={audit:audit$2,auditTime:auditTime$2,buffer:buffer$2,bufferCount:bufferCount$2,bufferTime:bufferTime$2,bufferToggle:bufferToggle$2,bufferWhen:bufferWhen$2,catchError:catchError$2,combineAll:combineAll$2,combineLatest:combineLatest$2,concat:concat$4,concatAll:concatAll$2,concatMap:concatMap$2,concatMapTo:concatMapTo$2,count:count$2,debounce:debounce$2,debounceTime:debounceTime$2,defaultIfEmpty:defaultIfEmpty$2,delay:delay$2,delayWhen:delayWhen$2,dematerialize:dematerialize$2,distinct:distinct$2,distinctUntilChanged:distinctUntilChanged$2,distinctUntilKeyChanged:distinctUntilKeyChanged$2,elementAt:elementAt$2,every:every$2,exhaust:exhaust$2,exhaustMap:exhaustMap$2,expand:expand$2,filter:filter$4,finalize:finalize$2,find:find$2,findIndex:findIndex$2,first:first$2,groupBy:groupBy$2,ignoreElements:ignoreElements$2,isEmpty:isEmpty$2,last:last$2,map:map$4,mapTo:mapTo$2,materialize:materialize$2,max:max$4,merge:merge$4,mergeAll:mergeAll$2,mergeMap:mergeMap$2,flatMap:flatMap,mergeMapTo:mergeMapTo$2,mergeScan:mergeScan$2,min:min$5,multicast:multicast$2,observeOn:observeOn$2,onErrorResumeNext:onErrorResumeNext$2,pairwise:pairwise$2,partition:partition$2,pluck:pluck$2,publish:publish$2,publishBehavior:publishBehavior$2,publishLast:publishLast$2,publishReplay:publishReplay$2,race:race$4,reduce:reduce$2,repeat:repeat$3,repeatWhen:repeatWhen$2,retry:retry$2,retryWhen:retryWhen$2,refCount:refCount$2,sample:sample$2,sampleTime:sampleTime$2,scan:scan$2,sequenceEqual:sequenceEqual$2,share:share$2,shareReplay:shareReplay$2,single:single$2,skip:skip$2,skipLast:skipLast$2,skipUntil:skipUntil$2,skipWhile:skipWhile$2,startWith:startWith$2,switchAll:switchAll$2,switchMap:switchMap$4,switchMapTo:switchMapTo$2,take:take$2,takeLast:takeLast$2,takeUntil:takeUntil$2,takeWhile:takeWhile$2,tap:tap$2,throttle:throttle$1,throttleTime:throttleTime$2,timeInterval:timeInterval$2,timeout:timeout$2,timeoutWith:timeoutWith$2,timestamp:timestamp$2,toArray:toArray$2,window:window$3,windowCount:windowCount$2,windowTime:windowTime$2,windowToggle:windowToggle$2,windowWhen:windowWhen$2,withLatestFrom:withLatestFrom$2,zip:zip$2,zipAll:zipAll$2},operators$1={default:operators,__moduleExports:operators,audit:audit$2,auditTime:auditTime$2,buffer:buffer$2,bufferCount:bufferCount$2,bufferTime:bufferTime$2,bufferToggle:bufferToggle$2,bufferWhen:bufferWhen$2,catchError:catchError$2,combineAll:combineAll$2,combineLatest:combineLatest$2,concat:concat$4,concatAll:concatAll$2,concatMap:concatMap$2,concatMapTo:concatMapTo$2,count:count$2,debounce:debounce$2,debounceTime:debounceTime$2,defaultIfEmpty:defaultIfEmpty$2,delay:delay$2,delayWhen:delayWhen$2,dematerialize:dematerialize$2,distinct:distinct$2,distinctUntilChanged:distinctUntilChanged$2,distinctUntilKeyChanged:distinctUntilKeyChanged$2,elementAt:elementAt$2,every:every$2,exhaust:exhaust$2,exhaustMap:exhaustMap$2,expand:expand$2,filter:filter$4,finalize:finalize$2,find:find$2,findIndex:findIndex$2,first:first$2,groupBy:groupBy$2,ignoreElements:ignoreElements$2,isEmpty:isEmpty$2,last:last$2,map:map$4,mapTo:mapTo$2,materialize:materialize$2,max:max$4,merge:merge$4,mergeAll:mergeAll$2,mergeMap:mergeMap$2,flatMap:flatMap,mergeMapTo:mergeMapTo$2,mergeScan:mergeScan$2,min:min$5,multicast:multicast$2,observeOn:observeOn$2,onErrorResumeNext:onErrorResumeNext$2,pairwise:pairwise$2,partition:partition$2,pluck:pluck$2,publish:publish$2,publishBehavior:publishBehavior$2,publishLast:publishLast$2,publishReplay:publishReplay$2,race:race$4,reduce:reduce$2,repeat:repeat$3,repeatWhen:repeatWhen$2,retry:retry$2,retryWhen:retryWhen$2,refCount:refCount$2,sample:sample$2,sampleTime:sampleTime$2,scan:scan$2,sequenceEqual:sequenceEqual$2,share:share$2,shareReplay:shareReplay$2,single:single$2,skip:skip$2,skipLast:skipLast$2,skipUntil:skipUntil$2,skipWhile:skipWhile$2,startWith:startWith$2,switchAll:switchAll$2,switchMap:switchMap$4,switchMapTo:switchMapTo$2,take:take$2,takeLast:takeLast$2,takeUntil:takeUntil$2,takeWhile:takeWhile$2,tap:tap$2,throttle:throttle$1,throttleTime:throttleTime$2,timeInterval:timeInterval$2,timeout:timeout$2,timeoutWith:timeoutWith$2,timestamp:timestamp$2,toArray:toArray$2,window:window$3,windowCount:windowCount$2,windowTime:windowTime$2,windowToggle:windowToggle$2,windowWhen:windowWhen$2,withLatestFrom:withLatestFrom$2,zip:zip$2,zipAll:zipAll$2},lodash_filter=createCommonjsModule(function(e,t){var r=200,n="Expected a function",o="__lodash_hash_undefined__",i=1,a=2,s=1/0,c=9007199254740991,u="[object Arguments]",l="[object Array]",p="[object Boolean]",f="[object Date]",h="[object Error]",_="[object Function]",d="[object GeneratorFunction]",b="[object Map]",y="[object Number]",m="[object Object]",$="[object RegExp]",v="[object Set]",g="[object String]",E="[object Symbol]",S="[object ArrayBuffer]",O="[object DataView]",x=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,w=/^\w*$/,T=/^\./,A=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,C=/\\(\\)?/g,I=/^\[object .+?Constructor\]$/,P=/^(?:0|[1-9]\d*)$/,j={};j["[object Float32Array]"]=j["[object Float64Array]"]=j["[object Int8Array]"]=j["[object Int16Array]"]=j["[object Int32Array]"]=j["[object Uint8Array]"]=j["[object Uint8ClampedArray]"]=j["[object Uint16Array]"]=j["[object Uint32Array]"]=!0,j[u]=j[l]=j[S]=j[p]=j[O]=j[f]=j[h]=j[_]=j[b]=j[y]=j[m]=j[$]=j[v]=j[g]=j["[object WeakMap]"]=!1;var R="object"==_typeof(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,k="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,M=R||k||Function("return this")(),N=t&&!t.nodeType&&t,L=N&&e&&!e.nodeType&&e,F=L&&L.exports===N&&R.process,D=function(){try{return F&&F.binding("util")}catch(e){}}(),B=D&&D.isTypedArray;function U(e,t){for(var r=-1,n=e?e.length:0,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}function W(e,t){for(var r=-1,n=e?e.length:0;++r<n;)if(t(e[r],r,e))return!0;return!1}function G(e){var t=!1;if(null!=e&&"function"!=typeof e.toString)try{t=!!(e+"")}catch(e){}return t}function q(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function z(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var V,K,H,Y=Array.prototype,X=Function.prototype,J=Object.prototype,Z=M["__core-js_shared__"],Q=(V=/[^.]+$/.exec(Z&&Z.keys&&Z.keys.IE_PROTO||""))?"Symbol(src)_1."+V:"",ee=X.toString,te=J.hasOwnProperty,re=J.toString,ne=RegExp("^"+ee.call(te).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),oe=M.Symbol,ie=M.Uint8Array,ae=J.propertyIsEnumerable,se=Y.splice,ce=(K=Object.keys,H=Object,function(e){return K(H(e))}),ue=qe(M,"DataView"),le=qe(M,"Map"),pe=qe(M,"Promise"),fe=qe(M,"Set"),he=qe(M,"WeakMap"),_e=qe(Object,"create"),de=Ze(ue),be=Ze(le),ye=Ze(pe),me=Ze(fe),$e=Ze(he),ve=oe?oe.prototype:void 0,ge=ve?ve.valueOf:void 0,Ee=ve?ve.toString:void 0;function Se(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Oe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xe(e){var t=-1,r=e?e.length:0;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function we(e){var t=-1,r=e?e.length:0;for(this.__data__=new xe;++t<r;)this.add(e[t])}function Te(e){this.__data__=new Oe(e)}function Ae(e,t){var r=rt(e)||tt(e)?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],n=r.length,o=!!n;for(var i in e)!t&&!te.call(e,i)||o&&("length"==i||Ve(i,n))||r.push(i);return r}function Ce(e,t){for(var r=e.length;r--;)if(et(e[r][0],t))return r;return-1}Se.prototype.clear=function(){this.__data__=_e?_e(null):{}},Se.prototype.delete=function(e){return this.has(e)&&delete this.__data__[e]},Se.prototype.get=function(e){var t=this.__data__;if(_e){var r=t[e];return r===o?void 0:r}return te.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return _e?void 0!==t[e]:te.call(t,e)},Se.prototype.set=function(e,t){return this.__data__[e]=_e&&void 0===t?o:t,this},Oe.prototype.clear=function(){this.__data__=[]},Oe.prototype.delete=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0||(r==t.length-1?t.pop():se.call(t,r,1),0))},Oe.prototype.get=function(e){var t=this.__data__,r=Ce(t,e);return r<0?void 0:t[r][1]},Oe.prototype.has=function(e){return Ce(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?r.push([e,t]):r[n][1]=t,this},xe.prototype.clear=function(){this.__data__={hash:new Se,map:new(le||Oe),string:new Se}},xe.prototype.delete=function(e){return Ge(this,e).delete(e)},xe.prototype.get=function(e){return Ge(this,e).get(e)},xe.prototype.has=function(e){return Ge(this,e).has(e)},xe.prototype.set=function(e,t){return Ge(this,e).set(e,t),this},we.prototype.add=we.prototype.push=function(e){return this.__data__.set(e,o),this},we.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Oe},Te.prototype.delete=function(e){return this.__data__.delete(e)},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var o=n.__data__;if(!le||o.length<r-1)return o.push([e,t]),this;n=this.__data__=new xe(o)}return n.set(e,t),this};var Ie,Pe,je=(Ie=function(e,t){return e&&ke(e,t,lt)},function(e,t){if(null==e)return e;if(!nt(e))return Ie(e,t);for(var r=e.length,n=Pe?r:-1,o=Object(e);(Pe?n--:++n<r)&&!1!==t(o[n],n,o););return e});function Re(e,t){var r=[];return je(e,function(e,n,o){t(e,n,o)&&r.push(e)}),r}var ke=function(e){return function(t,r,n){for(var o=-1,i=Object(t),a=n(t),s=a.length;s--;){var c=a[e?s:++o];if(!1===r(i[c],c,i))break}return t}}();function Me(e,t){for(var r=0,n=(t=Ke(t,e)?[t]:Ue(t)).length;null!=e&&r<n;)e=e[Je(t[r++])];return r&&r==n?e:void 0}function Ne(e,t){return null!=e&&t in Object(e)}function Le(e,t,r,n,o){return e===t||(null==e||null==t||!at(e)&&!st(t)?e!=e&&t!=t:function(e,t,r,n,o,s){var c=rt(e),_=rt(t),d=l,x=l;c||(d=(d=ze(e))==u?m:d);_||(x=(x=ze(t))==u?m:x);var w=d==m&&!G(e),T=x==m&&!G(t),A=d==x;if(A&&!w)return s||(s=new Te),c||ut(e)?We(e,t,r,n,o,s):function(e,t,r,n,o,s,c){switch(r){case O:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case S:return!(e.byteLength!=t.byteLength||!n(new ie(e),new ie(t)));case p:case f:case y:return et(+e,+t);case h:return e.name==t.name&&e.message==t.message;case $:case g:return e==t+"";case b:var u=q;case v:var l=s&a;if(u||(u=z),e.size!=t.size&&!l)return!1;var _=c.get(e);if(_)return _==t;s|=i,c.set(e,t);var d=We(u(e),u(t),n,o,s,c);return c.delete(e),d;case E:if(ge)return ge.call(e)==ge.call(t)}return!1}(e,t,d,r,n,o,s);if(!(o&a)){var C=w&&te.call(e,"__wrapped__"),I=T&&te.call(t,"__wrapped__");if(C||I){var P=C?e.value():e,j=I?t.value():t;return s||(s=new Te),r(P,j,n,o,s)}}if(!A)return!1;return s||(s=new Te),function(e,t,r,n,o,i){var s=o&a,c=lt(e),u=c.length,l=lt(t).length;if(u!=l&&!s)return!1;for(var p=u;p--;){var f=c[p];if(!(s?f in t:te.call(t,f)))return!1}var h=i.get(e);if(h&&i.get(t))return h==t;var _=!0;i.set(e,t),i.set(t,e);for(var d=s;++p<u;){f=c[p];var b=e[f],y=t[f];if(n)var m=s?n(y,b,f,t,e,i):n(b,y,f,e,t,i);if(!(void 0===m?b===y||r(b,y,n,o,i):m)){_=!1;break}d||(d="constructor"==f)}if(_&&!d){var $=e.constructor,v=t.constructor;$!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof $&&$ instanceof $&&"function"==typeof v&&v instanceof v)&&(_=!1)}return i.delete(e),i.delete(t),_}(e,t,r,n,o,s)}(e,t,Le,r,n,o))}function Fe(e){return!(!at(e)||function(e){return!!Q&&Q in e}(e))&&(ot(e)||G(e)?ne:I).test(Ze(e))}function De(e){return"function"==typeof e?e:null==e?pt:"object"==(void 0===e?"undefined":_typeof(e))?rt(e)?function(e,t){if(Ke(e)&&He(t))return Ye(Je(e),t);return function(r){var n=function(e,t,r){var n=null==e?void 0:Me(e,t);return void 0===n?r:n}(r,e);return void 0===n&&n===t?function(e,t){return null!=e&&function(e,t,r){t=Ke(t,e)?[t]:Ue(t);var n,o=-1,i=t.length;for(;++o<i;){var a=Je(t[o]);if(!(n=null!=e&&r(e,a)))break;e=e[a]}if(n)return n;return!!(i=e?e.length:0)&&it(i)&&Ve(a,i)&&(rt(e)||tt(e))}(e,t,Ne)}(r,e):Le(t,n,void 0,i|a)}}(e[0],e[1]):function(e){var t=function(e){var t=lt(e),r=t.length;for(;r--;){var n=t[r],o=e[n];t[r]=[n,o,He(o)]}return t}(e);if(1==t.length&&t[0][2])return Ye(t[0][0],t[0][1]);return function(r){return r===e||function(e,t,r,n){var o=r.length,s=o,c=!n;if(null==e)return!s;for(e=Object(e);o--;){var u=r[o];if(c&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<s;){var l=(u=r[o])[0],p=e[l],f=u[1];if(c&&u[2]){if(void 0===p&&!(l in e))return!1}else{var h=new Te;if(n)var _=n(p,f,l,e,t,h);if(!(void 0===_?Le(f,p,n,i|a,h):_))return!1}}return!0}(r,e,t)}}(e):Ke(t=e)?function(e){return function(t){return null==t?void 0:t[e]}}(Je(t)):function(e){return function(t){return Me(t,e)}}(t);var t}function Be(e){if(!function(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||J;return e===r}(e))return ce(e);var t=[];for(var r in Object(e))te.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Ue(e){return rt(e)?e:Xe(e)}function We(e,t,r,n,o,s){var c=o&a,u=e.length,l=t.length;if(u!=l&&!(c&&l>u))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var f=-1,h=!0,_=o&i?new we:void 0;for(s.set(e,t),s.set(t,e);++f<u;){var d=e[f],b=t[f];if(n)var y=c?n(b,d,f,t,e,s):n(d,b,f,e,t,s);if(void 0!==y){if(y)continue;h=!1;break}if(_){if(!W(t,function(e,t){if(!_.has(t)&&(d===e||r(d,e,n,o,s)))return _.add(t)})){h=!1;break}}else if(d!==b&&!r(d,b,n,o,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function Ge(e,t){var r,n,o=e.__data__;return("string"==(n=void 0===(r=t)?"undefined":_typeof(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function qe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Fe(r)?r:void 0}var ze=function(e){return re.call(e)};function Ve(e,t){return!!(t=null==t?c:t)&&("number"==typeof e||P.test(e))&&e>-1&&e%1==0&&e<t}function Ke(e,t){if(rt(e))return!1;var r=void 0===e?"undefined":_typeof(e);return!("number"!=r&&"symbol"!=r&&"boolean"!=r&&null!=e&&!ct(e))||(w.test(e)||!x.test(e)||null!=t&&e in Object(t))}function He(e){return e==e&&!at(e)}function Ye(e,t){return function(r){return null!=r&&(r[e]===t&&(void 0!==t||e in Object(r)))}}(ue&&ze(new ue(new ArrayBuffer(1)))!=O||le&&ze(new le)!=b||pe&&"[object Promise]"!=ze(pe.resolve())||fe&&ze(new fe)!=v||he&&"[object WeakMap]"!=ze(new he))&&(ze=function(e){var t=re.call(e),r=t==m?e.constructor:void 0,n=r?Ze(r):void 0;if(n)switch(n){case de:return O;case be:return b;case ye:return"[object Promise]";case me:return v;case $e:return"[object WeakMap]"}return t});var Xe=Qe(function(e){var t;e=null==(t=e)?"":function(e){if("string"==typeof e)return e;if(ct(e))return Ee?Ee.call(e):"";var t=e+"";return"0"==t&&1/e==-s?"-0":t}(t);var r=[];return T.test(e)&&r.push(""),e.replace(A,function(e,t,n,o){r.push(n?o.replace(C,"$1"):t||e)}),r});function Je(e){if("string"==typeof e||ct(e))return e;var t=e+"";return"0"==t&&1/e==-s?"-0":t}function Ze(e){if(null!=e){try{return ee.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Qe(e,t){if("function"!=typeof e||t&&"function"!=typeof t)throw new TypeError(n);var r=function r(){var n=arguments,o=t?t.apply(this,n):n[0],i=r.cache;if(i.has(o))return i.get(o);var a=e.apply(this,n);return r.cache=i.set(o,a),a};return r.cache=new(Qe.Cache||xe),r}function et(e,t){return e===t||e!=e&&t!=t}function tt(e){return function(e){return st(e)&&nt(e)}(e)&&te.call(e,"callee")&&(!ae.call(e,"callee")||re.call(e)==u)}Qe.Cache=xe;var rt=Array.isArray;function nt(e){return null!=e&&it(e.length)&&!ot(e)}function ot(e){var t=at(e)?re.call(e):"";return t==_||t==d}function it(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=c}function at(e){var t=void 0===e?"undefined":_typeof(e);return!!e&&("object"==t||"function"==t)}function st(e){return!!e&&"object"==(void 0===e?"undefined":_typeof(e))}function ct(e){return"symbol"==(void 0===e?"undefined":_typeof(e))||st(e)&&re.call(e)==E}var ut=B?function(e){return function(t){return e(t)}}(B):function(e){return st(e)&&it(e.length)&&!!j[re.call(e)]};function lt(e){return nt(e)?Ae(e):Be(e)}function pt(e){return e}e.exports=function(e,t){return(rt(e)?U:Re)(e,De(t))}}),SUCCESS="SUCCESS",FAILURE="FAILURE",reduxFormObservable$=new BehaviorSubject_2(combineEpics()),reduxPromiseObservableEpic=function(e,t,r){return reduxFormObservable$.mergeMap(function(n){return n(e,t,r)})},createListenerEpic=function(e,t){return function(r){return r.ofType(e[0]).do(function(e){var r=e.payload;return t.next({type:SUCCESS,payload:r})}).race(r.ofType(e[1]).do(function(e){var r=e.payload;return t.next({type:FAILURE,payload:r})})).ignoreElements()}},promiseActionCreator=function(e,t){var r=new Observable_2(function(e){reduxFormObservable$.next(createListenerEpic(t,e))});return function(t,n){return new Promise(function(o,i){n(e(_extends({},t)));var a=void 0;a=r.subscribe(function(e){var t=e.type,r=e.payload;t===SUCCESS?o(r):i(r),a.unsubscribe()})})}};function actionCreatorFactory(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(e){return e instanceof Error},r=e?e+"/":"";function n(e,n){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:t,i=r+e;return _extends(function(e,t){var r={type:i,payload:e};return(n||t)&&(r.meta=_extends({},n,t)),o&&("boolean"==typeof o||o(e))&&(r.error=!0),r},{type:i,toString:function(){return i},match:function(e){return e.type===i}})}return _extends(n,{async:function(e,t){return{type:r+e,started:n(e+"_STARTED",t,!1),done:n(e+"_DONE",t,!1),failed:n(e+"_FAILED",t,!0)}}})}var actionCreator=actionCreatorFactory(),TypeKeyActions;function actionCreatorsBuilder(e){var t=actionCreator(e),r=actionCreator.async(e);return[t,r,promiseActionCreator(t,[r.done.type,r.failed.type])]}!function(e){e._null="__null",e.ENABLE_FUNCTIONALITY="ENABLE_FUNCTIONALITY",e.LISTEN_MAP_EVENTS="LISTEN_MAP_EVENTS",e.ADD_MARKERS="ADD_MARKERS",e.REMOVE_MARKERS="REMOVE_MARKERS",e.GO_TO_MARKER="GO_TO_MARKER",e.ZOOM_IN="ZOOM_IN",e.ZOOM_OUT="ZOOM_OUT",e.PAN_TO="PAN_TO",e.GO_TO_INIT_EXTENT="GO_TO_INIT_EXTENT",e.GO_TO_EXTENT="GO_TO_EXTENT",e.GO_TO_POINT="GO_TO_POINT",e.ZOOM_TO_SCALE="ZOOM_TO_SCALE",e.DISABLE_FUNCTIONALITY="DISABLE_FUNCTIONALITY",e.SET_ENTRIES_VISIBILITIES="SET_ENTRIES_VISIBILITIES",e.SET_BASELAYERS_VISIBILITIES="SET_BASELAYERS_VISIBILITIES",e.SERVICE_GET_IMAGE_MAP="SERVICE_GET_IMAGE_MAP",e.SET_SELECTION_LAYERS="SET_SELECTION_LAYERS",e.RESET_SELECTION="RESET_SELECTION",e.ADD_TO_SELECTION="ADD_TO_SELECTION",e.REMOVE_FROM_SELECTION="REMOVE_FROM_SELECTION",e.SET_GLOBAL_PARAMETER_VALUE="SET_GLOBAL_PARAMETER_VALUE",e.SET_FILTER_HISTORY_TIMESTAMP="SET_FILTER_HISTORY_TIMESTAMP",e.SET_COMPONENTS_STATE="SET_COMPONENTS_STATE",e.DISPATCH_DATA_REFRESH_EVENT="DISPATCH_DATA_REFRESH_EVENT",e.SERVICE_GET="SERVICE_GET",e.SERVICE_CALL_METHOD="SERVICE_CALL_METHOD",e.SERVICE_EXECUTE_SEARCH="SERVICE_EXECUTE_SEARCH",e.SERVICE_CALL_REST="SERVICE_CALL_REST",e.SERVICE_FEATURE_TRANSACTION="SERVICE_FEATURE_TRANSACTION",e.SERVICE_LOCALIZE_ADDRESS="SERVICE_LOCALIZE_ADDRESS",e.REGISTER_EXTENSION="REGISTER_EXTENSION",e.ADD_MENU_ITEM="ADD_MENU_ITEM",e.REFRESH_MAP="REFRESH_MAP",e.CLEAR_SERVICE="CLEAR_SERVICE",e.SET_SELECTION_TOOL_MODE="SET_SELECTION_TOOL_MODE",e.SET_MAPENTRY_FILTERIDS="SET_MAPENTRY_FILTERIDS",e.CLEAR_MAPENTRIES_FILTERIDS="CLEAR_MAPENTRIES_FILTERIDS",e.LOAD_PROJECTION="LOAD_PROJECTION",e.OTHER_ACTION="__any_other_action_type__"}(TypeKeyActions||(TypeKeyActions={}));var setEntriesVisibilityCreator=actionCreator(TypeKeyActions.SET_ENTRIES_VISIBILITIES),setEntriesVisibilityAsyncCreator=actionCreator.async(TypeKeyActions.SET_ENTRIES_VISIBILITIES),setEntriesVisibilityCreatorP=promiseActionCreator(setEntriesVisibilityCreator,[setEntriesVisibilityAsyncCreator.done.type,setEntriesVisibilityAsyncCreator.failed.type]),TypeKeyActionsProxy,TypeKeyActionsPrivate;!function(e){e.EVENT_GEO="EVENT_GEO",e.GEO_API_PROXY_READY="GEO_API_PROXY_READY",e.INITIALIZE_APPLICATION_STATE="INITIALIZE_APPLICATION_STATE",e.UPDATE_MAP_EXTENT="UPDATE_MAP_EXTENT",e.MAP_EVENT="MAP_EVENT",e.INITIALIZE_MAP_STATE="INITIALIZE_MAP_STATE",e.UPDATE_SELECTION="UPDATE_SELECTION",e.UPDATE_MARKER_LIST="UPDATE_MARKER_LIST",e.UPDATE_FUNCTIONALITIES_STATE="UPDATE_FUNCTIONALITIES_STATE",e.UPDATE_FUNCTIONALITY_STATE="UPDATE_FUNCTIONALITY_STATE",e.MAP_ENTRIES_UPDATED="MAP_ENTRIES_UPDATED",e.SERVICE_DONE="SERVICE_DONE",e.SERVICE_EXCEPTION="SERVICE_EXCEPTION",e.BASELAYERS_UPDATED="BASELAYERS_UPDATED",e.UPDATE_GLOBAL_PARAMETER="UPDATE_GLOBAL_PARAMETER",e.UPDATE_FILTER_HISTORY_TIMESTAMP="UPDATE_FILTER_HISTORY_TIMESTAMP",e.COMPONENTS_STATE_UPDATED="COMPONENTS_STATE_UPDATED",e.SELECTION_TOOL_MODE_UPDATED="SELECTION_TOOL_MODE_UPDATED",e.PENDING_SERVICE="PENDING_SERVICE",e.MAP_ENTRIES_FILTERS_UPDATED="MAP_ENTRIES_FILTERS_UPDATED",e.PROJECTION_LOADED="PROJECTION_LOADED",e.OTHER_ACTION="__any_other_action_type__"}(TypeKeyActionsProxy||(TypeKeyActionsProxy={})),function(e){e.CONTAINER_INITIALIZER="CONTAINER_INITIALIZER",e.COMPONENT_INITIALIZER="COMPONENT_INITIALIZER",e.APPLICATION_INITIALIZER="APPLICATION_INITIALIZED",e.INIT_APP_TYPE="INIT_APP",e.GLOBAL_INITIALIZER="GLOBAL_INITIALIZER",e.MAP_AND_APP_INITED="MAP_AND_APP_INITED"}(TypeKeyActionsPrivate||(TypeKeyActionsPrivate={}));var pendingServiceCreator=actionCreator(TypeKeyActionsProxy.PENDING_SERVICE),clearServiceCreator=actionCreator(TypeKeyActions.CLEAR_SERVICE),applicationInitializerCreator=actionCreator(TypeKeyActionsPrivate.APPLICATION_INITIALIZER),containerInitializerCreator=actionCreator(TypeKeyActionsPrivate.CONTAINER_INITIALIZER),componentsInitializerCreator=actionCreator(TypeKeyActionsPrivate.COMPONENT_INITIALIZER),mapAndAppInitializerCreator=actionCreator(TypeKeyActionsPrivate.MAP_AND_APP_INITED),globalInitializerCreator=actionCreator(TypeKeyActionsPrivate.GLOBAL_INITIALIZER),_actionCreatorsBuilde=actionCreatorsBuilder(TypeKeyActionsPrivate.INIT_APP_TYPE),_actionCreatorsBuilde2=slicedToArray(_actionCreatorsBuilde,3),initApplicationCreator=_actionCreatorsBuilde2[0],initApplicationAsyncCreator=_actionCreatorsBuilde2[1],initApplicationCreatorP=_actionCreatorsBuilde2[2],setBaseLayerVisibilityCreator=actionCreator(TypeKeyActions.SET_BASELAYERS_VISIBILITIES),setBaseLayerVisibilityAsyncCreator=actionCreator.async(TypeKeyActions.SET_BASELAYERS_VISIBILITIES),setBaseLayerVisibilityCreatorP=promiseActionCreator(setBaseLayerVisibilityCreator,[setBaseLayerVisibilityAsyncCreator.done.type,setBaseLayerVisibilityAsyncCreator.failed.type]),setComponentsStateCreator=actionCreator(TypeKeyActions.SET_COMPONENTS_STATE),setComponentsStateAsyncCreator=actionCreator.async(TypeKeyActions.SET_COMPONENTS_STATE),setComponentsStateCreatorP=promiseActionCreator(setComponentsStateCreator,[setComponentsStateAsyncCreator.done.type,setComponentsStateAsyncCreator.failed.type]),dispatchDataRefreshEventCreator=actionCreator(TypeKeyActions.DISPATCH_DATA_REFRESH_EVENT),dispatchDataRefreshEventAsyncCreator=actionCreator.async(TypeKeyActions.DISPATCH_DATA_REFRESH_EVENT),dispatchDataRefreshEventCreatorP=promiseActionCreator(dispatchDataRefreshEventCreator,[dispatchDataRefreshEventAsyncCreator.done.type,dispatchDataRefreshEventAsyncCreator.failed.type]),setFilterHistoryTimestampCreator=actionCreator(TypeKeyActions.SET_FILTER_HISTORY_TIMESTAMP),setFilterHistoryTimestampAsyncCreator=actionCreator.async(TypeKeyActions.SET_FILTER_HISTORY_TIMESTAMP),setFilterHistoryTimestampCreatorP=promiseActionCreator(setFilterHistoryTimestampCreator,[setFilterHistoryTimestampAsyncCreator.done.type,setFilterHistoryTimestampAsyncCreator.failed.type]),enableFunctionalityCreator=actionCreator(TypeKeyActions.ENABLE_FUNCTIONALITY),enableFunctionalityAsyncCreator=actionCreator.async(TypeKeyActions.ENABLE_FUNCTIONALITY),enableFunctionalityCreatorP=promiseActionCreator(enableFunctionalityCreator,[enableFunctionalityAsyncCreator.done.type,enableFunctionalityAsyncCreator.failed.type]),disableFunctionalityCreator=actionCreator(TypeKeyActions.DISABLE_FUNCTIONALITY),disableFunctionalityAsyncCreator=actionCreator.async(TypeKeyActions.DISABLE_FUNCTIONALITY),disableFunctionalityCreatorP=promiseActionCreator(disableFunctionalityCreator,[disableFunctionalityAsyncCreator.done.type,disableFunctionalityAsyncCreator.failed.type]),setGlobalParameterValueCreator=actionCreator(TypeKeyActions.SET_GLOBAL_PARAMETER_VALUE),setGlobalParameterValueAsyncCreator=actionCreator.async(TypeKeyActions.SET_GLOBAL_PARAMETER_VALUE),setGlobalParameterValueCreatorP=promiseActionCreator(setGlobalParameterValueCreator,[setGlobalParameterValueAsyncCreator.done.type,setGlobalParameterValueAsyncCreator.failed.type]),zoomInCreator=actionCreator(TypeKeyActions.ZOOM_IN),zoomInAsyncCreator=actionCreator.async(TypeKeyActions.ZOOM_IN),zoomInCreatorP=promiseActionCreator(zoomInCreator,[zoomInAsyncCreator.done.type,zoomInAsyncCreator.failed.type]),zoomOutCreator=actionCreator(TypeKeyActions.ZOOM_OUT),zoomOutAsyncCreator=actionCreator.async(TypeKeyActions.ZOOM_OUT),zoomOutCreatorP=promiseActionCreator(zoomOutCreator,[zoomOutAsyncCreator.done.type,zoomOutAsyncCreator.failed.type]),panToCreator=actionCreator(TypeKeyActions.PAN_TO),panToAsyncCreator=actionCreator.async(TypeKeyActions.PAN_TO),panToCreatorP=promiseActionCreator(panToCreator,[panToAsyncCreator.done.type,panToAsyncCreator.failed.type]),gotoInitExtentCreator=actionCreator(TypeKeyActions.GO_TO_INIT_EXTENT),gotoInitExtentAsyncCreator=actionCreator.async(TypeKeyActions.GO_TO_INIT_EXTENT),gotoInitExtentCreatorP=promiseActionCreator(gotoInitExtentCreator,[gotoInitExtentAsyncCreator.done.type,gotoInitExtentAsyncCreator.failed.type]),gotoExtentCreator=actionCreator(TypeKeyActions.GO_TO_EXTENT),gotoExtentAsyncCreator=actionCreator.async(TypeKeyActions.GO_TO_EXTENT),gotoExtentCreatorP=promiseActionCreator(gotoExtentCreator,[gotoExtentAsyncCreator.done.type,gotoExtentAsyncCreator.failed.type]),gotoPointCreator=actionCreator(TypeKeyActions.GO_TO_POINT),gotoPointAsyncCreator=actionCreator.async(TypeKeyActions.GO_TO_POINT),gotoPointCreatorP=promiseActionCreator(gotoPointCreator,[gotoPointAsyncCreator.done.type,gotoPointAsyncCreator.failed.type]),zoomToScaleCreator=actionCreator(TypeKeyActions.ZOOM_TO_SCALE),zoomToScaleAsyncCreator=actionCreator.async(TypeKeyActions.ZOOM_TO_SCALE),zoomToScaleCreatorP=promiseActionCreator(zoomToScaleCreator,[zoomToScaleAsyncCreator.done.type,zoomToScaleAsyncCreator.failed.type]),listenMapEventsCreator=actionCreator(TypeKeyActions.LISTEN_MAP_EVENTS),listenMapEventsAsyncCreator=actionCreator.async(TypeKeyActions.LISTEN_MAP_EVENTS),listenMapEventsCreatorP=promiseActionCreator(listenMapEventsCreator,[listenMapEventsAsyncCreator.done.type,listenMapEventsAsyncCreator.failed.type]),addMarkersCreator=actionCreator(TypeKeyActions.ADD_MARKERS),addMarkersAsyncCreator=actionCreator.async(TypeKeyActions.ADD_MARKERS),addMarkersCreatorP=promiseActionCreator(addMarkersCreator,[addMarkersAsyncCreator.done.type,addMarkersAsyncCreator.failed.type]),gotoMarkerCreator=actionCreator(TypeKeyActions.GO_TO_MARKER),gotoMarkerAsyncCreator=actionCreator.async(TypeKeyActions.GO_TO_MARKER),gotoMarkerCreatorP=promiseActionCreator(gotoMarkerCreator,[gotoMarkerAsyncCreator.done.type,gotoMarkerAsyncCreator.failed.type]),removeMarkersCreator=actionCreator(TypeKeyActions.REMOVE_MARKERS),removeMarkersAsyncCreator=actionCreator.async(TypeKeyActions.REMOVE_MARKERS),removeMarkersCreatorP=promiseActionCreator(removeMarkersCreator,[removeMarkersAsyncCreator.done.type,removeMarkersAsyncCreator.failed.type]),actionCreator$1=actionCreatorFactory(null),INIT_APPLICATION_STATECreator=actionCreator$1(TypeKeyActionsProxy.INITIALIZE_APPLICATION_STATE),UPDATE_EXTENTCreator=actionCreator$1(TypeKeyActionsProxy.UPDATE_MAP_EXTENT),GEO_API_PROXY_READYCreator=actionCreator$1(TypeKeyActionsProxy.GEO_API_PROXY_READY),MAP_EVENTCreator=actionCreator$1(TypeKeyActionsProxy.MAP_EVENT),EVENT_GEOCreator=actionCreator$1(TypeKeyActionsProxy.EVENT_GEO),INITIALIZE_MAP_STATECreator=actionCreator$1(TypeKeyActionsProxy.INITIALIZE_MAP_STATE),UPDATE_SELECTIONCreator=actionCreator$1(TypeKeyActionsProxy.UPDATE_SELECTION),UPDATE_MARKERSCreator=actionCreator$1(TypeKeyActionsProxy.UPDATE_MARKER_LIST),UPDATE_FUNCTIONALITIES_STATECreator=actionCreator$1(TypeKeyActionsProxy.UPDATE_FUNCTIONALITIES_STATE),UPDATE_FUNCTIONALITY_STATECreator=actionCreator$1(TypeKeyActionsProxy.UPDATE_FUNCTIONALITY_STATE),MAP_ENTRIES_UPDATEDCreator=actionCreator$1(TypeKeyActionsProxy.MAP_ENTRIES_UPDATED),BASELAYERS_UPDATEDCreator=actionCreator$1(TypeKeyActionsProxy.BASELAYERS_UPDATED),UPDATE_GLOBAL_PARAMETERCreator=actionCreator$1(TypeKeyActionsProxy.UPDATE_GLOBAL_PARAMETER),UPDATE_FILTER_HISTORY_TIMESTAMPCreator=actionCreator$1(TypeKeyActionsProxy.UPDATE_FILTER_HISTORY_TIMESTAMP),COMPONENTS_STATE_UPDATEDCreator=actionCreator$1(TypeKeyActionsProxy.COMPONENTS_STATE_UPDATED),SERVICE_DONECreator=actionCreator$1(TypeKeyActionsProxy.SERVICE_DONE),SERVICE_EXCEPTIONCreator=actionCreator$1(TypeKeyActionsProxy.SERVICE_EXCEPTION),SELECTION_TOOL_MODE_UPDATEDCreator=actionCreator$1(TypeKeyActionsProxy.SELECTION_TOOL_MODE_UPDATED),PROJECTION_LOADEDCreator=actionCreator$1(TypeKeyActionsProxy.PROJECTION_LOADED),resetSelectionCreator=actionCreator(TypeKeyActions.RESET_SELECTION),resetSelectionAsyncCreator=actionCreator.async(TypeKeyActions.RESET_SELECTION),resetSelectionCreatorP=promiseActionCreator(resetSelectionCreator,[resetSelectionAsyncCreator.done.type,resetSelectionAsyncCreator.failed.type]),addToSelectionCreator=actionCreator(TypeKeyActions.ADD_TO_SELECTION),addToSelectionAsyncCreator=actionCreator.async(TypeKeyActions.ADD_TO_SELECTION),addToSelectionCreatorP=promiseActionCreator(addToSelectionCreator,[addToSelectionAsyncCreator.done.type,addToSelectionAsyncCreator.failed.type]),removeFromSelectionCreator=actionCreator(TypeKeyActions.REMOVE_FROM_SELECTION),removeFromSelectionAsyncCreator=actionCreator.async(TypeKeyActions.REMOVE_FROM_SELECTION),removeFromSelectionCreatorP=promiseActionCreator(removeFromSelectionCreator,[removeFromSelectionAsyncCreator.done.type,removeFromSelectionAsyncCreator.failed.type]),serviceGetImageMapCreator=actionCreator(TypeKeyActions.SERVICE_GET),serviceGetImageMapAsyncCreator=actionCreator.async(TypeKeyActions.SERVICE_GET_IMAGE_MAP),serviceGetImageMapAsyncCreatorP=promiseActionCreator(serviceGetImageMapCreator,[serviceGetImageMapAsyncCreator.done.type,serviceGetImageMapAsyncCreator.failed.type,serviceGetImageMapAsyncCreator.started.type]),callServiceMethodCreator=actionCreator(TypeKeyActions.SERVICE_CALL_METHOD),callServiceMethodAsyncCreator=actionCreator.async(TypeKeyActions.SERVICE_CALL_METHOD),callServiceMethodCreatorP=promiseActionCreator(callServiceMethodCreator,[callServiceMethodAsyncCreator.done.type,callServiceMethodAsyncCreator.failed.type]),callServiceRESTCreator=actionCreator(TypeKeyActions.SERVICE_CALL_REST),callServiceRESTAsyncCreator=actionCreator.async(TypeKeyActions.SERVICE_CALL_REST),callServiceRESTCreatorP=promiseActionCreator(callServiceRESTCreator,[callServiceRESTAsyncCreator.done.type,callServiceRESTAsyncCreator.failed.type]),serviceFeatureTransactionCreator=actionCreator(TypeKeyActions.SERVICE_FEATURE_TRANSACTION),serviceFeatureTransactionAsyncCreator=actionCreator.async(TypeKeyActions.SERVICE_FEATURE_TRANSACTION),serviceFeatureTransactionCreatorP=promiseActionCreator(serviceFeatureTransactionCreator,[serviceFeatureTransactionAsyncCreator.done.type,serviceFeatureTransactionAsyncCreator.failed.type,serviceFeatureTransactionAsyncCreator.started.type]),serviceExecuteSearchCreator=actionCreator(TypeKeyActions.SERVICE_EXECUTE_SEARCH),serviceExecuteSearchAsyncCreator=actionCreator.async(TypeKeyActions.SERVICE_EXECUTE_SEARCH),serviceExecuteSearchCreatorP=promiseActionCreator(serviceExecuteSearchCreator,[serviceExecuteSearchAsyncCreator.done.type,serviceExecuteSearchAsyncCreator.failed.type,serviceExecuteSearchAsyncCreator.started.type]),_actionCreatorsBuilde$1=actionCreatorsBuilder(TypeKeyActions.SERVICE_LOCALIZE_ADDRESS),_actionCreatorsBuilde2$1=slicedToArray(_actionCreatorsBuilde$1,3),serviceLocalizeAddressCreator=_actionCreatorsBuilde2$1[0],serviceLocalizeAddressAsyncCreator=_actionCreatorsBuilde2$1[1],serviceLocalizeAddressCreatorP=_actionCreatorsBuilde2$1[2],creators={setEntriesVisibilityCreator:setEntriesVisibilityCreator,clearServiceCreator:clearServiceCreator,pendingServiceCreator:pendingServiceCreator,applicationInitializerCreator:applicationInitializerCreator,containerInitializerCreator:containerInitializerCreator,globalInitializerCreator:globalInitializerCreator,componentsInitializerCreator:componentsInitializerCreator,initApplicationCreator:initApplicationCreator,initApplicationAsyncCreator:initApplicationAsyncCreator,initApplicationCreatorP:initApplicationCreatorP,mapAndAppInitializerCreator:mapAndAppInitializerCreator,setBaseLayerVisibilityCreator:setBaseLayerVisibilityCreator,setBaseLayerVisibilityAsyncCreator:setBaseLayerVisibilityAsyncCreator,setBaseLayerVisibilityCreatorP:setBaseLayerVisibilityCreatorP,setComponentsStateCreator:setComponentsStateCreator,setComponentsStateAsyncCreator:setComponentsStateAsyncCreator,setComponentsStateCreatorP:setComponentsStateCreatorP,dispatchDataRefreshEventCreator:dispatchDataRefreshEventCreator,dispatchDataRefreshEventAsyncCreator:dispatchDataRefreshEventAsyncCreator,dispatchDataRefreshEventCreatorP:dispatchDataRefreshEventCreatorP,setEntriesVisibilityAsyncCreator:setEntriesVisibilityAsyncCreator,setEntriesVisibilityCreatorP:setEntriesVisibilityCreatorP,setFilterHistoryTimestampCreator:setFilterHistoryTimestampCreator,setFilterHistoryTimestampAsyncCreator:setFilterHistoryTimestampAsyncCreator,setFilterHistoryTimestampCreatorP:setFilterHistoryTimestampCreatorP,enableFunctionalityCreator:enableFunctionalityCreator,enableFunctionalityAsyncCreator:enableFunctionalityAsyncCreator,enableFunctionalityCreatorP:enableFunctionalityCreatorP,disableFunctionalityCreator:disableFunctionalityCreator,disableFunctionalityAsyncCreator:disableFunctionalityAsyncCreator,disableFunctionalityCreatorP:disableFunctionalityCreatorP,setGlobalParameterValueCreator:setGlobalParameterValueCreator,setGlobalParameterValueAsyncCreator:setGlobalParameterValueAsyncCreator,setGlobalParameterValueCreatorP:setGlobalParameterValueCreatorP,zoomInCreator:zoomInCreator,zoomInAsyncCreator:zoomInAsyncCreator,zoomInCreatorP:zoomInCreatorP,zoomOutCreator:zoomOutCreator,zoomOutAsyncCreator:zoomOutAsyncCreator,zoomOutCreatorP:zoomOutCreatorP,panToCreator:panToCreator,panToAsyncCreator:panToAsyncCreator,panToCreatorP:panToCreatorP,gotoInitExtentCreator:gotoInitExtentCreator,gotoInitExtentAsyncCreator:gotoInitExtentAsyncCreator,gotoInitExtentCreatorP:gotoInitExtentCreatorP,gotoExtentCreator:gotoExtentCreator,gotoExtentAsyncCreator:gotoExtentAsyncCreator,gotoExtentCreatorP:gotoExtentCreatorP,gotoPointCreator:gotoPointCreator,gotoPointAsyncCreator:gotoPointAsyncCreator,gotoPointCreatorP:gotoPointCreatorP,zoomToScaleCreator:zoomToScaleCreator,zoomToScaleAsyncCreator:zoomToScaleAsyncCreator,zoomToScaleCreatorP:zoomToScaleCreatorP,listenMapEventsCreator:listenMapEventsCreator,listenMapEventsAsyncCreator:listenMapEventsAsyncCreator,listenMapEventsCreatorP:listenMapEventsCreatorP,addMarkersCreator:addMarkersCreator,addMarkersAsyncCreator:addMarkersAsyncCreator,addMarkersCreatorP:addMarkersCreatorP,gotoMarkerCreator:gotoMarkerCreator,gotoMarkerAsyncCreator:gotoMarkerAsyncCreator,gotoMarkerCreatorP:gotoMarkerCreatorP,removeMarkersCreator:removeMarkersCreator,removeMarkersAsyncCreator:removeMarkersAsyncCreator,removeMarkersCreatorP:removeMarkersCreatorP,INIT_APPLICATION_STATECreator:INIT_APPLICATION_STATECreator,UPDATE_EXTENTCreator:UPDATE_EXTENTCreator,GEO_API_PROXY_READYCreator:GEO_API_PROXY_READYCreator,MAP_EVENTCreator:MAP_EVENTCreator,EVENT_GEOCreator:EVENT_GEOCreator,INITIALIZE_MAP_STATECreator:INITIALIZE_MAP_STATECreator,UPDATE_SELECTIONCreator:UPDATE_SELECTIONCreator,UPDATE_MARKERSCreator:UPDATE_MARKERSCreator,UPDATE_FUNCTIONALITIES_STATECreator:UPDATE_FUNCTIONALITIES_STATECreator,UPDATE_FUNCTIONALITY_STATECreator:UPDATE_FUNCTIONALITY_STATECreator,MAP_ENTRIES_UPDATEDCreator:MAP_ENTRIES_UPDATEDCreator,BASELAYERS_UPDATEDCreator:BASELAYERS_UPDATEDCreator,UPDATE_GLOBAL_PARAMETERCreator:UPDATE_GLOBAL_PARAMETERCreator,UPDATE_FILTER_HISTORY_TIMESTAMPCreator:UPDATE_FILTER_HISTORY_TIMESTAMPCreator,COMPONENTS_STATE_UPDATEDCreator:COMPONENTS_STATE_UPDATEDCreator,SERVICE_DONECreator:SERVICE_DONECreator,SERVICE_EXCEPTIONCreator:SERVICE_EXCEPTIONCreator,SELECTION_TOOL_MODE_UPDATEDCreator:SELECTION_TOOL_MODE_UPDATEDCreator,PROJECTION_LOADEDCreator:PROJECTION_LOADEDCreator,resetSelectionCreator:resetSelectionCreator,resetSelectionAsyncCreator:resetSelectionAsyncCreator,resetSelectionCreatorP:resetSelectionCreatorP,addToSelectionCreator:addToSelectionCreator,addToSelectionAsyncCreator:addToSelectionAsyncCreator,addToSelectionCreatorP:addToSelectionCreatorP,removeFromSelectionCreator:removeFromSelectionCreator,removeFromSelectionAsyncCreator:removeFromSelectionAsyncCreator,removeFromSelectionCreatorP:removeFromSelectionCreatorP,serviceGetImageMapCreator:serviceGetImageMapCreator,serviceGetImageMapAsyncCreator:serviceGetImageMapAsyncCreator,serviceGetImageMapAsyncCreatorP:serviceGetImageMapAsyncCreatorP,callServiceMethodCreator:callServiceMethodCreator,callServiceMethodAsyncCreator:callServiceMethodAsyncCreator,callServiceMethodCreatorP:callServiceMethodCreatorP,callServiceRESTCreator:callServiceRESTCreator,callServiceRESTAsyncCreator:callServiceRESTAsyncCreator,callServiceRESTCreatorP:callServiceRESTCreatorP,serviceFeatureTransactionCreator:serviceFeatureTransactionCreator,serviceFeatureTransactionAsyncCreator:serviceFeatureTransactionAsyncCreator,serviceFeatureTransactionCreatorP:serviceFeatureTransactionCreatorP,serviceExecuteSearchCreator:serviceExecuteSearchCreator,serviceExecuteSearchAsyncCreator:serviceExecuteSearchAsyncCreator,serviceExecuteSearchCreatorP:serviceExecuteSearchCreatorP,serviceLocalizeAddressCreator:serviceLocalizeAddressCreator,serviceLocalizeAddressAsyncCreator:serviceLocalizeAddressAsyncCreator,serviceLocalizeAddressCreatorP:serviceLocalizeAddressCreatorP},_actionCreatorsBuilde$2=actionCreatorsBuilder(TypeKeyActions.REGISTER_EXTENSION),_actionCreatorsBuilde2$2=slicedToArray(_actionCreatorsBuilde$2,3),registerExtensionCreator=_actionCreatorsBuilde2$2[0],registerExtensionAsyncCreator=_actionCreatorsBuilde2$2[1],registerExtensionCreatorP=_actionCreatorsBuilde2$2[2],TypeKeyUtils;!function(e){e.UTIL_CONVERT_PROJ="UTIL_CONVERT_PROJ"}(TypeKeyUtils||(TypeKeyUtils={}));var BaseLayerObj=function(){function e(t,r){classCallCheck(this,e),this["@type"]="BaseLayerObj",_extends(this,t),this.id=t.id,this.name=t.name,this.connection=t.connection,this.visible=t.visible,this.store=r}return createClass(e,[{key:"setVisibility",value:function(e,t){return fromPromise_1(setBaseLayerVisibilityCreatorP({baseLayers:[{id:this.id,visible:e,opacity:t||this.opacity}]},this.store.dispatch))}}]),e}();function curry(e){var t=e.length;return function(){for(var r=arguments.length,n=Array(r),o=0;o<r;o++)n[o]=arguments[o];return n.length<t?curry(e.bind.apply(e,[this].concat(n))):e.call.apply(e,[this].concat(n))}}var lookup=[],revLookup=[],Arr="undefined"!=typeof Uint8Array?Uint8Array:Array,inited=!1;function init(){inited=!0;for(var e="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",t=0,r=e.length;t<r;++t)lookup[t]=e[t],revLookup[e.charCodeAt(t)]=t;revLookup["-".charCodeAt(0)]=62,revLookup["_".charCodeAt(0)]=63}function toByteArray(e){var t,r,n,o,i,a;inited||init();var s=e.length;if(s%4>0)throw new Error("Invalid string. Length must be a multiple of 4");i="="===e[s-2]?2:"="===e[s-1]?1:0,a=new Arr(3*s/4-i),n=i>0?s-4:s;var c=0;for(t=0,r=0;t<n;t+=4,r+=3)o=revLookup[e.charCodeAt(t)]<<18|revLookup[e.charCodeAt(t+1)]<<12|revLookup[e.charCodeAt(t+2)]<<6|revLookup[e.charCodeAt(t+3)],a[c++]=o>>16&255,a[c++]=o>>8&255,a[c++]=255&o;return 2===i?(o=revLookup[e.charCodeAt(t)]<<2|revLookup[e.charCodeAt(t+1)]>>4,a[c++]=255&o):1===i&&(o=revLookup[e.charCodeAt(t)]<<10|revLookup[e.charCodeAt(t+1)]<<4|revLookup[e.charCodeAt(t+2)]>>2,a[c++]=o>>8&255,a[c++]=255&o),a}function tripletToBase64(e){return lookup[e>>18&63]+lookup[e>>12&63]+lookup[e>>6&63]+lookup[63&e]}function encodeChunk(e,t,r){for(var n,o=[],i=t;i<r;i+=3)n=(e[i]<<16)+(e[i+1]<<8)+e[i+2],o.push(tripletToBase64(n));return o.join("")}function fromByteArray(e){var t;inited||init();for(var r=e.length,n=r%3,o="",i=[],a=0,s=r-n;a<s;a+=16383)i.push(encodeChunk(e,a,a+16383>s?s:a+16383));return 1===n?(t=e[r-1],o+=lookup[t>>2],o+=lookup[t<<4&63],o+="=="):2===n&&(t=(e[r-2]<<8)+e[r-1],o+=lookup[t>>10],o+=lookup[t>>4&63],o+=lookup[t<<2&63],o+="="),i.push(o),i.join("")}function read(e,t,r,n,o){var i,a,s=8*o-n-1,c=(1<<s)-1,u=c>>1,l=-7,p=r?o-1:0,f=r?-1:1,h=e[t+p];for(p+=f,i=h&(1<<-l)-1,h>>=-l,l+=s;l>0;i=256*i+e[t+p],p+=f,l-=8);for(a=i&(1<<-l)-1,i>>=-l,l+=n;l>0;a=256*a+e[t+p],p+=f,l-=8);if(0===i)i=1-u;else{if(i===c)return a?NaN:1/0*(h?-1:1);a+=Math.pow(2,n),i-=u}return(h?-1:1)*a*Math.pow(2,i-n)}function write(e,t,r,n,o,i){var a,s,c,u=8*i-o-1,l=(1<<u)-1,p=l>>1,f=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=n?0:i-1,_=n?1:-1,d=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(s=isNaN(t)?1:0,a=l):(a=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-a))<1&&(a--,c*=2),(t+=a+p>=1?f/c:f*Math.pow(2,1-p))*c>=2&&(a++,c/=2),a+p>=l?(s=0,a=l):a+p>=1?(s=(t*c-1)*Math.pow(2,o),a+=p):(s=t*Math.pow(2,p-1)*Math.pow(2,o),a=0));o>=8;e[r+h]=255&s,h+=_,s/=256,o-=8);for(a=a<<o|s,u+=o;u>0;e[r+h]=255&a,h+=_,a/=256,u-=8);e[r+h-_]|=128*d}var toString$2={}.toString,isArray$3=Array.isArray||function(e){return"[object Array]"==toString$2.call(e)},INSPECT_MAX_BYTES=50;function kMaxLength(){return Buffer.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function createBuffer(e,t){if(kMaxLength()<t)throw new RangeError("Invalid typed array length");return Buffer.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=Buffer.prototype:(null===e&&(e=new Buffer(t)),e.length=t),e}function Buffer(e,t,r){if(!(Buffer.TYPED_ARRAY_SUPPORT||this instanceof Buffer))return new Buffer(e,t,r);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return allocUnsafe(this,e)}return from$3(this,e,t,r)}function from$3(e,t,r,n){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?fromArrayBuffer(e,t,r,n):"string"==typeof t?fromString(e,t,r):fromObject(e,t)}function assertSize(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function alloc(e,t,r,n){return assertSize(t),t<=0?createBuffer(e,t):void 0!==r?"string"==typeof n?createBuffer(e,t).fill(r,n):createBuffer(e,t).fill(r):createBuffer(e,t)}function allocUnsafe(e,t){if(assertSize(t),e=createBuffer(e,t<0?0:0|checked(t)),!Buffer.TYPED_ARRAY_SUPPORT)for(var r=0;r<t;++r)e[r]=0;return e}function fromString(e,t,r){if("string"==typeof r&&""!==r||(r="utf8"),!Buffer.isEncoding(r))throw new TypeError('"encoding" must be a valid string encoding');var n=0|byteLength(t,r),o=(e=createBuffer(e,n)).write(t,r);return o!==n&&(e=e.slice(0,o)),e}function fromArrayLike(e,t){var r=t.length<0?0:0|checked(t.length);e=createBuffer(e,r);for(var n=0;n<r;n+=1)e[n]=255&t[n];return e}function fromArrayBuffer(e,t,r,n){if(t.byteLength,r<0||t.byteLength<r)throw new RangeError("'offset' is out of bounds");if(t.byteLength<r+(n||0))throw new RangeError("'length' is out of bounds");return t=void 0===r&&void 0===n?new Uint8Array(t):void 0===n?new Uint8Array(t,r):new Uint8Array(t,r,n),Buffer.TYPED_ARRAY_SUPPORT?(e=t).__proto__=Buffer.prototype:e=fromArrayLike(e,t),e}function fromObject(e,t){if(internalIsBuffer(t)){var r=0|checked(t.length);return 0===(e=createBuffer(e,r)).length?e:(t.copy(e,0,0,r),e)}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||isnan(t.length)?createBuffer(e,0):fromArrayLike(e,t);if("Buffer"===t.type&&isArray$3(t.data))return fromArrayLike(e,t.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function checked(e){if(e>=kMaxLength())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+kMaxLength().toString(16)+" bytes");return 0|e}function internalIsBuffer(e){return!(null==e||!e._isBuffer)}function byteLength(e,t){if(internalIsBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var r=e.length;if(0===r)return 0;for(var n=!1;;)switch(t){case"ascii":case"latin1":case"binary":return r;case"utf8":case"utf-8":case void 0:return utf8ToBytes(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*r;case"hex":return r>>>1;case"base64":return base64ToBytes(e).length;default:if(n)return utf8ToBytes(e).length;t=(""+t).toLowerCase(),n=!0}}function slowToString(e,t,r){var n=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===r||r>this.length)&&(r=this.length),r<=0)return"";if((r>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return hexSlice(this,t,r);case"utf8":case"utf-8":return utf8Slice(this,t,r);case"ascii":return asciiSlice(this,t,r);case"latin1":case"binary":return latin1Slice(this,t,r);case"base64":return base64Slice(this,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return utf16leSlice(this,t,r);default:if(n)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),n=!0}}function swap(e,t,r){var n=e[t];e[t]=e[r],e[r]=n}function bidirectionalIndexOf(e,t,r,n,o){if(0===e.length)return-1;if("string"==typeof r?(n=r,r=0):r>2147483647?r=2147483647:r<-2147483648&&(r=-2147483648),r=+r,isNaN(r)&&(r=o?0:e.length-1),r<0&&(r=e.length+r),r>=e.length){if(o)return-1;r=e.length-1}else if(r<0){if(!o)return-1;r=0}if("string"==typeof t&&(t=Buffer.from(t,n)),internalIsBuffer(t))return 0===t.length?-1:arrayIndexOf$1(e,t,r,n,o);if("number"==typeof t)return t&=255,Buffer.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,r):Uint8Array.prototype.lastIndexOf.call(e,t,r):arrayIndexOf$1(e,[t],r,n,o);throw new TypeError("val must be string, number or Buffer")}function arrayIndexOf$1(e,t,r,n,o){var i,a=1,s=e.length,c=t.length;if(void 0!==n&&("ucs2"===(n=String(n).toLowerCase())||"ucs-2"===n||"utf16le"===n||"utf-16le"===n)){if(e.length<2||t.length<2)return-1;a=2,s/=2,c/=2,r/=2}function u(e,t){return 1===a?e[t]:e.readUInt16BE(t*a)}if(o){var l=-1;for(i=r;i<s;i++)if(u(e,i)===u(t,-1===l?0:i-l)){if(-1===l&&(l=i),i-l+1===c)return l*a}else-1!==l&&(i-=i-l),l=-1}else for(r+c>s&&(r=s-c),i=r;i>=0;i--){for(var p=!0,f=0;f<c;f++)if(u(e,i+f)!==u(t,f)){p=!1;break}if(p)return i}return-1}function hexWrite(e,t,r,n){r=Number(r)||0;var o=e.length-r;n?(n=Number(n))>o&&(n=o):n=o;var i=t.length;if(i%2!=0)throw new TypeError("Invalid hex string");n>i/2&&(n=i/2);for(var a=0;a<n;++a){var s=parseInt(t.substr(2*a,2),16);if(isNaN(s))return a;e[r+a]=s}return a}function utf8Write(e,t,r,n){return blitBuffer(utf8ToBytes(t,e.length-r),e,r,n)}function asciiWrite(e,t,r,n){return blitBuffer(asciiToBytes(t),e,r,n)}function latin1Write(e,t,r,n){return asciiWrite(e,t,r,n)}function base64Write(e,t,r,n){return blitBuffer(base64ToBytes(t),e,r,n)}function ucs2Write(e,t,r,n){return blitBuffer(utf16leToBytes(t,e.length-r),e,r,n)}function base64Slice(e,t,r){return 0===t&&r===e.length?fromByteArray(e):fromByteArray(e.slice(t,r))}function utf8Slice(e,t,r){r=Math.min(e.length,r);for(var n=[],o=t;o<r;){var i,a,s,c,u=e[o],l=null,p=u>239?4:u>223?3:u>191?2:1;if(o+p<=r)switch(p){case 1:u<128&&(l=u);break;case 2:128==(192&(i=e[o+1]))&&(c=(31&u)<<6|63&i)>127&&(l=c);break;case 3:i=e[o+1],a=e[o+2],128==(192&i)&&128==(192&a)&&(c=(15&u)<<12|(63&i)<<6|63&a)>2047&&(c<55296||c>57343)&&(l=c);break;case 4:i=e[o+1],a=e[o+2],s=e[o+3],128==(192&i)&&128==(192&a)&&128==(192&s)&&(c=(15&u)<<18|(63&i)<<12|(63&a)<<6|63&s)>65535&&c<1114112&&(l=c)}null===l?(l=65533,p=1):l>65535&&(l-=65536,n.push(l>>>10&1023|55296),l=56320|1023&l),n.push(l),o+=p}return decodeCodePointsArray(n)}Buffer.TYPED_ARRAY_SUPPORT=void 0===global$2.TYPED_ARRAY_SUPPORT||global$2.TYPED_ARRAY_SUPPORT,Buffer.poolSize=8192,Buffer._augment=function(e){return e.__proto__=Buffer.prototype,e},Buffer.from=function(e,t,r){return from$3(null,e,t,r)},Buffer.TYPED_ARRAY_SUPPORT&&(Buffer.prototype.__proto__=Uint8Array.prototype,Buffer.__proto__=Uint8Array),Buffer.alloc=function(e,t,r){return alloc(null,e,t,r)},Buffer.allocUnsafe=function(e){return allocUnsafe(null,e)},Buffer.allocUnsafeSlow=function(e){return allocUnsafe(null,e)},Buffer.isBuffer=isBuffer,Buffer.compare=function(e,t){if(!internalIsBuffer(e)||!internalIsBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var r=e.length,n=t.length,o=0,i=Math.min(r,n);o<i;++o)if(e[o]!==t[o]){r=e[o],n=t[o];break}return r<n?-1:n<r?1:0},Buffer.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Buffer.concat=function(e,t){if(!isArray$3(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return Buffer.alloc(0);var r;if(void 0===t)for(t=0,r=0;r<e.length;++r)t+=e[r].length;var n=Buffer.allocUnsafe(t),o=0;for(r=0;r<e.length;++r){var i=e[r];if(!internalIsBuffer(i))throw new TypeError('"list" argument must be an Array of Buffers');i.copy(n,o),o+=i.length}return n},Buffer.byteLength=byteLength,Buffer.prototype._isBuffer=!0,Buffer.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)swap(this,t,t+1);return this},Buffer.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)swap(this,t,t+3),swap(this,t+1,t+2);return this},Buffer.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)swap(this,t,t+7),swap(this,t+1,t+6),swap(this,t+2,t+5),swap(this,t+3,t+4);return this},Buffer.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?utf8Slice(this,0,e):slowToString.apply(this,arguments)},Buffer.prototype.equals=function(e){if(!internalIsBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===Buffer.compare(this,e)},Buffer.prototype.inspect=function(){var e="",t=INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,t).match(/.{2}/g).join(" "),this.length>t&&(e+=" ... ")),"<Buffer "+e+">"},Buffer.prototype.compare=function(e,t,r,n,o){if(!internalIsBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===r&&(r=e?e.length:0),void 0===n&&(n=0),void 0===o&&(o=this.length),t<0||r>e.length||n<0||o>this.length)throw new RangeError("out of range index");if(n>=o&&t>=r)return 0;if(n>=o)return-1;if(t>=r)return 1;if(this===e)return 0;for(var i=(o>>>=0)-(n>>>=0),a=(r>>>=0)-(t>>>=0),s=Math.min(i,a),c=this.slice(n,o),u=e.slice(t,r),l=0;l<s;++l)if(c[l]!==u[l]){i=c[l],a=u[l];break}return i<a?-1:a<i?1:0},Buffer.prototype.includes=function(e,t,r){return-1!==this.indexOf(e,t,r)},Buffer.prototype.indexOf=function(e,t,r){return bidirectionalIndexOf(this,e,t,r,!0)},Buffer.prototype.lastIndexOf=function(e,t,r){return bidirectionalIndexOf(this,e,t,r,!1)},Buffer.prototype.write=function(e,t,r,n){if(void 0===t)n="utf8",r=this.length,t=0;else if(void 0===r&&"string"==typeof t)n=t,r=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(r)?(r|=0,void 0===n&&(n="utf8")):(n=r,r=void 0)}var o=this.length-t;if((void 0===r||r>o)&&(r=o),e.length>0&&(r<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");n||(n="utf8");for(var i=!1;;)switch(n){case"hex":return hexWrite(this,e,t,r);case"utf8":case"utf-8":return utf8Write(this,e,t,r);case"ascii":return asciiWrite(this,e,t,r);case"latin1":case"binary":return latin1Write(this,e,t,r);case"base64":return base64Write(this,e,t,r);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return ucs2Write(this,e,t,r);default:if(i)throw new TypeError("Unknown encoding: "+n);n=(""+n).toLowerCase(),i=!0}},Buffer.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var MAX_ARGUMENTS_LENGTH=4096;function decodeCodePointsArray(e){var t=e.length;if(t<=MAX_ARGUMENTS_LENGTH)return String.fromCharCode.apply(String,e);for(var r="",n=0;n<t;)r+=String.fromCharCode.apply(String,e.slice(n,n+=MAX_ARGUMENTS_LENGTH));return r}function asciiSlice(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(127&e[o]);return n}function latin1Slice(e,t,r){var n="";r=Math.min(e.length,r);for(var o=t;o<r;++o)n+=String.fromCharCode(e[o]);return n}function hexSlice(e,t,r){var n=e.length;(!t||t<0)&&(t=0),(!r||r<0||r>n)&&(r=n);for(var o="",i=t;i<r;++i)o+=toHex(e[i]);return o}function utf16leSlice(e,t,r){for(var n=e.slice(t,r),o="",i=0;i<n.length;i+=2)o+=String.fromCharCode(n[i]+256*n[i+1]);return o}function checkOffset(e,t,r){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>r)throw new RangeError("Trying to access beyond buffer length")}function checkInt(e,t,r,n,o,i){if(!internalIsBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('"value" argument is out of bounds');if(r+n>e.length)throw new RangeError("Index out of range")}function objectWriteUInt16(e,t,r,n){t<0&&(t=65535+t+1);for(var o=0,i=Math.min(e.length-r,2);o<i;++o)e[r+o]=(t&255<<8*(n?o:1-o))>>>8*(n?o:1-o)}function objectWriteUInt32(e,t,r,n){t<0&&(t=4294967295+t+1);for(var o=0,i=Math.min(e.length-r,4);o<i;++o)e[r+o]=t>>>8*(n?o:3-o)&255}function checkIEEE754(e,t,r,n,o,i){if(r+n>e.length)throw new RangeError("Index out of range");if(r<0)throw new RangeError("Index out of range")}function writeFloat(e,t,r,n,o){return o||checkIEEE754(e,t,r,4),write(e,t,r,n,23,4),r+4}function writeDouble(e,t,r,n,o){return o||checkIEEE754(e,t,r,8),write(e,t,r,n,52,8),r+8}Buffer.prototype.slice=function(e,t){var r,n=this.length;if((e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e),Buffer.TYPED_ARRAY_SUPPORT)(r=this.subarray(e,t)).__proto__=Buffer.prototype;else{var o=t-e;r=new Buffer(o,void 0);for(var i=0;i<o;++i)r[i]=this[i+e]}return r},Buffer.prototype.readUIntLE=function(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n},Buffer.prototype.readUIntBE=function(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=this[e+--t],o=1;t>0&&(o*=256);)n+=this[e+--t]*o;return n},Buffer.prototype.readUInt8=function(e,t){return t||checkOffset(e,1,this.length),this[e]},Buffer.prototype.readUInt16LE=function(e,t){return t||checkOffset(e,2,this.length),this[e]|this[e+1]<<8},Buffer.prototype.readUInt16BE=function(e,t){return t||checkOffset(e,2,this.length),this[e]<<8|this[e+1]},Buffer.prototype.readUInt32LE=function(e,t){return t||checkOffset(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},Buffer.prototype.readUInt32BE=function(e,t){return t||checkOffset(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Buffer.prototype.readIntLE=function(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=this[e],o=1,i=0;++i<t&&(o*=256);)n+=this[e+i]*o;return n>=(o*=128)&&(n-=Math.pow(2,8*t)),n},Buffer.prototype.readIntBE=function(e,t,r){e|=0,t|=0,r||checkOffset(e,t,this.length);for(var n=t,o=1,i=this[e+--n];n>0&&(o*=256);)i+=this[e+--n]*o;return i>=(o*=128)&&(i-=Math.pow(2,8*t)),i},Buffer.prototype.readInt8=function(e,t){return t||checkOffset(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},Buffer.prototype.readInt16LE=function(e,t){t||checkOffset(e,2,this.length);var r=this[e]|this[e+1]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt16BE=function(e,t){t||checkOffset(e,2,this.length);var r=this[e+1]|this[e]<<8;return 32768&r?4294901760|r:r},Buffer.prototype.readInt32LE=function(e,t){return t||checkOffset(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Buffer.prototype.readInt32BE=function(e,t){return t||checkOffset(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Buffer.prototype.readFloatLE=function(e,t){return t||checkOffset(e,4,this.length),read(this,e,!0,23,4)},Buffer.prototype.readFloatBE=function(e,t){return t||checkOffset(e,4,this.length),read(this,e,!1,23,4)},Buffer.prototype.readDoubleLE=function(e,t){return t||checkOffset(e,8,this.length),read(this,e,!0,52,8)},Buffer.prototype.readDoubleBE=function(e,t){return t||checkOffset(e,8,this.length),read(this,e,!1,52,8)},Buffer.prototype.writeUIntLE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||checkInt(this,e,t,r,Math.pow(2,8*r)-1,0);var o=1,i=0;for(this[t]=255&e;++i<r&&(o*=256);)this[t+i]=e/o&255;return t+r},Buffer.prototype.writeUIntBE=function(e,t,r,n){(e=+e,t|=0,r|=0,n)||checkInt(this,e,t,r,Math.pow(2,8*r)-1,0);var o=r-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+r},Buffer.prototype.writeUInt8=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,1,255,0),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},Buffer.prototype.writeUInt16LE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeUInt16BE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,65535,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeUInt32LE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeUInt32BE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,4294967295,0),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeIntLE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);checkInt(this,e,t,r,o-1,-o)}var i=0,a=1,s=0;for(this[t]=255&e;++i<r&&(a*=256);)e<0&&0===s&&0!==this[t+i-1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},Buffer.prototype.writeIntBE=function(e,t,r,n){if(e=+e,t|=0,!n){var o=Math.pow(2,8*r-1);checkInt(this,e,t,r,o-1,-o)}var i=r-1,a=1,s=0;for(this[t+i]=255&e;--i>=0&&(a*=256);)e<0&&0===s&&0!==this[t+i+1]&&(s=1),this[t+i]=(e/a>>0)-s&255;return t+r},Buffer.prototype.writeInt8=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,1,127,-128),Buffer.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},Buffer.prototype.writeInt16LE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):objectWriteUInt16(this,e,t,!0),t+2},Buffer.prototype.writeInt16BE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,2,32767,-32768),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):objectWriteUInt16(this,e,t,!1),t+2},Buffer.prototype.writeInt32LE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,2147483647,-2147483648),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):objectWriteUInt32(this,e,t,!0),t+4},Buffer.prototype.writeInt32BE=function(e,t,r){return e=+e,t|=0,r||checkInt(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Buffer.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):objectWriteUInt32(this,e,t,!1),t+4},Buffer.prototype.writeFloatLE=function(e,t,r){return writeFloat(this,e,t,!0,r)},Buffer.prototype.writeFloatBE=function(e,t,r){return writeFloat(this,e,t,!1,r)},Buffer.prototype.writeDoubleLE=function(e,t,r){return writeDouble(this,e,t,!0,r)},Buffer.prototype.writeDoubleBE=function(e,t,r){return writeDouble(this,e,t,!1,r)},Buffer.prototype.copy=function(e,t,r,n){if(r||(r=0),n||0===n||(n=this.length),t>=e.length&&(t=e.length),t||(t=0),n>0&&n<r&&(n=r),n===r)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(r<0||r>=this.length)throw new RangeError("sourceStart out of bounds");if(n<0)throw new RangeError("sourceEnd out of bounds");n>this.length&&(n=this.length),e.length-t<n-r&&(n=e.length-t+r);var o,i=n-r;if(this===e&&r<t&&t<n)for(o=i-1;o>=0;--o)e[o+t]=this[o+r];else if(i<1e3||!Buffer.TYPED_ARRAY_SUPPORT)for(o=0;o<i;++o)e[o+t]=this[o+r];else Uint8Array.prototype.set.call(e,this.subarray(r,r+i),t);return i},Buffer.prototype.fill=function(e,t,r,n){if("string"==typeof e){if("string"==typeof t?(n=t,t=0,r=this.length):"string"==typeof r&&(n=r,r=this.length),1===e.length){var o=e.charCodeAt(0);o<256&&(e=o)}if(void 0!==n&&"string"!=typeof n)throw new TypeError("encoding must be a string");if("string"==typeof n&&!Buffer.isEncoding(n))throw new TypeError("Unknown encoding: "+n)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<r)throw new RangeError("Out of range index");if(r<=t)return this;var i;if(t>>>=0,r=void 0===r?this.length:r>>>0,e||(e=0),"number"==typeof e)for(i=t;i<r;++i)this[i]=e;else{var a=internalIsBuffer(e)?e:utf8ToBytes(new Buffer(e,n).toString()),s=a.length;for(i=0;i<r-t;++i)this[i+t]=a[i%s]}return this};var INVALID_BASE64_RE=/[^+\/0-9A-Za-z-_]/g;function base64clean(e){if((e=stringtrim(e).replace(INVALID_BASE64_RE,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}function stringtrim(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function toHex(e){return e<16?"0"+e.toString(16):e.toString(16)}function utf8ToBytes(e,t){var r;t=t||1/0;for(var n=e.length,o=null,i=[],a=0;a<n;++a){if((r=e.charCodeAt(a))>55295&&r<57344){if(!o){if(r>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(a+1===n){(t-=3)>-1&&i.push(239,191,189);continue}o=r;continue}if(r<56320){(t-=3)>-1&&i.push(239,191,189),o=r;continue}r=65536+(o-55296<<10|r-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,r<128){if((t-=1)<0)break;i.push(r)}else if(r<2048){if((t-=2)<0)break;i.push(r>>6|192,63&r|128)}else if(r<65536){if((t-=3)<0)break;i.push(r>>12|224,r>>6&63|128,63&r|128)}else{if(!(r<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;i.push(r>>18|240,r>>12&63|128,r>>6&63|128,63&r|128)}}return i}function asciiToBytes(e){for(var t=[],r=0;r<e.length;++r)t.push(255&e.charCodeAt(r));return t}function utf16leToBytes(e,t){for(var r,n,o,i=[],a=0;a<e.length&&!((t-=2)<0);++a)n=(r=e.charCodeAt(a))>>8,o=r%256,i.push(o),i.push(n);return i}function base64ToBytes(e){return toByteArray(base64clean(e))}function blitBuffer(e,t,r,n){for(var o=0;o<n&&!(o+r>=t.length||o>=e.length);++o)t[o+r]=e[o];return o}function isnan(e){return e!=e}function isBuffer(e){return null!=e&&(!!e._isBuffer||isFastBuffer(e)||isSlowBuffer(e))}function isFastBuffer(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}function isSlowBuffer(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&isFastBuffer(e.slice(0,0))}var postRobot=createCommonjsModule(function(e,t){"undefined"!=typeof self&&self,e.exports=function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==(void 0===e?"undefined":_typeof(e))&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)r.d(n,o,function(t){return e[t]}.bind(null,o));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return{}.hasOwnProperty.call(e,t)},r.p="",r(r.s=0)}([function(e,t,r){function n(e){return"[object RegExp]"==={}.toString.call(e)}r.r(t);var o={MOCK:"mock:",FILE:"file:",ABOUT:"about:"},i="*",a={IFRAME:"iframe",POPUP:"popup"},s="Call was rejected by callee.\r\n";function c(e){return void 0===e&&(e=window),e.location.protocol===o.ABOUT}function u(e){if(void 0===e&&(e=window),e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function l(e){if(void 0===e&&(e=window),e&&!u(e))try{return e.opener}catch(e){}}function p(e){try{return!0}catch(e){}return!1}function f(e){void 0===e&&(e=window);var t=e.location;if(!t)throw new Error("Can not read window location");var r=t.protocol;if(!r)throw new Error("Can not read window protocol");if(r===o.FILE)return o.FILE+"//";if(r===o.ABOUT){var n=u(e);return n&&p()?f(n):o.ABOUT+"//"}var i=t.host;if(!i)throw new Error("Can not read window host");return r+"//"+i}function h(e){void 0===e&&(e=window);var t=f(e);return t&&e.mockDomain&&0===e.mockDomain.indexOf(o.MOCK)?e.mockDomain:t}function _(e){if(!function(e){try{if(e===window)return!0}catch(e){}try{var t=Object.getOwnPropertyDescriptor(e,"location");if(t&&!1===t.enumerable)return!1}catch(e){}try{if(c(e)&&p())return!0}catch(e){}try{if(f(e)===f(window))return!0}catch(e){}return!1}(e))return!1;try{if(e===window)return!0;if(c(e)&&p())return!0;if(h(window)===h(e))return!0}catch(e){}return!1}function d(e,t){if(!e||!t)return!1;var r=u(t);return r?r===e:-1!==function(e){var t=[];try{for(;e.parent!==e;)t.push(e.parent),e=e.parent}catch(e){}return t}(t).indexOf(e)}function b(e){var t,r,n=[];try{t=e.frames}catch(r){t=e}try{r=t.length}catch(e){}if(0===r)return n;if(r){for(var o=0;o<r;o++){var i=void 0;try{i=t[o]}catch(e){continue}n.push(i)}return n}for(var a=0;a<100;a++){var s=void 0;try{s=t[a]}catch(e){return n}if(!s)return n;n.push(s)}return n}var y=[],m=[];function $(e,t){void 0===t&&(t=!0);try{if(e===window)return!1}catch(e){return!0}try{if(!e)return!0}catch(e){return!0}try{if(e.closed)return!0}catch(e){return!e||e.message!==s}if(t&&_(e))try{if(e.mockclosed)return!0}catch(e){}try{if(!e.parent||!e.top)return!0}catch(e){}var r=function(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(e){}return-1}(y,e);if(-1!==r){var n=m[r];if(n&&function(e){if(!e.contentWindow)return!0;if(!e.parentNode)return!0;var t=e.ownerDocument;return!(!t||!t.documentElement||t.documentElement.contains(e))}(n))return!0}return!1}function v(e){return void 0===e&&(e=window),l(e=e||window)||u(e)||void 0}function g(e,t){if("string"==typeof e){if("string"==typeof t)return e===i||t===e;if(n(t))return!1;if(Array.isArray(t))return!1}return n(e)?n(t)?e.toString()===t.toString():!Array.isArray(t)&&Boolean(t.match(e)):!!Array.isArray(e)&&(Array.isArray(t)?JSON.stringify(e)===JSON.stringify(t):!n(t)&&e.some(function(e){return g(e,t)}))}function E(e){try{if(e===window)return!0}catch(e){if(e&&e.message===s)return!0}try{if("[object Window]"==={}.toString.call(e))return!0}catch(e){if(e&&e.message===s)return!0}try{if(window.Window&&e instanceof window.Window)return!0}catch(e){if(e&&e.message===s)return!0}try{if(e&&e.self===e)return!0}catch(e){if(e&&e.message===s)return!0}try{if(e&&e.parent===e)return!0}catch(e){if(e&&e.message===s)return!0}try{if(e&&e.top===e)return!0}catch(e){if(e&&e.message===s)return!0}try{if(e&&"__unlikely_value__"===e.__cross_domain_utils_window_check__)return!1}catch(e){return!0}return!1}function S(e){try{e.close()}catch(e){}}function O(e){try{if(!e)return!1;if("undefined"!=typeof Promise&&e instanceof Promise)return!0;if("undefined"!=typeof window&&"function"==typeof window.Window&&e instanceof window.Window)return!1;if("undefined"!=typeof window&&"function"==typeof window.constructor&&e instanceof window.constructor)return!1;var t={}.toString;if(t){var r=t.call(e);if("[object Window]"===r||"[object global]"===r||"[object DOMWindow]"===r)return!1}if("function"==typeof e.then)return!0}catch(e){return!1}return!1}var x,w=[],T=[],A=0;function C(){if(!A&&x){var e=x;x=null,e.resolve()}}function I(){A+=1}function P(){A-=1,C()}var j=function(){function e(e){var t=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],e){var r,n,o=!1,i=!1,a=!1;I();try{e(function(e){a?t.resolve(e):(o=!0,r=e)},function(e){a?t.reject(e):(i=!0,n=e)})}catch(e){return P(),void this.reject(e)}P(),a=!0,o?this.resolve(r):i&&this.reject(n)}}var t=e.prototype;return t.resolve=function(e){if(this.resolved||this.rejected)return this;if(O(e))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=e,this.dispatch(),this},t.reject=function(e){var t=this;if(this.resolved||this.rejected)return this;if(O(e))throw new Error("Can not reject promise with another promise");if(!e){var r=e&&"function"==typeof e.toString?e.toString():{}.toString.call(e);e=new Error("Expected reject to be called with Error, got "+r)}return this.rejected=!0,this.error=e,this.errorHandled||setTimeout(function(){t.errorHandled||function(e,t){if(-1===w.indexOf(e)){w.push(e),setTimeout(function(){throw e},1);for(var r=0;r<T.length;r++)T[r](e,t)}}(e,t)},1),this.dispatch(),this},t.asyncReject=function(e){return this.errorHandled=!0,this.reject(e),this},t.dispatch=function(){var t=this.resolved,r=this.rejected,n=this.handlers;if(!this.dispatching&&(t||r)){this.dispatching=!0,I();for(var o=function(e,t){return e.then(function(e){t.resolve(e)},function(e){t.reject(e)})},i=0;i<n.length;i++){var a=n[i],s=a.onSuccess,c=a.onError,u=a.promise,l=void 0;if(t)try{l=s?s(this.value):this.value}catch(e){u.reject(e);continue}else if(r){if(!c){u.reject(this.error);continue}try{l=c(this.error)}catch(e){u.reject(e);continue}}l instanceof e&&(l.resolved||l.rejected)?(l.resolved?u.resolve(l.value):u.reject(l.error),l.errorHandled=!0):O(l)?l instanceof e&&(l.resolved||l.rejected)?l.resolved?u.resolve(l.value):u.reject(l.error):o(l,u):u.resolve(l)}n.length=0,this.dispatching=!1,P()}},t.then=function(t,r){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.then expected a function for success handler");if(r&&"function"!=typeof r&&!r.call)throw new Error("Promise.then expected a function for error handler");var n=new e;return this.handlers.push({promise:n,onSuccess:t,onError:r}),this.errorHandled=!0,this.dispatch(),n},t.catch=function(e){return this.then(void 0,e)},t.finally=function(t){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.finally expected a function");return this.then(function(r){return e.try(t).then(function(){return r})},function(r){return e.try(t).then(function(){throw r})})},t.timeout=function(e,t){var r=this;if(this.resolved||this.rejected)return this;var n=setTimeout(function(){r.resolved||r.rejected||r.reject(t||new Error("Promise timed out after "+e+"ms"))},e);return this.then(function(e){return clearTimeout(n),e})},t.toPromise=function(){if("undefined"==typeof Promise)throw new TypeError("Could not find Promise");return Promise.resolve(this)},e.resolve=function(t){return t instanceof e?t:O(t)?new e(function(e,r){return t.then(e,r)}):(new e).resolve(t)},e.reject=function(t){return(new e).reject(t)},e.asyncReject=function(t){return(new e).asyncReject(t)},e.all=function(t){var r=new e,n=t.length,o=[];if(!n)return r.resolve(o),r;for(var i=function(e,t,i){return t.then(function(t){o[e]=t,0==(n-=1)&&r.resolve(o)},function(e){i.reject(e)})},a=0;a<t.length;a++){var s=t[a];if(s instanceof e){if(s.resolved){o[a]=s.value,n-=1;continue}}else if(!O(s)){o[a]=s,n-=1;continue}i(a,e.resolve(s),r)}return 0===n&&r.resolve(o),r},e.hash=function(t){var r={};return e.all(Object.keys(t).map(function(n){return e.resolve(t[n]).then(function(e){r[n]=e})})).then(function(){return r})},e.map=function(t,r){return e.all(t.map(r))},e.onPossiblyUnhandledException=function(e){return function(e){return T.push(e),{cancel:function(){T.splice(T.indexOf(e),1)}}}(e)},e.try=function(t,r,n){if(t&&"function"!=typeof t&&!t.call)throw new Error("Promise.try expected a function");var o;I();try{o=t.apply(r,n||[])}catch(t){return P(),e.reject(t)}return P(),e.resolve(o)},e.delay=function(t){return new e(function(e){setTimeout(e,t)})},e.isPromise=function(t){return!!(t&&t instanceof e)||O(t)},e.flush=function(){return t=x=x||new e,C(),t;var t},e}();function R(){return(R=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e}).apply(this,arguments)}function k(e,t){for(var r=0;r<e.length;r++)try{if(e[r]===t)return r}catch(e){}return-1}var M,N=function(){function e(){if(this.name=void 0,this.weakmap=void 0,this.keys=void 0,this.values=void 0,this.name="__weakmap_"+(1e9*Math.random()>>>0)+"__",function(){if("undefined"==typeof WeakMap)return!1;if(void 0===Object.freeze)return!1;try{var e=new WeakMap,t={};return Object.freeze(t),e.set(t,"__testvalue__"),"__testvalue__"===e.get(t)}catch(e){return!1}}())try{this.weakmap=new WeakMap}catch(e){}this.keys=[],this.values=[]}var t=e.prototype;return t._cleanupClosedWindows=function(){for(var e=this.weakmap,t=this.keys,r=0;r<t.length;r++){var n=t[r];if(E(n)&&$(n)){if(e)try{e.delete(n)}catch(e){}t.splice(r,1),this.values.splice(r,1),r-=1}}},t.isSafeToReadWrite=function(e){return!E(e)},t.set=function(e,t){if(!e)throw new Error("WeakMap expected key");var r=this.weakmap;if(r)try{r.set(e,t)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var n=this.name,o=e[n];return void(o&&o[0]===e?o[1]=t:Object.defineProperty(e,n,{value:[e,t],writable:!0}))}catch(e){}this._cleanupClosedWindows();var i=this.keys,a=this.values,s=k(i,e);-1===s?(i.push(e),a.push(t)):a[s]=t},t.get=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return t.get(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return r&&r[0]===e?r[1]:void 0}catch(e){}this._cleanupClosedWindows();var n=k(this.keys,e);if(-1!==n)return this.values[n]},t.delete=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{t.delete(e)}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];r&&r[0]===e&&(r[0]=r[1]=void 0)}catch(e){}this._cleanupClosedWindows();var n=this.keys,o=k(n,e);-1!==o&&(n.splice(o,1),this.values.splice(o,1))},t.has=function(e){if(!e)throw new Error("WeakMap expected key");var t=this.weakmap;if(t)try{if(t.has(e))return!0}catch(e){delete this.weakmap}if(this.isSafeToReadWrite(e))try{var r=e[this.name];return!(!r||r[0]!==e)}catch(e){}return this._cleanupClosedWindows(),-1!==k(this.keys,e)},t.getOrSet=function(e,t){if(this.has(e))return this.get(e);var r=t();return this.set(e,r),r},e}();function L(){var e="0123456789abcdef";return"xxxxxxxxxx".replace(/./g,function(){return e.charAt(Math.floor(Math.random()*e.length))})+"_"+function(e){if("function"==typeof btoa)return btoa(encodeURIComponent(e).replace(/%([0-9A-F]{2})/g,function(e,t){return String.fromCharCode(parseInt(t,16))}));if(void 0!==Buffer)return Buffer.from(e,"utf8").toString("base64");throw new Error("Can not find window.btoa or Buffer")}((new Date).toISOString().slice(11,19).replace("T",".")).replace(/[^a-zA-Z0-9]/g,"").toLowerCase()}function F(e){var t,r={};function n(){for(var t=this,n=arguments,o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];var s=function(e){try{return JSON.stringify([].slice.call(e),function(e,t){return"function"==typeof t?"memoize["+function(e){if(M=M||new N,null==e||"object"!=(void 0===e?"undefined":_typeof(e))&&"function"!=typeof e)throw new Error("Invalid object");var t=M.get(e);return t||(t=(void 0===e?"undefined":_typeof(e))+":"+L(),M.set(e,t)),t}(t)+"]":t})}catch(e){throw new Error("Arguments not serializable -- can not be used to memoize")}}(i);return r.hasOwnProperty(s)?r[s]:(r[s]=j.try(function(){return e.apply(t,n)}).finally(function(){delete r[s]}),r[s])}return n.reset=function(){r={}},function(e,t){try{delete e.name,e.name=t}catch(e){}return e.__name__=e.displayName=t,e}(n,((t=e).name||t.__name__||t.displayName||"anonymous")+"::promiseMemoized")}function D(){}function B(e,t){if(void 0===t&&(t=1),t>=3)return"stringifyError stack overflow";try{if(!e)return"<unknown error: "+{}.toString.call(e)+">";if("string"==typeof e)return e;if(e instanceof Error){var r=e&&e.stack,n=e&&e.message;if(r&&n)return-1!==r.indexOf(n)?r:n+"\n"+r;if(r)return r;if(n)return n}return e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}catch(e){return"Error while stringifying error: "+B(e,t+1)}}function U(e){return"string"==typeof e?e:e&&e.toString&&"function"==typeof e.toString?e.toString():{}.toString.call(e)}function W(e){return"[object RegExp]"==={}.toString.call(e)}function G(e,t,r){if(e.hasOwnProperty(t))return e[t];var n=r();return e[t]=n,n}var q={METHOD:"postrobot_method",HELLO:"postrobot_hello",OPEN_TUNNEL:"postrobot_open_tunnel"},z="*",V={CROSS_DOMAIN_ZALGO_PROMISE:"cross_domain_zalgo_promise",CROSS_DOMAIN_FUNCTION:"cross_domain_function",CROSS_DOMAIN_WINDOW:"cross_domain_window"};function K(e){return void 0===e&&(e=window),e!==window?e.__post_robot_10_0_22__:e.__post_robot_10_0_22__=e.__post_robot_10_0_22__||{}}var H=function(){return{}};function Y(e,t){return void 0===e&&(e="store"),void 0===t&&(t=H),G(K(),e,function(){var e=t();return{has:function(t){return e.hasOwnProperty(t)},get:function(t,r){return e.hasOwnProperty(t)?e[t]:r},set:function(t,r){return e[t]=r,r},del:function(t){delete e[t]},getOrSet:function(t,r){return G(e,t,r)},reset:function(){e=t()},keys:function(){return Object.keys(e)}}})}var X=function(){};function J(){var e=K();return e.WINDOW_WILDCARD=e.WINDOW_WILDCARD||new X,e.WINDOW_WILDCARD}function Z(e,t){return void 0===e&&(e="store"),void 0===t&&(t=H),Y("windowStore").getOrSet(e,function(){var r=new N,n=function(e){return r.getOrSet(e,t)};return{has:function(t){return n(t).hasOwnProperty(e)},get:function(t,r){var o=n(t);return o.hasOwnProperty(e)?o[e]:r},set:function(t,r){return n(t)[e]=r,r},del:function(t){delete n(t)[e]},getOrSet:function(t,r){return G(n(t),e,r)}}})}function Q(){return Y("instance").getOrSet("instanceID",L)}function ee(e,t){var r=t.domain,n=Z("helloPromises"),o=n.get(e);o&&o.resolve({domain:r});var i=j.resolve({domain:r});return n.set(e,i),i}function te(e,t){return(0,t.send)(e,q.HELLO,{instanceID:Q()},{domain:z,timeout:-1}).then(function(t){var r=t.origin,n=t.data.instanceID;return ee(e,{domain:r}),{win:e,domain:r,instanceID:n}})}function re(e,t){var r=t.send;return Z("windowInstanceIDPromises").getOrSet(e,function(){return te(e,{send:r}).then(function(e){return e.instanceID})})}function ne(e){Z("knownWindows").set(e,!0)}var oe,ie={FUNCTION:"function",ERROR:"error",PROMISE:"promise",REGEX:"regex",DATE:"date",ARRAY:"array",OBJECT:"object",STRING:"string",NUMBER:"number",BOOLEAN:"boolean",NULL:"null",UNDEFINED:"undefined"};function ae(e){return"object"==(void 0===e?"undefined":_typeof(e))&&null!==e&&"string"==typeof e.__type__}function se(e){return void 0===e?ie.UNDEFINED:null===e?ie.NULL:Array.isArray(e)?ie.ARRAY:"function"==typeof e?ie.FUNCTION:"object"==(void 0===e?"undefined":_typeof(e))?e instanceof Error?ie.ERROR:"function"==typeof e.then?ie.PROMISE:"[object RegExp]"==={}.toString.call(e)?ie.REGEX:"[object Date]"==={}.toString.call(e)?ie.DATE:ie.OBJECT:"string"==typeof e?ie.STRING:"number"==typeof e?ie.NUMBER:"boolean"==typeof e?ie.BOOLEAN:void 0}function ce(e,t){return{__type__:e,__val__:t}}var ue,le=((oe={})[ie.FUNCTION]=function(){},oe[ie.ERROR]=function(e){return ce(ie.ERROR,{message:e.message,stack:e.stack,code:e.code})},oe[ie.PROMISE]=function(){},oe[ie.REGEX]=function(e){return ce(ie.REGEX,e.source)},oe[ie.DATE]=function(e){return ce(ie.DATE,e.toJSON())},oe[ie.ARRAY]=function(e){return e},oe[ie.OBJECT]=function(e){return e},oe[ie.STRING]=function(e){return e},oe[ie.NUMBER]=function(e){return e},oe[ie.BOOLEAN]=function(e){return e},oe[ie.NULL]=function(e){return e},oe),pe={},fe=((ue={})[ie.FUNCTION]=function(){throw new Error("Function serialization is not implemented; nothing to deserialize")},ue[ie.ERROR]=function(e){var t=e.stack,r=e.code,n=new Error(e.message);return n.code=r,n.stack=t+"\n\n"+n.stack,n},ue[ie.PROMISE]=function(){throw new Error("Promise serialization is not implemented; nothing to deserialize")},ue[ie.REGEX]=function(e){return new RegExp(e)},ue[ie.DATE]=function(e){return new Date(e)},ue[ie.ARRAY]=function(e){return e},ue[ie.OBJECT]=function(e){return e},ue[ie.STRING]=function(e){return e},ue[ie.NUMBER]=function(e){return e},ue[ie.BOOLEAN]=function(e){return e},ue[ie.NULL]=function(e){return e},ue),he={};function _e(){for(var e=Y("idToProxyWindow"),t=0,r=e.keys();t<r.length;t++){var n=r[t];e.get(n).shouldClean()&&e.del(n)}}function de(e,t){var r,n=t.send,o=t.id;return{id:void 0===o?L():o,getType:function(){return e.then(function(e){return l(e)?a.POPUP:a.IFRAME})},getInstanceID:F(function(){return e.then(function(e){return re(e,{send:n})})}),close:function(){return e.then(S)},getName:function(){return e.then(function(e){if(!$(e))return r})},focus:function(){return e.then(function(e){e.focus()})},isClosed:function(){return e.then(function(e){return $(e)})},setLocation:function(t){return e.then(function(e){if(_(e))try{if(e.location&&"function"==typeof e.location.replace)return void e.location.replace(t)}catch(e){}e.location=t})},setName:function(t){return e.then(function(e){var n=function(e){if(!_(e))throw new Error("Expected window to be same domain");return e}(e);n.name=t,n.frameElement&&n.frameElement.setAttribute("name",t),r=t})}}}new j(function(e){if(window.document&&window.document.body)return e(window.document.body);var t=setInterval(function(){if(window.document&&window.document.body)return clearInterval(t),e(window.document.body)},10)});var be=function(){function e(e){var t=e.send,r=e.win,n=e.serializedWindow;this.id=void 0,this.isProxyWindow=!0,this.serializedWindow=void 0,this.actualWindow=void 0,this.actualWindowPromise=void 0,this.send=void 0,this.name=void 0,this.actualWindowPromise=new j,this.serializedWindow=n||de(this.actualWindowPromise,{send:t}),Y("idToProxyWindow").set(this.getID(),this),r&&this.setWindow(r,{send:t})}var t=e.prototype;return t.getID=function(){return this.serializedWindow.id},t.getType=function(){return this.serializedWindow.getType()},t.isPopup=function(){return this.getType()===a.POPUP},t.setLocation=function(e){var t=this;return this.serializedWindow.setLocation(e).then(function(){return t})},t.getName=function(){return this.serializedWindow.getName()},t.setName=function(e){var t=this;return this.serializedWindow.setName(e).then(function(){return t})},t.close=function(){var e=this;return this.serializedWindow.close().then(function(){return e})},t.focus=function(){var e=this;return j.all([this.isPopup()&&this.getName().then(function(e){e&&window.open("",e)}),this.serializedWindow.focus()]).then(function(){return e})},t.isClosed=function(){return this.serializedWindow.isClosed()},t.getWindow=function(){return this.actualWindow},t.setWindow=function(e,t){var r=t.send;this.actualWindow=e,this.actualWindowPromise.resolve(this.actualWindow),this.serializedWindow=de(this.actualWindowPromise,{send:r,id:this.getID()}),Z("winToProxyWindow").set(e,this)},t.awaitWindow=function(){return this.actualWindowPromise},t.matchWindow=function(e,t){var r=this,n=t.send;return j.try(function(){return r.actualWindow?e===r.actualWindow:j.hash({proxyInstanceID:r.getInstanceID(),knownWindowInstanceID:re(e,{send:n})}).then(function(t){var o=t.proxyInstanceID===t.knownWindowInstanceID;return o&&r.setWindow(e,{send:n}),o})})},t.unwrap=function(){return this.actualWindow||this},t.getInstanceID=function(){return this.serializedWindow.getInstanceID()},t.shouldClean=function(){return Boolean(this.actualWindow&&$(this.actualWindow))},t.serialize=function(){return this.serializedWindow},e.unwrap=function(t){return e.isProxyWindow(t)?t.unwrap():t},e.serialize=function(t,r){var n=r.send;return _e(),e.toProxyWindow(t,{send:n}).serialize()},e.deserialize=function(t,r){var n=r.send;return _e(),Y("idToProxyWindow").get(t.id)||new e({serializedWindow:t,send:n})},e.isProxyWindow=function(e){return Boolean(e&&!E(e)&&e.isProxyWindow)},e.toProxyWindow=function(t,r){var n=r.send;if(_e(),e.isProxyWindow(t))return t;var o=t;return Z("winToProxyWindow").get(o)||new e({win:o,send:n})},e}();function ye(e,t,r,n,o){var i=Z("methodStore"),a=Y("proxyWindowMethods");be.isProxyWindow(n)?a.set(e,{val:t,name:r,domain:o,source:n}):(a.del(e),i.getOrSet(n,function(){return{}})[e]={domain:o,name:r,val:t,source:n})}function me(e,t){var r=Z("methodStore"),n=Y("proxyWindowMethods");return r.getOrSet(e,function(){return{}})[t]||n.get(t)}function $e(e,t,r,n,o){!function(e){var t=e.on,r=e.send;Y("builtinListeners").getOrSet("functionCalls",function(){return t(q.METHOD,{domain:z},function(e){var t=e.source,n=e.origin,o=e.data,i=o.id,a=o.name,s=me(t,i);if(!s)throw new Error("Could not find method '"+a+"' with id: "+o.id+" in "+h(window));var c=s.source,u=s.domain,l=s.val;return j.try(function(){if(!g(u,n))throw new Error("Method '"+o.name+"' domain "+JSON.stringify(W(s.domain)?s.domain.source:s.domain)+" does not match origin "+n+" in "+h(window));if(be.isProxyWindow(c))return c.matchWindow(t,{send:r}).then(function(e){if(!e)throw new Error("Method call '"+o.name+"' failed - proxy window does not match source in "+h(window))})}).then(function(){return l.apply({source:t,origin:n},o.args)},function(e){return j.try(function(){if(l.onError)return l.onError(e)}).then(function(){throw e.stack&&(e.stack="Remote call to "+a+"()\n\n"+e.stack),e})}).then(function(e){return{result:e,id:i,name:a}})})})}({on:o.on,send:o.send});var i=r.__id__||L();e=be.unwrap(e);var a=r.__name__||r.name||n;return 0===a.indexOf("anonymous::")&&(a=a.replace("anonymous::",n+"::")),be.isProxyWindow(e)?(ye(i,r,a,e,t),e.awaitWindow().then(function(e){ye(i,r,a,e,t)})):ye(i,r,a,e,t),ce(V.CROSS_DOMAIN_FUNCTION,{id:i,name:a})}function ve(e,t,r,n){var o,i=n.on,a=n.send;return function(e,t){void 0===t&&(t=pe);var r=JSON.stringify(e,function(e){var r=this[e];if(ae(this))return r;var n=se(r);if(!n)return r;var o=t[n]||le[n];return o?o(r,e):r});return void 0===r?ie.UNDEFINED:r}(r,((o={})[ie.PROMISE]=function(r,n){return function(e,t,r,n,o){return ce(V.CROSS_DOMAIN_ZALGO_PROMISE,{then:$e(e,t,function(e,t){return r.then(e,t)},n,{on:o.on,send:o.send})})}(e,t,r,n,{on:i,send:a})},o[ie.FUNCTION]=function(r,n){return $e(e,t,r,n,{on:i,send:a})},o[ie.OBJECT]=function(e){return E(e)||be.isProxyWindow(e)?ce(V.CROSS_DOMAIN_WINDOW,be.serialize(e,{send:a})):e},o))}function ge(e,t,r,n){var o,i=n.on,a=n.send;return function(e,t){if(void 0===t&&(t=he),e!==ie.UNDEFINED)return JSON.parse(e,function(e,r){if(ae(this))return r;var n,o;if(ae(r)?(n=r.__type__,o=r.__val__):(n=se(r),o=r),!n)return o;var i=t[n]||fe[n];return i?i(o,e):o})}(r,((o={})[V.CROSS_DOMAIN_ZALGO_PROMISE]=function(e){return function(e,t,r){return new j(r.then)}(0,0,e)},o[V.CROSS_DOMAIN_FUNCTION]=function(r){return function(e,t,r,n){var o=r.id,i=r.name,a=n.send,s=function(r){function n(){var s=arguments;return be.toProxyWindow(e,{send:a}).awaitWindow().then(function(e){var c=me(e,o);if(c&&c.val!==n)return c.val.apply({source:window,origin:h()},s);var u={domain:t,fireAndForget:r.fireAndForget},l=[].slice.call(s);return a(e,q.METHOD,{id:o,name:i,args:l},u).then(function(e){if(!r.fireAndForget)return e.data.result})}).catch(function(e){throw e})}return void 0===r&&(r={}),n.__name__=i,n.__origin__=t,n.__source__=e,n.__id__=o,n.origin=t,n},c=s();return c.fireAndForget=s({fireAndForget:!0}),c}(e,t,r,{on:i,send:a})},o[V.CROSS_DOMAIN_WINDOW]=function(e){return be.deserialize(e,{send:a})},o))}var Ee={};function Se(e,t,r,n){var o,i=n.on,a=n.send;if($(e))throw new Error("Window is closed");for(var s=ve(e,t,((o={}).__post_robot_10_0_22__=R({id:L(),origin:h(window)},r),o),{on:i,send:a}),c=Object.keys(Ee),u=[],l=0;l<c.length;l++){var p=c[l];try{Ee[p](e,s,t)}catch(e){u.push(e)}}if(u.length===c.length)throw new Error("All post-robot messaging strategies failed:\n\n"+u.map(function(e,t){return t+". "+B(e)}).join("\n\n"))}Ee.postrobot_post_message=function(e,t,r){(Array.isArray(r)?r:"string"==typeof r?[r]:[z]).map(function(e){return 0===e.indexOf(o.FILE)?z:e}).forEach(function(r){e.postMessage(t,r)})};var Oe,xe="__domain_regex__";function we(e){return Y("responseListeners").get(e)}function Te(e){Y("responseListeners").del(e)}function Ae(e){return Y("erroredResponseListeners").has(e)}function Ce(e){var t=e.name,r=e.win,n=e.domain,o=Z("requestListeners");if(r===z&&(r=null),n===z&&(n=null),!t)throw new Error("Name required to get request listener");for(var i=0,a=[r,J()];i<a.length;i++){var s=a[i];if(s){var c=o.get(s);if(c){var u=c[t];if(u){if(n&&"string"==typeof n){if(u[n])return u[n];if(u[xe])for(var l=0,p=u[xe];l<p.length;l++){var f=p[l],h=f.listener;if(g(f.regex,n))return h}}if(u[z])return u[z]}}}}}var Ie=((Oe={}).postrobot_message_request=function(e,t,r,n){var o=n.on,i=n.send,a=Ce({name:r.name,win:e,domain:t}),s=r.name===q.METHOD&&r.data&&"string"==typeof r.data.name?r.data.name+"()":r.name;function c(n,a,c){if(void 0===c&&(c={}),!r.fireAndForget&&!$(e))try{Se(e,t,R({type:n,ack:a,hash:r.hash,name:r.name},c),{on:o,send:i})}catch(e){throw new Error("Send response message failed for "+s+" in "+h()+"\n\n"+B(e))}}return j.all([c("postrobot_message_ack"),j.try(function(){if(!a)throw new Error("No handler found for post message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!g(a.domain,t))throw new Error("Request origin "+t+" does not match domain "+a.domain.toString());return a.handler({source:e,origin:t,data:r.data})}).then(function(e){return c("postrobot_message_response","success",{data:e})},function(e){return c("postrobot_message_response","error",{error:e})})]).then(D).catch(function(e){if(a&&a.handleError)return a.handleError(e);throw e})},Oe.postrobot_message_ack=function(e,t,r){if(!Ae(r.hash)){var n=we(r.hash);if(!n)throw new Error("No handler found for post message ack for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);try{if(!g(n.domain,t))throw new Error("Ack origin "+t+" does not match domain "+n.domain.toString());if(e!==n.win)throw new Error("Ack source does not match registered window")}catch(e){n.promise.reject(e)}n.ack=!0}},Oe.postrobot_message_response=function(e,t,r){if(!Ae(r.hash)){var o,i=we(r.hash);if(!i)throw new Error("No handler found for post message response for message: "+r.name+" from "+t+" in "+window.location.protocol+"//"+window.location.host+window.location.pathname);if(!g(i.domain,t))throw new Error("Response origin "+t+" does not match domain "+(o=i.domain,Array.isArray(o)?"("+o.join(" | ")+")":n(o)?"RegExp("+o.toString():o.toString()));if(e!==i.win)throw new Error("Response source does not match registered window");Te(r.hash),"error"===r.ack?i.promise.reject(r.error):"success"===r.ack&&i.promise.resolve({source:e,origin:t,data:r.data})}},Oe);function Pe(e,t){var r=t.on,n=t.send,i=Y("receivedMessages");if(!window||window.closed)throw new Error("Message recieved in closed window");try{if(!e.source)return}catch(e){return}var a=e.source,s=e.origin,c=function(e,t,r,n){var o,i=n.on,a=n.send;try{o=ge(t,r,e,{on:i,send:a})}catch(e){return}if(o&&"object"==(void 0===o?"undefined":_typeof(o))&&null!==o&&(o=o.__post_robot_10_0_22__)&&"object"==(void 0===o?"undefined":_typeof(o))&&null!==o&&o.type&&"string"==typeof o.type&&Ie[o.type])return o}(e.data,a,s,{on:r,send:n});c&&(ne(a),i.has(c.id)||(i.set(c.id,!0),$(a)&&!c.fireAndForget||(0===c.origin.indexOf(o.FILE)&&(s=o.FILE+"//"),Ie[c.type](a,s,c,{on:r,send:n}))))}function je(e,t,r){if(!e)throw new Error("Expected name");if("function"==typeof t&&(r=t,t={}),!r)throw new Error("Expected handler");(t=t||{}).name=e,t.handler=r||t.handler;var n=t.window,o=t.domain,i=function e(t,r){var n=t.name,o=t.win,i=t.domain,a=Z("requestListeners");if(!n||"string"!=typeof n)throw new Error("Name required to add request listener");if(Array.isArray(o)){for(var s=[],c=0,u=o;c<u.length;c++)s.push(e({name:n,domain:i,win:u[c]},r));return{cancel:function(){for(var e=0;e<s.length;e++)s[e].cancel()}}}if(Array.isArray(i)){for(var l=[],p=0,f=i;p<f.length;p++)l.push(e({name:n,win:o,domain:f[p]},r));return{cancel:function(){for(var e=0;e<l.length;e++)l[e].cancel()}}}var h=Ce({name:n,win:o,domain:i});if(o&&o!==z||(o=J()),i=i||z,h)throw o&&i?new Error("Request listener already exists for "+n+" on domain "+i.toString()+" for "+(o===J()?"wildcard":"specified")+" window"):o?new Error("Request listener already exists for "+n+" for "+(o===J()?"wildcard":"specified")+" window"):i?new Error("Request listener already exists for "+n+" on domain "+i.toString()):new Error("Request listener already exists for "+n);var _,d,b=a.getOrSet(o,function(){return{}}),y=G(b,n,function(){return{}}),m=i.toString();return W(i)?(_=G(y,xe,function(){return[]})).push(d={regex:i,listener:r}):y[m]=r,{cancel:function(){delete y[m],d&&(_.splice(_.indexOf(d,1)),_.length||delete y[xe]),Object.keys(y).length||delete b[n],o&&!Object.keys(b).length&&a.del(o)}}}({name:e,win:n,domain:o},{handler:t.handler,handleError:t.errorHandler||function(e){throw e},window:n,domain:o||z,name:e});return{cancel:function(){i.cancel()}}}function Re(e,t,r){"function"==typeof(t=t||{})&&(r=t,t={});var n,o=new j;return t.errorHandler=function(e){n.cancel(),o.reject(e)},n=je(e,t,function(e){if(n.cancel(),o.resolve(e),r)return r(e)}),o.cancel=n.cancel,o}var ke=function e(t,r,n,o){var i=(o=o||{}).domain||z,a=o.timeout||-1,s=o.timeout||5e3,c=o.fireAndForget||!1;return j.try(function(){if(function(e,t,r){if(!e)throw new Error("Expected name");if(r&&"string"!=typeof r&&!Array.isArray(r)&&!W(r))throw new TypeError("Expected domain to be a string, array, or regex");if($(t))throw new Error("Target window is closed")}(r,t,i),function(e,t){var r=v(t);if(r)return r===e;if(t===e)return!1;if(function(e){void 0===e&&(e=window);try{if(e.top)return e.top}catch(e){}if(u(e)===e)return e;try{if(d(window,e)&&window.top)return window.top}catch(e){}try{if(d(e,window)&&window.top)return window.top}catch(e){}for(var t=0,r=function e(t){for(var r=[],n=0,o=b(t);n<o.length;n++){var i=o[n];r.push(i);for(var a=0,s=e(i);a<s.length;a++)r.push(s[a])}return r}(e);t<r.length;t++){var n=r[t];try{if(n.top)return n.top}catch(e){}if(u(n)===n)return n}}(t)===t)return!1;for(var n=0,o=b(e);n<o.length;n++)if(o[n]===t)return!0;return!1}(window,t))return function(e,t,r){void 0===t&&(t=5e3),void 0===r&&(r="Window");var n=function(e){return Z("helloPromises").getOrSet(e,function(){return new j})}(e);return-1!==t&&(n=n.timeout(t,new Error(r+" did not load after "+t+"ms"))),n}(t,s)}).then(function(r){return function(e,t,r,n){var o=n.send;return"string"==typeof t?j.resolve(t):j.try(function(){return r||te(e,{send:o}).then(function(e){return e.domain})}).then(function(e){if(!g(t,t))throw new Error("Domain "+U(t)+" does not match "+U(t));return e})}(t,i,(void 0===r?{}:r).domain,{send:e})}).then(function(o){i=o;var s,u,l=r===q.METHOD&&n&&"string"==typeof n.name?n.name+"()":r,p=new j,f=r+"_"+L();if(!c){var _={name:r,win:t,domain:i,promise:p};!function(e,t){Y("responseListeners").set(e,t)}(f,_);var d=Z("requestPromises").getOrSet(t,function(){return[]});d.push(p),p.catch(function(){!function(e){Y("erroredResponseListeners").set(e,!0)}(f),Te(f)});var b=function(e){return Z("knownWindows").get(e,!1)}(t)?1e4:2e3,y=a,m=b,v=y,g=(s=function(){return $(t)?p.reject(new Error("Window closed for "+r+" before "+(_.ack?"response":"ack"))):_.cancelled?p.reject(new Error("Response listener was cancelled for "+r)):(m=Math.max(m-500,0),-1!==v&&(v=Math.max(v-500,0)),_.ack||0!==m?0===v?p.reject(new Error("No response for postMessage "+l+" in "+h()+" in "+y+"ms")):void 0:p.reject(new Error("No ack for postMessage "+l+" in "+h()+" in "+b+"ms")))},function e(){u=setTimeout(function(){s(),e()},500)}(),{cancel:function(){clearTimeout(u)}});p.finally(function(){g.cancel(),d.splice(d.indexOf(p,1))}).catch(D)}try{Se(t,i,{type:"postrobot_message_request",hash:f,name:r,data:n,fireAndForget:c},{on:je,send:e})}catch(e){throw new Error("Send request message failed for "+l+" in "+h()+"\n\n"+B(e))}return c?p.resolve():p})};function Me(e,t,r){return ve(e,t,r,{on:je,send:ke})}function Ne(e,t,r){return ge(e,t,r,{on:je,send:ke})}function Le(e){return new be({send:ke,win:e})}function Fe(e){return be.toProxyWindow(e,{send:ke})}function De(){var e,t,r;K().initialized||(K().initialized=!0,function(e){var t=e.on,r=e.send,n=K();n.receiveMessage=n.receiveMessage||function(e){return Pe(e,{on:t,send:r})}}({on:je,send:ke}),t=(e={on:je,send:ke}).on,r=e.send,Y().getOrSet("postMessageListener",function(){return(e=window).addEventListener("message",n=function(e){!function(e,t){var r=t.on,n=t.send,i=e.source||e.sourceElement,a=e.origin||e.originalEvent&&e.originalEvent.origin,s=e.data;if("null"===a&&(a=o.FILE+"//"),i){if(!a)throw new Error("Post message did not have origin domain");Pe({source:i,origin:a,data:s},{on:r,send:n})}}(e,{on:t,send:r})}),{cancel:function(){e.removeEventListener("message",n)}};var e,n}),function(e){var t=e.on,r=e.send;Y("builtinListeners").getOrSet("helloListener",function(){var e=t(q.HELLO,{domain:z},function(e){return ee(e.source,{domain:e.origin}),{instanceID:Q()}}),n=v();return n&&te(n,{send:r}).catch(D),e})}({on:je,send:ke}))}function Be(){var e;!function(){for(var e=Y("responseListeners"),t=0,r=e.keys();t<r.length;t++){var n=r[t],o=e.get(n);o&&(o.cancelled=!0),e.del(n)}}(),(e=Y().get("postMessageListener"))&&e.cancel(),delete window.__post_robot_10_0_22__}function Ue(e){for(var t=0,r=Z("requestPromises").get(e,[]);t<r.length;t++)r[t].reject(new Error("Window cleaned up before response")).catch(D)}r.d(t,"bridge",function(){}),r.d(t,"Promise",function(){return j}),r.d(t,"TYPES",function(){return!0}),r.d(t,"ProxyWindow",function(){return be}),r.d(t,"setup",function(){return De}),r.d(t,"destroy",function(){return Be}),r.d(t,"serializeMessage",function(){return Me}),r.d(t,"deserializeMessage",function(){return Ne}),r.d(t,"createProxyWindow",function(){return Le}),r.d(t,"toProxyWindow",function(){return Fe}),r.d(t,"on",function(){return je}),r.d(t,"once",function(){return Re}),r.d(t,"send",function(){return ke}),r.d(t,"markWindowKnown",function(){return ne}),r.d(t,"cleanUpWindow",function(){return Ue}),De()}])}),postRobot$1=unwrapExports(postRobot),postRobot_1=postRobot.postRobot,postRobot$2={default:postRobot$1,__moduleExports:postRobot,postRobot:postRobot_1},require$$0$t=postRobot$2&&postRobot$1||postRobot$2,postRobot$3=createCommonjsModule(function(e){e.exports=require$$0$t,e.exports.default=e.exports}),decycle=function(e,t){var r=new WeakMap;return function e(n,o){var i,a;return void 0!==t&&(n=t(n)),"object"!==(void 0===n?"undefined":_typeof(n))||null===n||n instanceof Boolean||n instanceof Date||n instanceof Number||n instanceof RegExp||n instanceof String?n:void 0!==(i=r.get(n))?{$ref:i}:(r.set(n,o),Array.isArray(n)?(a=[],n.forEach(function(t,r){a[r]=e(t,o+"["+r+"]")})):(a={},Object.keys(n).forEach(function(t){a[t]=e(n[t],o+"["+JSON.stringify(t)+"]")})),a)}(e,"$")},retrocycle=function retrocycle($){var px=/^\$(?:\[(?:\d+|"(?:[^\\"\u0000-\u001f]|\\(?:[\\"\/bfnrt]|u[0-9a-zA-Z]{4}))*")\])*$/;return function rez(value){value&&"object"===(void 0===value?"undefined":_typeof(value))&&(Array.isArray(value)?value.forEach(function(element,i){if("object"===(void 0===element?"undefined":_typeof(element))&&null!==element){var path=element.$ref;"string"==typeof path&&px.test(path)?value[i]=eval(path):rez(element)}}):Object.keys(value).forEach(function(name){var item=value[name];if("object"===(void 0===item?"undefined":_typeof(item))&&null!==item){var path=item.$ref;"string"==typeof path&&px.test(path)?value[name]=eval(path):rez(item)}}))}($),$},send=postRobot$3.send,on=postRobot$3.on,PostRobotSend=function(e,t,r,n,o){if(void 0===t.window)throw new Error("container window application is not initialized");return o||(o={}),o.domain=e.origin,send(t.window,r,n,o)},PostRobotSendSafe=function(e,t,r,n,o){if(void 0===t.window)throw new Error("container window application is not initialized");return o||(o={}),o.domain=e.origin,n=decycle(n),send(t.window,r,n,o)};function SendFactory(e,t){if(void 0===t.container)throw new Error("container  is not initialized");return PostRobotSend.bind(null,t,t.container)}function SendSafeFactory(e,t){if(void 0===t.container)throw new Error("container  is not initialized");return PostRobotSendSafe.bind(null,t,t.container)}function decycleDecorator(e){return function(t){var r={source:t.source,origin:t.origin,data:retrocycle(t.data)};return e(r)}}var BusPostrobotListen=curry(function(e,t,r,n,o){if(void 0===t.window)throw new Error("container window application is not initialized");return on(n,{window:t.window,domain:r},o)}),BusPostrobotSafeListen=curry(function(e,t,r,n,o){if(void 0===t.window)throw new Error("container window application is not initialized");var i=decycleDecorator(o);return on(n,{window:t.window,domain:r},i)});function OnFactory(e,t){if(null==t.container)throw new Error("container iframe application is not initialized");return t.origin||(t.origin="*"),BusPostrobotListen(e)(t.container)(t.origin)}function OnSafeFactory(e,t){if(null==t.container)throw new Error("container iframe application is not initialized");return t.origin||(t.origin="*"),BusPostrobotSafeListen(e)(t.container)(t.origin)}function noop$2(){}var PROTOCOL={MOCK:"mock:",FILE:"file:",ABOUT:"about:"};function getParent(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(e)try{if(e.parent&&e.parent!==e)return e.parent}catch(e){}}function getOpener(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window;if(e&&!getParent(e))try{return e.opener}catch(e){}}function canReadFromWindow(e){try{return noop$2(e&&e.location&&e.location.href),!0}catch(e){}return!1}function getActualDomain(e){var t=(e=e||window).location;if(!t)throw new Error("Can not read window location");var r=t.protocol;if(!r)throw new Error("Can not read window protocol");if(r===PROTOCOL.FILE)return PROTOCOL.FILE+"//";if(r===PROTOCOL.ABOUT){var n=getParent(e);return n&&canReadFromWindow(n)?getActualDomain(n):PROTOCOL.ABOUT+"//"}var o=t.host;if(!o)throw new Error("Can not read window host");return r+"//"+o}function getDomain(e){var t=getActualDomain(e=e||window);return t&&e.mockDomain&&0===e.mockDomain.indexOf(PROTOCOL.MOCK)?e.mockDomain:t}function getAncestor(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:window,t=getOpener(e=e||window);if(t)return t;var r=getParent(e);return r||void 0}function getDomainFromUrl(e){return e.match(/^(https?|mock|file):\/\//)?e.split("/").slice(0,3).join("/"):getDomain()}var BusIframe=function(e,t,r,n,o){if(null==t.window)return Promise.reject("container iframe application is not initialized");if(!canReadFromWindow(t.window))return Promise.reject("Iframe of the geo application and current page does not share same domain");var i=t.window;if(void 0===i.geoApi2Service)throw new Error("geoApi2Service not found on given application url");return Promise.resolve(i.geoApi2Service.receiveSyncAction(n,o))};function SendFactory$1(e,t){if(void 0===t.container)throw new Error("iframe application is not initialized");return BusIframe.bind(null,e,t.container,t)}var BusEmbeded=function(e,t,r,n,o){return t.window&&t.eventHandler?new Promise(function(e,r){try{t.eventHandler.$emit("API_BUS_EXTERNAL_INTERNAL",n,o,function(t){e({data:t})})}catch(e){r(e)}}):Promise.reject("container  application is not initialized")};function SendFactory$2(e,t){if(void 0===t.container)throw new Error("iframe application is not initialized");var r=t.container;return BusEmbeded.bind(null,e,r,t)}var EmbededListen=curry(function(e,t,r,n,o){if(void 0===t.eventHandler)throw new Error("container eventHandler application is not initialized");return{cancel:t.eventHandler.$on("API_BUS_INTERNAL_EXTERNAL",function(e,t,r,i){if(t===n){var a={data:r,source:window,origin:window};try{i.resolve(o(a))}catch(e){i.reject(e)}}})}}),ApplicationContext,_BUS_DEFAULT_STRATEGI,_BUS_DEFAULT_STRATEGI2,_BUS_DEFAULT_STRATEGI3;function OnFactory$1(e,t){var r=t.container;return t.origin||(t.origin="*"),EmbededListen(e)(r)(t.origin)}!function(e){e.CROSS_DOMAIN_FRAME="CROSS_DOMAIN",e.CROSS_DOMAIN_FRAME_PARENT="CROSS_DOMAIN_PARENT",e.CROSS_DOMAIN_FRAME_GEOM="CROSS_DOMAIN_FRAME_GEOM",e.SAME_DOMAIN_FRAME="SAME_DOMAIN",e.IN_WINDOW="EMBED_API"}(ApplicationContext||(ApplicationContext={}));var BUS_DEFAULT_STRATEGIES=(_BUS_DEFAULT_STRATEGI={},defineProperty(_BUS_DEFAULT_STRATEGI,ApplicationContext.CROSS_DOMAIN_FRAME,SendFactory),defineProperty(_BUS_DEFAULT_STRATEGI,ApplicationContext.CROSS_DOMAIN_FRAME_PARENT,SendFactory),defineProperty(_BUS_DEFAULT_STRATEGI,ApplicationContext.CROSS_DOMAIN_FRAME_GEOM,SendSafeFactory),defineProperty(_BUS_DEFAULT_STRATEGI,ApplicationContext.SAME_DOMAIN_FRAME,SendFactory),defineProperty(_BUS_DEFAULT_STRATEGI,ApplicationContext.IN_WINDOW,SendFactory$2),_BUS_DEFAULT_STRATEGI),BUS_DEFAULT_STRATEGIES_SYNC=(_BUS_DEFAULT_STRATEGI2={},defineProperty(_BUS_DEFAULT_STRATEGI2,ApplicationContext.CROSS_DOMAIN_FRAME,SendFactory),defineProperty(_BUS_DEFAULT_STRATEGI2,ApplicationContext.CROSS_DOMAIN_FRAME_PARENT,SendFactory),defineProperty(_BUS_DEFAULT_STRATEGI2,ApplicationContext.CROSS_DOMAIN_FRAME_GEOM,SendFactory),defineProperty(_BUS_DEFAULT_STRATEGI2,ApplicationContext.SAME_DOMAIN_FRAME,SendFactory$1),defineProperty(_BUS_DEFAULT_STRATEGI2,ApplicationContext.IN_WINDOW,SendFactory$2),_BUS_DEFAULT_STRATEGI2),BUS_DEFAULT_STRATEGIES_ON=(_BUS_DEFAULT_STRATEGI3={},defineProperty(_BUS_DEFAULT_STRATEGI3,ApplicationContext.CROSS_DOMAIN_FRAME,OnFactory),defineProperty(_BUS_DEFAULT_STRATEGI3,ApplicationContext.CROSS_DOMAIN_FRAME_PARENT,OnSafeFactory),defineProperty(_BUS_DEFAULT_STRATEGI3,ApplicationContext.CROSS_DOMAIN_FRAME_GEOM,OnFactory),defineProperty(_BUS_DEFAULT_STRATEGI3,ApplicationContext.SAME_DOMAIN_FRAME,OnSafeFactory),defineProperty(_BUS_DEFAULT_STRATEGI3,ApplicationContext.IN_WINDOW,OnFactory$1),_BUS_DEFAULT_STRATEGI3);function BusSend(e,t,r){return BUS_DEFAULT_STRATEGIES[t](e,r)}function BusSendSync(e,t,r){return BUS_DEFAULT_STRATEGIES_SYNC[t](e,r)}function BusOn(e,t,r){return BUS_DEFAULT_STRATEGIES_ON[t](e,r)}function logBusCallback(e,t){console.error("message received from internal api from "+e+" : %j",t)}function BusOnStore(e,t,r,n){var o=BusOn(t,r,n),i=[],a=function(t){if(isNaN(Number(t))&&"OTHER_ACTION"!==t){var r=TypeKeyActionsProxy[t];i.push(o(r,function(r){var n={type:t,payload:r.data};e.dispatch(n)}))}};for(var s in TypeKeyActionsProxy)a(s);var c=function(e){if(isNaN(Number(e))){var t=TypeKeyUtils[e];i.push(o(t,function(r){return logBusCallback(t,r),{type:e,payload:r.data}}))}};for(var s in TypeKeyUtils)c(s);return o("HANDSHAKE",function(e){return{success:!0}}),i}var bus={BusOn:BusOn,BusSend:BusSend,BusSendSync:BusSendSync,BusOnStore:BusOnStore,decycle:decycle,retrocycle:retrocycle},ExtensionType;!function(e){e.TOOLTIP="tooltip",e.INFOSHEET="infosheet",e.SEARCHRESULT="searchResult",e.MAP_TOOL="mapTool",e.WIDGET_PANEL="widgetPanel",e.BOTTOM_PANEL="bottomPanel",e.LAUNCHER="launcher",e.THEMATICS="thematics",e.THEMATICS_TOOLBAR="thematicsToolbar",e.SEARCH_TOOLBAR="searchToolbar",e.ANALYSES_TOOLBAR="analysesToolbar",e.INTERACTIVITY="interactivity",e.STATS_TOOLBAR="statsToolbar",e.GLOBAL="global",e.INFOSHEET_SECTION="infosheetSection"}(ExtensionType||(ExtensionType={}));var Component=function(){function e(t,r){classCallCheck(this,e),this.visible=!1,this.properties={},_extends(this,r),this.geoAppUid=t}return createClass(e,[{key:"connect",value:function(e){this.store=e}},{key:"getState",value:function(){if(void 0===this.store)throw new Error("no store defined for component");var e=this.store.getState();return e&&e.components&&e.components[this.name]?e.components[this.name]:null}},{key:"setState",value:function(e,t){if(void 0===this.store)throw new Error("no store defined for component");var r={};return r[this.name]={visible:e,properties:t||{}},fromPromise_1(setComponentsStateCreatorP({components:r},this.store.dispatch))}}]),e}(),ExtensibleComponent=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return inherits(t,Component),createClass(t,[{key:"buildExtension",value:function(e){if(void 0===this.defaultExtensionType)throw Error("No default extension type this component type.");return{type:this.defaultExtensionType,properties:e}}},{key:"addExtension",value:function(e){if(void 0===this.store)throw new Error("no store defined for component");var t=this.buildExtension(e);return fromPromise_1(registerExtensionCreatorP(t,this.store.dispatch))}}]),t}(),BottomPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="BottomPanel",e.defaultExtensionType=ExtensionType.BOTTOM_PANEL,e.defaultExtensionProperties={visible:!0,closable:!1,hideHeader:!1,softHide:!1,order:0},e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){var t=this.defaultExtensionType,r=_extends({},this.defaultExtensionProperties);return _extends(r,e),{type:t,properties:r}}}]),t}(),_actionCreatorsBuilde$3=actionCreatorsBuilder(TypeKeyActions.ADD_MENU_ITEM),_actionCreatorsBuilde2$3=slicedToArray(_actionCreatorsBuilde$3,3),addMenuItemCreator=_actionCreatorsBuilde2$3[0],addMenuItemAsyncCreator=_actionCreatorsBuilde2$3[1],addMenuItemCreatorP=_actionCreatorsBuilde2$3[2],ADD_MENU_ITEM=function e(t){classCallCheck(this,e),_extends(this,t),this.menuItem=t.menuItem},REGISTER_EXTENSION=function e(t,r){classCallCheck(this,e),this.type=t,this.properties=r,r.handle||(this.properties.handle=function(){return!1})},SERVICE_PAYLOAD=function e(t){if(classCallCheck(this,e),this.transient=t.transient,!t.id)throw Error("service id not defined in options parameters for service payload");this.id=t.id},KindService;!function(e){e.GET_IMAGE_MAP="GET_IMAGE_MAP",e.CALL_METHOD="CALL_METHOD",e.CALL_REST="CALL_REST",e.FEATURE_TRANSACTION="FEATURE_TRANSACTION",e.EXECUTE_SEARCH="EXECUTE_SEARCH",e.LOCALIZE_ADDRESS="LOCALIZE_ADDRESS",e.OTHER_SERVICE="__any_other_service_type__"}(KindService||(KindService={}));var SERVICE_GET_IMAGE_MAP=function(e){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.kindService=KindService.GET_IMAGE_MAP,r.parameters=new ServiceGetImageMapParameters,e.parameters&&_extends(r.parameters,e.parameters),r}return inherits(t,SERVICE_PAYLOAD),t}(),ServiceGetImageMapParameters=function e(){classCallCheck(this,e)},FunctionsLauncher=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.name="FunctionsLauncher",n.defaultExtensionType=ExtensionType.LAUNCHER,n.properties=r.properties||{},n}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){var t=this.defaultExtensionType,r=void 0,n=void 0;return e.menuName?r=function(t){return e.menuName===t}:e.enable&&(r=e.enable),e.handle&&(n=e.handle),{type:t,properties:{handle:n,enable:r}}}},{key:"addMenuItem",value:function(e,t){if(!this.store)throw Error("store not defined");var r=new ADD_MENU_ITEM({menuItem:e,options:t});return fromPromise_1(addMenuItemCreatorP(r,this.store.dispatch))}}]),t}(),WidgetPanelType;!function(e){e.HEADER="header",e.WIDGETSIDE="widget.side",e.RIGHTPANEL="rightPanel",e.PRINT="print",e.WIDGETLARGE="widget.large",e.LEFTPANEL="leftpanel"}(WidgetPanelType||(WidgetPanelType={}));var Header=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="Header",e.defaultExtensionType=ExtensionType.WIDGET_PANEL,e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){var t=this.defaultExtensionType;return e.type=WidgetPanelType.HEADER,{type:t,properties:e}}}]),t}(),Logo=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="Logo",e}return inherits(t,Component),t}(),Title=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="Title",e}return inherits(t,Component),t}(),PrintLink=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="PrintLink",e}return inherits(t,Component),t}(),SearchBox=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="SearchBox",e.properties={},e}return inherits(t,Component),t}(),UserInfoHeader=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="UserInfoHeader",e}return inherits(t,Component),t}(),LayerControl=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="LayerControl",e.defaultExtensionType=ExtensionType.THEMATICS,e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"addEntryExtension",value:function(e){if(!this.store)throw new Error("No store defined");var t={key:"geoapi.thematic.entry",icon:"icon",enable:function(){return!0},handle:function(){}};_extends(t,e);var r=new REGISTER_EXTENSION(ExtensionType.THEMATICS,t);return fromPromise_1(registerExtensionCreatorP(r,this.store.dispatch))}}]),t}(),MapTools=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MapTools",e.defaultExtensionType=ExtensionType.MAP_TOOL,e}return inherits(t,ExtensibleComponent),t}(),MapScaleLine=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MapScaleLine",e}return inherits(t,Component),t}(),MapScalePicker=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MapScalePicker",e}return inherits(t,Component),t}(),MapBasicControls=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MapBasicControls",e}return inherits(t,Component),t}(),MapGeolocation=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MapGeolocation",e}return inherits(t,Component),t}(),MapIdentifierTool=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MapIdentifierTool",e}return inherits(t,Component),t}(),MapSelectionTools=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MapSelectionTools",e}return inherits(t,Component),t}(),MapToolsControl=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MapToolsControl",e}return inherits(t,Component),t}(),MeasureTool=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MeasureTool",e}return inherits(t,Component),t}(),RightPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="RightPanel",e.defaultExtensionType=ExtensionType.WIDGET_PANEL,e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){var t=this.defaultExtensionType;return e.type=WidgetPanelType.RIGHTPANEL,{type:t,properties:e}}}]),t}(),ApplicationRightPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="ApplicationRightPanel",e.defaultExtensionType=ExtensionType.WIDGET_PANEL,e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){var t=this.defaultExtensionType;return e.type=WidgetPanelType.RIGHTPANEL,{type:t,properties:e}}}]),t}(),AnalysesRightPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="AnalysesRightPanel",e.defaultExtensionType=ExtensionType.ANALYSES_TOOLBAR,e}return inherits(t,ExtensibleComponent),t}(),StatsRightPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="StatsRightPanel",e.defaultExtensionType=ExtensionType.STATS_TOOLBAR,e}return inherits(t,ExtensibleComponent),t}(),EditionRightPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="EditionRightPanel",e}return inherits(t,Component),t}(),MapRightPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="MapRightPanel",e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){var t=ExtensionType.THEMATICS_TOOLBAR;if(e.extensionType){if("toolbar"===e.extensionType)return{type:t=ExtensionType.THEMATICS_TOOLBAR,properties:e};if("entry"===e.extensionType)return{type:t=ExtensionType.THEMATICS,properties:e}}return{type:t,properties:e}}}]),t}(),PackPersoRightPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="PackPersoRightPanel",e}return inherits(t,Component),t}(),GlobalParametersRightPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="GlobalParametersRightPanel",e}return inherits(t,Component),t}(),SearchResultsRightPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="SearchResultsRightPanel",e.defaultExtensionType=ExtensionType.MAP_TOOL,e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){if(e.extensionType){if("toolbar"===e.extensionType)return this.buildToolBarExtension(e);if("result"===e.extensionType)return this.buildResultExtension(e);if("tooltip"===e.extensionType)return this.buildTooltipExtension(e)}return this.buildToolBarExtension(e)}},{key:"buildToolBarExtension",value:function(e){var t=ExtensionType.SEARCH_TOOLBAR,r=_extends({},e);if(e.enableOptions&&!e.enable){var n=e.enableOptions;r.enable=function(e,t){return!(n.searchId&&n.searchId!==e.searches[0].id||n.searchName&&n.searchName!==e.searches[0].name)}}return{type:t,properties:r}}},{key:"buildResultExtension",value:function(e){var t=ExtensionType.SEARCHRESULT,r=_extends({},e);if(e.enableOptions&&!e.enable){var n=e.enableOptions;r.enable=function(e,t){return!(n.searchId&&n.searchId!==t.searches[0].id||n.searchName&&n.searchName!==t.searches[0].name)}}return{type:t,properties:r}}},{key:"buildTooltipExtension",value:function(e){var t=ExtensionType.TOOLTIP,r=_extends({},e);if(e.enableOptions&&!e.enable){var n=e.enableOptions;r.enable=function(e,t){return!(n.searchId&&n.searchId!==t.searches[0].id||n.searchName&&n.searchName!==t.searches[0].name)}}return{type:t,properties:r}}},{key:"addToolBarExtension",value:function(e){if(!this.store)throw new Error("No store defined");var t={key:"geoApi.toolbar"};_extends(t,e);var r=new REGISTER_EXTENSION(ExtensionType.SEARCH_TOOLBAR,t);return fromPromise_1(registerExtensionCreatorP(r,this.store.dispatch))}}]),t}(),SidePanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="SidePanel",e.defaultExtensionType=ExtensionType.WIDGET_PANEL,e}return inherits(t,ExtensibleComponent),t}(),InfoSheetPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="InfoSheetPanel",e.defaultExtensionType=ExtensionType.INFOSHEET,e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){var t=this.defaultExtensionType,r=_extends({},e);if(e.enableOptions&&!e.enable){var n=e.enableOptions;r.enable=function(e,t,r,o){return!(n.infosheetId&&n.infosheetId!==t.id||n.searchId&&n.searchId!==r.id||n.infosheetName&&n.infosheetName!==t.name||n.searchName&&n.searchName!==r.name)}}return{type:t,properties:r}}}]),t}(),ExplorePanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="ExplorePanel",e.defaultExtensionType=ExtensionType.WIDGET_PANEL,e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){var t=this.defaultExtensionType;return e.type=WidgetPanelType.WIDGETSIDE,{type:t,properties:e}}}]),t}(),SearchResultPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="SearchResultPanel",e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){if(e.extensionType){if("result"===e.extensionType)return this.buildResultExtension(e);if("tooltip"===e.extensionType)return this.buildTooltipExtension(e);throw Error("unknown SearchResultPanel extensionType. available values are result and tooltip")}return this.buildTooltipExtension(e)}},{key:"buildTooltipExtension",value:function(e){var t=ExtensionType.TOOLTIP,r=_extends({},e);if(e.enableOptions&&!e.enable){var n=e.enableOptions;r.enable=function(e,t){return!(n.searchId&&n.searchId!==t.searches[0].id||n.searchName&&n.searchName!==t.searches[0].name)}}return{type:t,properties:r}}},{key:"buildResultExtension",value:function(e){var t=ExtensionType.SEARCHRESULT,r=_extends({},e);if(e.enableOptions&&!e.enable){var n=e.enableOptions;r.enable=function(e,t){return!(n.searchId&&n.searchId!==t.searches[0].id||n.searchName&&n.searchName!==t.searches[0].name)}}return{type:t,properties:r}}}]),t}(),AnalysesResultsPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="AnalysesResultsPanel",e.defaultExtensionType=ExtensionType.ANALYSES_TOOLBAR,e}return inherits(t,ExtensibleComponent),t}(),StatsResultsPanel=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="StatsResultsPanel",e.defaultExtensionType=ExtensionType.STATS_TOOLBAR,e}return inherits(t,ExtensibleComponent),t}(),Infosheet=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="Infosheet",e.defaultExtensionType=ExtensionType.INFOSHEET,e}return inherits(t,ExtensibleComponent),createClass(t,[{key:"buildExtension",value:function(e){var t=this.defaultExtensionType;if("section"===e.extensionType)return this.buildSectionExtension(e);var r=_extends({},e);if(e.enableOptions&&!e.enable){var n=e.enableOptions||{};r.enable=function(e,t,r,o){return(!n.infosheetId||t.id&&n.infosheetId===t.id)&&(!n.searchId||r.id&&n.searchId===r.id)&&(!n.infosheetName||t.name&&n.infosheetName===t.name)&&(!n.searchName||r.name&&n.searchName===r.name)}}return{type:t,properties:r}}},{key:"buildSectionExtension",value:function(e){var t=ExtensionType.INFOSHEET_SECTION,r=_extends({},e);if(void 0!==e.enableOptions&&!e.enable){var n=e.enableOptions||{};r.enable=function(e,t){return!(n.infosheetId&&n.infosheetId!==t.infoSheet.id||n.infosheetName&&n.infosheetName!==t.infoSheet.name||n.sectionName&&n.sectionName!==e.title)}}return{type:t,properties:r}}},{key:"addSectionExtension",value:function(e){if(void 0===this.store)throw new Error("no store defined for component");var t=this.buildSectionExtension(e);return fromPromise_1(registerExtensionCreatorP(t,this.store.dispatch))}}]),t}(),BaseLayerSwitcher=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.name="BaseLayerSwitcher",e}return inherits(t,Component),t}(),ComponentsStore={MapScaleLine:MapScaleLine,MapBasicControls:MapBasicControls,MapGeolocation:MapGeolocation,LayerControl:LayerControl,Header:Header,SearchBox:SearchBox,BaseLayerSwitcher:BaseLayerSwitcher,UserInfoHeader:UserInfoHeader,PrintLink:PrintLink,FunctionsLauncher:FunctionsLauncher,Logo:Logo,Title:Title,SidePanel:SidePanel,SearchResultPanel:SearchResultPanel,ExplorePanel:ExplorePanel,InfoSheetPanel:InfoSheetPanel,AnalysesResultsPanel:AnalysesResultsPanel,StatsResultsPanel:StatsResultsPanel,MapScalePicker:MapScalePicker,RightPanel:RightPanel,ApplicationRightPanel:ApplicationRightPanel,GlobalParametersRightPanel:GlobalParametersRightPanel,EditionRightPanel:EditionRightPanel,MapRightPanel:MapRightPanel,AnalysesRightPanel:AnalysesRightPanel,StatsRightPanel:StatsRightPanel,SearchResultsRightPanel:SearchResultsRightPanel,PackPersoRightPanel:PackPersoRightPanel,MapIdentifierTool:MapIdentifierTool,MapSelectionTools:MapSelectionTools,MapToolsControl:MapToolsControl,MapTools:MapTools,BottomPanel:BottomPanel,Infosheet:Infosheet,MeasureTool:MeasureTool},ComponentInstanceLoader=function(){function e(){classCallCheck(this,e)}return createClass(e,null,[{key:"getInstance",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return new(Function.prototype.bind.apply(ComponentsStore[e],[null].concat(r)))}}]),e}(),objectPath$2=createCommonjsModule(function(e){e.exports=function(){var e=Object.prototype.toString;function t(e,t){return null!=e&&Object.prototype.hasOwnProperty.call(e,t)}function r(e){if(!e)return!0;if(o(e)&&0===e.length)return!0;if("string"!=typeof e){for(var r in e)if(t(e,r))return!1;return!0}return!1}function n(t){return e.call(t)}var o=Array.isArray||function(t){return"[object Array]"===e.call(t)};function i(e){var t=parseInt(e);return t.toString()===e?t:e}function a(e){e=e||{};var a=function e(t){return Object.keys(e).reduce(function(r,n){return"create"===n?r:("function"==typeof e[n]&&(r[n]=e[n].bind(e,t)),r)},{})};function s(r,n){return e.includeInheritedProps||"number"==typeof n&&Array.isArray(r)||t(r,n)}function c(e,t){if(s(e,t))return e[t]}function u(e,t,r,n){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if("string"==typeof t)return u(e,t.split(".").map(i),r,n);var o=t[0],a=c(e,o);return 1===t.length?(void 0!==a&&n||(e[o]=r),a):(void 0===a&&("number"==typeof t[1]?e[o]=[]:e[o]={}),u(e[o],t.slice(1),r,n))}return a.has=function(r,n){if("number"==typeof n?n=[n]:"string"==typeof n&&(n=n.split(".")),!n||0===n.length)return!!r;for(var a=0;a<n.length;a++){var s=i(n[a]);if(!("number"==typeof s&&o(r)&&s<r.length||(e.includeInheritedProps?s in Object(r):t(r,s))))return!1;r=r[s]}return!0},a.ensureExists=function(e,t,r){return u(e,t,r,!0)},a.set=function(e,t,r,n){return u(e,t,r,n)},a.insert=function(e,t,r,n){var i=a.get(e,t);n=~~n,o(i)||a.set(e,t,i=[]),i.splice(n,0,r)},a.empty=function(e,t){var i,c;if(!r(t)&&null!=e&&(i=a.get(e,t))){if("string"==typeof i)return a.set(e,t,"");if(function(e){return"boolean"==typeof e||"[object Boolean]"===n(e)}(i))return a.set(e,t,!1);if("number"==typeof i)return a.set(e,t,0);if(o(i))i.length=0;else{if(!function(e){return"object"===(void 0===e?"undefined":_typeof(e))&&"[object Object]"===n(e)}(i))return a.set(e,t,null);for(c in i)s(i,c)&&delete i[c]}}},a.push=function(e,t){var r=a.get(e,t);o(r)||a.set(e,t,r=[]),r.push.apply(r,Array.prototype.slice.call(arguments,2))},a.coalesce=function(e,t,r){for(var n,o=0,i=t.length;o<i;o++)if(void 0!==(n=a.get(e,t[o])))return n;return r},a.get=function(e,t,r){if("number"==typeof t&&(t=[t]),!t||0===t.length)return e;if(null==e)return r;if("string"==typeof t)return a.get(e,t.split("."),r);var n=i(t[0]),o=c(e,n);return void 0===o?r:1===t.length?o:a.get(e[n],t.slice(1),r)},a.del=function(e,t){if("number"==typeof t&&(t=[t]),null==e)return e;if(r(t))return e;if("string"==typeof t)return a.del(e,t.split("."));var n=i(t[0]);return s(e,n)?1!==t.length?a.del(e[n],t.slice(1)):(o(e)?e.splice(n,1):delete e[n],e):e},a}var s=a();return s.create=a,s.withInheritedProps=a({includeInheritedProps:!0}),s}()});function Watch(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return function(t){t.prototype.on||(t.prototype.watch=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"BehaviorSubject";return this.observable(e,r).subscribe(t)}),t.prototype.on||(t.prototype.on=function(e,t){return void 0!==this.listenersNeeded&&void 0!==this.listenersNeeded[e]&&(void 0!==this.activateEvents?this.activateEvents([this.listenersNeeded[e]]):this.map&&this.map.activateEvents&&this.map.activateEvents([this.listenersNeeded[e]])),this.observable(e,"Subject").subscribe(t)}),t.prototype.observable||(t.prototype.observable=function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"BehaviorSubject";if(null==this.observers&&(this.observers={}),void 0===this.observers[t]&&(this.observers[t]=[]),void 0===this.observers[t][r]){var n=void 0,o=void 0,i=void 0,a=this.store,s=this.store.getState();if(void 0===e[t]){var c=void 0;c=""!==this.path?this.path+"."+t:t,n=reduxWatch(a.getState,c),o=objectPath$2.get(s,c)}else{var u=e[t];n=reduxWatch(function(){return u(a.getState())}),o=u(s)}switch(r){case"Subject":i=new Subject_2;break;case"AsyncSubject":i=new AsyncSubject_2;break;case"ReplaySubject":i=new ReplaySubject_2;break;case"BehaviorSubject":default:i=new BehaviorSubject_2(o)}return this.observers[t][r]=i,a.subscribe(n(function(e,t){i.next(e)})),i}return this.observers[t][r]})}}var lodash_isequal=createCommonjsModule(function(e,t){var r=200,n="__lodash_hash_undefined__",o=1,i=2,a=9007199254740991,s="[object Arguments]",c="[object Array]",u="[object AsyncFunction]",l="[object Boolean]",p="[object Date]",f="[object Error]",h="[object Function]",_="[object GeneratorFunction]",d="[object Map]",b="[object Number]",y="[object Null]",m="[object Object]",$="[object Proxy]",v="[object RegExp]",g="[object Set]",E="[object String]",S="[object Symbol]",O="[object Undefined]",x="[object ArrayBuffer]",w="[object DataView]",T=/^\[object .+?Constructor\]$/,A=/^(?:0|[1-9]\d*)$/,C={};C["[object Float32Array]"]=C["[object Float64Array]"]=C["[object Int8Array]"]=C["[object Int16Array]"]=C["[object Int32Array]"]=C["[object Uint8Array]"]=C["[object Uint8ClampedArray]"]=C["[object Uint16Array]"]=C["[object Uint32Array]"]=!0,C[s]=C[c]=C[x]=C[l]=C[w]=C[p]=C[f]=C[h]=C[d]=C[b]=C[m]=C[v]=C[g]=C[E]=C["[object WeakMap]"]=!1;var I="object"==_typeof(commonjsGlobal)&&commonjsGlobal&&commonjsGlobal.Object===Object&&commonjsGlobal,P="object"==("undefined"==typeof self?"undefined":_typeof(self))&&self&&self.Object===Object&&self,j=I||P||Function("return this")(),R=t&&!t.nodeType&&t,k=R&&e&&!e.nodeType&&e,M=k&&k.exports===R,N=M&&I.process,L=function(){try{return N&&N.binding&&N.binding("util")}catch(e){}}(),F=L&&L.isTypedArray;function D(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}function B(e,t){return e.has(t)}function U(e){var t=-1,r=Array(e.size);return e.forEach(function(e,n){r[++t]=[n,e]}),r}function W(e){var t=-1,r=Array(e.size);return e.forEach(function(e){r[++t]=e}),r}var G,q,z,V=Array.prototype,K=Function.prototype,H=Object.prototype,Y=j["__core-js_shared__"],X=K.toString,J=H.hasOwnProperty,Z=(G=/[^.]+$/.exec(Y&&Y.keys&&Y.keys.IE_PROTO||""))?"Symbol(src)_1."+G:"",Q=H.toString,ee=RegExp("^"+X.call(J).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),te=M?j.Buffer:void 0,re=j.Symbol,ne=j.Uint8Array,oe=H.propertyIsEnumerable,ie=V.splice,ae=re?re.toStringTag:void 0,se=Object.getOwnPropertySymbols,ce=te?te.isBuffer:void 0,ue=(q=Object.keys,z=Object,function(e){return q(z(e))}),le=Fe(j,"DataView"),pe=Fe(j,"Map"),fe=Fe(j,"Promise"),he=Fe(j,"Set"),_e=Fe(j,"WeakMap"),de=Fe(Object,"create"),be=We(le),ye=We(pe),me=We(fe),$e=We(he),ve=We(_e),ge=re?re.prototype:void 0,Ee=ge?ge.valueOf:void 0;function Se(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function Oe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function xe(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}function we(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new xe;++t<r;)this.add(e[t])}function Te(e){var t=this.__data__=new Oe(e);this.size=t.size}function Ae(e,t){var r=ze(e),n=!r&&qe(e),o=!r&&!n&&Ve(e),i=!r&&!n&&!o&&Je(e),a=r||n||o||i,s=a?function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}(e.length,String):[],c=s.length;for(var u in e)!t&&!J.call(e,u)||a&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||Ue(u,c))||s.push(u);return s}function Ce(e,t){for(var r=e.length;r--;)if(Ge(e[r][0],t))return r;return-1}function Ie(e){return null==e?void 0===e?O:y:ae&&ae in Object(e)?function(e){var t=J.call(e,ae),r=e[ae];try{e[ae]=void 0;var n=!0}catch(e){}var o=Q.call(e);n&&(t?e[ae]=r:delete e[ae]);return o}(e):function(e){return Q.call(e)}(e)}function Pe(e){return Xe(e)&&Ie(e)==s}function je(e,t,r,n,a){return e===t||(null==e||null==t||!Xe(e)&&!Xe(t)?e!=e&&t!=t:function(e,t,r,n,a,u){var h=ze(e),_=ze(t),y=h?c:Be(e),$=_?c:Be(t),O=(y=y==s?m:y)==m,T=($=$==s?m:$)==m,A=y==$;if(A&&Ve(e)){if(!Ve(t))return!1;h=!0,O=!1}if(A&&!O)return u||(u=new Te),h||Je(e)?Me(e,t,r,n,a,u):function(e,t,r,n,a,s,c){switch(r){case w:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case x:return!(e.byteLength!=t.byteLength||!s(new ne(e),new ne(t)));case l:case p:case b:return Ge(+e,+t);case f:return e.name==t.name&&e.message==t.message;case v:case E:return e==t+"";case d:var u=U;case g:var h=n&o;if(u||(u=W),e.size!=t.size&&!h)return!1;var _=c.get(e);if(_)return _==t;n|=i,c.set(e,t);var y=Me(u(e),u(t),n,a,s,c);return c.delete(e),y;case S:if(Ee)return Ee.call(e)==Ee.call(t)}return!1}(e,t,y,r,n,a,u);if(!(r&o)){var C=O&&J.call(e,"__wrapped__"),I=T&&J.call(t,"__wrapped__");if(C||I){var P=C?e.value():e,j=I?t.value():t;return u||(u=new Te),a(P,j,r,n,u)}}if(!A)return!1;return u||(u=new Te),function(e,t,r,n,i,a){var s=r&o,c=Ne(e),u=c.length,l=Ne(t).length;if(u!=l&&!s)return!1;for(var p=u;p--;){var f=c[p];if(!(s?f in t:J.call(t,f)))return!1}var h=a.get(e);if(h&&a.get(t))return h==t;var _=!0;a.set(e,t),a.set(t,e);for(var d=s;++p<u;){f=c[p];var b=e[f],y=t[f];if(n)var m=s?n(y,b,f,t,e,a):n(b,y,f,e,t,a);if(!(void 0===m?b===y||i(b,y,r,n,a):m)){_=!1;break}d||(d="constructor"==f)}if(_&&!d){var $=e.constructor,v=t.constructor;$!=v&&"constructor"in e&&"constructor"in t&&!("function"==typeof $&&$ instanceof $&&"function"==typeof v&&v instanceof v)&&(_=!1)}return a.delete(e),a.delete(t),_}(e,t,r,n,a,u)}(e,t,r,n,je,a))}function Re(e){return!(!Ye(e)||function(e){return!!Z&&Z in e}(e))&&(Ke(e)?ee:T).test(We(e))}function ke(e){if(!function(e){var t=e&&e.constructor,r="function"==typeof t&&t.prototype||H;return e===r}(e))return ue(e);var t=[];for(var r in Object(e))J.call(e,r)&&"constructor"!=r&&t.push(r);return t}function Me(e,t,r,n,a,s){var c=r&o,u=e.length,l=t.length;if(u!=l&&!(c&&l>u))return!1;var p=s.get(e);if(p&&s.get(t))return p==t;var f=-1,h=!0,_=r&i?new we:void 0;for(s.set(e,t),s.set(t,e);++f<u;){var d=e[f],b=t[f];if(n)var y=c?n(b,d,f,t,e,s):n(d,b,f,e,t,s);if(void 0!==y){if(y)continue;h=!1;break}if(_){if(!D(t,function(e,t){if(!B(_,t)&&(d===e||a(d,e,r,n,s)))return _.push(t)})){h=!1;break}}else if(d!==b&&!a(d,b,r,n,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function Ne(e){return function(e,t,r){var n=t(e);return ze(e)?n:function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}(n,r(e))}(e,Ze,De)}function Le(e,t){var r,n,o=e.__data__;return("string"==(n=void 0===(r=t)?"undefined":_typeof(r))||"number"==n||"symbol"==n||"boolean"==n?"__proto__"!==r:null===r)?o["string"==typeof t?"string":"hash"]:o.map}function Fe(e,t){var r=function(e,t){return null==e?void 0:e[t]}(e,t);return Re(r)?r:void 0}Se.prototype.clear=function(){this.__data__=de?de(null):{},this.size=0},Se.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Se.prototype.get=function(e){var t=this.__data__;if(de){var r=t[e];return r===n?void 0:r}return J.call(t,e)?t[e]:void 0},Se.prototype.has=function(e){var t=this.__data__;return de?void 0!==t[e]:J.call(t,e)},Se.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=de&&void 0===t?n:t,this},Oe.prototype.clear=function(){this.__data__=[],this.size=0},Oe.prototype.delete=function(e){var t=this.__data__,r=Ce(t,e);return!(r<0||(r==t.length-1?t.pop():ie.call(t,r,1),--this.size,0))},Oe.prototype.get=function(e){var t=this.__data__,r=Ce(t,e);return r<0?void 0:t[r][1]},Oe.prototype.has=function(e){return Ce(this.__data__,e)>-1},Oe.prototype.set=function(e,t){var r=this.__data__,n=Ce(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this},xe.prototype.clear=function(){this.size=0,this.__data__={hash:new Se,map:new(pe||Oe),string:new Se}},xe.prototype.delete=function(e){var t=Le(this,e).delete(e);return this.size-=t?1:0,t},xe.prototype.get=function(e){return Le(this,e).get(e)},xe.prototype.has=function(e){return Le(this,e).has(e)},xe.prototype.set=function(e,t){var r=Le(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this},we.prototype.add=we.prototype.push=function(e){return this.__data__.set(e,n),this},we.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.clear=function(){this.__data__=new Oe,this.size=0},Te.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},Te.prototype.get=function(e){return this.__data__.get(e)},Te.prototype.has=function(e){return this.__data__.has(e)},Te.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Oe){var o=n.__data__;if(!pe||o.length<r-1)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new xe(o)}return n.set(e,t),this.size=n.size,this};var De=se?function(e){return null==e?[]:(e=Object(e),function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}(se(e),function(t){return oe.call(e,t)}))}:function(){return[]},Be=Ie;function Ue(e,t){return!!(t=null==t?a:t)&&("number"==typeof e||A.test(e))&&e>-1&&e%1==0&&e<t}function We(e){if(null!=e){try{return X.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ge(e,t){return e===t||e!=e&&t!=t}(le&&Be(new le(new ArrayBuffer(1)))!=w||pe&&Be(new pe)!=d||fe&&"[object Promise]"!=Be(fe.resolve())||he&&Be(new he)!=g||_e&&"[object WeakMap]"!=Be(new _e))&&(Be=function(e){var t=Ie(e),r=t==m?e.constructor:void 0,n=r?We(r):"";if(n)switch(n){case be:return w;case ye:return d;case me:return"[object Promise]";case $e:return g;case ve:return"[object WeakMap]"}return t});var qe=Pe(function(){return arguments}())?Pe:function(e){return Xe(e)&&J.call(e,"callee")&&!oe.call(e,"callee")},ze=Array.isArray;var Ve=ce||function(){return!1};function Ke(e){if(!Ye(e))return!1;var t=Ie(e);return t==h||t==_||t==u||t==$}function He(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=a}function Ye(e){var t=void 0===e?"undefined":_typeof(e);return null!=e&&("object"==t||"function"==t)}function Xe(e){return null!=e&&"object"==(void 0===e?"undefined":_typeof(e))}var Je=F?function(e){return function(t){return e(t)}}(F):function(e){return Xe(e)&&He(e.length)&&!!C[Ie(e)]};function Ze(e){return null!=(t=e)&&He(t.length)&&!Ke(t)?Ae(e):ke(e);var t}e.exports=function(e,t){return je(e,t)}}),lib=createCommonjsModule(function(e,t){function r(e,t){return e===t}function n(e,t,r){if(null===t||null===r||t.length!==r.length)return!1;for(var n=t.length,o=0;o<n;o++)if(!e(t[o],r[o]))return!1;return!0}function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:r,o=null,i=null;return function(){return n(t,o,arguments)||(i=e.apply(null,arguments)),o=arguments,i}}function i(e){var t=Array.isArray(e[0])?e[0]:e;if(!t.every(function(e){return"function"==typeof e})){var r=t.map(function(e){return void 0===e?"undefined":_typeof(e)}).join(", ");throw new Error("Selector creators expect all input-selectors to be functions, instead received the following types: ["+r+"]")}return t}function a(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];return function(){for(var t=arguments.length,n=Array(t),a=0;a<t;a++)n[a]=arguments[a];var s=0,c=n.pop(),u=i(n),l=e.apply(void 0,[function(){return s++,c.apply(null,arguments)}].concat(r)),p=o(function(){for(var e=[],t=u.length,r=0;r<t;r++)e.push(u[r].apply(null,arguments));return l.apply(null,e)});return p.resultFunc=c,p.recomputations=function(){return s},p.resetRecomputations=function(){return s=0},p}}t.__esModule=!0,t.defaultMemoize=o,t.createSelectorCreator=a,t.createStructuredSelector=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:s;if("object"!==(void 0===e?"undefined":_typeof(e)))throw new Error("createStructuredSelector expects first argument to be an object where each property is a selector, instead received a "+(void 0===e?"undefined":_typeof(e)));var r=Object.keys(e);return t(r.map(function(t){return e[t]}),function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return t.reduce(function(e,t,n){return e[r[n]]=t,e},{})})};var s=t.createSelector=a(o)});unwrapExports(lib);var lib_1=lib.defaultMemoize,lib_2=lib.createSelectorCreator,lib_3=lib.createStructuredSelector,lib_4=lib.createSelector,ExtentA=function e(){classCallCheck(this,e)},MapStore=function(){function e(){classCallCheck(this,e),this.markers={}}return createClass(e,[{key:"extent",get:function(){return this._extent},set:function(e){this._extent=e}}]),e}(),CodeResourceType;!function(e){e["com.bg.functionality.application.BuiltInExtensionConfigurationValue"]="com.bg.functionality.application.BuiltInExtensionConfigurationValue",e["com.bg.functionality.application.ExternalExtensionConfigurationValue"]="com.bg.functionality.application.ExternalExtensionConfigurationValue",e["com.bg.functionality.application.SimpleConfigurationValue"]="com.bg.functionality.application.SimpleConfigurationValue",e["com.bg.functionality.search.Search"]="com.bg.functionality.search.Search",e["com.bg.functionality.map.Map"]="com.bg.functionality.map.Map",e["com.bg.functionality.infosheet.InfoSheet"]="com.bg.functionality.infosheet.InfoSheet",e["com.bg.functionality.geometrymodification.GeometryModification"]="com.bg.functionality.geometrymodification.GeometryModification",e["com.bg.functionality.com.bg.functionality.map.MapContext"]="com.bg.functionality.map.MapContext",e["com.bg.functionality.map.layer.Analysis"]="com.bg.functionality.map.layer.Analysis",e["com.bg.functionality.map.layer.Analysis2"]="com.bg.functionality.map.layer.Analysis2",e["com.bg.functionality.filtering.GlobalParameter"]="com.bg.functionality.filtering.GlobalParameter",e["com.bg.functionality.geokey.model.Dataset"]="com.bg.functionality.geokey.model.Dataset"}(CodeResourceType||(CodeResourceType={}));var KindTypeKey="@type";function isDependency(e){return void 0!==e["@dependencyFor"]&&void 0!==e.targetId}function getDependency(e,t){if(isDependency(e)){var r=e.targetId;if(t[r])return t[r];throw console.log("could not resolve a dependency for "+r),new Error(e+" : dependency could not be resolved")}throw new Error(e+" : not a dependency")}function getDependencyOrObject(e,t){return isDependency(e)?getDependency(e,t):e}function parseExtensionConfiguration(e){var t={},r=void 0;if(e&&e[KindTypeKey]===CodeResourceType["com.bg.functionality.application.BuiltInExtensionConfigurationValue"]?r=e.configuration:e&&e[KindTypeKey]===CodeResourceType["com.bg.functionality.application.ExternalExtensionConfigurationValue"]&&(r=e.configuration.configuration),r){var n=!0,o=!1,i=void 0;try{for(var a,s=Object.entries(r)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var c=a.value,u=slicedToArray(c,2),l=u[0],p=u[1];if(p instanceof Array&&void 0!==p[0]){var f=p[0];f[KindTypeKey]&&f[KindTypeKey]===CodeResourceType["com.bg.functionality.application.SimpleConfigurationValue"]?t[l]=f.value:(t[l]||(t[l]=[]),t[l]instanceof Array&&t[l].push(f))}}}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}}return t}var configurationExtensionSelector=function(e,t){var r=[],n=e.configurations;if(void 0===n)return[];var o=!0,i=!1,a=void 0;try{for(var s,c=Object.entries(n)[Symbol.iterator]();!(o=(s=c.next()).done);o=!0){var u=s.value,l=slicedToArray(u,2)[1];void 0!==l&&l.length>0&&l.forEach(function(e){if(e.extensionKey===t){var n={value:{configuration:e.configuration,key:e.key,extensionKey:e.extensionKey},properties:parseExtensionConfiguration(e)};r.push(n)}})}}catch(e){i=!0,a=e}finally{try{!o&&c.return&&c.return()}finally{if(i)throw a}}return r},mapSelector=function(e){return e.map},selectionSelector=function(e){return e.selection},servicesSelector=function(e){return e.servicesOperations},functionalitySelector=function(e,t){return void 0!==t&&void 0!==e.functionalities&&e.functionalities.hasOwnProperty(t)&&void 0!==e.functionalities[t]?e.functionalities[t]:{}},mapEntriesSelector=function(e){return void 0!==e.map&&null!==e.map&&void 0!==e.map.entries?e.map.entries:{}},stateOMap=lib_4(mapSelector,function(e){return e}),stateOMapEntries=lib_4(mapEntriesSelector,function(e){return e}),stateOfSelection=lib_4(selectionSelector,function(e){return e}),stateOfFunctionality=lib_4(functionalitySelector,function(e){return e}),stateOfSearchsService=lib_4(servicesSelector,function(e){var t={},r=!0,n=!1,o=void 0;try{for(var i,a=Object.values(e)[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value;s.type==KindService.EXECUTE_SEARCH&&(t[s.id]=s)}}catch(e){n=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw o}}return t}),FunctionalityType=function(){function e(t){if(classCallCheck(this,e),_extends(this,t),void 0===t["@type"])throw new Error("no @type in options");this["@type"]=t["@type"]}return createClass(e,[{key:"parameters",get:function(){return this._parameters},set:function(e){this._parameters=e}},{key:"results",get:function(){return this._results},set:function(e){this._results=e}},{key:"type",get:function(){return this["@type"]}}]),e}(),FeatureSelectionFilterType;!function(e){e.EQUALS="EQUALS",e.CONTAINED="CONTAINED",e.CONTAINS="CONTAINS",e.INTERSECTS="INTERSECTS"}(FeatureSelectionFilterType||(FeatureSelectionFilterType={}));var Functionality=function(e){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(void 0===e.id)throw new Error("no id in options");if(r.id=e.id,void 0===e.name)throw new Error("no name in options");return r.name=e.name,r}return inherits(t,FunctionalityType),createClass(t,[{key:"asSimpleFunctionality",value:function(){return this.asResource()}},{key:"asRessource",value:function(){return this.asResource()}},{key:"asResource",value:function(){if(void 0===this.store)throw new Error("no store defined for functionality");return this.store.getState().functionalities[this.id]}},{key:"connect",value:function(e){var t=this,r=reduxWatch(function(){return stateOfFunctionality(e.getState(),t.id)},null,lodash_isequal);e.subscribe(r(function(e,r){_extends(t,e)})),this.store=e}},{key:"execute",value:function(e,t){if(void 0===this.store)throw new Error("no store defined for functionality");return fromPromise_1(enableFunctionalityCreatorP({id:this.id,parameters:e,components:t},this.store.dispatch))}},{key:"disable",value:function(e){if(void 0===this.store)throw new Error("no store defined for functionality");return fromPromise_1(disableFunctionalityCreatorP({id:this.id,options:e},this.store.dispatch))}},{key:"path",get:function(){return"functionalities."+this.id}}],[{key:"isOfType",value:function(e,t){return t.typeDef===e["@type"]}}]),t}();Functionality.typeDef="",Functionality=__decorate([Watch({}),__metadata("design:paramtypes",[Object])],Functionality);var AnalysisFunctionality=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return inherits(t,Functionality),createClass(t,[{key:"getService",value:function(){throw new Error("Method not implemented.")}},{key:"execute",value:function(e){return get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"execute",this).call(this,e)}}]),t}();AnalysisFunctionality.typeDef="com.bg.functionality.map.layer.Analysis";var Analysis2Functionality=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return inherits(t,AnalysisFunctionality),t}();function defaultSetTimout(){throw new Error("setTimeout has not been defined")}function defaultClearTimeout(){throw new Error("clearTimeout has not been defined")}Analysis2Functionality.typeDef="com.bg.functionality.analysis2.Analysis2";var cachedSetTimeout=defaultSetTimout,cachedClearTimeout=defaultClearTimeout;function runTimeout(e){if(cachedSetTimeout===setTimeout)return setTimeout(e,0);if((cachedSetTimeout===defaultSetTimout||!cachedSetTimeout)&&setTimeout)return cachedSetTimeout=setTimeout,setTimeout(e,0);try{return cachedSetTimeout(e,0)}catch(t){try{return cachedSetTimeout.call(null,e,0)}catch(t){return cachedSetTimeout.call(this,e,0)}}}function runClearTimeout(e){if(cachedClearTimeout===clearTimeout)return clearTimeout(e);if((cachedClearTimeout===defaultClearTimeout||!cachedClearTimeout)&&clearTimeout)return cachedClearTimeout=clearTimeout,clearTimeout(e);try{return cachedClearTimeout(e)}catch(t){try{return cachedClearTimeout.call(null,e)}catch(t){return cachedClearTimeout.call(this,e)}}}"function"==typeof global$2.setTimeout&&(cachedSetTimeout=setTimeout),"function"==typeof global$2.clearTimeout&&(cachedClearTimeout=clearTimeout);var queue$3=[],draining=!1,currentQueue,queueIndex=-1;function cleanUpNextTick(){draining&&currentQueue&&(draining=!1,currentQueue.length?queue$3=currentQueue.concat(queue$3):queueIndex=-1,queue$3.length&&drainQueue())}function drainQueue(){if(!draining){var e=runTimeout(cleanUpNextTick);draining=!0;for(var t=queue$3.length;t;){for(currentQueue=queue$3,queue$3=[];++queueIndex<t;)currentQueue&&currentQueue[queueIndex].run();queueIndex=-1,t=queue$3.length}currentQueue=null,draining=!1,runClearTimeout(e)}}function nextTick(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var r=1;r<arguments.length;r++)t[r-1]=arguments[r];queue$3.push(new Item(e,t)),1!==queue$3.length||draining||runTimeout(drainQueue)}function Item(e,t){this.fun=e,this.array=t}Item.prototype.run=function(){this.fun.apply(null,this.array)};var title="browser",platform="browser",browser=!0,env={},argv=[],version="",versions$1={},release={},config={};function noop$3(){}var on$1=noop$3,addListener=noop$3,once=noop$3,off=noop$3,removeListener=noop$3,removeAllListeners=noop$3,emit=noop$3;function binding(e){throw new Error("process.binding is not supported")}function cwd(){return"/"}function chdir(e){throw new Error("process.chdir is not supported")}function umask(){return 0}var performance=global$2.performance||{},performanceNow=performance.now||performance.mozNow||performance.msNow||performance.oNow||performance.webkitNow||function(){return(new Date).getTime()};function hrtime(e){var t=.001*performanceNow.call(performance),r=Math.floor(t),n=Math.floor(t%1*1e9);return e&&(r-=e[0],(n-=e[1])<0&&(r--,n+=1e9)),[r,n]}var startTime=new Date;function uptime(){return(new Date-startTime)/1e3}var process$4={nextTick:nextTick,title:title,browser:browser,env:env,argv:argv,version:version,versions:versions$1,on:on$1,addListener:addListener,once:once,off:off,removeListener:removeListener,removeAllListeners:removeAllListeners,emit:emit,binding:binding,cwd:cwd,chdir:chdir,umask:umask,hrtime:hrtime,platform:platform,release:release,config:config,uptime:uptime};function isNumber(e){return"number"==typeof e}function isString(e){return"string"==typeof e}function isUndefined(e){return void 0===e}var SERVICE_CALL_REST=function(e){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(r.kindService=KindService.CALL_REST,!e.parameters)throw new Error("undefined parameters for call rest service");return r.parameters=new ServiceCallRestParameters(e.parameters),r}return inherits(t,SERVICE_PAYLOAD),t}(),ServiceCallRestParameters=function e(t){classCallCheck(this,e),this.sendAsJson=!0,_extends(this,t)},SERVICE_FEATURE_TRANSACTION=function(e){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));if(r.kindService=KindService.FEATURE_TRANSACTION,!e.parameters)throw new Error("undefined parameters for call rest service");return r.parameters=new ServiceFeatureTransactionParameters(e.parameters),r}return inherits(t,SERVICE_CALL_REST),t}(),ServiceFeatureTransactionParameters=function(e){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.method="post",r.sendAsJson=!0,r.url="/featureModification/transaction",r}return inherits(t,ServiceCallRestParameters),t}();function uuid(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,function(e){var t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)})}var Service=function(){function e(t,r){classCallCheck(this,e),_extends(this,t),this.store=t.store,this.serviceId=r}return createClass(e,[{key:"getIdAndTransient",value:function(e){return{id:e.id?e.id:uuid(),transient:null!=e.transient&&e.transient}}}]),e}(),FeatureTransactionService=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return inherits(t,Service),createClass(t,[{key:"buildOperation",value:function(e,t,r){if(0===e.length)throw new Error("No features");return[{features:e,source:t,operation:r}]}},{key:"save",value:function(e,t,r){if(0===e.length)return Observable_2.empty();var n=this.getIdAndTransient({transient:t,id:r}),o=n.id,i=n.transient,a=new SERVICE_FEATURE_TRANSACTION({parameters:{data:e},id:o,transient:i});return fromPromise_1(serviceFeatureTransactionCreatorP(a,this.store.dispatch))}}]),t}(),SERVICE_EXECUTE_SEARCH=function(e){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.kindService=KindService.EXECUTE_SEARCH,r.parameters=e.parameters,_extends(r.parameters,e.parameters),r}return inherits(t,SERVICE_PAYLOAD),t}(),SearchService=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.defaultService="acfSearchService",e}return inherits(t,Service),createClass(t,[{key:"executeSearch",value:function(e,t,r,n){var o=void 0;o=Array.isArray(e)?e:[e];var i=t||{},a="";a=n||uuid();void 0===r&&(r=!1);var s=new SERVICE_EXECUTE_SEARCH({transient:r,id:a,parameters:{searches:o,params:i,id:a,eventSource:"geoapi2-js-internal"}});return fromPromise_1(serviceExecuteSearchCreatorP(s,this.store.dispatch))}}]),t}(),GetImageMapService=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return inherits(t,Service),createClass(t,[{key:"getDefaultImageMap",value:function(e,t,r){var n=this.getIdAndTransient({transient:t,id:r}),o=n.id,i=n.transient,a=new SERVICE_GET_IMAGE_MAP({parameters:e,id:o,transient:i});return fromPromise_1(serviceGetImageMapAsyncCreatorP(a,this.store.dispatch))}}]),t}(),SERVICE_LOCALIZE_ADDRESS=function(e){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.kindService=KindService.LOCALIZE_ADDRESS,r.parameters=e.parameters,_extends(r.parameters,e.parameters),r}return inherits(t,SERVICE_PAYLOAD),t}(),AddressLocalizationService=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return inherits(t,Service),createClass(t,[{key:"search",value:function(e,t,r){var n="";n=r||uuid();var o=new SERVICE_LOCALIZE_ADDRESS({transient:t||!1,id:n,parameters:{query:e,id:n,eventSource:"geoapi2-js-internal"}});return fromPromise_1(serviceLocalizeAddressCreatorP(o,this.store.dispatch))}}]),t}(),ServiceLoader=function(){function e(){classCallCheck(this,e)}return createClass(e,null,[{key:"getServiceInstance",value:function(e,t,r){if(!ServiceTypes[e])throw new Error("Service "+e+" not found");var n=e+"_"+t;return servicesInstances[n]||(servicesInstances[n]=new ServiceTypes[e](r,n)),servicesInstances[n]}}]),e}(),servicesInstances={},ServiceTypes={Search:SearchService,FeatureTransaction:FeatureTransactionService,GetImageMap:GetImageMapService,AddressLocalization:AddressLocalizationService},OperationType,OperationRelation;!function(e){e.INSERT="INSERT",e.UPDATE="UPDATE",e.DELETE="DELETE"}(OperationType||(OperationType={})),function(e){e.DEPENDENCY="DEPENDENCY",e.PARENT="PARENT",e.TOPOLOGY="TOPOLOGY"}(OperationRelation||(OperationRelation={}));var FunctionalityService=function e(){classCallCheck(this,e)},GeometryModificationFunctionalityService=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.functionality=e,n.parentService=ServiceLoader.getServiceInstance("FeatureTransaction",r.store.getState().uid,r),n.operations=[],n}return inherits(t,FunctionalityService),createClass(t,[{key:"addFeatures",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.functionality.id,n=e,o=this.parentService.buildOperation(n,r,OperationType.INSERT);return this.operations=this.operations.concat(o),t?this._commit(o):(this.operations=this.operations.concat(o),Observable_2.of(o))}},{key:"deleteFeatures",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.functionality.id,n=e,o=this.parentService.buildOperation(n,r,OperationType.DELETE);return this.operations=this.operations.concat(o),t?this._commit(o):(this.operations=this.operations.concat(o),Observable_2.of(o))}},{key:"updateFeatures",value:function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],r=this.functionality.id,n=e,o=this.parentService.buildOperation(n,r,OperationType.UPDATE);return t?this._commit(o):(this.operations=this.operations.concat(o),Observable_2.of(o))}},{key:"commit",value:function(){var e=this;return this.operations.length>0?this._commit(this.operations).do(function(){e.operations=[]}):Observable_2.of(null)}},{key:"_commit",value:function(e){return this.parentService.save(e)}}]),t}(),GeometryModificationFunctionality=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return inherits(t,Functionality),createClass(t,[{key:"getService",value:function(){if(isUndefined(this.store))throw new Error("no store defined for functionality");if(!this.service){var e={store:this.store};this.service=new GeometryModificationFunctionalityService(this,e)}return this.service}},{key:"execute",value:function(e){return get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"execute",this).call(this,e)}}]),t}();GeometryModificationFunctionality.typeDef="com.bg.functionality.geometrymodification.GeometryModification";var InfoSheetFunctionality=function(e){function t(){classCallCheck(this,t);var e=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e._results={opened:[]},e}return inherits(t,Functionality),createClass(t,[{key:"getService",value:function(){throw new Error("Method not implemented.")}},{key:"execute",value:function(e){return get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"execute",this).call(this,e)}},{key:"disable",value:function(e){return get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"disable",this).call(this,e)}}]),t}();InfoSheetFunctionality.typeDef="com.bg.functionality.infosheet.InfoSheet";var SearchFunctionalityService=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return n.num=0,n.functionality=e,n.parentService=ServiceLoader.getServiceInstance("Search",r.store.getState().uid,r),n.num=0,n}return inherits(t,FunctionalityService),createClass(t,[{key:"executeSearch",value:function(e,t,r){return this.num++,this.parentService.executeSearch([this.functionality.asRessource()],e,t,r)}}]),t}(),SearchFunctionality=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return inherits(t,Functionality),createClass(t,[{key:"getService",value:function(){if(isUndefined(this.store))throw new Error("no store defined for functionality");if(!this.service){var e={store:this.store};this.service=new SearchFunctionalityService(this,e)}return this.service}},{key:"execute",value:function(e,r){return get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"execute",this).call(this,e,r)}}]),t}();SearchFunctionality.typeDef="com.bg.functionality.search.Search";var StatisticFunctionality=function(e){function t(){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return inherits(t,Functionality),createClass(t,[{key:"getService",value:function(){throw new Error("Method not implemented.")}},{key:"execute",value:function(e){return get(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"execute",this).call(this,e)}}]),t}();StatisticFunctionality.typeDef="com.bg.functionality.stat.Statistic";var MapEntry=function(){function e(t,r){if(classCallCheck(this,e),_extends(this,t),isUndefined(t))throw new Error("undefined options");if(isUndefined(t.key))throw new Error("undefined options.key");this.key=t.key,isUndefined(t.fullPath)?this.fullPath="":this.fullPath=t.fullPath,isUndefined(t.name)?this.name="":this.name=t.name,isUndefined(t.entries)?this.entries={}:this.entries=t.entries,this.store=r}return createClass(e,[{key:"setVisibility",value:function(e){return fromPromise_1(setEntriesVisibilityCreatorP({entries:[{key:this.key,visible:e}]},this.store.dispatch))}}],[{key:"isOfType",value:function(e,t){return t.typeDef===e["@type"]}}]),e}(),GroupMapEntry=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.opened=e.opened,n}return inherits(t,MapEntry),t}();GroupMapEntry.typeDef="com.bg.functionality.map.layer.GroupMapEntry";var RasterMapEntry=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.snappable=!1,n}return inherits(t,MapEntry),createClass(t,[{key:"refresh",value:function(){var e=this.source.source.rootSource.id?this.source.source.rootSource.id:this.source.source.rootSource.targetId;return fromPromise_1(dispatchDataRefreshEventCreatorP({sourceIds:[e]},this.store.dispatch))}}]),t}();RasterMapEntry.typeDef="com.bg.functionality.map.layer.RasterMapEntry";var SpatialDataMapEntry=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return isUndefined(e.analyses)&&(n.analyses=[]),isUndefined(e.snappable)?n.snappable=!1:n.snappable=e.snappable,n}return inherits(t,MapEntry),createClass(t,[{key:"refresh",value:function(){var e=this.source.source.rootSource.id?this.source.source.rootSource.id:this.source.source.rootSource.targetId;return fromPromise_1(dispatchDataRefreshEventCreatorP({sourceIds:[e]},this.store.dispatch))}}]),t}();SpatialDataMapEntry.typeDef="com.bg.functionality.map.layer.SpatialDataMapEntry";var _actionCreatorsBuilde$4=actionCreatorsBuilder(TypeKeyActions.CLEAR_MAPENTRIES_FILTERIDS),_actionCreatorsBuilde2$4=slicedToArray(_actionCreatorsBuilde$4,3),clearMapentriesFilteridsCreator=_actionCreatorsBuilde2$4[0],clearMapentriesFilteridsAsyncCreator=_actionCreatorsBuilde2$4[1],clearMapentriesFilteridsCreatorP=_actionCreatorsBuilde2$4[2],_actionCreatorsBuilde$5=actionCreatorsBuilder(TypeKeyActions.SET_MAPENTRY_FILTERIDS),_actionCreatorsBuilde2$5=slicedToArray(_actionCreatorsBuilde$5,3),setMapentryFilteridsCreator=_actionCreatorsBuilde2$5[0],setMapentryFilteridsAsyncCreator=_actionCreatorsBuilde2$5[1],setMapentryFilteridsCreatorP=_actionCreatorsBuilde2$5[2],VectorLayerMapEntry=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return isUndefined(e.analyses)&&(n.analyses=[]),isUndefined(e.snappable)?n.snappable=!1:n.snappable=e.snappable,n}return inherits(t,MapEntry),createClass(t,[{key:"refresh",value:function(){var e=getDependencyOrObject(this.source,this.store.getState().resources),t=getDependencyOrObject(e.source,this.store.getState().resources),r=t.rootSource.id?t.rootSource.id:t.rootSource.targetId;return fromPromise_1(dispatchDataRefreshEventCreatorP({sourceIds:[r]},this.store.dispatch))}},{key:"applyFilterIds",value:function(e){return fromPromise_1(setMapentryFilteridsCreatorP({entrykey:this.key,ids:e},this.store.dispatch))}},{key:"clearFilterIds",value:function(){return fromPromise_1(clearMapentriesFilteridsCreatorP({entrykeys:[this.key]},this.store.dispatch))}}]),t}();VectorLayerMapEntry.typeDef="com.bg.functionality.map.layer.VectorLayerMapEntry";var WebServiceMapEntry=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.snappable=!1,n}return inherits(t,MapEntry),createClass(t,[{key:"refresh",value:function(){var e=this.source.id?this.source.id:this.source.targetId;return fromPromise_1(dispatchDataRefreshEventCreatorP({sourceIds:[e]},this.store.dispatch))}}]),t}();WebServiceMapEntry.typeDef="com.bg.functionality.map.layer.WebServiceMapEntry";var MapEntryDeserializer=function(){function e(){classCallCheck(this,e)}return createClass(e,null,[{key:"build",value:function(e,t){if(MapEntry.isOfType(e,GroupMapEntry))return new GroupMapEntry(e,t);if(MapEntry.isOfType(e,VectorLayerMapEntry))return new VectorLayerMapEntry(e,t);if(MapEntry.isOfType(e,SpatialDataMapEntry))return new SpatialDataMapEntry(e,t);if(MapEntry.isOfType(e,RasterMapEntry))return new RasterMapEntry(e,t);if(MapEntry.isOfType(e,WebServiceMapEntry))return new WebServiceMapEntry(e,t);throw new Error("unrecognized map entry type")}}]),e}(),FunctionalityDeserializer=function(){function e(){classCallCheck(this,e)}return createClass(e,null,[{key:"build",value:function(e){if(Functionality.isOfType(e,AnalysisFunctionality))return new AnalysisFunctionality(e);if(Functionality.isOfType(e,Analysis2Functionality))return new Analysis2Functionality(e);if(Functionality.isOfType(e,SearchFunctionality))return new SearchFunctionality(e);if(Functionality.isOfType(e,InfoSheetFunctionality))return new InfoSheetFunctionality(e);if(Functionality.isOfType(e,GeometryModificationFunctionality))return new GeometryModificationFunctionality(e);if(Functionality.isOfType(e,StatisticFunctionality))return new StatisticFunctionality(e);throw new Error("unrecognized functionality type")}}]),e}(),Extent=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return Array.isArray(e)?("string"==typeof e[0]?n.minX=Number(e[0]):n.minX=e[0],"string"==typeof e[2]?n.maxX=Number(e[2]):n.maxX=e[2],"string"==typeof e[1]?n.minY=Number(e[1]):n.minY=e[1],"string"==typeof e[3]?n.maxY=Number(e[3]):n.maxY=e[3],n.crs=r):(n.minX=e.minX,n.maxX=e.maxX,n.minY=e.minY,n.maxY=e.maxY,n.crs=e.crs),n}return inherits(t,ExtentA),t}(),_actionCreatorsBuilde$6=actionCreatorsBuilder(TypeKeyActions.SET_SELECTION_TOOL_MODE),_actionCreatorsBuilde2$6=slicedToArray(_actionCreatorsBuilde$6,3),setSelectionToolModeCreator=_actionCreatorsBuilde2$6[0],setSelectionToolModeAsyncCreator=_actionCreatorsBuilde2$6[1],setSelectionToolModeCreatorP=_actionCreatorsBuilde2$6[2],SelectionToolMode;!function(e){e.APPEND="append",e.REPLACE="replace"}(SelectionToolMode||(SelectionToolMode={}));var SET_SELECTION_TOOL_MODE=function e(t){classCallCheck(this,e),this.mode=SelectionToolMode.REPLACE,_extends(this,t)},_actionCreatorsBuilde$7=actionCreatorsBuilder(TypeKeyActions.REFRESH_MAP),_actionCreatorsBuilde2$7=slicedToArray(_actionCreatorsBuilde$7,3),refreshMapCreator=_actionCreatorsBuilde2$7[0],refreshMapAsyncCreator=_actionCreatorsBuilde2$7[1],refreshMapCreatorP=_actionCreatorsBuilde2$7[2],Map$2=function(e){function t(e){classCallCheck(this,t);var r=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));return r.path="map",r.store=null,r.listenersNeeded={pointerClick:"POINTER_CLICK",pointerMove:"POINTER_MOVE"},r.entries={},r.entriesByKey={},void 0!==e.entries&&(r._entriesOnConstructor=e.entries),_extends(r,e),r.entries=void 0,r.observers={},r}return inherits(t,MapStore),createClass(t,[{key:"setApplication",value:function(e){this.application=e}},{key:"constructMapEntries",value:function(e){var t={},r=!0,n=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=e[i.value];if(null==this.store)throw new Error("store is null");if(void 0!==s){var c=MapEntryDeserializer.build(s,this.store);void 0!==s.entries&&null!==s.entries&&s.entries&&(c.entries=this.recurseBuildEntry(s.entries,c.key)),t[c.key]=c,this.entries&&null!==this.entries&&void 0!==this.entries[c.key]&&null!=this.entries[c.key]&&null!=t&&null!=t[c.key]&&(t[c.key]=_extends(this.entries[c.key],t[c.key])),void 0===this.entriesByKey[c.key]?this.entriesByKey[c.key]=t[c.key]:_extends(this.entriesByKey[c.key]=t[c.key])}}}catch(e){n=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw o}}this.entries=t}},{key:"connect",value:function(e){var t=this;this.store=e,this._entriesOnConstructor&&this.constructMapEntries(this._entriesOnConstructor);var r=function(e){e.entries&&t.constructMapEntries(e.entries);var r=t.entries;_extends(t,e),t.entries=r},n=this.store.getState();n.map&&r(n.map);var o=reduxWatch(function(){return stateOMap(e.getState())});e.subscribe(o(function(e,t){r(e)}));var i=reduxWatch(function(){return stateOMapEntries(e.getState())});e.subscribe(i(function(e,r){t.constructMapEntries(e)}))}},{key:"getEntryById",value:function(e){if(this.entriesByKey&&null!==this.entriesByKey[e])return this.entriesByKey[e];throw new Error("unknown entry id "+e)}},{key:"getEntryByName",value:function(e){return this.getEntryBy({name:e})}},{key:"getEntryBy",value:function(e){var t=Object.values(this.entriesByKey);return lodash_filter(t,e)}},{key:"setEntriesVisibility",value:function(e){if(null==this.store)throw new Error("store is null");var t=[],r=!0,n=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value,c=e[s];t.push({key:s,visible:c})}}catch(e){n=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw o}}return fromPromise_1(setEntriesVisibilityCreatorP({entries:t},this.store.dispatch))}},{key:"activateEvents",value:function(e){if(null==this.store)throw new Error("store is null");return fromPromise_1(listenMapEventsCreatorP({events:e},this.store.dispatch))}},{key:"activateMapEvents",value:function(e){return this.activateEvents(e)}},{key:"addMarkers",value:function(e){if(null==this.store)throw new Error("store is null");return fromPromise_1(addMarkersCreatorP({markers:e},this.store.dispatch))}},{key:"centerOn",value:function(e){if(null==this.store)throw new Error("store is null");return fromPromise_1(gotoPointCreatorP(e,this.store.dispatch))}},{key:"zoomTo",value:function(e){if(null==this.store)throw new Error("store is null");return fromPromise_1(zoomToScaleCreatorP({scaleDenominator:e},this.store.dispatch))}},{key:"zoomIn",value:function(){if(null==this.store)throw new Error("store is null");return fromPromise_1(zoomInCreatorP({},this.store.dispatch))}},{key:"zoomOut",value:function(){if(null==this.store)throw new Error("store is null");return fromPromise_1(zoomOutCreatorP({},this.store.dispatch))}},{key:"panTo",value:function(e){if(null==this.store)throw new Error("store is null");return fromPromise_1(panToCreatorP({direction:e},this.store.dispatch))}},{key:"gotoInitExtent",value:function(){if(null==this.store)throw new Error("store is null");return fromPromise_1(gotoInitExtentCreatorP({},this.store.dispatch))}},{key:"gotoExtent",value:function(e,t){return this.setExtent(e,t)}},{key:"setExtent",value:function(e,t){if(null==this.store)throw new Error("store is null");return Array.isArray(e)&&(e=new Extent(e,t)),fromPromise_1(gotoExtentCreatorP({extent:e},this.store.dispatch))}},{key:"refresh",value:function(){if(null==this.store)throw new Error("store is null");return fromPromise_1(refreshMapCreatorP({},this.store.dispatch))}},{key:"removeMarkers",value:function(e){if(null==this.store)throw new Error("store is null");return fromPromise_1(removeMarkersCreatorP({markers:e},this.store.dispatch))}},{key:"centerOnMarker",value:function(e,t){if(null==this.store)throw new Error("store is null");return fromPromise_1(gotoMarkerCreatorP({id:e,buffer:t},this.store.dispatch))}},{key:"serviceExportAsImage",value:function(e){if(this.application)return this.application.Services.GetImageMap.getDefaultImageMap(e);throw new Error("map has been not initialized")}},{key:"recurseBuildEntry",value:function(e,t){t+=".entries.";var r={};if(null==this.store)throw new Error("store is null");var n=!0,o=!1,i=void 0;try{for(var a,s=Object.keys(e)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var c=e[a.value],u=MapEntryDeserializer.build(c,this.store);u.fullPath=t+u.key,void 0!==c.entries&&null!==c.entries&&c.entries&&(u.entries=this.recurseBuildEntry(c.entries,u.fullPath));var l=objectPath$2.get(this.entries,u.fullPath);void 0!==l&&l&&(u=_extends(l,u)),r[u.key]=u,void 0!==r&&void 0!==r[u.key]&&(void 0===this.entriesByKey[u.key]?this.entriesByKey[u.key]=r[u.key]:_extends(this.entriesByKey[u.key]=r[u.key]))}}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}},{key:"setSelectionToolMode",value:function(e){if(null==this.store)throw new Error("store is null");return fromPromise_1(setSelectionToolModeCreatorP(new SET_SELECTION_TOOL_MODE({mode:e}),this.store.dispatch))}}]),t}();Map$2=__decorate([Watch({}),__metadata("design:paramtypes",[Object])],Map$2);var __extends$1z=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},BoundCallbackObservable=function(e){function t(t,r,n,o,i){e.call(this),this.callbackFunc=t,this.selector=r,this.args=n,this.context=o,this.scheduler=i}return __extends$1z(t,e),t.create=function(e,r,n){return void 0===r&&(r=void 0),function(){for(var o=[],i=0;i<arguments.length;i++)o[i-0]=arguments[i];return new t(e,r,o,this,n)}},t.prototype._subscribe=function(e){var r=this.callbackFunc,n=this.args,o=this.scheduler,i=this.subject;if(o)return o.schedule(t.dispatch,0,{source:this,subscriber:e,context:this.context});if(!i){i=this.subject=new AsyncSubject_1$1.AsyncSubject;var a=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=e.source,o=n.selector,i=n.subject;if(o){var a=tryCatch_1$1.tryCatch(o).apply(this,t);a===errorObject_1$1.errorObject?i.error(errorObject_1$1.errorObject.e):(i.next(a),i.complete())}else i.next(t.length<=1?t[0]:t),i.complete()};a.source=this,tryCatch_1$1.tryCatch(r).apply(this.context,n.concat(a))===errorObject_1$1.errorObject&&i.error(errorObject_1$1.errorObject.e)}return i.subscribe(e)},t.dispatch=function(e){var t=this,r=e.source,n=e.subscriber,o=e.context,i=r.callbackFunc,a=r.args,s=r.scheduler,c=r.subject;if(!c){c=r.subject=new AsyncSubject_1$1.AsyncSubject;var u=function e(){for(var r=[],n=0;n<arguments.length;n++)r[n-0]=arguments[n];var o=e.source,i=o.selector,a=o.subject;if(i){var c=tryCatch_1$1.tryCatch(i).apply(this,r);c===errorObject_1$1.errorObject?t.add(s.schedule(dispatchError$1,0,{err:errorObject_1$1.errorObject.e,subject:a})):t.add(s.schedule(dispatchNext$3,0,{value:c,subject:a}))}else{var u=r.length<=1?r[0]:r;t.add(s.schedule(dispatchNext$3,0,{value:u,subject:a}))}};u.source=r,tryCatch_1$1.tryCatch(i).apply(o,a.concat(u))===errorObject_1$1.errorObject&&c.error(errorObject_1$1.errorObject.e)}t.add(c.subscribe(n))},t}(Observable_1$1.Observable),BoundCallbackObservable_2=BoundCallbackObservable;function dispatchNext$3(e){var t=e.value,r=e.subject;r.next(t),r.complete()}function dispatchError$1(e){var t=e.err;e.subject.error(t)}var BoundCallbackObservable_1={BoundCallbackObservable:BoundCallbackObservable_2},BoundCallbackObservable$1={default:BoundCallbackObservable_1,__moduleExports:BoundCallbackObservable_1,BoundCallbackObservable:BoundCallbackObservable_2},BoundCallbackObservable_1$1=BoundCallbackObservable$1&&BoundCallbackObservable_1||BoundCallbackObservable$1,bindCallback_1=BoundCallbackObservable_1$1.BoundCallbackObservable.create,bindCallback={bindCallback:bindCallback_1},bindCallback$1={default:bindCallback,__moduleExports:bindCallback,bindCallback:bindCallback_1},bindCallback_1$1=bindCallback$1&&bindCallback||bindCallback$1;Observable_1$1.Observable.bindCallback=bindCallback_1$1.bindCallback;var __extends$1A=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},BoundNodeCallbackObservable=function(e){function t(t,r,n,o,i){e.call(this),this.callbackFunc=t,this.selector=r,this.args=n,this.context=o,this.scheduler=i}return __extends$1A(t,e),t.create=function(e,r,n){return void 0===r&&(r=void 0),function(){for(var o=[],i=0;i<arguments.length;i++)o[i-0]=arguments[i];return new t(e,r,o,this,n)}},t.prototype._subscribe=function(e){var t=this.callbackFunc,r=this.args,n=this.scheduler,o=this.subject;if(n)return n.schedule(dispatch,0,{source:this,subscriber:e,context:this.context});if(!o){o=this.subject=new AsyncSubject_1$1.AsyncSubject;var i=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=e.source,o=n.selector,i=n.subject,a=t.shift();if(a)i.error(a);else if(o){var s=tryCatch_1$1.tryCatch(o).apply(this,t);s===errorObject_1$1.errorObject?i.error(errorObject_1$1.errorObject.e):(i.next(s),i.complete())}else i.next(t.length<=1?t[0]:t),i.complete()};i.source=this,tryCatch_1$1.tryCatch(t).apply(this.context,r.concat(i))===errorObject_1$1.errorObject&&o.error(errorObject_1$1.errorObject.e)}return o.subscribe(e)},t}(Observable_1$1.Observable),BoundNodeCallbackObservable_2=BoundNodeCallbackObservable;function dispatch(e){var t=this,r=e.source,n=e.subscriber,o=e.context,i=r,a=i.callbackFunc,s=i.args,c=i.scheduler,u=r.subject;if(!u){u=r.subject=new AsyncSubject_1$1.AsyncSubject;var l=function e(){for(var r=[],n=0;n<arguments.length;n++)r[n-0]=arguments[n];var o=e.source,i=o.selector,a=o.subject,s=r.shift();if(s)t.add(c.schedule(dispatchError$2,0,{err:s,subject:a}));else if(i){var u=tryCatch_1$1.tryCatch(i).apply(this,r);u===errorObject_1$1.errorObject?t.add(c.schedule(dispatchError$2,0,{err:errorObject_1$1.errorObject.e,subject:a})):t.add(c.schedule(dispatchNext$4,0,{value:u,subject:a}))}else{var l=r.length<=1?r[0]:r;t.add(c.schedule(dispatchNext$4,0,{value:l,subject:a}))}};l.source=r,tryCatch_1$1.tryCatch(a).apply(o,s.concat(l))===errorObject_1$1.errorObject&&t.add(c.schedule(dispatchError$2,0,{err:errorObject_1$1.errorObject.e,subject:u}))}t.add(u.subscribe(n))}function dispatchNext$4(e){var t=e.value,r=e.subject;r.next(t),r.complete()}function dispatchError$2(e){var t=e.err;e.subject.error(t)}var BoundNodeCallbackObservable_1={BoundNodeCallbackObservable:BoundNodeCallbackObservable_2},BoundNodeCallbackObservable$1={default:BoundNodeCallbackObservable_1,__moduleExports:BoundNodeCallbackObservable_1,BoundNodeCallbackObservable:BoundNodeCallbackObservable_2},BoundNodeCallbackObservable_1$1=BoundNodeCallbackObservable$1&&BoundNodeCallbackObservable_1||BoundNodeCallbackObservable$1,bindNodeCallback_1=BoundNodeCallbackObservable_1$1.BoundNodeCallbackObservable.create,bindNodeCallback={bindNodeCallback:bindNodeCallback_1},bindNodeCallback$1={default:bindNodeCallback,__moduleExports:bindNodeCallback,bindNodeCallback:bindNodeCallback_1},bindNodeCallback_1$1=bindNodeCallback$1&&bindNodeCallback||bindNodeCallback$1;function combineLatest$3(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];var r=null,n=null;return isScheduler_1$1.isScheduler(e[e.length-1])&&(n=e.pop()),"function"==typeof e[e.length-1]&&(r=e.pop()),1===e.length&&isArray_1$1.isArray(e[0])&&(e=e[0]),new ArrayObservable_1$1.ArrayObservable(e,n).lift(new combineLatest_1$1.CombineLatestOperator(r))}Observable_1$1.Observable.bindNodeCallback=bindNodeCallback_1$1.bindNodeCallback;var combineLatest_3=combineLatest$3,combineLatest_2$1={combineLatest:combineLatest_3},combineLatest$4={default:combineLatest_2$1,__moduleExports:combineLatest_2$1,combineLatest:combineLatest_3},combineLatest_1$2=combineLatest$4&&combineLatest_2$1||combineLatest$4;Observable_1$1.Observable.combineLatest=combineLatest_1$2.combineLatest,Observable_1$1.Observable.concat=concat_2$1.concat;var __extends$1B=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},DeferObservable=function(e){function t(t){e.call(this),this.observableFactory=t}return __extends$1B(t,e),t.create=function(e){return new t(e)},t.prototype._subscribe=function(e){return new DeferSubscriber(e,this.observableFactory)},t}(Observable_1$1.Observable),DeferObservable_2=DeferObservable,DeferSubscriber=function(e){function t(t,r){e.call(this,t),this.factory=r,this.tryDefer()}return __extends$1B(t,e),t.prototype.tryDefer=function(){try{this._callFactory()}catch(e){this._error(e)}},t.prototype._callFactory=function(){var e=this.factory();e&&this.add(subscribeToResult_1$1.subscribeToResult(this,e))},t}(OuterSubscriber_1$1.OuterSubscriber),DeferObservable_1={DeferObservable:DeferObservable_2},DeferObservable$1={default:DeferObservable_1,__moduleExports:DeferObservable_1,DeferObservable:DeferObservable_2},DeferObservable_1$1=DeferObservable$1&&DeferObservable_1||DeferObservable$1,defer_1=DeferObservable_1$1.DeferObservable.create,defer$1={defer:defer_1},defer$2={default:defer$1,__moduleExports:defer$1,defer:defer_1},defer_1$1=defer$2&&defer$1||defer$2;Observable_1$1.Observable.defer=defer_1$1.defer;var empty_1=EmptyObservable_1$1.EmptyObservable.create,empty$2={empty:empty_1},empty$3={default:empty$2,__moduleExports:empty$2,empty:empty_1},empty_1$1=empty$3&&empty$2||empty$3;Observable_1$1.Observable.empty=empty_1$1.empty;var __extends$1C=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ForkJoinObservable=function(e){function t(t,r){e.call(this),this.sources=t,this.resultSelector=r}return __extends$1C(t,e),t.create=function(){for(var e=[],r=0;r<arguments.length;r++)e[r-0]=arguments[r];if(null===e||0===arguments.length)return new EmptyObservable_1$1.EmptyObservable;var n=null;return"function"==typeof e[e.length-1]&&(n=e.pop()),1===e.length&&isArray_1$1.isArray(e[0])&&(e=e[0]),0===e.length?new EmptyObservable_1$1.EmptyObservable:new t(e,n)},t.prototype._subscribe=function(e){return new ForkJoinSubscriber(e,this.sources,this.resultSelector)},t}(Observable_1$1.Observable),ForkJoinObservable_2=ForkJoinObservable,ForkJoinSubscriber=function(e){function t(t,r,n){e.call(this,t),this.sources=r,this.resultSelector=n,this.completed=0,this.haveValues=0;var o=r.length;this.total=o,this.values=new Array(o);for(var i=0;i<o;i++){var a=r[i],s=subscribeToResult_1$1.subscribeToResult(this,a,null,i);s&&(s.outerIndex=i,this.add(s))}}return __extends$1C(t,e),t.prototype.notifyNext=function(e,t,r,n,o){this.values[r]=t,o._hasValue||(o._hasValue=!0,this.haveValues++)},t.prototype.notifyComplete=function(e){var t=this.destination,r=this.haveValues,n=this.resultSelector,o=this.values,i=o.length;if(e._hasValue){if(this.completed++,this.completed===i){if(r===i){var a=n?n.apply(this,o):o;t.next(a)}t.complete()}}else t.complete()},t}(OuterSubscriber_1$1.OuterSubscriber),ForkJoinObservable_1={ForkJoinObservable:ForkJoinObservable_2},ForkJoinObservable$1={default:ForkJoinObservable_1,__moduleExports:ForkJoinObservable_1,ForkJoinObservable:ForkJoinObservable_2},ForkJoinObservable_1$1=ForkJoinObservable$1&&ForkJoinObservable_1||ForkJoinObservable$1,forkJoin_1=ForkJoinObservable_1$1.ForkJoinObservable.create,forkJoin={forkJoin:forkJoin_1},forkJoin$1={default:forkJoin,__moduleExports:forkJoin,forkJoin:forkJoin_1},forkJoin_1$1=forkJoin$1&&forkJoin||forkJoin$1;Observable_1$1.Observable.forkJoin=forkJoin_1$1.forkJoin,Observable_1$1.Observable.from=from_1$1.from;var __extends$1D=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},toString$3=Object.prototype.toString;function isNodeStyleEventEmitter(e){return!!e&&"function"==typeof e.addListener&&"function"==typeof e.removeListener}function isJQueryStyleEventEmitter(e){return!!e&&"function"==typeof e.on&&"function"==typeof e.off}function isNodeList(e){return!!e&&"[object NodeList]"===toString$3.call(e)}function isHTMLCollection(e){return!!e&&"[object HTMLCollection]"===toString$3.call(e)}function isEventTarget(e){return!!e&&"function"==typeof e.addEventListener&&"function"==typeof e.removeEventListener}var FromEventObservable=function(e){function t(t,r,n,o){e.call(this),this.sourceObj=t,this.eventName=r,this.selector=n,this.options=o}return __extends$1D(t,e),t.create=function(e,r,n,o){return isFunction_1$1.isFunction(n)&&(o=n,n=void 0),new t(e,r,o,n)},t.setupSubscription=function(e,r,n,o,i){var a;if(isNodeList(e)||isHTMLCollection(e))for(var s=0,c=e.length;s<c;s++)t.setupSubscription(e[s],r,n,o,i);else if(isEventTarget(e)){var u=e;e.addEventListener(r,n,i),a=function(){return u.removeEventListener(r,n,i)}}else if(isJQueryStyleEventEmitter(e)){var l=e;e.on(r,n),a=function(){return l.off(r,n)}}else{if(!isNodeStyleEventEmitter(e))throw new TypeError("Invalid event target");var p=e;e.addListener(r,n),a=function(){return p.removeListener(r,n)}}o.add(new Subscription_1$1.Subscription(a))},t.prototype._subscribe=function(e){var r=this.sourceObj,n=this.eventName,o=this.options,i=this.selector,a=i?function(){for(var t=[],r=0;r<arguments.length;r++)t[r-0]=arguments[r];var n=tryCatch_1$1.tryCatch(i).apply(void 0,t);n===errorObject_1$1.errorObject?e.error(errorObject_1$1.errorObject.e):e.next(n)}:function(t){return e.next(t)};t.setupSubscription(r,n,a,e,o)},t}(Observable_1$1.Observable),FromEventObservable_2=FromEventObservable,FromEventObservable_1={FromEventObservable:FromEventObservable_2},FromEventObservable$1={default:FromEventObservable_1,__moduleExports:FromEventObservable_1,FromEventObservable:FromEventObservable_2},FromEventObservable_1$1=FromEventObservable$1&&FromEventObservable_1||FromEventObservable$1,fromEvent_1=FromEventObservable_1$1.FromEventObservable.create,fromEvent={fromEvent:fromEvent_1},fromEvent$1={default:fromEvent,__moduleExports:fromEvent,fromEvent:fromEvent_1},fromEvent_1$1=fromEvent$1&&fromEvent||fromEvent$1;Observable_1$1.Observable.fromEvent=fromEvent_1$1.fromEvent;var __extends$1E=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},FromEventPatternObservable=function(e){function t(t,r,n){e.call(this),this.addHandler=t,this.removeHandler=r,this.selector=n}return __extends$1E(t,e),t.create=function(e,r,n){return new t(e,r,n)},t.prototype._subscribe=function(e){var t=this,r=this.removeHandler,n=this.selector?function(){for(var r=[],n=0;n<arguments.length;n++)r[n-0]=arguments[n];t._callSelector(e,r)}:function(t){e.next(t)},o=this._callAddHandler(n,e);isFunction_1$1.isFunction(r)&&e.add(new Subscription_1$1.Subscription(function(){r(n,o)}))},t.prototype._callSelector=function(e,t){try{var r=this.selector.apply(this,t);e.next(r)}catch(t){e.error(t)}},t.prototype._callAddHandler=function(e,t){try{return this.addHandler(e)||null}catch(e){t.error(e)}},t}(Observable_1$1.Observable),FromEventPatternObservable_2=FromEventPatternObservable,FromEventPatternObservable_1={FromEventPatternObservable:FromEventPatternObservable_2},FromEventPatternObservable$1={default:FromEventPatternObservable_1,__moduleExports:FromEventPatternObservable_1,FromEventPatternObservable:FromEventPatternObservable_2},FromEventPatternObservable_1$1=FromEventPatternObservable$1&&FromEventPatternObservable_1||FromEventPatternObservable$1,fromEventPattern_1=FromEventPatternObservable_1$1.FromEventPatternObservable.create,fromEventPattern={fromEventPattern:fromEventPattern_1},fromEventPattern$1={default:fromEventPattern,__moduleExports:fromEventPattern,fromEventPattern:fromEventPattern_1},fromEventPattern_1$1=fromEventPattern$1&&fromEventPattern||fromEventPattern$1;Observable_1$1.Observable.fromEventPattern=fromEventPattern_1$1.fromEventPattern;var fromPromise_1$1=fromPromise$1&&fromPromise||fromPromise$1;Observable_1$1.Observable.fromPromise=fromPromise_1$1.fromPromise;var __extends$1F=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},selfSelector=function(e){return e},GenerateObservable=function(e){function t(t,r,n,o,i){e.call(this),this.initialState=t,this.condition=r,this.iterate=n,this.resultSelector=o,this.scheduler=i}return __extends$1F(t,e),t.create=function(e,r,n,o,i){return 1==arguments.length?new t(e.initialState,e.condition,e.iterate,e.resultSelector||selfSelector,e.scheduler):void 0===o||isScheduler_1$1.isScheduler(o)?new t(e,r,n,selfSelector,o):new t(e,r,n,o,i)},t.prototype._subscribe=function(e){var r=this.initialState;if(this.scheduler)return this.scheduler.schedule(t.dispatch,0,{subscriber:e,iterate:this.iterate,condition:this.condition,resultSelector:this.resultSelector,state:r});for(var n=this.condition,o=this.resultSelector,i=this.iterate;;){if(n){var a=void 0;try{a=n(r)}catch(t){return void e.error(t)}if(!a){e.complete();break}}var s=void 0;try{s=o(r)}catch(t){return void e.error(t)}if(e.next(s),e.closed)break;try{r=i(r)}catch(t){return void e.error(t)}}},t.dispatch=function(e){var t=e.subscriber,r=e.condition;if(!t.closed){if(e.needIterate)try{e.state=e.iterate(e.state)}catch(e){return void t.error(e)}else e.needIterate=!0;if(r){var n=void 0;try{n=r(e.state)}catch(e){return void t.error(e)}if(!n)return void t.complete();if(t.closed)return}var o;try{o=e.resultSelector(e.state)}catch(e){return void t.error(e)}if(!t.closed&&(t.next(o),!t.closed))return this.schedule(e)}},t}(Observable_1$1.Observable),GenerateObservable_2=GenerateObservable,GenerateObservable_1={GenerateObservable:GenerateObservable_2},GenerateObservable$1={default:GenerateObservable_1,__moduleExports:GenerateObservable_1,GenerateObservable:GenerateObservable_2},GenerateObservable_1$1=GenerateObservable$1&&GenerateObservable_1||GenerateObservable$1,generate_1=GenerateObservable_1$1.GenerateObservable.create,generate={generate:generate_1},generate$1={default:generate,__moduleExports:generate,generate:generate_1},generate_1$1=generate$1&&generate||generate$1;Observable_1$1.Observable.generate=generate_1$1.generate;var __extends$1G=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},IfObservable=function(e){function t(t,r,n){e.call(this),this.condition=t,this.thenSource=r,this.elseSource=n}return __extends$1G(t,e),t.create=function(e,r,n){return new t(e,r,n)},t.prototype._subscribe=function(e){var t=this.condition,r=this.thenSource,n=this.elseSource;return new IfSubscriber(e,t,r,n)},t}(Observable_1$1.Observable),IfObservable_2=IfObservable,IfSubscriber=function(e){function t(t,r,n,o){e.call(this,t),this.condition=r,this.thenSource=n,this.elseSource=o,this.tryIf()}return __extends$1G(t,e),t.prototype.tryIf=function(){var e=this.condition,t=this.thenSource,r=this.elseSource;try{var n=e()?t:r;n?this.add(subscribeToResult_1$1.subscribeToResult(this,n)):this._complete()}catch(e){this._error(e)}},t}(OuterSubscriber_1$1.OuterSubscriber),IfObservable_1={IfObservable:IfObservable_2},IfObservable$1={default:IfObservable_1,__moduleExports:IfObservable_1,IfObservable:IfObservable_2},IfObservable_1$1=IfObservable$1&&IfObservable_1||IfObservable$1,_if_1=IfObservable_1$1.IfObservable.create,_if={_if:_if_1},_if$1={default:_if,__moduleExports:_if,_if:_if_1},if_1=_if$1&&_if||_if$1;Observable_1$1.Observable.if=if_1._if;var __extends$1H=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},IntervalObservable=function(e){function t(t,r){void 0===t&&(t=0),void 0===r&&(r=async_1$1.async),e.call(this),this.period=t,this.scheduler=r,(!isNumeric_1$1.isNumeric(t)||t<0)&&(this.period=0),r&&"function"==typeof r.schedule||(this.scheduler=async_1$1.async)}return __extends$1H(t,e),t.create=function(e,r){return void 0===e&&(e=0),void 0===r&&(r=async_1$1.async),new t(e,r)},t.dispatch=function(e){var t=e.index,r=e.subscriber,n=e.period;r.next(t),r.closed||(e.index+=1,this.schedule(e,n))},t.prototype._subscribe=function(e){var r=this.period,n=this.scheduler;e.add(n.schedule(t.dispatch,r,{index:0,subscriber:e,period:r}))},t}(Observable_1$1.Observable),IntervalObservable_2=IntervalObservable,IntervalObservable_1={IntervalObservable:IntervalObservable_2},IntervalObservable$1={default:IntervalObservable_1,__moduleExports:IntervalObservable_1,IntervalObservable:IntervalObservable_2},IntervalObservable_1$1=IntervalObservable$1&&IntervalObservable_1||IntervalObservable$1,interval_1=IntervalObservable_1$1.IntervalObservable.create,interval={interval:interval_1},interval$1={default:interval,__moduleExports:interval,interval:interval_1},interval_1$1=interval$1&&interval||interval$1;Observable_1$1.Observable.interval=interval_1$1.interval,Observable_1$1.Observable.merge=merge_2$1.merge,Observable_1$1.Observable.race=race_2$1.race;var __extends$1I=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},NeverObservable=function(e){function t(){e.call(this)}return __extends$1I(t,e),t.create=function(){return new t},t.prototype._subscribe=function(e){noop_1$1.noop()},t}(Observable_1$1.Observable),NeverObservable_2=NeverObservable,NeverObservable_1={NeverObservable:NeverObservable_2},NeverObservable$1={default:NeverObservable_1,__moduleExports:NeverObservable_1,NeverObservable:NeverObservable_2},NeverObservable_1$1=NeverObservable$1&&NeverObservable_1||NeverObservable$1,never_1=NeverObservable_1$1.NeverObservable.create,never={never:never_1},never$1={default:never,__moduleExports:never,never:never_1},never_1$1=never$1&&never||never$1;Observable_1$1.Observable.never=never_1$1.never,Observable_1$1.Observable.of=of_1$1.of;var onErrorResumeNext_2$1=onErrorResumeNext_1$1.onErrorResumeNextStatic,onErrorResumeNext$3={onErrorResumeNext:onErrorResumeNext_2$1},onErrorResumeNext$4={default:onErrorResumeNext$3,__moduleExports:onErrorResumeNext$3,onErrorResumeNext:onErrorResumeNext_2$1},onErrorResumeNext_1$2=onErrorResumeNext$4&&onErrorResumeNext$3||onErrorResumeNext$4;Observable_1$1.Observable.onErrorResumeNext=onErrorResumeNext_1$2.onErrorResumeNext;var __extends$1J=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function dispatch$1(e){var t=e.obj,r=e.keys,n=e.length,o=e.index,i=e.subscriber;if(o!==n){var a=r[o];i.next([a,t[a]]),e.index=o+1,this.schedule(e)}else i.complete()}var PairsObservable=function(e){function t(t,r){e.call(this),this.obj=t,this.scheduler=r,this.keys=Object.keys(t)}return __extends$1J(t,e),t.create=function(e,r){return new t(e,r)},t.prototype._subscribe=function(e){var t=this.keys,r=this.scheduler,n=t.length;if(r)return r.schedule(dispatch$1,0,{obj:this.obj,keys:t,length:n,index:0,subscriber:e});for(var o=0;o<n;o++){var i=t[o];e.next([i,this.obj[i]])}e.complete()},t}(Observable_1$1.Observable),PairsObservable_2=PairsObservable,PairsObservable_1={PairsObservable:PairsObservable_2},PairsObservable$1={default:PairsObservable_1,__moduleExports:PairsObservable_1,PairsObservable:PairsObservable_2},PairsObservable_1$1=PairsObservable$1&&PairsObservable_1||PairsObservable$1,pairs_1=PairsObservable_1$1.PairsObservable.create,pairs={pairs:pairs_1},pairs$1={default:pairs,__moduleExports:pairs,pairs:pairs_1},pairs_1$1=pairs$1&&pairs||pairs$1;Observable_1$1.Observable.pairs=pairs_1$1.pairs;var __extends$1K=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},RangeObservable=function(e){function t(t,r,n){e.call(this),this.start=t,this._count=r,this.scheduler=n}return __extends$1K(t,e),t.create=function(e,r,n){return void 0===e&&(e=0),void 0===r&&(r=0),new t(e,r,n)},t.dispatch=function(e){var t=e.start,r=e.index,n=e.count,o=e.subscriber;r>=n?o.complete():(o.next(t),o.closed||(e.index=r+1,e.start=t+1,this.schedule(e)))},t.prototype._subscribe=function(e){var r=0,n=this.start,o=this._count,i=this.scheduler;if(i)return i.schedule(t.dispatch,0,{index:r,count:o,start:n,subscriber:e});for(;;){if(r++>=o){e.complete();break}if(e.next(n++),e.closed)break}},t}(Observable_1$1.Observable),RangeObservable_2=RangeObservable,RangeObservable_1={RangeObservable:RangeObservable_2},RangeObservable$1={default:RangeObservable_1,__moduleExports:RangeObservable_1,RangeObservable:RangeObservable_2},RangeObservable_1$1=RangeObservable$1&&RangeObservable_1||RangeObservable$1,range_1=RangeObservable_1$1.RangeObservable.create,range={range:range_1},range$1={default:range,__moduleExports:range,range:range_1},range_1$1=range$1&&range||range$1;Observable_1$1.Observable.range=range_1$1.range;var __extends$1L=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},UsingObservable=function(e){function t(t,r){e.call(this),this.resourceFactory=t,this.observableFactory=r}return __extends$1L(t,e),t.create=function(e,r){return new t(e,r)},t.prototype._subscribe=function(e){var t,r=this.resourceFactory,n=this.observableFactory;try{return t=r(),new UsingSubscriber(e,t,n)}catch(t){e.error(t)}},t}(Observable_1$1.Observable),UsingObservable_2=UsingObservable,UsingSubscriber=function(e){function t(t,r,n){e.call(this,t),this.resource=r,this.observableFactory=n,t.add(r),this.tryUse()}return __extends$1L(t,e),t.prototype.tryUse=function(){try{var e=this.observableFactory.call(this,this.resource);e&&this.add(subscribeToResult_1$1.subscribeToResult(this,e))}catch(e){this._error(e)}},t}(OuterSubscriber_1$1.OuterSubscriber),UsingObservable_1={UsingObservable:UsingObservable_2},UsingObservable$1={default:UsingObservable_1,__moduleExports:UsingObservable_1,UsingObservable:UsingObservable_2},UsingObservable_1$1=UsingObservable$1&&UsingObservable_1||UsingObservable$1,using_1=UsingObservable_1$1.UsingObservable.create,using={using:using_1},using$1={default:using,__moduleExports:using,using:using_1},using_1$1=using$1&&using||using$1;Observable_1$1.Observable.using=using_1$1.using;var __extends$1M=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ErrorObservable=function(e){function t(t,r){e.call(this),this.error=t,this.scheduler=r}return __extends$1M(t,e),t.create=function(e,r){return new t(e,r)},t.dispatch=function(e){var t=e.error;e.subscriber.error(t)},t.prototype._subscribe=function(e){var r=this.error,n=this.scheduler;if(e.syncErrorThrowable=!0,n)return n.schedule(t.dispatch,0,{error:r,subscriber:e});e.error(r)},t}(Observable_1$1.Observable),ErrorObservable_2=ErrorObservable,ErrorObservable_1={ErrorObservable:ErrorObservable_2},ErrorObservable$1={default:ErrorObservable_1,__moduleExports:ErrorObservable_1,ErrorObservable:ErrorObservable_2},ErrorObservable_1$1=ErrorObservable$1&&ErrorObservable_1||ErrorObservable$1,_throw_1=ErrorObservable_1$1.ErrorObservable.create,_throw={_throw:_throw_1},_throw$1={default:_throw,__moduleExports:_throw,_throw:_throw_1},throw_1=_throw$1&&_throw||_throw$1;Observable_1$1.Observable.throw=throw_1._throw,Observable_1$1.Observable.timer=timer_1$1.timer;var zip_2$1=zip_1$1.zipStatic,zip$3={zip:zip_2$1},zip$4={default:zip$3,__moduleExports:zip$3,zip:zip_2$1},zip_1$2=zip$4&&zip$3||zip$4;Observable_1$1.Observable.zip=zip_1$2.zip;var __extends$1N=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)};function getCORSRequest(){if(root_1$1.root.XMLHttpRequest)return new root_1$1.root.XMLHttpRequest;if(root_1$1.root.XDomainRequest)return new root_1$1.root.XDomainRequest;throw new Error("CORS is not supported by your browser")}function getXMLHttpRequest(){if(root_1$1.root.XMLHttpRequest)return new root_1$1.root.XMLHttpRequest;var e=void 0;try{for(var t=["Msxml2.XMLHTTP","Microsoft.XMLHTTP","Msxml2.XMLHTTP.4.0"],r=0;r<3;r++)try{if(e=t[r],new root_1$1.root.ActiveXObject(e))break}catch(e){}return new root_1$1.root.ActiveXObject(e)}catch(e){throw new Error("XMLHttpRequest is not supported by your browser")}}function ajaxGet(e,t){return void 0===t&&(t=null),new AjaxObservable({method:"GET",url:e,headers:t})}var ajaxGet_1=ajaxGet;function ajaxPost(e,t,r){return new AjaxObservable({method:"POST",url:e,body:t,headers:r})}var ajaxPost_1=ajaxPost;function ajaxDelete(e,t){return new AjaxObservable({method:"DELETE",url:e,headers:t})}var ajaxDelete_1=ajaxDelete;function ajaxPut(e,t,r){return new AjaxObservable({method:"PUT",url:e,body:t,headers:r})}var ajaxPut_1=ajaxPut;function ajaxPatch(e,t,r){return new AjaxObservable({method:"PATCH",url:e,body:t,headers:r})}var ajaxPatch_1=ajaxPatch,mapResponse=map_1$1.map(function(e,t){return e.response});function ajaxGetJSON(e,t){return mapResponse(new AjaxObservable({method:"GET",url:e,responseType:"json",headers:t}))}var ajaxGetJSON_1=ajaxGetJSON,AjaxObservable=function(e){function t(t){e.call(this);var r={async:!0,createXHR:function(){return this.crossDomain?getCORSRequest.call(this):getXMLHttpRequest()},crossDomain:!1,withCredentials:!1,headers:{},method:"GET",responseType:"json",timeout:0};if("string"==typeof t)r.url=t;else for(var n in t)t.hasOwnProperty(n)&&(r[n]=t[n]);this.request=r}return __extends$1N(t,e),t.prototype._subscribe=function(e){return new AjaxSubscriber(e,this.request)},t.create=function(){var e=function(e){return new t(e)};return e.get=ajaxGet,e.post=ajaxPost,e.delete=ajaxDelete,e.put=ajaxPut,e.patch=ajaxPatch,e.getJSON=ajaxGetJSON,e}(),t}(Observable_1$1.Observable),AjaxObservable_2=AjaxObservable,AjaxSubscriber=function(e){function t(t,r){e.call(this,t),this.request=r,this.done=!1;var n=r.headers=r.headers||{};r.crossDomain||n["X-Requested-With"]||(n["X-Requested-With"]="XMLHttpRequest"),"Content-Type"in n||root_1$1.root.FormData&&r.body instanceof root_1$1.root.FormData||void 0===r.body||(n["Content-Type"]="application/x-www-form-urlencoded; charset=UTF-8"),r.body=this.serializeBody(r.body,r.headers["Content-Type"]),this.send()}return __extends$1N(t,e),t.prototype.next=function(e){this.done=!0;var t=this.xhr,r=this.request,n=this.destination,o=new AjaxResponse(e,t,r);n.next(o)},t.prototype.send=function(){var e=this.request,t=this.request,r=t.user,n=t.method,o=t.url,i=t.async,a=t.password,s=t.headers,c=t.body,u=e.createXHR,l=tryCatch_1$1.tryCatch(u).call(e);if(l===errorObject_1$1.errorObject)this.error(errorObject_1$1.errorObject.e);else{this.xhr=l,this.setupEvents(l,e);if((r?tryCatch_1$1.tryCatch(l.open).call(l,n,o,i,r,a):tryCatch_1$1.tryCatch(l.open).call(l,n,o,i))===errorObject_1$1.errorObject)return this.error(errorObject_1$1.errorObject.e),null;if(i&&(l.timeout=e.timeout,l.responseType=e.responseType),"withCredentials"in l&&(l.withCredentials=!!e.withCredentials),this.setHeaders(l,s),(c?tryCatch_1$1.tryCatch(l.send).call(l,c):tryCatch_1$1.tryCatch(l.send).call(l))===errorObject_1$1.errorObject)return this.error(errorObject_1$1.errorObject.e),null}return l},t.prototype.serializeBody=function(e,t){if(!e||"string"==typeof e)return e;if(root_1$1.root.FormData&&e instanceof root_1$1.root.FormData)return e;if(t){var r=t.indexOf(";");-1!==r&&(t=t.substring(0,r))}switch(t){case"application/x-www-form-urlencoded":return Object.keys(e).map(function(t){return encodeURIComponent(t)+"="+encodeURIComponent(e[t])}).join("&");case"application/json":return JSON.stringify(e);default:return e}},t.prototype.setHeaders=function(e,t){for(var r in t)t.hasOwnProperty(r)&&e.setRequestHeader(r,t[r])},t.prototype.setupEvents=function(e,t){var r=t.progressSubscriber;function n(e){var t=n,r=t.subscriber,o=t.progressSubscriber,i=t.request;o&&o.error(e),r.error(new AjaxTimeoutError(this,i))}if(e.ontimeout=n,n.request=t,n.subscriber=this,n.progressSubscriber=r,e.upload&&"withCredentials"in e){var o,i;if(r)o=function(e){o.progressSubscriber.next(e)},root_1$1.root.XDomainRequest?e.onprogress=o:e.upload.onprogress=o,o.progressSubscriber=r;i=function(e){var t=i,r=t.progressSubscriber,n=t.subscriber,o=t.request;r&&r.error(e),n.error(new AjaxError("ajax error",this,o))},e.onerror=i,i.request=t,i.subscriber=this,i.progressSubscriber=r}function a(e){var t=a,r=t.subscriber,n=t.progressSubscriber,o=t.request;if(4===this.readyState){var i=1223===this.status?204:this.status,s="text"===this.responseType?this.response||this.responseText:this.response;0===i&&(i=s?200:0),200<=i&&i<300?(n&&n.complete(),r.next(e),r.complete()):(n&&n.error(e),r.error(new AjaxError("ajax error "+i,this,o)))}}e.onreadystatechange=a,a.subscriber=this,a.progressSubscriber=r,a.request=t},t.prototype.unsubscribe=function(){var t=this.done,r=this.xhr;!t&&r&&4!==r.readyState&&"function"==typeof r.abort&&r.abort(),e.prototype.unsubscribe.call(this)},t}(Subscriber_1$1.Subscriber),AjaxSubscriber_1=AjaxSubscriber,AjaxResponse=function(e,t,r){this.originalEvent=e,this.xhr=t,this.request=r,this.status=t.status,this.responseType=t.responseType||r.responseType,this.response=parseXhrResponse(this.responseType,t)},AjaxResponse_1=AjaxResponse,AjaxError=function(e){function t(t,r,n){e.call(this,t),this.message=t,this.xhr=r,this.request=n,this.status=r.status,this.responseType=r.responseType||n.responseType,this.response=parseXhrResponse(this.responseType,r)}return __extends$1N(t,e),t}(Error),AjaxError_1=AjaxError;function parseXhrResponse(e,t){switch(e){case"json":return"response"in t?t.responseType?t.response:JSON.parse(t.response||t.responseText||"null"):JSON.parse(t.responseText||"null");case"xml":return t.responseXML;case"text":default:return"response"in t?t.response:t.responseText}}var AjaxTimeoutError=function(e){function t(t,r){e.call(this,"ajax timeout",t,r)}return __extends$1N(t,e),t}(AjaxError),AjaxTimeoutError_1=AjaxTimeoutError,AjaxObservable_1={ajaxGet:ajaxGet_1,ajaxPost:ajaxPost_1,ajaxDelete:ajaxDelete_1,ajaxPut:ajaxPut_1,ajaxPatch:ajaxPatch_1,ajaxGetJSON:ajaxGetJSON_1,AjaxObservable:AjaxObservable_2,AjaxSubscriber:AjaxSubscriber_1,AjaxResponse:AjaxResponse_1,AjaxError:AjaxError_1,AjaxTimeoutError:AjaxTimeoutError_1},AjaxObservable$1={default:AjaxObservable_1,__moduleExports:AjaxObservable_1,ajaxGet:ajaxGet_1,ajaxPost:ajaxPost_1,ajaxDelete:ajaxDelete_1,ajaxPut:ajaxPut_1,ajaxPatch:ajaxPatch_1,ajaxGetJSON:ajaxGetJSON_1,AjaxObservable:AjaxObservable_2,AjaxSubscriber:AjaxSubscriber_1,AjaxResponse:AjaxResponse_1,AjaxError:AjaxError_1,AjaxTimeoutError:AjaxTimeoutError_1},AjaxObservable_1$1=AjaxObservable$1&&AjaxObservable_1||AjaxObservable$1,ajax_1=AjaxObservable_1$1.AjaxObservable.create,ajax={ajax:ajax_1},ajax$1={default:ajax,__moduleExports:ajax,ajax:ajax_1},ajax_1$1=ajax$1&&ajax||ajax$1;function assignImpl(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];for(var n=t.length,o=0;o<n;o++){var i=t[o];for(var a in i)i.hasOwnProperty(a)&&(e[a]=i[a])}return e}Observable_1$1.Observable.ajax=ajax_1$1.ajax;var assignImpl_1=assignImpl;function getAssign(e){return e.Object.assign||assignImpl}var getAssign_1=getAssign,assign_1=getAssign(root_1$1.root),assign$1={assignImpl:assignImpl_1,getAssign:getAssign_1,assign:assign_1},assign$2={default:assign$1,__moduleExports:assign$1,assignImpl:assignImpl_1,getAssign:getAssign_1,assign:assign_1},assign_1$1=assign$2&&assign$1||assign$2,__extends$1O=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},WebSocketSubject=function(e){function t(t,r){if(t instanceof Observable_1$1.Observable)e.call(this,r,t);else{if(e.call(this),this.WebSocketCtor=root_1$1.root.WebSocket,this._output=new Subject_1$1.Subject,"string"==typeof t?this.url=t:assign_1$1.assign(this,t),!this.WebSocketCtor)throw new Error("no WebSocket constructor can be found");this.destination=new ReplaySubject_1$1.ReplaySubject}}return __extends$1O(t,e),t.prototype.resultSelector=function(e){return JSON.parse(e.data)},t.create=function(e){return new t(e)},t.prototype.lift=function(e){var r=new t(this,this.destination);return r.operator=e,r},t.prototype._resetState=function(){this.socket=null,this.source||(this.destination=new ReplaySubject_1$1.ReplaySubject),this._output=new Subject_1$1.Subject},t.prototype.multiplex=function(e,t,r){var n=this;return new Observable_1$1.Observable(function(o){var i=tryCatch_1$1.tryCatch(e)();i===errorObject_1$1.errorObject?o.error(errorObject_1$1.errorObject.e):n.next(i);var a=n.subscribe(function(e){var t=tryCatch_1$1.tryCatch(r)(e);t===errorObject_1$1.errorObject?o.error(errorObject_1$1.errorObject.e):t&&o.next(e)},function(e){return o.error(e)},function(){return o.complete()});return function(){var e=tryCatch_1$1.tryCatch(t)();e===errorObject_1$1.errorObject?o.error(errorObject_1$1.errorObject.e):n.next(e),a.unsubscribe()}})},t.prototype._connectSocket=function(){var e=this,t=this.WebSocketCtor,r=this._output,n=null;try{n=this.protocol?new t(this.url,this.protocol):new t(this.url),this.socket=n,this.binaryType&&(this.socket.binaryType=this.binaryType)}catch(e){return void r.error(e)}var o=new Subscription_1$1.Subscription(function(){e.socket=null,n&&1===n.readyState&&n.close()});n.onopen=function(t){var i=e.openObserver;i&&i.next(t);var a=e.destination;e.destination=Subscriber_1$1.Subscriber.create(function(e){return 1===n.readyState&&n.send(e)},function(t){var o=e.closingObserver;o&&o.next(void 0),t&&t.code?n.close(t.code,t.reason):r.error(new TypeError("WebSocketSubject.error must be called with an object with an error code, and an optional reason: { code: number, reason: string }")),e._resetState()},function(){var t=e.closingObserver;t&&t.next(void 0),n.close(),e._resetState()}),a&&a instanceof ReplaySubject_1$1.ReplaySubject&&o.add(a.subscribe(e.destination))},n.onerror=function(t){e._resetState(),r.error(t)},n.onclose=function(t){e._resetState();var n=e.closeObserver;n&&n.next(t),t.wasClean?r.complete():r.error(t)},n.onmessage=function(t){var n=tryCatch_1$1.tryCatch(e.resultSelector)(t);n===errorObject_1$1.errorObject?r.error(errorObject_1$1.errorObject.e):r.next(n)}},t.prototype._subscribe=function(e){var t=this,r=this.source;if(r)return r.subscribe(e);this.socket||this._connectSocket();var n=new Subscription_1$1.Subscription;return n.add(this._output.subscribe(e)),n.add(function(){var e=t.socket;0===t._output.observers.length&&(e&&1===e.readyState&&e.close(),t._resetState())}),n},t.prototype.unsubscribe=function(){var t=this.source,r=this.socket;r&&1===r.readyState&&(r.close(),this._resetState()),e.prototype.unsubscribe.call(this),t||(this.destination=new ReplaySubject_1$1.ReplaySubject)},t}(Subject_1$1.AnonymousSubject),WebSocketSubject_2=WebSocketSubject,WebSocketSubject_1={WebSocketSubject:WebSocketSubject_2},WebSocketSubject$1={default:WebSocketSubject_1,__moduleExports:WebSocketSubject_1,WebSocketSubject:WebSocketSubject_2},WebSocketSubject_1$1=WebSocketSubject$1&&WebSocketSubject_1||WebSocketSubject$1,webSocket_1=WebSocketSubject_1$1.WebSocketSubject.create,webSocket={webSocket:webSocket_1},webSocket$1={default:webSocket,__moduleExports:webSocket,webSocket:webSocket_1},webSocket_1$1=webSocket$1&&webSocket||webSocket$1;function buffer$3(e){return buffer_1$1.buffer(e)(this)}Observable_1$1.Observable.webSocket=webSocket_1$1.webSocket;var buffer_3=buffer$3,buffer_2$1={buffer:buffer_3},buffer$4={default:buffer_2$1,__moduleExports:buffer_2$1,buffer:buffer_3},buffer_1$2=buffer$4&&buffer_2$1||buffer$4;function bufferCount$3(e,t){return void 0===t&&(t=null),bufferCount_1$1.bufferCount(e,t)(this)}Observable_1$1.Observable.prototype.buffer=buffer_1$2.buffer;var bufferCount_3=bufferCount$3,bufferCount_2$1={bufferCount:bufferCount_3},bufferCount$4={default:bufferCount_2$1,__moduleExports:bufferCount_2$1,bufferCount:bufferCount_3},bufferCount_1$2=bufferCount$4&&bufferCount_2$1||bufferCount$4;function bufferTime$3(e){var t=arguments.length,r=async_1$1.async;isScheduler_1$1.isScheduler(arguments[arguments.length-1])&&(r=arguments[arguments.length-1],t--);var n=null;t>=2&&(n=arguments[1]);var o=Number.POSITIVE_INFINITY;return t>=3&&(o=arguments[2]),bufferTime_1$1.bufferTime(e,n,o,r)(this)}Observable_1$1.Observable.prototype.bufferCount=bufferCount_1$2.bufferCount;var bufferTime_3=bufferTime$3,bufferTime_2$1={bufferTime:bufferTime_3},bufferTime$4={default:bufferTime_2$1,__moduleExports:bufferTime_2$1,bufferTime:bufferTime_3},bufferTime_1$2=bufferTime$4&&bufferTime_2$1||bufferTime$4;function bufferToggle$3(e,t){return bufferToggle_1$1.bufferToggle(e,t)(this)}Observable_1$1.Observable.prototype.bufferTime=bufferTime_1$2.bufferTime;var bufferToggle_3=bufferToggle$3,bufferToggle_2$1={bufferToggle:bufferToggle_3},bufferToggle$4={default:bufferToggle_2$1,__moduleExports:bufferToggle_2$1,bufferToggle:bufferToggle_3},bufferToggle_1$2=bufferToggle$4&&bufferToggle_2$1||bufferToggle$4;function bufferWhen$3(e){return bufferWhen_1$1.bufferWhen(e)(this)}Observable_1$1.Observable.prototype.bufferToggle=bufferToggle_1$2.bufferToggle;var bufferWhen_3=bufferWhen$3,bufferWhen_2$1={bufferWhen:bufferWhen_3},bufferWhen$4={default:bufferWhen_2$1,__moduleExports:bufferWhen_2$1,bufferWhen:bufferWhen_3},bufferWhen_1$2=bufferWhen$4&&bufferWhen_2$1||bufferWhen$4;function _catch(e){return catchError_1$1.catchError(e)(this)}Observable_1$1.Observable.prototype.bufferWhen=bufferWhen_1$2.bufferWhen;var _catch_2=_catch,_catch_1={_catch:_catch_2},_catch$1={default:_catch_1,__moduleExports:_catch_1,_catch:_catch_2},catch_1=_catch$1&&_catch_1||_catch$1;function combineAll$3(e){return combineAll_1$1.combineAll(e)(this)}Observable_1$1.Observable.prototype.catch=catch_1._catch,Observable_1$1.Observable.prototype._catch=catch_1._catch;var combineAll_3=combineAll$3,combineAll_2$1={combineAll:combineAll_3},combineAll$4={default:combineAll_2$1,__moduleExports:combineAll_2$1,combineAll:combineAll_3},combineAll_1$2=combineAll$4&&combineAll_2$1||combineAll$4;function combineLatest$5(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return combineLatest_1$1.combineLatest.apply(void 0,e)(this)}Observable_1$1.Observable.prototype.combineAll=combineAll_1$2.combineAll;var combineLatest_3$1=combineLatest$5,combineLatest_2$2={combineLatest:combineLatest_3$1},combineLatest$6={default:combineLatest_2$2,__moduleExports:combineLatest_2$2,combineLatest:combineLatest_3$1},combineLatest_1$3=combineLatest$6&&combineLatest_2$2||combineLatest$6;Observable_1$1.Observable.prototype.combineLatest=combineLatest_1$3.combineLatest;var concatStatic$1=concat_2$1.concat;function concat$5(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return concat_1$1.concat.apply(void 0,e)(this)}var concat_4$1=concat$5,concat_3$1={concatStatic:concatStatic$1,concat:concat_4$1},concat$6={default:concat_3$1,__moduleExports:concat_3$1,concatStatic:concatStatic$1,concat:concat_4$1},concat_1$2=concat$6&&concat_3$1||concat$6;function concatAll$3(){return concatAll_1$1.concatAll()(this)}Observable_1$1.Observable.prototype.concat=concat_1$2.concat;var concatAll_3=concatAll$3,concatAll_2$1={concatAll:concatAll_3},concatAll$4={default:concatAll_2$1,__moduleExports:concatAll_2$1,concatAll:concatAll_3},concatAll_1$2=concatAll$4&&concatAll_2$1||concatAll$4;function concatMap$3(e,t){return concatMap_1$1.concatMap(e,t)(this)}Observable_1$1.Observable.prototype.concatAll=concatAll_1$2.concatAll;var concatMap_3=concatMap$3,concatMap_2$1={concatMap:concatMap_3},concatMap$4={default:concatMap_2$1,__moduleExports:concatMap_2$1,concatMap:concatMap_3},concatMap_1$2=concatMap$4&&concatMap_2$1||concatMap$4;function concatMapTo$3(e,t){return concatMapTo_1$1.concatMapTo(e,t)(this)}Observable_1$1.Observable.prototype.concatMap=concatMap_1$2.concatMap;var concatMapTo_3=concatMapTo$3,concatMapTo_2$1={concatMapTo:concatMapTo_3},concatMapTo$4={default:concatMapTo_2$1,__moduleExports:concatMapTo_2$1,concatMapTo:concatMapTo_3},concatMapTo_1$2=concatMapTo$4&&concatMapTo_2$1||concatMapTo$4;function count$3(e){return count_1$1.count(e)(this)}Observable_1$1.Observable.prototype.concatMapTo=concatMapTo_1$2.concatMapTo;var count_3=count$3,count_2$1={count:count_3},count$4={default:count_2$1,__moduleExports:count_2$1,count:count_3},count_1$2=count$4&&count_2$1||count$4;function dematerialize$3(){return dematerialize_1$1.dematerialize()(this)}Observable_1$1.Observable.prototype.count=count_1$2.count;var dematerialize_3=dematerialize$3,dematerialize_2$1={dematerialize:dematerialize_3},dematerialize$4={default:dematerialize_2$1,__moduleExports:dematerialize_2$1,dematerialize:dematerialize_3},dematerialize_1$2=dematerialize$4&&dematerialize_2$1||dematerialize$4;function debounce$3(e){return debounce_1$1.debounce(e)(this)}Observable_1$1.Observable.prototype.dematerialize=dematerialize_1$2.dematerialize;var debounce_3=debounce$3,debounce_2$1={debounce:debounce_3},debounce$4={default:debounce_2$1,__moduleExports:debounce_2$1,debounce:debounce_3},debounce_1$2=debounce$4&&debounce_2$1||debounce$4;function debounceTime$3(e,t){return void 0===t&&(t=async_1$1.async),debounceTime_1$1.debounceTime(e,t)(this)}Observable_1$1.Observable.prototype.debounce=debounce_1$2.debounce;var debounceTime_3=debounceTime$3,debounceTime_2$1={debounceTime:debounceTime_3},debounceTime$4={default:debounceTime_2$1,__moduleExports:debounceTime_2$1,debounceTime:debounceTime_3},debounceTime_1$2=debounceTime$4&&debounceTime_2$1||debounceTime$4;function defaultIfEmpty$3(e){return void 0===e&&(e=null),defaultIfEmpty_1$1.defaultIfEmpty(e)(this)}Observable_1$1.Observable.prototype.debounceTime=debounceTime_1$2.debounceTime;var defaultIfEmpty_3=defaultIfEmpty$3,defaultIfEmpty_2$1={defaultIfEmpty:defaultIfEmpty_3},defaultIfEmpty$4={default:defaultIfEmpty_2$1,__moduleExports:defaultIfEmpty_2$1,defaultIfEmpty:defaultIfEmpty_3},defaultIfEmpty_1$2=defaultIfEmpty$4&&defaultIfEmpty_2$1||defaultIfEmpty$4;function delay$3(e,t){return void 0===t&&(t=async_1$1.async),delay_1$1.delay(e,t)(this)}Observable_1$1.Observable.prototype.defaultIfEmpty=defaultIfEmpty_1$2.defaultIfEmpty;var delay_3=delay$3,delay_2$1={delay:delay_3},delay$4={default:delay_2$1,__moduleExports:delay_2$1,delay:delay_3},delay_1$2=delay$4&&delay_2$1||delay$4;function delayWhen$3(e,t){return delayWhen_1$1.delayWhen(e,t)(this)}Observable_1$1.Observable.prototype.delay=delay_1$2.delay;var delayWhen_3=delayWhen$3,delayWhen_2$1={delayWhen:delayWhen_3},delayWhen$4={default:delayWhen_2$1,__moduleExports:delayWhen_2$1,delayWhen:delayWhen_3},delayWhen_1$2=delayWhen$4&&delayWhen_2$1||delayWhen$4;function distinct$3(e,t){return distinct_1$1.distinct(e,t)(this)}Observable_1$1.Observable.prototype.delayWhen=delayWhen_1$2.delayWhen;var distinct_3=distinct$3,distinct_2$1={distinct:distinct_3},distinct$4={default:distinct_2$1,__moduleExports:distinct_2$1,distinct:distinct_3},distinct_1$2=distinct$4&&distinct_2$1||distinct$4;function distinctUntilChanged$3(e,t){return distinctUntilChanged_1$1.distinctUntilChanged(e,t)(this)}Observable_1$1.Observable.prototype.distinct=distinct_1$2.distinct;var distinctUntilChanged_3=distinctUntilChanged$3,distinctUntilChanged_2$1={distinctUntilChanged:distinctUntilChanged_3},distinctUntilChanged$4={default:distinctUntilChanged_2$1,__moduleExports:distinctUntilChanged_2$1,distinctUntilChanged:distinctUntilChanged_3},distinctUntilChanged_1$2=distinctUntilChanged$4&&distinctUntilChanged_2$1||distinctUntilChanged$4;function distinctUntilKeyChanged$3(e,t){return distinctUntilKeyChanged_1$1.distinctUntilKeyChanged(e,t)(this)}Observable_1$1.Observable.prototype.distinctUntilChanged=distinctUntilChanged_1$2.distinctUntilChanged;var distinctUntilKeyChanged_3=distinctUntilKeyChanged$3,distinctUntilKeyChanged_2$1={distinctUntilKeyChanged:distinctUntilKeyChanged_3},distinctUntilKeyChanged$4={default:distinctUntilKeyChanged_2$1,__moduleExports:distinctUntilKeyChanged_2$1,distinctUntilKeyChanged:distinctUntilKeyChanged_3},distinctUntilKeyChanged_1$2=distinctUntilKeyChanged$4&&distinctUntilKeyChanged_2$1||distinctUntilKeyChanged$4;function _do(e,t,r){return tap_1$1.tap(e,t,r)(this)}Observable_1$1.Observable.prototype.distinctUntilKeyChanged=distinctUntilKeyChanged_1$2.distinctUntilKeyChanged;var _do_2=_do,_do_1={_do:_do_2},_do$1={default:_do_1,__moduleExports:_do_1,_do:_do_2},do_1=_do$1&&_do_1||_do$1;function exhaust$3(){return exhaust_1$1.exhaust()(this)}Observable_1$1.Observable.prototype.do=do_1._do,Observable_1$1.Observable.prototype._do=do_1._do;var exhaust_3=exhaust$3,exhaust_2$1={exhaust:exhaust_3},exhaust$4={default:exhaust_2$1,__moduleExports:exhaust_2$1,exhaust:exhaust_3},exhaust_1$2=exhaust$4&&exhaust_2$1||exhaust$4;function exhaustMap$3(e,t){return exhaustMap_1$1.exhaustMap(e,t)(this)}Observable_1$1.Observable.prototype.exhaust=exhaust_1$2.exhaust;var exhaustMap_3=exhaustMap$3,exhaustMap_2$1={exhaustMap:exhaustMap_3},exhaustMap$4={default:exhaustMap_2$1,__moduleExports:exhaustMap_2$1,exhaustMap:exhaustMap_3},exhaustMap_1$2=exhaustMap$4&&exhaustMap_2$1||exhaustMap$4;function expand$3(e,t,r){return void 0===t&&(t=Number.POSITIVE_INFINITY),void 0===r&&(r=void 0),t=(t||0)<1?Number.POSITIVE_INFINITY:t,expand_1$1.expand(e,t,r)(this)}Observable_1$1.Observable.prototype.exhaustMap=exhaustMap_1$2.exhaustMap;var expand_3=expand$3,expand_2$1={expand:expand_3},expand$4={default:expand_2$1,__moduleExports:expand_2$1,expand:expand_3},expand_1$2=expand$4&&expand_2$1||expand$4;function elementAt$3(e,t){return elementAt_1$1.elementAt(e,t)(this)}Observable_1$1.Observable.prototype.expand=expand_1$2.expand;var elementAt_3=elementAt$3,elementAt_2$1={elementAt:elementAt_3},elementAt$4={default:elementAt_2$1,__moduleExports:elementAt_2$1,elementAt:elementAt_3},elementAt_1$2=elementAt$4&&elementAt_2$1||elementAt$4;Observable_1$1.Observable.prototype.elementAt=elementAt_1$2.elementAt;var filter_1$2=filter$3&&filter_2$1||filter$3;function _finally(e){return finalize_1$1.finalize(e)(this)}Observable_1$1.Observable.prototype.filter=filter_1$2.filter;var _finally_2=_finally,_finally_1={_finally:_finally_2},_finally$1={default:_finally_1,__moduleExports:_finally_1,_finally:_finally_2},finally_1=_finally$1&&_finally_1||_finally$1;function find$3(e,t){return find_1$1.find(e,t)(this)}Observable_1$1.Observable.prototype.finally=finally_1._finally,Observable_1$1.Observable.prototype._finally=finally_1._finally;var find_3=find$3,find_2$1={find:find_3},find$4={default:find_2$1,__moduleExports:find_2$1,find:find_3},find_1$2=find$4&&find_2$1||find$4;function findIndex$3(e,t){return findIndex_1$1.findIndex(e,t)(this)}Observable_1$1.Observable.prototype.find=find_1$2.find;var findIndex_3=findIndex$3,findIndex_2$1={findIndex:findIndex_3},findIndex$4={default:findIndex_2$1,__moduleExports:findIndex_2$1,findIndex:findIndex_3},findIndex_1$2=findIndex$4&&findIndex_2$1||findIndex$4;function first$3(e,t,r){return first_1$1.first(e,t,r)(this)}Observable_1$1.Observable.prototype.findIndex=findIndex_1$2.findIndex;var first_3=first$3,first_2$1={first:first_3},first$4={default:first_2$1,__moduleExports:first_2$1,first:first_3},first_1$2=first$4&&first_2$1||first$4;Observable_1$1.Observable.prototype.first=first_1$2.first;var GroupedObservable$1=groupBy_1$1.GroupedObservable;function groupBy$3(e,t,r,n){return groupBy_1$1.groupBy(e,t,r,n)(this)}var groupBy_3=groupBy$3,groupBy_2$1={GroupedObservable:GroupedObservable$1,groupBy:groupBy_3},groupBy$4={default:groupBy_2$1,__moduleExports:groupBy_2$1,GroupedObservable:GroupedObservable$1,groupBy:groupBy_3},groupBy_1$2=groupBy$4&&groupBy_2$1||groupBy$4;function ignoreElements$3(){return ignoreElements_1$1.ignoreElements()(this)}Observable_1$1.Observable.prototype.groupBy=groupBy_1$2.groupBy;var ignoreElements_3=ignoreElements$3,ignoreElements_2$1={ignoreElements:ignoreElements_3},ignoreElements$4={default:ignoreElements_2$1,__moduleExports:ignoreElements_2$1,ignoreElements:ignoreElements_3},ignoreElements_1$2=ignoreElements$4&&ignoreElements_2$1||ignoreElements$4;function isEmpty$3(){return isEmpty_1$1.isEmpty()(this)}Observable_1$1.Observable.prototype.ignoreElements=ignoreElements_1$2.ignoreElements;var isEmpty_3=isEmpty$3,isEmpty_2$1={isEmpty:isEmpty_3},isEmpty$4={default:isEmpty_2$1,__moduleExports:isEmpty_2$1,isEmpty:isEmpty_3},isEmpty_1$2=isEmpty$4&&isEmpty_2$1||isEmpty$4;function audit$3(e){return audit_1$1.audit(e)(this)}Observable_1$1.Observable.prototype.isEmpty=isEmpty_1$2.isEmpty;var audit_3=audit$3,audit_2$1={audit:audit_3},audit$4={default:audit_2$1,__moduleExports:audit_2$1,audit:audit_3},audit_1$2=audit$4&&audit_2$1||audit$4;function auditTime$3(e,t){return void 0===t&&(t=async_1$1.async),auditTime_1$1.auditTime(e,t)(this)}Observable_1$1.Observable.prototype.audit=audit_1$2.audit;var auditTime_3=auditTime$3,auditTime_2$1={auditTime:auditTime_3},auditTime$4={default:auditTime_2$1,__moduleExports:auditTime_2$1,auditTime:auditTime_3},auditTime_1$2=auditTime$4&&auditTime_2$1||auditTime$4;function last$3(e,t,r){return last_1$1.last(e,t,r)(this)}Observable_1$1.Observable.prototype.auditTime=auditTime_1$2.auditTime;var last_3=last$3,last_2$1={last:last_3},last$4={default:last_2$1,__moduleExports:last_2$1,last:last_3},last_1$2=last$4&&last_2$1||last$4;function letProto(e){return e(this)}Observable_1$1.Observable.prototype.last=last_1$2.last;var letProto_1=letProto,_let={letProto:letProto_1},_let$1={default:_let,__moduleExports:_let,letProto:letProto_1},let_1=_let$1&&_let||_let$1;function every$3(e,t){return every_1$1.every(e,t)(this)}Observable_1$1.Observable.prototype.let=let_1.letProto,Observable_1$1.Observable.prototype.letBind=let_1.letProto;var every_3=every$3,every_2$1={every:every_3},every$4={default:every_2$1,__moduleExports:every_2$1,every:every_3},every_1$2=every$4&&every_2$1||every$4;Observable_1$1.Observable.prototype.every=every_1$2.every;var map_1$2=map$3&&map_2$1||map$3;function mapTo$3(e){return mapTo_1$1.mapTo(e)(this)}Observable_1$1.Observable.prototype.map=map_1$2.map;var mapTo_3=mapTo$3,mapTo_2$1={mapTo:mapTo_3},mapTo$4={default:mapTo_2$1,__moduleExports:mapTo_2$1,mapTo:mapTo_3},mapTo_1$2=mapTo$4&&mapTo_2$1||mapTo$4;function materialize$3(){return materialize_1$1.materialize()(this)}Observable_1$1.Observable.prototype.mapTo=mapTo_1$2.mapTo;var materialize_3=materialize$3,materialize_2$1={materialize:materialize_3},materialize$4={default:materialize_2$1,__moduleExports:materialize_2$1,materialize:materialize_3},materialize_1$2=materialize$4&&materialize_2$1||materialize$4;function max$5(e){return max_1$1.max(e)(this)}Observable_1$1.Observable.prototype.materialize=materialize_1$2.materialize;var max_3=max$5,max_2$1={max:max_3},max$6={default:max_2$1,__moduleExports:max_2$1,max:max_3},max_1$2=max$6&&max_2$1||max$6;Observable_1$1.Observable.prototype.max=max_1$2.max;var mergeStatic$1=merge_2$1.merge;function merge$5(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return merge_1$1.merge.apply(void 0,e)(this)}var merge_4$1=merge$5,merge_3$1={mergeStatic:mergeStatic$1,merge:merge_4$1},merge$6={default:merge_3$1,__moduleExports:merge_3$1,mergeStatic:mergeStatic$1,merge:merge_4$1},merge_1$2=merge$6&&merge_3$1||merge$6;function mergeAll$3(e){return void 0===e&&(e=Number.POSITIVE_INFINITY),mergeAll_1$1.mergeAll(e)(this)}Observable_1$1.Observable.prototype.merge=merge_1$2.merge;var mergeAll_3=mergeAll$3,mergeAll_2$1={mergeAll:mergeAll_3},mergeAll$4={default:mergeAll_2$1,__moduleExports:mergeAll_2$1,mergeAll:mergeAll_3},mergeAll_1$2=mergeAll$4&&mergeAll_2$1||mergeAll$4;function mergeMap$3(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),mergeMap_1$1.mergeMap(e,t,r)(this)}Observable_1$1.Observable.prototype.mergeAll=mergeAll_1$2.mergeAll;var mergeMap_3=mergeMap$3,mergeMap_2$2={mergeMap:mergeMap_3},mergeMap$4={default:mergeMap_2$2,__moduleExports:mergeMap_2$2,mergeMap:mergeMap_3},mergeMap_1$2=mergeMap$4&&mergeMap_2$2||mergeMap$4;function mergeMapTo$3(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),mergeMapTo_1$1.mergeMapTo(e,t,r)(this)}Observable_1$1.Observable.prototype.mergeMap=mergeMap_1$2.mergeMap,Observable_1$1.Observable.prototype.flatMap=mergeMap_1$2.mergeMap;var mergeMapTo_3=mergeMapTo$3,mergeMapTo_2$1={mergeMapTo:mergeMapTo_3},mergeMapTo$4={default:mergeMapTo_2$1,__moduleExports:mergeMapTo_2$1,mergeMapTo:mergeMapTo_3},mergeMapTo_1$2=mergeMapTo$4&&mergeMapTo_2$1||mergeMapTo$4;function mergeScan$3(e,t,r){return void 0===r&&(r=Number.POSITIVE_INFINITY),mergeScan_1$1.mergeScan(e,t,r)(this)}Observable_1$1.Observable.prototype.flatMapTo=mergeMapTo_1$2.mergeMapTo,Observable_1$1.Observable.prototype.mergeMapTo=mergeMapTo_1$2.mergeMapTo;var mergeScan_3=mergeScan$3,mergeScan_2$1={mergeScan:mergeScan_3},mergeScan$4={default:mergeScan_2$1,__moduleExports:mergeScan_2$1,mergeScan:mergeScan_3},mergeScan_1$2=mergeScan$4&&mergeScan_2$1||mergeScan$4;function min$6(e){return min_1$1.min(e)(this)}Observable_1$1.Observable.prototype.mergeScan=mergeScan_1$2.mergeScan;var min_3=min$6,min_2$1={min:min_3},min$7={default:min_2$1,__moduleExports:min_2$1,min:min_3},min_1$2=min$7&&min_2$1||min$7;function multicast$3(e,t){return multicast_1$1.multicast(e,t)(this)}Observable_1$1.Observable.prototype.min=min_1$2.min;var multicast_3=multicast$3,multicast_2$1={multicast:multicast_3},multicast$4={default:multicast_2$1,__moduleExports:multicast_2$1,multicast:multicast_3},multicast_1$2=multicast$4&&multicast_2$1||multicast$4;function observeOn$3(e,t){return void 0===t&&(t=0),observeOn_1$1.observeOn(e,t)(this)}Observable_1$1.Observable.prototype.multicast=multicast_1$2.multicast;var observeOn_3=observeOn$3,observeOn_2$1={observeOn:observeOn_3},observeOn$4={default:observeOn_2$1,__moduleExports:observeOn_2$1,observeOn:observeOn_3},observeOn_1$2=observeOn$4&&observeOn_2$1||observeOn$4;function onErrorResumeNext$5(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return onErrorResumeNext_1$1.onErrorResumeNext.apply(void 0,e)(this)}Observable_1$1.Observable.prototype.observeOn=observeOn_1$2.observeOn;var onErrorResumeNext_3=onErrorResumeNext$5,onErrorResumeNext_2$2={onErrorResumeNext:onErrorResumeNext_3},onErrorResumeNext$6={default:onErrorResumeNext_2$2,__moduleExports:onErrorResumeNext_2$2,onErrorResumeNext:onErrorResumeNext_3},onErrorResumeNext_1$3=onErrorResumeNext$6&&onErrorResumeNext_2$2||onErrorResumeNext$6;function pairwise$3(){return pairwise_1$1.pairwise()(this)}Observable_1$1.Observable.prototype.onErrorResumeNext=onErrorResumeNext_1$3.onErrorResumeNext;var pairwise_3=pairwise$3,pairwise_2$1={pairwise:pairwise_3},pairwise$4={default:pairwise_2$1,__moduleExports:pairwise_2$1,pairwise:pairwise_3},pairwise_1$2=pairwise$4&&pairwise_2$1||pairwise$4;function partition$3(e,t){return partition_1$1.partition(e,t)(this)}Observable_1$1.Observable.prototype.pairwise=pairwise_1$2.pairwise;var partition_3=partition$3,partition_2$1={partition:partition_3},partition$4={default:partition_2$1,__moduleExports:partition_2$1,partition:partition_3},partition_1$2=partition$4&&partition_2$1||partition$4;function pluck$3(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return pluck_1$1.pluck.apply(void 0,e)(this)}Observable_1$1.Observable.prototype.partition=partition_1$2.partition;var pluck_3=pluck$3,pluck_2$1={pluck:pluck_3},pluck$4={default:pluck_2$1,__moduleExports:pluck_2$1,pluck:pluck_3},pluck_1$2=pluck$4&&pluck_2$1||pluck$4;function publish$3(e){return publish_1$1.publish(e)(this)}Observable_1$1.Observable.prototype.pluck=pluck_1$2.pluck;var publish_3=publish$3,publish_2$1={publish:publish_3},publish$4={default:publish_2$1,__moduleExports:publish_2$1,publish:publish_3},publish_1$2=publish$4&&publish_2$1||publish$4;function publishBehavior$3(e){return publishBehavior_1$1.publishBehavior(e)(this)}Observable_1$1.Observable.prototype.publish=publish_1$2.publish;var publishBehavior_3=publishBehavior$3,publishBehavior_2$1={publishBehavior:publishBehavior_3},publishBehavior$4={default:publishBehavior_2$1,__moduleExports:publishBehavior_2$1,publishBehavior:publishBehavior_3},publishBehavior_1$2=publishBehavior$4&&publishBehavior_2$1||publishBehavior$4;function publishReplay$3(e,t,r,n){return publishReplay_1$1.publishReplay(e,t,r,n)(this)}Observable_1$1.Observable.prototype.publishBehavior=publishBehavior_1$2.publishBehavior;var publishReplay_3=publishReplay$3,publishReplay_2$1={publishReplay:publishReplay_3},publishReplay$4={default:publishReplay_2$1,__moduleExports:publishReplay_2$1,publishReplay:publishReplay_3},publishReplay_1$2=publishReplay$4&&publishReplay_2$1||publishReplay$4;function publishLast$3(){return publishLast_1$1.publishLast()(this)}Observable_1$1.Observable.prototype.publishReplay=publishReplay_1$2.publishReplay;var publishLast_3=publishLast$3,publishLast_2$1={publishLast:publishLast_3},publishLast$4={default:publishLast_2$1,__moduleExports:publishLast_2$1,publishLast:publishLast_3},publishLast_1$2=publishLast$4&&publishLast_2$1||publishLast$4;Observable_1$1.Observable.prototype.publishLast=publishLast_1$2.publishLast;var raceStatic=race_2$1.race;function race$5(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return race_1$1.race.apply(void 0,e)(this)}var race_4=race$5,race_3$1={raceStatic:raceStatic,race:race_4},race$6={default:race_3$1,__moduleExports:race_3$1,raceStatic:raceStatic,race:race_4},race_1$2=race$6&&race_3$1||race$6;function reduce$3(e,t){return arguments.length>=2?reduce_1$1.reduce(e,t)(this):reduce_1$1.reduce(e)(this)}Observable_1$1.Observable.prototype.race=race_1$2.race;var reduce_3=reduce$3,reduce_2$1={reduce:reduce_3},reduce$4={default:reduce_2$1,__moduleExports:reduce_2$1,reduce:reduce_3},reduce_1$2=reduce$4&&reduce_2$1||reduce$4;function repeat$4(e){return void 0===e&&(e=-1),repeat_1$1.repeat(e)(this)}Observable_1$1.Observable.prototype.reduce=reduce_1$2.reduce;var repeat_3=repeat$4,repeat_2$1={repeat:repeat_3},repeat$5={default:repeat_2$1,__moduleExports:repeat_2$1,repeat:repeat_3},repeat_1$2=repeat$5&&repeat_2$1||repeat$5;function repeatWhen$3(e){return repeatWhen_1$1.repeatWhen(e)(this)}Observable_1$1.Observable.prototype.repeat=repeat_1$2.repeat;var repeatWhen_3=repeatWhen$3,repeatWhen_2$1={repeatWhen:repeatWhen_3},repeatWhen$4={default:repeatWhen_2$1,__moduleExports:repeatWhen_2$1,repeatWhen:repeatWhen_3},repeatWhen_1$2=repeatWhen$4&&repeatWhen_2$1||repeatWhen$4;function retry$3(e){return void 0===e&&(e=-1),retry_1$1.retry(e)(this)}Observable_1$1.Observable.prototype.repeatWhen=repeatWhen_1$2.repeatWhen;var retry_3=retry$3,retry_2$1={retry:retry_3},retry$4={default:retry_2$1,__moduleExports:retry_2$1,retry:retry_3},retry_1$2=retry$4&&retry_2$1||retry$4;function retryWhen$3(e){return retryWhen_1$1.retryWhen(e)(this)}Observable_1$1.Observable.prototype.retry=retry_1$2.retry;var retryWhen_3=retryWhen$3,retryWhen_2$1={retryWhen:retryWhen_3},retryWhen$4={default:retryWhen_2$1,__moduleExports:retryWhen_2$1,retryWhen:retryWhen_3},retryWhen_1$2=retryWhen$4&&retryWhen_2$1||retryWhen$4;function sample$3(e){return sample_1$1.sample(e)(this)}Observable_1$1.Observable.prototype.retryWhen=retryWhen_1$2.retryWhen;var sample_3=sample$3,sample_2$1={sample:sample_3},sample$4={default:sample_2$1,__moduleExports:sample_2$1,sample:sample_3},sample_1$2=sample$4&&sample_2$1||sample$4;function sampleTime$3(e,t){return void 0===t&&(t=async_1$1.async),sampleTime_1$1.sampleTime(e,t)(this)}Observable_1$1.Observable.prototype.sample=sample_1$2.sample;var sampleTime_3=sampleTime$3,sampleTime_2$1={sampleTime:sampleTime_3},sampleTime$4={default:sampleTime_2$1,__moduleExports:sampleTime_2$1,sampleTime:sampleTime_3},sampleTime_1$2=sampleTime$4&&sampleTime_2$1||sampleTime$4;function scan$3(e,t){return arguments.length>=2?scan_1$1.scan(e,t)(this):scan_1$1.scan(e)(this)}Observable_1$1.Observable.prototype.sampleTime=sampleTime_1$2.sampleTime;var scan_3=scan$3,scan_2$1={scan:scan_3},scan$4={default:scan_2$1,__moduleExports:scan_2$1,scan:scan_3},scan_1$2=scan$4&&scan_2$1||scan$4;function sequenceEqual$3(e,t){return sequenceEqual_1$1.sequenceEqual(e,t)(this)}Observable_1$1.Observable.prototype.scan=scan_1$2.scan;var sequenceEqual_3=sequenceEqual$3,sequenceEqual_2$1={sequenceEqual:sequenceEqual_3},sequenceEqual$4={default:sequenceEqual_2$1,__moduleExports:sequenceEqual_2$1,sequenceEqual:sequenceEqual_3},sequenceEqual_1$2=sequenceEqual$4&&sequenceEqual_2$1||sequenceEqual$4;function share$3(){return share_1$1.share()(this)}Observable_1$1.Observable.prototype.sequenceEqual=sequenceEqual_1$2.sequenceEqual;var share_3=share$3,share_2$1={share:share_3},share$4={default:share_2$1,__moduleExports:share_2$1,share:share_3},share_1$2=share$4&&share_2$1||share$4;function shareReplay$3(e,t,r){return shareReplay_1$1.shareReplay(e,t,r)(this)}Observable_1$1.Observable.prototype.share=share_1$2.share;var shareReplay_3=shareReplay$3,shareReplay_2$1={shareReplay:shareReplay_3},shareReplay$4={default:shareReplay_2$1,__moduleExports:shareReplay_2$1,shareReplay:shareReplay_3},shareReplay_1$2=shareReplay$4&&shareReplay_2$1||shareReplay$4;function single$3(e){return single_1$1.single(e)(this)}Observable_1$1.Observable.prototype.shareReplay=shareReplay_1$2.shareReplay;var single_3=single$3,single_2$1={single:single_3},single$4={default:single_2$1,__moduleExports:single_2$1,single:single_3},single_1$2=single$4&&single_2$1||single$4;function skip$3(e){return skip_1$1.skip(e)(this)}Observable_1$1.Observable.prototype.single=single_1$2.single;var skip_3=skip$3,skip_2$1={skip:skip_3},skip$4={default:skip_2$1,__moduleExports:skip_2$1,skip:skip_3},skip_1$2=skip$4&&skip_2$1||skip$4;function skipLast$3(e){return skipLast_1$1.skipLast(e)(this)}Observable_1$1.Observable.prototype.skip=skip_1$2.skip;var skipLast_3=skipLast$3,skipLast_2$1={skipLast:skipLast_3},skipLast$4={default:skipLast_2$1,__moduleExports:skipLast_2$1,skipLast:skipLast_3},skipLast_1$2=skipLast$4&&skipLast_2$1||skipLast$4;function skipUntil$3(e){return skipUntil_1$1.skipUntil(e)(this)}Observable_1$1.Observable.prototype.skipLast=skipLast_1$2.skipLast;var skipUntil_3=skipUntil$3,skipUntil_2$1={skipUntil:skipUntil_3},skipUntil$4={default:skipUntil_2$1,__moduleExports:skipUntil_2$1,skipUntil:skipUntil_3},skipUntil_1$2=skipUntil$4&&skipUntil_2$1||skipUntil$4;function skipWhile$3(e){return skipWhile_1$1.skipWhile(e)(this)}Observable_1$1.Observable.prototype.skipUntil=skipUntil_1$2.skipUntil;var skipWhile_3=skipWhile$3,skipWhile_2$1={skipWhile:skipWhile_3},skipWhile$4={default:skipWhile_2$1,__moduleExports:skipWhile_2$1,skipWhile:skipWhile_3},skipWhile_1$2=skipWhile$4&&skipWhile_2$1||skipWhile$4;function startWith$3(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return startWith_1$1.startWith.apply(void 0,e)(this)}Observable_1$1.Observable.prototype.skipWhile=skipWhile_1$2.skipWhile;var startWith_3=startWith$3,startWith_2$1={startWith:startWith_3},startWith$4={default:startWith_2$1,__moduleExports:startWith_2$1,startWith:startWith_3},startWith_1$2=startWith$4&&startWith_2$1||startWith$4;Observable_1$1.Observable.prototype.startWith=startWith_1$2.startWith;var ImmediateDefinition=function(){function e(e){if(this.root=e,e.setImmediate&&"function"==typeof e.setImmediate)this.setImmediate=e.setImmediate.bind(e),this.clearImmediate=e.clearImmediate.bind(e);else{this.nextHandle=1,this.tasksByHandle={},this.currentlyRunningATask=!1,this.canUseProcessNextTick()?this.setImmediate=this.createProcessNextTickSetImmediate():this.canUsePostMessage()?this.setImmediate=this.createPostMessageSetImmediate():this.canUseMessageChannel()?this.setImmediate=this.createMessageChannelSetImmediate():this.canUseReadyStateChange()?this.setImmediate=this.createReadyStateChangeSetImmediate():this.setImmediate=this.createSetTimeoutSetImmediate();var t=function e(t){delete e.instance.tasksByHandle[t]};t.instance=this,this.clearImmediate=t}}return e.prototype.identify=function(e){return this.root.Object.prototype.toString.call(e)},e.prototype.canUseProcessNextTick=function(){return"[object process]"===this.identify(this.root.process)},e.prototype.canUseMessageChannel=function(){return Boolean(this.root.MessageChannel)},e.prototype.canUseReadyStateChange=function(){var e=this.root.document;return Boolean(e&&"onreadystatechange"in e.createElement("script"))},e.prototype.canUsePostMessage=function(){var e=this.root;if(e.postMessage&&!e.importScripts){var t=!0,r=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=r,t}return!1},e.prototype.partiallyApplied=function(e){for(var t=[],r=1;r<arguments.length;r++)t[r-1]=arguments[r];var n=function e(){var t=e.handler,r=e.args;"function"==typeof t?t.apply(void 0,r):new Function(""+t)()};return n.handler=e,n.args=t,n},e.prototype.addFromSetImmediateArguments=function(e){return this.tasksByHandle[this.nextHandle]=this.partiallyApplied.apply(void 0,e),this.nextHandle++},e.prototype.createProcessNextTickSetImmediate=function(){var e=function e(){var t=e.instance,r=t.addFromSetImmediateArguments(arguments);return t.root.process.nextTick(t.partiallyApplied(t.runIfPresent,r)),r};return e.instance=this,e},e.prototype.createPostMessageSetImmediate=function(){var e=this.root,t="setImmediate$"+e.Math.random()+"$",r=function r(n){var o=r.instance;n.source===e&&"string"==typeof n.data&&0===n.data.indexOf(t)&&o.runIfPresent(+n.data.slice(t.length))};r.instance=this,e.addEventListener("message",r,!1);var n=function e(){var t=e,r=t.messagePrefix,n=t.instance,o=n.addFromSetImmediateArguments(arguments);return n.root.postMessage(r+o,"*"),o};return n.instance=this,n.messagePrefix=t,n},e.prototype.runIfPresent=function(e){if(this.currentlyRunningATask)this.root.setTimeout(this.partiallyApplied(this.runIfPresent,e),0);else{var t=this.tasksByHandle[e];if(t){this.currentlyRunningATask=!0;try{t()}finally{this.clearImmediate(e),this.currentlyRunningATask=!1}}}},e.prototype.createMessageChannelSetImmediate=function(){var e=this,t=new this.root.MessageChannel;t.port1.onmessage=function(t){var r=t.data;e.runIfPresent(r)};var r=function e(){var t=e,r=t.channel,n=t.instance,o=n.addFromSetImmediateArguments(arguments);return r.port2.postMessage(o),o};return r.channel=t,r.instance=this,r},e.prototype.createReadyStateChangeSetImmediate=function(){var e=function e(){var t=e.instance,r=t.root,n=r.document,o=n.documentElement,i=t.addFromSetImmediateArguments(arguments),a=n.createElement("script");return a.onreadystatechange=function(){t.runIfPresent(i),a.onreadystatechange=null,o.removeChild(a),a=null},o.appendChild(a),i};return e.instance=this,e},e.prototype.createSetTimeoutSetImmediate=function(){var e=function e(){var t=e.instance,r=t.addFromSetImmediateArguments(arguments);return t.root.setTimeout(t.partiallyApplied(t.runIfPresent,r),0),r};return e.instance=this,e},e}(),ImmediateDefinition_1=ImmediateDefinition,Immediate_1=new ImmediateDefinition(root_1$1.root),Immediate={ImmediateDefinition:ImmediateDefinition_1,Immediate:Immediate_1},Immediate$1={default:Immediate,__moduleExports:Immediate,ImmediateDefinition:ImmediateDefinition_1,Immediate:Immediate_1},Immediate_1$1=Immediate$1&&Immediate||Immediate$1,__extends$1P=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},AsapAction=function(e){function t(t,r){e.call(this,t,r),this.scheduler=t,this.work=r}return __extends$1P(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=Immediate_1$1.Immediate.setImmediate(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);0===t.actions.length&&(Immediate_1$1.Immediate.clearImmediate(r),t.scheduled=void 0)},t}(AsyncAction_1$1.AsyncAction),AsapAction_2=AsapAction,AsapAction_1={AsapAction:AsapAction_2},AsapAction$1={default:AsapAction_1,__moduleExports:AsapAction_1,AsapAction:AsapAction_2},__extends$1Q=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},AsapScheduler=function(e){function t(){e.apply(this,arguments)}return __extends$1Q(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,o=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n<o&&(e=r.shift()));if(this.active=!1,t){for(;++n<o&&(e=r.shift());)e.unsubscribe();throw t}},t}(AsyncScheduler_1$1.AsyncScheduler),AsapScheduler_2=AsapScheduler,AsapScheduler_1={AsapScheduler:AsapScheduler_2},AsapScheduler$1={default:AsapScheduler_1,__moduleExports:AsapScheduler_1,AsapScheduler:AsapScheduler_2},AsapAction_1$1=AsapAction$1&&AsapAction_1||AsapAction$1,AsapScheduler_1$1=AsapScheduler$1&&AsapScheduler_1||AsapScheduler$1,asap_1=new AsapScheduler_1$1.AsapScheduler(AsapAction_1$1.AsapAction),asap={asap:asap_1},asap$1={default:asap,__moduleExports:asap,asap:asap_1},asap_1$1=asap$1&&asap||asap$1,__extends$1R=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},SubscribeOnObservable=function(e){function t(t,r,n){void 0===r&&(r=0),void 0===n&&(n=asap_1$1.asap),e.call(this),this.source=t,this.delayTime=r,this.scheduler=n,(!isNumeric_1$1.isNumeric(r)||r<0)&&(this.delayTime=0),n&&"function"==typeof n.schedule||(this.scheduler=asap_1$1.asap)}return __extends$1R(t,e),t.create=function(e,r,n){return void 0===r&&(r=0),void 0===n&&(n=asap_1$1.asap),new t(e,r,n)},t.dispatch=function(e){var t=e.source,r=e.subscriber;return this.add(t.subscribe(r))},t.prototype._subscribe=function(e){var r=this.delayTime,n=this.source;return this.scheduler.schedule(t.dispatch,r,{source:n,subscriber:e})},t}(Observable_1$1.Observable),SubscribeOnObservable_2=SubscribeOnObservable,SubscribeOnObservable_1={SubscribeOnObservable:SubscribeOnObservable_2},SubscribeOnObservable$1={default:SubscribeOnObservable_1,__moduleExports:SubscribeOnObservable_1,SubscribeOnObservable:SubscribeOnObservable_2},SubscribeOnObservable_1$1=SubscribeOnObservable$1&&SubscribeOnObservable_1||SubscribeOnObservable$1;function subscribeOn(e,t){return void 0===t&&(t=0),function(r){return r.lift(new SubscribeOnOperator(e,t))}}var subscribeOn_2=subscribeOn,SubscribeOnOperator=function(){function e(e,t){this.scheduler=e,this.delay=t}return e.prototype.call=function(e,t){return new SubscribeOnObservable_1$1.SubscribeOnObservable(t,this.delay,this.scheduler).subscribe(e)},e}(),subscribeOn_1={subscribeOn:subscribeOn_2},subscribeOn$1={default:subscribeOn_1,__moduleExports:subscribeOn_1,subscribeOn:subscribeOn_2},subscribeOn_1$1=subscribeOn$1&&subscribeOn_1||subscribeOn$1;function subscribeOn$2(e,t){return void 0===t&&(t=0),subscribeOn_1$1.subscribeOn(e,t)(this)}var subscribeOn_3=subscribeOn$2,subscribeOn_2$1={subscribeOn:subscribeOn_3},subscribeOn$3={default:subscribeOn_2$1,__moduleExports:subscribeOn_2$1,subscribeOn:subscribeOn_3},subscribeOn_1$2=subscribeOn$3&&subscribeOn_2$1||subscribeOn$3;function _switch(){return switchAll_1$1.switchAll()(this)}Observable_1$1.Observable.prototype.subscribeOn=subscribeOn_1$2.subscribeOn;var _switch_2=_switch,_switch_1={_switch:_switch_2},_switch$1={default:_switch_1,__moduleExports:_switch_1,_switch:_switch_2},switch_1=_switch$1&&_switch_1||_switch$1;Observable_1$1.Observable.prototype.switch=switch_1._switch,Observable_1$1.Observable.prototype._switch=switch_1._switch;var switchMap_1$2=switchMap$3&&switchMap_2$1||switchMap$3;function switchMapTo$3(e,t){return switchMapTo_1$1.switchMapTo(e,t)(this)}Observable_1$1.Observable.prototype.switchMap=switchMap_1$2.switchMap;var switchMapTo_3=switchMapTo$3,switchMapTo_2$1={switchMapTo:switchMapTo_3},switchMapTo$4={default:switchMapTo_2$1,__moduleExports:switchMapTo_2$1,switchMapTo:switchMapTo_3},switchMapTo_1$2=switchMapTo$4&&switchMapTo_2$1||switchMapTo$4;function take$3(e){return take_1$1.take(e)(this)}Observable_1$1.Observable.prototype.switchMapTo=switchMapTo_1$2.switchMapTo;var take_3=take$3,take_2$1={take:take_3},take$4={default:take_2$1,__moduleExports:take_2$1,take:take_3},take_1$2=take$4&&take_2$1||take$4;function takeLast$3(e){return takeLast_1$1.takeLast(e)(this)}Observable_1$1.Observable.prototype.take=take_1$2.take;var takeLast_3=takeLast$3,takeLast_2$1={takeLast:takeLast_3},takeLast$4={default:takeLast_2$1,__moduleExports:takeLast_2$1,takeLast:takeLast_3},takeLast_1$2=takeLast$4&&takeLast_2$1||takeLast$4;function takeUntil$3(e){return takeUntil_1$1.takeUntil(e)(this)}Observable_1$1.Observable.prototype.takeLast=takeLast_1$2.takeLast;var takeUntil_3=takeUntil$3,takeUntil_2$1={takeUntil:takeUntil_3},takeUntil$4={default:takeUntil_2$1,__moduleExports:takeUntil_2$1,takeUntil:takeUntil_3},takeUntil_1$2=takeUntil$4&&takeUntil_2$1||takeUntil$4;function takeWhile$3(e){return takeWhile_1$1.takeWhile(e)(this)}Observable_1$1.Observable.prototype.takeUntil=takeUntil_1$2.takeUntil;var takeWhile_3=takeWhile$3,takeWhile_2$1={takeWhile:takeWhile_3},takeWhile$4={default:takeWhile_2$1,__moduleExports:takeWhile_2$1,takeWhile:takeWhile_3},takeWhile_1$2=takeWhile$4&&takeWhile_2$1||takeWhile$4;function throttle$2(e,t){return void 0===t&&(t=throttle_1$1.defaultThrottleConfig),throttle_1$1.throttle(e,t)(this)}Observable_1$1.Observable.prototype.takeWhile=takeWhile_1$2.takeWhile;var throttle_3$1=throttle$2,throttle_2$1={throttle:throttle_3$1},throttle$3={default:throttle_2$1,__moduleExports:throttle_2$1,throttle:throttle_3$1},throttle_1$2=throttle$3&&throttle_2$1||throttle$3;function throttleTime$3(e,t,r){return void 0===t&&(t=async_1$1.async),void 0===r&&(r=throttle_1$1.defaultThrottleConfig),throttleTime_1$1.throttleTime(e,t,r)(this)}Observable_1$1.Observable.prototype.throttle=throttle_1$2.throttle;var throttleTime_3=throttleTime$3,throttleTime_2$1={throttleTime:throttleTime_3},throttleTime$4={default:throttleTime_2$1,__moduleExports:throttleTime_2$1,throttleTime:throttleTime_3},throttleTime_1$2=throttleTime$4&&throttleTime_2$1||throttleTime$4;Observable_1$1.Observable.prototype.throttleTime=throttleTime_1$2.throttleTime;var TimeInterval$1=timeInterval_1$1.TimeInterval;function timeInterval$3(e){return void 0===e&&(e=async_1$1.async),timeInterval_1$1.timeInterval(e)(this)}var timeInterval_3=timeInterval$3,timeInterval_2$1={TimeInterval:TimeInterval$1,timeInterval:timeInterval_3},timeInterval$4={default:timeInterval_2$1,__moduleExports:timeInterval_2$1,TimeInterval:TimeInterval$1,timeInterval:timeInterval_3},timeInterval_1$2=timeInterval$4&&timeInterval_2$1||timeInterval$4;function timeout$3(e,t){return void 0===t&&(t=async_1$1.async),timeout_1$1.timeout(e,t)(this)}Observable_1$1.Observable.prototype.timeInterval=timeInterval_1$2.timeInterval;var timeout_3=timeout$3,timeout_2$1={timeout:timeout_3},timeout$4={default:timeout_2$1,__moduleExports:timeout_2$1,timeout:timeout_3},timeout_1$2=timeout$4&&timeout_2$1||timeout$4;function timeoutWith$3(e,t,r){return void 0===r&&(r=async_1$1.async),timeoutWith_1$1.timeoutWith(e,t,r)(this)}Observable_1$1.Observable.prototype.timeout=timeout_1$2.timeout;var timeoutWith_3=timeoutWith$3,timeoutWith_2$1={timeoutWith:timeoutWith_3},timeoutWith$4={default:timeoutWith_2$1,__moduleExports:timeoutWith_2$1,timeoutWith:timeoutWith_3},timeoutWith_1$2=timeoutWith$4&&timeoutWith_2$1||timeoutWith$4;function timestamp$3(e){return void 0===e&&(e=async_1$1.async),timestamp_1$1.timestamp(e)(this)}Observable_1$1.Observable.prototype.timeoutWith=timeoutWith_1$2.timeoutWith;var timestamp_3=timestamp$3,timestamp_2$1={timestamp:timestamp_3},timestamp$4={default:timestamp_2$1,__moduleExports:timestamp_2$1,timestamp:timestamp_3},timestamp_1$2=timestamp$4&&timestamp_2$1||timestamp$4;function toArray$3(){return toArray_1$1.toArray()(this)}Observable_1$1.Observable.prototype.timestamp=timestamp_1$2.timestamp;var toArray_3=toArray$3,toArray_2$1={toArray:toArray_3},toArray$4={default:toArray_2$1,__moduleExports:toArray_2$1,toArray:toArray_3},toArray_1$2=toArray$4&&toArray_2$1||toArray$4;function window$4(e){return window_1$1.window(e)(this)}Observable_1$1.Observable.prototype.toArray=toArray_1$2.toArray;var window_3=window$4,window_2$1={window:window_3},window$5={default:window_2$1,__moduleExports:window_2$1,window:window_3},window_1$2=window$5&&window_2$1||window$5;function windowCount$3(e,t){return void 0===t&&(t=0),windowCount_1$1.windowCount(e,t)(this)}Observable_1$1.Observable.prototype.window=window_1$2.window;var windowCount_3=windowCount$3,windowCount_2$1={windowCount:windowCount_3},windowCount$4={default:windowCount_2$1,__moduleExports:windowCount_2$1,windowCount:windowCount_3},windowCount_1$2=windowCount$4&&windowCount_2$1||windowCount$4;function windowTime$3(e){var t=async_1$1.async,r=null,n=Number.POSITIVE_INFINITY;return isScheduler_1$1.isScheduler(arguments[3])&&(t=arguments[3]),isScheduler_1$1.isScheduler(arguments[2])?t=arguments[2]:isNumeric_1$1.isNumeric(arguments[2])&&(n=arguments[2]),isScheduler_1$1.isScheduler(arguments[1])?t=arguments[1]:isNumeric_1$1.isNumeric(arguments[1])&&(r=arguments[1]),windowTime_1$1.windowTime(e,r,n,t)(this)}Observable_1$1.Observable.prototype.windowCount=windowCount_1$2.windowCount;var windowTime_3=windowTime$3,windowTime_2$1={windowTime:windowTime_3},windowTime$4={default:windowTime_2$1,__moduleExports:windowTime_2$1,windowTime:windowTime_3},windowTime_1$2=windowTime$4&&windowTime_2$1||windowTime$4;function windowToggle$3(e,t){return windowToggle_1$1.windowToggle(e,t)(this)}Observable_1$1.Observable.prototype.windowTime=windowTime_1$2.windowTime;var windowToggle_3=windowToggle$3,windowToggle_2$1={windowToggle:windowToggle_3},windowToggle$4={default:windowToggle_2$1,__moduleExports:windowToggle_2$1,windowToggle:windowToggle_3},windowToggle_1$2=windowToggle$4&&windowToggle_2$1||windowToggle$4;function windowWhen$3(e){return windowWhen_1$1.windowWhen(e)(this)}Observable_1$1.Observable.prototype.windowToggle=windowToggle_1$2.windowToggle;var windowWhen_3=windowWhen$3,windowWhen_2$1={windowWhen:windowWhen_3},windowWhen$4={default:windowWhen_2$1,__moduleExports:windowWhen_2$1,windowWhen:windowWhen_3},windowWhen_1$2=windowWhen$4&&windowWhen_2$1||windowWhen$4;function withLatestFrom$3(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return withLatestFrom_1$1.withLatestFrom.apply(void 0,e)(this)}Observable_1$1.Observable.prototype.windowWhen=windowWhen_1$2.windowWhen;var withLatestFrom_3=withLatestFrom$3,withLatestFrom_2$1={withLatestFrom:withLatestFrom_3},withLatestFrom$4={default:withLatestFrom_2$1,__moduleExports:withLatestFrom_2$1,withLatestFrom:withLatestFrom_3},withLatestFrom_1$2=withLatestFrom$4&&withLatestFrom_2$1||withLatestFrom$4;function zipProto(){for(var e=[],t=0;t<arguments.length;t++)e[t-0]=arguments[t];return zip_1$1.zip.apply(void 0,e)(this)}Observable_1$1.Observable.prototype.withLatestFrom=withLatestFrom_1$2.withLatestFrom;var zipProto_1=zipProto,zip$5={zipProto:zipProto_1},zip$6={default:zip$5,__moduleExports:zip$5,zipProto:zipProto_1},zip_1$3=zip$6&&zip$5||zip$6;function zipAll$3(e){return zipAll_1$1.zipAll(e)(this)}Observable_1$1.Observable.prototype.zip=zip_1$3.zipProto;var zipAll_3=zipAll$3,zipAll_2$1={zipAll:zipAll_3},zipAll$4={default:zipAll_2$1,__moduleExports:zipAll_2$1,zipAll:zipAll_3},zipAll_1$2=zipAll$4&&zipAll_2$1||zipAll$4;Observable_1$1.Observable.prototype.zipAll=zipAll_1$2.zipAll;var SubscriptionLog=function(e,t){void 0===t&&(t=Number.POSITIVE_INFINITY),this.subscribedFrame=e,this.unsubscribedFrame=t},SubscriptionLog_2=SubscriptionLog,SubscriptionLog_1={SubscriptionLog:SubscriptionLog_2},SubscriptionLog$1={default:SubscriptionLog_1,__moduleExports:SubscriptionLog_1,SubscriptionLog:SubscriptionLog_2},SubscriptionLog_1$1=SubscriptionLog$1&&SubscriptionLog_1||SubscriptionLog$1,SubscriptionLoggable=function(){function e(){this.subscriptions=[]}return e.prototype.logSubscribedFrame=function(){return this.subscriptions.push(new SubscriptionLog_1$1.SubscriptionLog(this.scheduler.now())),this.subscriptions.length-1},e.prototype.logUnsubscribedFrame=function(e){var t=this.subscriptions,r=t[e];t[e]=new SubscriptionLog_1$1.SubscriptionLog(r.subscribedFrame,this.scheduler.now())},e}(),SubscriptionLoggable_2=SubscriptionLoggable,SubscriptionLoggable_1={SubscriptionLoggable:SubscriptionLoggable_2},SubscriptionLoggable$1={default:SubscriptionLoggable_1,__moduleExports:SubscriptionLoggable_1,SubscriptionLoggable:SubscriptionLoggable_2};function applyMixins(e,t){for(var r=0,n=t.length;r<n;r++)for(var o=t[r],i=Object.getOwnPropertyNames(o.prototype),a=0,s=i.length;a<s;a++){var c=i[a];e.prototype[c]=o.prototype[c]}}var applyMixins_2=applyMixins,applyMixins_1={applyMixins:applyMixins_2},applyMixins$1={default:applyMixins_1,__moduleExports:applyMixins_1,applyMixins:applyMixins_2},SubscriptionLoggable_1$1=SubscriptionLoggable$1&&SubscriptionLoggable_1||SubscriptionLoggable$1,applyMixins_1$1=applyMixins$1&&applyMixins_1||applyMixins$1,__extends$1S=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},ColdObservable=function(e){function t(t,r){e.call(this,function(e){var t=this,r=t.logSubscribedFrame();return e.add(new Subscription_1$1.Subscription(function(){t.logUnsubscribedFrame(r)})),t.scheduleMessages(e),e}),this.messages=t,this.subscriptions=[],this.scheduler=r}return __extends$1S(t,e),t.prototype.scheduleMessages=function(e){for(var t=this.messages.length,r=0;r<t;r++){var n=this.messages[r];e.add(this.scheduler.schedule(function(e){var t=e.message,r=e.subscriber;t.notification.observe(r)},n.frame,{message:n,subscriber:e}))}},t}(Observable_1$1.Observable),ColdObservable_2=ColdObservable;applyMixins_1$1.applyMixins(ColdObservable,[SubscriptionLoggable_1$1.SubscriptionLoggable]);var ColdObservable_1={ColdObservable:ColdObservable_2},ColdObservable$1={default:ColdObservable_1,__moduleExports:ColdObservable_1,ColdObservable:ColdObservable_2},__extends$1T=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},HotObservable=function(e){function t(t,r){e.call(this),this.messages=t,this.subscriptions=[],this.scheduler=r}return __extends$1T(t,e),t.prototype._subscribe=function(t){var r=this,n=r.logSubscribedFrame();return t.add(new Subscription_1$1.Subscription(function(){r.logUnsubscribedFrame(n)})),e.prototype._subscribe.call(this,t)},t.prototype.setup=function(){for(var e=this,t=e.messages.length,r=0;r<t;r++)!function(){var t=e.messages[r];e.scheduler.schedule(function(){t.notification.observe(e)},t.frame)}()},t}(Subject_1$1.Subject),HotObservable_2=HotObservable;applyMixins_1$1.applyMixins(HotObservable,[SubscriptionLoggable_1$1.SubscriptionLoggable]);var HotObservable_1={HotObservable:HotObservable_2},HotObservable$1={default:HotObservable_1,__moduleExports:HotObservable_1,HotObservable:HotObservable_2},__extends$1U=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},VirtualTimeScheduler=function(e){function t(t,r){var n=this;void 0===t&&(t=VirtualAction),void 0===r&&(r=Number.POSITIVE_INFINITY),e.call(this,t,function(){return n.frame}),this.maxFrames=r,this.frame=0,this.index=-1}return __extends$1U(t,e),t.prototype.flush=function(){for(var e,t,r=this.actions,n=this.maxFrames;(t=r.shift())&&(this.frame=t.delay)<=n&&!(e=t.execute(t.state,t.delay)););if(e){for(;t=r.shift();)t.unsubscribe();throw e}},t.frameTimeFactor=10,t}(AsyncScheduler_1$1.AsyncScheduler),VirtualTimeScheduler_2=VirtualTimeScheduler,VirtualAction=function(e){function t(t,r,n){void 0===n&&(n=t.index+=1),e.call(this,t,r),this.scheduler=t,this.work=r,this.index=n,this.active=!0,this.index=t.index=n}return __extends$1U(t,e),t.prototype.schedule=function(r,n){if(void 0===n&&(n=0),!this.id)return e.prototype.schedule.call(this,r,n);this.active=!1;var o=new t(this.scheduler,this.work);return this.add(o),o.schedule(r,n)},t.prototype.requestAsyncId=function(e,r,n){void 0===n&&(n=0),this.delay=e.frame+n;var o=e.actions;return o.push(this),o.sort(t.sortActions),!0},t.prototype.recycleAsyncId=function(e,t,r){},t.prototype._execute=function(t,r){if(!0===this.active)return e.prototype._execute.call(this,t,r)},t.sortActions=function(e,t){return e.delay===t.delay?e.index===t.index?0:e.index>t.index?1:-1:e.delay>t.delay?1:-1},t}(AsyncAction_1$1.AsyncAction),VirtualAction_1=VirtualAction,VirtualTimeScheduler_1={VirtualTimeScheduler:VirtualTimeScheduler_2,VirtualAction:VirtualAction_1},VirtualTimeScheduler$1={default:VirtualTimeScheduler_1,__moduleExports:VirtualTimeScheduler_1,VirtualTimeScheduler:VirtualTimeScheduler_2,VirtualAction:VirtualAction_1},ColdObservable_1$1=ColdObservable$1&&ColdObservable_1||ColdObservable$1,HotObservable_1$1=HotObservable$1&&HotObservable_1||HotObservable$1,VirtualTimeScheduler_1$1=VirtualTimeScheduler$1&&VirtualTimeScheduler_1||VirtualTimeScheduler$1,__extends$1V=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},defaultMaxFrame=750,TestScheduler=function(e){function t(t){e.call(this,VirtualTimeScheduler_1$1.VirtualAction,defaultMaxFrame),this.assertDeepEqual=t,this.hotObservables=[],this.coldObservables=[],this.flushTests=[]}return __extends$1V(t,e),t.prototype.createTime=function(e){var r=e.indexOf("|");if(-1===r)throw new Error('marble diagram for time should have a completion marker "|"');return r*t.frameTimeFactor},t.prototype.createColdObservable=function(e,r,n){if(-1!==e.indexOf("^"))throw new Error('cold observable cannot have subscription offset "^"');if(-1!==e.indexOf("!"))throw new Error('cold observable cannot have unsubscription marker "!"');var o=t.parseMarbles(e,r,n),i=new ColdObservable_1$1.ColdObservable(o,this);return this.coldObservables.push(i),i},t.prototype.createHotObservable=function(e,r,n){if(-1!==e.indexOf("!"))throw new Error('hot observable cannot have unsubscription marker "!"');var o=t.parseMarbles(e,r,n),i=new HotObservable_1$1.HotObservable(o,this);return this.hotObservables.push(i),i},t.prototype.materializeInnerObservable=function(e,t){var r=this,n=[];return e.subscribe(function(e){n.push({frame:r.frame-t,notification:Notification_1$1.Notification.createNext(e)})},function(e){n.push({frame:r.frame-t,notification:Notification_1$1.Notification.createError(e)})},function(){n.push({frame:r.frame-t,notification:Notification_1$1.Notification.createComplete()})}),n},t.prototype.expectObservable=function(e,r){var n=this;void 0===r&&(r=null);var o,i=[],a={actual:i,ready:!1},s=t.parseMarblesAsSubscriptions(r).unsubscribedFrame;return this.schedule(function(){o=e.subscribe(function(e){var t=e;e instanceof Observable_1$1.Observable&&(t=n.materializeInnerObservable(t,n.frame)),i.push({frame:n.frame,notification:Notification_1$1.Notification.createNext(t)})},function(e){i.push({frame:n.frame,notification:Notification_1$1.Notification.createError(e)})},function(){i.push({frame:n.frame,notification:Notification_1$1.Notification.createComplete()})})},0),s!==Number.POSITIVE_INFINITY&&this.schedule(function(){return o.unsubscribe()},s),this.flushTests.push(a),{toBe:function(e,r,n){a.ready=!0,a.expected=t.parseMarbles(e,r,n,!0)}}},t.prototype.expectSubscriptions=function(e){var r={actual:e,ready:!1};return this.flushTests.push(r),{toBe:function(e){var n="string"==typeof e?[e]:e;r.ready=!0,r.expected=n.map(function(e){return t.parseMarblesAsSubscriptions(e)})}}},t.prototype.flush=function(){for(var t=this.hotObservables;t.length>0;)t.shift().setup();e.prototype.flush.call(this);for(var r=this.flushTests.filter(function(e){return e.ready});r.length>0;){var n=r.shift();this.assertDeepEqual(n.actual,n.expected)}},t.parseMarblesAsSubscriptions=function(e){if("string"!=typeof e)return new SubscriptionLog_1$1.SubscriptionLog(Number.POSITIVE_INFINITY);for(var t=e.length,r=-1,n=Number.POSITIVE_INFINITY,o=Number.POSITIVE_INFINITY,i=0;i<t;i++){var a=i*this.frameTimeFactor,s=e[i];switch(s){case"-":case" ":break;case"(":r=a;break;case")":r=-1;break;case"^":if(n!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");n=r>-1?r:a;break;case"!":if(o!==Number.POSITIVE_INFINITY)throw new Error("found a second subscription point '^' in a subscription marble diagram. There can only be one.");o=r>-1?r:a;break;default:throw new Error("there can only be '^' and '!' markers in a subscription marble diagram. Found instead '"+s+"'.")}}return o<0?new SubscriptionLog_1$1.SubscriptionLog(n):new SubscriptionLog_1$1.SubscriptionLog(n,o)},t.parseMarbles=function(e,t,r,n){if(void 0===n&&(n=!1),-1!==e.indexOf("!"))throw new Error('conventional marble diagrams cannot have the unsubscription marker "!"');for(var o=e.length,i=[],a=e.indexOf("^"),s=-1===a?0:a*-this.frameTimeFactor,c="object"!==(void 0===t?"undefined":_typeof(t))?function(e){return e}:function(e){return n&&t[e]instanceof ColdObservable_1$1.ColdObservable?t[e].messages:t[e]},u=-1,l=0;l<o;l++){var p=l*this.frameTimeFactor+s,f=void 0,h=e[l];switch(h){case"-":case" ":break;case"(":u=p;break;case")":u=-1;break;case"|":f=Notification_1$1.Notification.createComplete();break;case"^":break;case"#":f=Notification_1$1.Notification.createError(r||"error");break;default:f=Notification_1$1.Notification.createNext(c(h))}f&&i.push({frame:u>-1?u:p,notification:f})}return i},t}(VirtualTimeScheduler_1$1.VirtualTimeScheduler),TestScheduler_2=TestScheduler,TestScheduler_1={TestScheduler:TestScheduler_2},TestScheduler$1={default:TestScheduler_1,__moduleExports:TestScheduler_1,TestScheduler:TestScheduler_2},RequestAnimationFrameDefinition=function(e){e.requestAnimationFrame?(this.cancelAnimationFrame=e.cancelAnimationFrame.bind(e),this.requestAnimationFrame=e.requestAnimationFrame.bind(e)):e.mozRequestAnimationFrame?(this.cancelAnimationFrame=e.mozCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.mozRequestAnimationFrame.bind(e)):e.webkitRequestAnimationFrame?(this.cancelAnimationFrame=e.webkitCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.webkitRequestAnimationFrame.bind(e)):e.msRequestAnimationFrame?(this.cancelAnimationFrame=e.msCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.msRequestAnimationFrame.bind(e)):e.oRequestAnimationFrame?(this.cancelAnimationFrame=e.oCancelAnimationFrame.bind(e),this.requestAnimationFrame=e.oRequestAnimationFrame.bind(e)):(this.cancelAnimationFrame=e.clearTimeout.bind(e),this.requestAnimationFrame=function(t){return e.setTimeout(t,1e3/60)})},RequestAnimationFrameDefinition_1=RequestAnimationFrameDefinition,AnimationFrame_1=new RequestAnimationFrameDefinition(root_1$1.root),AnimationFrame={RequestAnimationFrameDefinition:RequestAnimationFrameDefinition_1,AnimationFrame:AnimationFrame_1},AnimationFrame$1={default:AnimationFrame,__moduleExports:AnimationFrame,RequestAnimationFrameDefinition:RequestAnimationFrameDefinition_1,AnimationFrame:AnimationFrame_1},AnimationFrame_1$1=AnimationFrame$1&&AnimationFrame||AnimationFrame$1,__extends$1W=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},AnimationFrameAction=function(e){function t(t,r){e.call(this,t,r),this.scheduler=t,this.work=r}return __extends$1W(t,e),t.prototype.requestAsyncId=function(t,r,n){return void 0===n&&(n=0),null!==n&&n>0?e.prototype.requestAsyncId.call(this,t,r,n):(t.actions.push(this),t.scheduled||(t.scheduled=AnimationFrame_1$1.AnimationFrame.requestAnimationFrame(t.flush.bind(t,null))))},t.prototype.recycleAsyncId=function(t,r,n){if(void 0===n&&(n=0),null!==n&&n>0||null===n&&this.delay>0)return e.prototype.recycleAsyncId.call(this,t,r,n);0===t.actions.length&&(AnimationFrame_1$1.AnimationFrame.cancelAnimationFrame(r),t.scheduled=void 0)},t}(AsyncAction_1$1.AsyncAction),AnimationFrameAction_2=AnimationFrameAction,AnimationFrameAction_1={AnimationFrameAction:AnimationFrameAction_2},AnimationFrameAction$1={default:AnimationFrameAction_1,__moduleExports:AnimationFrameAction_1,AnimationFrameAction:AnimationFrameAction_2},__extends$1X=commonjsGlobal&&commonjsGlobal.__extends||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r]);function n(){this.constructor=e}e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)},AnimationFrameScheduler=function(e){function t(){e.apply(this,arguments)}return __extends$1X(t,e),t.prototype.flush=function(e){this.active=!0,this.scheduled=void 0;var t,r=this.actions,n=-1,o=r.length;e=e||r.shift();do{if(t=e.execute(e.state,e.delay))break}while(++n<o&&(e=r.shift()));if(this.active=!1,t){for(;++n<o&&(e=r.shift());)e.unsubscribe();throw t}},t}(AsyncScheduler_1$1.AsyncScheduler),AnimationFrameScheduler_2=AnimationFrameScheduler,AnimationFrameScheduler_1={AnimationFrameScheduler:AnimationFrameScheduler_2},AnimationFrameScheduler$1={default:AnimationFrameScheduler_1,__moduleExports:AnimationFrameScheduler_1,AnimationFrameScheduler:AnimationFrameScheduler_2},AnimationFrameAction_1$1=AnimationFrameAction$1&&AnimationFrameAction_1||AnimationFrameAction$1,AnimationFrameScheduler_1$1=AnimationFrameScheduler$1&&AnimationFrameScheduler_1||AnimationFrameScheduler$1,animationFrame_1=new AnimationFrameScheduler_1$1.AnimationFrameScheduler(AnimationFrameAction_1$1.AnimationFrameAction),animationFrame={animationFrame:animationFrame_1},animationFrame$1={default:animationFrame,__moduleExports:animationFrame,animationFrame:animationFrame_1},TestScheduler_1$1=TestScheduler$1&&TestScheduler_1||TestScheduler$1,animationFrame_1$1=animationFrame$1&&animationFrame||animationFrame$1,_operators=operators$1&&operators||operators$1,Subject$2=Subject_1$1.Subject,AnonymousSubject$1=Subject_1$1.AnonymousSubject,Observable$2=Observable_1$1.Observable,Subscription$3=Subscription_1$1.Subscription,Subscriber$2=Subscriber_1$1.Subscriber,AsyncSubject$2=AsyncSubject_1$1.AsyncSubject,ReplaySubject$2=ReplaySubject_1$1.ReplaySubject,BehaviorSubject$2=BehaviorSubject_1$1.BehaviorSubject,ConnectableObservable$2=ConnectableObservable_1$1.ConnectableObservable,Notification$2=Notification_1$1.Notification,EmptyError$2=EmptyError_1$1.EmptyError,ArgumentOutOfRangeError$2=ArgumentOutOfRangeError_1$1.ArgumentOutOfRangeError,ObjectUnsubscribedError$2=ObjectUnsubscribedError_1$1.ObjectUnsubscribedError,TimeoutError$2=TimeoutError_1$1.TimeoutError,UnsubscriptionError$2=UnsubscriptionError_1$1.UnsubscriptionError,TimeInterval$2=timeInterval_1$2.TimeInterval,Timestamp$1=timestamp_1$1.Timestamp,TestScheduler$2=TestScheduler_1$1.TestScheduler,VirtualTimeScheduler$2=VirtualTimeScheduler_1$1.VirtualTimeScheduler,AjaxResponse$1=AjaxObservable_1$1.AjaxResponse,AjaxError$1=AjaxObservable_1$1.AjaxError,AjaxTimeoutError$1=AjaxObservable_1$1.AjaxTimeoutError,pipe$2=pipe_1$1.pipe,operators$2=_operators,Scheduler$2={asap:asap_1$1.asap,queue:queue_1$1.queue,animationFrame:animationFrame_1$1.animationFrame,async:async_1$1.async},_Symbol$1={rxSubscriber:rxSubscriber_1$1.rxSubscriber,observable:observable_1$1.observable,iterator:iterator_1$1.iterator},lib$1=createCommonjsModule(function(e,t){function r(e,t){void 0===t&&(t=function(e){return e instanceof Error});var r=e?e+"/":"";function n(e,n,o){void 0===o&&(o=t);var i=r+e;return _extends(function(e,t){var r={type:i,payload:e};return(n||t)&&(r.meta=_extends({},n,t)),o&&("boolean"==typeof o||o(e))&&(r.error=!0),r},{type:i,toString:function(){return i},match:function(e){return e.type===i}})}return _extends(n,{async:function(e,t){return{type:r+e,started:n(e+"_STARTED",t,!1),done:n(e+"_DONE",t,!1),failed:n(e+"_FAILED",t,!0)}}})}Object.defineProperty(t,"__esModule",{value:!0}),t.isType=function(e,t){return e.type===t.type},t.actionCreatorFactory=r,t.default=r});unwrapExports(lib$1);var lib_1$1=lib$1.isType,lib_2$1=lib$1.actionCreatorFactory,addMenuItemEpic=function(e,t,r){return e.filter(function(e){return lib_1$1(e,addMenuItemCreator)}).mergeMap(function(e){var t=e;return Observable$2.fromPromise(r.send(addMenuItemCreator.type,t.payload)).map(function(e){return addMenuItemAsyncCreator.done({result:{done:!0},params:t.payload})})})},setBaselayersVisibilityEpic=function(e,t,r){return e.pipe(filter$4(setBaseLayerVisibilityCreator.match),mergeMap$2(function(e){var t=e;return Observable$2.from(r.send(setBaseLayerVisibilityCreator.type,t.payload)).pipe(map$4(function(e){return setBaseLayerVisibilityAsyncCreator.done({params:t.payload,result:{done:!0,datas:e}})}),catchError$2(function(e){var r=" an error occured while setting base layer visibility  "+e;return console.warn(r),Observable$2.of(setBaseLayerVisibilityAsyncCreator.failed({params:t.payload,error:e}))}))}))},setComponentsStateEpic=function(e,t,r){return e.pipe(filter$4(setComponentsStateCreator.match),mergeMap$2(function(e){return Observable$2.from(r.send(setComponentsStateCreator.type,e.payload)).pipe(map$4(function(t){return setComponentsStateAsyncCreator.done({params:e.payload,result:{done:!0,datas:t}})}),catchError$2(function(t){return Observable$2.of(setComponentsStateAsyncCreator.failed({params:e.payload,error:t}))}))}))},DefaultStoryFactory=function(e,t,r){return function(r,n,o){return r.pipe(filter$4(e.match),mergeMap$2(function(r){return Observable$2.from(o.send(e.type,r.payload)).pipe(map$4(function(e){return t.done({params:r.payload,result:{done:!0,datas:e}})}),catchError$2(function(e){return Observable$2.of(t.failed({params:r.payload,error:e}))}))}))}},dispatchDataRefreshEventEpic=DefaultStoryFactory(dispatchDataRefreshEventCreator,dispatchDataRefreshEventAsyncCreator),enableFunctionalityEpic=function(e,t,r){return e.pipe(filter$4(enableFunctionalityCreator.match),mergeMap$2(function(e){return Observable$2.from(r.send(enableFunctionalityCreator.type,e.payload)).pipe(map$4(function(t){return enableFunctionalityAsyncCreator.done({params:e.payload,result:t})}),catchError$2(function(t){return Observable$2.of(enableFunctionalityAsyncCreator.failed({params:e.payload,error:t}))}))}))},disableFunctionalityEpic=function(e,t,r){return e.pipe(filter$4(disableFunctionalityCreator.match),mergeMap$2(function(e){return Observable$2.from(r.send(disableFunctionalityCreator.type,e.payload)).pipe(map$4(function(t){return disableFunctionalityAsyncCreator.done({params:e.payload,result:t})}),catchError$2(function(t){return Observable$2.of(enableFunctionalityAsyncCreator.failed({params:e.payload,error:t}))}))}))},initialiseEpic=function(e,t,r){return Observable$2.combineLatest(e.pipe(filter$4(GEO_API_PROXY_READYCreator.match),filter$4(Boolean),take$2(1)),e.pipe(filter$4(initApplicationCreator.match),take$2(1))).pipe(map$4(function(e){var t=slicedToArray(e,2);t[0];return t[1]}),mergeMap$2(function(e){var t=[];if(e.payload&&e.payload.components)for(var n in e.payload.components)if("string"==typeof n&&e.payload.components[n]){var o=e.payload.components[n];if(o.extensions){var i=o.extensions;if(i.length>0)for(var a=ComponentInstanceLoader.getInstance(n,r.uid,o),s=0;s<i.length;s++)if(void 0!==i[s]&&a instanceof ExtensibleComponent){var c=a.buildExtension(i[s]);t.push(Observable$2.fromPromise(r.sendSync(registerExtensionCreator.type,c)))}}}var u=[];return u.push(Observable$2.fromPromise(r.send(initApplicationAsyncCreator.type,e.payload).then(function(e){return e.data.payload.promise}))),Observable$2.concat(Observable$2.of(initApplicationAsyncCreator.started(e.payload)),Observable$2.zip.apply(Observable$2,t).pipe(map$4(function(){return componentsInitializerCreator({status:!0})}),catchError$2(function(t){var r=" an error occured while initializing api components:: "+t;return console.warn(r),Observable$2.of(initApplicationAsyncCreator.failed({params:e.payload,error:t}))})),Observable$2.zip.apply(Observable$2,u).pipe(map$4(function(){return initApplicationAsyncCreator.done({result:{done:!0},params:e.payload})}))).pipe(catchError$2(function(t){var r=" an error occured while initializing api "+t;return console.warn(r),Observable$2.of(initApplicationAsyncCreator.failed({params:e.payload,error:t}))}))}),catchError$2(function(e){var t=" an unknown occured while initializing api "+e;return console.warn(t),Observable$2.of(initApplicationAsyncCreator.failed({params:null,error:e}))}))},waitForAllInitializationEpic=function(e,t,r){return Observable$2.combineLatest(e.pipe(filter$4(GEO_API_PROXY_READYCreator.match),filter$4(Boolean),take$2(1)),e.pipe(filter$4(initApplicationCreator.match),take$2(1)),e.pipe(filter$4(initApplicationAsyncCreator.done.match),take$2(1)),e.pipe(filter$4(applicationInitializerCreator.match),take$2(1)),e.pipe(filter$4(containerInitializerCreator.match),take$2(1))).pipe(map$4(function(){return globalInitializerCreator({status:!0})}))},waitAppAndMap=function(e,t,r){return Observable$2.combineLatest(e.pipe(filter$4(INITIALIZE_MAP_STATECreator.match),filter$4(Boolean),take$2(1)),e.pipe(filter$4(applicationInitializerCreator.match),take$2(1))).pipe(map$4(function(e){var t=slicedToArray(e,2),r=t[0];t[1];return mapAndAppInitializerCreator({map:r.payload.map})}))},zoomInEpic=DefaultStoryFactory(zoomInCreator,zoomInAsyncCreator),zoomOutEpic=DefaultStoryFactory(zoomOutCreator,zoomOutAsyncCreator),pantToEpic=DefaultStoryFactory(panToCreator,panToAsyncCreator),gotoInitExtentEpic=DefaultStoryFactory(gotoInitExtentCreator,gotoInitExtentAsyncCreator),gotoExtentEpic=DefaultStoryFactory(gotoExtentCreator,gotoExtentAsyncCreator),gotoPointEpic=DefaultStoryFactory(gotoPointCreator,gotoPointAsyncCreator),zoomToScaleEpic=DefaultStoryFactory(zoomToScaleCreator,zoomToScaleAsyncCreator),listMapEventsEpic=function(e,t,r){return e.pipe(filter$4(listenMapEventsCreator.match),mergeMap$2(function(e){return Observable$2.from(r.send(listenMapEventsCreator.type,e.payload)).pipe(map$4(function(t){return listenMapEventsAsyncCreator.done({params:e.payload,result:t})}),catchError$2(function(t){return Observable$2.of(listenMapEventsAsyncCreator.failed({params:e.payload,error:t}))}))}))},registerExtensionEpic=DefaultStoryFactory(registerExtensionCreator,registerExtensionAsyncCreator),resetSelectionEpic=DefaultStoryFactory(resetSelectionCreator,resetSelectionAsyncCreator),addToSelectionEpic=DefaultStoryFactory(addToSelectionCreator,addToSelectionAsyncCreator),removeFromSelectionEpic=DefaultStoryFactory(removeFromSelectionCreator,removeFromSelectionAsyncCreator);function ofAction(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return e.pipe(filter$4(function(e){return t.some(function(t){return t.match(e)})}))}}var serviceGetImageEpic=function(e,t,r){return e.pipe(ofAction(serviceGetImageMapCreator),mergeMap$2(function(e){var t=e;return Observable$2.concat(of_1(serviceGetImageMapAsyncCreator.started(e.payload)),Observable$2.fromPromise(r.send(serviceGetImageMapAsyncCreator.type,t.payload)).mergeMap(function(e){return Observable$2.fromPromise(e.data.payload.promise.promise).map(function(e){return serviceGetImageMapAsyncCreator.done({result:e.payload,params:t.payload},{params:t.payload,transient:t.payload.transient})})}).catch(function(e){return Observable$2.of(serviceGetImageMapAsyncCreator.failed({params:t.payload,error:e},{params:t.payload,transient:t.payload.transient}))}))}))},serviceFeatureTransactionEpic=function(e,t,r){return e.pipe(ofAction(serviceFeatureTransactionCreator),mergeMap$2(function(e){var t=e;return Observable$2.concat(of_1(serviceFeatureTransactionAsyncCreator.started(e.payload)),Observable$2.fromPromise(r.send(serviceFeatureTransactionAsyncCreator.type,t.payload)).mergeMap(function(e){return Observable$2.fromPromise(e.data.payload.promise.promise).map(function(e){return delete e.payload.config,delete e.payload.headers,delete e.payload.objectkey,delete e.payload.status,serviceFeatureTransactionAsyncCreator.done({result:e.payload,params:t.payload},{params:t.payload,transient:t.payload.transient})})}).catch(function(e){return Observable$2.of(serviceFeatureTransactionAsyncCreator.failed({params:t.payload,error:e},{params:t.payload,transient:t.payload.transient}))}))}))},serviceExecuteSearchEpic=function(e,t,r){return e.pipe(ofAction(serviceExecuteSearchCreator),mergeMap$2(function(e){var t=e;return Observable$2.concat(of_1(serviceExecuteSearchAsyncCreator.started(e.payload)),Observable$2.fromPromise(r.send(serviceExecuteSearchAsyncCreator.type,t.payload)).mergeMap(function(e){return Observable$2.fromPromise(e.data.payload.promise.promise).map(function(e){return serviceExecuteSearchAsyncCreator.done({result:e.payload,params:t.payload},{params:t.payload,transient:t.payload.transient})})}).catch(function(e){return Observable$2.of(serviceExecuteSearchAsyncCreator.failed({params:t.payload,error:e},{params:t.payload,transient:t.payload.transient}))}))}))},serviceLocalizeAddressEpic=function(e,t,r){return e.pipe(ofAction(serviceLocalizeAddressCreator),mergeMap$2(function(e){var t=e;return Observable$2.concat(of_1(serviceLocalizeAddressAsyncCreator.started(e.payload)),Observable$2.fromPromise(r.send(serviceLocalizeAddressAsyncCreator.type,t.payload)).mergeMap(function(e){return Observable$2.fromPromise(e.data.payload.promise.promise).map(function(e){return serviceLocalizeAddressAsyncCreator.done({result:e.payload,params:t.payload},{params:t.payload,transient:t.payload.transient})})}).catch(function(e){return Observable$2.of(serviceLocalizeAddressAsyncCreator.failed({params:t.payload,error:e},{params:t.payload,transient:t.payload.transient}))}))}))},setEntriesVisibilityEpic=DefaultStoryFactory(setEntriesVisibilityCreator,setEntriesVisibilityAsyncCreator),setFilterHistoryTimestampEpic=DefaultStoryFactory(setFilterHistoryTimestampCreator,setFilterHistoryTimestampAsyncCreator),setGlobalParameterValueEpic=DefaultStoryFactory(setGlobalParameterValueCreator,setGlobalParameterValueAsyncCreator),refreshMapEpic=DefaultStoryFactory(refreshMapCreator,refreshMapAsyncCreator),setSelectionToolModeEpic=DefaultStoryFactory(setSelectionToolModeCreator,setSelectionToolModeAsyncCreator),adMarkersEpic=DefaultStoryFactory(addMarkersCreator,addMarkersAsyncCreator),removeMarkersEpic=DefaultStoryFactory(removeMarkersCreator,removeMarkersAsyncCreator),gotoMarkerEpic=DefaultStoryFactory(gotoMarkerCreator,gotoMarkerAsyncCreator),clearMapentriesFilteridsEpic=DefaultStoryFactory(clearMapentriesFilteridsCreator,clearMapentriesFilteridsAsyncCreator),setMapentryFilteridsEpic=DefaultStoryFactory(setMapentryFilteridsCreator,setMapentryFilteridsAsyncCreator),_actionCreatorsBuilde$8=actionCreatorsBuilder(TypeKeyActions.LOAD_PROJECTION),_actionCreatorsBuilde2$8=slicedToArray(_actionCreatorsBuilde$8,3),loadProjectionCreator=_actionCreatorsBuilde2$8[0],loadProjectionAsyncCreator=_actionCreatorsBuilde2$8[1],loadProjectionCreatorP=_actionCreatorsBuilde2$8[2],loadProjectionEpic=DefaultStoryFactory(loadProjectionCreator,loadProjectionAsyncCreator),epics=combineEpics(initialiseEpic,waitForAllInitializationEpic,addMenuItemEpic,setComponentsStateEpic,zoomInEpic,zoomOutEpic,pantToEpic,gotoInitExtentEpic,gotoExtentEpic,gotoPointEpic,zoomToScaleEpic,adMarkersEpic,removeMarkersEpic,gotoMarkerEpic,refreshMapEpic,setBaselayersVisibilityEpic,listMapEventsEpic,enableFunctionalityEpic,disableFunctionalityEpic,setEntriesVisibilityEpic,resetSelectionEpic,addToSelectionEpic,removeFromSelectionEpic,setGlobalParameterValueEpic,setFilterHistoryTimestampEpic,dispatchDataRefreshEventEpic,serviceFeatureTransactionEpic,serviceGetImageEpic,registerExtensionEpic,serviceExecuteSearchEpic,serviceLocalizeAddressEpic,setSelectionToolModeEpic,clearMapentriesFilteridsEpic,setMapentryFilteridsEpic,waitAppAndMap,reduxPromiseObservableEpic,loadProjectionEpic),UTIL_CONVERT_PROJ=function e(t){classCallCheck(this,e),this.in=t.in,this.out=t.out},obj;function ProviderApp(e,t){var r=reduxWatch(e.getState,"geoApplicationInitialized");e.subscribe(r(function(r,n){r&&t.skeletonBuild(e.getState(),e)}))}var NOTHING="undefined"!=typeof Symbol?Symbol("immer-nothing"):(obj={},obj["immer-nothing"]=!0,obj),DRAFTABLE="undefined"!=typeof Symbol?Symbol.for("immer-draftable"):"__$immer_draftable",DRAFT_STATE="undefined"!=typeof Symbol?Symbol.for("immer-state"):"__$immer_state";function isDraft(e){return!!e&&!!e[DRAFT_STATE]}function isDraftable(e){if(!e||"object"!==(void 0===e?"undefined":_typeof(e)))return!1;if(Array.isArray(e))return!0;var t=Object.getPrototypeOf(e);return!t||t===Object.prototype||(!!e[DRAFTABLE]||!!e.constructor[DRAFTABLE])}var assign$3=Object.assign||function(e,t){for(var r in t)has$1(t,r)&&(e[r]=t[r]);return e},ownKeys$1="undefined"!=typeof Reflect&&Reflect.ownKeys?Reflect.ownKeys:void 0!==Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames;function shallowCopy(e,t){if(void 0===t&&(t=!1),Array.isArray(e))return e.slice();var r=Object.create(Object.getPrototypeOf(e));return ownKeys$1(e).forEach(function(n){if(n!==DRAFT_STATE){var o=Object.getOwnPropertyDescriptor(e,n),i=o.value;if(o.get){if(!t)throw new Error("Immer drafts cannot have computed properties");i=o.get.call(e)}o.enumerable?r[n]=i:Object.defineProperty(r,n,{value:i,writable:!0,configurable:!0})}}),r}function each(e,t){if(Array.isArray(e))for(var r=0;r<e.length;r++)t(r,e[r],e);else ownKeys$1(e).forEach(function(r){return t(r,e[r],e)})}function isEnumerable(e,t){return Object.getOwnPropertyDescriptor(e,t).enumerable}function has$1(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function is$1(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}var ImmerScope=function(e){this.drafts=[],this.parent=e,this.canAutoFreeze=!0,this.patches=null};function revoke(e){e[DRAFT_STATE].revoke()}ImmerScope.prototype.usePatches=function(e){e&&(this.patches=[],this.inversePatches=[],this.patchListener=e)},ImmerScope.prototype.revoke=function(){this.leave(),this.drafts.forEach(revoke),this.drafts=null},ImmerScope.prototype.leave=function(){this===ImmerScope.current&&(ImmerScope.current=this.parent)},ImmerScope.current=null,ImmerScope.enter=function(){return this.current=new ImmerScope(this.current)};var descriptors={};function willFinalize(e,t,r){e.drafts.forEach(function(e){e[DRAFT_STATE].finalizing=!0}),r?isDraft(t)&&t[DRAFT_STATE].scope===e&&markChangesSweep(e.drafts):(e.patches&&markChangesRecursively(e.drafts[0]),markChangesSweep(e.drafts))}function createProxy(e,t){var r=Array.isArray(e),n=clonePotentialDraft(e);each(n,function(t){proxyProperty(n,t,r||isEnumerable(e,t))});var o=t?t.scope:ImmerScope.current;return createHiddenProperty(n,DRAFT_STATE,{scope:o,modified:!1,finalizing:!1,finalized:!1,assigned:{},parent:t,base:e,draft:n,copy:null,revoke:revoke$1,revoked:!1}),o.drafts.push(n),n}function revoke$1(){this.revoked=!0}function source(e){return e.copy||e.base}function peek(e,t){var r=e[DRAFT_STATE];if(r&&!r.finalizing){r.finalizing=!0;var n=e[t];return r.finalizing=!1,n}return e[t]}function get$2(e,t){assertUnrevoked(e);var r=peek(source(e),t);return e.finalizing?r:r===peek(e.base,t)&&isDraftable(r)?(prepareCopy(e),e.copy[t]=createProxy(r,e)):r}function set$1(e,t,r){if(assertUnrevoked(e),e.assigned[t]=!0,!e.modified){if(is$1(r,peek(source(e),t)))return;markChanged(e),prepareCopy(e)}e.copy[t]=r}function markChanged(e){e.modified||(e.modified=!0,e.parent&&markChanged(e.parent))}function prepareCopy(e){e.copy||(e.copy=clonePotentialDraft(e.base))}function clonePotentialDraft(e){var t=e&&e[DRAFT_STATE];if(t){t.finalizing=!0;var r=shallowCopy(t.draft,!0);return t.finalizing=!1,r}return shallowCopy(e)}function proxyProperty(e,t,r){var n=descriptors[t];n?n.enumerable=r:descriptors[t]=n={configurable:!0,enumerable:r,get:function(){return get$2(this[DRAFT_STATE],t)},set:function(e){set$1(this[DRAFT_STATE],t,e)}},Object.defineProperty(e,t,n)}function assertUnrevoked(e){if(!0===e.revoked)throw new Error("Cannot use a proxy that has been revoked. Did you pass an object from inside an immer function to an async process? "+JSON.stringify(source(e)))}function markChangesSweep(e){for(var t=e.length-1;t>=0;t--){var r=e[t][DRAFT_STATE];r.modified||(Array.isArray(r.base)?hasArrayChanges(r)&&markChanged(r):hasObjectChanges(r)&&markChanged(r))}}function markChangesRecursively(e){if(e&&"object"===(void 0===e?"undefined":_typeof(e))){var t=e[DRAFT_STATE];if(t){var r=t.base,n=t.draft,o=t.assigned;if(Array.isArray(e)){if(hasArrayChanges(t)){if(markChanged(t),o.length=!0,n.length<r.length)for(var i=n.length;i<r.length;i++)o[i]=!1;else for(var a=r.length;a<n.length;a++)o[a]=!0;for(var s=0;s<n.length;s++)void 0===o[s]&&markChangesRecursively(n[s])}}else Object.keys(n).forEach(function(e){void 0!==r[e]||has$1(r,e)?o[e]||markChangesRecursively(n[e]):(o[e]=!0,markChanged(t))}),Object.keys(r).forEach(function(e){void 0!==n[e]||has$1(n,e)||(o[e]=!1,markChanged(t))})}}}function hasObjectChanges(e){for(var t=e.base,r=e.draft,n=Object.keys(r),o=n.length-1;o>=0;o--){var i=n[o],a=t[i];if(void 0===a&&!has$1(t,i))return!0;var s=r[i],c=s&&s[DRAFT_STATE];if(c?c.base!==a:!is$1(s,a))return!0}return n.length!==Object.keys(t).length}function hasArrayChanges(e){var t=e.draft;if(t.length!==e.base.length)return!0;var r=Object.getOwnPropertyDescriptor(t,t.length-1);return!(!r||r.get)}function createHiddenProperty(e,t,r){Object.defineProperty(e,t,{value:r,enumerable:!1,writable:!0})}var legacyProxy=Object.freeze({willFinalize:willFinalize,createProxy:createProxy});function willFinalize$1(){}function createProxy$1(e,t){var r=t?t.scope:ImmerScope.current,n={scope:r,modified:!1,finalized:!1,assigned:{},parent:t,base:e,draft:null,drafts:{},copy:null,revoke:null},o=Array.isArray(e)?Proxy.revocable([n],arrayTraps):Proxy.revocable(n,objectTraps),i=o.revoke,a=o.proxy;return n.draft=a,n.revoke=i,r.drafts.push(a),a}var objectTraps={get:get$1$1,has:function(e,t){return t in source$1(e)},ownKeys:function(e){return Reflect.ownKeys(source$1(e))},set:set$1$1,deleteProperty:deleteProperty,getOwnPropertyDescriptor:getOwnPropertyDescriptor$2,defineProperty:function(){throw new Error("Object.defineProperty() cannot be used on an Immer draft")},getPrototypeOf:function(e){return Object.getPrototypeOf(e.base)},setPrototypeOf:function(){throw new Error("Object.setPrototypeOf() cannot be used on an Immer draft")}},arrayTraps={};function source$1(e){return e.copy||e.base}function peek$1(e,t){var r=e[DRAFT_STATE],n=Reflect.getOwnPropertyDescriptor(r?source$1(r):e,t);return n&&n.value}function get$1$1(e,t){if(t===DRAFT_STATE)return e;var r=e.drafts;if(!e.modified&&has$1(r,t))return r[t];var n=source$1(e)[t];if(e.finalized||!isDraftable(n))return n;if(e.modified){if(n!==peek$1(e.base,t))return n;r=e.copy}return r[t]=createProxy$1(n,e)}function set$1$1(e,t,r){if(!e.modified){var n=peek$1(e.base,t);if(r?is$1(n,r)||r===e.drafts[t]:is$1(n,r)&&t in e.base)return!0;markChanged$1(e)}return e.assigned[t]=!0,e.copy[t]=r,!0}function deleteProperty(e,t){return(void 0!==peek$1(e.base,t)||t in e.base)&&(e.assigned[t]=!1,markChanged$1(e)),e.copy&&delete e.copy[t],!0}function getOwnPropertyDescriptor$2(e,t){var r=source$1(e),n=Reflect.getOwnPropertyDescriptor(r,t);return n&&(n.writable=!0,n.configurable=!Array.isArray(r)||"length"!==t),n}function markChanged$1(e){e.modified||(e.modified=!0,e.copy=assign$3(shallowCopy(e.base),e.drafts),e.drafts=null,e.parent&&markChanged$1(e.parent))}each(objectTraps,function(e,t){arrayTraps[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}}),arrayTraps.deleteProperty=function(e,t){if(isNaN(parseInt(t)))throw new Error("Immer only supports deleting array indices");return objectTraps.deleteProperty.call(this,e[0],t)},arrayTraps.set=function(e,t,r){if("length"!==t&&isNaN(parseInt(t)))throw new Error("Immer only supports setting array indices and the 'length' property");return objectTraps.set.call(this,e[0],t,r)};var modernProxy=Object.freeze({willFinalize:willFinalize$1,createProxy:createProxy$1});function generatePatches(e,t,r,n){Array.isArray(e.base)?generateArrayPatches(e,t,r,n):generateObjectPatches(e,t,r,n)}function generateArrayPatches(e,t,r,n){var o,i,a=e.base,s=e.copy,c=e.assigned;s.length<a.length&&(a=(o=[s,a])[0],s=o[1],r=(i=[n,r])[0],n=i[1]);for(var u=s.length-a.length,l=0;a[l]===s[l]&&l<a.length;)++l;for(var p=a.length;p>l&&a[p-1]===s[p+u-1];)--p;for(var f=l;f<p;++f)if(c[f]&&s[f]!==a[f]){var h=t.concat([f]);r.push({op:"replace",path:h,value:s[f]}),n.push({op:"replace",path:h,value:a[f]})}for(var _=p!=a.length,d=r.length,b=p+u-1;b>=p;--b){var y=t.concat([b]);r[d+b-p]={op:"add",path:y,value:s[b]},_&&n.push({op:"remove",path:y})}_||n.push({op:"replace",path:t.concat(["length"]),value:a.length})}function generateObjectPatches(e,t,r,n){var o=e.base,i=e.copy;each(e.assigned,function(e,a){var s=o[e],c=i[e],u=a?e in o?"replace":"add":"remove";if(s!==c||"replace"!==u){var l=t.concat(e);r.push("remove"===u?{op:u,path:l}:{op:u,path:l,value:c}),n.push("add"===u?{op:"remove",path:l}:"remove"===u?{op:"add",path:l,value:s}:{op:"replace",path:l,value:s})}})}function applyPatches(e,t){for(var r=0;r<t.length;r++){var n=t[r],o=n.path;if(0===o.length&&"replace"===n.op)e=n.value;else{for(var i=e,a=0;a<o.length-1;a++)if(!(i=i[o[a]])||"object"!==(void 0===i?"undefined":_typeof(i)))throw new Error("Cannot apply patch, path doesn't resolve: "+o.join("/"));var s=o[o.length-1];switch(n.op){case"replace":i[s]=n.value;break;case"add":Array.isArray(i)?i.splice(s,0,n.value):i[s]=n.value;break;case"remove":Array.isArray(i)?i.splice(s,1):delete i[s];break;default:throw new Error("Unsupported patch operation: "+n.op)}}}return e}function verifyMinified(){}var configDefaults={useProxies:"undefined"!=typeof Proxy&&"undefined"!=typeof Reflect,autoFreeze:void 0===process$4&&"verifyMinified"===verifyMinified.name,onAssign:null,onDelete:null,onCopy:null},Immer=function(e){assign$3(this,configDefaults,e),this.setUseProxies(this.useProxies),this.produce=this.produce.bind(this)};Immer.prototype.produce=function(e,t,r){var n,o=this;if("function"==typeof e&&"function"!=typeof t){var i=t;return t=e,function(e){void 0===e&&(e=i);for(var r=[],n=arguments.length-1;n-- >0;)r[n]=arguments[n+1];return o.produce(e,function(e){return t.call.apply(t,[e,e].concat(r))})}}if("function"!=typeof t)throw new Error("The first or second argument to `produce` must be a function");if(void 0!==r&&"function"!=typeof r)throw new Error("The third argument to `produce` must be a function or undefined");if(isDraftable(e)){var a=ImmerScope.enter(),s=this.createProxy(e),c=!0;try{n=t.call(s,s),c=!1}finally{c?a.revoke():a.leave()}return n instanceof Promise?n.then(function(e){return a.usePatches(r),o.processResult(e,a)},function(e){throw a.revoke(),e}):(a.usePatches(r),this.processResult(n,a))}return void 0===(n=t(e))?e:n!==NOTHING?n:void 0},Immer.prototype.createDraft=function(e){if(!isDraftable(e))throw new Error("First argument to `createDraft` must be a plain object, an array, or an immerable object");var t=ImmerScope.enter(),r=this.createProxy(e);return r[DRAFT_STATE].isManual=!0,t.leave(),r},Immer.prototype.finishDraft=function(e,t){var r=e&&e[DRAFT_STATE];if(!r||!r.isManual)throw new Error("First argument to `finishDraft` must be a draft returned by `createDraft`");if(r.finalized)throw new Error("The given draft is already finalized");var n=r.scope;return n.usePatches(t),this.processResult(void 0,n)},Immer.prototype.setAutoFreeze=function(e){this.autoFreeze=e},Immer.prototype.setUseProxies=function(e){this.useProxies=e,assign$3(this,e?modernProxy:legacyProxy)},Immer.prototype.applyPatches=function(e,t){return isDraft(e)?applyPatches(e,t):this.produce(e,function(e){return applyPatches(e,t)})},Immer.prototype.processResult=function(e,t){var r=t.drafts[0],n=void 0!==e&&e!==r;if(this.willFinalize(t,e,n),n){if(r[DRAFT_STATE].modified)throw t.revoke(),new Error("An immer producer returned a new value *and* modified its draft. Either return a new value *or* modify the draft.");isDraftable(e)&&(e=this.finalize(e,null,t)),t.patches&&(t.patches.push({op:"replace",path:[],value:e}),t.inversePatches.push({op:"replace",path:[],value:r[DRAFT_STATE].base}))}else e=this.finalize(r,[],t);return t.revoke(),t.patches&&t.patchListener(t.patches,t.inversePatches),e!==NOTHING?e:void 0},Immer.prototype.finalize=function(e,t,r){var n=this,o=e[DRAFT_STATE];if(!o)return Object.isFrozen(e)?e:this.finalizeTree(e,null,r);if(o.scope!==r)return e;if(!o.modified)return o.base;if(!o.finalized){if(o.finalized=!0,this.finalizeTree(o.draft,t,r),this.onDelete)if(this.useProxies){var i=o.assigned;for(var a in i)i[a]||this.onDelete(o,a)}else{var s=o.base,c=o.copy;each(s,function(e){has$1(c,e)||n.onDelete(o,e)})}this.onCopy&&this.onCopy(o),this.autoFreeze&&r.canAutoFreeze&&Object.freeze(o.copy),t&&r.patches&&generatePatches(o,t,r.patches,r.inversePatches)}return o.copy},Immer.prototype.finalizeTree=function(e,t,r){var n=this,o=e[DRAFT_STATE];o&&(this.useProxies||(o.copy=shallowCopy(o.draft,!0)),e=o.copy);var i=!!t&&!!r.patches;return each(e,function a(s,c,u){if(c===u)throw Error("Immer forbids circular references");var l=!!o&&u===e;if(isDraft(c)){var p=l&&i&&!o.assigned[s]?t.concat(s):null;if(isDraft(c=n.finalize(c,p,r))&&(r.canAutoFreeze=!1),Array.isArray(u)||isEnumerable(u,s)?u[s]=c:Object.defineProperty(u,s,{value:c}),l&&c===o.base[s])return}else{if(l&&is$1(c,o.base[s]))return;isDraftable(c)&&!Object.isFrozen(c)&&each(c,a)}l&&n.onAssign&&n.onAssign(o,s,c)}),e};var immer=new Immer,produce=immer.produce,setAutoFreeze=immer.setAutoFreeze.bind(immer),setUseProxies=immer.setUseProxies.bind(immer),applyPatches$1=immer.applyPatches.bind(immer),createDraft=immer.createDraft.bind(immer),finishDraft=immer.finishDraft.bind(immer),dist=createCommonjsModule(function(e,t){var r=commonjsGlobal&&commonjsGlobal.__assign||function(){return(r=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)};function n(e){var t={},n=o(e,t);return n.caseWithAction=function(e,r){return t[e.type]=r,n},n.case=function(e,t){return n.caseWithAction(e,function(e,r){return t(e,r.payload)})},n.casesWithAction=function(e,t){for(var r=0,o=e;r<o.length;r++){var i=o[r];n.caseWithAction(i,t)}return n},n.cases=function(e,t){return n.casesWithAction(e,function(e,r){return t(e,r.payload)})},n.withHandling=function(e){return e(n)},n.default=function(n){return o(e,r({},t),n)},n.build=function(){return o(e,r({},t))},n}function o(e,t,r){return function(n,o){void 0===n&&(n=e);var i=t[o.type]||r;return i?i(n,o):n}}Object.defineProperty(t,"__esModule",{value:!0}),t.reducerWithInitialState=function(e){return n(e)},t.reducerWithoutInitialState=function(){return n()},t.upcastingReducer=function(){return n()}});unwrapExports(dist);var dist_1=dist.reducerWithInitialState,dist_2=dist.reducerWithoutInitialState,dist_3=dist.upcastingReducer,ServiceOperationState;!function(e){e.pending="pending",e.done="done",e.exception="exception"}(ServiceOperationState||(ServiceOperationState={}));var containerInitializedReducer=dist_1(!1).case(containerInitializerCreator,function(e,t){return t.status}),applicationInitializedReducer=dist_1(!1).case(applicationInitializerCreator,function(e,t){return t.status}),globalInitializedReducer=dist_1(!1).case(globalInitializerCreator,function(e,t){return t.status}),reducerBusReady=dist_1(!1).case(GEO_API_PROXY_READYCreator,function(e,t){return t.ready}),geoApplicationInitializedReducer=dist_1(!1).case(initApplicationAsyncCreator.done,function(e,t){return t.result.done}),initialization={containerInitializedReducer:containerInitializedReducer,applicationInitializedReducer:applicationInitializedReducer,globalInitializedReducer:globalInitializedReducer,geoApplicationInitializedReducer:geoApplicationInitializedReducer,reducerBusReady:reducerBusReady},updateStoreDefinition=function(e,t){var r={},n=["com.bg.functionality.search.Search","com.bg.functionality.map.layer.Analysis","com.bg.functionality.analysis2.Analysis2","com.bg.functionality.infosheet.InfoSheet","com.bg.functionality.stat.Statistic","com.bg.functionality.geometrymodification.GeometryModification"];for(var o in t.functionalities)if(t.functionalities.hasOwnProperty(o)){var i=t.functionalities[o];if(void 0!==i["@type"]){var a=i["@type"];if(-1!==n.indexOf(a)&&void 0!==i.id)r[i.id]=t.functionalities[o]}}return t.map&&(t.map=getNewMapStore(e.map,{map:t.map})),_extends({},e,t,{functionalities:r})},reducerApplicationInited=dist_2().case(INIT_APPLICATION_STATECreator,updateStoreDefinition),reducerApplicationInitialState=dist_2().case(GEO_API_PROXY_READYCreator,function(e,t){return updateStoreDefinition(e,t.state)});function reduceMapEntries(e){var t={},r=!0,n=!1,o=void 0;try{for(var i,a=e[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value,c=void 0,u=!1;if("com.bg.functionality.map.layer.GroupMapEntry"===s["@type"]&&(c=s,u=!0),"com.bg.functionality.map.layer.VectorLayerMapEntry"===s["@type"]&&(c=s,u=!0),"com.bg.functionality.map.layer.SpatialDataMapEntry"===s["@type"]&&(c=s,u=!0),"com.bg.functionality.map.layer.WebServiceMapEntry"===s["@type"]&&(c=s,u=!0),"com.bg.functionality.map.layer.RasterMapEntry"===s["@type"]&&(c=s,u=!0),!u)throw new Error("type of entry not found");if(void 0!==c){var l=c.key;void 0!==c.entries&&Array.isArray(c.entries)&&(c.entries=reduceMapEntries(c.entries)),t[l]=c}}}catch(e){n=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw o}}return t}var getNewMapStore=function(e,t){Array.isArray(t.map.markers)&&(t.map.markers={});var r={};Array.isArray(t.map.entries)&&(r=reduceMapEntries(t.map.entries));var n=_extends({},e,t.map);return n.entries=r,n.initialized=!0,n},reducersMap=dist_1({}).case(mapAndAppInitializerCreator,function(e,t){var r=getNewMapStore(e,t);return r.initialized=!0,r}).case(MAP_ENTRIES_UPDATEDCreator,function(e,t){return null!=e?produce(e,function(e){if(Array.isArray(t.entries)){var r=function t(r,n){if(r[n.key])_extends(r[n.key],n);else for(var o in e.entries)if(e.entries.hasOwnProperty(o)){var i=e.entries[o];void 0!==i.entries&&i.entries&&t(i.entries,n)}};void 0===e.entries&&(e.entries={});var n=t.entries;for(var o in n)n.hasOwnProperty(o)&&r(e.entries,n[o])}}):e}).case(UPDATE_EXTENTCreator,function(e,t){return _extends({},e,{extent:t.extent,position:t.center,scaleDenominator:t.scaleDenominator})}).case(UPDATE_MARKERSCreator,function(e,t){var r={};if(void 0!==t.markers){var n=void 0;for(n in t.markers)if(t.markers.hasOwnProperty(n)){var o=t.markers[n];void 0!==o&&(r[o.id]=o)}}return _extends({},e,{markers:r})}).case(addMarkersAsyncCreator.done,function(e,t){var r={},n=t.result;if(e.markers&&void 0!==e.markers&&(r=e.markers),void 0!==n.markers){var o=void 0;for(o in n.markers)if(n.markers.hasOwnProperty(o)){var i=n.markers[o];void 0!==i&&(r[i.id]=i)}}return _extends({},e,{markers:r})}).case(MAP_EVENTCreator,function(e,t){switch(t.eventName){case"POINTER_MOVE":return _extends({},e,{pointerMove:t.args});case"POINTER_CLICK":return _extends({},e,{pointerClick:t.args});default:return e}}).case(zoomInAsyncCreator.done,function(e,t){return _extends({},e)}).case(SELECTION_TOOL_MODE_UPDATEDCreator,function(e,t){return _extends({},e,{selectionToolMode:t.mode})}),reducerEventBus=dist_1(null).case(EVENT_GEOCreator,function(e,t){return t}),reducerServiceDone=dist_1({}).casesWithAction([serviceFeatureTransactionAsyncCreator.started,serviceExecuteSearchAsyncCreator.started,serviceLocalizeAddressAsyncCreator.started],function(e,t){return t.payload.transient?produce(e,function(e){var r=t.payload.id,n={id:r,state:ServiceOperationState.pending,type:t.payload.kindService,params:t.payload.parameters,transient:!0};n=n,e[r]={id:r,state:ServiceOperationState.pending,transient:!0,type:t.payload.kindService,operation:n}}):e}).casesWithAction([serviceExecuteSearchAsyncCreator.done,serviceFeatureTransactionAsyncCreator.done,serviceLocalizeAddressAsyncCreator.done],function(e,t){return t.meta.transient?produce(e,function(e){var r=t.payload.params.id,n={id:t.payload.params.id,result:t.payload.result.result,params:t.payload.params,type:t.payload.params.kindService,transient:!0};e[r]={id:r,state:ServiceOperationState.done,transient:!0,type:t.payload.params.kindService,operation:n}}):e}).casesWithAction([serviceExecuteSearchAsyncCreator.failed,serviceFeatureTransactionAsyncCreator.failed,serviceLocalizeAddressAsyncCreator.failed],function(e,t){return t.meta.transient?produce(e,function(e){var r=t.payload.params.id,n={id:t.payload.params.id,error:t.payload.error,type:t.payload.params.kindService,transient:!0};e[r]={id:r,state:ServiceOperationState.exception,transient:!0,type:t.payload.params.kindService,operation:n}}):e}).casesWithAction([clearServiceCreator],function(e,t){var r=t.payload.id;return null!=e[r]?produce(e,function(e){delete e[r]}):e}),reducersFunctionalities=dist_1({}).case(UPDATE_FUNCTIONALITIES_STATECreator,function(e,t){return produce(e,function(e){for(var r in t.configurations)if(t.configurations.hasOwnProperty(r)){var n=t.configurations[r],o=n.functionality.id;o&&(e[o].active=n.active)}})}).case(UPDATE_FUNCTIONALITY_STATECreator,function(e,t){return produce(e,function(e){var r=t.configuration,n=r.functionality.id;n&&(e[n].active=r.active,e[n].visible=r.visible,e[n].results=t.resultset,e[n].parameters=t.parameters)})}),reducersSelection=dist_1([]).case(UPDATE_SELECTIONCreator,function(e,t){return t.selection});function uidReducer(){return arguments.length>0&&void 0!==arguments[0]?arguments[0]:null}function configurationsReducer(e,t){return void 0===e?null:e}function reducersId(e,t){return void 0===e?null:e}function errorReducers(e,t){return void 0===e?null:e}var reducersGlobalParameters=dist_1([]).case(UPDATE_GLOBAL_PARAMETERCreator,function(e,t){if(void 0===e)return null;var r=void 0;if(e){var n=e;if(t){var o=t.globalParameters;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];for(var s in n)if(n.hasOwnProperty(s)){var c=n[s];c.id===a.id&&(c=_extends(c,a))}}}r=_extends({},n)}else r=e;return r}),reducersDataHistory=dist_1(null).case(UPDATE_FILTER_HISTORY_TIMESTAMPCreator,function(e,t){if(void 0===t||void 0===t.timestamp)return null;var r=_extends({},e);return _extends(r,t),r}),reducersBaseLayer=dist_1([]).case(BASELAYERS_UPDATEDCreator,function(e,t){if(e&&t){var r=t.baseLayers;return e.map(function(e){return _extends({},r.find(function(t){return t.id===e.id&&void 0!==t}),e)})}return e}),resourcesReducer=function(e,t){return void 0===e?null:e},reducersComponents=dist_1({}).case(COMPONENTS_STATE_UPDATEDCreator,function(e,t){if(void 0===e)return null;var r=void 0;if(e){var n=e;if(t){var o=t.components;for(var i in o)if(o.hasOwnProperty(i)){var a=o[i];if(n.hasOwnProperty(i)){var s=n[i];s=_extends(s,a)}}}r=_extends({},n)}else r=e;return r}),reduceravailableCRS=dist_1([]).case(PROJECTION_LOADEDCreator,function(e,t){if(void 0===e||-1!==e.indexOf(t.crs))return e;var r=Array.concat([],e);return r.push(t.crs),r}),rootReducer=combineReducers({applicationInitialized:initialization.applicationInitializedReducer,containerInitialized:initialization.containerInitializedReducer,geoApplicationInitialized:initialization.geoApplicationInitializedReducer,initialized:initialization.globalInitializedReducer,busReady:initialization.reducerBusReady,baseLayers:reducersBaseLayer,components:reducersComponents,configurations:configurationsReducer,error:errorReducers,events:reducerEventBus,functionalities:reducersFunctionalities,globalParameters:reducersGlobalParameters,id:reducersId,map:reducersMap,resources:resourcesReducer,selection:reducersSelection,servicesOperations:reducerServiceDone,uid:uidReducer,history:reducersDataHistory,availableCRS:reduceravailableCRS}),reducerApp=function(e,t){var r=rootReducer(e,t);return r=_extends({},e,r),"FAILED"===t.type.substr(-6)&&(r.error=t.payload),r=reducerApplicationInited(r,t),r=reducerApplicationInitialState(r,t)},mainReducer=reducerApp,Selection=function(){function e(){classCallCheck(this,e),this.features=[],this.path="features",this.store=null,this.observers={}}return createClass(e,[{key:"connect",value:function(e){var t=this,r=reduxWatch(function(){return stateOfSelection(e.getState())});e.subscribe(r(function(e,r,n){t.features=e})),this.store=e}},{key:"reset",value:function(e){if(null==this.store)throw new Error("store is null");return fromPromise_1(resetSelectionCreatorP(e,this.store.dispatch))}},{key:"add",value:function(e,t){if(null==this.store)throw new Error("store is null");return fromPromise_1(addToSelectionCreatorP({features:e,replace:t},this.store.dispatch))}},{key:"remove",value:function(e){if(null==this.store)throw new Error("store is null");return fromPromise_1(removeFromSelectionCreatorP({features:e},this.store.dispatch))}}]),e}();Selection=__decorate([Watch({}),__metadata("design:paramtypes",[])],Selection);var ContainerBase=function(){function e(t,r){classCallCheck(this,e),this.uidApplication=t,this.configuration=r}return createClass(e,[{key:"connect",value:function(e){this.store=e}}]),e}(),IframeContainer=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(null==r.elementId||null==r.applicationId)throw new Error("application within an iframe must have an element id and an application id");n.elementId=r.elementId,n.url=new URL(r.applicationId);var o=document.getElementById(n.elementId);if(null==o)throw new TypeError("Invalid Html id");if(n.domElement=o,n.iframe=window.document.createElement("IFRAME"),n.iframe.id="geoappiframe_"+e,n.iframe.frameBorder="0",n.iframe.style.width="100%",n.iframe.style.height="100%",r.domain){if(t.domain&&t.domain!==r.domain)throw new Error("a different domain has already be set for this page");t.domain=r.domain}return n}return inherits(t,ContainerBase),createClass(t,[{key:"allowedSyncFunctions",value:function(){var e=t.domain||getDomainFromUrl(this.url.toString());return(t.domain||getDomain())===e||window.document.domain.split(".").reverse().splice(0,2).reverse().join(".")===e.split(".").reverse().splice(0,2).reverse().join(".")}},{key:"retreiveRealContext",value:function(e){return this.allowedSyncFunctions()?ApplicationContext.SAME_DOMAIN_FRAME:ApplicationContext.CROSS_DOMAIN_FRAME_PARENT}},{key:"render",value:function(){if(void 0===this.store)throw new Error("Rendering of a store must be called after it has been connected to a store");if(null===this.uidApplication)throw new Error("uidApplication is empty");t.domain&&(window.document.domain=t.domain),this.url.searchParams.set("uidapi",this.uidApplication),this.iframe.src=this.url.href,this.domElement.innerHTML="",this.domElement.appendChild(this.iframe),this.store.dispatch(containerInitializerCreator({status:!0}))}},{key:"window",get:function(){if(!this.iframe||!this.iframe.contentWindow)throw new Error("iframe has not been initialized");return this.iframe.contentWindow}}]),t}(),ParentContainer=function(e){function t(e,r){classCallCheck(this,t);var n=possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(null==r.applicationId)throw new Error("unknow window url");if(n.url=new URL(r.applicationId),r.domain){if(t.domain&&t.domain!==r.domain)throw new Error("a different domain has already be set for this page");t.domain=r.domain}return n}return inherits(t,ContainerBase),createClass(t,[{key:"hasParent",value:function(){var e=getAncestor(window);return void 0!==e&&e!==window}},{key:"allowedSyncFunctions",value:function(){var e=t.domain||getDomainFromUrl(this.url.toString());return(t.domain||getDomain())===e||window.document.domain.split(".").reverse().splice(0,2).reverse().join(".")===e.split(".").reverse().splice(0,2).reverse().join(".")}},{key:"retreiveRealContext",value:function(e){return this.allowedSyncFunctions()?ApplicationContext.SAME_DOMAIN_FRAME:ApplicationContext.CROSS_DOMAIN_FRAME_PARENT}},{key:"render",value:function(){}},{key:"origin",get:function(){}},{key:"domain",get:function(){}},{key:"window",get:function(){var e=getAncestor();if(!e)throw new Error("Application is not in an Iframe");return e}}]),t}(),EmbededContainer=function(e){function t(e,r){return classCallCheck(this,t),possibleConstructorReturn(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r))}return inherits(t,ContainerBase),createClass(t,[{key:"allowedSyncFunctions",value:function(){return!0}},{key:"retreiveRealContext",value:function(e){return ApplicationContext.IN_WINDOW}},{key:"render",value:function(){if(void 0===this.store)throw new Error("Rendering of a store must be called after it has been connected to a store");this.store.dispatch(containerInitializerCreator({status:!0}))}},{key:"window",get:function(){return window}},{key:"eventHandler",get:function(){var e=this.configuration&&this.configuration.config&&this.configuration.config.bus&&this.configuration.config.bus.scope;if(!e)throw new Error("Scope was empty");return e}}]),t}(),_CONTAINER_STRATEGIES,CONTAINER_STRATEGIES=(_CONTAINER_STRATEGIES={},defineProperty(_CONTAINER_STRATEGIES,ApplicationContext.CROSS_DOMAIN_FRAME,IframeContainer),defineProperty(_CONTAINER_STRATEGIES,ApplicationContext.CROSS_DOMAIN_FRAME_GEOM,ParentContainer),defineProperty(_CONTAINER_STRATEGIES,ApplicationContext.CROSS_DOMAIN_FRAME_PARENT,IframeContainer),defineProperty(_CONTAINER_STRATEGIES,ApplicationContext.SAME_DOMAIN_FRAME,IframeContainer),defineProperty(_CONTAINER_STRATEGIES,ApplicationContext.IN_WINDOW,EmbededContainer),_CONTAINER_STRATEGIES),Container=function(e,t){var r=t.applicationContext;if(!r)throw new Error("Undefined application type");return new CONTAINER_STRATEGIES[r](e,t)},isMergeableObject=function(e){return isNonNullObject(e)&&!isSpecial(e)};function isNonNullObject(e){return!!e&&"object"===(void 0===e?"undefined":_typeof(e))}function isSpecial(e){var t=Object.prototype.toString.call(e);return"[object RegExp]"===t||"[object Date]"===t||isReactElement(e)}var canUseSymbol="function"==typeof Symbol&&Symbol.for,REACT_ELEMENT_TYPE=canUseSymbol?Symbol.for("react.element"):60103;function isReactElement(e){return e.$$typeof===REACT_ELEMENT_TYPE}function emptyTarget(e){return Array.isArray(e)?[]:{}}function cloneUnlessOtherwiseSpecified(e,t){return!1!==t.clone&&t.isMergeableObject(e)?deepmerge(emptyTarget(e),e,t):e}function defaultArrayMerge(e,t,r){return e.concat(t).map(function(e){return cloneUnlessOtherwiseSpecified(e,r)})}function getMergeFunction(e,t){if(!t.customMerge)return deepmerge;var r=t.customMerge(e);return"function"==typeof r?r:deepmerge}function getEnumerableOwnPropertySymbols(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return e.propertyIsEnumerable(t)}):[]}function getKeys$1(e){return Object.keys(e).concat(getEnumerableOwnPropertySymbols(e))}function mergeObject(e,t,r){var n={};return r.isMergeableObject(e)&&getKeys$1(e).forEach(function(t){n[t]=cloneUnlessOtherwiseSpecified(e[t],r)}),getKeys$1(t).forEach(function(o){r.isMergeableObject(t[o])&&e[o]?n[o]=getMergeFunction(o,r)(e[o],t[o],r):n[o]=cloneUnlessOtherwiseSpecified(t[o],r)}),n}function deepmerge(e,t,r){(r=r||{}).arrayMerge=r.arrayMerge||defaultArrayMerge,r.isMergeableObject=r.isMergeableObject||isMergeableObject;var n=Array.isArray(t);return n===Array.isArray(e)?n?r.arrayMerge(e,t,r):mergeObject(e,t,r):cloneUnlessOtherwiseSpecified(t,r)}deepmerge.all=function(e,t){if(!Array.isArray(e))throw new Error("first argument should be an array");return e.reduce(function(e,r){return deepmerge(e,r,t)},{})};var deepmerge_1=deepmerge,cjs=deepmerge_1;function isObject$3(e){return null!=e&&"object"===(void 0===e?"undefined":_typeof(e))&&!1===Array.isArray(e)}function isObjectObject(e){return!0===isObject$3(e)&&"[object Object]"===Object.prototype.toString.call(e)}function isPlainObject$1(e){var t,r;return!1!==isObjectObject(e)&&("function"==typeof(t=e.constructor)&&(!1!==isObjectObject(r=t.prototype)&&!1!==r.hasOwnProperty("isPrototypeOf")))}function handleFunctionalities(e){var t=[],r={};if(r.executionOptions={map:{localize:!1,highlight:!0},results:{show:!0}},e.proxSearchesList&&e.proxSearchesList.length>0&&e.proxSearchesList.forEach(function(e){t.push({name:e,startUp:!0,parameters:r,"@type":CodeResourceType["com.bg.functionality.search.Search"]})}),e.searchName){var n={select:!0,queryLimit:5e3,executionOptions:{map:{localize:!0,highlight:!0},results:{show:!0}}};if(e.noSelect&&(n.executionOptions={map:{localize:!0,highlight:!0},results:{show:!1}},n.select=!1),n.containerId="__globalSearch__",e.searchFilters){var o=[];e.searchFilters.forEach(function(e){var t={attribute:e.attribute,values:e.values};o.push(t)}),n.filters=o}else console.warn("no found search filters");t.push({name:e.searchName,startUp:!0,parameters:n,"@type":CodeResourceType["com.bg.functionality.search.Search"]})}return t}function handleMap(e){var t={};if(e.extent&&(t.extent=new Extent({minX:Number(e.extent[3]),maxX:Number(e.extent[2]),minY:Number(e.extent[1]),maxY:Number(e.extent[0])})),e.legend){var r={},n=0;e.legend.forEach(function(e){var t=e.split("="),o=t[0],i="1"===t[1];r[n]={name:o,visible:i,key:""},n++}),t.entries=r}if(e.markers){var o=[];e.markers.forEach(function(e){o.push({position:e.position,id:e.id,size:e.size,tooltip:e.tooltip,imageUrl:e.imageUrl})}),t.markers=o}return t}var ApplyUrlV1=function(e){if(!e.mapId)return{};var t={};if(e.showProxSearchBar||(t.FunctionsLauncher={visible:!1,properties:{}}),e.showTextSearch||(t.SearchBox={visible:!1,properties:{}}),e.showTMSSwitch||(t.BaseLayerSwitcher={visible:!1,properties:{}}),e.showScale||(t.ScaleLine=t.ScalePicker={visible:!1,properties:{}}),e.textSearchesRestrictList){var r=e.textSearchesRestrictList;t.SearchBox||(t.SearchBox={visible:r&&0!==r.length||!1,properties:{}}),t.SearchBox.properties={available:{searchesNames:r}}}if(e.showExtras?t.LayerControl={visible:!0,properties:{}}:(!t.FunctionsLauncher||t.FunctionsLauncher.visible||!t.SearchBox||t.SearchBox.visible||!t.BaseLayerSwitcher||t.BaseLayerSwitcher.visible?t.Header={visible:!0}:t.Header={visible:!1},t.LayerControl={visible:!1,properties:{}}),e.showTOC?(t.RightPanel={visible:!0},t.SidePanel={visible:!0}):(t.RightPanel={visible:!1,properties:{}},t.SidePanel={visible:!1,properties:{}}),e.proxSearchesRestrictList){t.FunctionsLauncher||(t.FunctionsLauncher={visible:!0,properties:{}});var n={functionalitiesNames:e.proxSearchesRestrictList};t.FunctionsLauncher.properties=n}var o={components:t,map:handleMap(e),functionalities:handleFunctionalities(e)};return e.forceNoMobile&&(o.isMobile=!1),e.themePath&&(o.theme={extraCss:e.themePath}),o},ApplyUrlV2=function(e){return e.application?e.application:{}},ApiUrlV1=function e(){classCallCheck(this,e),this.mapId=void 0,this.showProxSearchBar=!1,this.showTMSSwitch=!1,this.showScale=!1,this.showHome=!1,this.showTextSearch=!1,this.showExtras=!1,this.showNavigation=!1,this.showTOC=!1,this.textSearchesRestrictList=void 0,this.proxSearchesRestrictList=void 0,this.proxSearchesList=void 0,this.searchName=void 0,this.searchFilters=void 0,this.noSelect=void 0,this.forceNoMobile=!1,this.themePath=void 0},strictUriEncode=function(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16).toUpperCase()})},strictUriEncode$1={default:strictUriEncode,__moduleExports:strictUriEncode},token="%[a-f0-9]{2}",singleMatcher=new RegExp(token,"gi"),multiMatcher=new RegExp("("+token+")+","gi");function decodeComponents(e,t){try{return decodeURIComponent(e.join(""))}catch(e){}if(1===e.length)return e;t=t||1;var r=e.slice(0,t),n=e.slice(t);return Array.prototype.concat.call([],decodeComponents(r),decodeComponents(n))}function decode(e){try{return decodeURIComponent(e)}catch(n){for(var t=e.match(singleMatcher),r=1;r<t.length;r++)t=(e=decodeComponents(t,r).join("")).match(singleMatcher);return e}}function customDecodeURIComponent(e){for(var t={"%FE%FF":"��","%FF%FE":"��"},r=multiMatcher.exec(e);r;){try{t[r[0]]=decodeURIComponent(r[0])}catch(e){var n=decode(r[0]);n!==r[0]&&(t[r[0]]=n)}r=multiMatcher.exec(e)}t["%C2"]="�";for(var o=Object.keys(t),i=0;i<o.length;i++){var a=o[i];e=e.replace(new RegExp(a,"g"),t[a])}return e}var decodeUriComponent=function(e){if("string"!=typeof e)throw new TypeError("Expected `encodedURI` to be of type `string`, got `"+(void 0===e?"undefined":_typeof(e))+"`");try{return e=e.replace(/\+/g," "),decodeURIComponent(e)}catch(t){return customDecodeURIComponent(e)}},decodeUriComponent$1={default:decodeUriComponent,__moduleExports:decodeUriComponent},splitOnFirst=createCommonjsModule(function(e){e.exports=function(e,t){if("string"!=typeof e||"string"!=typeof t)throw new TypeError("Expected the arguments to be of type `string`");if(""===t)return[e];var r=e.indexOf(t);return-1===r?[e]:[e.slice(0,r),e.slice(r+t.length)]}}),splitOnFirst$1={default:splitOnFirst,__moduleExports:splitOnFirst},strictUriEncode$2=strictUriEncode$1&&strictUriEncode||strictUriEncode$1,decodeComponent=decodeUriComponent$1&&decodeUriComponent||decodeUriComponent$1,splitOnFirst$2=splitOnFirst$1&&splitOnFirst||splitOnFirst$1,queryString=createCommonjsModule(function(e,t){function r(e,t){return t.encode?t.strict?strictUriEncode$2(e):encodeURIComponent(e):e}function n(e,t){return t.decode?decodeComponent(e):e}function o(e){var t=e.indexOf("#");return-1!==t&&(e=e.slice(0,t)),e}function i(e){var t=(e=o(e)).indexOf("?");return-1===t?"":e.slice(t+1)}function a(e,t){var r=function(e){var t=void 0;switch(e.arrayFormat){case"index":return function(e,r,n){t=/\[(\d*)\]$/.exec(e),e=e.replace(/\[\d*\]$/,""),t?(void 0===n[e]&&(n[e]={}),n[e][t[1]]=r):n[e]=r};case"bracket":return function(e,r,n){t=/(\[\])$/.exec(e),e=e.replace(/\[\]$/,""),t?void 0!==n[e]?n[e]=[].concat(n[e],r):n[e]=[r]:n[e]=r};case"comma":return function(e,t,r){var n="string"==typeof t&&t.split("").indexOf(",")>-1?t.split(","):t;r[e]=n};default:return function(e,t,r){void 0!==r[e]?r[e]=[].concat(r[e],t):r[e]=t}}}(t=_extends({decode:!0,sort:!0,arrayFormat:"none",parseNumbers:!1,parseBooleans:!1},t)),o=Object.create(null);if("string"!=typeof e)return o;if(!(e=e.trim().replace(/^[?#&]/,"")))return o;var i=!0,a=!1,s=void 0;try{for(var c,u=e.split("&")[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var l=c.value,p=splitOnFirst$2(l.replace(/\+/g," "),"="),f=slicedToArray(p,2),h=f[0],_=f[1];_=void 0===_?null:n(_,t),t.parseNumbers&&!Number.isNaN(Number(_))&&"string"==typeof _&&""!==_.trim()?_=Number(_):!t.parseBooleans||null===_||"true"!==_.toLowerCase()&&"false"!==_.toLowerCase()||(_="true"===_.toLowerCase()),r(n(h,t),_,o)}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}return!1===t.sort?o:(!0===t.sort?Object.keys(o).sort():Object.keys(o).sort(t.sort)).reduce(function(e,t){var r=o[t];return Boolean(r)&&"object"===(void 0===r?"undefined":_typeof(r))&&!Array.isArray(r)?e[t]=function e(t){return Array.isArray(t)?t.sort():"object"===(void 0===t?"undefined":_typeof(t))?e(Object.keys(t)).sort(function(e,t){return Number(e)-Number(t)}).map(function(e){return t[e]}):t}(r):e[t]=r,e},Object.create(null))}t.extract=i,t.parse=a,t.stringify=function(e,t){if(!e)return"";var n=function(e){switch(e.arrayFormat){case"index":return function(t){return function(n,o){var i=n.length;return void 0===o?n:[].concat(toConsumableArray(n),null===o?[[r(t,e),"[",i,"]"].join("")]:[[r(t,e),"[",r(i,e),"]=",r(o,e)].join("")])}};case"bracket":return function(t){return function(n,o){return void 0===o?n:[].concat(toConsumableArray(n),null===o?[[r(t,e),"[]"].join("")]:[[r(t,e),"[]=",r(o,e)].join("")])}};case"comma":return function(t){return function(n,o,i){return null==o||0===o.length?n:0===i?[[r(t,e),"=",r(o,e)].join("")]:[[n,r(o,e)].join(",")]}};default:return function(t){return function(n,o){return void 0===o?n:[].concat(toConsumableArray(n),null===o?[r(t,e)]:[[r(t,e),"=",r(o,e)].join("")])}}}}(t=_extends({encode:!0,strict:!0,arrayFormat:"none"},t)),o=Object.keys(e);return!1!==t.sort&&o.sort(t.sort),o.map(function(o){var i=e[o];return void 0===i?"":null===i?r(o,t):Array.isArray(i)?i.reduce(n(o),[]).join("&"):r(o,t)+"="+r(i,t)}).filter(function(e){return e.length>0}).join("&")},t.parseUrl=function(e,t){return{url:o(e).split("?")[0]||"",query:a(i(e),t)}}}),queryString_1=queryString.extract,queryString_2=queryString.parse,queryString_3=queryString.stringify,queryString_4=queryString.parseUrl,extractQueryMarkers=function(e){var t=[];if(e.x0||e.x1)for(var r=0;r<100;r++){var n=e["x"+r];if(n){var o=e["y"+r],i=e["content"+r],a=e["imageUrl"+r],s=e["markerWidth"+r],c=e["markerHeight"+r];t.push({id:r.toString(),imageUrl:a,position:{coordinates:[n,o]},size:{w:s||27,h:c||27},tooltip:{content:i,open:r>0}})}else if(r>1)break}return t},SERIALIZE_SEPARATOR="__@@__",handleSearchName=function(e,t){if(e.searchName){if(t.searchName=e.searchName,e.filters){var r=e.filters.split(SERIALIZE_SEPARATOR),n=[];r.forEach(function(e){if(e&&""!==e){var t=e.split("=");2!==t.length&&console.warn("could not apply a filter by url :"+e+", unrecognized format"),n.push({attribute:t[0],values:[t[1]]})}}),t.searchFilters=n}e.noSelect&&"false"!==e.noSelect&&(t.noSelect=!0)}},ParseUrlV1=function(e){var t=queryString.parseUrl(e,{arrayFormat:"bracket"}).query,r=new ApiUrlV1;if(!t.mapId)return r;r.mapId=t.mapId;var n=t.extent;if(n){var o=n.split(/\s*,\s*/,4);r.extent=o}if(t.legend){var i=t.legend.split("@");r.legend=i}r.markers=extractQueryMarkers(t);if(["showProxSearchBar","showTMSSwitch","showScale","showHome","showTextSearch","showExtras","showNavigation","showTOC"].forEach(function(e){r[e]=t[e]}),void 0!==t.textSearchesRestrict){var a=[],s=t.textSearchesRestrict;if(Array.isArray(s))a=s;else{var c=t.textSearchesRestrict;"NONE"!==s&&(a=c.split(SERIALIZE_SEPARATOR))}r.textSearchesRestrictList=a}if(t.proxSearchesRestrict){var u=t.proxSearchesRestrict,l=void 0;u&&(l=[],Array.isArray(u)?l=u:"NONE"!==u&&(l=u.split(SERIALIZE_SEPARATOR))),r.proxSearchesRestrictList=l}t.forceNoMobile&&"false"!==t.forceNoMobile&&(r.forceNoMobile=!0),t.themePath&&(r.themePath=t.themePath);var p=t.proxSearches;if(p){var f=void 0;Array.isArray(p)?f=p:"NONE"!==p&&(f=p.split(SERIALIZE_SEPARATOR)),r.proxSearchesList=f}return handleSearchName(t,r),r},ApiUrlV2=function e(){classCallCheck(this,e),this.uidapi=void 0,this.showRightPanel=void 0,this.showFunctionsLauncher=void 0,this.propFunctionsLauncher=void 0},ParseUrlV2=function(e){var t=queryString.parseUrl(e,{arrayFormat:"bracket"}).query,r=new ApiUrlV2,n=void 0;return void 0!==t.application?(n=safeJsonParse(t.application)).exception||(r.application=n.value):r.application={},Object.keys(r).forEach(function(e){void 0!==t[e]&&((n=safeJsonParse(t[e])).exception||(r[e]=n.value))}),r},safeJsonParse=function(e){try{return{exception:void 0,value:JSON.parse(e)}}catch(e){return{exception:e,value:void 0}}},Application=function(){function e(t){if(classCallCheck(this,e),this.path="",this.initialized=!1,this.element=null,this.version="2.3.5",this._baseLayers={},this.components={},this._map=null,this.Services={},this.servicesOperations={},this.bindedFunctions=[],this.listenersNeeded={"map.pointerClick":"POINTER_CLICK","map.pointerMove":"POINTER_MOVE"},this.elementId=t.elementId,this._initApp=t,this.applicationId=t.applicationId,this._functionalities={},this.observers={},this._map=null,this._selection=new Selection,t.applicationContext||(t.applicationContext=ApplicationContext.CROSS_DOMAIN_FRAME_PARENT),t.elementId||(t.applicationContext=ApplicationContext.IN_WINDOW),this.uid=uuid(),this.container=Container(this.uid,t),t.applicationContext=this.container.retreiveRealContext(t.applicationContext),this.context=t.applicationContext,this.applicationId){var r={origin:new URL(this.applicationId).origin};t.config&&t.config.bus?this.configBus=_extends({},t.config.bus):this.configBus=r}else this.configBus={domain:"*"};this.configBus.container=this.container;var n=BusSend(this.uid,this.context,this.configBus),o=BusSendSync(this.uid,this.context,this.configBus),i=createEpicMiddleware(epics,{dependencies:{uid:this.uid,send:n,sendSync:o}});this.send=n,this.sendSync=o;var a=(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__||compose)(applyMiddleware(i)),s={applicationInitialized:!1,initialized:!1,containerInitialized:!1,busReady:!1,functionalities:{},map:{},uid:this.uid,servicesOperations:{}};this.store=createStore(mainReducer,s,a),this.connect(this.store),this._selection.connect(this.store),this.container.connect(this.store),ProviderApp(this.store,this),this.handleErrorsLogs(),this.constructServicesInstances()}return createClass(e,[{key:"addInitializationOptions",value:function(e){this._initApp=this.mergeOptions(this._initApp,e)}},{key:"mergeOptions",value:function(e,t){return cjs(e,t,{isMergeableObject:isPlainObject$1,customMerge:function(e){if("config"===e)return function(e,t){return e}}})}},{key:"getVersion",value:function(){return this.version}},{key:"getVersionStrd",value:function(){return this.version}},{key:"skeletonBuild",value:function(e,t){this._map=new Map$2(e.map),this._map.setApplication(this),this._map.connect(t);var r={};if(null!==e.functionalities){var n=!0,o=!1,i=void 0;try{for(var a,s=Object.keys(e.functionalities)[Symbol.iterator]();!(n=(a=s.next()).done);n=!0){var c=a.value;try{r[c]=FunctionalityDeserializer.build(e.functionalities[c]),r[c].connect(t)}catch(e){console.warn(e)}}}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}}this._functionalities=r;var u={};if(e.baseLayers){var l=!0,p=!1,f=void 0;try{for(var h,_=e.baseLayers[Symbol.iterator]();!(l=(h=_.next()).done);l=!0){var d=h.value;u[d.id]=new BaseLayerObj(d,t)}}catch(e){p=!0,f=e}finally{try{!l&&_.return&&_.return()}finally{if(p)throw f}}}this._baseLayers=u,t.dispatch(applicationInitializerCreator({status:!0}))}},{key:"render",value:function(){return fromPromise_1(this.renderPromise())}},{key:"bindPromise",value:function(){this.container&&this.container.render(),this.bindedFunctions=BusOnStore(this.store,this.uid,this.context,this.configBus)}},{key:"parseUrl",value:function(e){var t=ParseUrlV1(window.location.href),r=this.mergeOptions(e,ApplyUrlV1(t)),n=ParseUrlV2(window.location.href);return r=this.mergeOptions(r,ApplyUrlV2(n))}},{key:"initApplication",value:function(){var e=this,t=this;return this._initApp=this.parseUrl(this._initApp),new Promise(function(r,n){var o=reduxWatch(e.store.getState,"initialized");t.store.subscribe(o(function(e,n){t.initialized=e,e&&r(t)})),initApplicationCreatorP(e._initApp,e.store.dispatch).catch(function(e){n(e)})})}},{key:"renderPromise",value:function(){return this.container&&this.container.render(),this.bindedFunctions=BusOnStore(this.store,this.uid,this.context,this.configBus),this.initApplication()}},{key:"constructServicesInstances",value:function(){var e={store:this.store};for(var t in ServiceTypes)ServiceTypes.hasOwnProperty(t)&&(this.Services[t]=ServiceLoader.getServiceInstance(t,this.uid,e))}},{key:"executeWhenInitialized",value:function(e){var t=this,r=this.observable("initialized","BehaviourSubject").pipe(first$2(function(e){return!0===e}));return r.subscribe(function(r){return e(t)}),r}},{key:"connect",value:function(e){var t=this,r=reduxWatch(e.getState,"eventBus");e.subscribe(r(function(e,r,n){t.events=e}));var n=reduxWatch(e.getState,"baseLayers");e.subscribe(n(function(r,n){var o={};if(r){var i=!0,a=!1,s=void 0;try{for(var c,u=r[Symbol.iterator]();!(i=(c=u.next()).done);i=!0){var l=c.value;o[l.id]=new BaseLayerObj(l,e)}}catch(e){a=!0,s=e}finally{try{!i&&u.return&&u.return()}finally{if(a)throw s}}}t._baseLayers=o}));var o=reduxWatch(e.getState,"components"),i=this;e.subscribe(o(function(r){var n={};if(r)for(var o in r)if(r.hasOwnProperty(o)){var a=r[o],s=void 0;if(t.components[o]instanceof Component)s=t.components[o],_extends(s,r[o]);else try{(s=ComponentInstanceLoader.getInstance(o,t.uid,a)).connect(e)}catch(e){console.warn(e);continue}n[o]=s}i.components=n}))}},{key:"getBaseLayersBy",value:function(e){var t=Object.values(this._baseLayers);return lodash_filter(t,e)}},{key:"getFunctionalityById",value:function(e){if(this._functionalities&&null!==this._functionalities["_"+e])return this._functionalities[e];throw new Error("unknown functionality id "+e)}},{key:"getFunctionalityByName",value:function(e){return this.getFunctionalityBy({name:e})}},{key:"getFunctionalityBy",value:function(e){if(null!==this._functionalities){var t=Object.values(this._functionalities);return lodash_filter(t,e)}return[]}},{key:"getResourceById",value:function(e){var t=this.store.getState().resources;if(null!==t[e])return t[e];throw new Error("unknown resource id "+e)}},{key:"getResourcesByName",value:function(e){return this.getResourcesBy({name:e})}},{key:"getResourcesBy",value:function(e){var t=this.store.getState().resources;if(null!==t){var r=Object.values(t);return lodash_filter(r,e)}return[]}},{key:"getBaseLayerById",value:function(e){var t=this.getBaseLayersBy({id:e});if(t)return t[0];throw new Error("unknown baselayer id "+e)}},{key:"getBaseLayersByName",value:function(e){return this.getBaseLayersBy({name:e})}},{key:"setBaseLayersVisibilities",value:function(e){var t=[];if(Array.isArray(e))t=e;else{var r=!0,n=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){var s=i.value,c=e[s];t.push({id:s,visible:c})}}catch(e){n=!0,o=e}finally{try{!r&&a.return&&a.return()}finally{if(n)throw o}}}return fromPromise_1(setBaseLayerVisibilityCreatorP({baseLayers:t},this.store.dispatch))}},{key:"setGlobalParameterValue",value:function(e){return fromPromise_1(setGlobalParameterValueCreatorP(e,this.store.dispatch))}},{key:"setCurrentTimestamp",value:function(e){return fromPromise_1(setFilterHistoryTimestampCreatorP({timestamp:e},this.store.dispatch))}},{key:"setComponentsVisibilities",value:function(e){return fromPromise_1(setComponentsStateCreatorP({components:e},this.store.dispatch))}},{key:"dispatchDataRefreshEvent",value:function(e){return fromPromise_1(dispatchDataRefreshEventCreatorP({sourceIds:e},this.store.dispatch))}},{key:"getServiceByFunctionality",value:function(e){return("string"==typeof e?this.getFunctionalityById(e):e).getService()}},{key:"formatCRS",value:function(e){if(isNumber(e))return"EPSG:"+e;if(isString(e)){var t=e.toUpperCase();return t.startsWith("EPSG:")||-1!==t.indexOf(":")?t:"EPSG:"+t}return e}},{key:"loadProjection",value:function(e){return fromPromise_1(loadProjectionCreatorP({crs:this.formatCRS(e)},this.store.dispatch))}},{key:"isProjectionLoaded",value:function(e){var t=this.store.getState().availableCRS,r=this.formatCRS(e);return!!t&&!!t.find(function(t){return t===e||t===r})}},{key:"transform",value:function(e,t,r){if(!t){if(null===this.map||!this.map.crs)throw Error("No in Crs defined");t=this.map.crs}if(!r){if(null===this.map||!this.map.crs)throw Error("No out Crs defined");r=this.map.crs}if(t===r)return of_1(e);if(!this.isProjectionLoaded(t))throw Error("in CRS not loaded");if(!this.isProjectionLoaded(r))throw Error("out CRS not loaded");var n=new UTIL_CONVERT_PROJ({in:{geometry:e,crs:t},out:{crs:r}});return fromPromise_1(this.send(TypeKeyUtils.UTIL_CONVERT_PROJ,n)).pipe(map$4(function(e){return e.data}),pluck$2("out","geometry"))}},{key:"registerExtension",value:function(e,t){var r=new REGISTER_EXTENSION(e,t);return fromPromise_1(registerExtensionCreatorP(r,this.store.dispatch))}},{key:"clearServiceOperation",value:function(e){this.store.dispatch(clearServiceCreator({id:e}))}},{key:"handleErrorsLogs",value:function(){var e=reduxWatch(this.store.getState,"error");this.store.subscribe(e(function(e,t,r){console.error("An error occured while calling a GEO javascript action ",e)}))}},{key:"getConfigurationByExtensionKey",value:function(e){return configurationExtensionSelector(this.store.getState(),e)}},{key:"map",get:function(){return this._map}},{key:"selection",get:function(){return this._selection}}]),e}();function createApplication(e,t,r){return __awaiter(this,void 0,void 0,regeneratorRuntime.mark(function n(){var o;return regeneratorRuntime.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(o=void 0,"string"!=typeof e){n.next=14;break}if(void 0===t){n.next=8;break}void 0===r&&(r={applicationId:t,elementId:e}),r.applicationId=t,r.elementId=e,n.next=9;break;case 8:throw new Error("createApplication function must take one or three parameters");case 9:if(void 0!==r.elementId&&void 0!==r.applicationId){n.next=11;break}throw new Error("createApplication function should have an elementId and an applicationId");case 11:o=new Application(r),n.next=15;break;case 14:o=new Application(e);case 15:return n.next=17,o.renderPromise();case 17:return n.abrupt("return",n.sent);case 18:case"end":return n.stop()}},n,this)}))}function application(e,t,r){var n=void 0;if("string"==typeof e){if(void 0===t)throw new Error("createApplication function must take one or three parameters");void 0===r&&(r={applicationId:t,elementId:e}),r.applicationId=t,r.elementId=e,n=new Application(r)}else n=new Application(e);return n.render(),n}Application=__decorate([Watch({}),__metadata("design:paramtypes",[Object])],Application);var actions={creators:creators},rxjs={Observable:Observable$2,operators:operators$2},geo=_extends({createApplication:createApplication,bus:bus,createApplicationAsync:application,application:application,Application:Application,actions:actions,rxjs:rxjs},actions.creators),geoApi=geo;exports.geo=geo,exports.geoApi=geoApi}(this.window=this.window||{});
//# sourceMappingURL=geo.iife.js.map
