{"version":3,"sources":["webpack:///webpack/universalModuleDefinition","webpack:///webpack/bootstrap 6a02dd5f3039fabafa17","webpack:///index.js","webpack:///delegated ./node_modules/@angular/common/@angular/common.es5.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/@angular/core/@angular/core.es5.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/@angular/forms/@angular/forms.es5.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/@angular/http/@angular/http.es5.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/@ngrx/effects/index.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/@ngrx/store-devtools/index.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/@ngrx/store/index.js from dll-reference _shop_js_vendor_ng4","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/webpack/universalModuleDefinition","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/webpack/bootstrap","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/base/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/base/infrastructure-enum-type.decorator.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/base/infrastructure-value-type.decorator.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/abstract-http-call.value.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/call.value.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/constant-call.value.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/delete-call.value.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/generic-request-error.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/get-call.value.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/link.value.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/navigation-event.value.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/post-call.value.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/service/call.service.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/service/flow-id-request-interceptor.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/service/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/decoratorutil/extract-info-from-property-decorator.function.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/decoratorutil/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/decoratorutil/property-decorator-info.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/enum/abstract-enum.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/enum/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/immutable/abstract-immutable-data.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/immutable/immutable-objects.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/immutable/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/mapping/custom-type.interface.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/mapping/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/mapping/mapping.service.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/pagevalue/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/pagevalue/page-value-json-loader.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/pagevalue/page-value-loader.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/tracking/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/tracking/service/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/tracking/service/tracking.service.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/tracking/tracking-info.value.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/types/day-of-week.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/types/local-date.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/types/types.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/array-property.decorator.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/combine-with-property-option-defaults.function.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/custom-type.decorator.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/enum-type.decorator.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/property.decorator.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/value-type-definition.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/value-type.decorator.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/register.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/abstract-property-meta-data.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/abstract-type-meta-data.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/array-property-meta-data.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/enum-meta-data.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/index.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/property-meta-data.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/value-meta-data-registry.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/value-meta-data-service.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/value-meta-data.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/value-validation-service.ts","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"axios\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"core-js/es7/reflect\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/find\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isArray\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isBoolean\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isFunction\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isNull\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isNumber\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isObject\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isObjectLike\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isPlainObject\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isString\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isUndefined\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/map\"","webpack:///webpack://_shop_js_infrastructure_generic_datatypes/external \"reflect-metadata\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/webpack/universalModuleDefinition","webpack:///webpack://_shop_js_infrastructure_ng4_comp/webpack/bootstrap","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/tracking-attributes-csi.directive.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/tracking-attributes.directive.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/tracking-product-line.enum.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/tracking-product-lines.directive.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-context.component.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-id.component.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/services/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/services/tracking-attributes/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/services/tracking-attributes/tracking-attributes.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/tracking-attributes.module.ts","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"@angular/common\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"@angular/core\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"@angular/platform-browser-dynamic\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"@shop/js-infrastructure-generic-datatypes\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"@shop/js-infrastructure-ng4-csi\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"core-js/es7/reflect\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"lodash\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"reflect-metadata\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"rxjs/ReplaySubject\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"rxjs/Rx\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"rxjs/operators\"","webpack:///webpack://_shop_js_infrastructure_ng4_comp/external \"zone.js\"","webpack:///webpack://_shop_js_infrastructure_ng4_csi/webpack/universalModuleDefinition","webpack:///webpack://_shop_js_infrastructure_ng4_csi/webpack/bootstrap","webpack:///webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/abstract-csi-app.module.ts","webpack:///webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/components/csiApp.component.ts","webpack:///webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/components/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/csi-bootstrap.ts","webpack:///webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/csi-channel.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/csi.module.ts","webpack:///webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_csi/external \"@angular/common\"","webpack:///webpack://_shop_js_infrastructure_ng4_csi/external \"@angular/core\"","webpack:///webpack://_shop_js_infrastructure_ng4_csi/external \"@angular/platform-browser-dynamic\"","webpack:///webpack://_shop_js_infrastructure_ng4_csi/external \"rxjs/ReplaySubject\"","webpack:///webpack://_shop_js_infrastructure_ng4_csi/external \"rxjs/Rx\"","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/webpack/universalModuleDefinition","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/webpack/bootstrap","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/src/main/typescript/csi-actions.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/src/main/typescript/csi-store.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/src/main/typescript/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/src/main/typescript/store-csi.module.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/external \"@angular/core\"","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/external \"@ngrx/effects\"","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/external \"@ngrx/store\"","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/external \"@shop/js-infrastructure-ng4-csi\"","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/external \"@shop/js-infrastructure-ng4-store\"","webpack:///webpack://_shop_js_infrastructure_ng4_store_csi/external \"lodash\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/webpack/universalModuleDefinition","webpack:///webpack://_shop_js_infrastructure_ng4_store/webpack/bootstrap","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/base/abstract-infrastructure-action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/base/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/abstract-call-payload-interceptor.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/actions/load-call-http-error.action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/actions/load-call-result-validation-error.action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/actions/load-call-success.action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/actions/load-call.action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/call-payload-interceptor.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/call.service.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/call.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/interceptors/header-interceptor.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/interceptors/navigation-event-call-payload-interceptor.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/interceptors/navigation.action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/interceptors/recursive-call-payload-interceptor.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/components/compendium-modal.component.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/components/compendium-price-display.component.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/components/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/extension/extension-chain-reducer.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/extension/extension-reducer.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/extension/extension-store.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/extension/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/flowid/flow-id.service.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/flowid/flow-id.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/flowid/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/logging/create-logger-service.function.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/logging/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/logging/logger.service.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/abstract-custom-type.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/customtypes/date-custom-type.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/mapping.service.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/mapping.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mock/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mock/mock-settings.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/page-value-json-loader.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/page-value-loader.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/page-value.action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/page-value.reducer.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/euro.pipe.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/pipes.module.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/price.pipe.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/unsafe-html.pipe.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/shop-application.module.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-base.action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-chain-reducer.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-method-reducer.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-root-store-value.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-store-service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-store.value.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract.reducer.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/chain-reducer.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/property-chain.reducer.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/reduce-fn.type.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/reducer.interface.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/root.reducer.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/tracking/actions/tracking.action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/tracking/actions/write-tracking-to-data-layer.action.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/tracking/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/tracking/tracking.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/validation/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/validation/store-validation-chain.reducer.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/validation/value-validation.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/valuemetadata/index.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/valuemetadata/value-meta-data.service.ts","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@angular/common\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@angular/core\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@angular/forms\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@angular/http\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@angular/platform-browser\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@ngrx/effects\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@ngrx/store\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@ngrx/store-devtools\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@shop/js-infrastructure-generic-datatypes\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"@shop/js-infrastructure-generic-datatypes/target/dist\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"lodash\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"lodash/isNull\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"lodash/isUndefined\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"reflect-metadata\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/Observable\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/Rx\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/add/observable/empty\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/add/observable/from\"","webpack:///webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/add/operator/switchMap\"","webpack:///./node_modules/axios/index.js","webpack:///./node_modules/axios/lib/adapters/xhr.js","webpack:///./node_modules/axios/lib/axios.js","webpack:///./node_modules/axios/lib/cancel/Cancel.js","webpack:///./node_modules/axios/lib/cancel/CancelToken.js","webpack:///./node_modules/axios/lib/cancel/isCancel.js","webpack:///./node_modules/axios/lib/core/Axios.js","webpack:///./node_modules/axios/lib/core/InterceptorManager.js","webpack:///./node_modules/axios/lib/core/createError.js","webpack:///./node_modules/axios/lib/core/dispatchRequest.js","webpack:///./node_modules/axios/lib/core/enhanceError.js","webpack:///./node_modules/axios/lib/core/settle.js","webpack:///./node_modules/axios/lib/core/transformData.js","webpack:///./node_modules/axios/lib/defaults.js","webpack:///./node_modules/axios/lib/helpers/bind.js","webpack:///./node_modules/axios/lib/helpers/buildURL.js","webpack:///./node_modules/axios/lib/helpers/combineURLs.js","webpack:///./node_modules/axios/lib/helpers/cookies.js","webpack:///./node_modules/axios/lib/helpers/isAbsoluteURL.js","webpack:///./node_modules/axios/lib/helpers/isURLSameOrigin.js","webpack:///./node_modules/axios/lib/helpers/normalizeHeaderName.js","webpack:///./node_modules/axios/lib/helpers/parseHeaders.js","webpack:///./node_modules/axios/lib/helpers/spread.js","webpack:///./node_modules/axios/lib/utils.js","webpack:///./node_modules/core-js/es7/reflect.js","webpack:///delegated ./node_modules/core-js/modules/_core.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/core-js/modules/es7.reflect.define-metadata.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/core-js/modules/es7.reflect.delete-metadata.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/core-js/modules/es7.reflect.get-metadata.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/core-js/modules/es7.reflect.get-own-metadata.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/core-js/modules/es7.reflect.has-metadata.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/core-js/modules/es7.reflect.has-own-metadata.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/core-js/modules/es7.reflect.metadata.js from dll-reference _shop_js_vendor_ng4","webpack:///./node_modules/is-buffer/index.js","webpack:///./node_modules/lodash/_DataView.js","webpack:///./node_modules/lodash/_Hash.js","webpack:///./node_modules/lodash/_ListCache.js","webpack:///./node_modules/lodash/_Map.js","webpack:///./node_modules/lodash/_MapCache.js","webpack:///./node_modules/lodash/_Promise.js","webpack:///./node_modules/lodash/_Set.js","webpack:///./node_modules/lodash/_SetCache.js","webpack:///./node_modules/lodash/_Stack.js","webpack:///./node_modules/lodash/_Symbol.js","webpack:///./node_modules/lodash/_Uint8Array.js","webpack:///./node_modules/lodash/_WeakMap.js","webpack:///./node_modules/lodash/_arrayFilter.js","webpack:///./node_modules/lodash/_arrayLikeKeys.js","webpack:///./node_modules/lodash/_arrayMap.js","webpack:///./node_modules/lodash/_arrayPush.js","webpack:///./node_modules/lodash/_arraySome.js","webpack:///./node_modules/lodash/_assocIndexOf.js","webpack:///./node_modules/lodash/_baseEach.js","webpack:///./node_modules/lodash/_baseFindIndex.js","webpack:///./node_modules/lodash/_baseFor.js","webpack:///./node_modules/lodash/_baseForOwn.js","webpack:///./node_modules/lodash/_baseGet.js","webpack:///./node_modules/lodash/_baseGetAllKeys.js","webpack:///./node_modules/lodash/_baseGetTag.js","webpack:///./node_modules/lodash/_baseHasIn.js","webpack:///./node_modules/lodash/_baseIsArguments.js","webpack:///./node_modules/lodash/_baseIsEqual.js","webpack:///./node_modules/lodash/_baseIsEqualDeep.js","webpack:///./node_modules/lodash/_baseIsMatch.js","webpack:///./node_modules/lodash/_baseIsNative.js","webpack:///./node_modules/lodash/_baseIsTypedArray.js","webpack:///./node_modules/lodash/_baseIteratee.js","webpack:///./node_modules/lodash/_baseKeys.js","webpack:///./node_modules/lodash/_baseMap.js","webpack:///./node_modules/lodash/_baseMatches.js","webpack:///./node_modules/lodash/_baseMatchesProperty.js","webpack:///./node_modules/lodash/_baseProperty.js","webpack:///./node_modules/lodash/_basePropertyDeep.js","webpack:///./node_modules/lodash/_baseTimes.js","webpack:///./node_modules/lodash/_baseToString.js","webpack:///./node_modules/lodash/_baseUnary.js","webpack:///./node_modules/lodash/_cacheHas.js","webpack:///./node_modules/lodash/_castPath.js","webpack:///./node_modules/lodash/_coreJsData.js","webpack:///./node_modules/lodash/_createBaseEach.js","webpack:///./node_modules/lodash/_createBaseFor.js","webpack:///./node_modules/lodash/_createFind.js","webpack:///./node_modules/lodash/_equalArrays.js","webpack:///./node_modules/lodash/_equalByTag.js","webpack:///./node_modules/lodash/_equalObjects.js","webpack:///./node_modules/lodash/_freeGlobal.js","webpack:///./node_modules/lodash/_getAllKeys.js","webpack:///./node_modules/lodash/_getMapData.js","webpack:///./node_modules/lodash/_getMatchData.js","webpack:///./node_modules/lodash/_getNative.js","webpack:///./node_modules/lodash/_getPrototype.js","webpack:///./node_modules/lodash/_getRawTag.js","webpack:///./node_modules/lodash/_getSymbols.js","webpack:///./node_modules/lodash/_getTag.js","webpack:///./node_modules/lodash/_getValue.js","webpack:///./node_modules/lodash/_hasPath.js","webpack:///./node_modules/lodash/_hashClear.js","webpack:///./node_modules/lodash/_hashDelete.js","webpack:///./node_modules/lodash/_hashGet.js","webpack:///./node_modules/lodash/_hashHas.js","webpack:///./node_modules/lodash/_hashSet.js","webpack:///./node_modules/lodash/_isIndex.js","webpack:///./node_modules/lodash/_isKey.js","webpack:///./node_modules/lodash/_isKeyable.js","webpack:///./node_modules/lodash/_isMasked.js","webpack:///./node_modules/lodash/_isPrototype.js","webpack:///./node_modules/lodash/_isStrictComparable.js","webpack:///./node_modules/lodash/_listCacheClear.js","webpack:///./node_modules/lodash/_listCacheDelete.js","webpack:///./node_modules/lodash/_listCacheGet.js","webpack:///./node_modules/lodash/_listCacheHas.js","webpack:///./node_modules/lodash/_listCacheSet.js","webpack:///./node_modules/lodash/_mapCacheClear.js","webpack:///./node_modules/lodash/_mapCacheDelete.js","webpack:///./node_modules/lodash/_mapCacheGet.js","webpack:///./node_modules/lodash/_mapCacheHas.js","webpack:///./node_modules/lodash/_mapCacheSet.js","webpack:///./node_modules/lodash/_mapToArray.js","webpack:///./node_modules/lodash/_matchesStrictComparable.js","webpack:///./node_modules/lodash/_memoizeCapped.js","webpack:///./node_modules/lodash/_nativeCreate.js","webpack:///./node_modules/lodash/_nativeKeys.js","webpack:///./node_modules/lodash/_nodeUtil.js","webpack:///./node_modules/lodash/_objectToString.js","webpack:///./node_modules/lodash/_overArg.js","webpack:///./node_modules/lodash/_root.js","webpack:///./node_modules/lodash/_setCacheAdd.js","webpack:///./node_modules/lodash/_setCacheHas.js","webpack:///./node_modules/lodash/_setToArray.js","webpack:///./node_modules/lodash/_stackClear.js","webpack:///./node_modules/lodash/_stackDelete.js","webpack:///./node_modules/lodash/_stackGet.js","webpack:///./node_modules/lodash/_stackHas.js","webpack:///./node_modules/lodash/_stackSet.js","webpack:///./node_modules/lodash/_stringToPath.js","webpack:///./node_modules/lodash/_toKey.js","webpack:///./node_modules/lodash/_toSource.js","webpack:///./node_modules/lodash/eq.js","webpack:///./node_modules/lodash/find.js","webpack:///./node_modules/lodash/findIndex.js","webpack:///./node_modules/lodash/get.js","webpack:///./node_modules/lodash/hasIn.js","webpack:///./node_modules/lodash/identity.js","webpack:///./node_modules/lodash/isArguments.js","webpack:///./node_modules/lodash/isArray.js","webpack:///./node_modules/lodash/isArrayLike.js","webpack:///./node_modules/lodash/isBoolean.js","webpack:///./node_modules/lodash/isBuffer.js","webpack:///./node_modules/lodash/isFunction.js","webpack:///./node_modules/lodash/isLength.js","webpack:///./node_modules/lodash/isNull.js","webpack:///./node_modules/lodash/isNumber.js","webpack:///./node_modules/lodash/isObject.js","webpack:///./node_modules/lodash/isObjectLike.js","webpack:///./node_modules/lodash/isPlainObject.js","webpack:///./node_modules/lodash/isString.js","webpack:///./node_modules/lodash/isSymbol.js","webpack:///./node_modules/lodash/isTypedArray.js","webpack:///./node_modules/lodash/isUndefined.js","webpack:///./node_modules/lodash/keys.js","webpack:///delegated ./node_modules/lodash/lodash.js from dll-reference _shop_js_vendor_ng4","webpack:///./node_modules/lodash/map.js","webpack:///./node_modules/lodash/memoize.js","webpack:///./node_modules/lodash/property.js","webpack:///./node_modules/lodash/stubArray.js","webpack:///./node_modules/lodash/stubFalse.js","webpack:///./node_modules/lodash/toFinite.js","webpack:///./node_modules/lodash/toInteger.js","webpack:///./node_modules/lodash/toNumber.js","webpack:///./node_modules/lodash/toString.js","webpack:///delegated ./node_modules/process/browser.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/reflect-metadata/Reflect.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/AsyncSubject.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/BehaviorSubject.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/Notification.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/Observable.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/OuterSubscriber.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/ReplaySubject.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/Rx.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/Subject.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/Subscriber.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/Subscription.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/add/observable/empty.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/add/observable/from.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/add/operator/switchMap.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/observable/ArrayObservable.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/observable/ConnectableObservable.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/observable/EmptyObservable.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/observable/FromObservable.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/observable/ScalarObservable.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/observable/concat.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/observable/merge.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/observable/race.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/observable/timer.js from dll-reference _shop_js_vendor_ng4","webpack:///../src/operators.ts","webpack:///../../src/operators/audit.ts","webpack:///../../src/operators/auditTime.ts","webpack:///../../src/operators/buffer.ts","webpack:///../../src/operators/bufferCount.ts","webpack:///../../src/operators/bufferTime.ts","webpack:///../../src/operators/bufferToggle.ts","webpack:///../../src/operators/bufferWhen.ts","webpack:///../../src/operators/catchError.ts","webpack:///../../src/operators/combineAll.ts","webpack:///../../src/operators/combineLatest.ts","webpack:///../../src/operators/concat.ts","webpack:///../../src/operators/concatAll.ts","webpack:///../../src/operators/concatMap.ts","webpack:///../../src/operators/concatMapTo.ts","webpack:///../../src/operators/count.ts","webpack:///../../src/operators/debounce.ts","webpack:///../../src/operators/debounceTime.ts","webpack:///../../src/operators/defaultIfEmpty.ts","webpack:///../../src/operators/delay.ts","webpack:///../../src/operators/delayWhen.ts","webpack:///../../src/operators/dematerialize.ts","webpack:///../../src/operators/distinct.ts","webpack:///../../src/operators/distinctUntilChanged.ts","webpack:///../../src/operators/distinctUntilKeyChanged.ts","webpack:///../../src/operators/elementAt.ts","webpack:///../../src/operators/every.ts","webpack:///../../src/operators/exhaust.ts","webpack:///../../src/operators/exhaustMap.ts","webpack:///../../src/operators/expand.ts","webpack:///../../src/operators/filter.ts","webpack:///../../src/operators/finalize.ts","webpack:///../../src/operators/find.ts","webpack:///../../src/operators/findIndex.ts","webpack:///../../src/operators/first.ts","webpack:///../../src/operators/groupBy.ts","webpack:///../../src/operators/ignoreElements.ts","webpack:///../../src/operators/isEmpty.ts","webpack:///../../src/operators/last.ts","webpack:///../../src/operators/map.ts","webpack:///../../src/operators/mapTo.ts","webpack:///../../src/operators/materialize.ts","webpack:///../../src/operators/max.ts","webpack:///../../src/operators/merge.ts","webpack:///../../src/operators/mergeAll.ts","webpack:///../../src/operators/mergeMap.ts","webpack:///../../src/operators/mergeMapTo.ts","webpack:///../../src/operators/mergeScan.ts","webpack:///../../src/operators/min.ts","webpack:///../../src/operators/multicast.ts","webpack:///../../src/operators/observeOn.ts","webpack:///../../src/operators/onErrorResumeNext.ts","webpack:///../../src/operators/pairwise.ts","webpack:///../../src/operators/partition.ts","webpack:///../../src/operators/pluck.ts","webpack:///../../src/operators/publish.ts","webpack:///../../src/operators/publishBehavior.ts","webpack:///../../src/operators/publishLast.ts","webpack:///../../src/operators/publishReplay.ts","webpack:///../../src/operators/race.ts","webpack:///../../src/operators/reduce.ts","webpack:///../../src/operators/refCount.ts","webpack:///../../src/operators/repeat.ts","webpack:///../../src/operators/repeatWhen.ts","webpack:///../../src/operators/retry.ts","webpack:///../../src/operators/retryWhen.ts","webpack:///../../src/operators/sample.ts","webpack:///../../src/operators/sampleTime.ts","webpack:///../../src/operators/scan.ts","webpack:///../../src/operators/sequenceEqual.ts","webpack:///../../src/operators/share.ts","webpack:///../../src/operators/shareReplay.ts","webpack:///../../src/operators/single.ts","webpack:///../../src/operators/skip.ts","webpack:///../../src/operators/skipLast.ts","webpack:///../../src/operators/skipUntil.ts","webpack:///../../src/operators/skipWhile.ts","webpack:///../../src/operators/startWith.ts","webpack:///../../src/operators/switchAll.ts","webpack:///../../src/operators/switchMap.ts","webpack:///../../src/operators/switchMapTo.ts","webpack:///../../src/operators/take.ts","webpack:///../../src/operators/takeLast.ts","webpack:///../../src/operators/takeUntil.ts","webpack:///../../src/operators/takeWhile.ts","webpack:///../../src/operators/tap.ts","webpack:///../../src/operators/throttle.ts","webpack:///../../src/operators/throttleTime.ts","webpack:///../../src/operators/timeInterval.ts","webpack:///../../src/operators/timeout.ts","webpack:///../../src/operators/timeoutWith.ts","webpack:///../../src/operators/timestamp.ts","webpack:///../../src/operators/toArray.ts","webpack:///../../src/operators/window.ts","webpack:///../../src/operators/windowCount.ts","webpack:///../../src/operators/windowTime.ts","webpack:///../../src/operators/windowToggle.ts","webpack:///../../src/operators/windowWhen.ts","webpack:///../../src/operators/withLatestFrom.ts","webpack:///../../src/operators/zip.ts","webpack:///../../src/operators/zipAll.ts","webpack:///delegated ./node_modules/rxjs/scheduler/async.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/symbol/iterator.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/ArgumentOutOfRangeError.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/EmptyError.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/FastMap.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/Map.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/Set.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/TimeoutError.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/errorObject.js from dll-reference _shop_js_vendor_ng4","webpack:///../../src/util/identity.ts","webpack:///delegated ./node_modules/rxjs/util/isArray.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/isDate.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/isNumeric.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/isScheduler.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/noop.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/not.js from dll-reference _shop_js_vendor_ng4","webpack:///../../src/util/pipe.ts","webpack:///delegated ./node_modules/rxjs/util/subscribeToResult.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/rxjs/util/tryCatch.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/webpack/buildin/global.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/webpack/buildin/module.js from dll-reference _shop_js_vendor_ng4","webpack:///delegated ./node_modules/zone.js/dist/zone.js from dll-reference _shop_js_vendor_ng4","webpack:///./src/main/typescript/app/app.component.ts","webpack:///./src/main/typescript/app/app.module.ts","webpack:///./src/main/typescript/app/components/voucher/child-components/feedback-message.component.ts","webpack:///./src/main/typescript/app/components/voucher/child-components/voucher-applied.component.ts","webpack:///./src/main/typescript/app/components/voucher/child-components/voucher-input.component.ts","webpack:///./src/main/typescript/app/components/voucher/child-components/voucher-panel.component.ts","webpack:///./src/main/typescript/app/components/voucher/voucher.component.module.ts","webpack:///./src/main/typescript/app/components/voucher/voucher.component.ts","webpack:///./src/main/typescript/app/page-value/voucher-page.value.ts","webpack:///./src/main/typescript/app/service/voucher.service.module.ts","webpack:///./src/main/typescript/app/service/voucher.service.ts","webpack:///./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts","webpack:///./src/main/typescript/app/stores/voucher/actions/apply-voucher-action.ts","webpack:///./src/main/typescript/app/stores/voucher/actions/delete-voucher-action.ts","webpack:///./src/main/typescript/app/stores/voucher/actions/toggle-voucher-panel.action.ts","webpack:///./src/main/typescript/app/stores/voucher/actions/voucher-applied-action.ts","webpack:///./src/main/typescript/app/stores/voucher/actions/voucher-benefit-changed-csi-outbound.action.ts","webpack:///./src/main/typescript/app/stores/voucher/actions/voucher-deleted-action.ts","webpack:///./src/main/typescript/app/stores/voucher/reducers/reducer-utils.ts","webpack:///./src/main/typescript/app/stores/voucher/reducers/voucher.page-value.reducer.ts","webpack:///./src/main/typescript/app/stores/voucher/reducers/voucher.reducer.ts","webpack:///./src/main/typescript/app/stores/voucher/values/applied-voucher.value.ts","webpack:///./src/main/typescript/app/stores/voucher/values/voucher-enum-type.ts","webpack:///./src/main/typescript/app/stores/voucher/values/voucher-result-type.enum.ts","webpack:///./src/main/typescript/app/stores/voucher/values/voucher-root-state.value.ts","webpack:///./src/main/typescript/app/stores/voucher/values/voucher-ui-state.value.ts","webpack:///./src/main/typescript/app/stores/voucher/values/voucher-validation-spec.value.ts","webpack:///./src/main/typescript/app/stores/voucher/values/voucher-value-type.ts","webpack:///./src/main/typescript/index.ts","webpack:///external \"_shop_js_vendor_ng4\""],"names":["webpackUniversalModuleDefinition","root","factory","exports","module","define","amd","self","this","installedModules","__webpack_require__","moduleId","i","l","modules","call","m","c","d","name","getter","o","Object","defineProperty","configurable","enumerable","get","n","__esModule","getDefault","getModuleExports","object","property","prototype","hasOwnProperty","p","s","./node_modules/@angular/common/@angular/common.es5.js","./node_modules/@angular/core/@angular/core.es5.js","./node_modules/@angular/forms/@angular/forms.es5.js","./node_modules/@angular/http/@angular/http.es5.js","./node_modules/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js","./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js","./node_modules/@ngrx/effects/index.js","./node_modules/@ngrx/store-devtools/index.js","./node_modules/@ngrx/store/index.js","./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js","window","r","Symbol","toStringTag","value","t","mode","ns","create","key","bind","__export","e","enum_type_decorator_1","InfrastructureEnumType","EnumType","value_type_decorator_1","InfrastructureValueType","ValueType","link_value_1","call_value_1","property_decorator_1","AbstractHttpCall","_super","__extends","__decorate","Property","Link","Call","AbstractImmutableData","infrastructure_value_type_decorator_1","ConstantCall","abstract_http_call_value_1","DeleteCall","decorators_1","base_1","GenericRequestError","messages","ArrayProperty","String","GetCall","withVariables","variables","resultUrl","link","uri","replace","match","group1","update","nullable","NavigationEvent","PostCall","withData","data","__1","axios_1","isString","flow_id_request_interceptor_1","CallService","mappingService","_this","catchHandler","defaultCatchHandler","requestError","parsedRequestError","fromJson","response","Promise","reject","registerCatchHandler","handler","handleCall","recursionCounter","RECURSION_LIMIT","Error","handleConstantCall","restCall","resultPromise","doExec","then","catch","constantCall","constantPayload","navigationEvent","doRedirect","resolve","url","validateUrl","location","href","method","headers","mediaType","jsonData","toJson","JSON","stringify","default","interceptors","request","use","setFlowId","error","withCredentials","isSendRequestWithCredentials","parsed","metaElements","document","querySelectorAll","length","getAttribute","config","flowId","undefined","property_decorator_info_1","extractInfoFromPropertyDecorator","target","propertyKey","PropertyDecoratorInfo","Reflect","getMetadata","constructor","propertyType","propertyName","ownerType","INDEX_SYMBOL","AbstractEnum","values","index","toIndex","keys","map","reduce","potentialEnumValue","assign","_a","freeze","forName","find","enumName","immutable_objects_1","ImmutableObjects","instance","deepFreeze","obj","isFrozen","getOwnPropertyNames","forEach","prop","properties","__assign","Function","ICustomType","isUndefined","isArray","isObject","isNull","valuemetadata_1","MappingService","valueMetaDataService","metaDatasForName","customTypes","getMetaDatas","metaData","qualifiedName","getCustomTypes","type","typeName","json","fromJsonImpl","Context","context","reportError","qualifiedTypeName","TYPE_INFO_PROPERTY","fromTypedJson","result_1","EnumMetaData","enumFromTypedJson","ValueMetaData","valueFromTypedJson","typeInfo","metaDatas","customType","result","ENUM_NAME_PROPERTY","enumValue","message","args","path","exceptionMessage","toJsonImpl","element","ct","isType","getMetaData","objectToJson","enumToJson","valueToJson","propertyMetaData","propertyValue","enumObject","PageValueJsonLoader","load","pageValueName","script","querySelector","innerHTML","parse","PageValueLoader","jsonLoader","pageValue","service_1","TrackingService","tefDataLayer","track","trackingInfo","push","rawContent","TrackingInfo","enum_1","DayOfWeek","MONDAY","DayOfWeek_1","TUESDAY","WEDNESDAY","THURSDAY","FRIDAY","SATURDAY","SUNDAY","LocalDateDefinition","Date","date","year","getFullYear","month","getMonth","day","getDate","CustomType","TypesDummyClass","array_property_meta_data_1","extract_info_from_property_decorator_function_1","combine_with_property_option_defaults_function_1","value_meta_data_registry_1","value_type_definition_1","elementType","options","combineWithPropertyOptionDefaults","propertyDecoratorInformation","Array","isTypeList","ValueMetaDataRegistry","appendPropertyMetaData","ArrayPropertyMetaData","PROPERTY_DECORATOR_OPTIONS_DEFAULTS","register_1","registerCustomType","namespace","registerEnumTypeInNamespace","property_meta_data_1","propertyOptions","__rest","PropertyMetaData","registerValueTypeInNamespace","getPropertyMetaData","metadata","registerTypeAndSetMetaData","enumMetaData","AbstractPropertyMetaData","AbstractTypeMetaData","elementTypes","TYPE_META_DATA_SYMBOL","PROPERTY_META_DATA_SYMBOL","valueTypeList","customTypeList","valueTypePropertyMetaData","propertyMetaDatas","concat","defineMetadata","getTypeMetaData","getOwnMetadata","getTypes","slice","ValueMetaDataService","isFunction","isPlainObject","isObjectLike","isNumber","isBoolean","ValueValidationService","validate","debugPath","validateValue","validateEnum","some","enumCtor","propertyDebugPath","validateTypedProperty","validateArrayProperty","isValueOfType","expectedTypes","join","Number","Boolean","assertIsFunction","val","matchesSome","require","./node_modules/@shop/js-infrastructure-ng4-comp/target/dist/index.js","core_1","tracking_attributes_service_1","tracking_product_lines_directive_1","js_infrastructure_ng4_csi_1","TrackingAttributesCsiDirective","trackingAttributesService","enclosingTrackingProductLines","csiAppComponent","ngOnDestroy","_subscription","unsubscribe","ngOnInit","productLineSource","productLineString$","subscribe","send","TrackingAttributesService","MESSAGE_TYPE","Directive","selector","__param","Optional","TrackingProductLinesDirective","CsiAppComponent","VALID_TRACKING_ACTION_VALUES","TrackingAttributesDirective","el","renderer","onMouseEnter","isDebuggingEnabled","console","log","getAction","getDescription","ngOnChanges","changes","renderAttributes","renderTrackingDescription","renderTrackingAction","action","setAttribute","nativeElement","indexOf","trackingAttributesAction","description","setStyle","removeAttribute","application","getApplication","pageArea","getPageArea","productLineString","trackingAttributesElementId","ngAfterViewInit","Input","HostListener","ElementRef","Renderer2","TrackingProductLine","trackingValue","SIM_ONLY","HARDWARE_ONLY","BUNDLE","DSL","GADGETS","ReplaySubject_1","tracking_product_line_enum_1","_","_productLineString$","ReplaySubject","asObservable","next","buildProductLineString","trackingProductLines","trackingProductLine","sort","complete","TrackingContextComponent","trackingContext","generateTrackingContext","SkipSelf","tracking_context_component_1","TrackingIdComponent","renderContext","trackingId","trackingText","contextText","common_1","CsiChannelService","channelService","unsubscribeCallback","metaElementContent","getMetaElementContent","metaElement","Inject","DOCUMENT","Document","tracking_attributes_directive_1","tracking_attributes_csi_directive_1","TrackingAttributesModule","NgModule","imports","CommonModule","CsiModule","providers","declarations","./node_modules/@shop/js-infrastructure-ng4-csi/target/dist/index.js","csi_bootstrap_1","AbstractCsiAppModule","ngDoBootstrap","app","bootstrap","appComponentType","getCsiBootstrapContext","Rx_1","zone","afterInit","outboundMessage","EventEmitter","_csiLoaded$","csiLoaded$","queuedMessages","getWebpackModule","moduleName","csiApp","channel","ngAfterViewChecked","isWebpackModuleAvailable","runOutsideAngular","__awaiter","_b","sent","channelUnsubscribe","inboundMessage$","destroy","Output","Observable","Component","template","NgZone","bootstrapContext","platform_browser_dynamic_1","csi_channel_service_1","CsiNg4BootstrapContext","csiConfig","createCsiBootstrapForNg4Module","moduleType","setCsiBootstrapContext","platformBrowserDynamic","bootstrapModule","injector","getExternalCsiChannel","nativeHandle","frameworkHint","sendToInternalEmitter","sendToExternalEmitter","emit","fn","subscription","run","Injectable","csiApp_component_1","./node_modules/@shop/js-infrastructure-ng4-store-csi/target/dist/index.js","js_infrastructure_ng4_store_1","inboundActionRegistry","OUTBOUND_MESSAGE_TYPE_SYMBOL","checkTarget","decoratorName","AbstractBaseAction","isPrototypeOf","checkMessageType","messageType","findAllCsiInboundActions","extend","getOutboundMessageTypeForAction","CsiInboundAction","CsiOutboundAction","effects_1","store_1","csi_actions_1","CsiStoreService","actions","dispatcher","inboundActionTypesForMessageType","actionType","actionInstance","provider","CsiStoreService_1","provide","APP_INITIALIZER","useFactory","deps","multi","Actions","Dispatcher","csi_store_service_1","StoreCsiModule","./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js","AbstractInfrastructureAction","NAMESPACE","call_payload_interceptor_interface_1","AbstractCallPayloadInterceptor","ICallPayloadInterceptor","useExisting","LoadCallHttpErrorAction","LoadCallResultValidationErrorAction","payload","callAction","LoadCallSuccessAction","initalLoadAction","successActionCreator","causingAction","LoadCallAction","resultTypeDescriptor","initialAction","PayloadArrayTypeDescriptor","types","ICallService","Observable_1","call_service_interface_1","logger_service_interface_1","mapping_service_interface_1","http_1","load_call_action_1","value_validation_service_1","load_call_result_validation_error_action_1","load_call_success_action_1","load_call_http_error_action_1","header_interceptor_1","platform_browser_1","dist_1","metaService","http","valueValidationService","loggerService","payloadInterceptors","headerInterceptor","logger","switchMap","streamOfThisAction","resolveCallImpl","handlePayload","useClass","CallService_1","doCall","payloadType","onPayloadActionCreator","dispatch","observable","handleHttpCall","validatePayload","validationError","elementTypes_1","every","assertPayloadType","loadCallAction","interceptPayload","handleDefaultPayload","successAction","interceptor","interceptionAction","intercept","debug","from","body","err","caught","handleHttpError","text","getTag","content","throw","IMappingService","ILoggerService","HeaderInterceptor","Meta","Http","flow_id_service_interface_1","mock_settings_service_1","flowIdService","mockSettingsService","Headers","set","mockSettings","mockSettingsString","IFlowIdService","MockSettingsService","abstract_call_payload_interceptor_1","navigation_action_1","js_infrastructure_generic_datatypes_1","NavigationEventCallPayloadInterceptor","filter","NavigationAction","instanceFilter","RecursiveCallPayloadInterceptor","CompendiumModalComponent","hideFooter","modalClosed","modalFooter","children","jQueryModalElement","$","modalElement","modal","on","ViewChild","changeDetection","ChangeDetectionStrategy","OnPush","CompendiumPriceDisplayComponent","price-left","alignment","","price-right","IExtensionChainReducer","IChainReducer","IExtensionReducer","IReducer","IExtensionStore","FlowIdService","flowIdElement","utils","getLocalStorage","localStorage","setItem","removeItem","regExpFromSimplePattern","patternString","test","RegExp","createLoggerService","LEVELS","OFF","ERROR","WARN","INFO","DEBUG","DEFAULT_CONFIG","*","commerce.log.*","logLogger","subject","warn","info","sub","logFunctionFactory","levelName","consoleFunction","toLowerCase","apply","arguments","currentCompiledConfig","CompiledRule","regexp","level","pattern","loadLogConfig","compileConfig","compiledConfig","toUpperCase","trim","obj1","obj2","exception","setLogConfig","getLogConfig","currentLogSettings","configString","string","resetLogConfig","setupLogConfigFromUrl","getLogConfigStringFromUrl","exec","parseConfigString","rules","split","tokens","createLogFunction","loggerName","levelToString","evt","isMessageSuppressed","configRule","array","arg","createLogObject","subName","add","addLogConfig","loggerNamePart","reset","fromUrl","AbstractCustomType","abstract_custom_type_1","DateCustomType","isDate","value_meta_data_service_1","MappingService_1","doc","page_value_json_loader_1","pageValueType","store","actionCreator","PageValueAction","abstract_method_reducer_1","page_value_action_1","PageValueReducer","pageValueAction","state","ReducerMethod","AbstractMethodReducer","EuroPipe","transform","toFixed","toString","Pipe","unsafe_html_pipe_1","euro_pipe_1","price_pipe_1","PipesModule","UnsafeHtmlPipe","PricePipe","getPriceInteger","price","Math","floor","round","getPriceDecimal","substr","part","PricePipe_1","INTEGER","DECIMAL","pure","sanitized","bypassSecurityTrustHtml","DomSanitizer","recursive_call_payload_interceptor_1","navigation_event_call_payload_interceptor_1","store_validation_chain_reducer_1","root_reducer_1","date_custom_type_1","call_service_1","mapping_service_1","create_logger_service_function_1","store_devtools_1","page_value_loader_1","property_chain_reducer_1","page_value_reducer_1","forms_1","extension_store_interface_1","extension_reducer_interface_1","extension_chain_reducer_interface_1","flow_id_service_1","tracking_service_1","ShopApplicationModule","forRootComponent","rootReducer","extensionReducers","extensionChainReducers","pageValueJsonLoader","extensionRootReducer","RootReducer","addReducer","extensionStore","select","extensionName","Store","useValue","PropertyChainReducer","initialStoreValue","reducers","reducerType","chainReducers","EffectsModule","BrowserModule","HttpModule","FormsModule","StoreModule","provideStore","StoreDevtoolsModule","instrumentOnlyWithExtension","providerForRoot","StoreValidationChainReducer","actionName","empty","chain_reducer_interface_1","AbstractChainReducer","abstract_base_action_1","abstract_reducer_1","REGISTERED_REDUCER_METHODS_SYMBOL","RegisteredReducerMethod","methodName","initialState","getPrototypeOf","reducerMethod","AbstractReducer","parameterTypes","stateType","returnType","registeredReducerMethods","AbstractRootStoreValue","AbstractStoreValue","EFFECT_METHOD_SYMBOL","OnActionMethodRegistration","AbstractStoreService","registration","currentState","callWithPayload","typeDescriptor","callWithoutPayload","actionsOfType","baseActionType","OnAction","descriptor","effectMethods","reducer_interface_1","initialPropertyValue","nextReduce","ReduceFnDummyClass","buildChain","RootReducer_1","replaceReducer","createReduceFn","providerForChild","rootReducerToken","childReducerToken","childChainReducerToken","childReducer","childChainReducer","finalChainReducer","a","reducer","chain","callChain","remainingChain","drop","TrackingAction","WriteTrackingToDataLayerAction","tracking_action_1","write_tracking_to_data_layer_action_1","writeTrackingToDataLayer","TrackingService_1","datalayer","newState","logError","invalidState","droppedState","./node_modules/axios/index.js","./node_modules/axios/lib/adapters/xhr.js","settle","buildURL","parseHeaders","isURLSameOrigin","createError","xhrAdapter","dispatchXhrRequest","requestData","requestHeaders","isFormData","XMLHttpRequest","auth","username","password","Authorization","btoa","open","params","paramsSerializer","timeout","onreadystatechange","handleLoad","readyState","status","responseURL","responseHeaders","getAllResponseHeaders","responseData","responseType","responseText","statusText","onerror","handleError","ontimeout","handleTimeout","isStandardBrowserEnv","cookies","xsrfValue","xsrfCookieName","read","xsrfHeaderName","setRequestHeader","onDownloadProgress","addEventListener","onUploadProgress","upload","cancelToken","promise","onCanceled","cancel","abort","./node_modules/axios/lib/axios.js","Axios","defaults","createInstance","defaultConfig","axios","instanceConfig","merge","Cancel","CancelToken","isCancel","all","promises","spread","./node_modules/axios/lib/cancel/Cancel.js","__CANCEL__","./node_modules/axios/lib/cancel/CancelToken.js","executor","TypeError","resolvePromise","promiseExecutor","token","reason","throwIfRequested","source","./node_modules/axios/lib/cancel/isCancel.js","./node_modules/axios/lib/core/Axios.js","InterceptorManager","dispatchRequest","unshiftRequestInterceptors","unshift","fulfilled","rejected","pushResponseInterceptors","shift","forEachMethodNoData","forEachMethodWithData","./node_modules/axios/lib/core/InterceptorManager.js","handlers","eject","id","forEachHandler","h","./node_modules/axios/lib/core/createError.js","enhanceError","code","./node_modules/axios/lib/core/dispatchRequest.js","transformData","isAbsoluteURL","combineURLs","throwIfCancellationRequested","baseURL","transformRequest","common","cleanHeaderConfig","adapter","onAdapterResolution","transformResponse","onAdapterRejection","./node_modules/axios/lib/core/enhanceError.js","./node_modules/axios/lib/core/settle.js","validateStatus","./node_modules/axios/lib/core/transformData.js","fns","./node_modules/axios/lib/defaults.js","normalizeHeaderName","DEFAULT_CONTENT_TYPE","setContentTypeIfUnset","getDefaultAdapter","process","isArrayBuffer","isBuffer","isStream","isFile","isBlob","isArrayBufferView","buffer","isURLSearchParams","maxContentLength","./node_modules/axios/lib/helpers/bind.js","thisArg","wrap","./node_modules/axios/lib/helpers/buildURL.js","encode","encodeURIComponent","serializedParams","parts","serialize","parseValue","v","toISOString","./node_modules/axios/lib/helpers/combineURLs.js","relativeURL","./node_modules/axios/lib/helpers/cookies.js","standardBrowserEnv","write","expires","domain","secure","cookie","toGMTString","decodeURIComponent","remove","now","nonStandardBrowserEnv","./node_modules/axios/lib/helpers/isAbsoluteURL.js","./node_modules/axios/lib/helpers/isURLSameOrigin.js","msie","navigator","userAgent","urlParsingNode","createElement","originURL","resolveURL","protocol","host","search","hash","hostname","port","pathname","charAt","requestURL","./node_modules/axios/lib/helpers/normalizeHeaderName.js","normalizedName","processHeader","./node_modules/axios/lib/helpers/parseHeaders.js","ignoreDuplicateOf","parser","line","./node_modules/axios/lib/helpers/spread.js","callback","arr","./node_modules/axios/lib/utils.js","FormData","ArrayBuffer","isView","pipe","URLSearchParams","str","product","assignValue","b","./node_modules/core-js/es7/reflect.js","./node_modules/core-js/modules/_core.js","./node_modules/core-js/modules/es7.reflect.define-metadata.js","./node_modules/core-js/modules/es7.reflect.delete-metadata.js","./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js","./node_modules/core-js/modules/es7.reflect.get-metadata.js","./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js","./node_modules/core-js/modules/es7.reflect.get-own-metadata.js","./node_modules/core-js/modules/es7.reflect.has-metadata.js","./node_modules/core-js/modules/es7.reflect.has-own-metadata.js","./node_modules/core-js/modules/es7.reflect.metadata.js","./node_modules/is-buffer/index.js","isSlowBuffer","_isBuffer","readFloatLE","./node_modules/lodash/_DataView.js","getNative","DataView","./node_modules/lodash/_Hash.js","hashClear","hashDelete","hashGet","hashHas","hashSet","Hash","entries","clear","entry","has","./node_modules/lodash/_ListCache.js","listCacheClear","listCacheDelete","listCacheGet","listCacheHas","listCacheSet","ListCache","./node_modules/lodash/_Map.js","Map","./node_modules/lodash/_MapCache.js","mapCacheClear","mapCacheDelete","mapCacheGet","mapCacheHas","mapCacheSet","MapCache","./node_modules/lodash/_Promise.js","./node_modules/lodash/_Set.js","Set","./node_modules/lodash/_SetCache.js","setCacheAdd","setCacheHas","SetCache","__data__","./node_modules/lodash/_Stack.js","stackClear","stackDelete","stackGet","stackHas","stackSet","Stack","size","./node_modules/lodash/_Symbol.js","./node_modules/lodash/_Uint8Array.js","Uint8Array","./node_modules/lodash/_WeakMap.js","WeakMap","./node_modules/lodash/_arrayFilter.js","arrayFilter","predicate","resIndex","./node_modules/lodash/_arrayLikeKeys.js","baseTimes","isArguments","isIndex","isTypedArray","objectProto","arrayLikeKeys","inherited","isArr","isArg","isBuff","skipIndexes","./node_modules/lodash/_arrayMap.js","arrayMap","iteratee","./node_modules/lodash/_arrayPush.js","arrayPush","offset","./node_modules/lodash/_arraySome.js","arraySome","./node_modules/lodash/_assocIndexOf.js","eq","assocIndexOf","./node_modules/lodash/_baseEach.js","baseForOwn","createBaseEach","baseEach","./node_modules/lodash/_baseFindIndex.js","baseFindIndex","fromIndex","fromRight","./node_modules/lodash/_baseFor.js","createBaseFor","baseFor","./node_modules/lodash/_baseForOwn.js","./node_modules/lodash/_baseGet.js","castPath","toKey","baseGet","./node_modules/lodash/_baseGetAllKeys.js","baseGetAllKeys","keysFunc","symbolsFunc","./node_modules/lodash/_baseGetTag.js","getRawTag","objectToString","nullTag","undefinedTag","symToStringTag","baseGetTag","./node_modules/lodash/_baseHasIn.js","baseHasIn","./node_modules/lodash/_baseIsArguments.js","argsTag","baseIsArguments","./node_modules/lodash/_baseIsEqual.js","baseIsEqualDeep","baseIsEqual","other","bitmask","customizer","stack","./node_modules/lodash/_baseIsEqualDeep.js","equalArrays","equalByTag","equalObjects","COMPARE_PARTIAL_FLAG","arrayTag","objectTag","equalFunc","objIsArr","othIsArr","objTag","othTag","objIsObj","othIsObj","isSameTag","objIsWrapped","othIsWrapped","objUnwrapped","othUnwrapped","./node_modules/lodash/_baseIsMatch.js","COMPARE_UNORDERED_FLAG","baseIsMatch","matchData","noCustomizer","objValue","srcValue","./node_modules/lodash/_baseIsNative.js","isMasked","toSource","reRegExpChar","reIsHostCtor","funcProto","funcToString","reIsNative","baseIsNative","./node_modules/lodash/_baseIsTypedArray.js","isLength","boolTag","dateTag","errorTag","funcTag","mapTag","numberTag","regexpTag","setTag","stringTag","weakMapTag","arrayBufferTag","dataViewTag","float32Tag","float64Tag","int8Tag","int16Tag","int32Tag","uint8Tag","uint8ClampedTag","uint16Tag","uint32Tag","typedArrayTags","baseIsTypedArray","./node_modules/lodash/_baseIteratee.js","baseMatches","baseMatchesProperty","identity","baseIteratee","./node_modules/lodash/_baseKeys.js","isPrototype","nativeKeys","baseKeys","./node_modules/lodash/_baseMap.js","isArrayLike","baseMap","collection","./node_modules/lodash/_baseMatches.js","getMatchData","matchesStrictComparable","./node_modules/lodash/_baseMatchesProperty.js","hasIn","isKey","isStrictComparable","./node_modules/lodash/_baseProperty.js","baseProperty","./node_modules/lodash/_basePropertyDeep.js","basePropertyDeep","./node_modules/lodash/_baseTimes.js","./node_modules/lodash/_baseToString.js","isSymbol","INFINITY","symbolProto","symbolToString","baseToString","./node_modules/lodash/_baseUnary.js","baseUnary","func","./node_modules/lodash/_cacheHas.js","cacheHas","cache","./node_modules/lodash/_castPath.js","stringToPath","./node_modules/lodash/_coreJsData.js","coreJsData","./node_modules/lodash/_createBaseEach.js","eachFunc","iterable","./node_modules/lodash/_createBaseFor.js","props","./node_modules/lodash/_createFind.js","createFind","findIndexFunc","./node_modules/lodash/_equalArrays.js","isPartial","arrLength","othLength","arrStacked","othStacked","seen","arrValue","othValue","compared","othIndex","./node_modules/lodash/_equalByTag.js","mapToArray","setToArray","symbolTag","symbolValueOf","valueOf","tag","byteLength","byteOffset","convert","stacked","./node_modules/lodash/_equalObjects.js","getAllKeys","objProps","objLength","othProps","objStacked","skipCtor","objCtor","othCtor","./node_modules/lodash/_freeGlobal.js","freeGlobal","global","./node_modules/lodash/_getAllKeys.js","getSymbols","./node_modules/lodash/_getMapData.js","isKeyable","getMapData","./node_modules/lodash/_getMatchData.js","./node_modules/lodash/_getNative.js","getValue","./node_modules/lodash/_getPrototype.js","overArg","getPrototype","./node_modules/lodash/_getRawTag.js","nativeObjectToString","isOwn","unmasked","./node_modules/lodash/_getSymbols.js","stubArray","propertyIsEnumerable","nativeGetSymbols","getOwnPropertySymbols","symbol","./node_modules/lodash/_getTag.js","promiseTag","dataViewCtorString","mapCtorString","promiseCtorString","setCtorString","weakMapCtorString","Ctor","ctorString","./node_modules/lodash/_getValue.js","./node_modules/lodash/_hasPath.js","hasPath","hasFunc","./node_modules/lodash/_hashClear.js","nativeCreate","./node_modules/lodash/_hashDelete.js","./node_modules/lodash/_hashGet.js","HASH_UNDEFINED","./node_modules/lodash/_hashHas.js","./node_modules/lodash/_hashSet.js","./node_modules/lodash/_isIndex.js","MAX_SAFE_INTEGER","reIsUint","./node_modules/lodash/_isKey.js","reIsDeepProp","reIsPlainProp","./node_modules/lodash/_isKeyable.js","./node_modules/lodash/_isMasked.js","maskSrcKey","uid","IE_PROTO","./node_modules/lodash/_isPrototype.js","proto","./node_modules/lodash/_isStrictComparable.js","./node_modules/lodash/_listCacheClear.js","./node_modules/lodash/_listCacheDelete.js","arrayProto","splice","lastIndex","pop","./node_modules/lodash/_listCacheGet.js","./node_modules/lodash/_listCacheHas.js","./node_modules/lodash/_listCacheSet.js","./node_modules/lodash/_mapCacheClear.js","./node_modules/lodash/_mapCacheDelete.js","./node_modules/lodash/_mapCacheGet.js","./node_modules/lodash/_mapCacheHas.js","./node_modules/lodash/_mapCacheSet.js","./node_modules/lodash/_mapToArray.js","./node_modules/lodash/_matchesStrictComparable.js","./node_modules/lodash/_memoizeCapped.js","memoize","MAX_MEMOIZE_SIZE","memoizeCapped","./node_modules/lodash/_nativeCreate.js","./node_modules/lodash/_nativeKeys.js","./node_modules/lodash/_nodeUtil.js","freeExports","nodeType","freeModule","moduleExports","freeProcess","nodeUtil","binding","./node_modules/lodash/_objectToString.js","./node_modules/lodash/_overArg.js","./node_modules/lodash/_root.js","freeSelf","./node_modules/lodash/_setCacheAdd.js","./node_modules/lodash/_setCacheHas.js","./node_modules/lodash/_setToArray.js","./node_modules/lodash/_stackClear.js","./node_modules/lodash/_stackDelete.js","./node_modules/lodash/_stackGet.js","./node_modules/lodash/_stackHas.js","./node_modules/lodash/_stackSet.js","LARGE_ARRAY_SIZE","pairs","./node_modules/lodash/_stringToPath.js","rePropName","reEscapeChar","charCodeAt","number","quote","subString","./node_modules/lodash/_toKey.js","./node_modules/lodash/_toSource.js","./node_modules/lodash/eq.js","./node_modules/lodash/find.js","findIndex","./node_modules/lodash/findIndex.js","toInteger","nativeMax","max","./node_modules/lodash/get.js","defaultValue","./node_modules/lodash/hasIn.js","./node_modules/lodash/identity.js","./node_modules/lodash/isArguments.js","./node_modules/lodash/isArray.js","./node_modules/lodash/isArrayLike.js","./node_modules/lodash/isBoolean.js","./node_modules/lodash/isBuffer.js","stubFalse","Buffer","nativeIsBuffer","./node_modules/lodash/isFunction.js","asyncTag","genTag","proxyTag","./node_modules/lodash/isLength.js","./node_modules/lodash/isNull.js","./node_modules/lodash/isNumber.js","./node_modules/lodash/isObject.js","./node_modules/lodash/isObjectLike.js","./node_modules/lodash/isPlainObject.js","objectCtorString","./node_modules/lodash/isString.js","./node_modules/lodash/isSymbol.js","./node_modules/lodash/isTypedArray.js","nodeIsTypedArray","./node_modules/lodash/isUndefined.js","./node_modules/lodash/keys.js","./node_modules/lodash/lodash.js","./node_modules/lodash/map.js","./node_modules/lodash/memoize.js","FUNC_ERROR_TEXT","resolver","memoized","Cache","./node_modules/lodash/property.js","./node_modules/lodash/stubArray.js","./node_modules/lodash/stubFalse.js","./node_modules/lodash/toFinite.js","toNumber","MAX_INTEGER","toFinite","sign","./node_modules/lodash/toInteger.js","remainder","./node_modules/lodash/toNumber.js","NAN","reTrim","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","parseInt","isBinary","./node_modules/lodash/toString.js","./node_modules/process/browser.js","./node_modules/reflect-metadata/Reflect.js","./node_modules/rxjs/AsyncSubject.js","./node_modules/rxjs/BehaviorSubject.js","./node_modules/rxjs/Notification.js","./node_modules/rxjs/Observable.js","./node_modules/rxjs/OuterSubscriber.js","./node_modules/rxjs/ReplaySubject.js","./node_modules/rxjs/Rx.js","./node_modules/rxjs/Subject.js","./node_modules/rxjs/Subscriber.js","./node_modules/rxjs/Subscription.js","./node_modules/rxjs/add/observable/empty.js","./node_modules/rxjs/add/observable/from.js","./node_modules/rxjs/add/operator/switchMap.js","./node_modules/rxjs/observable/ArrayObservable.js","./node_modules/rxjs/observable/ConnectableObservable.js","./node_modules/rxjs/observable/EmptyObservable.js","./node_modules/rxjs/observable/FromObservable.js","./node_modules/rxjs/observable/ScalarObservable.js","./node_modules/rxjs/observable/concat.js","./node_modules/rxjs/observable/merge.js","./node_modules/rxjs/observable/race.js","./node_modules/rxjs/observable/timer.js","./node_modules/rxjs/operators.js","audit","auditTime","bufferCount","bufferTime","bufferToggle","bufferWhen","catchError","combineAll","combineLatest","concatAll","concatMap","concatMapTo","count","debounce","debounceTime","defaultIfEmpty","delay","delayWhen","dematerialize","distinct","distinctUntilChanged","distinctUntilKeyChanged","elementAt","exhaust","exhaustMap","expand","finalize","first","groupBy","ignoreElements","isEmpty","last","mapTo","materialize","mergeAll","mergeMap","mergeMapTo","mergeScan","min","multicast","observeOn","onErrorResumeNext","pairwise","partition","pluck","publish","publishBehavior","publishLast","publishReplay","race","repeat","repeatWhen","retry","retryWhen","refCount","sample","sampleTime","scan","sequenceEqual","share","shareReplay","single","skip","skipLast","skipUntil","skipWhile","startWith","switchAll","switchMapTo","take","takeLast","takeUntil","takeWhile","tap","throttle","throttleTime","timeInterval","timeoutWith","timestamp","toArray","windowCount","windowTime","windowToggle","windowWhen","withLatestFrom","zip","zipAll","./node_modules/rxjs/operators/audit.js","__","durationSelector","auditOperatorFunction","lift","AuditOperator","subscriber","AuditSubscriber","destination","hasValue","_next","throttled","duration","tryCatch","errorObject","innerSubscription","subscribeToResult","closed","clearThrottle","notifyNext","outerValue","innerValue","outerIndex","innerIndex","notifyComplete","OuterSubscriber","./node_modules/rxjs/operators/auditTime.js","scheduler","timer","./node_modules/rxjs/operators/buffer.js","closingNotifier","bufferOperatorFunction","BufferOperator","BufferSubscriber","innerSub","./node_modules/rxjs/operators/bufferCount.js","bufferSize","startBufferEvery","bufferCountOperatorFunction","BufferCountOperator","subscriberClass","BufferCountSubscriber","BufferSkipCountSubscriber","_complete","Subscriber","buffers","./node_modules/rxjs/operators/bufferTime.js","bufferTimeSpan","async","isScheduler","bufferCreationInterval","maxBufferSize","POSITIVE_INFINITY","bufferTimeOperatorFunction","BufferTimeOperator","BufferTimeSubscriber","contexts","openContext","timespanOnly","timeSpanOnlyState","closeAction","schedule","dispatchBufferTimeSpanOnly","closeState","creationState","dispatchBufferClose","dispatchBufferCreation","len","filledBufferContext","onBufferFull","_error","_unsubscribe","closeContext","spliceIndex","prevContext","./node_modules/rxjs/operators/bufferToggle.js","openings","closingSelector","bufferToggleOperatorFunction","BufferToggleOperator","BufferToggleSubscriber","closeBuffer","openBuffer","trySubscribe","Subscription","./node_modules/rxjs/operators/bufferWhen.js","BufferWhenOperator","BufferWhenSubscriber","subscribing","closingSubscription","./node_modules/rxjs/operators/catchError.js","catchErrorOperatorFunction","operator","CatchOperator","CatchSubscriber","isStopped","err2","_unsubscribeAndRecycle","./node_modules/rxjs/operators/combineAll.js","project","CombineLatestOperator","./node_modules/rxjs/operators/combineLatest.js","none","observables","ArrayObservable","CombineLatestSubscriber","active","toRespond","unused","oldVal","_tryProject","./node_modules/rxjs/operators/concat.js","./node_modules/rxjs/operators/concatAll.js","./node_modules/rxjs/operators/concatMap.js","resultSelector","./node_modules/rxjs/operators/concatMapTo.js","innerObservable","./node_modules/rxjs/operators/count.js","CountOperator","CountSubscriber","_tryPredicate","./node_modules/rxjs/operators/debounce.js","DebounceOperator","DebounceSubscriber","durationSubscription","_tryNext","emitValue","./node_modules/rxjs/operators/debounceTime.js","dueTime","DebounceTimeOperator","DebounceTimeSubscriber","debouncedSubscription","lastValue","clearDebounce","dispatchNext","debouncedNext","./node_modules/rxjs/operators/defaultIfEmpty.js","DefaultIfEmptyOperator","DefaultIfEmptySubscriber","./node_modules/rxjs/operators/delay.js","absoluteDelay","delayFor","abs","DelayOperator","DelaySubscriber","queue","errored","time","notification","observe","_schedule","scheduleNotification","DelayMessage","Notification","createNext","createComplete","./node_modules/rxjs/operators/delayWhen.js","delayDurationSelector","subscriptionDelay","SubscriptionDelayObservable","DelayWhenOperator","DelayWhenSubscriber","completed","delayNotifierSubscriptions","removeSubscription","tryComplete","notifyError","delayNotifier","tryDelay","subscriptionIdx","notifierSubscription","_subscribe","SubscriptionDelaySubscriber","parent","sourceSubscribed","subscribeToSource","./node_modules/rxjs/operators/dematerialize.js","dematerializeOperatorFunction","DeMaterializeOperator","DeMaterializeSubscriber","./node_modules/rxjs/operators/distinct.js","keySelector","flushes","DistinctOperator","DistinctSubscriber","_useKeySelector","_finalizeNext","./node_modules/rxjs/operators/distinctUntilChanged.js","compare","DistinctUntilChangedOperator","DistinctUntilChangedSubscriber","hasKey","x","y","./node_modules/rxjs/operators/distinctUntilKeyChanged.js","./node_modules/rxjs/operators/elementAt.js","ElementAtOperator","ArgumentOutOfRangeError","ElementAtSubscriber","./node_modules/rxjs/operators/every.js","EveryOperator","observer","EverySubscriber","everyValueMatch","./node_modules/rxjs/operators/exhaust.js","SwitchFirstOperator","SwitchFirstSubscriber","hasCompleted","hasSubscription","./node_modules/rxjs/operators/exhaustMap.js","SwitchFirstMapOperator","SwitchFirstMapSubscriber","tryNext","trySelectResult","./node_modules/rxjs/operators/expand.js","concurrent","ExpandOperator","ExpandSubscriber","subscribeToProjection","./node_modules/rxjs/operators/filter.js","filterOperatorFunction","FilterOperator","FilterSubscriber","./node_modules/rxjs/operators/finalize.js","FinallyOperator","FinallySubscriber","./node_modules/rxjs/operators/find.js","FindValueOperator","yieldIndex","FindValueSubscriber","./node_modules/rxjs/operators/findIndex.js","./node_modules/rxjs/operators/first.js","FirstOperator","FirstSubscriber","_emitted","_emit","_tryResultSelector","_emitFinal","EmptyError","./node_modules/rxjs/operators/groupBy.js","elementSelector","subjectSelector","GroupByOperator","GroupBySubscriber","groups","attemptedToUnsubscribe","_group","FastMap","group","Subject","groupedObservable","GroupedObservable","GroupDurationSubscriber","removeGroup","delete","groupSubject","refCountSubscription","InnerRefCountSubscription","./node_modules/rxjs/operators/ignoreElements.js","ignoreElementsOperatorFunction","IgnoreElementsOperator","IgnoreElementsSubscriber","noop","./node_modules/rxjs/operators/isEmpty.js","IsEmptyOperator","IsEmptySubscriber","./node_modules/rxjs/operators/last.js","LastOperator","LastSubscriber","./node_modules/rxjs/operators/map.js","mapOperation","MapOperator","MapSubscriber","./node_modules/rxjs/operators/mapTo.js","MapToOperator","MapToSubscriber","./node_modules/rxjs/operators/materialize.js","materializeOperatorFunction","MaterializeOperator","MaterializeSubscriber","./node_modules/rxjs/operators/max.js","comparer","./node_modules/rxjs/operators/merge.js","./node_modules/rxjs/operators/mergeAll.js","./node_modules/rxjs/operators/mergeMap.js","mergeMapOperatorFunction","MergeMapOperator","MergeMapSubscriber","_innerSub","ish","_notifyResultSelector","./node_modules/rxjs/operators/mergeMapTo.js","MergeMapToOperator","MergeMapToSubscriber","./node_modules/rxjs/operators/mergeScan.js","accumulator","seed","MergeScanOperator","MergeScanSubscriber","acc","./node_modules/rxjs/operators/min.js","./node_modules/rxjs/operators/multicast.js","subjectOrSubjectFactory","multicastOperatorFunction","subjectFactory","MulticastOperator","connectable","connectableObservableDescriptor","./node_modules/rxjs/operators/observeOn.js","observeOnOperatorFunction","ObserveOnOperator","ObserveOnSubscriber","scheduleMessage","ObserveOnMessage","./node_modules/rxjs/operators/onErrorResumeNext.js","nextSources","OnErrorResumeNextOperator","FromObservable","onErrorResumeNextStatic","OnErrorResumeNextSubscriber","subscribeToNextSource","./node_modules/rxjs/operators/pairwise.js","PairwiseOperator","PairwiseSubscriber","hasPrev","prev","./node_modules/rxjs/operators/partition.js","not","./node_modules/rxjs/operators/pluck.js","plucker","mapper","currentProp","./node_modules/rxjs/operators/publish.js","./node_modules/rxjs/operators/publishBehavior.js","BehaviorSubject","./node_modules/rxjs/operators/publishLast.js","AsyncSubject","./node_modules/rxjs/operators/publishReplay.js","selectorOrScheduler","./node_modules/rxjs/operators/race.js","raceOperatorFunction","./node_modules/rxjs/operators/reduce.js","reduceOperatorFunctionWithSeed","reduceOperatorFunction","./node_modules/rxjs/operators/refCount.js","refCountOperatorFunction","RefCountOperator","_refCount","refCounter","RefCountSubscriber","connection","connect","sharedConnection","_connection","./node_modules/rxjs/operators/repeat.js","EmptyObservable","RepeatOperator","RepeatSubscriber","./node_modules/rxjs/operators/repeatWhen.js","notifier","RepeatWhenOperator","RepeatWhenSubscriber","sourceIsBeingSubscribedTo","retries","subscribeToRetries","retriesSubscription","notifications","./node_modules/rxjs/operators/retry.js","RetryOperator","RetrySubscriber","./node_modules/rxjs/operators/retryWhen.js","RetryWhenOperator","RetryWhenSubscriber","errors","./node_modules/rxjs/operators/sample.js","SampleOperator","sampleSubscriber","SampleSubscriber","./node_modules/rxjs/operators/sampleTime.js","period","SampleTimeOperator","SampleTimeSubscriber","dispatchNotification","./node_modules/rxjs/operators/scan.js","hasSeed","scanOperatorFunction","ScanOperator","ScanSubscriber","_seed","./node_modules/rxjs/operators/sequenceEqual.js","compareTo","comparor","SequenceEqualOperator","SequenceEqualSubscriber","_oneComplete","SequenceEqualCompareToSubscriber","checkValues","areEqual","nextB","./node_modules/rxjs/operators/share.js","shareSubjectFactory","./node_modules/rxjs/operators/shareReplay.js","shareReplayOperator","hasError","isComplete","shareReplayOperation","./node_modules/rxjs/operators/single.js","SingleOperator","SingleSubscriber","seenValue","applySingleValue","singleValue","./node_modules/rxjs/operators/skip.js","SkipOperator","total","SkipSubscriber","./node_modules/rxjs/operators/skipLast.js","SkipLastOperator","_skipCount","SkipLastSubscriber","_count","_ring","skipCount","currentIndex","ring","oldValue","./node_modules/rxjs/operators/skipUntil.js","SkipUntilOperator","SkipUntilSubscriber","isInnerStopped","./node_modules/rxjs/operators/skipWhile.js","SkipWhileOperator","SkipWhileSubscriber","skipping","tryCallPredicate","./node_modules/rxjs/operators/startWith.js","ScalarObservable","./node_modules/rxjs/operators/switchAll.js","./node_modules/rxjs/operators/switchMap.js","switchMapOperatorFunction","SwitchMapOperator","SwitchMapSubscriber","_tryNotifyNext","./node_modules/rxjs/operators/switchMapTo.js","SwitchMapToOperator","SwitchMapToSubscriber","inner","tryResultSelector","./node_modules/rxjs/operators/take.js","TakeOperator","TakeSubscriber","./node_modules/rxjs/operators/takeLast.js","takeLastOperatorFunction","TakeLastOperator","TakeLastSubscriber","idx","./node_modules/rxjs/operators/takeUntil.js","TakeUntilOperator","TakeUntilSubscriber","./node_modules/rxjs/operators/takeWhile.js","TakeWhileOperator","TakeWhileSubscriber","nextOrComplete","predicateResult","./node_modules/rxjs/operators/tap.js","nextOrObserver","tapOperatorFunction","DoOperator","DoSubscriber","safeSubscriber","syncErrorThrowable","syncErrorThrown","syncErrorValue","./node_modules/rxjs/operators/throttle.js","defaultThrottleConfig","leading","trailing","ThrottleOperator","ThrottleSubscriber","_leading","_trailing","_hasTrailingValue","_trailingValue","tryDurationSelector","_sendTrailing","./node_modules/rxjs/operators/throttleTime.js","ThrottleTimeOperator","ThrottleTimeSubscriber","./node_modules/rxjs/operators/timeInterval.js","TimeIntervalOperator","interval","TimeInterval","TimeIntervalSubscriber","lastTime","span","./node_modules/rxjs/operators/timeout.js","due","absoluteTimeout","waitFor","TimeoutOperator","TimeoutError","errorInstance","TimeoutSubscriber","scheduleTimeout","dispatchTimeout","./node_modules/rxjs/operators/timeoutWith.js","withObservable","TimeoutWithOperator","TimeoutWithSubscriber","./node_modules/rxjs/operators/timestamp.js","Timestamp","./node_modules/rxjs/operators/toArray.js","toArrayReducer","item","./node_modules/rxjs/operators/window.js","windowBoundaries","windowOperatorFunction","WindowOperator","windowSubscriber","WindowSubscriber","sourceSubscription","openWindow","prevWindow","newWindow","./node_modules/rxjs/operators/windowCount.js","windowSize","startWindowEvery","windowCountOperatorFunction","WindowCountOperator","WindowCountSubscriber","windows","./node_modules/rxjs/operators/windowTime.js","windowTimeSpan","windowCreationInterval","maxWindowSize","isNumeric","windowTimeOperatorFunction","WindowTimeOperator","WindowTimeSubscriber","_numberOfNextedValues","dispatchWindowClose","dispatchWindowCreation","dispatchWindowTimeSpanOnly","numberOfNextedValues","closeWindow","CountedSubject","timeSpanState","./node_modules/rxjs/operators/windowToggle.js","WindowToggleOperator","WindowToggleSubscriber","openSubscription","./node_modules/rxjs/operators/windowWhen.js","windowWhenOperatorFunction","unsubscribeClosingNotification","closingNotification","./node_modules/rxjs/operators/withLatestFrom.js","WithLatestFromOperator","WithLatestFromSubscriber","found","./node_modules/rxjs/operators/zip.js","zipOperatorFunction","zipStatic","ZipOperator","ZipSubscriber","iterators","StaticArrayIterator","StaticIterator","ZipBufferIterator","iterator","stillUnsubscribed","notifyInactive","checkIterators","shouldComplete","done","nextResult","./node_modules/rxjs/operators/zipAll.js","./node_modules/rxjs/scheduler/async.js","./node_modules/rxjs/symbol/iterator.js","./node_modules/rxjs/util/ArgumentOutOfRangeError.js","./node_modules/rxjs/util/EmptyError.js","./node_modules/rxjs/util/FastMap.js","./node_modules/rxjs/util/Map.js","./node_modules/rxjs/util/Set.js","./node_modules/rxjs/util/TimeoutError.js","./node_modules/rxjs/util/errorObject.js","./node_modules/rxjs/util/identity.js","./node_modules/rxjs/util/isArray.js","./node_modules/rxjs/util/isDate.js","./node_modules/rxjs/util/isNumeric.js","./node_modules/rxjs/util/isScheduler.js","./node_modules/rxjs/util/noop.js","./node_modules/rxjs/util/not.js","./node_modules/rxjs/util/pipe.js","pipeFromArray","piped","input","./node_modules/rxjs/util/subscribeToResult.js","./node_modules/rxjs/util/tryCatch.js","./node_modules/webpack/buildin/global.js","./node_modules/webpack/buildin/module.js","./node_modules/zone.js/dist/zone.js","./src/main/typescript/app/app.component.ts","decorators","desc","getOwnPropertyDescriptor","decorate","__metadata","k","AppComponent","./src/main/typescript/app/app.module.ts","extendStatics","setPrototypeOf","__proto__","AppModule","VoucherComponentModule","VoucherServiceModule","entryComponents","./src/main/typescript/app/components/voucher/child-components/feedback-message.component.ts","classObjectForMessageType","messageType$","classObject","FeedbackMessageType","SUCCESS","FeedbackMessageComponent","./src/main/typescript/app/components/voucher/child-components/voucher-applied.component.ts","deleteVoucher","onDelete","VoucherAppliedComponent","./src/main/typescript/app/components/voucher/child-components/voucher-input.component.ts","applyVoucher","formSubmitted","validationSpec","voucherInput","control","setValidators","Validators","required","minLength","maxLength","onSubmit","voucherForm","valid","invalid","touched","errorMessage","minlength","maxlength","VoucherInputComponent","NgModel","FormGroup","./src/main/typescript/app/components/voucher/child-components/voucher-panel.component.ts","toggle","onToggle","classForPanel$","open$","classForPanelTitle$","VoucherPanelComponent","./src/main/typescript/app/components/voucher/voucher.component.module.ts","ReactiveFormsModule","VoucherComponent","./src/main/typescript/app/components/voucher/voucher.component.ts","voucherService","validationSpec$","voucherValidationSpec$","panelOpen$","feedbackMessageType$","feedbackMessage$","voucherInputMode$","hasFeedbackMessage$","displayedVoucherCode$","voucherInputText$","voucherCodeText$","redeemText$","onApplyVoucher","voucherCode","onDeleteVoucher","onTogglePanel","togglePanel","VoucherService","./src/main/typescript/app/page-value/voucher-page.value.ts","AppliedVoucherValue","VoucherPageValue","VoucherValidationSpecValue","VoucherValueType","./src/main/typescript/app/service/voucher.service.module.ts","actionBaseType","AbstractVoucherAction","VoucherRootStateValue","uiState","VoucherUiStateValue","panelOpen","displayedVoucherCode","currentFeedbackMessage","voucherEditable","voucherInputMode","voucherInputText","voucherCodeText","redeemText","VoucherPageValueReducer","VoucherReducer","customReducer","./src/main/typescript/app/service/voucher.service.ts","appliedVoucher","validationResult","VoucherResultType","ACCEPTED","voucherValidationSpec","applyVoucherCall","VoucherAppliedAction","onVoucherApplied","VoucherBenefitChangedCsiOutboundAction","onVoucherDeleted","unapplyVoucherCall","VoucherDeletedAction","ApplyVoucherAction","DeleteVoucherAction","ToggleVoucherPanelAction","FeedbackMessageType_1","VoucherEnumType","./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts","./src/main/typescript/app/stores/voucher/actions/apply-voucher-action.ts","./src/main/typescript/app/stores/voucher/actions/delete-voucher-action.ts","./src/main/typescript/app/stores/voucher/actions/toggle-voucher-panel.action.ts","./src/main/typescript/app/stores/voucher/actions/voucher-applied-action.ts","./src/main/typescript/app/stores/voucher/actions/voucher-benefit-changed-csi-outbound.action.ts","./src/main/typescript/app/stores/voucher/actions/voucher-deleted-action.ts","./src/main/typescript/app/stores/voucher/reducers/reducer-utils.ts","feedbackMessage","./src/main/typescript/app/stores/voucher/reducers/voucher.page-value.reducer.ts","computeInitialStateFromPageValue","computeUiStateWithAppliedVoucher","./src/main/typescript/app/stores/voucher/reducers/voucher.reducer.ts","voucherApplied","displayVoucherCode","tooglePanel","./src/main/typescript/app/stores/voucher/values/applied-voucher.value.ts","./src/main/typescript/app/stores/voucher/values/voucher-enum-type.ts","./src/main/typescript/app/stores/voucher/values/voucher-result-type.enum.ts","VoucherResultType_1","UNSUPPORTED_MULTIPLE_VOUCHERS","EMPTY_CART","UNEXPECTED_ERROR","INVALID_PRODUCT_ID","INVALID_VO_NUMBER","VOUCHER_ALREADY_CASHED_IN","VOUCHER_EXPIRED","VOUCHER_PROFILE_NOT_VALID_YET","VOUCHER_NOT_VALID_FOR_CHOSEN_PRODUCT","ALLOWED_CASHINS_COMPLETED","WRONG_CASHIN_SALES_CHANNEL","VOUCHER_PROFILE_STOPPED","VOUCHER_PROFILE_EXPIRED","DUPLICATE_RESERVATION_REQUEST","ALLOWED_CASHINS_FOR_VO_COMPLETED","FRAME_CONTRACT_NOT_VALID","VO_NOT_VALID_FOR_PROFILE","INVALID_VOUCHER_CATEGORY","INVALID_VOUCHER_CODE","./src/main/typescript/app/stores/voucher/values/voucher-root-state.value.ts","./src/main/typescript/app/stores/voucher/values/voucher-ui-state.value.ts","./src/main/typescript/app/stores/voucher/values/voucher-validation-spec.value.ts","./src/main/typescript/app/stores/voucher/values/voucher-value-type.ts","./src/main/typescript/index.ts","0","dll-reference _shop_js_vendor_ng4","_shop_js_vendor_ng4"],"mappings":"CAAA,QAAUA,kCAAiCC,EAAMC,GAChD,SAAUC,WAAY,gBAAmBC,UAAW,SACnDA,OAAOD,QAAUD,QACb,UAAUG,UAAW,YAAcA,OAAOC,IAC9CD,UAAWH,OACP,UAAUC,WAAY,SAC1BA,QAAQ,kBAAoBD,QAE5BD,GAAK,kBAAoBC,YACjBK,QAAS,YAAcA,KAAOC,KAAM,WAC9C,M,aCTE,GAAIC,KAGJ,SAASC,qBAAoBC,GAG5B,GAAGF,EAAiBE,GAAW,CAC9B,MAAOF,GAAiBE,GAAUR,QAGnC,GAAIC,GAASK,EAAiBE,IAC7BC,EAAGD,EACHE,EAAG,MACHV,WAIDW,GAAQH,GAAUI,KAAKX,EAAOD,QAASC,EAAQA,EAAOD,QAASO,oBAG/DN,GAAOS,EAAI,IAGX,OAAOT,GAAOD,QAKfO,oBAAoBM,EAAIF,CAGxBJ,qBAAoBO,EAAIR,CAGxBC,qBAAoBQ,EAAI,SAASf,EAASgB,EAAMC,GAC/C,IAAIV,oBAAoBW,EAAElB,EAASgB,GAAO,CACzCG,OAAOC,eAAepB,EAASgB,GAC9BK,aAAc,MACdC,WAAY,KACZC,IAAKN,KAMRV,qBAAoBiB,EAAI,SA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SAAUn3E,EAAQD,EAASO,GAEjCN,EAAOD,QAAUO,EAAoB,mCAK/B82E,oCACA,SAAUp3E,EAAQD,GgkBtukBxBC,EAAOD,QAAUs3E","file":"index.js","sourcesContent":["(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"voucher_ui_ng4\"] = factory();\n\telse\n\t\troot[\"voucher_ui_ng4\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, {\n \t\t\t\tconfigurable: false,\n \t\t\t\tenumerable: true,\n \t\t\t\tget: getter\n \t\t\t});\n \t\t}\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack/bootstrap 6a02dd5f3039fabafa17","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"voucher_ui_ng4\"] = factory();\n\telse\n\t\troot[\"voucher_ui_ng4\"] = factory();\n})(typeof self !== 'undefined' ? self : this, function() {\nreturn /******/ (function(modules) { // webpackBootstrap\n/******/ \t// The module cache\n/******/ \tvar installedModules = {};\n/******/\n/******/ \t// The require function\n/******/ \tfunction __webpack_require__(moduleId) {\n/******/\n/******/ \t\t// Check if module is in cache\n/******/ \t\tif(installedModules[moduleId]) {\n/******/ \t\t\treturn installedModules[moduleId].exports;\n/******/ \t\t}\n/******/ \t\t// Create a new module (and put it into the cache)\n/******/ \t\tvar module = installedModules[moduleId] = {\n/******/ \t\t\ti: moduleId,\n/******/ \t\t\tl: false,\n/******/ \t\t\texports: {}\n/******/ \t\t};\n/******/\n/******/ \t\t// Execute the module function\n/******/ \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n/******/\n/******/ \t\t// Flag the module as loaded\n/******/ \t\tmodule.l = true;\n/******/\n/******/ \t\t// Return the exports of the module\n/******/ \t\treturn module.exports;\n/******/ \t}\n/******/\n/******/\n/******/ \t// expose the modules object (__webpack_modules__)\n/******/ \t__webpack_require__.m = modules;\n/******/\n/******/ \t// expose the module cache\n/******/ \t__webpack_require__.c = installedModules;\n/******/\n/******/ \t// define getter function for harmony exports\n/******/ \t__webpack_require__.d = function(exports, name, getter) {\n/******/ \t\tif(!__webpack_require__.o(exports, name)) {\n/******/ \t\t\tObject.defineProperty(exports, name, {\n/******/ \t\t\t\tconfigurable: false,\n/******/ \t\t\t\tenumerable: true,\n/******/ \t\t\t\tget: getter\n/******/ \t\t\t});\n/******/ \t\t}\n/******/ \t};\n/******/\n/******/ \t// getDefaultExport function for compatibility with non-harmony modules\n/******/ \t__webpack_require__.n = function(module) {\n/******/ \t\tvar getter = module && module.__esModule ?\n/******/ \t\t\tfunction getDefault() { return module['default']; } :\n/******/ \t\t\tfunction getModuleExports() { return module; };\n/******/ \t\t__webpack_require__.d(getter, 'a', getter);\n/******/ \t\treturn getter;\n/******/ \t};\n/******/\n/******/ \t// Object.prototype.hasOwnProperty.call\n/******/ \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n/******/\n/******/ \t// __webpack_public_path__\n/******/ \t__webpack_require__.p = \"\";\n/******/\n/******/ \t// Load entry module and return exports\n/******/ \treturn __webpack_require__(__webpack_require__.s = 0);\n/******/ })\n/************************************************************************/\n/******/ ({\n\n/***/ \"./node_modules/@angular/common/@angular/common.es5.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/common/@angular/common.es5.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/@angular/core/@angular/core.es5.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/core/@angular/core.es5.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/@angular/forms/@angular/forms.es5.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/forms/@angular/forms.es5.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/@angular/http/@angular/http.es5.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/http/@angular/http.es5.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/@ngrx/effects/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@ngrx/effects/index.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/@ngrx/store-devtools/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@ngrx/store-devtools/index.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/@ngrx/store/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@ngrx/store/index.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n!function webpackUniversalModuleDefinition(t,e){ true?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports._shop_js_infrastructure_generic_datatypes=e():t._shop_js_infrastructure_generic_datatypes=e()}(window,function(){return function(t){var e={};function __webpack_require__(r){if(e[r])return e[r].exports;var a=e[r]={i:r,l:!1,exports:{}};return t[r].call(a.exports,a,a.exports,__webpack_require__),a.l=!0,a.exports}return __webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.d=function(t,e,r){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},__webpack_require__.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},__webpack_require__.t=function(t,e){if(1&e&&(t=__webpack_require__(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(__webpack_require__.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var a in t)__webpack_require__.d(r,a,function(e){return t[e]}.bind(null,a));return r},__webpack_require__.n=function(t){var e=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};return __webpack_require__.d(e,\"a\",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p=\"\",__webpack_require__(__webpack_require__.s=0)}({\"./src/main/typescript/base/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/base/infrastructure-enum-type.decorator.ts\")),__export(r(\"./src/main/typescript/base/infrastructure-value-type.decorator.ts\"))},\"./src/main/typescript/base/infrastructure-enum-type.decorator.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/valuemetadata/decorators/enum-type.decorator.ts\");e.InfrastructureEnumType=function InfrastructureEnumType(){return a.EnumType(\"infrastructure\")}},\"./src/main/typescript/base/infrastructure-value-type.decorator.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/valuemetadata/decorators/value-type.decorator.ts\");e.InfrastructureValueType=function InfrastructureValueType(){return a.ValueType(\"infrastructure\")}},\"./src/main/typescript/call/abstract-http-call.value.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),o=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},i=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,\"__esModule\",{value:!0});var c=r(\"./src/main/typescript/call/link.value.ts\"),s=r(\"./src/main/typescript/call/call.value.ts\"),p=r(\"./src/main/typescript/valuemetadata/decorators/property.decorator.ts\"),u=function(t){function AbstractHttpCall(){return null!==t&&t.apply(this,arguments)||this}return n(AbstractHttpCall,t),o([p.Property(),i(\"design:type\",c.Link)],AbstractHttpCall.prototype,\"link\",void 0),AbstractHttpCall}(s.Call);e.AbstractHttpCall=u},\"./src/main/typescript/call/call.value.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)});Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t){function Call(){return null!==t&&t.apply(this,arguments)||this}return n(Call,t),Call}(r(\"./src/main/typescript/immutable/abstract-immutable-data.ts\").AbstractImmutableData);e.Call=o},\"./src/main/typescript/call/constant-call.value.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),o=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},i=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,\"__esModule\",{value:!0});var c=r(\"./src/main/typescript/call/call.value.ts\"),s=r(\"./src/main/typescript/base/infrastructure-value-type.decorator.ts\"),p=r(\"./src/main/typescript/valuemetadata/decorators/property.decorator.ts\"),u=function(t){function ConstantCall(){return null!==t&&t.apply(this,arguments)||this}return n(ConstantCall,t),o([p.Property(),i(\"design:type\",Object)],ConstantCall.prototype,\"constantPayload\",void 0),ConstantCall=o([s.InfrastructureValueType()],ConstantCall)}(c.Call);e.ConstantCall=u},\"./src/main/typescript/call/delete-call.value.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),o=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i};Object.defineProperty(e,\"__esModule\",{value:!0});var i=r(\"./src/main/typescript/call/abstract-http-call.value.ts\"),c=r(\"./src/main/typescript/base/infrastructure-value-type.decorator.ts\"),s=function(t){function DeleteCall(){return null!==t&&t.apply(this,arguments)||this}return n(DeleteCall,t),DeleteCall=o([c.InfrastructureValueType()],DeleteCall)}(i.AbstractHttpCall);e.DeleteCall=s},\"./src/main/typescript/call/generic-request-error.ts\":function(t,e,r){\"use strict\";var a=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},n=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,\"__esModule\",{value:!0});var o=r(\"./src/main/typescript/valuemetadata/decorators/index.ts\"),i=r(\"./src/main/typescript/base/index.ts\"),c=function(){function GenericRequestError(t){this.messages=t}return a([o.ArrayProperty(String),n(\"design:type\",Array)],GenericRequestError.prototype,\"messages\",void 0),GenericRequestError=a([i.InfrastructureValueType(),n(\"design:paramtypes\",[Array])],GenericRequestError)}();e.GenericRequestError=c},\"./src/main/typescript/call/get-call.value.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),o=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i};Object.defineProperty(e,\"__esModule\",{value:!0});var i=r(\"./src/main/typescript/call/abstract-http-call.value.ts\"),c=r(\"./src/main/typescript/base/infrastructure-value-type.decorator.ts\"),s=function(t){function GetCall(){return null!==t&&t.apply(this,arguments)||this}return n(GetCall,t),GetCall.prototype.withVariables=function(t){var e=this.link.uri.replace(/_(\\w+)_/g,function(e,r){return t[r]});return this.update({link:function(t){return t.update({uri:e})}})},GetCall=o([c.InfrastructureValueType()],GetCall)}(i.AbstractHttpCall);e.GetCall=s},\"./src/main/typescript/call/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/call/abstract-http-call.value.ts\")),__export(r(\"./src/main/typescript/call/call.value.ts\")),__export(r(\"./src/main/typescript/call/constant-call.value.ts\")),__export(r(\"./src/main/typescript/call/delete-call.value.ts\")),__export(r(\"./src/main/typescript/call/get-call.value.ts\")),__export(r(\"./src/main/typescript/call/link.value.ts\")),__export(r(\"./src/main/typescript/call/navigation-event.value.ts\")),__export(r(\"./src/main/typescript/call/post-call.value.ts\")),__export(r(\"./src/main/typescript/call/service/index.ts\")),__export(r(\"./src/main/typescript/call/generic-request-error.ts\"))},\"./src/main/typescript/call/link.value.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),o=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},i=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,\"__esModule\",{value:!0});var c=r(\"./src/main/typescript/valuemetadata/decorators/property.decorator.ts\"),s=r(\"./src/main/typescript/base/infrastructure-value-type.decorator.ts\"),p=function(t){function Link(){return null!==t&&t.apply(this,arguments)||this}return n(Link,t),o([c.Property(),i(\"design:type\",String)],Link.prototype,\"uri\",void 0),o([c.Property({nullable:!0}),i(\"design:type\",String)],Link.prototype,\"mediaType\",void 0),Link=o([s.InfrastructureValueType()],Link)}(r(\"./src/main/typescript/immutable/abstract-immutable-data.ts\").AbstractImmutableData);e.Link=p},\"./src/main/typescript/call/navigation-event.value.ts\":function(t,e,r){\"use strict\";var a=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},n=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,\"__esModule\",{value:!0});var o=r(\"./src/main/typescript/call/link.value.ts\"),i=r(\"./src/main/typescript/base/infrastructure-value-type.decorator.ts\"),c=r(\"./src/main/typescript/valuemetadata/decorators/property.decorator.ts\"),s=function(){function NavigationEvent(){}return a([c.Property(),n(\"design:type\",o.Link)],NavigationEvent.prototype,\"link\",void 0),NavigationEvent=a([i.InfrastructureValueType()],NavigationEvent)}();e.NavigationEvent=s},\"./src/main/typescript/call/post-call.value.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),o=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},i=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,\"__esModule\",{value:!0});var c=r(\"./src/main/typescript/call/abstract-http-call.value.ts\"),s=r(\"./src/main/typescript/valuemetadata/decorators/property.decorator.ts\"),p=r(\"./src/main/typescript/base/infrastructure-value-type.decorator.ts\"),u=function(t){function PostCall(){return null!==t&&t.apply(this,arguments)||this}return n(PostCall,t),PostCall.prototype.withData=function(t){return this.update({data:t})},o([s.Property({nullable:!0}),i(\"design:type\",Object)],PostCall.prototype,\"data\",void 0),PostCall=o([p.InfrastructureValueType()],PostCall)}(c.AbstractHttpCall);e.PostCall=u},\"./src/main/typescript/call/service/call.service.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/call/index.ts\"),n=r(\"axios\"),o=r(\"lodash/isString\"),i=r(\"./src/main/typescript/call/service/flow-id-request-interceptor.ts\"),c=function(){function CallService(t){var e=this;this.mappingService=t,this.catchHandler=null,this.defaultCatchHandler=function(t){var r=e.mappingService.fromJson(t.response.data);return Promise.reject(r)}}return CallService.prototype.registerCatchHandler=function(t){this.catchHandler=t},CallService.prototype.handleCall=function(t,e){var r=this;if(void 0===e&&(e=0),e>=CallService.RECURSION_LIMIT)throw new Error(\"Trying to have more than 10 recursive Calls, this looks like an infinite loop... \");if(t instanceof a.ConstantCall)return this.handleConstantCall(t);var n=t,o=this.doExec(n),i=this.catchHandler||this.defaultCatchHandler;return o.then(function(t){return t instanceof a.ConstantCall?r.handleCall(t,e+1):t instanceof a.AbstractHttpCall?r.handleCall(t,e+1):t}).catch(i)},CallService.prototype.handleConstantCall=function(t){if(t.constantPayload instanceof a.NavigationEvent){var e=t.constantPayload;this.doRedirect(e.link.uri)}return Promise.resolve(t.constantPayload)},CallService.prototype.doRedirect=function(t){CallService.validateUrl(t),window.location.href=t},CallService.prototype.doExec=function(t){var e,r=this,o={};null!==t.link.mediaType&&(o[\"Content-Type\"]=t.link.mediaType);var c={};if(t instanceof a.PostCall){var s=this.mappingService.toJson(t.data);c=JSON.stringify(s),e=\"POST\"}else if(t instanceof a.GetCall)e=\"GET\";else{if(!(t instanceof a.DeleteCall))throw new Error(\"Unknown Method of call: \"+t);e=\"DELETE\"}return n.default.interceptors.request.use(i.setFlowId,function(t){return Promise.reject(t)}),n.default.request({url:t.link.uri,method:e,data:c,headers:o,withCredentials:this.isSendRequestWithCredentials()}).then(function(t){return t.data}).then(function(t){return r.mappingService.fromJson(t)})},CallService.prototype.isSendRequestWithCredentials=function(){var t=document.querySelectorAll(\"meta[name=corsEnabled]\");return 0!==t.length&&\"true\"===t[0].getAttribute(\"content\")},CallService.validateUrl=function(t){if(!o(t))throw new Error(\"The given URL is not a string!\")},CallService.RECURSION_LIMIT=10,CallService}();e.CallService=c},\"./src/main/typescript/call/service/flow-id-request-interceptor.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),e.setFlowId=function setFlowId(t){var e=document.querySelectorAll(\"meta[name=flowId]\"),r=void 0;return 0!==e.length&&(r=e[0].getAttribute(\"content\")),r&&(t.headers.flowId=r),t}},\"./src/main/typescript/call/service/index.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(\"./src/main/typescript/call/service/call.service.ts\"))},\"./src/main/typescript/decoratorutil/extract-info-from-property-decorator.function.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),r(\"reflect-metadata\");var a=r(\"./src/main/typescript/decoratorutil/property-decorator-info.ts\");e.extractInfoFromPropertyDecorator=function extractInfoFromPropertyDecorator(t,e){return new a.PropertyDecoratorInfo(Reflect.getMetadata(\"design:type\",t,e),e,t.constructor)}},\"./src/main/typescript/decoratorutil/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/decoratorutil/extract-info-from-property-decorator.function.ts\")),__export(r(\"./src/main/typescript/decoratorutil/property-decorator-info.ts\"))},\"./src/main/typescript/decoratorutil/property-decorator-info.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=function(){return function PropertyDecoratorInfo(t,e,r){this.propertyType=t,this.propertyName=e,this.ownerType=r}}();e.PropertyDecoratorInfo=a},\"./src/main/typescript/enum/abstract-enum.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=Symbol(\"shop/infrastructure/AbstractEnum#INDEX_SYMBOL\"),n=function(){function AbstractEnum(){}return AbstractEnum.values=function(){var t=this.toIndex();return Object.keys(t).map(function(e){return t[e]})},AbstractEnum.toIndex=function(){var t=this,e=this[a];return e||(e=Object.keys(this).reduce(function(e,r){var a,n=t[r];return n instanceof t?Object.assign({},e,((a={})[r]=n,a)):e},{}),Object.freeze(e),this[a]=e,e)},AbstractEnum.forName=function(t){return this.toIndex()[t]||null},Object.defineProperty(AbstractEnum.prototype,\"name\",{get:function(){var t=this,e=this.constructor.toIndex();return Object.keys(e).find(function(r){return e[r]===t})||null},enumerable:!0,configurable:!0}),AbstractEnum}();e.AbstractEnum=n},\"./src/main/typescript/enum/index.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(\"./src/main/typescript/enum/abstract-enum.ts\"))},\"./src/main/typescript/immutable/abstract-immutable-data.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/immutable/immutable-objects.ts\"),n=function(){function AbstractImmutableData(){}return AbstractImmutableData.prototype.update=function(t){return a.ImmutableObjects.update(this,t)},AbstractImmutableData.create=function(t){return a.ImmutableObjects.create(this,t)},AbstractImmutableData}();e.AbstractImmutableData=n},\"./src/main/typescript/immutable/immutable-objects.ts\":function(t,e,r){\"use strict\";var a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};Object.defineProperty(e,\"__esModule\",{value:!0}),e.ImmutableObjects={create:function(t,e){var r=Object.create(t.prototype);return Object.assign(r,e),function deepFreeze(t){if(!Object.isFrozen(t))return Object.getOwnPropertyNames(t).forEach(function(e){var r=t[e];\"object\"==typeof r&&null!==r&&deepFreeze(r)}),Object.freeze(t)}(r),r},update:function(t,r){var n=a({},t);for(var o in Object.keys(r).forEach(function(e){var a=r[e];a instanceof Function?n[e]=a.call(null,t[e]):n[e]=a}),n)if(n[o]!=t[o])return e.ImmutableObjects.create(t.constructor,n);return t}}},\"./src/main/typescript/immutable/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/immutable/immutable-objects.ts\")),__export(r(\"./src/main/typescript/immutable/abstract-immutable-data.ts\"))},\"./src/main/typescript/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),r(\"reflect-metadata\"),r(\"core-js/es7/reflect\"),__export(r(\"./src/main/typescript/base/index.ts\")),__export(r(\"./src/main/typescript/call/index.ts\")),__export(r(\"./src/main/typescript/decoratorutil/index.ts\")),__export(r(\"./src/main/typescript/enum/index.ts\")),__export(r(\"./src/main/typescript/valuemetadata/index.ts\")),__export(r(\"./src/main/typescript/types/types.ts\")),__export(r(\"./src/main/typescript/immutable/index.ts\")),__export(r(\"./src/main/typescript/tracking/index.ts\")),__export(r(\"./src/main/typescript/mapping/index.ts\")),__export(r(\"./src/main/typescript/pagevalue/index.ts\"))},\"./src/main/typescript/mapping/custom-type.interface.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=function(){return function ICustomType(){}}();e.ICustomType=a},\"./src/main/typescript/mapping/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/mapping/custom-type.interface.ts\")),__export(r(\"./src/main/typescript/mapping/mapping.service.ts\"))},\"./src/main/typescript/mapping/mapping.service.ts\":function(t,e,r){\"use strict\";var a=this&&this.__assign||function(){return(a=Object.assign||function(t){for(var e,r=1,a=arguments.length;r<a;r++)for(var n in e=arguments[r])Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}).apply(this,arguments)};Object.defineProperty(e,\"__esModule\",{value:!0});var n=r(\"lodash/isUndefined\"),o=r(\"lodash/isArray\"),i=r(\"lodash/isObject\"),c=r(\"lodash/isNull\"),s=r(\"lodash/map\"),p=r(\"lodash/find\"),u=r(\"./src/main/typescript/valuemetadata/index.ts\"),l=function(){function MappingService(t){this.valueMetaDataService=t,this.metaDatasForName={},this.customTypes={},this.metaDatasForName=t.getMetaDatas().reduce(function(t,e){var r;return a({},t,((r={})[e.qualifiedName]=e,r))},{}),this.customTypes=t.getCustomTypes().reduce(function(t,e){var r;return a({},t,((r={})[e.typeName]=e,r))},{})}return MappingService.prototype.fromJson=function(t){return this.fromJsonImpl(t,new f(\"<root>\"))},MappingService.prototype.fromJsonImpl=function(t,e){var r=this;if(n(t)&&this.reportError('Encountered \"undefined\" value!',e,{json:t}),null===t)return null;if(o(t))return s(t,function(t,a){return r.fromJsonImpl(t,e.index(a))});if(i(t)){var a=t[MappingService.TYPE_INFO_PROPERTY];if(a)return this.fromTypedJson(t,a,e);var c={};return Object.keys(t).forEach(function(a){return c[a]=r.fromJsonImpl(t[a],e.index(a))}),c}return t},MappingService.prototype.fromTypedJson=function(t,e,r){var a=this.metaDatasForName[e];if(a){if(a instanceof u.EnumMetaData)return this.enumFromTypedJson(t,a,r);if(a instanceof u.ValueMetaData)return this.valueFromTypedJson(t,a,r);this.reportError(\"Unknown metaData type!\",r,{typeInfo:e,metaData:a,json:t,metaDatas:this.metaDatasForName})}else{var n=this.customTypes[e];if(n)return n.fromJson(t);this.reportError('Unknown qualifiedTypeName: \"'+e+'\"',r,{qualifiedTypeName:e,json:t,metaDatas:this.metaDatasForName,customTypes:this.customTypes})}},MappingService.prototype.valueFromTypedJson=function(t,e,r){var a=this,n={};e.properties.forEach(function(e){var o=a.fromJsonImpl(t[e.name],r.property(e.name));n[e.name]=o});var o=Object.create(e.type.prototype);return Object.assign(o,n),o},MappingService.prototype.enumFromTypedJson=function(t,e,r){var a=t[MappingService.ENUM_NAME_PROPERTY];a||this.reportError(\"Invalid json for enum!\",r,{json:t,metaData:e});var n=e.type[a];return n||this.reportError('Invalid enum name! Did you forgot the \"static\" keyword?',r,{enumName:a,metaData:e}),n},MappingService.prototype.reportError=function(t,e,r){r=Object.assign({},{path:e.path},r);var a=Object.keys(r).reduce(function(t,e){return t+\" \"+e+\"=\"+r[e]+\"; \"},t);throw new Error(a)},MappingService.prototype.toJson=function(t){return this.toJsonImpl(t,new f(\"<root>\"))},MappingService.prototype.toJsonImpl=function(t,e){var r=this;if(n(t)&&this.reportError(\"Encountered undefined value!\",e,{}),c(t))return null;if(o(t))return s(t,function(t,a){return r.toJsonImpl(t,e.index(a))});var a=p(this.customTypes,function(e){return e.isType(t)});if(a){var l=a.toJson(t);return l[MappingService.TYPE_INFO_PROPERTY]=a.typeName,l}if(i(t)){var f=t.constructor&&this.valueMetaDataService.getMetaData(t.constructor);if(!f)return this.objectToJson(t,e);if(f instanceof u.EnumMetaData)return this.enumToJson(t,f,e);if(f instanceof u.ValueMetaData)return this.valueToJson(t,f,e);this.reportError(\"Unsupported meta data type!\",e,{metaData:f})}return t},MappingService.prototype.valueToJson=function(t,e,r){var a=this,n={};return n[MappingService.TYPE_INFO_PROPERTY]=e.qualifiedName,e.properties.forEach(function(e){var o=e.name,i=t[o];n[o]=a.toJsonImpl(i,r.property(o))}),n},MappingService.prototype.enumToJson=function(t,e,r){var a={},n=t[MappingService.ENUM_NAME_PROPERTY];return n||this.reportError('Failed building json from enum, \"'+MappingService.ENUM_NAME_PROPERTY+'\" is undefined or null!',r,{enumObject:t,metaData:e}),a[MappingService.TYPE_INFO_PROPERTY]=e.qualifiedName,a[MappingService.ENUM_NAME_PROPERTY]=n,a},MappingService.prototype.objectToJson=function(t,e){var r=this,a={};return Object.keys(t).forEach(function(n){return a[n]=r.toJsonImpl(t[n],e.index(n))}),a},MappingService.TYPE_INFO_PROPERTY=\"@type\",MappingService.ENUM_NAME_PROPERTY=\"name\",MappingService}();e.MappingService=l;var f=function(){function Context(t){this.path=t}return Context.prototype.property=function(t){return new Context(this.path+\".\"+t)},Context.prototype.index=function(t){return new Context(this.path+\"[\"+t+\"]\")},Context}();e.Context=f},\"./src/main/typescript/pagevalue/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/pagevalue/page-value-loader.ts\")),__export(r(\"./src/main/typescript/pagevalue/page-value-json-loader.ts\"))},\"./src/main/typescript/pagevalue/page-value-json-loader.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=function(){function PageValueJsonLoader(){}return PageValueJsonLoader.prototype.load=function(t){var e=document.querySelector(\"script#\"+t).innerHTML;return JSON.parse(e)},PageValueJsonLoader}();e.PageValueJsonLoader=a},\"./src/main/typescript/pagevalue/page-value-loader.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=function(){function PageValueLoader(t,e){this.mappingService=t,this.jsonLoader=e}return PageValueLoader.prototype.load=function(t,e){var r=this.jsonLoader.load(t),a=this.mappingService.fromJson(r);if(!(a instanceof e))throw new Error(\"Unexpected PageValue type expected \"+e.name+\" but got \"+a.constructor.name);return a},PageValueLoader}();e.PageValueLoader=a},\"./src/main/typescript/tracking/index.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(\"./src/main/typescript/tracking/tracking-info.value.ts\"));var a=r(\"./src/main/typescript/tracking/service/index.ts\");e.TrackingService=a.TrackingService},\"./src/main/typescript/tracking/service/index.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(\"./src/main/typescript/tracking/service/tracking.service.ts\"))},\"./src/main/typescript/tracking/service/tracking.service.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=function(){function TrackingService(t){this.tefDataLayer=t}return TrackingService.prototype.track=function(t){t&&this.tefDataLayer.push(JSON.parse(t.rawContent))},TrackingService}();e.TrackingService=a},\"./src/main/typescript/tracking/tracking-info.value.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),o=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i},i=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,\"__esModule\",{value:!0});var c=r(\"./src/main/typescript/base/infrastructure-value-type.decorator.ts\"),s=r(\"./src/main/typescript/valuemetadata/decorators/property.decorator.ts\"),p=function(t){function TrackingInfo(){return null!==t&&t.apply(this,arguments)||this}return n(TrackingInfo,t),o([s.Property(),i(\"design:type\",String)],TrackingInfo.prototype,\"rawContent\",void 0),TrackingInfo=o([c.InfrastructureValueType()],TrackingInfo)}(r(\"./src/main/typescript/immutable/abstract-immutable-data.ts\").AbstractImmutableData);e.TrackingInfo=p},\"./src/main/typescript/types/day-of-week.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)}),o=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i};Object.defineProperty(e,\"__esModule\",{value:!0});var i=r(\"./src/main/typescript/enum/index.ts\"),c=r(\"./src/main/typescript/base/index.ts\"),s=function(t){function DayOfWeek(){return null!==t&&t.apply(this,arguments)||this}var e;return n(DayOfWeek,t),e=DayOfWeek,DayOfWeek.MONDAY=new e,DayOfWeek.TUESDAY=new e,DayOfWeek.WEDNESDAY=new e,DayOfWeek.THURSDAY=new e,DayOfWeek.FRIDAY=new e,DayOfWeek.SATURDAY=new e,DayOfWeek.SUNDAY=new e,DayOfWeek=e=o([c.InfrastructureEnumType()],DayOfWeek)}(i.AbstractEnum);e.DayOfWeek=s},\"./src/main/typescript/types/local-date.ts\":function(t,e,r){\"use strict\";var a=this&&this.__decorate||function(t,e,r,a){var n,o=arguments.length,i=o<3?e:null===a?a=Object.getOwnPropertyDescriptor(e,r):a;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)i=Reflect.decorate(t,e,r,a);else for(var c=t.length-1;c>=0;c--)(n=t[c])&&(i=(o<3?n(i):o>3?n(e,r,i):n(e,r))||i);return o>3&&i&&Object.defineProperty(e,r,i),i};Object.defineProperty(e,\"__esModule\",{value:!0});var n=r(\"./src/main/typescript/valuemetadata/decorators/index.ts\"),o=function(){function LocalDateDefinition(){this.typeName=\"infrastructure:LocalDate\",this.fromJson=function(t){return new Date(t.date)},this.isType=function(t){return t instanceof Date},this.toJson=function(t){var e=t.getFullYear(),r=t.getMonth()+1,a=t.getDate();return{date:e+\"-\"+(r<10?\"0\":\"\")+r+\"-\"+(a<10?\"0\":\"\")+a}}}return LocalDateDefinition=a([n.CustomType()],LocalDateDefinition)}();e.LocalDateDefinition=o},\"./src/main/typescript/types/types.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/types/local-date.ts\")),__export(r(\"./src/main/typescript/types/day-of-week.ts\"));var a=function(){return function TypesDummyClass(){}}();e.TypesDummyClass=a},\"./src/main/typescript/valuemetadata/decorators/array-property.decorator.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/valuemetadata/service/array-property-meta-data.ts\"),n=r(\"./src/main/typescript/decoratorutil/extract-info-from-property-decorator.function.ts\"),o=r(\"./src/main/typescript/valuemetadata/decorators/combine-with-property-option-defaults.function.ts\"),i=r(\"./src/main/typescript/valuemetadata/service/value-meta-data-registry.ts\"),c=r(\"./src/main/typescript/valuemetadata/decorators/value-type-definition.ts\");e.ArrayProperty=function ArrayProperty(t,e){return void 0===e&&(e={}),function(r,s){if(!t)throw new Error(\"@ArrayProperty 'elementType' is null or undefined!\");e=o.combineWithPropertyOptionDefaults(e);var p=n.extractInfoFromPropertyDecorator(r,s);if(p.propertyType!==Array)throw new Error(\"Decorator @ArrayProperty must only be used on Array properties\");c.isTypeList(t)?i.ValueMetaDataRegistry.appendPropertyMetaData(p.ownerType,new a.ArrayPropertyMetaData(p.propertyName,e.nullable,t)):i.ValueMetaDataRegistry.appendPropertyMetaData(p.ownerType,new a.ArrayPropertyMetaData(p.propertyName,e.nullable,[t]))}}},\"./src/main/typescript/valuemetadata/decorators/combine-with-property-option-defaults.function.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a={nullable:!1};e.combineWithPropertyOptionDefaults=function combineWithPropertyOptionDefaults(t){return Object.assign({},a,t)}},\"./src/main/typescript/valuemetadata/decorators/custom-type.decorator.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/valuemetadata/register.ts\");e.CustomType=function CustomType(){return function(t){a.registerCustomType(new t.prototype.constructor)}}},\"./src/main/typescript/valuemetadata/decorators/enum-type.decorator.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/valuemetadata/register.ts\");e.EnumType=function EnumType(t){return function(e){a.registerEnumTypeInNamespace(e,t)}}},\"./src/main/typescript/valuemetadata/decorators/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/valuemetadata/decorators/array-property.decorator.ts\")),__export(r(\"./src/main/typescript/valuemetadata/decorators/enum-type.decorator.ts\")),__export(r(\"./src/main/typescript/valuemetadata/decorators/property.decorator.ts\")),__export(r(\"./src/main/typescript/valuemetadata/decorators/value-type.decorator.ts\")),__export(r(\"./src/main/typescript/valuemetadata/decorators/custom-type.decorator.ts\"))},\"./src/main/typescript/valuemetadata/decorators/property.decorator.ts\":function(t,e,r){\"use strict\";var a=this&&this.__rest||function(t,e){var r={};for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&e.indexOf(a)<0&&(r[a]=t[a]);if(null!=t&&\"function\"==typeof Object.getOwnPropertySymbols){var n=0;for(a=Object.getOwnPropertySymbols(t);n<a.length;n++)e.indexOf(a[n])<0&&(r[a[n]]=t[a[n]])}return r};Object.defineProperty(e,\"__esModule\",{value:!0});var n=r(\"./src/main/typescript/valuemetadata/decorators/combine-with-property-option-defaults.function.ts\"),o=r(\"./src/main/typescript/decoratorutil/extract-info-from-property-decorator.function.ts\"),i=r(\"./src/main/typescript/valuemetadata/service/property-meta-data.ts\"),c=r(\"./src/main/typescript/valuemetadata/service/value-meta-data-registry.ts\"),s=r(\"./src/main/typescript/valuemetadata/decorators/value-type-definition.ts\");e.Property=function Property(t){void 0===t&&(t={});var e=t.type,r=a(t,[\"type\"]);return function(t,a){r=n.combineWithPropertyOptionDefaults(r);var p=o.extractInfoFromPropertyDecorator(t,a);if(p.propertyType===Array)throw new Error(\"Decorator @Property can not be used on Array properties, use @ArrayProperty instead\");e?s.isTypeList(e)?c.ValueMetaDataRegistry.appendPropertyMetaData(p.ownerType,new i.PropertyMetaData(p.propertyName,r.nullable,e)):c.ValueMetaDataRegistry.appendPropertyMetaData(p.ownerType,new i.PropertyMetaData(p.propertyName,r.nullable,[e])):c.ValueMetaDataRegistry.appendPropertyMetaData(p.ownerType,new i.PropertyMetaData(p.propertyName,r.nullable,[p.propertyType]))}}},\"./src/main/typescript/valuemetadata/decorators/value-type-definition.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"lodash/isArray\");e.isTypeList=function isTypeList(t){return a(t)}},\"./src/main/typescript/valuemetadata/decorators/value-type.decorator.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/valuemetadata/register.ts\");e.ValueType=function ValueType(t){return function(e){a.registerValueTypeInNamespace(e,t)}}},\"./src/main/typescript/valuemetadata/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/valuemetadata/decorators/index.ts\")),__export(r(\"./src/main/typescript/valuemetadata/service/index.ts\")),__export(r(\"./src/main/typescript/valuemetadata/register.ts\"))},\"./src/main/typescript/valuemetadata/register.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/valuemetadata/service/index.ts\");e.registerValueTypeInNamespace=function(t,e){var r=t,n=a.ValueMetaDataRegistry.getPropertyMetaData(r),o=new a.ValueMetaData(r,t.name,e,n);a.ValueMetaDataRegistry.registerTypeAndSetMetaData(r,o)},e.registerEnumTypeInNamespace=function(t,e){var r=t,n=new a.EnumMetaData(r,t.name,e);a.ValueMetaDataRegistry.registerTypeAndSetMetaData(r,n)},e.registerCustomType=function(t){a.ValueMetaDataRegistry.registerCustomType(t)}},\"./src/main/typescript/valuemetadata/service/abstract-property-meta-data.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=function(){return function AbstractPropertyMetaData(t,e){this.name=t,this.nullable=e}}();e.AbstractPropertyMetaData=a},\"./src/main/typescript/valuemetadata/service/abstract-type-meta-data.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=function(){function AbstractTypeMetaData(t,e,r){this.type=t,this.name=e,this.namespace=r}return Object.defineProperty(AbstractTypeMetaData.prototype,\"qualifiedName\",{get:function(){return this.namespace+\":\"+this.name},enumerable:!0,configurable:!0}),AbstractTypeMetaData}();e.AbstractTypeMetaData=a},\"./src/main/typescript/valuemetadata/service/array-property-meta-data.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)});Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t){function ArrayPropertyMetaData(e,r,a){var n=t.call(this,e,r)||this;return n.nullable=r,n.elementTypes=a,n}return n(ArrayPropertyMetaData,t),ArrayPropertyMetaData}(r(\"./src/main/typescript/valuemetadata/service/abstract-property-meta-data.ts\").AbstractPropertyMetaData);e.ArrayPropertyMetaData=o},\"./src/main/typescript/valuemetadata/service/enum-meta-data.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)});Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t){function EnumMetaData(e,r,a){return t.call(this,e,r,a)||this}return n(EnumMetaData,t),EnumMetaData}(r(\"./src/main/typescript/valuemetadata/service/abstract-type-meta-data.ts\").AbstractTypeMetaData);e.EnumMetaData=o},\"./src/main/typescript/valuemetadata/service/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/valuemetadata/service/abstract-property-meta-data.ts\")),__export(r(\"./src/main/typescript/valuemetadata/service/abstract-type-meta-data.ts\")),__export(r(\"./src/main/typescript/valuemetadata/service/array-property-meta-data.ts\")),__export(r(\"./src/main/typescript/valuemetadata/service/enum-meta-data.ts\")),__export(r(\"./src/main/typescript/valuemetadata/service/property-meta-data.ts\")),__export(r(\"./src/main/typescript/valuemetadata/service/value-meta-data.ts\")),__export(r(\"./src/main/typescript/valuemetadata/service/value-meta-data-registry.ts\")),__export(r(\"./src/main/typescript/valuemetadata/service/value-meta-data-service.ts\")),__export(r(\"./src/main/typescript/valuemetadata/service/value-validation-service.ts\"))},\"./src/main/typescript/valuemetadata/service/property-meta-data.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)});Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t){function PropertyMetaData(e,r,a){var n=t.call(this,e,r)||this;return n.nullable=r,n.elementTypes=a,n}return n(PropertyMetaData,t),PropertyMetaData}(r(\"./src/main/typescript/valuemetadata/service/abstract-property-meta-data.ts\").AbstractPropertyMetaData);e.PropertyMetaData=o},\"./src/main/typescript/valuemetadata/service/value-meta-data-registry.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=Symbol(\"shop/infrastructure/typeMetaData\"),n=Symbol(\"shop/infrastructure/propertyMetaData\"),o=[],i=[];e.ValueMetaDataRegistry={appendPropertyMetaData:function appendPropertyMetaData(t,e){var r=Reflect.getMetadata(n,t)||[];r=r.concat([e]),Reflect.defineMetadata(n,r,t)},getPropertyMetaData:function getPropertyMetaData(t){return Reflect.getMetadata(n,t)||[]},getTypeMetaData:function getTypeMetaData(t){return Reflect.getOwnMetadata(a,t)},registerTypeAndSetMetaData:function registerTypeAndSetMetaData(t,e){Reflect.defineMetadata(a,e,t),o.push(t)},registerCustomType:function registerCustomType(t){i.push(t)},getTypes:function(){return Object.freeze(o.slice())},getCustomTypes:function(){return Object.freeze(i.slice())}}},\"./src/main/typescript/valuemetadata/service/value-meta-data-service.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),r(\"reflect-metadata\");var a=r(\"./src/main/typescript/valuemetadata/service/value-meta-data-registry.ts\"),n=function(){function ValueMetaDataService(){}return ValueMetaDataService.prototype.getMetaData=function(t){return a.ValueMetaDataRegistry.getTypeMetaData(t)},ValueMetaDataService.prototype.getMetaDatas=function(){var t=this;return a.ValueMetaDataRegistry.getTypes().map(function(e){return t.getMetaData(e)})},ValueMetaDataService.prototype.getCustomTypes=function(){return a.ValueMetaDataRegistry.getCustomTypes()},ValueMetaDataService}();e.ValueMetaDataService=n},\"./src/main/typescript/valuemetadata/service/value-meta-data.ts\":function(t,e,r){\"use strict\";var a,n=this&&this.__extends||(a=function(t,e){return(a=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}a(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)});Object.defineProperty(e,\"__esModule\",{value:!0});var o=function(t){function ValueMetaData(e,r,a,n){var o=t.call(this,e,r,a)||this;return o.properties=n,o}return n(ValueMetaData,t),ValueMetaData}(r(\"./src/main/typescript/valuemetadata/service/abstract-type-meta-data.ts\").AbstractTypeMetaData);e.ValueMetaData=o},\"./src/main/typescript/valuemetadata/service/value-validation-service.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/index.ts\"),n=r(\"lodash/isNull\"),o=r(\"lodash/isUndefined\"),i=r(\"lodash/isArray\"),c=r(\"lodash/isFunction\"),s=r(\"lodash/isPlainObject\"),p=r(\"lodash/isObjectLike\"),u=r(\"lodash/isString\"),l=r(\"lodash/isNumber\"),f=r(\"lodash/isBoolean\");var y=function(){function ValueValidationService(t){this.valueMetaDataService=t}return ValueValidationService.prototype.validate=function(t,e){var r=this;if(void 0===e&&(e=\"\"),!n(t)){if(o(t))throw new Error(\"Encountered undefined [\"+e+\"]\");var c=this.valueMetaDataService.getMetaData(t.constructor);if(c instanceof a.ValueMetaData)this.validateValue(t,c,e);else if(c instanceof a.EnumMetaData)this.validateEnum(t,c,e);else if(i(t))t.forEach(function(t,a){r.validate(t,e+\"[\"+a+\"]\")});else if(s(t))Object.keys(t).forEach(function(a){r.validate(t[a],e+\"[\"+a+\"]\")});else if(p(t))throw new Error(\"Found a unsupported object of type: '\"+typeof t+\"' toString: '\"+t+\"'. Maybe you forgotten to add a @ValueType decorator on a object with a prototype ...\")}},ValueValidationService.prototype.validateEnum=function(t,e,r){if(!Object.keys(e.type).some(function(r){var a=e.type;return t===a[r]}))throw new Error(\"Enum instance not found on enum of type\"+e.qualifiedName+\" [\"+r+\"]\")},ValueValidationService.prototype.validateValue=function(t,e,r){var n=this;e.properties.forEach(function(o){var i=r+\".\"+o.name,c=t[o.name];if(n.validate(c,i),null==c&&!o.nullable)throw new Error(\"Property \"+o.name+\" of \"+e.name+\" not nullable but was null [\"+i+\"]\");o instanceof a.PropertyMetaData&&n.validateTypedProperty(c,o,e,i),o instanceof a.ArrayPropertyMetaData&&n.validateArrayProperty(c,o,e,i)})},ValueValidationService.prototype.validateTypedProperty=function(t,e,r,a){var n=this;if(!e.elementTypes.some(function(e){return n.isValueOfType(t,e)})){var o=e.elementTypes.map(function(t){return t.name}).join(\",\"),i=\"Property '\"+e.name+\"' of \"+r.name+\" should be one of types \"+o+\" but was of type \"+t.constructor.name+\" [\"+a+\"]\";throw new Error(i)}},ValueValidationService.prototype.isValueOfType=function(t,e){return n(t)||e===Number&&l(t)||e===Boolean&&f(t)||e===String&&u(t)||function assertIsFunction(t){if(!c(t))throw new Error(\"expected a function for instanceof check, but got \"+t+\" of type \"+typeof t);return!0}(e)&&t instanceof e},ValueValidationService.prototype.validateArrayProperty=function(t,e,r,a){var n=this;if(i(t))throw new Error(\"Property \"+e.name+\" of \"+r.name+\" should be an array but was of type \"+typeof t+\" [\"+a+\"]\");t.forEach(function(t,o){var i;try{i=e.elementTypes.some(function(e){return n.isValueOfType(t,e)})}catch(t){var c=\"Error while determining type of Element with index \"+o+\" of property \"+e.name+\" of \"+r.name+\". \"+t.message+\" [\"+a+\"[\"+o+\"]]\";throw new Error(c)}if(!i){var s=e.elementTypes.map(function(t){return t.name}).join(\",\");c=\"Element with index \"+o+\" of property \"+e.name+\" of \"+r.name+\" should be one of types \"+s+\" but was of type \"+t.constructor.name+\" [\"+a+\"[\"+o+\"]]\";throw new Error(c)}})},ValueValidationService}();e.ValueValidationService=y},0:function(t,e,r){t.exports=r(\"./src/main/typescript/index.ts\")},axios:function(t,e){t.exports=__webpack_require__(\"./node_modules/axios/index.js\")},\"core-js/es7/reflect\":function(t,e){t.exports=__webpack_require__(\"./node_modules/core-js/es7/reflect.js\")},\"lodash/find\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/find.js\")},\"lodash/isArray\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isArray.js\")},\"lodash/isBoolean\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isBoolean.js\")},\"lodash/isFunction\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isFunction.js\")},\"lodash/isNull\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isNull.js\")},\"lodash/isNumber\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isNumber.js\")},\"lodash/isObject\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isObject.js\")},\"lodash/isObjectLike\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isObjectLike.js\")},\"lodash/isPlainObject\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isPlainObject.js\")},\"lodash/isString\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isString.js\")},\"lodash/isUndefined\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/isUndefined.js\")},\"lodash/map\":function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/map.js\")},\"reflect-metadata\":function(t,e){t.exports=__webpack_require__(\"./node_modules/reflect-metadata/Reflect.js\")}})});\n\n\n/***/ }),\n\n/***/ \"./node_modules/@shop/js-infrastructure-ng4-comp/target/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n!function webpackUniversalModuleDefinition(t,e){ true?module.exports=e():\"function\"==typeof define&&define.amd?define([],e):\"object\"==typeof exports?exports._shop_js_infrastructure_ng4_comp=e():t._shop_js_infrastructure_ng4_comp=e()}(window,function(){return function(t){var e={};function __webpack_require__(r){if(e[r])return e[r].exports;var i=e[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,__webpack_require__),i.l=!0,i.exports}return __webpack_require__.m=t,__webpack_require__.c=e,__webpack_require__.d=function(t,e,r){__webpack_require__.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:r})},__webpack_require__.r=function(t){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(t,\"__esModule\",{value:!0})},__webpack_require__.t=function(t,e){if(1&e&&(t=__webpack_require__(t)),8&e)return t;if(4&e&&\"object\"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(__webpack_require__.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:t}),2&e&&\"string\"!=typeof t)for(var i in t)__webpack_require__.d(r,i,function(e){return t[e]}.bind(null,i));return r},__webpack_require__.n=function(t){var e=t&&t.__esModule?function getDefault(){return t.default}:function getModuleExports(){return t};return __webpack_require__.d(e,\"a\",e),e},__webpack_require__.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},__webpack_require__.p=\"\",__webpack_require__(__webpack_require__.s=0)}({\"./src/main/typescript/components/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/components/tracking-context.component.ts\")),__export(r(\"./src/main/typescript/components/tracking-id.component.ts\")),__export(r(\"./src/main/typescript/components/tracking-attributes/index.ts\"))},\"./src/main/typescript/components/tracking-attributes/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/components/tracking-attributes/tracking-attributes.directive.ts\")),__export(r(\"./src/main/typescript/components/tracking-attributes/tracking-product-line.enum.ts\")),__export(r(\"./src/main/typescript/components/tracking-attributes/tracking-product-lines.directive.ts\"))},\"./src/main/typescript/components/tracking-attributes/tracking-attributes-csi.directive.ts\":function(t,e,r){\"use strict\";var i=this&&this.__decorate||function(t,e,r,i){var n,c=arguments.length,o=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(o=(c<3?n(o):c>3?n(e,r,o):n(e,r))||o);return c>3&&o&&Object.defineProperty(e,r,o),o},n=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=this&&this.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(e,\"__esModule\",{value:!0});var o=r(\"@angular/core\"),s=r(\"./src/main/typescript/services/tracking-attributes/tracking-attributes.service.ts\"),a=r(\"./src/main/typescript/components/tracking-attributes/tracking-product-lines.directive.ts\"),u=r(\"@shop/js-infrastructure-ng4-csi\"),p=function(){function TrackingAttributesCsiDirective(t,e,r){this.trackingAttributesService=t,this.enclosingTrackingProductLines=e,this.csiAppComponent=r}return TrackingAttributesCsiDirective.prototype.ngOnDestroy=function(){this._subscription&&this._subscription.unsubscribe()},TrackingAttributesCsiDirective.prototype.ngOnInit=function(){var t=this,e=this.enclosingTrackingProductLines||this.trackingAttributesService;this._subscription=e.productLineString$.subscribe(function(e){t.csiAppComponent.send({type:s.TrackingAttributesService.MESSAGE_TYPE,value:e})})},TrackingAttributesCsiDirective=i([o.Directive({selector:\"[trackingAttributesCsi]\"}),c(1,o.Optional()),n(\"design:paramtypes\",[s.TrackingAttributesService,a.TrackingProductLinesDirective,u.CsiAppComponent])],TrackingAttributesCsiDirective)}();e.TrackingAttributesCsiDirective=p},\"./src/main/typescript/components/tracking-attributes/tracking-attributes.directive.ts\":function(t,e,r){\"use strict\";var i=this&&this.__decorate||function(t,e,r,i){var n,c=arguments.length,o=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(o=(c<3?n(o):c>3?n(e,r,o):n(e,r))||o);return c>3&&o&&Object.defineProperty(e,r,o),o},n=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=this&&this.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(e,\"__esModule\",{value:!0});var o=r(\"@angular/core\"),s=r(\"./src/main/typescript/services/tracking-attributes/tracking-attributes.service.ts\"),a=r(\"./src/main/typescript/components/tracking-attributes/tracking-product-lines.directive.ts\"),u=[\"button\",\"accordion\",\"link\",\"radiobutton\",\"checkbox\",\"close\",\"tab\",\"form\",\"selectionfield\"],p=function(){function TrackingAttributesDirective(t,e,r,i){this.trackingAttributesService=t,this.enclosingTrackingProductLines=e,this.el=r,this.renderer=i}return TrackingAttributesDirective.prototype.onMouseEnter=function(){this.trackingAttributesService.isDebuggingEnabled()&&console.log(\"%c TRACKING-DEBUG: %c action: \"+this.getAction()+\" | description: \"+this.getDescription(),\"background: #AB47BC; color: white; border-radius: 2px;\",\"\")},TrackingAttributesDirective.prototype.ngOnChanges=function(t){this.renderAttributes()},TrackingAttributesDirective.prototype.ngOnDestroy=function(){this._subscription&&this._subscription.unsubscribe()},TrackingAttributesDirective.prototype.renderAttributes=function(){this.renderTrackingDescription(),this.renderTrackingAction()},TrackingAttributesDirective.prototype.renderTrackingAction=function(){var t=this.getAction();t||console.error(\"Can't render tracking-action invalid action!\",{action:t,element:this.el}),this.renderer.setAttribute(this.el.nativeElement,\"data-tracking-action\",t)},TrackingAttributesDirective.prototype.getAction=function(){return~u.indexOf(this.trackingAttributesAction)?this.trackingAttributesAction:null},TrackingAttributesDirective.prototype.renderTrackingDescription=function(){var t=this.getDescription();this.trackingAttributesService.isDebuggingEnabled()&&this.renderer.setStyle(this.el.nativeElement,\"border\",\"3px solid #AB47BC\"),t?this.renderer.setAttribute(this.el.nativeElement,\"data-tracking-description\",t):this.renderer.removeAttribute(this.el.nativeElement,\"data-tracking-description\")},TrackingAttributesDirective.prototype.getDescription=function(){var t=this.trackingAttributesService.getApplication(),e=this.trackingAttributesService.getPageArea(),r=this.productLineString,i=this.trackingAttributesElementId;return t&&e&&r&&i?t+\"_\"+r+\"_\"+e+\"_\"+i:null},TrackingAttributesDirective.prototype.ngAfterViewInit=function(){var t=this,e=this.enclosingTrackingProductLines||this.trackingAttributesService;this._subscription=e.productLineString$.subscribe(function(e){t.productLineString=e,t.renderAttributes()}),this.renderAttributes()},i([o.Input(),n(\"design:type\",String)],TrackingAttributesDirective.prototype,\"trackingAttributesElementId\",void 0),i([o.Input(),n(\"design:type\",String)],TrackingAttributesDirective.prototype,\"trackingAttributesAction\",void 0),i([o.HostListener(\"mouseenter\"),n(\"design:type\",Function),n(\"design:paramtypes\",[]),n(\"design:returntype\",void 0)],TrackingAttributesDirective.prototype,\"onMouseEnter\",null),TrackingAttributesDirective=i([o.Directive({selector:\"[trackingAttributes]\"}),c(1,o.Optional()),n(\"design:paramtypes\",[s.TrackingAttributesService,a.TrackingProductLinesDirective,o.ElementRef,o.Renderer2])],TrackingAttributesDirective)}();e.TrackingAttributesDirective=p},\"./src/main/typescript/components/tracking-attributes/tracking-product-line.enum.ts\":function(t,e,r){\"use strict\";var i,n=this&&this.__extends||(i=function(t,e){return(i=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var r in e)e.hasOwnProperty(r)&&(t[r]=e[r])})(t,e)},function(t,e){function __(){this.constructor=t}i(t,e),t.prototype=null===e?Object.create(e):(__.prototype=e.prototype,new __)});Object.defineProperty(e,\"__esModule\",{value:!0});var c=function(t){function TrackingProductLine(e){var r=t.call(this)||this;return r.trackingValue=e,r}return n(TrackingProductLine,t),TrackingProductLine.SIM_ONLY=new TrackingProductLine(\"simOnly\"),TrackingProductLine.HARDWARE_ONLY=new TrackingProductLine(\"hardwareOnly\"),TrackingProductLine.BUNDLE=new TrackingProductLine(\"bundle\"),TrackingProductLine.DSL=new TrackingProductLine(\"dsl\"),TrackingProductLine.GADGETS=new TrackingProductLine(\"gadgets\"),TrackingProductLine}(r(\"@shop/js-infrastructure-generic-datatypes\").AbstractEnum);e.TrackingProductLine=c},\"./src/main/typescript/components/tracking-attributes/tracking-product-lines.directive.ts\":function(t,e,r){\"use strict\";var i=this&&this.__decorate||function(t,e,r,i){var n,c=arguments.length,o=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(o=(c<3?n(o):c>3?n(e,r,o):n(e,r))||o);return c>3&&o&&Object.defineProperty(e,r,o),o},n=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)};Object.defineProperty(e,\"__esModule\",{value:!0});var c=r(\"@angular/core\"),o=r(\"rxjs/ReplaySubject\"),s=r(\"./src/main/typescript/components/tracking-attributes/tracking-product-line.enum.ts\"),a=r(\"lodash\");r(\"rxjs/operators\");var u=function(){function TrackingProductLinesDirective(){this._productLineString$=new o.ReplaySubject(1),this.productLineString$=this._productLineString$.asObservable()}return TrackingProductLinesDirective.prototype.ngOnChanges=function(t){this._productLineString$.next(this.buildProductLineString())},TrackingProductLinesDirective.prototype.buildProductLineString=function(){var t=this.trackingProductLines;return t?(a.isArray(t)?t:[t]).map(function(t){if(t instanceof s.TrackingProductLine)return t;if(a.isString(t)){var e=s.TrackingProductLine.forName(t);if(!e)throw new Error('\"'+t+\"' is not a valid product line!\");return e}throw new Error(\"Unsupported value type \"+typeof t)}).map(function(t){return t.trackingValue}).sort().join(\",\"):null},TrackingProductLinesDirective.prototype.ngOnDestroy=function(){this._productLineString$.complete()},i([c.Input(),n(\"design:type\",Object)],TrackingProductLinesDirective.prototype,\"trackingProductLines\",void 0),TrackingProductLinesDirective=i([c.Directive({selector:\"[trackingProductLines]\"})],TrackingProductLinesDirective)}();e.TrackingProductLinesDirective=u},\"./src/main/typescript/components/tracking-context.component.ts\":function(t,e,r){\"use strict\";var i=this&&this.__decorate||function(t,e,r,i){var n,c=arguments.length,o=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(o=(c<3?n(o):c>3?n(e,r,o):n(e,r))||o);return c>3&&o&&Object.defineProperty(e,r,o),o},n=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=this&&this.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(e,\"__esModule\",{value:!0});var o=r(\"@angular/core\"),s=function(){function TrackingContextComponent(t){this.context=t}return Object.defineProperty(TrackingContextComponent.prototype,\"generateTrackingContext\",{get:function(){return null===this.context?this.trackingContext:this.context.generateTrackingContext+\".\"+this.trackingContext},enumerable:!0,configurable:!0}),i([o.Input(),n(\"design:type\",String)],TrackingContextComponent.prototype,\"trackingContext\",void 0),TrackingContextComponent=i([o.Directive({selector:\"[trackingContext]\"}),c(0,o.Optional()),c(0,o.SkipSelf()),n(\"design:paramtypes\",[TrackingContextComponent])],TrackingContextComponent)}();e.TrackingContextComponent=s},\"./src/main/typescript/components/tracking-id.component.ts\":function(t,e,r){\"use strict\";var i=this&&this.__decorate||function(t,e,r,i){var n,c=arguments.length,o=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(o=(c<3?n(o):c>3?n(e,r,o):n(e,r))||o);return c>3&&o&&Object.defineProperty(e,r,o),o},n=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=this&&this.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(e,\"__esModule\",{value:!0});var o=r(\"@angular/core\"),s=r(\"./src/main/typescript/components/tracking-context.component.ts\"),a=function(){function TrackingIdComponent(t,e,r){this.context=t,this.element=e,this.renderer=r}return TrackingIdComponent.prototype.ngOnInit=function(){if(null===this.context)this.renderContext(this.trackingId);else{var t=this.context.generateTrackingContext+\".\"+this.trackingId;this.renderContext(t)}},TrackingIdComponent.prototype.renderContext=function(t){this.renderer.setAttribute(this.element.nativeElement,\"data-tracking\",t)},i([o.Input(),n(\"design:type\",String)],TrackingIdComponent.prototype,\"trackingId\",void 0),TrackingIdComponent=i([o.Directive({selector:\"[trackingId]\"}),c(0,o.Optional()),c(0,o.SkipSelf()),n(\"design:paramtypes\",[s.TrackingContextComponent,o.ElementRef,o.Renderer2])],TrackingIdComponent)}();e.TrackingIdComponent=a},\"./src/main/typescript/index.ts\":function(t,e,r){\"use strict\";function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}Object.defineProperty(e,\"__esModule\",{value:!0}),r(\"reflect-metadata\"),r(\"zone.js\"),r(\"core-js/es7/reflect\"),r(\"@angular/platform-browser-dynamic\"),r(\"rxjs/Rx\"),__export(r(\"./src/main/typescript/components/index.ts\")),__export(r(\"./src/main/typescript/services/index.ts\")),__export(r(\"./src/main/typescript/tracking-attributes.module.ts\"))},\"./src/main/typescript/services/index.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(\"./src/main/typescript/services/tracking-attributes/index.ts\"))},\"./src/main/typescript/services/tracking-attributes/index.ts\":function(t,e,r){\"use strict\";Object.defineProperty(e,\"__esModule\",{value:!0}),function __export(t){for(var r in t)e.hasOwnProperty(r)||(e[r]=t[r])}(r(\"./src/main/typescript/services/tracking-attributes/tracking-attributes.service.ts\"))},\"./src/main/typescript/services/tracking-attributes/tracking-attributes.service.ts\":function(t,e,r){\"use strict\";var i=this&&this.__decorate||function(t,e,r,i){var n,c=arguments.length,o=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(o=(c<3?n(o):c>3?n(e,r,o):n(e,r))||o);return c>3&&o&&Object.defineProperty(e,r,o),o},n=this&&this.__metadata||function(t,e){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(t,e)},c=this&&this.__param||function(t,e){return function(r,i){e(r,i,t)}};Object.defineProperty(e,\"__esModule\",{value:!0});var o=r(\"@angular/core\"),s=r(\"rxjs/ReplaySubject\"),a=r(\"lodash\"),u=r(\"@angular/common\"),p=r(\"@shop/js-infrastructure-ng4-csi\"),g=(p.CsiChannelService,function(){function TrackingAttributesService(t,e){var r=this;this.channelService=t,this.document=e,this.productLineString$=new s.ReplaySubject(1),this.unsubscribeCallback=this.channelService.subscribe(function(t){if(t.type===TrackingAttributesService.MESSAGE_TYPE){var e=t.value;a.isString(e)&&e?r.productLineString$.next(e):console.error(\"Invalid productLineString!\",{message:t})}})}return TrackingAttributesService.prototype.getApplication=function(){return\"e-shop\"},TrackingAttributesService.prototype.getPageArea=function(){var t=this.getMetaElementContent(\"pagearea\");return t||console.error('Unable to find required meta element content with name \"pagearea\".'),t},TrackingAttributesService.prototype.getMetaElementContent=function(t){var e=this.document.querySelector(\"meta[name=\"+t+\"]\");return e&&e.content},TrackingAttributesService.prototype.isDebuggingEnabled=function(){var t=this.getMetaElementContent(\"commerce_debug_modes\");return t&&-1!==t.indexOf(\"tracking\")},TrackingAttributesService.MESSAGE_TYPE=\"tracking-product-lines\",TrackingAttributesService=i([c(1,o.Inject(u.DOCUMENT)),n(\"design:paramtypes\",[p.CsiChannelService,Document])],TrackingAttributesService)}());e.TrackingAttributesService=g},\"./src/main/typescript/tracking-attributes.module.ts\":function(t,e,r){\"use strict\";var i=this&&this.__decorate||function(t,e,r,i){var n,c=arguments.length,o=c<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,r):i;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)o=Reflect.decorate(t,e,r,i);else for(var s=t.length-1;s>=0;s--)(n=t[s])&&(o=(c<3?n(o):c>3?n(e,r,o):n(e,r))||o);return c>3&&o&&Object.defineProperty(e,r,o),o};Object.defineProperty(e,\"__esModule\",{value:!0});var n=r(\"@angular/core\"),c=r(\"@angular/common\"),o=r(\"./src/main/typescript/services/tracking-attributes/tracking-attributes.service.ts\"),s=r(\"@shop/js-infrastructure-ng4-csi\"),a=r(\"./src/main/typescript/components/tracking-attributes/tracking-attributes.directive.ts\"),u=r(\"./src/main/typescript/components/tracking-attributes/tracking-product-lines.directive.ts\"),p=r(\"./src/main/typescript/components/tracking-attributes/tracking-attributes-csi.directive.ts\"),g=function(){function TrackingAttributesModule(){}return TrackingAttributesModule=i([n.NgModule({imports:[c.CommonModule,s.CsiModule],providers:[o.TrackingAttributesService],declarations:[a.TrackingAttributesDirective,u.TrackingProductLinesDirective,p.TrackingAttributesCsiDirective],exports:[a.TrackingAttributesDirective,u.TrackingProductLinesDirective,p.TrackingAttributesCsiDirective]})],TrackingAttributesModule)}();e.TrackingAttributesModule=g},0:function(t,e,r){t.exports=r(\"./src/main/typescript/index.ts\")},\"@angular/common\":function(t,e){t.exports=__webpack_require__(\"./node_modules/@angular/common/@angular/common.es5.js\")},\"@angular/core\":function(t,e){t.exports=__webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\")},\"@angular/platform-browser-dynamic\":function(t,e){t.exports=__webpack_require__(\"./node_modules/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js\")},\"@shop/js-infrastructure-generic-datatypes\":function(t,e){t.exports=__webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\")},\"@shop/js-infrastructure-ng4-csi\":function(t,e){t.exports=__webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-csi/target/dist/index.js\")},\"core-js/es7/reflect\":function(t,e){t.exports=__webpack_require__(\"./node_modules/core-js/es7/reflect.js\")},lodash:function(t,e){t.exports=__webpack_require__(\"./node_modules/lodash/lodash.js\")},\"reflect-metadata\":function(t,e){t.exports=__webpack_require__(\"./node_modules/reflect-metadata/Reflect.js\")},\"rxjs/ReplaySubject\":function(t,e){t.exports=__webpack_require__(\"./node_modules/rxjs/ReplaySubject.js\")},\"rxjs/Rx\":function(t,e){t.exports=__webpack_require__(\"./node_modules/rxjs/Rx.js\")},\"rxjs/operators\":function(t,e){t.exports=__webpack_require__(\"./node_modules/rxjs/operators.js\")},\"zone.js\":function(t,e){t.exports=__webpack_require__(\"./node_modules/zone.js/dist/zone.js\")}})});\n\n\n/***/ }),\n\n/***/ \"./node_modules/@shop/js-infrastructure-ng4-csi/target/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n!function webpackUniversalModuleDefinition(e,t){ true?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports._shop_js_infrastructure_ng4_csi=t():e._shop_js_infrastructure_ng4_csi=t()}(window,function(){return function(e){var t={};function __webpack_require__(n){if(t[n])return t[n].exports;var r=t[n]={i:n,l:!1,exports:{}};return e[n].call(r.exports,r,r.exports,__webpack_require__),r.l=!0,r.exports}return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,n){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},__webpack_require__.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(__webpack_require__.r(n),Object.defineProperty(n,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var r in e)__webpack_require__.d(n,r,function(t){return e[t]}.bind(null,r));return n},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(t,\"a\",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p=\"\",__webpack_require__(__webpack_require__.s=0)}({\"./src/main/typescript/abstract-csi-app.module.ts\":function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r=n(\"./src/main/typescript/csi-bootstrap.ts\"),o=function(){function AbstractCsiAppModule(){}return AbstractCsiAppModule.prototype.ngDoBootstrap=function(e){e.bootstrap(this.appComponentType,r.getCsiBootstrapContext().element)},AbstractCsiAppModule}();t.AbstractCsiAppModule=o},\"./src/main/typescript/components/csiApp.component.ts\":function(e,t,n){\"use strict\";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__awaiter||function(e,t,n,r){return new(n||(n=Promise))(function(o,i){function fulfilled(e){try{step(r.next(e))}catch(e){i(e)}}function rejected(e){try{step(r.throw(e))}catch(e){i(e)}}function step(e){e.done?o(e.value):new n(function(t){t(e.value)}).then(fulfilled,rejected)}step((r=r.apply(e,t||[])).next())})},s=this&&this.__generator||function(e,t){var n,r,o,i,s={label:0,sent:function(){if(1&o[0])throw o[1];return o[1]},trys:[],ops:[]};return i={next:verb(0),throw:verb(1),return:verb(2)},\"function\"==typeof Symbol&&(i[Symbol.iterator]=function(){return this}),i;function verb(i){return function(c){return function step(i){if(n)throw new TypeError(\"Generator is already executing.\");for(;s;)try{if(n=1,r&&(o=2&i[0]?r.return:i[0]?r.throw||((o=r.return)&&o.call(r),0):r.next)&&!(o=o.call(r,i[1])).done)return o;switch(r=0,o&&(i=[2&i[0],o.value]),i[0]){case 0:case 1:o=i;break;case 4:return s.label++,{value:i[1],done:!1};case 5:s.label++,r=i[1],i=[0];continue;case 7:i=s.ops.pop(),s.trys.pop();continue;default:if(!(o=(o=s.trys).length>0&&o[o.length-1])&&(6===i[0]||2===i[0])){s=0;continue}if(3===i[0]&&(!o||i[1]>o[0]&&i[1]<o[3])){s.label=i[1];break}if(6===i[0]&&s.label<o[1]){s.label=o[1],o=i;break}if(o&&s.label<o[2]){s.label=o[2],s.ops.push(i);break}o[2]&&s.ops.pop(),s.trys.pop();continue}i=t.call(e,s)}catch(e){i=[6,e],r=0}finally{n=o=0}if(5&i[0])throw i[1];return{value:i[0]?i[1]:void 0,done:!0}}([i,c])}}};Object.defineProperty(t,\"__esModule\",{value:!0});var c=n(\"@angular/core\"),p=n(\"rxjs/Rx\"),u=n(\"rxjs/ReplaySubject\"),a=function(){function CsiAppComponent(e,t){this.zone=e,this.element=t,this.afterInit=!1,this.outboundMessage=new c.EventEmitter,this._csiLoaded$=new u.ReplaySubject(1),this.csiLoaded$=this._csiLoaded$.asObservable(),this.queuedMessages=[]}return Object.defineProperty(CsiAppComponent.prototype,\"isWebpackModuleAvailable\",{get:function(){return!!this.getWebpackModule()},enumerable:!0,configurable:!0}),CsiAppComponent.prototype.getWebpackModule=function(){return window[this.moduleName]},CsiAppComponent.prototype.send=function(e){this.csiApp?this.csiApp.channel.send(e):this.queuedMessages.push(e)},CsiAppComponent.prototype.ngAfterViewChecked=function(){var e=this;!this.afterInit&&this.isWebpackModuleAvailable&&(this.afterInit=!0,this.zone.runOutsideAngular(function(){return i(e,void 0,void 0,function(){var e,t=this;return s(this,function(n){switch(n.label){case 0:return e=this,[4,this.getWebpackModule().bootstrap(this.element.nativeElement,this.config)];case 1:return e.csiApp=n.sent(),this.channelUnsubscribe=this.csiApp.channel.subscribe(function(e){return t.outboundMessage.next(e)}),this.queuedMessages.forEach(function(e){return t.csiApp.channel.send(e)}),this.queuedMessages=null,this.inboundMessage$&&this.inboundMessage$.subscribe(function(e){t.csiApp.channel.send(e)}),this._csiLoaded$.next(!0),this._csiLoaded$.complete(),[2]}})})}))},CsiAppComponent.prototype.destroy=function(){this.channelUnsubscribe&&this.channelUnsubscribe(),this.csiApp&&this.csiApp.destroy()},r([c.Input(),o(\"design:type\",String)],CsiAppComponent.prototype,\"moduleName\",void 0),r([c.Input(),o(\"design:type\",Object)],CsiAppComponent.prototype,\"config\",void 0),r([c.Output(),o(\"design:type\",c.EventEmitter)],CsiAppComponent.prototype,\"outboundMessage\",void 0),r([c.Input(),o(\"design:type\",p.Observable)],CsiAppComponent.prototype,\"inboundMessage$\",void 0),CsiAppComponent=r([c.Component({selector:\"csi-app\",template:'\\n        <ng-content *ngIf=\"!isWebpackModuleAvailable\"></ng-content>\\n    '}),o(\"design:paramtypes\",[c.NgZone,c.ElementRef])],CsiAppComponent)}();t.CsiAppComponent=a},\"./src/main/typescript/components/index.ts\":function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function __export(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}(n(\"./src/main/typescript/components/csiApp.component.ts\"))},\"./src/main/typescript/csi-bootstrap.ts\":function(e,t,n){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var r,o=n(\"@angular/platform-browser-dynamic\"),i=n(\"./src/main/typescript/csi-channel.service.ts\"),s=function(){return function CsiNg4BootstrapContext(e,t){this.element=e,this.csiConfig=t}}();t.CsiNg4BootstrapContext=s,t.getCsiBootstrapContext=function getCsiBootstrapContext(){if(!r)throw new Error(\"no bootstrapContext defined. Did you forget to call setCsiBootstrapContext?\");return r},t.createCsiBootstrapForNg4Module=function createCsiBootstrapForNg4Module(e){return function(t,n){return function setCsiBootstrapContext(e){r=e}(new s(t,n)),o.platformBrowserDynamic().bootstrapModule(e).then(function(e){return{channel:e.injector.get(i.CsiChannelService).getExternalCsiChannel(),destroy:function(){return e.destroy()},nativeHandle:e,frameworkHint:\"ng4\"}})}}},\"./src/main/typescript/csi-channel.service.ts\":function(e,t,n){\"use strict\";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var i=n(\"@angular/core\"),s=function(){function CsiChannelService(e){this.zone=e,this.sendToInternalEmitter=new i.EventEmitter,this.sendToExternalEmitter=new i.EventEmitter}return CsiChannelService.prototype.send=function(e){this.sendToExternalEmitter.emit(e)},CsiChannelService.prototype.subscribe=function(e){var t=this.sendToInternalEmitter.subscribe(e);return function(){t.unsubscribe()}},CsiChannelService.prototype.getExternalCsiChannel=function(){var e=this;return{send:function(t){e.zone.run(function(){e.sendToInternalEmitter.emit(t)})},subscribe:function(t){var n=e.sendToExternalEmitter.subscribe(function(n){e.zone.runOutsideAngular(function(){t(n)})});return function(){n.unsubscribe()}}}},CsiChannelService=r([i.Injectable(),o(\"design:paramtypes\",[i.NgZone])],CsiChannelService)}();t.CsiChannelService=s},\"./src/main/typescript/csi.module.ts\":function(e,t,n){\"use strict\";var r=this&&this.__decorate||function(e,t,n,r){var o,i=arguments.length,s=i<3?t:null===r?r=Object.getOwnPropertyDescriptor(t,n):r;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)s=Reflect.decorate(e,t,n,r);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(s=(i<3?o(s):i>3?o(t,n,s):o(t,n))||s);return i>3&&s&&Object.defineProperty(t,n,s),s};Object.defineProperty(t,\"__esModule\",{value:!0});var o=n(\"./src/main/typescript/components/csiApp.component.ts\"),i=n(\"./src/main/typescript/csi-channel.service.ts\"),s=n(\"@angular/core\"),c=n(\"@angular/common\"),p=function(){function CsiModule(){}return CsiModule=r([s.NgModule({imports:[c.CommonModule],providers:[i.CsiChannelService],declarations:[o.CsiAppComponent],exports:[o.CsiAppComponent]})],CsiModule)}();t.CsiModule=p},\"./src/main/typescript/index.ts\":function(e,t,n){\"use strict\";function __export(e){for(var n in e)t.hasOwnProperty(n)||(t[n]=e[n])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(n(\"./src/main/typescript/csi-channel.service.ts\")),__export(n(\"./src/main/typescript/csi-bootstrap.ts\")),__export(n(\"./src/main/typescript/abstract-csi-app.module.ts\")),__export(n(\"./src/main/typescript/csi.module.ts\")),__export(n(\"./src/main/typescript/components/index.ts\"))},0:function(e,t,n){e.exports=n(\"./src/main/typescript/index.ts\")},\"@angular/common\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@angular/common/@angular/common.es5.js\")},\"@angular/core\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\")},\"@angular/platform-browser-dynamic\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js\")},\"rxjs/ReplaySubject\":function(e,t){e.exports=__webpack_require__(\"./node_modules/rxjs/ReplaySubject.js\")},\"rxjs/Rx\":function(e,t){e.exports=__webpack_require__(\"./node_modules/rxjs/Rx.js\")}})});\n\n\n/***/ }),\n\n/***/ \"./node_modules/@shop/js-infrastructure-ng4-store-csi/target/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n!function webpackUniversalModuleDefinition(e,t){ true?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports._shop_js_infrastructure_ng4_store_csi=t():e._shop_js_infrastructure_ng4_store_csi=t()}(window,function(){return function(e){var t={};function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,r){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},__webpack_require__.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(__webpack_require__.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var n in e)__webpack_require__.d(r,n,function(t){return e[t]}.bind(null,n));return r},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(t,\"a\",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p=\"\",__webpack_require__(__webpack_require__.s=0)}({\"./src/main/typescript/csi-actions.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(\"lodash\"),o=r(\"@shop/js-infrastructure-ng4-store\"),i={},c=Symbol(\"js-infrastructure-ng4-store-csi/outboundMessageTypeSymbol\");function checkTarget(e,t){if(!o.AbstractBaseAction.isPrototypeOf(e))throw new Error(\"@\"+t+\" must be applied to subclass of AbstractBaseAction!\")}function checkMessageType(e){if(!e)throw new Error(\"parameter 'messageType' must be defined!\")}t.findAllCsiInboundActions=function findAllCsiInboundActions(){return n.extend({},i)},t.getOutboundMessageTypeForAction=function getOutboundMessageTypeForAction(e){return e.constructor[c]||null},t.CsiInboundAction=function CsiInboundAction(e){return checkMessageType(e),function(t){if(checkTarget(t,\"CsiInboundAction\"),i[e])throw new Error(\"Action \"+i[e].name+\" already registered for messageType '\"+e+\"'\");i[e]=t}},t.CsiOutboundAction=function CsiOutboundAction(e){return checkMessageType(e),function(t){checkTarget(t,\"CsiOutboundAction\"),t[c]=e}}},\"./src/main/typescript/csi-store.service.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(\"@ngrx/effects\"),c=r(\"@ngrx/store\"),s=r(\"@angular/core\"),u=r(\"./src/main/typescript/csi-actions.ts\"),a=r(\"lodash\"),f=r(\"@shop/js-infrastructure-ng4-csi\"),p=function(){function CsiStoreService(e,t,r){var n=this;this.actions=e,this.dispatcher=t,this.channel=r;var o=u.findAllCsiInboundActions();this.actions.subscribe(function(e){var t=u.getOutboundMessageTypeForAction(e);if(t){var r=a.extend({},e,{type:t});n.channel.send(r)}else;}),this.channel.subscribe(function(e){var t=o[e.type];if(t){var r=Object.create(t.prototype);t.call(r,e),n.dispatcher.next(r)}})}var e;return e=CsiStoreService,CsiStoreService.provider=function(){return[e,{provide:s.APP_INITIALIZER,useFactory:function(){return function(){return null}},deps:[e],multi:!0}]},CsiStoreService=e=n([s.Injectable(),o(\"design:paramtypes\",[i.Actions,c.Dispatcher,f.CsiChannelService])],CsiStoreService)}();t.CsiStoreService=p},\"./src/main/typescript/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/csi-actions.ts\")),__export(r(\"./src/main/typescript/csi-store.service.ts\")),__export(r(\"./src/main/typescript/store-csi.module.ts\"))},\"./src/main/typescript/store-csi.module.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,c=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)c=Reflect.decorate(e,t,r,n);else for(var s=e.length-1;s>=0;s--)(o=e[s])&&(c=(i<3?o(c):i>3?o(t,r,c):o(t,r))||c);return i>3&&c&&Object.defineProperty(t,r,c),c};Object.defineProperty(t,\"__esModule\",{value:!0});var o=r(\"./src/main/typescript/csi-store.service.ts\"),i=r(\"@angular/core\"),c=function(){function StoreCsiModule(){}return StoreCsiModule=n([i.NgModule({providers:[o.CsiStoreService.provider()]})],StoreCsiModule)}();t.StoreCsiModule=c},0:function(e,t,r){e.exports=r(\"./src/main/typescript/index.ts\")},\"@angular/core\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\")},\"@ngrx/effects\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@ngrx/effects/index.js\")},\"@ngrx/store\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@ngrx/store/index.js\")},\"@shop/js-infrastructure-ng4-csi\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-csi/target/dist/index.js\")},\"@shop/js-infrastructure-ng4-store\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\")},lodash:function(e,t){e.exports=__webpack_require__(\"./node_modules/lodash/lodash.js\")}})});\n\n\n/***/ }),\n\n/***/ \"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n!function webpackUniversalModuleDefinition(e,t){ true?module.exports=t():\"function\"==typeof define&&define.amd?define([],t):\"object\"==typeof exports?exports._shop_js_infrastructure_ng4_store=t():e._shop_js_infrastructure_ng4_store=t()}(window,function(){return function(e){var t={};function __webpack_require__(r){if(t[r])return t[r].exports;var n=t[r]={i:r,l:!1,exports:{}};return e[r].call(n.exports,n,n.exports,__webpack_require__),n.l=!0,n.exports}return __webpack_require__.m=e,__webpack_require__.c=t,__webpack_require__.d=function(e,t,r){__webpack_require__.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},__webpack_require__.r=function(e){\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},__webpack_require__.t=function(e,t){if(1&t&&(e=__webpack_require__(e)),8&t)return e;if(4&t&&\"object\"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(__webpack_require__.r(r),Object.defineProperty(r,\"default\",{enumerable:!0,value:e}),2&t&&\"string\"!=typeof e)for(var n in e)__webpack_require__.d(r,n,function(t){return e[t]}.bind(null,n));return r},__webpack_require__.n=function(e){var t=e&&e.__esModule?function getDefault(){return e.default}:function getModuleExports(){return e};return __webpack_require__.d(t,\"a\",t),t},__webpack_require__.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},__webpack_require__.p=\"\",__webpack_require__(__webpack_require__.s=0)}({\"./src/main/typescript/base/abstract-infrastructure-action.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function AbstractInfrastructureAction(){return null!==e&&e.apply(this,arguments)||this}return o(AbstractInfrastructureAction,e),AbstractInfrastructureAction.NAMESPACE=\"infrastructure\",AbstractInfrastructureAction}(r(\"./src/main/typescript/store/abstract-base.action.ts\").AbstractBaseAction);t.AbstractInfrastructureAction=i},\"./src/main/typescript/base/index.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(\"./src/main/typescript/base/abstract-infrastructure-action.ts\"))},\"./src/main/typescript/call/abstract-call-payload-interceptor.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(\"./src/main/typescript/call/call-payload-interceptor.interface.ts\"),o=function(){function AbstractCallPayloadInterceptor(){}return AbstractCallPayloadInterceptor.provider=function(){return[this,{provide:n.ICallPayloadInterceptor,useExisting:this,multi:!0}]},AbstractCallPayloadInterceptor}();t.AbstractCallPayloadInterceptor=o},\"./src/main/typescript/call/actions/load-call-http-error.action.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function LoadCallHttpErrorAction(t,r){var n=e.call(this)||this;return n.call=t,n.error=r,n}return o(LoadCallHttpErrorAction,e),LoadCallHttpErrorAction}(r(\"./src/main/typescript/base/abstract-infrastructure-action.ts\").AbstractInfrastructureAction);t.LoadCallHttpErrorAction=i},\"./src/main/typescript/call/actions/load-call-result-validation-error.action.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function LoadCallResultValidationErrorAction(t,r,n){var o=e.call(this)||this;return o.message=t,o.payload=r,o.callAction=n,o}return o(LoadCallResultValidationErrorAction,e),LoadCallResultValidationErrorAction}(r(\"./src/main/typescript/base/abstract-infrastructure-action.ts\").AbstractInfrastructureAction);t.LoadCallResultValidationErrorAction=i},\"./src/main/typescript/call/actions/load-call-success.action.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function LoadCallSuccessAction(t,r,n,o){void 0===n&&(n=null),void 0===o&&(o=null);var i=e.call(this)||this;return i.payload=t,i.initalLoadAction=r,i.successActionCreator=n,i.causingAction=o,i}return o(LoadCallSuccessAction,e),LoadCallSuccessAction}(r(\"./src/main/typescript/base/abstract-infrastructure-action.ts\").AbstractInfrastructureAction);t.LoadCallSuccessAction=i},\"./src/main/typescript/call/actions/load-call.action.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(\"lodash\"),a=function(e){function LoadCallAction(t,r,n,o){void 0===n&&(n=null),void 0===o&&(o=null);var i=e.call(this)||this;return i.call=t,i.resultTypeDescriptor=r,i.successActionCreator=n,i.causingAction=o,i}return o(LoadCallAction,e),Object.defineProperty(LoadCallAction.prototype,\"initialAction\",{get:function(){return this.causingAction?this.causingAction.initialAction:this},enumerable:!0,configurable:!0}),LoadCallAction}(r(\"./src/main/typescript/base/abstract-infrastructure-action.ts\").AbstractInfrastructureAction);t.LoadCallAction=a;var c=function(){return function PayloadArrayTypeDescriptor(e){if(i.isArray(e))this.types=e;else{if(!i.isFunction(e))throw new Error(\"Only arrays and constructor functions are supported but got \"+typeof e);this.types=[e]}}}();t.PayloadArrayTypeDescriptor=c},\"./src/main/typescript/call/call-payload-interceptor.interface.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){return function ICallPayloadInterceptor(){}}();t.ICallPayloadInterceptor=n},\"./src/main/typescript/call/call.service.interface.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){return function ICallService(){}}();t.ICallService=n},\"./src/main/typescript/call/call.service.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,\"__esModule\",{value:!0});var a=r(\"rxjs/Observable\"),c=r(\"./src/main/typescript/call/call-payload-interceptor.interface.ts\"),s=r(\"./src/main/typescript/call/call.service.interface.ts\"),p=r(\"./src/main/typescript/logging/logger.service.interface.ts\"),u=r(\"./src/main/typescript/mapping/mapping.service.interface.ts\"),l=r(\"@angular/core\"),f=r(\"@angular/http\"),d=r(\"@ngrx/store\");r(\"rxjs/Rx\");var y=r(\"@ngrx/effects\"),v=r(\"./src/main/typescript/call/actions/load-call.action.ts\"),_=r(\"./src/main/typescript/validation/value-validation.service.ts\"),m=r(\"./src/main/typescript/call/actions/load-call-result-validation-error.action.ts\"),h=r(\"./src/main/typescript/call/actions/load-call-success.action.ts\"),g=r(\"./src/main/typescript/call/actions/load-call-http-error.action.ts\"),b=r(\"lodash\"),P=r(\"./src/main/typescript/call/interceptors/header-interceptor.ts\"),O=r(\"@angular/platform-browser\"),R=r(\"@shop/js-infrastructure-generic-datatypes/target/dist\"),j=function(){function CallService(e,t,r,n,o,i,a,c,s){var p=this;this.metaService=e,this.http=t,this.mappingService=r,this.valueValidationService=n,this.dispatcher=i,this.actions=a,this.headerInterceptor=s,this.logger=o.create(\"commerce.common.MappingService\"),this.payloadInterceptors=c||[],this.actions.switchMap(v.LoadCallAction.streamOfThisAction()).subscribe(function(e){return p.resolveCallImpl(e)}),this.actions.switchMap(h.LoadCallSuccessAction.streamOfThisAction()).subscribe(function(e){return p.handlePayload(e.payload,e.causingAction)})}var e;return e=CallService,CallService.provider=function(){return[{provide:s.ICallService,useClass:e},{provide:l.APP_INITIALIZER,useFactory:function(){return function(){}},multi:!0,deps:[s.ICallService]}]},CallService.prototype.doCall=function(e,t,r){this.dispatcher.dispatch(new v.LoadCallAction(e,r,null))},CallService.prototype.resolveCallImpl=function(e){var t,r=this;if(e.call instanceof R.ConstantCall)t=this.handleConstantCall(e.call);else{if(!(e.call instanceof R.AbstractHttpCall))throw new Error(\"Unresolvable call type: \"+e.call);t=this.handleHttpCall(e.call)}t.subscribe(function(t){r.dispatcher.dispatch(new h.LoadCallSuccessAction(t,e.initialAction,e.successActionCreator,e))})},CallService.prototype.validatePayload=function(e,t){var r=this,n=t.resultTypeDescriptor;if(\"void\"===n||\"unchecked\"===n)return!0;try{this.valueValidationService.validate(e,\"<payload>\")}catch(r){return this.validationError(r.message,e,t),!1}if(b.isFunction(n)&&!this.valueValidationService.isValueOfType(e,n))return this.validationError(\"payload not instance of expected type\",e,t),!1;if(b.isArray(n)&&!n.some(function(t){return r.valueValidationService.isValueOfType(e,t)}))return this.validationError(\"payload not instance of expected type\",e,t),!1;if(n instanceof v.PayloadArrayTypeDescriptor){if(!b.isArray(e))return this.validationError(\"payload not an array\",e,t),!1;var o=n.types;if(!e.every(function(t){return o.some(function(t){return r.assertPayloadType(e,t)})}))return this.validationError(\"payload element not instance of expected type\",e,t),!1}return!0},CallService.prototype.assertPayloadType=function(e,t){return this.valueValidationService.isValueOfType(e,t)},CallService.prototype.validationError=function(e,t,r){this.dispatcher.dispatch(new m.LoadCallResultValidationErrorAction(e,t,r)),this.logger.error(\"Call returned invalid payload!\",{message:e,action:r,payload:t})},CallService.prototype.handlePayload=function(e,t){this.interceptPayload(e,t)||this.validatePayload(e,t)&&t.successActionCreator&&this.handleDefaultPayload(t,e)},CallService.prototype.handleDefaultPayload=function(e,t){var r=e.successActionCreator(t);this.dispatcher.dispatch(r)},CallService.prototype.interceptPayload=function(e,t){var r=this;return this.payloadInterceptors.some(function(n){var o=n.intercept(e,t);return!!o&&(r.logger.debug(\"payload interception\",{payload:e,loadCallAction:t,interceptor:n,interceptionAction:o}),r.dispatcher.dispatch(o),!0)})},CallService.prototype.handleConstantCall=function(e){return a.Observable.from([e.constantPayload])},CallService.prototype.handleHttpCall=function(e){var t,r,n=this;if(e instanceof R.PostCall){var o=this.mappingService.toJson(e.data);r=JSON.stringify(o),t=\"POST\"}else if(e instanceof R.GetCall)t=\"GET\";else{if(!(e instanceof R.DeleteCall))throw new Error(\"Unknown Method of call: \"+e);t=\"DELETE\"}var i=this.headerInterceptor.headers(e);return this.http.request(e.link.uri,{method:t,body:r,withCredentials:this.isSendRequestWithCredentials(),headers:i}).catch(function(t,r){return n.handleHttpError(e,t)}).map(function(e){return e.text().length>0?n.mappingService.fromJson(e.json()):null})},CallService.prototype.isSendRequestWithCredentials=function(){var e=this.metaService.getTag(\"name=corsEnabled\");if(null!==e)return\"true\"===e.content},CallService.prototype.handleHttpError=function(e,t){return this.dispatcher.dispatch(new g.LoadCallHttpErrorAction(e,t)),a.Observable.throw(t)},CallService=e=n([l.Injectable(),i(2,l.Inject(u.IMappingService)),i(4,l.Inject(p.ILoggerService)),i(7,l.Inject(c.ICallPayloadInterceptor)),i(7,l.Optional()),i(8,l.Inject(P.HeaderInterceptor)),o(\"design:paramtypes\",[O.Meta,f.Http,u.IMappingService,_.ValueValidationService,p.ILoggerService,d.Dispatcher,y.Actions,Array,P.HeaderInterceptor])],CallService)}();t.CallService=j},\"./src/main/typescript/call/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/call/actions/load-call.action.ts\")),__export(r(\"./src/main/typescript/call/actions/load-call-http-error.action.ts\")),__export(r(\"./src/main/typescript/call/actions/load-call-result-validation-error.action.ts\")),__export(r(\"./src/main/typescript/call/actions/load-call-success.action.ts\")),__export(r(\"./src/main/typescript/call/interceptors/navigation.action.ts\")),__export(r(\"./src/main/typescript/call/interceptors/navigation-event-call-payload-interceptor.ts\")),__export(r(\"./src/main/typescript/call/interceptors/recursive-call-payload-interceptor.ts\")),__export(r(\"./src/main/typescript/call/abstract-call-payload-interceptor.ts\")),__export(r(\"./src/main/typescript/call/call.service.ts\")),__export(r(\"./src/main/typescript/call/call-payload-interceptor.interface.ts\")),__export(r(\"./src/main/typescript/call/call.service.interface.ts\"))},\"./src/main/typescript/call/interceptors/header-interceptor.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,\"__esModule\",{value:!0});var a=r(\"@angular/core\"),c=r(\"./src/main/typescript/flowid/flow-id.service.interface.ts\"),s=r(\"./src/main/typescript/mock/mock-settings.service.ts\"),p=r(\"@angular/http\"),u=function(){function HeaderInterceptor(e,t){this.flowIdService=e,this.mockSettingsService=t}return HeaderInterceptor.prototype.headers=function(e){var t=new p.Headers;null!==e.link.mediaType&&t.set(\"Content-Type\",e.link.mediaType);var r=this.flowIdService.flowId;r&&t.set(\"flowId\",r);var n=this.mockSettingsService.mockSettingsString;return n&&t.set(\"X-MOCK\",n),t},HeaderInterceptor=n([a.Injectable(),i(0,a.Inject(c.IFlowIdService)),i(1,a.Inject(s.MockSettingsService)),o(\"design:paramtypes\",[c.IFlowIdService,s.MockSettingsService])],HeaderInterceptor)}();t.HeaderInterceptor=u},\"./src/main/typescript/call/interceptors/navigation-event-call-payload-interceptor.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},a=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},c=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,\"__esModule\",{value:!0});var s=r(\"@ngrx/effects\"),p=r(\"./src/main/typescript/call/abstract-call-payload-interceptor.ts\");r(\"rxjs/Rx\");var u=r(\"./src/main/typescript/call/interceptors/navigation.action.ts\"),l=r(\"@angular/core\"),f=r(\"@angular/platform-browser\"),d=r(\"@shop/js-infrastructure-generic-datatypes\"),y=function(e){function NavigationEventCallPayloadInterceptor(t,r){var n=e.call(this)||this;return t.filter(u.NavigationAction.instanceFilter()).subscribe(function(e){r.location.href=e.url}),n}return o(NavigationEventCallPayloadInterceptor,e),NavigationEventCallPayloadInterceptor.prototype.intercept=function(e){return e instanceof d.NavigationEvent?new u.NavigationAction(e.link.uri):null},NavigationEventCallPayloadInterceptor=i([l.Injectable(),c(1,l.Inject(f.DOCUMENT)),a(\"design:paramtypes\",[s.Actions,Document])],NavigationEventCallPayloadInterceptor)}(p.AbstractCallPayloadInterceptor);t.NavigationEventCallPayloadInterceptor=y},\"./src/main/typescript/call/interceptors/navigation.action.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function NavigationAction(t){var r=e.call(this)||this;return r.url=t,r}return o(NavigationAction,e),NavigationAction}(r(\"./src/main/typescript/base/abstract-infrastructure-action.ts\").AbstractInfrastructureAction);t.NavigationAction=i},\"./src/main/typescript/call/interceptors/recursive-call-payload-interceptor.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},a=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var c=r(\"./src/main/typescript/call/abstract-call-payload-interceptor.ts\");r(\"rxjs/Rx\");var s=r(\"@angular/core\"),p=r(\"./src/main/typescript/call/actions/load-call.action.ts\"),u=r(\"@shop/js-infrastructure-generic-datatypes\"),l=function(e){function RecursiveCallPayloadInterceptor(){return e.call(this)||this}return o(RecursiveCallPayloadInterceptor,e),RecursiveCallPayloadInterceptor.prototype.intercept=function(e,t){return e instanceof u.Call?new p.LoadCallAction(e,t.resultTypeDescriptor,t.successActionCreator,t):null},RecursiveCallPayloadInterceptor=i([s.Injectable(),a(\"design:paramtypes\",[])],RecursiveCallPayloadInterceptor)}(c.AbstractCallPayloadInterceptor);t.RecursiveCallPayloadInterceptor=l},\"./src/main/typescript/components/compendium-modal.component.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(\"@angular/core\"),a=function(){function CompendiumModalComponent(){this.hideFooter=!1,this.modalClosed=new i.EventEmitter}return CompendiumModalComponent.prototype.ngOnInit=function(){var e=this;this.hideFooter=!(this.modalFooter.nativeElement&&this.modalFooter.nativeElement.children.length>0),this.jQueryModalElement=$(this.modalElement.nativeElement),this.jQueryModalElement.modal(\"show\"),this.jQueryModalElement.on(\"hidden.bs.modal\",function(){e.modalClosed.emit()})},n([i.ViewChild(\"modalElement\"),o(\"design:type\",i.ElementRef)],CompendiumModalComponent.prototype,\"modalElement\",void 0),n([i.ViewChild(\"modalFooter\"),o(\"design:type\",i.ElementRef)],CompendiumModalComponent.prototype,\"modalFooter\",void 0),n([i.Output(),o(\"design:type\",i.EventEmitter)],CompendiumModalComponent.prototype,\"modalClosed\",void 0),CompendiumModalComponent=n([i.Component({selector:\"compendium-modal\",template:'\\n        <div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" #modalElement>\\n            <div class=\"modal-dialog modal-lg modal-has-header modal-has-footer modal-scrollable-bottom\" role=\"document\">\\n                <div class=\"modal-content\">\\n                    \\n                    <div class=\"modal-header\">\\n                        <button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\"><span\\n                                aria-hidden=\"true\">×</span></button>\\n                        <h4 class=\"modal-title\">\\n                            <ng-content select=\"[modal-header]\"></ng-content>\\n                        </h4>\\n                    </div>\\n                    \\n                    <div class=\"modal-body\">\\n                        <ng-content></ng-content>\\n                    </div>\\n                    \\n                    <div class=\"modal-footer\" [hidden]=\"hideFooter\" #modalFooter>\\n                        <ng-content select=\"[modal-footer]\"></ng-content>\\n                    </div>\\n                </div>\\n            </div>\\n        </div>',changeDetection:i.ChangeDetectionStrategy.OnPush}),o(\"design:paramtypes\",[])],CompendiumModalComponent)}();t.CompendiumModalComponent=a},\"./src/main/typescript/components/compendium-price-display.component.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(\"@angular/core\"),a=r(\"rxjs/Observable\"),c=function(){function CompendiumPriceDisplayComponent(){}return Object.defineProperty(CompendiumPriceDisplayComponent.prototype,\"classForAlignment\",{get:function(){return{\"price-left\":\"left\"===this.alignment,\"\":\"center\"===this.alignment||void 0===this.alignment,\"price-right\":\"right\"===this.alignment}},enumerable:!0,configurable:!0}),n([i.Input(),o(\"design:type\",a.Observable)],CompendiumPriceDisplayComponent.prototype,\"amount$\",void 0),n([i.Input(),o(\"design:type\",a.Observable)],CompendiumPriceDisplayComponent.prototype,\"contentBefore$\",void 0),n([i.Input(),o(\"design:type\",a.Observable)],CompendiumPriceDisplayComponent.prototype,\"contentAfter$\",void 0),n([i.Input(),o(\"design:type\",a.Observable)],CompendiumPriceDisplayComponent.prototype,\"additionalContentAfter$\",void 0),n([i.Input(),o(\"design:type\",String)],CompendiumPriceDisplayComponent.prototype,\"alignment\",void 0),CompendiumPriceDisplayComponent=n([i.Component({selector:\"compendium-price-display\",template:'        \\n     <span class=\"price\" [ngClass]=\"classForAlignment\">\\n         <span class=\"cond\" [innerHTML]=\"contentBefore$ | async\"></span>\\n         <span class=\"sum\" [innerHTML]=\"(amount$ | async) | price:\\'integer\\'\"></span>\\n         <span class=\"suffix\" [innerHTML]=\"(amount$ | async) | price:\\'decimal\\'\"></span>\\n         <span class=\"currency\">€</span>\\n         <span class=\"condAfter\" style=\"display: block;\" [innerHTML]=\"additionalContentAfter$ | async\"></span>\\n         <span class=\"condAfter\" style=\"display: block;\" [innerHTML]=\"contentAfter$ | async\"></span>\\n     </span>\\n    ',changeDetection:i.ChangeDetectionStrategy.OnPush})],CompendiumPriceDisplayComponent)}();t.CompendiumPriceDisplayComponent=c},\"./src/main/typescript/components/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/components/compendium-price-display.component.ts\")),__export(r(\"./src/main/typescript/components/compendium-modal.component.ts\"))},\"./src/main/typescript/extension/extension-chain-reducer.interface.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function IExtensionChainReducer(){return null!==e&&e.apply(this,arguments)||this}return o(IExtensionChainReducer,e),IExtensionChainReducer}(r(\"./src/main/typescript/store/chain-reducer.interface.ts\").IChainReducer);t.IExtensionChainReducer=i},\"./src/main/typescript/extension/extension-reducer.interface.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function IExtensionReducer(){return null!==e&&e.apply(this,arguments)||this}return o(IExtensionReducer,e),IExtensionReducer}(r(\"./src/main/typescript/store/reducer.interface.ts\").IReducer);t.IExtensionReducer=i},\"./src/main/typescript/extension/extension-store.interface.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){return function IExtensionStore(){}}();t.IExtensionStore=n},\"./src/main/typescript/extension/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/extension/extension-chain-reducer.interface.ts\")),__export(r(\"./src/main/typescript/extension/extension-reducer.interface.ts\")),__export(r(\"./src/main/typescript/extension/extension-store.interface.ts\"))},\"./src/main/typescript/flowid/flow-id.service.interface.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){return function IFlowIdService(){}}();t.IFlowIdService=n},\"./src/main/typescript/flowid/flow-id.service.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,\"__esModule\",{value:!0});var a=r(\"./src/main/typescript/flowid/flow-id.service.interface.ts\"),c=r(\"@angular/core\"),s=r(\"@angular/common\"),p=function(){function FlowIdService(e){var t=e.querySelector(\"meta[name=flowId]\");this.flowId=t?t.getAttribute(\"content\"):null}return FlowIdService.provider=function(){return[{provide:a.IFlowIdService,useClass:FlowIdService}]},FlowIdService=n([i(0,c.Inject(s.DOCUMENT)),o(\"design:paramtypes\",[Document])],FlowIdService)}();t.FlowIdService=p},\"./src/main/typescript/flowid/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/flowid/flow-id.service.interface.ts\")),__export(r(\"./src/main/typescript/flowid/flow-id.service.ts\"))},\"./src/main/typescript/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),r(\"rxjs/Rx\"),__export(r(\"./src/main/typescript/base/index.ts\")),__export(r(\"./src/main/typescript/call/index.ts\")),__export(r(\"./src/main/typescript/components/index.ts\")),__export(r(\"./src/main/typescript/extension/index.ts\")),__export(r(\"./src/main/typescript/flowid/index.ts\")),__export(r(\"./src/main/typescript/logging/index.ts\")),__export(r(\"./src/main/typescript/mapping/index.ts\")),__export(r(\"./src/main/typescript/mock/index.ts\")),__export(r(\"./src/main/typescript/pagevalue/index.ts\")),__export(r(\"./src/main/typescript/pipes/index.ts\")),__export(r(\"./src/main/typescript/store/index.ts\")),__export(r(\"./src/main/typescript/tracking/index.ts\")),__export(r(\"./src/main/typescript/validation/index.ts\")),__export(r(\"./src/main/typescript/valuemetadata/index.ts\")),__export(r(\"./src/main/typescript/shop-application.module.ts\"))},\"./src/main/typescript/logging/create-logger-service.function.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(\"lodash\"),o={getLocalStorage:function(){if(\"undefined\"!=typeof Storage)try{if(window.localStorage)return window.localStorage.setItem(\"test\",\"test\"),window.localStorage.removeItem(\"test\"),window.localStorage}catch(e){}return null},regExpFromSimplePattern:function(e){if(!/^[\\w.:\\/*]*$/.test(e))throw new Error(\"Failed compiling '\"+e+\"' illegal character found!\");return new RegExp(e.replace(/\\./g,\"\\\\.\").replace(/\\*/g,\".*\"))}};t.createLoggerService=function createLoggerService(){var e={OFF:40,ERROR:30,WARN:20,INFO:10,DEBUG:0},t={\"*\":e.ERROR,\"commerce.log.*\":e.INFO},r={name:\"logLogger\",error:function(e,t){},warn:function(e,t){},info:function(e,t){},debug:function(e,t){},sub:function(e){return null}},i=function(e){if(void 0===window.console)return function(){};var t=window.console[e.toLowerCase()];return n.isFunction(t)?function(){t.apply(window.console,arguments)}:function(){t=window.console.log}},a=[],c=function c(e,t,r){this.regexp=e,this.level=t,this.pattern=r};function loadLogConfig(t){try{a=function compileConfig(t){var n,i,a=[];for(n in t)if(t.hasOwnProperty(n)){var s=o.regExpFromSimplePattern(n);a.push(new c(s,\"string\"==typeof(i=t[n])?e[i.toUpperCase().trim()]||e.DEBUG:\"number\"==typeof i?i:(r.warn(\"Failed to interprete level!\",{level:i}),e.DEBUG),n))}return a.sort(function(e,t){return t.pattern.length-e.pattern.length})}(t)}catch(e){r.error(\"Failed compiling config!\",{config:t,exception:e})}}function setLogConfig(e){var t=o.getLocalStorage();null!==t?(r.info(\"writing config to local storage\",{config:e}),t.logConfig=JSON.stringify(e)):r.warn(\"Can not set log config, no local storage supported!\",void 0),loadLogConfig(e)}function getLogConfig(){var e=t,n=o.getLocalStorage();if(n){var i=n.logConfig;if(i)try{e=JSON.parse(i)}catch(e){r.error(\"Failed reading config from local storage!\",{string:i,exception:e})}}return e}function resetLogConfig(){setLogConfig(t),r.info(\"config reset\",void 0)}function setupLogConfigFromUrl(){var e=function getLogConfigStringFromUrl(e){var t=new RegExp(\"[?&]jsLogConfig=(['\\\"a-zA-Z0-9._:,*]+)\").exec(e);return t&&t[1]||\"\"}(window.location.href);if(0!==e.length)if(\"reset\"===e)resetLogConfig();else{var t=function parseConfigString(e){var t,r=e.split(\",\"),n={};for(t=0;t<r.length;t+=1){var o=r[t].split(\":\");2===o.length&&(n[o[0]]=o[1])}return n}(e);r.info(\"found config in page url\",{config:t}),setLogConfig(t)}else loadLogConfig(getLogConfig())}function createLogFunction(t,r){var n=function levelToString(t){var r;for(r in e)if(e.hasOwnProperty(r)&&t===e[r])return r;return\"UNKNOWN\"}(r),o=\"[\";return o+=n,o+=\"][\",o+=t,o+=\"]\",function(){if(!function isMessageSuppressed(e,t){var r,n;for(r=0;r<a.length;r+=1)if((n=a[r]).regexp.exec(e))return n.level>t;return!1}(t,r)){var e=[];e.push(o);for(var c=0;c<arguments.length;c+=1){var s=arguments[c];e.push(s)}i(n).apply(null,e)}}}function createLogObject(t){var r,n={};for(r in e)e.hasOwnProperty(r)&&\"OFF\"!==r&&(n[r.toLowerCase()]=createLogFunction(t,e[r]));return n.name=t,n.sub=function(e){return createLogObject(t+\"/\"+e)},n}return r=createLogObject(\"commerce.common.log\"),setupLogConfigFromUrl(),{create:createLogObject,DEBUG:e.DEBUG,INFO:e.INFO,WARN:e.WARN,ERROR:e.ERROR,config:{set:setLogConfig,get:getLogConfig,add:function addLogConfig(e,t){var r=getLogConfig();r[e]=t,setLogConfig(r)},reset:resetLogConfig,fromUrl:setupLogConfigFromUrl}}}},\"./src/main/typescript/logging/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/logging/create-logger-service.function.ts\")),__export(r(\"./src/main/typescript/logging/logger.service.interface.ts\"))},\"./src/main/typescript/logging/logger.service.interface.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){return function ILoggerService(){}}();t.ILoggerService=n},\"./src/main/typescript/mapping/abstract-custom-type.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(\"@shop/js-infrastructure-generic-datatypes\"),o=function(){function AbstractCustomType(){}return AbstractCustomType.provider=function(){return[this,{provide:n.ICustomType,useExisting:this,multi:!0}]},AbstractCustomType}();t.AbstractCustomType=o},\"./src/main/typescript/mapping/customtypes/date-custom-type.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(\"./src/main/typescript/mapping/abstract-custom-type.ts\"),a=r(\"lodash\"),c=function(e){function DateCustomType(){var t=null!==e&&e.apply(this,arguments)||this;return t.typeName=\"common:Date\",t}return o(DateCustomType,e),DateCustomType.prototype.isType=function(e){return a.isDate(e)},DateCustomType.prototype.fromJson=function(e){return new Date(e.date)},DateCustomType.prototype.toJson=function(e){var t=e.getFullYear(),r=e.getMonth()+1,n=e.getDate();return{date:t+\"-\"+(r<10?\"0\":\"\")+r+\"-\"+(n<10?\"0\":\"\")+n}},DateCustomType}(i.AbstractCustomType);t.DateCustomType=c},\"./src/main/typescript/mapping/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/mapping/customtypes/date-custom-type.ts\")),__export(r(\"./src/main/typescript/mapping/abstract-custom-type.ts\")),__export(r(\"./src/main/typescript/mapping/mapping.service.interface.ts\"))},\"./src/main/typescript/mapping/mapping.service.interface.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){return function IMappingService(){}}();t.IMappingService=n},\"./src/main/typescript/mapping/mapping.service.ts\":function(e,t,r){\"use strict\";var n=this&&this.__assign||function(){return(n=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)},o=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},i=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},a=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,\"__esModule\",{value:!0});var c=r(\"./src/main/typescript/logging/logger.service.interface.ts\"),s=r(\"lodash\"),p=r(\"@angular/core\"),u=r(\"./src/main/typescript/valuemetadata/value-meta-data.service.ts\"),l=r(\"@shop/js-infrastructure-generic-datatypes\"),f=function(){function MappingService(e,t,r){this.metaDatasForName={},this.customTypes={},this.valueMetaDataService=t,this.logger=e.create(\"commerce.common.MappingService\"),this.customTypes=r.reduce(function(e,t){var r;return n({},e,((r={})[t.typeName]=t,r))},{}),this.metaDatasForName=t.getMetaDatas().reduce(function(e,t){var r;return n({},e,((r={})[t.qualifiedName]=t,r))},{})}var e;return e=MappingService,MappingService.prototype.fromJson=function(e){return this.fromJsonImpl(e,new d(\"<root>\"))},MappingService.prototype.fromJsonImpl=function(t,r){var n=this;if(s.isUndefined(t)&&this.reportError('Encountered \"undefined\" value!',r,{json:t}),null===t)return null;if(s.isArray(t))return s.map(t,function(e,t){return n.fromJsonImpl(e,r.index(t))});if(s.isObject(t)){var o=t[e.TYPE_INFO_PROPERTY];if(o)return this.fromTypedJson(t,o,r);var i={};return Object.keys(t).forEach(function(e){return i[e]=n.fromJsonImpl(t[e],r.index(e))}),i}return t},MappingService.prototype.fromTypedJson=function(e,t,r){var n=this.metaDatasForName[t];if(n){if(n instanceof l.EnumMetaData)return this.enumFromTypedJson(e,n,r);if(n instanceof l.ValueMetaData)return this.valueFromTypedJson(e,n,r);this.reportError(\"Unknown metaData type!\",r,{typeInfo:t,metaData:n,json:e,metaDatas:this.metaDatasForName})}else{var o=this.customTypes[t];if(o)return o.fromJson(e);this.reportError('Unknown qualifiedTypeName: \"'+t+'\"',r,{qualifiedTypeName:t,json:e,metaDatas:this.metaDatasForName,customTypes:this.customTypes})}},MappingService.prototype.valueFromTypedJson=function(e,t,r){var n=this,o={};t.properties.forEach(function(t){var i=n.fromJsonImpl(e[t.name],r.property(t.name));o[t.name]=i});var i=Object.create(t.type.prototype);return Object.assign(i,o),i},MappingService.prototype.enumFromTypedJson=function(t,r,n){var o=t[e.ENUM_NAME_PROPERTY];o||this.reportError(\"Invalid json for enum!\",n,{json:t,metaData:r});var i=r.type[o];return i||this.reportError('Invalid enum name! Did you forgot the \"static\" keyword?',n,{enumName:o,metaData:r}),i},MappingService.prototype.reportError=function(e,t,r){r=Object.assign({},{path:t.path},r),this.logger.error(e,r);var n=Object.keys(r).reduce(function(e,t){return e+\" \"+t+\"=\"+r[t]+\"; \"},e);throw new Error(n)},MappingService.prototype.toJson=function(e){return this.toJsonImpl(e,new d(\"<root>\"))},MappingService.prototype.toJsonImpl=function(t,r){var n=this;if(s.isUndefined(t)&&this.reportError(\"Encountered undefined value!\",r,{}),s.isNull(t))return null;if(s.isArray(t))return s.map(t,function(e,t){return n.toJsonImpl(e,r.index(t))});var o=s.find(this.customTypes,function(e){return e.isType(t)});if(o){var i=o.toJson(t);return i[e.TYPE_INFO_PROPERTY]=o.typeName,i}if(s.isObject(t)){var a=t.constructor&&this.valueMetaDataService.getMetaData(t.constructor);if(!a)return this.objectToJson(t,r);if(a instanceof l.EnumMetaData)return this.enumToJson(t,a,r);if(a instanceof l.ValueMetaData)return this.valueToJson(t,a,r);this.reportError(\"Unsupported meta data type!\",r,{metaData:a})}return t},MappingService.prototype.valueToJson=function(t,r,n){var o=this,i={};return i[e.TYPE_INFO_PROPERTY]=r.qualifiedName,r.properties.forEach(function(e){var r=e.name,a=t[r];i[r]=o.toJsonImpl(a,n.property(r))}),i},MappingService.prototype.enumToJson=function(t,r,n){var o={},i=t[e.ENUM_NAME_PROPERTY];return i||this.reportError('Failed building json from enum, \"'+e.ENUM_NAME_PROPERTY+'\" is undefined or null!',n,{enumObject:t,metaData:r}),o[e.TYPE_INFO_PROPERTY]=r.qualifiedName,o[e.ENUM_NAME_PROPERTY]=i,o},MappingService.prototype.objectToJson=function(e,t){var r=this,n={};return Object.keys(e).forEach(function(o){return n[o]=r.toJsonImpl(e,t.index(o))}),n},MappingService.TYPE_INFO_PROPERTY=\"@type\",MappingService.ENUM_NAME_PROPERTY=\"name\",MappingService=e=o([p.Injectable(),a(0,p.Inject(c.ILoggerService)),a(1,p.Inject(u.ValueMetaDataService)),a(2,p.Inject(l.ICustomType)),i(\"design:paramtypes\",[c.ILoggerService,u.ValueMetaDataService,Array])],MappingService)}();t.MappingService=f;var d=function(){function Context(e){this.path=e}return Context.prototype.property=function(e){return new Context(this.path+\".\"+e)},Context.prototype.index=function(e){return new Context(this.path+\"[\"+e+\"]\")},Context}();t.Context=d},\"./src/main/typescript/mock/index.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(\"./src/main/typescript/mock/mock-settings.service.ts\"))},\"./src/main/typescript/mock/mock-settings.service.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,\"__esModule\",{value:!0});var a=r(\"@angular/common\"),c=r(\"@angular/core\"),s=function(){function MockSettingsService(e){var t=e.querySelector(\"meta[name=mock]\");this.mockSettingsString=t?t.getAttribute(\"content\"):null}return MockSettingsService=n([i(0,c.Inject(a.DOCUMENT)),o(\"design:paramtypes\",[Document])],MockSettingsService)}();t.MockSettingsService=s},\"./src/main/typescript/pagevalue/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/pagevalue/page-value.action.ts\")),__export(r(\"./src/main/typescript/pagevalue/page-value-loader.ts\")),__export(r(\"./src/main/typescript/pagevalue/page-value.reducer.ts\")),__export(r(\"./src/main/typescript/pagevalue/page-value-json-loader.ts\"))},\"./src/main/typescript/pagevalue/page-value-json-loader.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,\"__esModule\",{value:!0});var a=r(\"@angular/core\"),c=r(\"@angular/platform-browser\"),s=function(){function PageValueJsonLoader(e){this.doc=e}return PageValueJsonLoader.prototype.load=function(e){var t=this.doc.querySelector(\"script#\"+e).innerHTML;return JSON.parse(t)},PageValueJsonLoader=n([a.Injectable(),i(0,a.Inject(c.DOCUMENT)),o(\"design:paramtypes\",[Document])],PageValueJsonLoader)}();t.PageValueJsonLoader=s},\"./src/main/typescript/pagevalue/page-value-loader.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(\"@angular/core\"),a=r(\"./src/main/typescript/mapping/mapping.service.interface.ts\"),c=r(\"./src/main/typescript/pagevalue/page-value-json-loader.ts\"),s=function(){function PageValueLoader(e,t,r){this.mappingService=e,this.jsonLoader=t,this.pageValueType=r}return PageValueLoader.prototype.load=function(e,t,r){var n=this.jsonLoader.load(t),o=this.mappingService.fromJson(n);if(!(o instanceof this.pageValueType))throw new Error(\"Unexpected PageValue type expected \"+this.pageValueType.name+\" but got \"+o.constructor.name);e.dispatch(r(o))},PageValueLoader=n([i.Injectable(),o(\"design:paramtypes\",[a.IMappingService,c.PageValueJsonLoader,Object])],PageValueLoader)}();t.PageValueLoader=s},\"./src/main/typescript/pagevalue/page-value.action.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function PageValueAction(t,r){var n=e.call(this)||this;return n.pageValue=t,n.pageValueName=r,n}return o(PageValueAction,e),PageValueAction}(r(\"./src/main/typescript/base/abstract-infrastructure-action.ts\").AbstractInfrastructureAction);t.PageValueAction=i},\"./src/main/typescript/pagevalue/page-value.reducer.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},a=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var c=r(\"./src/main/typescript/store/abstract-method-reducer.ts\"),s=r(\"./src/main/typescript/pagevalue/page-value.action.ts\"),p=function(e){function PageValueReducer(t){var r=e.call(this)||this;return r.pageValueName=t,r}return o(PageValueReducer,e),PageValueReducer.prototype.pageValueAction=function(e,t){return t.pageValueName===this.pageValueName?t.pageValue:e},i([c.ReducerMethod(),a(\"design:type\",Function),a(\"design:paramtypes\",[Object,s.PageValueAction]),a(\"design:returntype\",Object)],PageValueReducer.prototype,\"pageValueAction\",null),PageValueReducer}(c.AbstractMethodReducer);t.PageValueReducer=p},\"./src/main/typescript/pipes/euro.pipe.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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};Object.defineProperty(t,\"__esModule\",{value:!0});var o=r(\"@angular/core\"),i=function(){function EuroPipe(){}return EuroPipe.prototype.transform=function(e){if(null!=e){var t=e.toFixed(2).toString().split(\".\");return t[0]+\",\"+t[1]+\" €\"}},EuroPipe=n([o.Pipe({name:\"euro\"})],EuroPipe)}();t.EuroPipe=i},\"./src/main/typescript/pipes/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/pipes/pipes.module.ts\")),__export(r(\"./src/main/typescript/pipes/euro.pipe.ts\")),__export(r(\"./src/main/typescript/pipes/price.pipe.ts\"))},\"./src/main/typescript/pipes/pipes.module.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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};Object.defineProperty(t,\"__esModule\",{value:!0});var o=r(\"@angular/core\"),i=r(\"./src/main/typescript/pipes/unsafe-html.pipe.ts\"),a=r(\"./src/main/typescript/pipes/euro.pipe.ts\"),c=r(\"./src/main/typescript/pipes/price.pipe.ts\"),s=function(){function PipesModule(){}return PipesModule=n([o.NgModule({imports:[],declarations:[a.EuroPipe,i.UnsafeHtmlPipe,c.PricePipe],providers:[a.EuroPipe,i.UnsafeHtmlPipe,c.PricePipe],exports:[a.EuroPipe,i.UnsafeHtmlPipe,c.PricePipe]})],PipesModule)}();t.PipesModule=s},\"./src/main/typescript/pipes/price.pipe.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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};Object.defineProperty(t,\"__esModule\",{value:!0});var o=r(\"@angular/core\"),i=function(){function PricePipe(){}var e;return e=PricePipe,PricePipe.prototype.getPriceInteger=function(e){return String(Math.floor(Math.round(100*e)/100))},PricePipe.prototype.getPriceDecimal=function(e){return e?Math.round(100*e).toString().substr(-2):\"00\"},PricePipe.prototype.transform=function(t,r){if(void 0===r&&(r=e.INTEGER),e.INTEGER!=r&&e.DECIMAL!=r)throw new Error(\"invalid part parameter '\"+r+\"' passed to PricePipe\");return r==e.INTEGER?this.getPriceInteger(t):this.getPriceDecimal(t)},PricePipe.INTEGER=\"integer\",PricePipe.DECIMAL=\"decimal\",PricePipe=e=n([o.Pipe({name:\"price\",pure:!0})],PricePipe)}();t.PricePipe=i},\"./src/main/typescript/pipes/unsafe-html.pipe.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(\"@angular/core\"),a=r(\"@angular/platform-browser\"),c=function(){function UnsafeHtmlPipe(e){this.sanitized=e}return UnsafeHtmlPipe.prototype.transform=function(e){return this.sanitized.bypassSecurityTrustHtml(e)},UnsafeHtmlPipe=n([i.Pipe({name:\"unsafeHtml\"}),o(\"design:paramtypes\",[a.DomSanitizer])],UnsafeHtmlPipe)}();t.UnsafeHtmlPipe=c},\"./src/main/typescript/shop-application.module.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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};Object.defineProperty(t,\"__esModule\",{value:!0});var o=r(\"./src/main/typescript/call/interceptors/recursive-call-payload-interceptor.ts\"),i=r(\"./src/main/typescript/call/interceptors/navigation-event-call-payload-interceptor.ts\"),a=r(\"./src/main/typescript/validation/store-validation-chain.reducer.ts\"),c=r(\"./src/main/typescript/validation/value-validation.service.ts\"),s=r(\"./src/main/typescript/store/root.reducer.ts\"),p=r(\"./src/main/typescript/valuemetadata/value-meta-data.service.ts\"),u=r(\"./src/main/typescript/mapping/customtypes/date-custom-type.ts\"),l=r(\"./src/main/typescript/call/call.service.ts\"),f=r(\"./src/main/typescript/mapping/mapping.service.ts\"),d=r(\"./src/main/typescript/logging/create-logger-service.function.ts\"),y=r(\"./src/main/typescript/logging/logger.service.interface.ts\"),v=r(\"./src/main/typescript/mapping/mapping.service.interface.ts\"),_=r(\"@angular/http\"),m=r(\"@ngrx/store-devtools\"),h=r(\"@angular/platform-browser\"),g=r(\"@ngrx/effects\"),b=r(\"@angular/core\"),P=r(\"@ngrx/store\"),O=r(\"./src/main/typescript/pagevalue/page-value-loader.ts\"),R=r(\"./src/main/typescript/pagevalue/page-value.action.ts\"),j=r(\"./src/main/typescript/store/property-chain.reducer.ts\"),w=r(\"./src/main/typescript/pagevalue/page-value.reducer.ts\"),x=r(\"@angular/forms\"),C=r(\"./src/main/typescript/extension/extension-store.interface.ts\"),S=r(\"./src/main/typescript/extension/extension-reducer.interface.ts\"),A=r(\"./src/main/typescript/extension/extension-chain-reducer.interface.ts\"),M=r(\"./src/main/typescript/pagevalue/page-value-json-loader.ts\"),I=r(\"./src/main/typescript/flowid/flow-id.service.ts\"),E=r(\"./src/main/typescript/mock/mock-settings.service.ts\"),T=r(\"./src/main/typescript/call/interceptors/header-interceptor.ts\"),D=r(\"./src/main/typescript/tracking/tracking.service.ts\"),V=function(){function ShopApplicationModule(){}return ShopApplicationModule.forRootComponent=function(e){var t=[];return t.push({provide:C.IExtensionStore,useFactory:function(t,r,n,o,i,a,c){var p=new s.RootReducer(o,n);r.addReducer(p);var u=t.select(function(t){return t[e.extensionName]});return e.pageValue&&new O.PageValueLoader(i,c,e.pageValue.pageValueType).load(u,e.extensionName,function(t){return new R.PageValueAction(t,e.extensionName)}),u},deps:[P.Store,s.RootReducer,S.IExtensionReducer,A.IExtensionChainReducer,v.IMappingService,h.DOCUMENT,M.PageValueJsonLoader]}),t.push({provide:A.IExtensionChainReducer,useValue:new j.PropertyChainReducer(e.extensionName,e.initialStoreValue),multi:!0}),e.reducers.forEach(function(e){t.push(e,{provide:S.IExtensionReducer,useExisting:e,multi:!0})}),e.chainReducers&&e.chainReducers.forEach(function(e){t.push(e,{provide:A.IExtensionChainReducer,useExisting:e,multi:!0})}),e.pageValue&&!e.pageValue.customReducer&&t.push({provide:S.IExtensionReducer,useValue:new w.PageValueReducer(e.extensionName),multi:!0}),t},ShopApplicationModule=n([b.NgModule({imports:[g.EffectsModule,h.BrowserModule,_.HttpModule,g.EffectsModule,x.FormsModule,_.HttpModule,P.StoreModule.provideStore(function(e){return e},{}),m.StoreDevtoolsModule.instrumentOnlyWithExtension({})],providers:[{provide:y.ILoggerService,useFactory:d.createLoggerService},{provide:v.IMappingService,useClass:f.MappingService},I.FlowIdService.provider(),E.MockSettingsService,T.HeaderInterceptor,l.CallService.provider(),u.DateCustomType.provider(),p.ValueMetaDataService,s.RootReducer.providerForRoot(),c.ValueValidationService,a.StoreValidationChainReducer.provider(),i.NavigationEventCallPayloadInterceptor.provider(),o.RecursiveCallPayloadInterceptor.provider(),{provide:M.PageValueJsonLoader,useClass:M.PageValueJsonLoader},D.TrackingService.provider()],exports:[g.EffectsModule,h.BrowserModule,_.HttpModule,g.EffectsModule,x.FormsModule,P.StoreModule,_.HttpModule]})],ShopApplicationModule)}();t.ShopApplicationModule=V},\"./src/main/typescript/store/abstract-base.action.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(\"rxjs/Observable\");r(\"rxjs/add/observable/from\"),r(\"rxjs/add/observable/empty\");var o=function(){function AbstractBaseAction(){this.type=this.constructor.actionName()}return AbstractBaseAction.actionName=function(){var e=this.NAMESPACE;if(!e)throw new Error(\"'NAMESPACE' property not found in constructor prototype chain for constructor: \"+this);return e+\":\"+this.name},AbstractBaseAction.instanceFilter=function(){var e=this;return function(t){return t instanceof e}},AbstractBaseAction.streamOfThisAction=function(){var e=this;return function(t){return t instanceof e?n.Observable.from([t]):n.Observable.empty()}},AbstractBaseAction}();t.AbstractBaseAction=o},\"./src/main/typescript/store/abstract-chain-reducer.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(\"./src/main/typescript/store/chain-reducer.interface.ts\"),o=function(){function AbstractChainReducer(){}return AbstractChainReducer.provider=function(){return[this,{provide:n.IChainReducer,useExisting:this,multi:!0}]},AbstractChainReducer}();t.AbstractChainReducer=o},\"./src/main/typescript/store/abstract-method-reducer.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(\"./src/main/typescript/store/abstract-base.action.ts\");r(\"reflect-metadata\");var a=r(\"./src/main/typescript/store/abstract.reducer.ts\"),c=Symbol(\"shop/registeredReducerMethods\"),s=function(){return function RegisteredReducerMethod(e,t){this.actionType=e,this.methodName=t}}(),p=function(e){function AbstractMethodReducer(){return null!==e&&e.apply(this,arguments)||this}return o(AbstractMethodReducer,e),AbstractMethodReducer.prototype.reduce=function(e,t){var r=this;return Reflect.getOwnMetadata(c,Reflect.getPrototypeOf(this)).reduce(function(e,n){return t instanceof n.actionType?r[n.methodName].call(r,e,t):e},e)},AbstractMethodReducer}(a.AbstractReducer);t.AbstractMethodReducer=p,t.ReducerMethod=function ReducerMethod(){return function(e,t){if(!(e instanceof p))throw new Error(\"@ReducerMethod can only be applied to method that are defined in subtypes of AbstractMethodReducer\");var r=Reflect.getMetadata(\"design:paramtypes\",e,t),n=r[0],o=r[1];if(!i.AbstractBaseAction.isPrototypeOf(o))throw new Error(\"Second argument of a method decorated with @ReducerMethod must be a subtype of AbstractBaseAction but was \"+o);var a=Reflect.getMetadata(\"design:returntype\",e,t);if(n!==a)throw new Error(\"Return type of a method decorated with @ReducerMethod must match first parameter type but was \"+a);var u=Reflect.getOwnMetadata(c,e)||[];u=u.concat([new s(o,t)]),Reflect.defineMetadata(c,u,e)}}},\"./src/main/typescript/store/abstract-root-store-value.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function AbstractRootStoreValue(){return null!==e&&e.apply(this,arguments)||this}return o(AbstractRootStoreValue,e),AbstractRootStoreValue}(r(\"./src/main/typescript/store/abstract-store.value.ts\").AbstractStoreValue);t.AbstractRootStoreValue=i},\"./src/main/typescript/store/abstract-store-service.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),r(\"rxjs/Rx\");var n=r(\"./src/main/typescript/store/abstract-base.action.ts\");r(\"reflect-metadata\");var o=r(\"./src/main/typescript/call/actions/load-call.action.ts\"),i=Symbol(\"shop/infrastructure/OnActionRegistration\"),a=function(){return function OnActionMethodRegistration(e,t){this.actionType=e,this.handler=t}}(),c=function(){function AbstractStoreService(e,t){var r=this;this.store=e,this.actions=t,(Reflect.getOwnMetadata(i,Reflect.getPrototypeOf(this))||[]).forEach(function(e){t.filter(function(t){return t instanceof e.actionType}).subscribe(function(t){return e.handler.call(r,t)})}),this.select(function(e){return e}).subscribe(function(e){r.currentState=e})}return AbstractStoreService.prototype.dispatch=function(e){this.store.dispatch(e)},AbstractStoreService.prototype.call=function(e,t){void 0===t&&(t=null),this.store.dispatch(new o.LoadCallAction(e,\"unchecked\",t))},AbstractStoreService.prototype.callWithPayload=function(e,t,r){void 0===r&&(r=null),this.store.dispatch(new o.LoadCallAction(e,t,r))},AbstractStoreService.prototype.callWithoutPayload=function(e,t){void 0===t&&(t=null),this.store.dispatch(new o.LoadCallAction(e,\"void\",t))},AbstractStoreService.prototype.select=function(e){return this.store.select(e)},AbstractStoreService.prototype.actionsOfType=function(e){return this.actions.filter(e.instanceFilter()).map(function(e){return e})},AbstractStoreService}();t.AbstractStoreService=c,t.OnAction=function OnAction(){return function(e,t,r){if(!(e instanceof c))throw new Error(\"@OnAction can only be applied to method that are defined in subtypes of StoreService\");var o=Reflect.getMetadata(\"design:paramtypes\",e,t),s=o[0];if(!n.AbstractBaseAction.isPrototypeOf(s))throw new Error(\"Second argument of a method decorated with @OnAction must be a subtype of AbstractBaseAction but was \"+o[1]);var p=Reflect.getOwnMetadata(i,e)||[];p=p.concat([new a(s,r.value)]),Reflect.defineMetadata(i,p,e)}}},\"./src/main/typescript/store/abstract-store.value.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function AbstractStoreValue(){return null!==e&&e.apply(this,arguments)||this}return o(AbstractStoreValue,e),AbstractStoreValue}(r(\"@shop/js-infrastructure-generic-datatypes\").AbstractImmutableData);t.AbstractStoreValue=i},\"./src/main/typescript/store/abstract.reducer.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=r(\"./src/main/typescript/store/reducer.interface.ts\"),o=function(){function AbstractReducer(){}return AbstractReducer.provider=function(){return[this,{provide:n.IReducer,useExisting:this,multi:!0}]},AbstractReducer}();t.AbstractReducer=o},\"./src/main/typescript/store/chain-reducer.interface.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){return function IChainReducer(){}}();t.IChainReducer=n},\"./src/main/typescript/store/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/store/abstract-base.action.ts\")),__export(r(\"./src/main/typescript/store/abstract-chain-reducer.ts\")),__export(r(\"./src/main/typescript/store/abstract-method-reducer.ts\")),__export(r(\"./src/main/typescript/store/abstract.reducer.ts\")),__export(r(\"./src/main/typescript/store/abstract-root-store-value.ts\")),__export(r(\"./src/main/typescript/store/abstract-store-service.ts\")),__export(r(\"./src/main/typescript/store/abstract-store.value.ts\")),__export(r(\"./src/main/typescript/store/chain-reducer.interface.ts\")),__export(r(\"./src/main/typescript/store/reducer.interface.ts\")),__export(r(\"./src/main/typescript/store/property-chain.reducer.ts\")),__export(r(\"./src/main/typescript/store/reduce-fn.type.ts\")),__export(r(\"./src/main/typescript/store/root.reducer.ts\"))},\"./src/main/typescript/store/property-chain.reducer.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function PropertyChainReducer(t,r){var n=e.call(this)||this;return n.propertyName=t,n.initialPropertyValue=r,n}return o(PropertyChainReducer,e),PropertyChainReducer.prototype.reduce=function(e,t,r){var n,o=e[this.propertyName]||this.initialPropertyValue;return Object.assign.apply(Object,[{}].concat(e,[(n={},n[this.propertyName]=r(o,t),n)]))},PropertyChainReducer}(r(\"./src/main/typescript/store/abstract-chain-reducer.ts\").AbstractChainReducer);t.PropertyChainReducer=i},\"./src/main/typescript/store/reduce-fn.type.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){return function ReduceFnDummyClass(){}}();t.ReduceFnDummyClass=n},\"./src/main/typescript/store/reducer.interface.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0});var n=function(){return function IReducer(){}}();t.IReducer=n},\"./src/main/typescript/store/root.reducer.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,\"__esModule\",{value:!0});var a=r(\"@angular/core\"),c=r(\"@ngrx/store\"),s=r(\"lodash\"),p=r(\"./src/main/typescript/store/chain-reducer.interface.ts\"),u=r(\"./src/main/typescript/store/reducer.interface.ts\"),l=function(){function RootReducer(e,t){this.chainReducers=e,this.reducers=t,this.chainReducers=this.chainReducers||[],this.reducers=this.reducers||[],this.buildChain()}var e;return e=RootReducer,RootReducer.providerForRoot=function(){return[e,{provide:a.APP_INITIALIZER,useFactory:function(e,t){return t.replaceReducer(e.createReduceFn()),function(){}},deps:[e,c.Store],multi:!0}]},RootReducer.providerForChild=function(t,r,n){return[{provide:t,useFactory:function(t,r){return new e(r||[],t||[])},deps:[r,n],multi:!0}]},RootReducer.prototype.buildChain=function(){var e=this,t={reduce:function(t,r,n){return e.reducers.reduce(function(e,t){return t.reduce(e,r)},t)}};this.chain=this.chainReducers.concat([t])},RootReducer.prototype.createReduceFn=function(){var e=this;return function(t,r){return e.reduce(t,r)}},RootReducer.prototype.callChain=function(e,t,r){var n=this;return 0===e.length?t:e[0].reduce(t,r,function(t,r){return n.callChain(s.drop(e,1),t,r)})},RootReducer.prototype.reduce=function(e,t){return this.callChain(this.chain,e,t)},RootReducer.prototype.addReducer=function(e){this.reducers.push(e),this.buildChain()},RootReducer=e=n([a.Injectable(),i(0,a.Optional()),i(0,a.Inject(p.IChainReducer)),i(1,a.Optional()),i(1,a.Inject(u.IReducer)),o(\"design:paramtypes\",[Array,Array])],RootReducer)}();t.RootReducer=l},\"./src/main/typescript/tracking/actions/tracking.action.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function TrackingAction(t){var r=e.call(this)||this;return r.call=t,r}return o(TrackingAction,e),TrackingAction}(r(\"./src/main/typescript/base/abstract-infrastructure-action.ts\").AbstractInfrastructureAction);t.TrackingAction=i},\"./src/main/typescript/tracking/actions/write-tracking-to-data-layer.action.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)});Object.defineProperty(t,\"__esModule\",{value:!0});var i=function(e){function WriteTrackingToDataLayerAction(t){var r=e.call(this)||this;return r.trackingInfo=t,r}return o(WriteTrackingToDataLayerAction,e),WriteTrackingToDataLayerAction}(r(\"./src/main/typescript/base/abstract-infrastructure-action.ts\").AbstractInfrastructureAction);t.WriteTrackingToDataLayerAction=i},\"./src/main/typescript/tracking/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/tracking/actions/tracking.action.ts\")),__export(r(\"./src/main/typescript/tracking/tracking.service.ts\"))},\"./src/main/typescript/tracking/tracking.service.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)},i=this&&this.__param||function(e,t){return function(r,n){t(r,n,e)}};Object.defineProperty(t,\"__esModule\",{value:!0});var a=r(\"@angular/core\"),c=r(\"./src/main/typescript/tracking/actions/tracking.action.ts\"),s=r(\"./src/main/typescript/logging/logger.service.interface.ts\"),p=r(\"@ngrx/store\"),u=r(\"@ngrx/effects\"),l=r(\"./src/main/typescript/call/actions/load-call.action.ts\"),f=r(\"./src/main/typescript/tracking/actions/write-tracking-to-data-layer.action.ts\"),d=r(\"lodash/isNull\"),y=r(\"lodash/isUndefined\"),v=r(\"@shop/js-infrastructure-generic-datatypes\");r(\"rxjs/add/operator/switchMap\");var _=function(){function TrackingService(e,t,r){var n=this;this.dispatcher=t,this.actions=r,this.logger=e.create(\"infrastructure.TrackingService\"),this.actions.switchMap(c.TrackingAction.streamOfThisAction()).subscribe(function(e){return n.track(e.call)}),this.actions.switchMap(f.WriteTrackingToDataLayerAction.streamOfThisAction()).subscribe(function(e){n.writeTrackingToDataLayer(e.trackingInfo)})}var e;return e=TrackingService,TrackingService.provider=function(){return[{provide:e,useClass:e},{provide:a.APP_INITIALIZER,useFactory:function(){return function(){}},multi:!0,deps:[e]}]},TrackingService.prototype.track=function(e){d(e)||y(e)||this.dispatcher.dispatch(new l.LoadCallAction(e,v.TrackingInfo,function(e){return new f.WriteTrackingToDataLayerAction(e)}))},TrackingService.prototype.writeTrackingToDataLayer=function(e){var t=window.tefDataLayer;if(t)try{y(e)||(this.logger.info(\"Logging Event : \",{content:e.rawContent}),t.push(JSON.parse(e.rawContent)))}catch(e){this.logger.error(e)}},TrackingService=e=n([a.Injectable(),i(0,a.Inject(s.ILoggerService)),o(\"design:paramtypes\",[s.ILoggerService,p.Dispatcher,u.Actions])],TrackingService)}();t.TrackingService=_},\"./src/main/typescript/validation/index.ts\":function(e,t,r){\"use strict\";function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}Object.defineProperty(t,\"__esModule\",{value:!0}),__export(r(\"./src/main/typescript/validation/store-validation-chain.reducer.ts\")),__export(r(\"./src/main/typescript/validation/value-validation.service.ts\"))},\"./src/main/typescript/validation/store-validation-chain.reducer.ts\":function(e,t,r){\"use strict\";var n,o=this&&this.__extends||(n=function(e,t){return(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])})(e,t)},function(e,t){function __(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(__.prototype=t.prototype,new __)}),i=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},a=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var c=r(\"./src/main/typescript/validation/value-validation.service.ts\"),s=r(\"@angular/core\"),p=r(\"@ngrx/store\"),u=function(e){function StoreValidationChainReducer(t,r){var n=e.call(this)||this;return n.valueMetaDataService=t,n.dispatcher=r,n}return o(StoreValidationChainReducer,e),StoreValidationChainReducer.prototype.reduce=function(e,t,r){var n=r(e,t);if(null!==n)try{this.valueMetaDataService.validate(n,\"<store-new-value>\")}catch(r){this.logError(\"Store invalid state detected, restoring store state!\",r,n,t);try{return this.valueMetaDataService.validate(e,\"<store-old-value>\"),e}catch(n){return this.logError(\"Restore old state failed, old state is itself invalid, setting state to <null>!\",r,e,t),null}}return n},StoreValidationChainReducer.prototype.logError=function(e,t,r,n){console.error(e,{message:t.message,droppedState:r,causingAction:n})},StoreValidationChainReducer=i([s.Injectable(),a(\"design:paramtypes\",[c.ValueValidationService,p.Dispatcher])],StoreValidationChainReducer)}(r(\"./src/main/typescript/store/abstract-chain-reducer.ts\").AbstractChainReducer);t.StoreValidationChainReducer=u},\"./src/main/typescript/validation/value-validation.service.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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},o=this&&this.__metadata||function(e,t){if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.metadata)return Reflect.metadata(e,t)};Object.defineProperty(t,\"__esModule\",{value:!0});var i=r(\"lodash\"),a=r(\"@angular/core\"),c=r(\"./src/main/typescript/valuemetadata/value-meta-data.service.ts\"),s=r(\"@shop/js-infrastructure-generic-datatypes\");var p=function(){function ValueValidationService(e){this.valueMetaDataService=e}return ValueValidationService.prototype.validate=function(e,t){var r=this;if(void 0===t&&(t=\"\"),!i.isNull(e)){if(i.isUndefined(e))throw new Error(\"Encountered undefined [\"+t+\"]\");var n=this.valueMetaDataService.getMetaData(e.constructor);if(n instanceof s.ValueMetaData)this.validateValue(e,n,t);else if(n instanceof s.EnumMetaData)this.validateEnum(e,n,t);else if(i.isArray(e))e.forEach(function(e,n){r.validate(e,t+\"[\"+n+\"]\")});else if(i.isPlainObject(e))Object.keys(e).forEach(function(n){r.validate(e[n],t+\"[\"+n+\"]\")});else if(i.isObjectLike(e))throw new Error(\"Found a unsupported object of with type: '\"+typeof e+\"' toString: '\"+e+\"' constructor name: '\"+(e.constructor&&e.constructor.name)+\"'. Maybe you forgotten to add a @ValueType decorator on a object with a prototype ...\")}},ValueValidationService.prototype.validateEnum=function(e,t,r){if(!Object.keys(t.type).some(function(r){var n=t.type;return e===n[r]}))throw new Error(\"Enum instance not found on enum of type\"+t.qualifiedName+\" [\"+r+\"]\")},ValueValidationService.prototype.validateValue=function(e,t,r){var n=this;t.properties.forEach(function(o){var i=r+\".\"+o.name,a=e[o.name];if(n.validate(a,i),null==a&&!o.nullable)throw new Error(\"Property \"+o.name+\" of \"+t.name+\" not nullable but was null [\"+i+\"]\");o instanceof s.PropertyMetaData&&n.validateTypedProperty(a,o,t,i),o instanceof s.ArrayPropertyMetaData&&n.validateArrayProperty(a,o,t,i)})},ValueValidationService.prototype.validateTypedProperty=function(e,t,r,n){var o=this;if(!t.elementTypes.some(function(t){return o.isValueOfType(e,t)})){var i=t.elementTypes.map(function(e){return e.name}).join(\",\"),a=\"Property '\"+t.name+\"' of \"+r.name+\" should be one of types \"+i+\" but was of type \"+e.constructor.name+\" [\"+n+\"]\";throw new Error(a)}},ValueValidationService.prototype.isValueOfType=function(e,t){return i.isNull(e)||t===Number&&i.isNumber(e)||t===Boolean&&i.isBoolean(e)||t===String&&i.isString(e)||function assertIsFunction(e){if(!i.isFunction(e))throw new Error(\"expected a function for instanceof check, but got \"+e+\" of type \"+typeof e);return!0}(t)&&e instanceof t},ValueValidationService.prototype.validateArrayProperty=function(e,t,r,n){var o=this;if(!i.isArray(e))throw new Error(\"Property \"+t.name+\" of \"+r.name+\" should be an array but was of type \"+typeof e+\" [\"+n+\"]\");e.forEach(function(e,i){var a;try{a=t.elementTypes.some(function(t){return o.isValueOfType(e,t)})}catch(e){var c=\"Error while determining type of Element with index \"+i+\" of property \"+t.name+\" of \"+r.name+\". \"+e.message+\" [\"+n+\"[\"+i+\"]]\";throw new Error(c)}if(!a){var s=t.elementTypes.map(function(e){return e.name}).join(\",\");c=\"Element with index \"+i+\" of property \"+t.name+\" of \"+r.name+\" should be one of types \"+s+\" but was of type \"+e.constructor.name+\" [\"+n+\"[\"+i+\"]]\";throw new Error(c)}})},ValueValidationService=n([a.Injectable(),o(\"design:paramtypes\",[c.ValueMetaDataService])],ValueValidationService)}();t.ValueValidationService=p},\"./src/main/typescript/valuemetadata/index.ts\":function(e,t,r){\"use strict\";Object.defineProperty(t,\"__esModule\",{value:!0}),function __export(e){for(var r in e)t.hasOwnProperty(r)||(t[r]=e[r])}(r(\"./src/main/typescript/valuemetadata/value-meta-data.service.ts\"))},\"./src/main/typescript/valuemetadata/value-meta-data.service.ts\":function(e,t,r){\"use strict\";var n=this&&this.__decorate||function(e,t,r,n){var o,i=arguments.length,a=i<3?t:null===n?n=Object.getOwnPropertyDescriptor(t,r):n;if(\"object\"==typeof Reflect&&\"function\"==typeof Reflect.decorate)a=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(o=e[c])&&(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};Object.defineProperty(t,\"__esModule\",{value:!0});var o=r(\"@angular/core\");r(\"reflect-metadata\");var i=r(\"@shop/js-infrastructure-generic-datatypes\"),a=function(){function ValueMetaDataService(){}return ValueMetaDataService.prototype.getMetaData=function(e){return i.ValueMetaDataRegistry.getTypeMetaData(e)},ValueMetaDataService.prototype.getMetaDatas=function(){var e=this;return i.ValueMetaDataRegistry.getTypes().map(function(t){return e.getMetaData(t)})},ValueMetaDataService=n([o.Injectable()],ValueMetaDataService)}();t.ValueMetaDataService=a},0:function(e,t,r){e.exports=r(\"./src/main/typescript/index.ts\")},\"@angular/common\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@angular/common/@angular/common.es5.js\")},\"@angular/core\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\")},\"@angular/forms\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@angular/forms/@angular/forms.es5.js\")},\"@angular/http\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@angular/http/@angular/http.es5.js\")},\"@angular/platform-browser\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js\")},\"@ngrx/effects\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@ngrx/effects/index.js\")},\"@ngrx/store\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@ngrx/store/index.js\")},\"@ngrx/store-devtools\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@ngrx/store-devtools/index.js\")},\"@shop/js-infrastructure-generic-datatypes\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\")},\"@shop/js-infrastructure-generic-datatypes/target/dist\":function(e,t){e.exports=__webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\")},lodash:function(e,t){e.exports=__webpack_require__(\"./node_modules/lodash/lodash.js\")},\"lodash/isNull\":function(e,t){e.exports=__webpack_require__(\"./node_modules/lodash/isNull.js\")},\"lodash/isUndefined\":function(e,t){e.exports=__webpack_require__(\"./node_modules/lodash/isUndefined.js\")},\"reflect-metadata\":function(e,t){e.exports=__webpack_require__(\"./node_modules/reflect-metadata/Reflect.js\")},\"rxjs/Observable\":function(e,t){e.exports=__webpack_require__(\"./node_modules/rxjs/Observable.js\")},\"rxjs/Rx\":function(e,t){e.exports=__webpack_require__(\"./node_modules/rxjs/Rx.js\")},\"rxjs/add/observable/empty\":function(e,t){e.exports=__webpack_require__(\"./node_modules/rxjs/add/observable/empty.js\")},\"rxjs/add/observable/from\":function(e,t){e.exports=__webpack_require__(\"./node_modules/rxjs/add/observable/from.js\")},\"rxjs/add/operator/switchMap\":function(e,t){e.exports=__webpack_require__(\"./node_modules/rxjs/add/operator/switchMap.js\")}})});\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/index.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(\"./node_modules/axios/lib/axios.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/adapters/xhr.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\nvar settle = __webpack_require__(\"./node_modules/axios/lib/core/settle.js\");\nvar buildURL = __webpack_require__(\"./node_modules/axios/lib/helpers/buildURL.js\");\nvar parseHeaders = __webpack_require__(\"./node_modules/axios/lib/helpers/parseHeaders.js\");\nvar isURLSameOrigin = __webpack_require__(\"./node_modules/axios/lib/helpers/isURLSameOrigin.js\");\nvar createError = __webpack_require__(\"./node_modules/axios/lib/core/createError.js\");\n\nmodule.exports = function xhrAdapter(config) {\n  return new Promise(function dispatchXhrRequest(resolve, reject) {\n    var requestData = config.data;\n    var requestHeaders = config.headers;\n\n    if (utils.isFormData(requestData)) {\n      delete requestHeaders['Content-Type']; // Let the browser set it\n    }\n\n    var request = new XMLHttpRequest();\n\n    // HTTP basic authentication\n    if (config.auth) {\n      var username = config.auth.username || '';\n      var password = config.auth.password || '';\n      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n    }\n\n    request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);\n\n    // Set the request timeout in MS\n    request.timeout = config.timeout;\n\n    // Listen for ready state\n    request.onreadystatechange = function handleLoad() {\n      if (!request || request.readyState !== 4) {\n        return;\n      }\n\n      // The request errored out and we didn't get a response, this will be\n      // handled by onerror instead\n      // With one exception: request that using file: protocol, most browsers\n      // will return status as 0 even though it's a successful request\n      if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n        return;\n      }\n\n      // Prepare the response\n      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n      var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n      var response = {\n        data: responseData,\n        status: request.status,\n        statusText: request.statusText,\n        headers: responseHeaders,\n        config: config,\n        request: request\n      };\n\n      settle(resolve, reject, response);\n\n      // Clean up request\n      request = null;\n    };\n\n    // Handle low level network errors\n    request.onerror = function handleError() {\n      // Real errors are hidden from us by the browser\n      // onerror should only fire if it's a network error\n      reject(createError('Network Error', config, null, request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Handle timeout\n    request.ontimeout = function handleTimeout() {\n      reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',\n        request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Add xsrf header\n    // This is only done if running in a standard browser environment.\n    // Specifically not if we're in a web worker, or react-native.\n    if (utils.isStandardBrowserEnv()) {\n      var cookies = __webpack_require__(\"./node_modules/axios/lib/helpers/cookies.js\");\n\n      // Add xsrf header\n      var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?\n          cookies.read(config.xsrfCookieName) :\n          undefined;\n\n      if (xsrfValue) {\n        requestHeaders[config.xsrfHeaderName] = xsrfValue;\n      }\n    }\n\n    // Add headers to the request\n    if ('setRequestHeader' in request) {\n      utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n          // Remove Content-Type if data is undefined\n          delete requestHeaders[key];\n        } else {\n          // Otherwise add header to the request\n          request.setRequestHeader(key, val);\n        }\n      });\n    }\n\n    // Add withCredentials to request if needed\n    if (config.withCredentials) {\n      request.withCredentials = true;\n    }\n\n    // Add responseType to request if needed\n    if (config.responseType) {\n      try {\n        request.responseType = config.responseType;\n      } catch (e) {\n        // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n        // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n        if (config.responseType !== 'json') {\n          throw e;\n        }\n      }\n    }\n\n    // Handle progress if needed\n    if (typeof config.onDownloadProgress === 'function') {\n      request.addEventListener('progress', config.onDownloadProgress);\n    }\n\n    // Not all browsers support upload events\n    if (typeof config.onUploadProgress === 'function' && request.upload) {\n      request.upload.addEventListener('progress', config.onUploadProgress);\n    }\n\n    if (config.cancelToken) {\n      // Handle cancellation\n      config.cancelToken.promise.then(function onCanceled(cancel) {\n        if (!request) {\n          return;\n        }\n\n        request.abort();\n        reject(cancel);\n        // Clean up request\n        request = null;\n      });\n    }\n\n    if (requestData === undefined) {\n      requestData = null;\n    }\n\n    // Send the request\n    request.send(requestData);\n  });\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/axios.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\nvar bind = __webpack_require__(\"./node_modules/axios/lib/helpers/bind.js\");\nvar Axios = __webpack_require__(\"./node_modules/axios/lib/core/Axios.js\");\nvar defaults = __webpack_require__(\"./node_modules/axios/lib/defaults.js\");\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n  var context = new Axios(defaultConfig);\n  var instance = bind(Axios.prototype.request, context);\n\n  // Copy axios.prototype to instance\n  utils.extend(instance, Axios.prototype, context);\n\n  // Copy context to instance\n  utils.extend(instance, context);\n\n  return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n  return createInstance(utils.merge(defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = __webpack_require__(\"./node_modules/axios/lib/cancel/Cancel.js\");\naxios.CancelToken = __webpack_require__(\"./node_modules/axios/lib/cancel/CancelToken.js\");\naxios.isCancel = __webpack_require__(\"./node_modules/axios/lib/cancel/isCancel.js\");\n\n// Expose all/spread\naxios.all = function all(promises) {\n  return Promise.all(promises);\n};\naxios.spread = __webpack_require__(\"./node_modules/axios/lib/helpers/spread.js\");\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/cancel/Cancel.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n  this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n  return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/cancel/CancelToken.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar Cancel = __webpack_require__(\"./node_modules/axios/lib/cancel/Cancel.js\");\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n  if (typeof executor !== 'function') {\n    throw new TypeError('executor must be a function.');\n  }\n\n  var resolvePromise;\n  this.promise = new Promise(function promiseExecutor(resolve) {\n    resolvePromise = resolve;\n  });\n\n  var token = this;\n  executor(function cancel(message) {\n    if (token.reason) {\n      // Cancellation has already been requested\n      return;\n    }\n\n    token.reason = new Cancel(message);\n    resolvePromise(token.reason);\n  });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n  if (this.reason) {\n    throw this.reason;\n  }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n  var cancel;\n  var token = new CancelToken(function executor(c) {\n    cancel = c;\n  });\n  return {\n    token: token,\n    cancel: cancel\n  };\n};\n\nmodule.exports = CancelToken;\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/cancel/isCancel.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nmodule.exports = function isCancel(value) {\n  return !!(value && value.__CANCEL__);\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/core/Axios.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar defaults = __webpack_require__(\"./node_modules/axios/lib/defaults.js\");\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\nvar InterceptorManager = __webpack_require__(\"./node_modules/axios/lib/core/InterceptorManager.js\");\nvar dispatchRequest = __webpack_require__(\"./node_modules/axios/lib/core/dispatchRequest.js\");\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n  this.defaults = instanceConfig;\n  this.interceptors = {\n    request: new InterceptorManager(),\n    response: new InterceptorManager()\n  };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n  /*eslint no-param-reassign:0*/\n  // Allow for axios('example/url'[, config]) a la fetch API\n  if (typeof config === 'string') {\n    config = utils.merge({\n      url: arguments[0]\n    }, arguments[1]);\n  }\n\n  config = utils.merge(defaults, {method: 'get'}, this.defaults, config);\n  config.method = config.method.toLowerCase();\n\n  // Hook up interceptors middleware\n  var chain = [dispatchRequest, undefined];\n  var promise = Promise.resolve(config);\n\n  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n    chain.unshift(interceptor.fulfilled, interceptor.rejected);\n  });\n\n  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n    chain.push(interceptor.fulfilled, interceptor.rejected);\n  });\n\n  while (chain.length) {\n    promise = promise.then(chain.shift(), chain.shift());\n  }\n\n  return promise;\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n  /*eslint func-names:0*/\n  Axios.prototype[method] = function(url, config) {\n    return this.request(utils.merge(config || {}, {\n      method: method,\n      url: url\n    }));\n  };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n  /*eslint func-names:0*/\n  Axios.prototype[method] = function(url, data, config) {\n    return this.request(utils.merge(config || {}, {\n      method: method,\n      url: url,\n      data: data\n    }));\n  };\n});\n\nmodule.exports = Axios;\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/core/InterceptorManager.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\n\nfunction InterceptorManager() {\n  this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n  this.handlers.push({\n    fulfilled: fulfilled,\n    rejected: rejected\n  });\n  return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n  if (this.handlers[id]) {\n    this.handlers[id] = null;\n  }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n  utils.forEach(this.handlers, function forEachHandler(h) {\n    if (h !== null) {\n      fn(h);\n    }\n  });\n};\n\nmodule.exports = InterceptorManager;\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/core/createError.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar enhanceError = __webpack_require__(\"./node_modules/axios/lib/core/enhanceError.js\");\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n  var error = new Error(message);\n  return enhanceError(error, config, code, request, response);\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/core/dispatchRequest.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\nvar transformData = __webpack_require__(\"./node_modules/axios/lib/core/transformData.js\");\nvar isCancel = __webpack_require__(\"./node_modules/axios/lib/cancel/isCancel.js\");\nvar defaults = __webpack_require__(\"./node_modules/axios/lib/defaults.js\");\nvar isAbsoluteURL = __webpack_require__(\"./node_modules/axios/lib/helpers/isAbsoluteURL.js\");\nvar combineURLs = __webpack_require__(\"./node_modules/axios/lib/helpers/combineURLs.js\");\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n  if (config.cancelToken) {\n    config.cancelToken.throwIfRequested();\n  }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n  throwIfCancellationRequested(config);\n\n  // Support baseURL config\n  if (config.baseURL && !isAbsoluteURL(config.url)) {\n    config.url = combineURLs(config.baseURL, config.url);\n  }\n\n  // Ensure headers exist\n  config.headers = config.headers || {};\n\n  // Transform request data\n  config.data = transformData(\n    config.data,\n    config.headers,\n    config.transformRequest\n  );\n\n  // Flatten headers\n  config.headers = utils.merge(\n    config.headers.common || {},\n    config.headers[config.method] || {},\n    config.headers || {}\n  );\n\n  utils.forEach(\n    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n    function cleanHeaderConfig(method) {\n      delete config.headers[method];\n    }\n  );\n\n  var adapter = config.adapter || defaults.adapter;\n\n  return adapter(config).then(function onAdapterResolution(response) {\n    throwIfCancellationRequested(config);\n\n    // Transform response data\n    response.data = transformData(\n      response.data,\n      response.headers,\n      config.transformResponse\n    );\n\n    return response;\n  }, function onAdapterRejection(reason) {\n    if (!isCancel(reason)) {\n      throwIfCancellationRequested(config);\n\n      // Transform response data\n      if (reason && reason.response) {\n        reason.response.data = transformData(\n          reason.response.data,\n          reason.response.headers,\n          config.transformResponse\n        );\n      }\n    }\n\n    return Promise.reject(reason);\n  });\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/core/enhanceError.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n  error.config = config;\n  if (code) {\n    error.code = code;\n  }\n  error.request = request;\n  error.response = response;\n  return error;\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/core/settle.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar createError = __webpack_require__(\"./node_modules/axios/lib/core/createError.js\");\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n  var validateStatus = response.config.validateStatus;\n  // Note: status is not exposed by XDomainRequest\n  if (!response.status || !validateStatus || validateStatus(response.status)) {\n    resolve(response);\n  } else {\n    reject(createError(\n      'Request failed with status code ' + response.status,\n      response.config,\n      null,\n      response.request,\n      response\n    ));\n  }\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/core/transformData.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n  /*eslint no-param-reassign:0*/\n  utils.forEach(fns, function transform(fn) {\n    data = fn(data, headers);\n  });\n\n  return data;\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/defaults.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n/* WEBPACK VAR INJECTION */(function(process) {\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\nvar normalizeHeaderName = __webpack_require__(\"./node_modules/axios/lib/helpers/normalizeHeaderName.js\");\n\nvar DEFAULT_CONTENT_TYPE = {\n  'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n    headers['Content-Type'] = value;\n  }\n}\n\nfunction getDefaultAdapter() {\n  var adapter;\n  if (typeof XMLHttpRequest !== 'undefined') {\n    // For browsers use XHR adapter\n    adapter = __webpack_require__(\"./node_modules/axios/lib/adapters/xhr.js\");\n  } else if (typeof process !== 'undefined') {\n    // For node use HTTP adapter\n    adapter = __webpack_require__(\"./node_modules/axios/lib/adapters/xhr.js\");\n  }\n  return adapter;\n}\n\nvar defaults = {\n  adapter: getDefaultAdapter(),\n\n  transformRequest: [function transformRequest(data, headers) {\n    normalizeHeaderName(headers, 'Content-Type');\n    if (utils.isFormData(data) ||\n      utils.isArrayBuffer(data) ||\n      utils.isBuffer(data) ||\n      utils.isStream(data) ||\n      utils.isFile(data) ||\n      utils.isBlob(data)\n    ) {\n      return data;\n    }\n    if (utils.isArrayBufferView(data)) {\n      return data.buffer;\n    }\n    if (utils.isURLSearchParams(data)) {\n      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n      return data.toString();\n    }\n    if (utils.isObject(data)) {\n      setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n      return JSON.stringify(data);\n    }\n    return data;\n  }],\n\n  transformResponse: [function transformResponse(data) {\n    /*eslint no-param-reassign:0*/\n    if (typeof data === 'string') {\n      try {\n        data = JSON.parse(data);\n      } catch (e) { /* Ignore */ }\n    }\n    return data;\n  }],\n\n  /**\n   * A timeout in milliseconds to abort a request. If set to 0 (default) a\n   * timeout is not created.\n   */\n  timeout: 0,\n\n  xsrfCookieName: 'XSRF-TOKEN',\n  xsrfHeaderName: 'X-XSRF-TOKEN',\n\n  maxContentLength: -1,\n\n  validateStatus: function validateStatus(status) {\n    return status >= 200 && status < 300;\n  }\n};\n\ndefaults.headers = {\n  common: {\n    'Accept': 'application/json, text/plain, */*'\n  }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n  defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./node_modules/process/browser.js\")))\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/helpers/bind.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nmodule.exports = function bind(fn, thisArg) {\n  return function wrap() {\n    var args = new Array(arguments.length);\n    for (var i = 0; i < args.length; i++) {\n      args[i] = arguments[i];\n    }\n    return fn.apply(thisArg, args);\n  };\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/helpers/buildURL.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\n\nfunction encode(val) {\n  return encodeURIComponent(val).\n    replace(/%40/gi, '@').\n    replace(/%3A/gi, ':').\n    replace(/%24/g, '$').\n    replace(/%2C/gi, ',').\n    replace(/%20/g, '+').\n    replace(/%5B/gi, '[').\n    replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n  /*eslint no-param-reassign:0*/\n  if (!params) {\n    return url;\n  }\n\n  var serializedParams;\n  if (paramsSerializer) {\n    serializedParams = paramsSerializer(params);\n  } else if (utils.isURLSearchParams(params)) {\n    serializedParams = params.toString();\n  } else {\n    var parts = [];\n\n    utils.forEach(params, function serialize(val, key) {\n      if (val === null || typeof val === 'undefined') {\n        return;\n      }\n\n      if (utils.isArray(val)) {\n        key = key + '[]';\n      } else {\n        val = [val];\n      }\n\n      utils.forEach(val, function parseValue(v) {\n        if (utils.isDate(v)) {\n          v = v.toISOString();\n        } else if (utils.isObject(v)) {\n          v = JSON.stringify(v);\n        }\n        parts.push(encode(key) + '=' + encode(v));\n      });\n    });\n\n    serializedParams = parts.join('&');\n  }\n\n  if (serializedParams) {\n    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n  }\n\n  return url;\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/helpers/combineURLs.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n  return relativeURL\n    ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n    : baseURL;\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/helpers/cookies.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\n\nmodule.exports = (\n  utils.isStandardBrowserEnv() ?\n\n  // Standard browser envs support document.cookie\n  (function standardBrowserEnv() {\n    return {\n      write: function write(name, value, expires, path, domain, secure) {\n        var cookie = [];\n        cookie.push(name + '=' + encodeURIComponent(value));\n\n        if (utils.isNumber(expires)) {\n          cookie.push('expires=' + new Date(expires).toGMTString());\n        }\n\n        if (utils.isString(path)) {\n          cookie.push('path=' + path);\n        }\n\n        if (utils.isString(domain)) {\n          cookie.push('domain=' + domain);\n        }\n\n        if (secure === true) {\n          cookie.push('secure');\n        }\n\n        document.cookie = cookie.join('; ');\n      },\n\n      read: function read(name) {\n        var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n        return (match ? decodeURIComponent(match[3]) : null);\n      },\n\n      remove: function remove(name) {\n        this.write(name, '', Date.now() - 86400000);\n      }\n    };\n  })() :\n\n  // Non standard browser env (web workers, react-native) lack needed support.\n  (function nonStandardBrowserEnv() {\n    return {\n      write: function write() {},\n      read: function read() { return null; },\n      remove: function remove() {}\n    };\n  })()\n);\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/helpers/isAbsoluteURL.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n  // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n  // by any combination of letters, digits, plus, period, or hyphen.\n  return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/helpers/isURLSameOrigin.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\n\nmodule.exports = (\n  utils.isStandardBrowserEnv() ?\n\n  // Standard browser envs have full support of the APIs needed to test\n  // whether the request URL is of the same origin as current location.\n  (function standardBrowserEnv() {\n    var msie = /(msie|trident)/i.test(navigator.userAgent);\n    var urlParsingNode = document.createElement('a');\n    var originURL;\n\n    /**\n    * Parse a URL to discover it's components\n    *\n    * @param {String} url The URL to be parsed\n    * @returns {Object}\n    */\n    function resolveURL(url) {\n      var href = url;\n\n      if (msie) {\n        // IE needs attribute set twice to normalize properties\n        urlParsingNode.setAttribute('href', href);\n        href = urlParsingNode.href;\n      }\n\n      urlParsingNode.setAttribute('href', href);\n\n      // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n      return {\n        href: urlParsingNode.href,\n        protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n        host: urlParsingNode.host,\n        search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n        hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n        hostname: urlParsingNode.hostname,\n        port: urlParsingNode.port,\n        pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n                  urlParsingNode.pathname :\n                  '/' + urlParsingNode.pathname\n      };\n    }\n\n    originURL = resolveURL(window.location.href);\n\n    /**\n    * Determine if a URL shares the same origin as the current location\n    *\n    * @param {String} requestURL The URL to test\n    * @returns {boolean} True if URL shares the same origin, otherwise false\n    */\n    return function isURLSameOrigin(requestURL) {\n      var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n      return (parsed.protocol === originURL.protocol &&\n            parsed.host === originURL.host);\n    };\n  })() :\n\n  // Non standard browser envs (web workers, react-native) lack needed support.\n  (function nonStandardBrowserEnv() {\n    return function isURLSameOrigin() {\n      return true;\n    };\n  })()\n);\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/helpers/normalizeHeaderName.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n  utils.forEach(headers, function processHeader(value, name) {\n    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n      headers[normalizedName] = value;\n      delete headers[name];\n    }\n  });\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/helpers/parseHeaders.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar utils = __webpack_require__(\"./node_modules/axios/lib/utils.js\");\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n  'age', 'authorization', 'content-length', 'content-type', 'etag',\n  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n  'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n  'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n  var parsed = {};\n  var key;\n  var val;\n  var i;\n\n  if (!headers) { return parsed; }\n\n  utils.forEach(headers.split('\\n'), function parser(line) {\n    i = line.indexOf(':');\n    key = utils.trim(line.substr(0, i)).toLowerCase();\n    val = utils.trim(line.substr(i + 1));\n\n    if (key) {\n      if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n        return;\n      }\n      if (key === 'set-cookie') {\n        parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n      } else {\n        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n      }\n    }\n  });\n\n  return parsed;\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/helpers/spread.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n *  ```js\n *  function f(x, y, z) {}\n *  var args = [1, 2, 3];\n *  f.apply(null, args);\n *  ```\n *\n * With `spread` this example can be re-written.\n *\n *  ```js\n *  spread(function(x, y, z) {})([1, 2, 3]);\n *  ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n  return function wrap(arr) {\n    return callback.apply(null, arr);\n  };\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/axios/lib/utils.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\n\nvar bind = __webpack_require__(\"./node_modules/axios/lib/helpers/bind.js\");\nvar isBuffer = __webpack_require__(\"./node_modules/is-buffer/index.js\");\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n  return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n  return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n  return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n  var result;\n  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n    result = ArrayBuffer.isView(val);\n  } else {\n    result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n  }\n  return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n  return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n  return typeof val === 'number';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n  return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n  return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n  return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n  return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n  return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n  return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n  return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n  return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n  return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n *  typeof window -> undefined\n *  typeof document -> undefined\n *\n * react-native:\n *  navigator.product -> 'ReactNative'\n */\nfunction isStandardBrowserEnv() {\n  if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {\n    return false;\n  }\n  return (\n    typeof window !== 'undefined' &&\n    typeof document !== 'undefined'\n  );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n  // Don't bother if no value provided\n  if (obj === null || typeof obj === 'undefined') {\n    return;\n  }\n\n  // Force an array if not already something iterable\n  if (typeof obj !== 'object') {\n    /*eslint no-param-reassign:0*/\n    obj = [obj];\n  }\n\n  if (isArray(obj)) {\n    // Iterate over array values\n    for (var i = 0, l = obj.length; i < l; i++) {\n      fn.call(null, obj[i], i, obj);\n    }\n  } else {\n    // Iterate over object keys\n    for (var key in obj) {\n      if (Object.prototype.hasOwnProperty.call(obj, key)) {\n        fn.call(null, obj[key], key, obj);\n      }\n    }\n  }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n  var result = {};\n  function assignValue(val, key) {\n    if (typeof result[key] === 'object' && typeof val === 'object') {\n      result[key] = merge(result[key], val);\n    } else {\n      result[key] = val;\n    }\n  }\n\n  for (var i = 0, l = arguments.length; i < l; i++) {\n    forEach(arguments[i], assignValue);\n  }\n  return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n  forEach(b, function assignValue(val, key) {\n    if (thisArg && typeof val === 'function') {\n      a[key] = bind(val, thisArg);\n    } else {\n      a[key] = val;\n    }\n  });\n  return a;\n}\n\nmodule.exports = {\n  isArray: isArray,\n  isArrayBuffer: isArrayBuffer,\n  isBuffer: isBuffer,\n  isFormData: isFormData,\n  isArrayBufferView: isArrayBufferView,\n  isString: isString,\n  isNumber: isNumber,\n  isObject: isObject,\n  isUndefined: isUndefined,\n  isDate: isDate,\n  isFile: isFile,\n  isBlob: isBlob,\n  isFunction: isFunction,\n  isStream: isStream,\n  isURLSearchParams: isURLSearchParams,\n  isStandardBrowserEnv: isStandardBrowserEnv,\n  forEach: forEach,\n  merge: merge,\n  extend: extend,\n  trim: trim\n};\n\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/es7/reflect.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n__webpack_require__(\"./node_modules/core-js/modules/es7.reflect.define-metadata.js\");\n__webpack_require__(\"./node_modules/core-js/modules/es7.reflect.delete-metadata.js\");\n__webpack_require__(\"./node_modules/core-js/modules/es7.reflect.get-metadata.js\");\n__webpack_require__(\"./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js\");\n__webpack_require__(\"./node_modules/core-js/modules/es7.reflect.get-own-metadata.js\");\n__webpack_require__(\"./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js\");\n__webpack_require__(\"./node_modules/core-js/modules/es7.reflect.has-metadata.js\");\n__webpack_require__(\"./node_modules/core-js/modules/es7.reflect.has-own-metadata.js\");\n__webpack_require__(\"./node_modules/core-js/modules/es7.reflect.metadata.js\");\nmodule.exports = __webpack_require__(\"./node_modules/core-js/modules/_core.js\").Reflect;\n\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/_core.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/_core.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/es7.reflect.define-metadata.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.define-metadata.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/es7.reflect.delete-metadata.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.delete-metadata.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/es7.reflect.get-metadata.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.get-metadata.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/es7.reflect.get-own-metadata.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.get-own-metadata.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/es7.reflect.has-metadata.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.has-metadata.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/es7.reflect.has-own-metadata.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.has-own-metadata.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/core-js/modules/es7.reflect.metadata.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.metadata.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/is-buffer/index.js\":\n/***/ (function(module, exports) {\n\n/*!\n * Determine if an object is a Buffer\n *\n * @author   Feross Aboukhadijeh <https://feross.org>\n * @license  MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n  return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n  return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_DataView.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(\"./node_modules/lodash/_getNative.js\"),\n    root = __webpack_require__(\"./node_modules/lodash/_root.js\");\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_Hash.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar hashClear = __webpack_require__(\"./node_modules/lodash/_hashClear.js\"),\n    hashDelete = __webpack_require__(\"./node_modules/lodash/_hashDelete.js\"),\n    hashGet = __webpack_require__(\"./node_modules/lodash/_hashGet.js\"),\n    hashHas = __webpack_require__(\"./node_modules/lodash/_hashHas.js\"),\n    hashSet = __webpack_require__(\"./node_modules/lodash/_hashSet.js\");\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_ListCache.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar listCacheClear = __webpack_require__(\"./node_modules/lodash/_listCacheClear.js\"),\n    listCacheDelete = __webpack_require__(\"./node_modules/lodash/_listCacheDelete.js\"),\n    listCacheGet = __webpack_require__(\"./node_modules/lodash/_listCacheGet.js\"),\n    listCacheHas = __webpack_require__(\"./node_modules/lodash/_listCacheHas.js\"),\n    listCacheSet = __webpack_require__(\"./node_modules/lodash/_listCacheSet.js\");\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_Map.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(\"./node_modules/lodash/_getNative.js\"),\n    root = __webpack_require__(\"./node_modules/lodash/_root.js\");\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_MapCache.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar mapCacheClear = __webpack_require__(\"./node_modules/lodash/_mapCacheClear.js\"),\n    mapCacheDelete = __webpack_require__(\"./node_modules/lodash/_mapCacheDelete.js\"),\n    mapCacheGet = __webpack_require__(\"./node_modules/lodash/_mapCacheGet.js\"),\n    mapCacheHas = __webpack_require__(\"./node_modules/lodash/_mapCacheHas.js\"),\n    mapCacheSet = __webpack_require__(\"./node_modules/lodash/_mapCacheSet.js\");\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_Promise.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(\"./node_modules/lodash/_getNative.js\"),\n    root = __webpack_require__(\"./node_modules/lodash/_root.js\");\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_Set.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(\"./node_modules/lodash/_getNative.js\"),\n    root = __webpack_require__(\"./node_modules/lodash/_root.js\");\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_SetCache.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar MapCache = __webpack_require__(\"./node_modules/lodash/_MapCache.js\"),\n    setCacheAdd = __webpack_require__(\"./node_modules/lodash/_setCacheAdd.js\"),\n    setCacheHas = __webpack_require__(\"./node_modules/lodash/_setCacheHas.js\");\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n  var index = -1,\n      length = values == null ? 0 : values.length;\n\n  this.__data__ = new MapCache;\n  while (++index < length) {\n    this.add(values[index]);\n  }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_Stack.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ListCache = __webpack_require__(\"./node_modules/lodash/_ListCache.js\"),\n    stackClear = __webpack_require__(\"./node_modules/lodash/_stackClear.js\"),\n    stackDelete = __webpack_require__(\"./node_modules/lodash/_stackDelete.js\"),\n    stackGet = __webpack_require__(\"./node_modules/lodash/_stackGet.js\"),\n    stackHas = __webpack_require__(\"./node_modules/lodash/_stackHas.js\"),\n    stackSet = __webpack_require__(\"./node_modules/lodash/_stackSet.js\");\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n  var data = this.__data__ = new ListCache(entries);\n  this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_Symbol.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar root = __webpack_require__(\"./node_modules/lodash/_root.js\");\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_Uint8Array.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar root = __webpack_require__(\"./node_modules/lodash/_root.js\");\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_WeakMap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(\"./node_modules/lodash/_getNative.js\"),\n    root = __webpack_require__(\"./node_modules/lodash/_root.js\");\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_arrayFilter.js\":\n/***/ (function(module, exports) {\n\n/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      resIndex = 0,\n      result = [];\n\n  while (++index < length) {\n    var value = array[index];\n    if (predicate(value, index, array)) {\n      result[resIndex++] = value;\n    }\n  }\n  return result;\n}\n\nmodule.exports = arrayFilter;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_arrayLikeKeys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseTimes = __webpack_require__(\"./node_modules/lodash/_baseTimes.js\"),\n    isArguments = __webpack_require__(\"./node_modules/lodash/isArguments.js\"),\n    isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\"),\n    isBuffer = __webpack_require__(\"./node_modules/lodash/isBuffer.js\"),\n    isIndex = __webpack_require__(\"./node_modules/lodash/_isIndex.js\"),\n    isTypedArray = __webpack_require__(\"./node_modules/lodash/isTypedArray.js\");\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n  var isArr = isArray(value),\n      isArg = !isArr && isArguments(value),\n      isBuff = !isArr && !isArg && isBuffer(value),\n      isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n      skipIndexes = isArr || isArg || isBuff || isType,\n      result = skipIndexes ? baseTimes(value.length, String) : [],\n      length = result.length;\n\n  for (var key in value) {\n    if ((inherited || hasOwnProperty.call(value, key)) &&\n        !(skipIndexes && (\n           // Safari 9 has enumerable `arguments.length` in strict mode.\n           key == 'length' ||\n           // Node.js 0.10 has enumerable non-index properties on buffers.\n           (isBuff && (key == 'offset' || key == 'parent')) ||\n           // PhantomJS 2 has enumerable non-index properties on typed arrays.\n           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n           // Skip index properties.\n           isIndex(key, length)\n        ))) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nmodule.exports = arrayLikeKeys;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_arrayMap.js\":\n/***/ (function(module, exports) {\n\n/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      result = Array(length);\n\n  while (++index < length) {\n    result[index] = iteratee(array[index], index, array);\n  }\n  return result;\n}\n\nmodule.exports = arrayMap;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_arrayPush.js\":\n/***/ (function(module, exports) {\n\n/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n  var index = -1,\n      length = values.length,\n      offset = array.length;\n\n  while (++index < length) {\n    array[offset + index] = values[index];\n  }\n  return array;\n}\n\nmodule.exports = arrayPush;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_arraySome.js\":\n/***/ (function(module, exports) {\n\n/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n *  else `false`.\n */\nfunction arraySome(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    if (predicate(array[index], index, array)) {\n      return true;\n    }\n  }\n  return false;\n}\n\nmodule.exports = arraySome;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_assocIndexOf.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar eq = __webpack_require__(\"./node_modules/lodash/eq.js\");\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n  var length = array.length;\n  while (length--) {\n    if (eq(array[length][0], key)) {\n      return length;\n    }\n  }\n  return -1;\n}\n\nmodule.exports = assocIndexOf;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseEach.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseForOwn = __webpack_require__(\"./node_modules/lodash/_baseForOwn.js\"),\n    createBaseEach = __webpack_require__(\"./node_modules/lodash/_createBaseEach.js\");\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseFindIndex.js\":\n/***/ (function(module, exports) {\n\n/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n  var length = array.length,\n      index = fromIndex + (fromRight ? 1 : -1);\n\n  while ((fromRight ? index-- : ++index < length)) {\n    if (predicate(array[index], index, array)) {\n      return index;\n    }\n  }\n  return -1;\n}\n\nmodule.exports = baseFindIndex;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseFor.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar createBaseFor = __webpack_require__(\"./node_modules/lodash/_createBaseFor.js\");\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseForOwn.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseFor = __webpack_require__(\"./node_modules/lodash/_baseFor.js\"),\n    keys = __webpack_require__(\"./node_modules/lodash/keys.js\");\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n  return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseGet.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar castPath = __webpack_require__(\"./node_modules/lodash/_castPath.js\"),\n    toKey = __webpack_require__(\"./node_modules/lodash/_toKey.js\");\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n  path = castPath(path, object);\n\n  var index = 0,\n      length = path.length;\n\n  while (object != null && index < length) {\n    object = object[toKey(path[index++])];\n  }\n  return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseGetAllKeys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar arrayPush = __webpack_require__(\"./node_modules/lodash/_arrayPush.js\"),\n    isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\");\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n  var result = keysFunc(object);\n  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseGetTag.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Symbol = __webpack_require__(\"./node_modules/lodash/_Symbol.js\"),\n    getRawTag = __webpack_require__(\"./node_modules/lodash/_getRawTag.js\"),\n    objectToString = __webpack_require__(\"./node_modules/lodash/_objectToString.js\");\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n    undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n  if (value == null) {\n    return value === undefined ? undefinedTag : nullTag;\n  }\n  return (symToStringTag && symToStringTag in Object(value))\n    ? getRawTag(value)\n    : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseHasIn.js\":\n/***/ (function(module, exports) {\n\n/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n  return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseIsArguments.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(\"./node_modules/lodash/_baseGetTag.js\"),\n    isObjectLike = __webpack_require__(\"./node_modules/lodash/isObjectLike.js\");\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n  return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseIsEqual.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsEqualDeep = __webpack_require__(\"./node_modules/lodash/_baseIsEqualDeep.js\"),\n    isObjectLike = __webpack_require__(\"./node_modules/lodash/isObjectLike.js\");\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n *  1 - Unordered comparison\n *  2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n  if (value === other) {\n    return true;\n  }\n  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n    return value !== value && other !== other;\n  }\n  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseIsEqualDeep.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Stack = __webpack_require__(\"./node_modules/lodash/_Stack.js\"),\n    equalArrays = __webpack_require__(\"./node_modules/lodash/_equalArrays.js\"),\n    equalByTag = __webpack_require__(\"./node_modules/lodash/_equalByTag.js\"),\n    equalObjects = __webpack_require__(\"./node_modules/lodash/_equalObjects.js\"),\n    getTag = __webpack_require__(\"./node_modules/lodash/_getTag.js\"),\n    isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\"),\n    isBuffer = __webpack_require__(\"./node_modules/lodash/isBuffer.js\"),\n    isTypedArray = __webpack_require__(\"./node_modules/lodash/isTypedArray.js\");\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n  var objIsArr = isArray(object),\n      othIsArr = isArray(other),\n      objTag = objIsArr ? arrayTag : getTag(object),\n      othTag = othIsArr ? arrayTag : getTag(other);\n\n  objTag = objTag == argsTag ? objectTag : objTag;\n  othTag = othTag == argsTag ? objectTag : othTag;\n\n  var objIsObj = objTag == objectTag,\n      othIsObj = othTag == objectTag,\n      isSameTag = objTag == othTag;\n\n  if (isSameTag && isBuffer(object)) {\n    if (!isBuffer(other)) {\n      return false;\n    }\n    objIsArr = true;\n    objIsObj = false;\n  }\n  if (isSameTag && !objIsObj) {\n    stack || (stack = new Stack);\n    return (objIsArr || isTypedArray(object))\n      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n  }\n  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n    if (objIsWrapped || othIsWrapped) {\n      var objUnwrapped = objIsWrapped ? object.value() : object,\n          othUnwrapped = othIsWrapped ? other.value() : other;\n\n      stack || (stack = new Stack);\n      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n    }\n  }\n  if (!isSameTag) {\n    return false;\n  }\n  stack || (stack = new Stack);\n  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseIsMatch.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Stack = __webpack_require__(\"./node_modules/lodash/_Stack.js\"),\n    baseIsEqual = __webpack_require__(\"./node_modules/lodash/_baseIsEqual.js\");\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n  var index = matchData.length,\n      length = index,\n      noCustomizer = !customizer;\n\n  if (object == null) {\n    return !length;\n  }\n  object = Object(object);\n  while (index--) {\n    var data = matchData[index];\n    if ((noCustomizer && data[2])\n          ? data[1] !== object[data[0]]\n          : !(data[0] in object)\n        ) {\n      return false;\n    }\n  }\n  while (++index < length) {\n    data = matchData[index];\n    var key = data[0],\n        objValue = object[key],\n        srcValue = data[1];\n\n    if (noCustomizer && data[2]) {\n      if (objValue === undefined && !(key in object)) {\n        return false;\n      }\n    } else {\n      var stack = new Stack;\n      if (customizer) {\n        var result = customizer(objValue, srcValue, key, object, source, stack);\n      }\n      if (!(result === undefined\n            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n            : result\n          )) {\n        return false;\n      }\n    }\n  }\n  return true;\n}\n\nmodule.exports = baseIsMatch;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseIsNative.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isFunction = __webpack_require__(\"./node_modules/lodash/isFunction.js\"),\n    isMasked = __webpack_require__(\"./node_modules/lodash/_isMasked.js\"),\n    isObject = __webpack_require__(\"./node_modules/lodash/isObject.js\"),\n    toSource = __webpack_require__(\"./node_modules/lodash/_toSource.js\");\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n  .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n *  else `false`.\n */\nfunction baseIsNative(value) {\n  if (!isObject(value) || isMasked(value)) {\n    return false;\n  }\n  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n  return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseIsTypedArray.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(\"./node_modules/lodash/_baseGetTag.js\"),\n    isLength = __webpack_require__(\"./node_modules/lodash/isLength.js\"),\n    isObjectLike = __webpack_require__(\"./node_modules/lodash/isObjectLike.js\");\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    funcTag = '[object Function]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    objectTag = '[object Object]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n  return isObjectLike(value) &&\n    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseIteratee.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseMatches = __webpack_require__(\"./node_modules/lodash/_baseMatches.js\"),\n    baseMatchesProperty = __webpack_require__(\"./node_modules/lodash/_baseMatchesProperty.js\"),\n    identity = __webpack_require__(\"./node_modules/lodash/identity.js\"),\n    isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\"),\n    property = __webpack_require__(\"./node_modules/lodash/property.js\");\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n  if (typeof value == 'function') {\n    return value;\n  }\n  if (value == null) {\n    return identity;\n  }\n  if (typeof value == 'object') {\n    return isArray(value)\n      ? baseMatchesProperty(value[0], value[1])\n      : baseMatches(value);\n  }\n  return property(value);\n}\n\nmodule.exports = baseIteratee;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseKeys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isPrototype = __webpack_require__(\"./node_modules/lodash/_isPrototype.js\"),\n    nativeKeys = __webpack_require__(\"./node_modules/lodash/_nativeKeys.js\");\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n  if (!isPrototype(object)) {\n    return nativeKeys(object);\n  }\n  var result = [];\n  for (var key in Object(object)) {\n    if (hasOwnProperty.call(object, key) && key != 'constructor') {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseKeys;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseMap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseEach = __webpack_require__(\"./node_modules/lodash/_baseEach.js\"),\n    isArrayLike = __webpack_require__(\"./node_modules/lodash/isArrayLike.js\");\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n  var index = -1,\n      result = isArrayLike(collection) ? Array(collection.length) : [];\n\n  baseEach(collection, function(value, key, collection) {\n    result[++index] = iteratee(value, key, collection);\n  });\n  return result;\n}\n\nmodule.exports = baseMap;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseMatches.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsMatch = __webpack_require__(\"./node_modules/lodash/_baseIsMatch.js\"),\n    getMatchData = __webpack_require__(\"./node_modules/lodash/_getMatchData.js\"),\n    matchesStrictComparable = __webpack_require__(\"./node_modules/lodash/_matchesStrictComparable.js\");\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n  var matchData = getMatchData(source);\n  if (matchData.length == 1 && matchData[0][2]) {\n    return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n  }\n  return function(object) {\n    return object === source || baseIsMatch(object, source, matchData);\n  };\n}\n\nmodule.exports = baseMatches;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseMatchesProperty.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsEqual = __webpack_require__(\"./node_modules/lodash/_baseIsEqual.js\"),\n    get = __webpack_require__(\"./node_modules/lodash/get.js\"),\n    hasIn = __webpack_require__(\"./node_modules/lodash/hasIn.js\"),\n    isKey = __webpack_require__(\"./node_modules/lodash/_isKey.js\"),\n    isStrictComparable = __webpack_require__(\"./node_modules/lodash/_isStrictComparable.js\"),\n    matchesStrictComparable = __webpack_require__(\"./node_modules/lodash/_matchesStrictComparable.js\"),\n    toKey = __webpack_require__(\"./node_modules/lodash/_toKey.js\");\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n  if (isKey(path) && isStrictComparable(srcValue)) {\n    return matchesStrictComparable(toKey(path), srcValue);\n  }\n  return function(object) {\n    var objValue = get(object, path);\n    return (objValue === undefined && objValue === srcValue)\n      ? hasIn(object, path)\n      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n  };\n}\n\nmodule.exports = baseMatchesProperty;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseProperty.js\":\n/***/ (function(module, exports) {\n\n/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n  return function(object) {\n    return object == null ? undefined : object[key];\n  };\n}\n\nmodule.exports = baseProperty;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_basePropertyDeep.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGet = __webpack_require__(\"./node_modules/lodash/_baseGet.js\");\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n  return function(object) {\n    return baseGet(object, path);\n  };\n}\n\nmodule.exports = basePropertyDeep;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseTimes.js\":\n/***/ (function(module, exports) {\n\n/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n  var index = -1,\n      result = Array(n);\n\n  while (++index < n) {\n    result[index] = iteratee(index);\n  }\n  return result;\n}\n\nmodule.exports = baseTimes;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseToString.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Symbol = __webpack_require__(\"./node_modules/lodash/_Symbol.js\"),\n    arrayMap = __webpack_require__(\"./node_modules/lodash/_arrayMap.js\"),\n    isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\"),\n    isSymbol = __webpack_require__(\"./node_modules/lodash/isSymbol.js\");\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n  // Exit early for strings to avoid a performance hit in some environments.\n  if (typeof value == 'string') {\n    return value;\n  }\n  if (isArray(value)) {\n    // Recursively convert values (susceptible to call stack limits).\n    return arrayMap(value, baseToString) + '';\n  }\n  if (isSymbol(value)) {\n    return symbolToString ? symbolToString.call(value) : '';\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_baseUnary.js\":\n/***/ (function(module, exports) {\n\n/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n  return function(value) {\n    return func(value);\n  };\n}\n\nmodule.exports = baseUnary;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_cacheHas.js\":\n/***/ (function(module, exports) {\n\n/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n  return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_castPath.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\"),\n    isKey = __webpack_require__(\"./node_modules/lodash/_isKey.js\"),\n    stringToPath = __webpack_require__(\"./node_modules/lodash/_stringToPath.js\"),\n    toString = __webpack_require__(\"./node_modules/lodash/toString.js\");\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n  if (isArray(value)) {\n    return value;\n  }\n  return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_coreJsData.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar root = __webpack_require__(\"./node_modules/lodash/_root.js\");\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_createBaseEach.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isArrayLike = __webpack_require__(\"./node_modules/lodash/isArrayLike.js\");\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n  return function(collection, iteratee) {\n    if (collection == null) {\n      return collection;\n    }\n    if (!isArrayLike(collection)) {\n      return eachFunc(collection, iteratee);\n    }\n    var length = collection.length,\n        index = fromRight ? length : -1,\n        iterable = Object(collection);\n\n    while ((fromRight ? index-- : ++index < length)) {\n      if (iteratee(iterable[index], index, iterable) === false) {\n        break;\n      }\n    }\n    return collection;\n  };\n}\n\nmodule.exports = createBaseEach;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_createBaseFor.js\":\n/***/ (function(module, exports) {\n\n/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n  return function(object, iteratee, keysFunc) {\n    var index = -1,\n        iterable = Object(object),\n        props = keysFunc(object),\n        length = props.length;\n\n    while (length--) {\n      var key = props[fromRight ? length : ++index];\n      if (iteratee(iterable[key], key, iterable) === false) {\n        break;\n      }\n    }\n    return object;\n  };\n}\n\nmodule.exports = createBaseFor;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_createFind.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIteratee = __webpack_require__(\"./node_modules/lodash/_baseIteratee.js\"),\n    isArrayLike = __webpack_require__(\"./node_modules/lodash/isArrayLike.js\"),\n    keys = __webpack_require__(\"./node_modules/lodash/keys.js\");\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n  return function(collection, predicate, fromIndex) {\n    var iterable = Object(collection);\n    if (!isArrayLike(collection)) {\n      var iteratee = baseIteratee(predicate, 3);\n      collection = keys(collection);\n      predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n    }\n    var index = findIndexFunc(collection, predicate, fromIndex);\n    return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n  };\n}\n\nmodule.exports = createFind;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_equalArrays.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar SetCache = __webpack_require__(\"./node_modules/lodash/_SetCache.js\"),\n    arraySome = __webpack_require__(\"./node_modules/lodash/_arraySome.js\"),\n    cacheHas = __webpack_require__(\"./node_modules/lodash/_cacheHas.js\");\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      arrLength = array.length,\n      othLength = other.length;\n\n  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n    return false;\n  }\n  // Check that cyclic values are equal.\n  var arrStacked = stack.get(array);\n  var othStacked = stack.get(other);\n  if (arrStacked && othStacked) {\n    return arrStacked == other && othStacked == array;\n  }\n  var index = -1,\n      result = true,\n      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n  stack.set(array, other);\n  stack.set(other, array);\n\n  // Ignore non-index properties.\n  while (++index < arrLength) {\n    var arrValue = array[index],\n        othValue = other[index];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, arrValue, index, other, array, stack)\n        : customizer(arrValue, othValue, index, array, other, stack);\n    }\n    if (compared !== undefined) {\n      if (compared) {\n        continue;\n      }\n      result = false;\n      break;\n    }\n    // Recursively compare arrays (susceptible to call stack limits).\n    if (seen) {\n      if (!arraySome(other, function(othValue, othIndex) {\n            if (!cacheHas(seen, othIndex) &&\n                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n              return seen.push(othIndex);\n            }\n          })) {\n        result = false;\n        break;\n      }\n    } else if (!(\n          arrValue === othValue ||\n            equalFunc(arrValue, othValue, bitmask, customizer, stack)\n        )) {\n      result = false;\n      break;\n    }\n  }\n  stack['delete'](array);\n  stack['delete'](other);\n  return result;\n}\n\nmodule.exports = equalArrays;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_equalByTag.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Symbol = __webpack_require__(\"./node_modules/lodash/_Symbol.js\"),\n    Uint8Array = __webpack_require__(\"./node_modules/lodash/_Uint8Array.js\"),\n    eq = __webpack_require__(\"./node_modules/lodash/eq.js\"),\n    equalArrays = __webpack_require__(\"./node_modules/lodash/_equalArrays.js\"),\n    mapToArray = __webpack_require__(\"./node_modules/lodash/_mapToArray.js\"),\n    setToArray = __webpack_require__(\"./node_modules/lodash/_setToArray.js\");\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n  switch (tag) {\n    case dataViewTag:\n      if ((object.byteLength != other.byteLength) ||\n          (object.byteOffset != other.byteOffset)) {\n        return false;\n      }\n      object = object.buffer;\n      other = other.buffer;\n\n    case arrayBufferTag:\n      if ((object.byteLength != other.byteLength) ||\n          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n        return false;\n      }\n      return true;\n\n    case boolTag:\n    case dateTag:\n    case numberTag:\n      // Coerce booleans to `1` or `0` and dates to milliseconds.\n      // Invalid dates are coerced to `NaN`.\n      return eq(+object, +other);\n\n    case errorTag:\n      return object.name == other.name && object.message == other.message;\n\n    case regexpTag:\n    case stringTag:\n      // Coerce regexes to strings and treat strings, primitives and objects,\n      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n      // for more details.\n      return object == (other + '');\n\n    case mapTag:\n      var convert = mapToArray;\n\n    case setTag:\n      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n      convert || (convert = setToArray);\n\n      if (object.size != other.size && !isPartial) {\n        return false;\n      }\n      // Assume cyclic values are equal.\n      var stacked = stack.get(object);\n      if (stacked) {\n        return stacked == other;\n      }\n      bitmask |= COMPARE_UNORDERED_FLAG;\n\n      // Recursively compare objects (susceptible to call stack limits).\n      stack.set(object, other);\n      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n      stack['delete'](object);\n      return result;\n\n    case symbolTag:\n      if (symbolValueOf) {\n        return symbolValueOf.call(object) == symbolValueOf.call(other);\n      }\n  }\n  return false;\n}\n\nmodule.exports = equalByTag;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_equalObjects.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getAllKeys = __webpack_require__(\"./node_modules/lodash/_getAllKeys.js\");\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      objProps = getAllKeys(object),\n      objLength = objProps.length,\n      othProps = getAllKeys(other),\n      othLength = othProps.length;\n\n  if (objLength != othLength && !isPartial) {\n    return false;\n  }\n  var index = objLength;\n  while (index--) {\n    var key = objProps[index];\n    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n      return false;\n    }\n  }\n  // Check that cyclic values are equal.\n  var objStacked = stack.get(object);\n  var othStacked = stack.get(other);\n  if (objStacked && othStacked) {\n    return objStacked == other && othStacked == object;\n  }\n  var result = true;\n  stack.set(object, other);\n  stack.set(other, object);\n\n  var skipCtor = isPartial;\n  while (++index < objLength) {\n    key = objProps[index];\n    var objValue = object[key],\n        othValue = other[key];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, objValue, key, other, object, stack)\n        : customizer(objValue, othValue, key, object, other, stack);\n    }\n    // Recursively compare objects (susceptible to call stack limits).\n    if (!(compared === undefined\n          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n          : compared\n        )) {\n      result = false;\n      break;\n    }\n    skipCtor || (skipCtor = key == 'constructor');\n  }\n  if (result && !skipCtor) {\n    var objCtor = object.constructor,\n        othCtor = other.constructor;\n\n    // Non `Object` object instances with different constructors are not equal.\n    if (objCtor != othCtor &&\n        ('constructor' in object && 'constructor' in other) &&\n        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n          typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n      result = false;\n    }\n  }\n  stack['delete'](object);\n  stack['delete'](other);\n  return result;\n}\n\nmodule.exports = equalObjects;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_freeGlobal.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(global) {/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./node_modules/webpack/buildin/global.js\")))\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_getAllKeys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetAllKeys = __webpack_require__(\"./node_modules/lodash/_baseGetAllKeys.js\"),\n    getSymbols = __webpack_require__(\"./node_modules/lodash/_getSymbols.js\"),\n    keys = __webpack_require__(\"./node_modules/lodash/keys.js\");\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n  return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_getMapData.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isKeyable = __webpack_require__(\"./node_modules/lodash/_isKeyable.js\");\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n  var data = map.__data__;\n  return isKeyable(key)\n    ? data[typeof key == 'string' ? 'string' : 'hash']\n    : data.map;\n}\n\nmodule.exports = getMapData;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_getMatchData.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isStrictComparable = __webpack_require__(\"./node_modules/lodash/_isStrictComparable.js\"),\n    keys = __webpack_require__(\"./node_modules/lodash/keys.js\");\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n  var result = keys(object),\n      length = result.length;\n\n  while (length--) {\n    var key = result[length],\n        value = object[key];\n\n    result[length] = [key, value, isStrictComparable(value)];\n  }\n  return result;\n}\n\nmodule.exports = getMatchData;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_getNative.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsNative = __webpack_require__(\"./node_modules/lodash/_baseIsNative.js\"),\n    getValue = __webpack_require__(\"./node_modules/lodash/_getValue.js\");\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n  var value = getValue(object, key);\n  return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_getPrototype.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar overArg = __webpack_require__(\"./node_modules/lodash/_overArg.js\");\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_getRawTag.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Symbol = __webpack_require__(\"./node_modules/lodash/_Symbol.js\");\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n  var isOwn = hasOwnProperty.call(value, symToStringTag),\n      tag = value[symToStringTag];\n\n  try {\n    value[symToStringTag] = undefined;\n    var unmasked = true;\n  } catch (e) {}\n\n  var result = nativeObjectToString.call(value);\n  if (unmasked) {\n    if (isOwn) {\n      value[symToStringTag] = tag;\n    } else {\n      delete value[symToStringTag];\n    }\n  }\n  return result;\n}\n\nmodule.exports = getRawTag;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_getSymbols.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar arrayFilter = __webpack_require__(\"./node_modules/lodash/_arrayFilter.js\"),\n    stubArray = __webpack_require__(\"./node_modules/lodash/stubArray.js\");\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n  if (object == null) {\n    return [];\n  }\n  object = Object(object);\n  return arrayFilter(nativeGetSymbols(object), function(symbol) {\n    return propertyIsEnumerable.call(object, symbol);\n  });\n};\n\nmodule.exports = getSymbols;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_getTag.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar DataView = __webpack_require__(\"./node_modules/lodash/_DataView.js\"),\n    Map = __webpack_require__(\"./node_modules/lodash/_Map.js\"),\n    Promise = __webpack_require__(\"./node_modules/lodash/_Promise.js\"),\n    Set = __webpack_require__(\"./node_modules/lodash/_Set.js\"),\n    WeakMap = __webpack_require__(\"./node_modules/lodash/_WeakMap.js\"),\n    baseGetTag = __webpack_require__(\"./node_modules/lodash/_baseGetTag.js\"),\n    toSource = __webpack_require__(\"./node_modules/lodash/_toSource.js\");\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n    objectTag = '[object Object]',\n    promiseTag = '[object Promise]',\n    setTag = '[object Set]',\n    weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n    mapCtorString = toSource(Map),\n    promiseCtorString = toSource(Promise),\n    setCtorString = toSource(Set),\n    weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n    (Map && getTag(new Map) != mapTag) ||\n    (Promise && getTag(Promise.resolve()) != promiseTag) ||\n    (Set && getTag(new Set) != setTag) ||\n    (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n  getTag = function(value) {\n    var result = baseGetTag(value),\n        Ctor = result == objectTag ? value.constructor : undefined,\n        ctorString = Ctor ? toSource(Ctor) : '';\n\n    if (ctorString) {\n      switch (ctorString) {\n        case dataViewCtorString: return dataViewTag;\n        case mapCtorString: return mapTag;\n        case promiseCtorString: return promiseTag;\n        case setCtorString: return setTag;\n        case weakMapCtorString: return weakMapTag;\n      }\n    }\n    return result;\n  };\n}\n\nmodule.exports = getTag;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_getValue.js\":\n/***/ (function(module, exports) {\n\n/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n  return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_hasPath.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar castPath = __webpack_require__(\"./node_modules/lodash/_castPath.js\"),\n    isArguments = __webpack_require__(\"./node_modules/lodash/isArguments.js\"),\n    isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\"),\n    isIndex = __webpack_require__(\"./node_modules/lodash/_isIndex.js\"),\n    isLength = __webpack_require__(\"./node_modules/lodash/isLength.js\"),\n    toKey = __webpack_require__(\"./node_modules/lodash/_toKey.js\");\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n  path = castPath(path, object);\n\n  var index = -1,\n      length = path.length,\n      result = false;\n\n  while (++index < length) {\n    var key = toKey(path[index]);\n    if (!(result = object != null && hasFunc(object, key))) {\n      break;\n    }\n    object = object[key];\n  }\n  if (result || ++index != length) {\n    return result;\n  }\n  length = object == null ? 0 : object.length;\n  return !!length && isLength(length) && isIndex(key, length) &&\n    (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_hashClear.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar nativeCreate = __webpack_require__(\"./node_modules/lodash/_nativeCreate.js\");\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n  this.__data__ = nativeCreate ? nativeCreate(null) : {};\n  this.size = 0;\n}\n\nmodule.exports = hashClear;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_hashDelete.js\":\n/***/ (function(module, exports) {\n\n/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n  var result = this.has(key) && delete this.__data__[key];\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\nmodule.exports = hashDelete;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_hashGet.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar nativeCreate = __webpack_require__(\"./node_modules/lodash/_nativeCreate.js\");\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n  var data = this.__data__;\n  if (nativeCreate) {\n    var result = data[key];\n    return result === HASH_UNDEFINED ? undefined : result;\n  }\n  return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_hashHas.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar nativeCreate = __webpack_require__(\"./node_modules/lodash/_nativeCreate.js\");\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n  var data = this.__data__;\n  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_hashSet.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar nativeCreate = __webpack_require__(\"./node_modules/lodash/_nativeCreate.js\");\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n  var data = this.__data__;\n  this.size += this.has(key) ? 0 : 1;\n  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n  return this;\n}\n\nmodule.exports = hashSet;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_isIndex.js\":\n/***/ (function(module, exports) {\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n  var type = typeof value;\n  length = length == null ? MAX_SAFE_INTEGER : length;\n\n  return !!length &&\n    (type == 'number' ||\n      (type != 'symbol' && reIsUint.test(value))) &&\n        (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_isKey.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\"),\n    isSymbol = __webpack_require__(\"./node_modules/lodash/isSymbol.js\");\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n    reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n  if (isArray(value)) {\n    return false;\n  }\n  var type = typeof value;\n  if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n      value == null || isSymbol(value)) {\n    return true;\n  }\n  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n    (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_isKeyable.js\":\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n  var type = typeof value;\n  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n    ? (value !== '__proto__')\n    : (value === null);\n}\n\nmodule.exports = isKeyable;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_isMasked.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar coreJsData = __webpack_require__(\"./node_modules/lodash/_coreJsData.js\");\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n  return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n  return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_isPrototype.js\":\n/***/ (function(module, exports) {\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n  var Ctor = value && value.constructor,\n      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n  return value === proto;\n}\n\nmodule.exports = isPrototype;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_isStrictComparable.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"./node_modules/lodash/isObject.js\");\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n *  equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n  return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_listCacheClear.js\":\n/***/ (function(module, exports) {\n\n/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n  this.__data__ = [];\n  this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_listCacheDelete.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar assocIndexOf = __webpack_require__(\"./node_modules/lodash/_assocIndexOf.js\");\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    return false;\n  }\n  var lastIndex = data.length - 1;\n  if (index == lastIndex) {\n    data.pop();\n  } else {\n    splice.call(data, index, 1);\n  }\n  --this.size;\n  return true;\n}\n\nmodule.exports = listCacheDelete;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_listCacheGet.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar assocIndexOf = __webpack_require__(\"./node_modules/lodash/_assocIndexOf.js\");\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_listCacheHas.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar assocIndexOf = __webpack_require__(\"./node_modules/lodash/_assocIndexOf.js\");\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n  return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_listCacheSet.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar assocIndexOf = __webpack_require__(\"./node_modules/lodash/_assocIndexOf.js\");\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    ++this.size;\n    data.push([key, value]);\n  } else {\n    data[index][1] = value;\n  }\n  return this;\n}\n\nmodule.exports = listCacheSet;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_mapCacheClear.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar Hash = __webpack_require__(\"./node_modules/lodash/_Hash.js\"),\n    ListCache = __webpack_require__(\"./node_modules/lodash/_ListCache.js\"),\n    Map = __webpack_require__(\"./node_modules/lodash/_Map.js\");\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n  this.size = 0;\n  this.__data__ = {\n    'hash': new Hash,\n    'map': new (Map || ListCache),\n    'string': new Hash\n  };\n}\n\nmodule.exports = mapCacheClear;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_mapCacheDelete.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getMapData = __webpack_require__(\"./node_modules/lodash/_getMapData.js\");\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n  var result = getMapData(this, key)['delete'](key);\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\nmodule.exports = mapCacheDelete;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_mapCacheGet.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getMapData = __webpack_require__(\"./node_modules/lodash/_getMapData.js\");\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n  return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_mapCacheHas.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getMapData = __webpack_require__(\"./node_modules/lodash/_getMapData.js\");\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n  return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_mapCacheSet.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getMapData = __webpack_require__(\"./node_modules/lodash/_getMapData.js\");\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n  var data = getMapData(this, key),\n      size = data.size;\n\n  data.set(key, value);\n  this.size += data.size == size ? 0 : 1;\n  return this;\n}\n\nmodule.exports = mapCacheSet;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_mapToArray.js\":\n/***/ (function(module, exports) {\n\n/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n  var index = -1,\n      result = Array(map.size);\n\n  map.forEach(function(value, key) {\n    result[++index] = [key, value];\n  });\n  return result;\n}\n\nmodule.exports = mapToArray;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_matchesStrictComparable.js\":\n/***/ (function(module, exports) {\n\n/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n  return function(object) {\n    if (object == null) {\n      return false;\n    }\n    return object[key] === srcValue &&\n      (srcValue !== undefined || (key in Object(object)));\n  };\n}\n\nmodule.exports = matchesStrictComparable;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_memoizeCapped.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar memoize = __webpack_require__(\"./node_modules/lodash/memoize.js\");\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n  var result = memoize(func, function(key) {\n    if (cache.size === MAX_MEMOIZE_SIZE) {\n      cache.clear();\n    }\n    return key;\n  });\n\n  var cache = result.cache;\n  return result;\n}\n\nmodule.exports = memoizeCapped;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_nativeCreate.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar getNative = __webpack_require__(\"./node_modules/lodash/_getNative.js\");\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_nativeKeys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar overArg = __webpack_require__(\"./node_modules/lodash/_overArg.js\");\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_nodeUtil.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module) {var freeGlobal = __webpack_require__(\"./node_modules/lodash/_freeGlobal.js\");\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n  try {\n    // Use `util.types` for Node.js 10+.\n    var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n    if (types) {\n      return types;\n    }\n\n    // Legacy `process.binding('util')` for Node.js < 10.\n    return freeProcess && freeProcess.binding && freeProcess.binding('util');\n  } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./node_modules/webpack/buildin/module.js\")(module)))\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_objectToString.js\":\n/***/ (function(module, exports) {\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n  return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_overArg.js\":\n/***/ (function(module, exports) {\n\n/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n  return function(arg) {\n    return func(transform(arg));\n  };\n}\n\nmodule.exports = overArg;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_root.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar freeGlobal = __webpack_require__(\"./node_modules/lodash/_freeGlobal.js\");\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_setCacheAdd.js\":\n/***/ (function(module, exports) {\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n  this.__data__.set(value, HASH_UNDEFINED);\n  return this;\n}\n\nmodule.exports = setCacheAdd;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_setCacheHas.js\":\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n  return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_setToArray.js\":\n/***/ (function(module, exports) {\n\n/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n  var index = -1,\n      result = Array(set.size);\n\n  set.forEach(function(value) {\n    result[++index] = value;\n  });\n  return result;\n}\n\nmodule.exports = setToArray;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_stackClear.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ListCache = __webpack_require__(\"./node_modules/lodash/_ListCache.js\");\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n  this.__data__ = new ListCache;\n  this.size = 0;\n}\n\nmodule.exports = stackClear;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_stackDelete.js\":\n/***/ (function(module, exports) {\n\n/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n  var data = this.__data__,\n      result = data['delete'](key);\n\n  this.size = data.size;\n  return result;\n}\n\nmodule.exports = stackDelete;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_stackGet.js\":\n/***/ (function(module, exports) {\n\n/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n  return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_stackHas.js\":\n/***/ (function(module, exports) {\n\n/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n  return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_stackSet.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar ListCache = __webpack_require__(\"./node_modules/lodash/_ListCache.js\"),\n    Map = __webpack_require__(\"./node_modules/lodash/_Map.js\"),\n    MapCache = __webpack_require__(\"./node_modules/lodash/_MapCache.js\");\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n  var data = this.__data__;\n  if (data instanceof ListCache) {\n    var pairs = data.__data__;\n    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n      pairs.push([key, value]);\n      this.size = ++data.size;\n      return this;\n    }\n    data = this.__data__ = new MapCache(pairs);\n  }\n  data.set(key, value);\n  this.size = data.size;\n  return this;\n}\n\nmodule.exports = stackSet;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_stringToPath.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar memoizeCapped = __webpack_require__(\"./node_modules/lodash/_memoizeCapped.js\");\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n  var result = [];\n  if (string.charCodeAt(0) === 46 /* . */) {\n    result.push('');\n  }\n  string.replace(rePropName, function(match, number, quote, subString) {\n    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n  });\n  return result;\n});\n\nmodule.exports = stringToPath;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_toKey.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isSymbol = __webpack_require__(\"./node_modules/lodash/isSymbol.js\");\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n  if (typeof value == 'string' || isSymbol(value)) {\n    return value;\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/_toSource.js\":\n/***/ (function(module, exports) {\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n  if (func != null) {\n    try {\n      return funcToString.call(func);\n    } catch (e) {}\n    try {\n      return (func + '');\n    } catch (e) {}\n  }\n  return '';\n}\n\nmodule.exports = toSource;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/eq.js\":\n/***/ (function(module, exports) {\n\n/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n  return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/find.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar createFind = __webpack_require__(\"./node_modules/lodash/_createFind.js\"),\n    findIndex = __webpack_require__(\"./node_modules/lodash/findIndex.js\");\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n *   { 'user': 'barney',  'age': 36, 'active': true },\n *   { 'user': 'fred',    'age': 40, 'active': false },\n *   { 'user': 'pebbles', 'age': 1,  'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/findIndex.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseFindIndex = __webpack_require__(\"./node_modules/lodash/_baseFindIndex.js\"),\n    baseIteratee = __webpack_require__(\"./node_modules/lodash/_baseIteratee.js\"),\n    toInteger = __webpack_require__(\"./node_modules/lodash/toInteger.js\");\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n *   { 'user': 'barney',  'active': false },\n *   { 'user': 'fred',    'active': false },\n *   { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n  var length = array == null ? 0 : array.length;\n  if (!length) {\n    return -1;\n  }\n  var index = fromIndex == null ? 0 : toInteger(fromIndex);\n  if (index < 0) {\n    index = nativeMax(length + index, 0);\n  }\n  return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/get.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGet = __webpack_require__(\"./node_modules/lodash/_baseGet.js\");\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n  var result = object == null ? undefined : baseGet(object, path);\n  return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/hasIn.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseHasIn = __webpack_require__(\"./node_modules/lodash/_baseHasIn.js\"),\n    hasPath = __webpack_require__(\"./node_modules/lodash/_hasPath.js\");\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n  return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/identity.js\":\n/***/ (function(module, exports) {\n\n/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n  return value;\n}\n\nmodule.exports = identity;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isArguments.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsArguments = __webpack_require__(\"./node_modules/lodash/_baseIsArguments.js\"),\n    isObjectLike = __webpack_require__(\"./node_modules/lodash/isObjectLike.js\");\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n *  else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n    !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isArray.js\":\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isArrayLike.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isFunction = __webpack_require__(\"./node_modules/lodash/isFunction.js\"),\n    isLength = __webpack_require__(\"./node_modules/lodash/isLength.js\");\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n  return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isBoolean.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(\"./node_modules/lodash/_baseGetTag.js\"),\n    isObjectLike = __webpack_require__(\"./node_modules/lodash/isObjectLike.js\");\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]';\n\n/**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\nfunction isBoolean(value) {\n  return value === true || value === false ||\n    (isObjectLike(value) && baseGetTag(value) == boolTag);\n}\n\nmodule.exports = isBoolean;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isBuffer.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n/* WEBPACK VAR INJECTION */(function(module) {var root = __webpack_require__(\"./node_modules/lodash/_root.js\"),\n    stubFalse = __webpack_require__(\"./node_modules/lodash/stubFalse.js\");\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n\n/* WEBPACK VAR INJECTION */}.call(exports, __webpack_require__(\"./node_modules/webpack/buildin/module.js\")(module)))\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isFunction.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(\"./node_modules/lodash/_baseGetTag.js\"),\n    isObject = __webpack_require__(\"./node_modules/lodash/isObject.js\");\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  if (!isObject(value)) {\n    return false;\n  }\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 9 which returns 'object' for typed arrays and other constructors.\n  var tag = baseGetTag(value);\n  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isLength.js\":\n/***/ (function(module, exports) {\n\n/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n  return typeof value == 'number' &&\n    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isNull.js\":\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\nfunction isNull(value) {\n  return value === null;\n}\n\nmodule.exports = isNull;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isNumber.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(\"./node_modules/lodash/_baseGetTag.js\"),\n    isObjectLike = __webpack_require__(\"./node_modules/lodash/isObjectLike.js\");\n\n/** `Object#toString` result references. */\nvar numberTag = '[object Number]';\n\n/**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\nfunction isNumber(value) {\n  return typeof value == 'number' ||\n    (isObjectLike(value) && baseGetTag(value) == numberTag);\n}\n\nmodule.exports = isNumber;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isObject.js\":\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isObjectLike.js\":\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isPlainObject.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(\"./node_modules/lodash/_baseGetTag.js\"),\n    getPrototype = __webpack_require__(\"./node_modules/lodash/_getPrototype.js\"),\n    isObjectLike = __webpack_require__(\"./node_modules/lodash/isObjectLike.js\");\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n    return false;\n  }\n  var proto = getPrototype(value);\n  if (proto === null) {\n    return true;\n  }\n  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n  return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n    funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isString.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(\"./node_modules/lodash/_baseGetTag.js\"),\n    isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\"),\n    isObjectLike = __webpack_require__(\"./node_modules/lodash/isObjectLike.js\");\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n  return typeof value == 'string' ||\n    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isSymbol.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseGetTag = __webpack_require__(\"./node_modules/lodash/_baseGetTag.js\"),\n    isObjectLike = __webpack_require__(\"./node_modules/lodash/isObjectLike.js\");\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isTypedArray.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseIsTypedArray = __webpack_require__(\"./node_modules/lodash/_baseIsTypedArray.js\"),\n    baseUnary = __webpack_require__(\"./node_modules/lodash/_baseUnary.js\"),\n    nodeUtil = __webpack_require__(\"./node_modules/lodash/_nodeUtil.js\");\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/isUndefined.js\":\n/***/ (function(module, exports) {\n\n/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n  return value === undefined;\n}\n\nmodule.exports = isUndefined;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/keys.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar arrayLikeKeys = __webpack_require__(\"./node_modules/lodash/_arrayLikeKeys.js\"),\n    baseKeys = __webpack_require__(\"./node_modules/lodash/_baseKeys.js\"),\n    isArrayLike = __webpack_require__(\"./node_modules/lodash/isArrayLike.js\");\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/lodash.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/lodash/lodash.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/map.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar arrayMap = __webpack_require__(\"./node_modules/lodash/_arrayMap.js\"),\n    baseIteratee = __webpack_require__(\"./node_modules/lodash/_baseIteratee.js\"),\n    baseMap = __webpack_require__(\"./node_modules/lodash/_baseMap.js\"),\n    isArray = __webpack_require__(\"./node_modules/lodash/isArray.js\");\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n *   return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n *   { 'user': 'barney' },\n *   { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n  var func = isArray(collection) ? arrayMap : baseMap;\n  return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/memoize.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar MapCache = __webpack_require__(\"./node_modules/lodash/_MapCache.js\");\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  var memoized = function() {\n    var args = arguments,\n        key = resolver ? resolver.apply(this, args) : args[0],\n        cache = memoized.cache;\n\n    if (cache.has(key)) {\n      return cache.get(key);\n    }\n    var result = func.apply(this, args);\n    memoized.cache = cache.set(key, result) || cache;\n    return result;\n  };\n  memoized.cache = new (memoize.Cache || MapCache);\n  return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/property.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseProperty = __webpack_require__(\"./node_modules/lodash/_baseProperty.js\"),\n    basePropertyDeep = __webpack_require__(\"./node_modules/lodash/_basePropertyDeep.js\"),\n    isKey = __webpack_require__(\"./node_modules/lodash/_isKey.js\"),\n    toKey = __webpack_require__(\"./node_modules/lodash/_toKey.js\");\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n *   { 'a': { 'b': 2 } },\n *   { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/stubArray.js\":\n/***/ (function(module, exports) {\n\n/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n  return [];\n}\n\nmodule.exports = stubArray;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/stubFalse.js\":\n/***/ (function(module, exports) {\n\n/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n  return false;\n}\n\nmodule.exports = stubFalse;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/toFinite.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toNumber = __webpack_require__(\"./node_modules/lodash/toNumber.js\");\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n    MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n  if (!value) {\n    return value === 0 ? value : 0;\n  }\n  value = toNumber(value);\n  if (value === INFINITY || value === -INFINITY) {\n    var sign = (value < 0 ? -1 : 1);\n    return sign * MAX_INTEGER;\n  }\n  return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/toInteger.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar toFinite = __webpack_require__(\"./node_modules/lodash/toFinite.js\");\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n  var result = toFinite(value),\n      remainder = result % 1;\n\n  return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/toNumber.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar isObject = __webpack_require__(\"./node_modules/lodash/isObject.js\"),\n    isSymbol = __webpack_require__(\"./node_modules/lodash/isSymbol.js\");\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n  if (typeof value == 'number') {\n    return value;\n  }\n  if (isSymbol(value)) {\n    return NAN;\n  }\n  if (isObject(value)) {\n    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n    value = isObject(other) ? (other + '') : other;\n  }\n  if (typeof value != 'string') {\n    return value === 0 ? value : +value;\n  }\n  value = value.replace(reTrim, '');\n  var isBinary = reIsBinary.test(value);\n  return (isBinary || reIsOctal.test(value))\n    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n    : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n\n\n/***/ }),\n\n/***/ \"./node_modules/lodash/toString.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nvar baseToString = __webpack_require__(\"./node_modules/lodash/_baseToString.js\");\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n  return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n\n\n/***/ }),\n\n/***/ \"./node_modules/process/browser.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/process/browser.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/reflect-metadata/Reflect.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/reflect-metadata/Reflect.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/AsyncSubject.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/AsyncSubject.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/BehaviorSubject.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/BehaviorSubject.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/Notification.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Notification.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/Observable.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Observable.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/OuterSubscriber.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/OuterSubscriber.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/ReplaySubject.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/ReplaySubject.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/Rx.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Rx.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/Subject.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Subject.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/Subscriber.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Subscriber.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/Subscription.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Subscription.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/add/observable/empty.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/add/observable/empty.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/add/observable/from.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/add/observable/from.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/add/operator/switchMap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/add/operator/switchMap.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/observable/ArrayObservable.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/ArrayObservable.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/observable/ConnectableObservable.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/ConnectableObservable.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/observable/EmptyObservable.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/EmptyObservable.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/observable/FromObservable.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/FromObservable.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/observable/ScalarObservable.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/ScalarObservable.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/observable/concat.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/concat.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/observable/merge.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/merge.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/observable/race.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/race.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/observable/timer.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/timer.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar audit_1 = __webpack_require__(\"./node_modules/rxjs/operators/audit.js\");\nexports.audit = audit_1.audit;\nvar auditTime_1 = __webpack_require__(\"./node_modules/rxjs/operators/auditTime.js\");\nexports.auditTime = auditTime_1.auditTime;\nvar buffer_1 = __webpack_require__(\"./node_modules/rxjs/operators/buffer.js\");\nexports.buffer = buffer_1.buffer;\nvar bufferCount_1 = __webpack_require__(\"./node_modules/rxjs/operators/bufferCount.js\");\nexports.bufferCount = bufferCount_1.bufferCount;\nvar bufferTime_1 = __webpack_require__(\"./node_modules/rxjs/operators/bufferTime.js\");\nexports.bufferTime = bufferTime_1.bufferTime;\nvar bufferToggle_1 = __webpack_require__(\"./node_modules/rxjs/operators/bufferToggle.js\");\nexports.bufferToggle = bufferToggle_1.bufferToggle;\nvar bufferWhen_1 = __webpack_require__(\"./node_modules/rxjs/operators/bufferWhen.js\");\nexports.bufferWhen = bufferWhen_1.bufferWhen;\nvar catchError_1 = __webpack_require__(\"./node_modules/rxjs/operators/catchError.js\");\nexports.catchError = catchError_1.catchError;\nvar combineAll_1 = __webpack_require__(\"./node_modules/rxjs/operators/combineAll.js\");\nexports.combineAll = combineAll_1.combineAll;\nvar combineLatest_1 = __webpack_require__(\"./node_modules/rxjs/operators/combineLatest.js\");\nexports.combineLatest = combineLatest_1.combineLatest;\nvar concat_1 = __webpack_require__(\"./node_modules/rxjs/operators/concat.js\");\nexports.concat = concat_1.concat;\nvar concatAll_1 = __webpack_require__(\"./node_modules/rxjs/operators/concatAll.js\");\nexports.concatAll = concatAll_1.concatAll;\nvar concatMap_1 = __webpack_require__(\"./node_modules/rxjs/operators/concatMap.js\");\nexports.concatMap = concatMap_1.concatMap;\nvar concatMapTo_1 = __webpack_require__(\"./node_modules/rxjs/operators/concatMapTo.js\");\nexports.concatMapTo = concatMapTo_1.concatMapTo;\nvar count_1 = __webpack_require__(\"./node_modules/rxjs/operators/count.js\");\nexports.count = count_1.count;\nvar debounce_1 = __webpack_require__(\"./node_modules/rxjs/operators/debounce.js\");\nexports.debounce = debounce_1.debounce;\nvar debounceTime_1 = __webpack_require__(\"./node_modules/rxjs/operators/debounceTime.js\");\nexports.debounceTime = debounceTime_1.debounceTime;\nvar defaultIfEmpty_1 = __webpack_require__(\"./node_modules/rxjs/operators/defaultIfEmpty.js\");\nexports.defaultIfEmpty = defaultIfEmpty_1.defaultIfEmpty;\nvar delay_1 = __webpack_require__(\"./node_modules/rxjs/operators/delay.js\");\nexports.delay = delay_1.delay;\nvar delayWhen_1 = __webpack_require__(\"./node_modules/rxjs/operators/delayWhen.js\");\nexports.delayWhen = delayWhen_1.delayWhen;\nvar dematerialize_1 = __webpack_require__(\"./node_modules/rxjs/operators/dematerialize.js\");\nexports.dematerialize = dematerialize_1.dematerialize;\nvar distinct_1 = __webpack_require__(\"./node_modules/rxjs/operators/distinct.js\");\nexports.distinct = distinct_1.distinct;\nvar distinctUntilChanged_1 = __webpack_require__(\"./node_modules/rxjs/operators/distinctUntilChanged.js\");\nexports.distinctUntilChanged = distinctUntilChanged_1.distinctUntilChanged;\nvar distinctUntilKeyChanged_1 = __webpack_require__(\"./node_modules/rxjs/operators/distinctUntilKeyChanged.js\");\nexports.distinctUntilKeyChanged = distinctUntilKeyChanged_1.distinctUntilKeyChanged;\nvar elementAt_1 = __webpack_require__(\"./node_modules/rxjs/operators/elementAt.js\");\nexports.elementAt = elementAt_1.elementAt;\nvar every_1 = __webpack_require__(\"./node_modules/rxjs/operators/every.js\");\nexports.every = every_1.every;\nvar exhaust_1 = __webpack_require__(\"./node_modules/rxjs/operators/exhaust.js\");\nexports.exhaust = exhaust_1.exhaust;\nvar exhaustMap_1 = __webpack_require__(\"./node_modules/rxjs/operators/exhaustMap.js\");\nexports.exhaustMap = exhaustMap_1.exhaustMap;\nvar expand_1 = __webpack_require__(\"./node_modules/rxjs/operators/expand.js\");\nexports.expand = expand_1.expand;\nvar filter_1 = __webpack_require__(\"./node_modules/rxjs/operators/filter.js\");\nexports.filter = filter_1.filter;\nvar finalize_1 = __webpack_require__(\"./node_modules/rxjs/operators/finalize.js\");\nexports.finalize = finalize_1.finalize;\nvar find_1 = __webpack_require__(\"./node_modules/rxjs/operators/find.js\");\nexports.find = find_1.find;\nvar findIndex_1 = __webpack_require__(\"./node_modules/rxjs/operators/findIndex.js\");\nexports.findIndex = findIndex_1.findIndex;\nvar first_1 = __webpack_require__(\"./node_modules/rxjs/operators/first.js\");\nexports.first = first_1.first;\nvar groupBy_1 = __webpack_require__(\"./node_modules/rxjs/operators/groupBy.js\");\nexports.groupBy = groupBy_1.groupBy;\nvar ignoreElements_1 = __webpack_require__(\"./node_modules/rxjs/operators/ignoreElements.js\");\nexports.ignoreElements = ignoreElements_1.ignoreElements;\nvar isEmpty_1 = __webpack_require__(\"./node_modules/rxjs/operators/isEmpty.js\");\nexports.isEmpty = isEmpty_1.isEmpty;\nvar last_1 = __webpack_require__(\"./node_modules/rxjs/operators/last.js\");\nexports.last = last_1.last;\nvar map_1 = __webpack_require__(\"./node_modules/rxjs/operators/map.js\");\nexports.map = map_1.map;\nvar mapTo_1 = __webpack_require__(\"./node_modules/rxjs/operators/mapTo.js\");\nexports.mapTo = mapTo_1.mapTo;\nvar materialize_1 = __webpack_require__(\"./node_modules/rxjs/operators/materialize.js\");\nexports.materialize = materialize_1.materialize;\nvar max_1 = __webpack_require__(\"./node_modules/rxjs/operators/max.js\");\nexports.max = max_1.max;\nvar merge_1 = __webpack_require__(\"./node_modules/rxjs/operators/merge.js\");\nexports.merge = merge_1.merge;\nvar mergeAll_1 = __webpack_require__(\"./node_modules/rxjs/operators/mergeAll.js\");\nexports.mergeAll = mergeAll_1.mergeAll;\nvar mergeMap_1 = __webpack_require__(\"./node_modules/rxjs/operators/mergeMap.js\");\nexports.mergeMap = mergeMap_1.mergeMap;\nvar mergeMap_2 = __webpack_require__(\"./node_modules/rxjs/operators/mergeMap.js\");\nexports.flatMap = mergeMap_2.mergeMap;\nvar mergeMapTo_1 = __webpack_require__(\"./node_modules/rxjs/operators/mergeMapTo.js\");\nexports.mergeMapTo = mergeMapTo_1.mergeMapTo;\nvar mergeScan_1 = __webpack_require__(\"./node_modules/rxjs/operators/mergeScan.js\");\nexports.mergeScan = mergeScan_1.mergeScan;\nvar min_1 = __webpack_require__(\"./node_modules/rxjs/operators/min.js\");\nexports.min = min_1.min;\nvar multicast_1 = __webpack_require__(\"./node_modules/rxjs/operators/multicast.js\");\nexports.multicast = multicast_1.multicast;\nvar observeOn_1 = __webpack_require__(\"./node_modules/rxjs/operators/observeOn.js\");\nexports.observeOn = observeOn_1.observeOn;\nvar onErrorResumeNext_1 = __webpack_require__(\"./node_modules/rxjs/operators/onErrorResumeNext.js\");\nexports.onErrorResumeNext = onErrorResumeNext_1.onErrorResumeNext;\nvar pairwise_1 = __webpack_require__(\"./node_modules/rxjs/operators/pairwise.js\");\nexports.pairwise = pairwise_1.pairwise;\nvar partition_1 = __webpack_require__(\"./node_modules/rxjs/operators/partition.js\");\nexports.partition = partition_1.partition;\nvar pluck_1 = __webpack_require__(\"./node_modules/rxjs/operators/pluck.js\");\nexports.pluck = pluck_1.pluck;\nvar publish_1 = __webpack_require__(\"./node_modules/rxjs/operators/publish.js\");\nexports.publish = publish_1.publish;\nvar publishBehavior_1 = __webpack_require__(\"./node_modules/rxjs/operators/publishBehavior.js\");\nexports.publishBehavior = publishBehavior_1.publishBehavior;\nvar publishLast_1 = __webpack_require__(\"./node_modules/rxjs/operators/publishLast.js\");\nexports.publishLast = publishLast_1.publishLast;\nvar publishReplay_1 = __webpack_require__(\"./node_modules/rxjs/operators/publishReplay.js\");\nexports.publishReplay = publishReplay_1.publishReplay;\nvar race_1 = __webpack_require__(\"./node_modules/rxjs/operators/race.js\");\nexports.race = race_1.race;\nvar reduce_1 = __webpack_require__(\"./node_modules/rxjs/operators/reduce.js\");\nexports.reduce = reduce_1.reduce;\nvar repeat_1 = __webpack_require__(\"./node_modules/rxjs/operators/repeat.js\");\nexports.repeat = repeat_1.repeat;\nvar repeatWhen_1 = __webpack_require__(\"./node_modules/rxjs/operators/repeatWhen.js\");\nexports.repeatWhen = repeatWhen_1.repeatWhen;\nvar retry_1 = __webpack_require__(\"./node_modules/rxjs/operators/retry.js\");\nexports.retry = retry_1.retry;\nvar retryWhen_1 = __webpack_require__(\"./node_modules/rxjs/operators/retryWhen.js\");\nexports.retryWhen = retryWhen_1.retryWhen;\nvar refCount_1 = __webpack_require__(\"./node_modules/rxjs/operators/refCount.js\");\nexports.refCount = refCount_1.refCount;\nvar sample_1 = __webpack_require__(\"./node_modules/rxjs/operators/sample.js\");\nexports.sample = sample_1.sample;\nvar sampleTime_1 = __webpack_require__(\"./node_modules/rxjs/operators/sampleTime.js\");\nexports.sampleTime = sampleTime_1.sampleTime;\nvar scan_1 = __webpack_require__(\"./node_modules/rxjs/operators/scan.js\");\nexports.scan = scan_1.scan;\nvar sequenceEqual_1 = __webpack_require__(\"./node_modules/rxjs/operators/sequenceEqual.js\");\nexports.sequenceEqual = sequenceEqual_1.sequenceEqual;\nvar share_1 = __webpack_require__(\"./node_modules/rxjs/operators/share.js\");\nexports.share = share_1.share;\nvar shareReplay_1 = __webpack_require__(\"./node_modules/rxjs/operators/shareReplay.js\");\nexports.shareReplay = shareReplay_1.shareReplay;\nvar single_1 = __webpack_require__(\"./node_modules/rxjs/operators/single.js\");\nexports.single = single_1.single;\nvar skip_1 = __webpack_require__(\"./node_modules/rxjs/operators/skip.js\");\nexports.skip = skip_1.skip;\nvar skipLast_1 = __webpack_require__(\"./node_modules/rxjs/operators/skipLast.js\");\nexports.skipLast = skipLast_1.skipLast;\nvar skipUntil_1 = __webpack_require__(\"./node_modules/rxjs/operators/skipUntil.js\");\nexports.skipUntil = skipUntil_1.skipUntil;\nvar skipWhile_1 = __webpack_require__(\"./node_modules/rxjs/operators/skipWhile.js\");\nexports.skipWhile = skipWhile_1.skipWhile;\nvar startWith_1 = __webpack_require__(\"./node_modules/rxjs/operators/startWith.js\");\nexports.startWith = startWith_1.startWith;\n/**\n * TODO(https://github.com/ReactiveX/rxjs/issues/2900): Add back subscribeOn once it can be\n * treeshaken. Currently if this export is added back, it\n * forces apps to bring in asap scheduler along with\n * Immediate, root, and other supporting code.\n */\n// export { subscribeOn } from './operators/subscribeOn';\nvar switchAll_1 = __webpack_require__(\"./node_modules/rxjs/operators/switchAll.js\");\nexports.switchAll = switchAll_1.switchAll;\nvar switchMap_1 = __webpack_require__(\"./node_modules/rxjs/operators/switchMap.js\");\nexports.switchMap = switchMap_1.switchMap;\nvar switchMapTo_1 = __webpack_require__(\"./node_modules/rxjs/operators/switchMapTo.js\");\nexports.switchMapTo = switchMapTo_1.switchMapTo;\nvar take_1 = __webpack_require__(\"./node_modules/rxjs/operators/take.js\");\nexports.take = take_1.take;\nvar takeLast_1 = __webpack_require__(\"./node_modules/rxjs/operators/takeLast.js\");\nexports.takeLast = takeLast_1.takeLast;\nvar takeUntil_1 = __webpack_require__(\"./node_modules/rxjs/operators/takeUntil.js\");\nexports.takeUntil = takeUntil_1.takeUntil;\nvar takeWhile_1 = __webpack_require__(\"./node_modules/rxjs/operators/takeWhile.js\");\nexports.takeWhile = takeWhile_1.takeWhile;\nvar tap_1 = __webpack_require__(\"./node_modules/rxjs/operators/tap.js\");\nexports.tap = tap_1.tap;\nvar throttle_1 = __webpack_require__(\"./node_modules/rxjs/operators/throttle.js\");\nexports.throttle = throttle_1.throttle;\nvar throttleTime_1 = __webpack_require__(\"./node_modules/rxjs/operators/throttleTime.js\");\nexports.throttleTime = throttleTime_1.throttleTime;\nvar timeInterval_1 = __webpack_require__(\"./node_modules/rxjs/operators/timeInterval.js\");\nexports.timeInterval = timeInterval_1.timeInterval;\nvar timeout_1 = __webpack_require__(\"./node_modules/rxjs/operators/timeout.js\");\nexports.timeout = timeout_1.timeout;\nvar timeoutWith_1 = __webpack_require__(\"./node_modules/rxjs/operators/timeoutWith.js\");\nexports.timeoutWith = timeoutWith_1.timeoutWith;\nvar timestamp_1 = __webpack_require__(\"./node_modules/rxjs/operators/timestamp.js\");\nexports.timestamp = timestamp_1.timestamp;\nvar toArray_1 = __webpack_require__(\"./node_modules/rxjs/operators/toArray.js\");\nexports.toArray = toArray_1.toArray;\nvar window_1 = __webpack_require__(\"./node_modules/rxjs/operators/window.js\");\nexports.window = window_1.window;\nvar windowCount_1 = __webpack_require__(\"./node_modules/rxjs/operators/windowCount.js\");\nexports.windowCount = windowCount_1.windowCount;\nvar windowTime_1 = __webpack_require__(\"./node_modules/rxjs/operators/windowTime.js\");\nexports.windowTime = windowTime_1.windowTime;\nvar windowToggle_1 = __webpack_require__(\"./node_modules/rxjs/operators/windowToggle.js\");\nexports.windowToggle = windowToggle_1.windowToggle;\nvar windowWhen_1 = __webpack_require__(\"./node_modules/rxjs/operators/windowWhen.js\");\nexports.windowWhen = windowWhen_1.windowWhen;\nvar withLatestFrom_1 = __webpack_require__(\"./node_modules/rxjs/operators/withLatestFrom.js\");\nexports.withLatestFrom = withLatestFrom_1.withLatestFrom;\nvar zip_1 = __webpack_require__(\"./node_modules/rxjs/operators/zip.js\");\nexports.zip = zip_1.zip;\nvar zipAll_1 = __webpack_require__(\"./node_modules/rxjs/operators/zipAll.js\");\nexports.zipAll = zipAll_1.zipAll;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/audit.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Ignores source values for a duration determined by another Observable, then\n * emits the most recent value from the source Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link auditTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * <img src=\"./img/audit.png\" width=\"100%\">\n *\n * `audit` is similar to `throttle`, but emits the last value from the silenced\n * time window, instead of the first value. `audit` emits the most recent value\n * from the source Observable on the output Observable as soon as its internal\n * timer becomes disabled, and ignores source values while the timer is enabled.\n * Initially, the timer is disabled. As soon as the first source value arrives,\n * the timer is enabled by calling the `durationSelector` function with the\n * source value, which returns the \"duration\" Observable. When the duration\n * Observable emits a value or completes, the timer is disabled, then the most\n * recent source value is emitted on the output Observable, and this process\n * repeats for the next source value.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.audit(ev => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttle}\n *\n * @param {function(value: T): SubscribableOrPromise} durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration, returned as an Observable or a Promise.\n * @return {Observable<T>} An Observable that performs rate-limiting of\n * emissions from the source Observable.\n * @method audit\n * @owner Observable\n */\nfunction audit(durationSelector) {\n    return function auditOperatorFunction(source) {\n        return source.lift(new AuditOperator(durationSelector));\n    };\n}\nexports.audit = audit;\nvar AuditOperator = (function () {\n    function AuditOperator(durationSelector) {\n        this.durationSelector = durationSelector;\n    }\n    AuditOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new AuditSubscriber(subscriber, this.durationSelector));\n    };\n    return AuditOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar AuditSubscriber = (function (_super) {\n    __extends(AuditSubscriber, _super);\n    function AuditSubscriber(destination, durationSelector) {\n        _super.call(this, destination);\n        this.durationSelector = durationSelector;\n        this.hasValue = false;\n    }\n    AuditSubscriber.prototype._next = function (value) {\n        this.value = value;\n        this.hasValue = true;\n        if (!this.throttled) {\n            var duration = tryCatch_1.tryCatch(this.durationSelector)(value);\n            if (duration === errorObject_1.errorObject) {\n                this.destination.error(errorObject_1.errorObject.e);\n            }\n            else {\n                var innerSubscription = subscribeToResult_1.subscribeToResult(this, duration);\n                if (innerSubscription.closed) {\n                    this.clearThrottle();\n                }\n                else {\n                    this.add(this.throttled = innerSubscription);\n                }\n            }\n        }\n    };\n    AuditSubscriber.prototype.clearThrottle = function () {\n        var _a = this, value = _a.value, hasValue = _a.hasValue, throttled = _a.throttled;\n        if (throttled) {\n            this.remove(throttled);\n            this.throttled = null;\n            throttled.unsubscribe();\n        }\n        if (hasValue) {\n            this.value = null;\n            this.hasValue = false;\n            this.destination.next(value);\n        }\n    };\n    AuditSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex) {\n        this.clearThrottle();\n    };\n    AuditSubscriber.prototype.notifyComplete = function () {\n        this.clearThrottle();\n    };\n    return AuditSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/auditTime.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\nvar audit_1 = __webpack_require__(\"./node_modules/rxjs/operators/audit.js\");\nvar timer_1 = __webpack_require__(\"./node_modules/rxjs/observable/timer.js\");\n/**\n * Ignores source values for `duration` milliseconds, then emits the most recent\n * value from the source Observable, then repeats this process.\n *\n * <span class=\"informal\">When it sees a source values, it ignores that plus\n * the next ones for `duration` milliseconds, and then it emits the most recent\n * value from the source.</span>\n *\n * <img src=\"./img/auditTime.png\" width=\"100%\">\n *\n * `auditTime` is similar to `throttleTime`, but emits the last value from the\n * silenced time window, instead of the first value. `auditTime` emits the most\n * recent value from the source Observable on the output Observable as soon as\n * its internal timer becomes disabled, and ignores source values while the\n * timer is enabled. Initially, the timer is disabled. As soon as the first\n * source value arrives, the timer is enabled. After `duration` milliseconds (or\n * the time unit determined internally by the optional `scheduler`) has passed,\n * the timer is disabled, then the most recent source value is emitted on the\n * output Observable, and this process repeats for the next source value.\n * Optionally takes a {@link IScheduler} for managing timers.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.auditTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} duration Time to wait before emitting the most recent source\n * value, measured in milliseconds or the time unit determined internally\n * by the optional `scheduler`.\n * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for\n * managing the timers that handle the rate-limiting behavior.\n * @return {Observable<T>} An Observable that performs rate-limiting of\n * emissions from the source Observable.\n * @method auditTime\n * @owner Observable\n */\nfunction auditTime(duration, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return audit_1.audit(function () { return timer_1.timer(duration, scheduler); });\n}\nexports.auditTime = auditTime;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/buffer.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Buffers the source Observable values until `closingNotifier` emits.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when another Observable emits.</span>\n *\n * <img src=\"./img/buffer.png\" width=\"100%\">\n *\n * Buffers the incoming Observable values until the given `closingNotifier`\n * Observable emits a value, at which point it emits the buffer on the output\n * Observable and starts a new buffer internally, awaiting the next time\n * `closingNotifier` emits.\n *\n * @example <caption>On every click, emit array of most recent interval events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var interval = Rx.Observable.interval(1000);\n * var buffered = interval.buffer(clicks);\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link bufferCount}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link window}\n *\n * @param {Observable<any>} closingNotifier An Observable that signals the\n * buffer to be emitted on the output Observable.\n * @return {Observable<T[]>} An Observable of buffers, which are arrays of\n * values.\n * @method buffer\n * @owner Observable\n */\nfunction buffer(closingNotifier) {\n    return function bufferOperatorFunction(source) {\n        return source.lift(new BufferOperator(closingNotifier));\n    };\n}\nexports.buffer = buffer;\nvar BufferOperator = (function () {\n    function BufferOperator(closingNotifier) {\n        this.closingNotifier = closingNotifier;\n    }\n    BufferOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new BufferSubscriber(subscriber, this.closingNotifier));\n    };\n    return BufferOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferSubscriber = (function (_super) {\n    __extends(BufferSubscriber, _super);\n    function BufferSubscriber(destination, closingNotifier) {\n        _super.call(this, destination);\n        this.buffer = [];\n        this.add(subscribeToResult_1.subscribeToResult(this, closingNotifier));\n    }\n    BufferSubscriber.prototype._next = function (value) {\n        this.buffer.push(value);\n    };\n    BufferSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var buffer = this.buffer;\n        this.buffer = [];\n        this.destination.next(buffer);\n    };\n    return BufferSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/bufferCount.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Buffers the source Observable values until the size hits the maximum\n * `bufferSize` given.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when its size reaches `bufferSize`.</span>\n *\n * <img src=\"./img/bufferCount.png\" width=\"100%\">\n *\n * Buffers a number of values from the source Observable by `bufferSize` then\n * emits the buffer and clears it, and starts a new buffer each\n * `startBufferEvery` values. If `startBufferEvery` is not provided or is\n * `null`, then new buffers are started immediately at the start of the source\n * and when each buffer closes and is emitted.\n *\n * @example <caption>Emit the last two click events as an array</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferCount(2);\n * buffered.subscribe(x => console.log(x));\n *\n * @example <caption>On every click, emit the last two click events as an array</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferCount(2, 1);\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link pairwise}\n * @see {@link windowCount}\n *\n * @param {number} bufferSize The maximum size of the buffer emitted.\n * @param {number} [startBufferEvery] Interval at which to start a new buffer.\n * For example if `startBufferEvery` is `2`, then a new buffer will be started\n * on every other value from the source. A new buffer is started at the\n * beginning of the source by default.\n * @return {Observable<T[]>} An Observable of arrays of buffered values.\n * @method bufferCount\n * @owner Observable\n */\nfunction bufferCount(bufferSize, startBufferEvery) {\n    if (startBufferEvery === void 0) { startBufferEvery = null; }\n    return function bufferCountOperatorFunction(source) {\n        return source.lift(new BufferCountOperator(bufferSize, startBufferEvery));\n    };\n}\nexports.bufferCount = bufferCount;\nvar BufferCountOperator = (function () {\n    function BufferCountOperator(bufferSize, startBufferEvery) {\n        this.bufferSize = bufferSize;\n        this.startBufferEvery = startBufferEvery;\n        if (!startBufferEvery || bufferSize === startBufferEvery) {\n            this.subscriberClass = BufferCountSubscriber;\n        }\n        else {\n            this.subscriberClass = BufferSkipCountSubscriber;\n        }\n    }\n    BufferCountOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new this.subscriberClass(subscriber, this.bufferSize, this.startBufferEvery));\n    };\n    return BufferCountOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferCountSubscriber = (function (_super) {\n    __extends(BufferCountSubscriber, _super);\n    function BufferCountSubscriber(destination, bufferSize) {\n        _super.call(this, destination);\n        this.bufferSize = bufferSize;\n        this.buffer = [];\n    }\n    BufferCountSubscriber.prototype._next = function (value) {\n        var buffer = this.buffer;\n        buffer.push(value);\n        if (buffer.length == this.bufferSize) {\n            this.destination.next(buffer);\n            this.buffer = [];\n        }\n    };\n    BufferCountSubscriber.prototype._complete = function () {\n        var buffer = this.buffer;\n        if (buffer.length > 0) {\n            this.destination.next(buffer);\n        }\n        _super.prototype._complete.call(this);\n    };\n    return BufferCountSubscriber;\n}(Subscriber_1.Subscriber));\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferSkipCountSubscriber = (function (_super) {\n    __extends(BufferSkipCountSubscriber, _super);\n    function BufferSkipCountSubscriber(destination, bufferSize, startBufferEvery) {\n        _super.call(this, destination);\n        this.bufferSize = bufferSize;\n        this.startBufferEvery = startBufferEvery;\n        this.buffers = [];\n        this.count = 0;\n    }\n    BufferSkipCountSubscriber.prototype._next = function (value) {\n        var _a = this, bufferSize = _a.bufferSize, startBufferEvery = _a.startBufferEvery, buffers = _a.buffers, count = _a.count;\n        this.count++;\n        if (count % startBufferEvery === 0) {\n            buffers.push([]);\n        }\n        for (var i = buffers.length; i--;) {\n            var buffer = buffers[i];\n            buffer.push(value);\n            if (buffer.length === bufferSize) {\n                buffers.splice(i, 1);\n                this.destination.next(buffer);\n            }\n        }\n    };\n    BufferSkipCountSubscriber.prototype._complete = function () {\n        var _a = this, buffers = _a.buffers, destination = _a.destination;\n        while (buffers.length > 0) {\n            var buffer = buffers.shift();\n            if (buffer.length > 0) {\n                destination.next(buffer);\n            }\n        }\n        _super.prototype._complete.call(this);\n    };\n    return BufferSkipCountSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/bufferTime.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar isScheduler_1 = __webpack_require__(\"./node_modules/rxjs/util/isScheduler.js\");\n/* tslint:enable:max-line-length */\n/**\n * Buffers the source Observable values for a specific time period.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * those arrays periodically in time.</span>\n *\n * <img src=\"./img/bufferTime.png\" width=\"100%\">\n *\n * Buffers values from the source for a specific time duration `bufferTimeSpan`.\n * Unless the optional argument `bufferCreationInterval` is given, it emits and\n * resets the buffer every `bufferTimeSpan` milliseconds. If\n * `bufferCreationInterval` is given, this operator opens the buffer every\n * `bufferCreationInterval` milliseconds and closes (emits and resets) the\n * buffer every `bufferTimeSpan` milliseconds. When the optional argument\n * `maxBufferSize` is specified, the buffer will be closed either after\n * `bufferTimeSpan` milliseconds or when it contains `maxBufferSize` elements.\n *\n * @example <caption>Every second, emit an array of the recent click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferTime(1000);\n * buffered.subscribe(x => console.log(x));\n *\n * @example <caption>Every 5 seconds, emit the click events from the next 2 seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferTime(2000, 5000);\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link windowTime}\n *\n * @param {number} bufferTimeSpan The amount of time to fill each buffer array.\n * @param {number} [bufferCreationInterval] The interval at which to start new\n * buffers.\n * @param {number} [maxBufferSize] The maximum buffer size.\n * @param {Scheduler} [scheduler=async] The scheduler on which to schedule the\n * intervals that determine buffer boundaries.\n * @return {Observable<T[]>} An observable of arrays of buffered values.\n * @method bufferTime\n * @owner Observable\n */\nfunction bufferTime(bufferTimeSpan) {\n    var length = arguments.length;\n    var scheduler = async_1.async;\n    if (isScheduler_1.isScheduler(arguments[arguments.length - 1])) {\n        scheduler = arguments[arguments.length - 1];\n        length--;\n    }\n    var bufferCreationInterval = null;\n    if (length >= 2) {\n        bufferCreationInterval = arguments[1];\n    }\n    var maxBufferSize = Number.POSITIVE_INFINITY;\n    if (length >= 3) {\n        maxBufferSize = arguments[2];\n    }\n    return function bufferTimeOperatorFunction(source) {\n        return source.lift(new BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler));\n    };\n}\nexports.bufferTime = bufferTime;\nvar BufferTimeOperator = (function () {\n    function BufferTimeOperator(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {\n        this.bufferTimeSpan = bufferTimeSpan;\n        this.bufferCreationInterval = bufferCreationInterval;\n        this.maxBufferSize = maxBufferSize;\n        this.scheduler = scheduler;\n    }\n    BufferTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new BufferTimeSubscriber(subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler));\n    };\n    return BufferTimeOperator;\n}());\nvar Context = (function () {\n    function Context() {\n        this.buffer = [];\n    }\n    return Context;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferTimeSubscriber = (function (_super) {\n    __extends(BufferTimeSubscriber, _super);\n    function BufferTimeSubscriber(destination, bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler) {\n        _super.call(this, destination);\n        this.bufferTimeSpan = bufferTimeSpan;\n        this.bufferCreationInterval = bufferCreationInterval;\n        this.maxBufferSize = maxBufferSize;\n        this.scheduler = scheduler;\n        this.contexts = [];\n        var context = this.openContext();\n        this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0;\n        if (this.timespanOnly) {\n            var timeSpanOnlyState = { subscriber: this, context: context, bufferTimeSpan: bufferTimeSpan };\n            this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n        }\n        else {\n            var closeState = { subscriber: this, context: context };\n            var creationState = { bufferTimeSpan: bufferTimeSpan, bufferCreationInterval: bufferCreationInterval, subscriber: this, scheduler: scheduler };\n            this.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState));\n            this.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState));\n        }\n    }\n    BufferTimeSubscriber.prototype._next = function (value) {\n        var contexts = this.contexts;\n        var len = contexts.length;\n        var filledBufferContext;\n        for (var i = 0; i < len; i++) {\n            var context = contexts[i];\n            var buffer = context.buffer;\n            buffer.push(value);\n            if (buffer.length == this.maxBufferSize) {\n                filledBufferContext = context;\n            }\n        }\n        if (filledBufferContext) {\n            this.onBufferFull(filledBufferContext);\n        }\n    };\n    BufferTimeSubscriber.prototype._error = function (err) {\n        this.contexts.length = 0;\n        _super.prototype._error.call(this, err);\n    };\n    BufferTimeSubscriber.prototype._complete = function () {\n        var _a = this, contexts = _a.contexts, destination = _a.destination;\n        while (contexts.length > 0) {\n            var context = contexts.shift();\n            destination.next(context.buffer);\n        }\n        _super.prototype._complete.call(this);\n    };\n    /** @deprecated internal use only */ BufferTimeSubscriber.prototype._unsubscribe = function () {\n        this.contexts = null;\n    };\n    BufferTimeSubscriber.prototype.onBufferFull = function (context) {\n        this.closeContext(context);\n        var closeAction = context.closeAction;\n        closeAction.unsubscribe();\n        this.remove(closeAction);\n        if (!this.closed && this.timespanOnly) {\n            context = this.openContext();\n            var bufferTimeSpan = this.bufferTimeSpan;\n            var timeSpanOnlyState = { subscriber: this, context: context, bufferTimeSpan: bufferTimeSpan };\n            this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n        }\n    };\n    BufferTimeSubscriber.prototype.openContext = function () {\n        var context = new Context();\n        this.contexts.push(context);\n        return context;\n    };\n    BufferTimeSubscriber.prototype.closeContext = function (context) {\n        this.destination.next(context.buffer);\n        var contexts = this.contexts;\n        var spliceIndex = contexts ? contexts.indexOf(context) : -1;\n        if (spliceIndex >= 0) {\n            contexts.splice(contexts.indexOf(context), 1);\n        }\n    };\n    return BufferTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchBufferTimeSpanOnly(state) {\n    var subscriber = state.subscriber;\n    var prevContext = state.context;\n    if (prevContext) {\n        subscriber.closeContext(prevContext);\n    }\n    if (!subscriber.closed) {\n        state.context = subscriber.openContext();\n        state.context.closeAction = this.schedule(state, state.bufferTimeSpan);\n    }\n}\nfunction dispatchBufferCreation(state) {\n    var bufferCreationInterval = state.bufferCreationInterval, bufferTimeSpan = state.bufferTimeSpan, subscriber = state.subscriber, scheduler = state.scheduler;\n    var context = subscriber.openContext();\n    var action = this;\n    if (!subscriber.closed) {\n        subscriber.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, { subscriber: subscriber, context: context }));\n        action.schedule(state, bufferCreationInterval);\n    }\n}\nfunction dispatchBufferClose(arg) {\n    var subscriber = arg.subscriber, context = arg.context;\n    subscriber.closeContext(context);\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/bufferToggle.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscription_1 = __webpack_require__(\"./node_modules/rxjs/Subscription.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\n/**\n * Buffers the source Observable values starting from an emission from\n * `openings` and ending when the output of `closingSelector` emits.\n *\n * <span class=\"informal\">Collects values from the past as an array. Starts\n * collecting only when `opening` emits, and calls the `closingSelector`\n * function to get an Observable that tells when to close the buffer.</span>\n *\n * <img src=\"./img/bufferToggle.png\" width=\"100%\">\n *\n * Buffers values from the source by opening the buffer via signals from an\n * Observable provided to `openings`, and closing and sending the buffers when\n * a Subscribable or Promise returned by the `closingSelector` function emits.\n *\n * @example <caption>Every other second, emit the click events from the next 500ms</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var openings = Rx.Observable.interval(1000);\n * var buffered = clicks.bufferToggle(openings, i =>\n *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()\n * );\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n * @see {@link bufferTime}\n * @see {@link bufferWhen}\n * @see {@link windowToggle}\n *\n * @param {SubscribableOrPromise<O>} openings A Subscribable or Promise of notifications to start new\n * buffers.\n * @param {function(value: O): SubscribableOrPromise} closingSelector A function that takes\n * the value emitted by the `openings` observable and returns a Subscribable or Promise,\n * which, when it emits, signals that the associated buffer should be emitted\n * and cleared.\n * @return {Observable<T[]>} An observable of arrays of buffered values.\n * @method bufferToggle\n * @owner Observable\n */\nfunction bufferToggle(openings, closingSelector) {\n    return function bufferToggleOperatorFunction(source) {\n        return source.lift(new BufferToggleOperator(openings, closingSelector));\n    };\n}\nexports.bufferToggle = bufferToggle;\nvar BufferToggleOperator = (function () {\n    function BufferToggleOperator(openings, closingSelector) {\n        this.openings = openings;\n        this.closingSelector = closingSelector;\n    }\n    BufferToggleOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector));\n    };\n    return BufferToggleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferToggleSubscriber = (function (_super) {\n    __extends(BufferToggleSubscriber, _super);\n    function BufferToggleSubscriber(destination, openings, closingSelector) {\n        _super.call(this, destination);\n        this.openings = openings;\n        this.closingSelector = closingSelector;\n        this.contexts = [];\n        this.add(subscribeToResult_1.subscribeToResult(this, openings));\n    }\n    BufferToggleSubscriber.prototype._next = function (value) {\n        var contexts = this.contexts;\n        var len = contexts.length;\n        for (var i = 0; i < len; i++) {\n            contexts[i].buffer.push(value);\n        }\n    };\n    BufferToggleSubscriber.prototype._error = function (err) {\n        var contexts = this.contexts;\n        while (contexts.length > 0) {\n            var context = contexts.shift();\n            context.subscription.unsubscribe();\n            context.buffer = null;\n            context.subscription = null;\n        }\n        this.contexts = null;\n        _super.prototype._error.call(this, err);\n    };\n    BufferToggleSubscriber.prototype._complete = function () {\n        var contexts = this.contexts;\n        while (contexts.length > 0) {\n            var context = contexts.shift();\n            this.destination.next(context.buffer);\n            context.subscription.unsubscribe();\n            context.buffer = null;\n            context.subscription = null;\n        }\n        this.contexts = null;\n        _super.prototype._complete.call(this);\n    };\n    BufferToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);\n    };\n    BufferToggleSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.closeBuffer(innerSub.context);\n    };\n    BufferToggleSubscriber.prototype.openBuffer = function (value) {\n        try {\n            var closingSelector = this.closingSelector;\n            var closingNotifier = closingSelector.call(this, value);\n            if (closingNotifier) {\n                this.trySubscribe(closingNotifier);\n            }\n        }\n        catch (err) {\n            this._error(err);\n        }\n    };\n    BufferToggleSubscriber.prototype.closeBuffer = function (context) {\n        var contexts = this.contexts;\n        if (contexts && context) {\n            var buffer = context.buffer, subscription = context.subscription;\n            this.destination.next(buffer);\n            contexts.splice(contexts.indexOf(context), 1);\n            this.remove(subscription);\n            subscription.unsubscribe();\n        }\n    };\n    BufferToggleSubscriber.prototype.trySubscribe = function (closingNotifier) {\n        var contexts = this.contexts;\n        var buffer = [];\n        var subscription = new Subscription_1.Subscription();\n        var context = { buffer: buffer, subscription: subscription };\n        contexts.push(context);\n        var innerSubscription = subscribeToResult_1.subscribeToResult(this, closingNotifier, context);\n        if (!innerSubscription || innerSubscription.closed) {\n            this.closeBuffer(context);\n        }\n        else {\n            innerSubscription.context = context;\n            this.add(innerSubscription);\n            subscription.add(innerSubscription);\n        }\n    };\n    return BufferToggleSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/bufferWhen.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscription_1 = __webpack_require__(\"./node_modules/rxjs/Subscription.js\");\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Buffers the source Observable values, using a factory function of closing\n * Observables to determine when to close, emit, and reset the buffer.\n *\n * <span class=\"informal\">Collects values from the past as an array. When it\n * starts collecting values, it calls a function that returns an Observable that\n * tells when to close the buffer and restart collecting.</span>\n *\n * <img src=\"./img/bufferWhen.png\" width=\"100%\">\n *\n * Opens a buffer immediately, then closes the buffer when the observable\n * returned by calling `closingSelector` function emits a value. When it closes\n * the buffer, it immediately opens a new buffer and repeats the process.\n *\n * @example <caption>Emit an array of the last clicks every [1-5] random seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferWhen(() =>\n *   Rx.Observable.interval(1000 + Math.random() * 4000)\n * );\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link windowWhen}\n *\n * @param {function(): Observable} closingSelector A function that takes no\n * arguments and returns an Observable that signals buffer closure.\n * @return {Observable<T[]>} An observable of arrays of buffered values.\n * @method bufferWhen\n * @owner Observable\n */\nfunction bufferWhen(closingSelector) {\n    return function (source) {\n        return source.lift(new BufferWhenOperator(closingSelector));\n    };\n}\nexports.bufferWhen = bufferWhen;\nvar BufferWhenOperator = (function () {\n    function BufferWhenOperator(closingSelector) {\n        this.closingSelector = closingSelector;\n    }\n    BufferWhenOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector));\n    };\n    return BufferWhenOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar BufferWhenSubscriber = (function (_super) {\n    __extends(BufferWhenSubscriber, _super);\n    function BufferWhenSubscriber(destination, closingSelector) {\n        _super.call(this, destination);\n        this.closingSelector = closingSelector;\n        this.subscribing = false;\n        this.openBuffer();\n    }\n    BufferWhenSubscriber.prototype._next = function (value) {\n        this.buffer.push(value);\n    };\n    BufferWhenSubscriber.prototype._complete = function () {\n        var buffer = this.buffer;\n        if (buffer) {\n            this.destination.next(buffer);\n        }\n        _super.prototype._complete.call(this);\n    };\n    /** @deprecated internal use only */ BufferWhenSubscriber.prototype._unsubscribe = function () {\n        this.buffer = null;\n        this.subscribing = false;\n    };\n    BufferWhenSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.openBuffer();\n    };\n    BufferWhenSubscriber.prototype.notifyComplete = function () {\n        if (this.subscribing) {\n            this.complete();\n        }\n        else {\n            this.openBuffer();\n        }\n    };\n    BufferWhenSubscriber.prototype.openBuffer = function () {\n        var closingSubscription = this.closingSubscription;\n        if (closingSubscription) {\n            this.remove(closingSubscription);\n            closingSubscription.unsubscribe();\n        }\n        var buffer = this.buffer;\n        if (this.buffer) {\n            this.destination.next(buffer);\n        }\n        this.buffer = [];\n        var closingNotifier = tryCatch_1.tryCatch(this.closingSelector)();\n        if (closingNotifier === errorObject_1.errorObject) {\n            this.error(errorObject_1.errorObject.e);\n        }\n        else {\n            closingSubscription = new Subscription_1.Subscription();\n            this.closingSubscription = closingSubscription;\n            this.add(closingSubscription);\n            this.subscribing = true;\n            closingSubscription.add(subscribeToResult_1.subscribeToResult(this, closingNotifier));\n            this.subscribing = false;\n        }\n    };\n    return BufferWhenSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/catchError.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Catches errors on the observable to be handled by returning a new observable or throwing an error.\n *\n * <img src=\"./img/catch.png\" width=\"100%\">\n *\n * @example <caption>Continues with a different Observable when there's an error</caption>\n *\n * Observable.of(1, 2, 3, 4, 5)\n *   .map(n => {\n * \t   if (n == 4) {\n * \t     throw 'four!';\n *     }\n *\t   return n;\n *   })\n *   .catch(err => Observable.of('I', 'II', 'III', 'IV', 'V'))\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, I, II, III, IV, V\n *\n * @example <caption>Retries the caught source Observable again in case of error, similar to retry() operator</caption>\n *\n * Observable.of(1, 2, 3, 4, 5)\n *   .map(n => {\n * \t   if (n === 4) {\n * \t     throw 'four!';\n *     }\n * \t   return n;\n *   })\n *   .catch((err, caught) => caught)\n *   .take(30)\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, 1, 2, 3, ...\n *\n * @example <caption>Throws a new error when the source Observable throws an error</caption>\n *\n * Observable.of(1, 2, 3, 4, 5)\n *   .map(n => {\n *     if (n == 4) {\n *       throw 'four!';\n *     }\n *     return n;\n *   })\n *   .catch(err => {\n *     throw 'error in source. Details: ' + err;\n *   })\n *   .subscribe(\n *     x => console.log(x),\n *     err => console.log(err)\n *   );\n *   // 1, 2, 3, error in source. Details: four!\n *\n * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which\n *  is the source observable, in case you'd like to \"retry\" that observable by returning it again. Whatever observable\n *  is returned by the `selector` will be used to continue the observable chain.\n * @return {Observable} An observable that originates from either the source or the observable returned by the\n *  catch `selector` function.\n * @name catchError\n */\nfunction catchError(selector) {\n    return function catchErrorOperatorFunction(source) {\n        var operator = new CatchOperator(selector);\n        var caught = source.lift(operator);\n        return (operator.caught = caught);\n    };\n}\nexports.catchError = catchError;\nvar CatchOperator = (function () {\n    function CatchOperator(selector) {\n        this.selector = selector;\n    }\n    CatchOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));\n    };\n    return CatchOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar CatchSubscriber = (function (_super) {\n    __extends(CatchSubscriber, _super);\n    function CatchSubscriber(destination, selector, caught) {\n        _super.call(this, destination);\n        this.selector = selector;\n        this.caught = caught;\n    }\n    // NOTE: overriding `error` instead of `_error` because we don't want\n    // to have this flag this subscriber as `isStopped`. We can mimic the\n    // behavior of the RetrySubscriber (from the `retry` operator), where\n    // we unsubscribe from our source chain, reset our Subscriber flags,\n    // then subscribe to the selector result.\n    CatchSubscriber.prototype.error = function (err) {\n        if (!this.isStopped) {\n            var result = void 0;\n            try {\n                result = this.selector(err, this.caught);\n            }\n            catch (err2) {\n                _super.prototype.error.call(this, err2);\n                return;\n            }\n            this._unsubscribeAndRecycle();\n            this.add(subscribeToResult_1.subscribeToResult(this, result));\n        }\n    };\n    return CatchSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/combineAll.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar combineLatest_1 = __webpack_require__(\"./node_modules/rxjs/operators/combineLatest.js\");\nfunction combineAll(project) {\n    return function (source) { return source.lift(new combineLatest_1.CombineLatestOperator(project)); };\n}\nexports.combineAll = combineAll;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/combineLatest.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar ArrayObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/ArrayObservable.js\");\nvar isArray_1 = __webpack_require__(\"./node_modules/rxjs/util/isArray.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\nvar none = {};\n/* tslint:enable:max-line-length */\n/**\n * Combines multiple Observables to create an Observable whose values are\n * calculated from the latest values of each of its input Observables.\n *\n * <span class=\"informal\">Whenever any input Observable emits a value, it\n * computes a formula using the latest values from all the inputs, then emits\n * the output of that formula.</span>\n *\n * <img src=\"./img/combineLatest.png\" width=\"100%\">\n *\n * `combineLatest` combines the values from this Observable with values from\n * Observables passed as arguments. This is done by subscribing to each\n * Observable, in order, and collecting an array of each of the most recent\n * values any time any of the input Observables emits, then either taking that\n * array and passing it as arguments to an optional `project` function and\n * emitting the return value of that, or just emitting the array of recent\n * values directly if there is no `project` function.\n *\n * @example <caption>Dynamically calculate the Body-Mass Index from an Observable of weight and one for height</caption>\n * var weight = Rx.Observable.of(70, 72, 76, 79, 75);\n * var height = Rx.Observable.of(1.76, 1.77, 1.78);\n * var bmi = weight.combineLatest(height, (w, h) => w / (h * h));\n * bmi.subscribe(x => console.log('BMI is ' + x));\n *\n * // With output to console:\n * // BMI is 24.212293388429753\n * // BMI is 23.93948099205209\n * // BMI is 23.671253629592222\n *\n * @see {@link combineAll}\n * @see {@link merge}\n * @see {@link withLatestFrom}\n *\n * @param {ObservableInput} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {function} [project] An optional function to project the values from\n * the combined latest values into a new value on the output Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n * @method combineLatest\n * @owner Observable\n */\nfunction combineLatest() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    var project = null;\n    if (typeof observables[observables.length - 1] === 'function') {\n        project = observables.pop();\n    }\n    // if the first and only other argument besides the resultSelector is an array\n    // assume it's been called with `combineLatest([obs1, obs2, obs3], project)`\n    if (observables.length === 1 && isArray_1.isArray(observables[0])) {\n        observables = observables[0].slice();\n    }\n    return function (source) { return source.lift.call(new ArrayObservable_1.ArrayObservable([source].concat(observables)), new CombineLatestOperator(project)); };\n}\nexports.combineLatest = combineLatest;\nvar CombineLatestOperator = (function () {\n    function CombineLatestOperator(project) {\n        this.project = project;\n    }\n    CombineLatestOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new CombineLatestSubscriber(subscriber, this.project));\n    };\n    return CombineLatestOperator;\n}());\nexports.CombineLatestOperator = CombineLatestOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar CombineLatestSubscriber = (function (_super) {\n    __extends(CombineLatestSubscriber, _super);\n    function CombineLatestSubscriber(destination, project) {\n        _super.call(this, destination);\n        this.project = project;\n        this.active = 0;\n        this.values = [];\n        this.observables = [];\n    }\n    CombineLatestSubscriber.prototype._next = function (observable) {\n        this.values.push(none);\n        this.observables.push(observable);\n    };\n    CombineLatestSubscriber.prototype._complete = function () {\n        var observables = this.observables;\n        var len = observables.length;\n        if (len === 0) {\n            this.destination.complete();\n        }\n        else {\n            this.active = len;\n            this.toRespond = len;\n            for (var i = 0; i < len; i++) {\n                var observable = observables[i];\n                this.add(subscribeToResult_1.subscribeToResult(this, observable, observable, i));\n            }\n        }\n    };\n    CombineLatestSubscriber.prototype.notifyComplete = function (unused) {\n        if ((this.active -= 1) === 0) {\n            this.destination.complete();\n        }\n    };\n    CombineLatestSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var values = this.values;\n        var oldVal = values[outerIndex];\n        var toRespond = !this.toRespond\n            ? 0\n            : oldVal === none ? --this.toRespond : this.toRespond;\n        values[outerIndex] = innerValue;\n        if (toRespond === 0) {\n            if (this.project) {\n                this._tryProject(values);\n            }\n            else {\n                this.destination.next(values.slice());\n            }\n        }\n    };\n    CombineLatestSubscriber.prototype._tryProject = function (values) {\n        var result;\n        try {\n            result = this.project.apply(this, values);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    return CombineLatestSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.CombineLatestSubscriber = CombineLatestSubscriber;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/concat.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar concat_1 = __webpack_require__(\"./node_modules/rxjs/observable/concat.js\");\nvar concat_2 = __webpack_require__(\"./node_modules/rxjs/observable/concat.js\");\nexports.concatStatic = concat_2.concat;\n/* tslint:enable:max-line-length */\n/**\n * Creates an output Observable which sequentially emits all values from every\n * given input Observable after the current Observable.\n *\n * <span class=\"informal\">Concatenates multiple Observables together by\n * sequentially emitting their values, one Observable after the other.</span>\n *\n * <img src=\"./img/concat.png\" width=\"100%\">\n *\n * Joins this Observable with multiple other Observables by subscribing to them\n * one at a time, starting with the source, and merging their results into the\n * output Observable. Will wait for each Observable to complete before moving\n * on to the next.\n *\n * @example <caption>Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10</caption>\n * var timer = Rx.Observable.interval(1000).take(4);\n * var sequence = Rx.Observable.range(1, 10);\n * var result = timer.concat(sequence);\n * result.subscribe(x => console.log(x));\n *\n * // results in:\n * // 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10\n *\n * @example <caption>Concatenate 3 Observables</caption>\n * var timer1 = Rx.Observable.interval(1000).take(10);\n * var timer2 = Rx.Observable.interval(2000).take(6);\n * var timer3 = Rx.Observable.interval(500).take(10);\n * var result = timer1.concat(timer2, timer3);\n * result.subscribe(x => console.log(x));\n *\n * // results in the following:\n * // (Prints to console sequentially)\n * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9\n * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5\n * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9\n *\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n *\n * @param {ObservableInput} other An input Observable to concatenate after the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Scheduler} [scheduler=null] An optional IScheduler to schedule each\n * Observable subscription on.\n * @return {Observable} All values of each passed Observable merged into a\n * single Observable, in order, in serial fashion.\n * @method concat\n * @owner Observable\n */\nfunction concat() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    return function (source) { return source.lift.call(concat_1.concat.apply(void 0, [source].concat(observables))); };\n}\nexports.concat = concat;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/concatAll.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar mergeAll_1 = __webpack_require__(\"./node_modules/rxjs/operators/mergeAll.js\");\n/**\n * Converts a higher-order Observable into a first-order Observable by\n * concatenating the inner Observables in order.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by putting one\n * inner Observable after the other.</span>\n *\n * <img src=\"./img/concatAll.png\" width=\"100%\">\n *\n * Joins every Observable emitted by the source (a higher-order Observable), in\n * a serial fashion. It subscribes to each inner Observable only after the\n * previous inner Observable has completed, and merges all of their values into\n * the returned observable.\n *\n * __Warning:__ If the source Observable emits Observables quickly and\n * endlessly, and the inner Observables it emits generally complete slower than\n * the source emits, you can run into memory issues as the incoming Observables\n * collect in an unbounded buffer.\n *\n * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set\n * to `1`.\n *\n * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map(ev => Rx.Observable.interval(1000).take(4));\n * var firstOrder = higherOrder.concatAll();\n * firstOrder.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n *\n * @see {@link combineAll}\n * @see {@link concat}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link exhaust}\n * @see {@link mergeAll}\n * @see {@link switch}\n * @see {@link zipAll}\n *\n * @return {Observable} An Observable emitting values from all the inner\n * Observables concatenated.\n * @method concatAll\n * @owner Observable\n */\nfunction concatAll() {\n    return mergeAll_1.mergeAll(1);\n}\nexports.concatAll = concatAll;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/concatMap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar mergeMap_1 = __webpack_require__(\"./node_modules/rxjs/operators/mergeMap.js\");\n/* tslint:enable:max-line-length */\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable, in a serialized fashion waiting for each one to complete before\n * merging the next.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link concatAll}.</span>\n *\n * <img src=\"./img/concatMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. Each new inner Observable is\n * concatenated with the previous inner Observable.\n *\n * __Warning:__ if source values arrive endlessly and faster than their\n * corresponding inner Observables can complete, it will result in memory issues\n * as inner Observables amass in an unbounded buffer waiting for their turn to\n * be subscribed to.\n *\n * Note: `concatMap` is equivalent to `mergeMap` with concurrency parameter set\n * to `1`.\n *\n * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.concatMap(ev => Rx.Observable.interval(1000).take(4));\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n *\n * @see {@link concat}\n * @see {@link concatAll}\n * @see {@link concatMapTo}\n * @see {@link exhaustMap}\n * @see {@link mergeMap}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable that emits the result of applying the\n * projection function (and the optional `resultSelector`) to each item emitted\n * by the source Observable and taking values from each projected inner\n * Observable sequentially.\n * @method concatMap\n * @owner Observable\n */\nfunction concatMap(project, resultSelector) {\n    return mergeMap_1.mergeMap(project, resultSelector, 1);\n}\nexports.concatMap = concatMap;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/concatMapTo.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar concatMap_1 = __webpack_require__(\"./node_modules/rxjs/operators/concatMap.js\");\n/* tslint:enable:max-line-length */\n/**\n * Projects each source value to the same Observable which is merged multiple\n * times in a serialized fashion on the output Observable.\n *\n * <span class=\"informal\">It's like {@link concatMap}, but maps each value\n * always to the same inner Observable.</span>\n *\n * <img src=\"./img/concatMapTo.png\" width=\"100%\">\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then flattens those resulting Observables into one\n * single Observable, which is the output Observable. Each new `innerObservable`\n * instance emitted on the output Observable is concatenated with the previous\n * `innerObservable` instance.\n *\n * __Warning:__ if source values arrive endlessly and faster than their\n * corresponding inner Observables can complete, it will result in memory issues\n * as inner Observables amass in an unbounded buffer waiting for their turn to\n * be subscribed to.\n *\n * Note: `concatMapTo` is equivalent to `mergeMapTo` with concurrency parameter\n * set to `1`.\n *\n * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.concatMapTo(Rx.Observable.interval(1000).take(4));\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n *\n * @see {@link concat}\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link mergeMapTo}\n * @see {@link switchMapTo}\n *\n * @param {ObservableInput} innerObservable An Observable to replace each value from\n * the source Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An observable of values merged together by joining the\n * passed observable with itself, one after the other, for each value emitted\n * from the source.\n * @method concatMapTo\n * @owner Observable\n */\nfunction concatMapTo(innerObservable, resultSelector) {\n    return concatMap_1.concatMap(function () { return innerObservable; }, resultSelector);\n}\nexports.concatMapTo = concatMapTo;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/count.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Counts the number of emissions on the source and emits that number when the\n * source completes.\n *\n * <span class=\"informal\">Tells how many values were emitted, when the source\n * completes.</span>\n *\n * <img src=\"./img/count.png\" width=\"100%\">\n *\n * `count` transforms an Observable that emits values into an Observable that\n * emits a single value that represents the number of values emitted by the\n * source Observable. If the source Observable terminates with an error, `count`\n * will pass this error notification along without emitting a value first. If\n * the source Observable does not terminate at all, `count` will neither emit\n * a value nor terminate. This operator takes an optional `predicate` function\n * as argument, in which case the output emission will represent the number of\n * source values that matched `true` with the `predicate`.\n *\n * @example <caption>Counts how many seconds have passed before the first click happened</caption>\n * var seconds = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var secondsBeforeClick = seconds.takeUntil(clicks);\n * var result = secondsBeforeClick.count();\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Counts how many odd numbers are there between 1 and 7</caption>\n * var numbers = Rx.Observable.range(1, 7);\n * var result = numbers.count(i => i % 2 === 1);\n * result.subscribe(x => console.log(x));\n *\n * // Results in:\n * // 4\n *\n * @see {@link max}\n * @see {@link min}\n * @see {@link reduce}\n *\n * @param {function(value: T, i: number, source: Observable<T>): boolean} [predicate] A\n * boolean function to select what values are to be counted. It is provided with\n * arguments of:\n * - `value`: the value from the source Observable.\n * - `index`: the (zero-based) \"index\" of the value from the source Observable.\n * - `source`: the source Observable instance itself.\n * @return {Observable} An Observable of one number that represents the count as\n * described above.\n * @method count\n * @owner Observable\n */\nfunction count(predicate) {\n    return function (source) { return source.lift(new CountOperator(predicate, source)); };\n}\nexports.count = count;\nvar CountOperator = (function () {\n    function CountOperator(predicate, source) {\n        this.predicate = predicate;\n        this.source = source;\n    }\n    CountOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source));\n    };\n    return CountOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar CountSubscriber = (function (_super) {\n    __extends(CountSubscriber, _super);\n    function CountSubscriber(destination, predicate, source) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.source = source;\n        this.count = 0;\n        this.index = 0;\n    }\n    CountSubscriber.prototype._next = function (value) {\n        if (this.predicate) {\n            this._tryPredicate(value);\n        }\n        else {\n            this.count++;\n        }\n    };\n    CountSubscriber.prototype._tryPredicate = function (value) {\n        var result;\n        try {\n            result = this.predicate(value, this.index++, this.source);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        if (result) {\n            this.count++;\n        }\n    };\n    CountSubscriber.prototype._complete = function () {\n        this.destination.next(this.count);\n        this.destination.complete();\n    };\n    return CountSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/debounce.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Emits a value from the source Observable only after a particular time span\n * determined by another Observable has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link debounceTime}, but the time span of\n * emission silence is determined by a second Observable.</span>\n *\n * <img src=\"./img/debounce.png\" width=\"100%\">\n *\n * `debounce` delays values emitted by the source Observable, but drops previous\n * pending delayed emissions if a new value arrives on the source Observable.\n * This operator keeps track of the most recent value from the source\n * Observable, and spawns a duration Observable by calling the\n * `durationSelector` function. The value is emitted only when the duration\n * Observable emits a value or completes, and if no other value was emitted on\n * the source Observable since the duration Observable was spawned. If a new\n * value appears before the duration Observable emits, the previous value will\n * be dropped and will not be emitted on the output Observable.\n *\n * Like {@link debounceTime}, this is a rate-limiting operator, and also a\n * delay-like operator since output emissions do not necessarily occur at the\n * same time as they did on the source Observable.\n *\n * @example <caption>Emit the most recent click after a burst of clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.debounce(() => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delayWhen}\n * @see {@link throttle}\n *\n * @param {function(value: T): SubscribableOrPromise} durationSelector A function\n * that receives a value from the source Observable, for computing the timeout\n * duration for each source value, returned as an Observable or a Promise.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by the specified duration Observable returned by\n * `durationSelector`, and may drop some values if they occur too frequently.\n * @method debounce\n * @owner Observable\n */\nfunction debounce(durationSelector) {\n    return function (source) { return source.lift(new DebounceOperator(durationSelector)); };\n}\nexports.debounce = debounce;\nvar DebounceOperator = (function () {\n    function DebounceOperator(durationSelector) {\n        this.durationSelector = durationSelector;\n    }\n    DebounceOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector));\n    };\n    return DebounceOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DebounceSubscriber = (function (_super) {\n    __extends(DebounceSubscriber, _super);\n    function DebounceSubscriber(destination, durationSelector) {\n        _super.call(this, destination);\n        this.durationSelector = durationSelector;\n        this.hasValue = false;\n        this.durationSubscription = null;\n    }\n    DebounceSubscriber.prototype._next = function (value) {\n        try {\n            var result = this.durationSelector.call(this, value);\n            if (result) {\n                this._tryNext(value, result);\n            }\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    DebounceSubscriber.prototype._complete = function () {\n        this.emitValue();\n        this.destination.complete();\n    };\n    DebounceSubscriber.prototype._tryNext = function (value, duration) {\n        var subscription = this.durationSubscription;\n        this.value = value;\n        this.hasValue = true;\n        if (subscription) {\n            subscription.unsubscribe();\n            this.remove(subscription);\n        }\n        subscription = subscribeToResult_1.subscribeToResult(this, duration);\n        if (!subscription.closed) {\n            this.add(this.durationSubscription = subscription);\n        }\n    };\n    DebounceSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.emitValue();\n    };\n    DebounceSubscriber.prototype.notifyComplete = function () {\n        this.emitValue();\n    };\n    DebounceSubscriber.prototype.emitValue = function () {\n        if (this.hasValue) {\n            var value = this.value;\n            var subscription = this.durationSubscription;\n            if (subscription) {\n                this.durationSubscription = null;\n                subscription.unsubscribe();\n                this.remove(subscription);\n            }\n            this.value = null;\n            this.hasValue = false;\n            _super.prototype._next.call(this, value);\n        }\n    };\n    return DebounceSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/debounceTime.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\n/**\n * Emits a value from the source Observable only after a particular time span\n * has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link delay}, but passes only the most\n * recent value from each burst of emissions.</span>\n *\n * <img src=\"./img/debounceTime.png\" width=\"100%\">\n *\n * `debounceTime` delays values emitted by the source Observable, but drops\n * previous pending delayed emissions if a new value arrives on the source\n * Observable. This operator keeps track of the most recent value from the\n * source Observable, and emits that only when `dueTime` enough time has passed\n * without any other value appearing on the source Observable. If a new value\n * appears before `dueTime` silence occurs, the previous value will be dropped\n * and will not be emitted on the output Observable.\n *\n * This is a rate-limiting operator, because it is impossible for more than one\n * value to be emitted in any time window of duration `dueTime`, but it is also\n * a delay-like operator since output emissions do not occur at the same time as\n * they did on the source Observable. Optionally takes a {@link IScheduler} for\n * managing timers.\n *\n * @example <caption>Emit the most recent click after a burst of clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.debounceTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} dueTime The timeout duration in milliseconds (or the time\n * unit determined internally by the optional `scheduler`) for the window of\n * time required to wait for emission silence before emitting the most recent\n * source value.\n * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for\n * managing the timers that handle the timeout for each value.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by the specified `dueTime`, and may drop some values if they occur\n * too frequently.\n * @method debounceTime\n * @owner Observable\n */\nfunction debounceTime(dueTime, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return function (source) { return source.lift(new DebounceTimeOperator(dueTime, scheduler)); };\n}\nexports.debounceTime = debounceTime;\nvar DebounceTimeOperator = (function () {\n    function DebounceTimeOperator(dueTime, scheduler) {\n        this.dueTime = dueTime;\n        this.scheduler = scheduler;\n    }\n    DebounceTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));\n    };\n    return DebounceTimeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DebounceTimeSubscriber = (function (_super) {\n    __extends(DebounceTimeSubscriber, _super);\n    function DebounceTimeSubscriber(destination, dueTime, scheduler) {\n        _super.call(this, destination);\n        this.dueTime = dueTime;\n        this.scheduler = scheduler;\n        this.debouncedSubscription = null;\n        this.lastValue = null;\n        this.hasValue = false;\n    }\n    DebounceTimeSubscriber.prototype._next = function (value) {\n        this.clearDebounce();\n        this.lastValue = value;\n        this.hasValue = true;\n        this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));\n    };\n    DebounceTimeSubscriber.prototype._complete = function () {\n        this.debouncedNext();\n        this.destination.complete();\n    };\n    DebounceTimeSubscriber.prototype.debouncedNext = function () {\n        this.clearDebounce();\n        if (this.hasValue) {\n            this.destination.next(this.lastValue);\n            this.lastValue = null;\n            this.hasValue = false;\n        }\n    };\n    DebounceTimeSubscriber.prototype.clearDebounce = function () {\n        var debouncedSubscription = this.debouncedSubscription;\n        if (debouncedSubscription !== null) {\n            this.remove(debouncedSubscription);\n            debouncedSubscription.unsubscribe();\n            this.debouncedSubscription = null;\n        }\n    };\n    return DebounceTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchNext(subscriber) {\n    subscriber.debouncedNext();\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/defaultIfEmpty.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/* tslint:enable:max-line-length */\n/**\n * Emits a given value if the source Observable completes without emitting any\n * `next` value, otherwise mirrors the source Observable.\n *\n * <span class=\"informal\">If the source Observable turns out to be empty, then\n * this operator will emit a default value.</span>\n *\n * <img src=\"./img/defaultIfEmpty.png\" width=\"100%\">\n *\n * `defaultIfEmpty` emits the values emitted by the source Observable or a\n * specified default value if the source Observable is empty (completes without\n * having emitted any `next` value).\n *\n * @example <caption>If no clicks happen in 5 seconds, then emit \"no clicks\"</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var clicksBeforeFive = clicks.takeUntil(Rx.Observable.interval(5000));\n * var result = clicksBeforeFive.defaultIfEmpty('no clicks');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link empty}\n * @see {@link last}\n *\n * @param {any} [defaultValue=null] The default value used if the source\n * Observable is empty.\n * @return {Observable} An Observable that emits either the specified\n * `defaultValue` if the source Observable emits no items, or the values emitted\n * by the source Observable.\n * @method defaultIfEmpty\n * @owner Observable\n */\nfunction defaultIfEmpty(defaultValue) {\n    if (defaultValue === void 0) { defaultValue = null; }\n    return function (source) { return source.lift(new DefaultIfEmptyOperator(defaultValue)); };\n}\nexports.defaultIfEmpty = defaultIfEmpty;\nvar DefaultIfEmptyOperator = (function () {\n    function DefaultIfEmptyOperator(defaultValue) {\n        this.defaultValue = defaultValue;\n    }\n    DefaultIfEmptyOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n    };\n    return DefaultIfEmptyOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DefaultIfEmptySubscriber = (function (_super) {\n    __extends(DefaultIfEmptySubscriber, _super);\n    function DefaultIfEmptySubscriber(destination, defaultValue) {\n        _super.call(this, destination);\n        this.defaultValue = defaultValue;\n        this.isEmpty = true;\n    }\n    DefaultIfEmptySubscriber.prototype._next = function (value) {\n        this.isEmpty = false;\n        this.destination.next(value);\n    };\n    DefaultIfEmptySubscriber.prototype._complete = function () {\n        if (this.isEmpty) {\n            this.destination.next(this.defaultValue);\n        }\n        this.destination.complete();\n    };\n    return DefaultIfEmptySubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/delay.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\nvar isDate_1 = __webpack_require__(\"./node_modules/rxjs/util/isDate.js\");\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar Notification_1 = __webpack_require__(\"./node_modules/rxjs/Notification.js\");\n/**\n * Delays the emission of items from the source Observable by a given timeout or\n * until a given Date.\n *\n * <span class=\"informal\">Time shifts each item by some specified amount of\n * milliseconds.</span>\n *\n * <img src=\"./img/delay.png\" width=\"100%\">\n *\n * If the delay argument is a Number, this operator time shifts the source\n * Observable by that amount of time expressed in milliseconds. The relative\n * time intervals between the values are preserved.\n *\n * If the delay argument is a Date, this operator time shifts the start of the\n * Observable execution until the given date occurs.\n *\n * @example <caption>Delay each click by one second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var delayedClicks = clicks.delay(1000); // each click emitted after 1 second\n * delayedClicks.subscribe(x => console.log(x));\n *\n * @example <caption>Delay all clicks until a future date happens</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var date = new Date('March 15, 2050 12:00:00'); // in the future\n * var delayedClicks = clicks.delay(date); // click emitted only after that date\n * delayedClicks.subscribe(x => console.log(x));\n *\n * @see {@link debounceTime}\n * @see {@link delayWhen}\n *\n * @param {number|Date} delay The delay duration in milliseconds (a `number`) or\n * a `Date` until which the emission of the source items is delayed.\n * @param {Scheduler} [scheduler=async] The IScheduler to use for\n * managing the timers that handle the time-shift for each item.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by the specified timeout or Date.\n * @method delay\n * @owner Observable\n */\nfunction delay(delay, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    var absoluteDelay = isDate_1.isDate(delay);\n    var delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(delay);\n    return function (source) { return source.lift(new DelayOperator(delayFor, scheduler)); };\n}\nexports.delay = delay;\nvar DelayOperator = (function () {\n    function DelayOperator(delay, scheduler) {\n        this.delay = delay;\n        this.scheduler = scheduler;\n    }\n    DelayOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));\n    };\n    return DelayOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DelaySubscriber = (function (_super) {\n    __extends(DelaySubscriber, _super);\n    function DelaySubscriber(destination, delay, scheduler) {\n        _super.call(this, destination);\n        this.delay = delay;\n        this.scheduler = scheduler;\n        this.queue = [];\n        this.active = false;\n        this.errored = false;\n    }\n    DelaySubscriber.dispatch = function (state) {\n        var source = state.source;\n        var queue = source.queue;\n        var scheduler = state.scheduler;\n        var destination = state.destination;\n        while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {\n            queue.shift().notification.observe(destination);\n        }\n        if (queue.length > 0) {\n            var delay_1 = Math.max(0, queue[0].time - scheduler.now());\n            this.schedule(state, delay_1);\n        }\n        else {\n            this.unsubscribe();\n            source.active = false;\n        }\n    };\n    DelaySubscriber.prototype._schedule = function (scheduler) {\n        this.active = true;\n        this.add(scheduler.schedule(DelaySubscriber.dispatch, this.delay, {\n            source: this, destination: this.destination, scheduler: scheduler\n        }));\n    };\n    DelaySubscriber.prototype.scheduleNotification = function (notification) {\n        if (this.errored === true) {\n            return;\n        }\n        var scheduler = this.scheduler;\n        var message = new DelayMessage(scheduler.now() + this.delay, notification);\n        this.queue.push(message);\n        if (this.active === false) {\n            this._schedule(scheduler);\n        }\n    };\n    DelaySubscriber.prototype._next = function (value) {\n        this.scheduleNotification(Notification_1.Notification.createNext(value));\n    };\n    DelaySubscriber.prototype._error = function (err) {\n        this.errored = true;\n        this.queue = [];\n        this.destination.error(err);\n    };\n    DelaySubscriber.prototype._complete = function () {\n        this.scheduleNotification(Notification_1.Notification.createComplete());\n    };\n    return DelaySubscriber;\n}(Subscriber_1.Subscriber));\nvar DelayMessage = (function () {\n    function DelayMessage(time, notification) {\n        this.time = time;\n        this.notification = notification;\n    }\n    return DelayMessage;\n}());\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/delayWhen.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar Observable_1 = __webpack_require__(\"./node_modules/rxjs/Observable.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Delays the emission of items from the source Observable by a given time span\n * determined by the emissions of another Observable.\n *\n * <span class=\"informal\">It's like {@link delay}, but the time span of the\n * delay duration is determined by a second Observable.</span>\n *\n * <img src=\"./img/delayWhen.png\" width=\"100%\">\n *\n * `delayWhen` time shifts each emitted value from the source Observable by a\n * time span determined by another Observable. When the source emits a value,\n * the `delayDurationSelector` function is called with the source value as\n * argument, and should return an Observable, called the \"duration\" Observable.\n * The source value is emitted on the output Observable only when the duration\n * Observable emits a value or completes.\n *\n * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which\n * is an Observable. When `subscriptionDelay` emits its first value or\n * completes, the source Observable is subscribed to and starts behaving like\n * described in the previous paragraph. If `subscriptionDelay` is not provided,\n * `delayWhen` will subscribe to the source Observable as soon as the output\n * Observable is subscribed.\n *\n * @example <caption>Delay each click by a random amount of time, between 0 and 5 seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var delayedClicks = clicks.delayWhen(event =>\n *   Rx.Observable.interval(Math.random() * 5000)\n * );\n * delayedClicks.subscribe(x => console.log(x));\n *\n * @see {@link debounce}\n * @see {@link delay}\n *\n * @param {function(value: T): Observable} delayDurationSelector A function that\n * returns an Observable for each value emitted by the source Observable, which\n * is then used to delay the emission of that item on the output Observable\n * until the Observable returned from this function emits a value.\n * @param {Observable} subscriptionDelay An Observable that triggers the\n * subscription to the source Observable once it emits any value.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by an amount of time specified by the Observable returned by\n * `delayDurationSelector`.\n * @method delayWhen\n * @owner Observable\n */\nfunction delayWhen(delayDurationSelector, subscriptionDelay) {\n    if (subscriptionDelay) {\n        return function (source) {\n            return new SubscriptionDelayObservable(source, subscriptionDelay)\n                .lift(new DelayWhenOperator(delayDurationSelector));\n        };\n    }\n    return function (source) { return source.lift(new DelayWhenOperator(delayDurationSelector)); };\n}\nexports.delayWhen = delayWhen;\nvar DelayWhenOperator = (function () {\n    function DelayWhenOperator(delayDurationSelector) {\n        this.delayDurationSelector = delayDurationSelector;\n    }\n    DelayWhenOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DelayWhenSubscriber(subscriber, this.delayDurationSelector));\n    };\n    return DelayWhenOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DelayWhenSubscriber = (function (_super) {\n    __extends(DelayWhenSubscriber, _super);\n    function DelayWhenSubscriber(destination, delayDurationSelector) {\n        _super.call(this, destination);\n        this.delayDurationSelector = delayDurationSelector;\n        this.completed = false;\n        this.delayNotifierSubscriptions = [];\n        this.values = [];\n    }\n    DelayWhenSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.destination.next(outerValue);\n        this.removeSubscription(innerSub);\n        this.tryComplete();\n    };\n    DelayWhenSubscriber.prototype.notifyError = function (error, innerSub) {\n        this._error(error);\n    };\n    DelayWhenSubscriber.prototype.notifyComplete = function (innerSub) {\n        var value = this.removeSubscription(innerSub);\n        if (value) {\n            this.destination.next(value);\n        }\n        this.tryComplete();\n    };\n    DelayWhenSubscriber.prototype._next = function (value) {\n        try {\n            var delayNotifier = this.delayDurationSelector(value);\n            if (delayNotifier) {\n                this.tryDelay(delayNotifier, value);\n            }\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    DelayWhenSubscriber.prototype._complete = function () {\n        this.completed = true;\n        this.tryComplete();\n    };\n    DelayWhenSubscriber.prototype.removeSubscription = function (subscription) {\n        subscription.unsubscribe();\n        var subscriptionIdx = this.delayNotifierSubscriptions.indexOf(subscription);\n        var value = null;\n        if (subscriptionIdx !== -1) {\n            value = this.values[subscriptionIdx];\n            this.delayNotifierSubscriptions.splice(subscriptionIdx, 1);\n            this.values.splice(subscriptionIdx, 1);\n        }\n        return value;\n    };\n    DelayWhenSubscriber.prototype.tryDelay = function (delayNotifier, value) {\n        var notifierSubscription = subscribeToResult_1.subscribeToResult(this, delayNotifier, value);\n        if (notifierSubscription && !notifierSubscription.closed) {\n            this.add(notifierSubscription);\n            this.delayNotifierSubscriptions.push(notifierSubscription);\n        }\n        this.values.push(value);\n    };\n    DelayWhenSubscriber.prototype.tryComplete = function () {\n        if (this.completed && this.delayNotifierSubscriptions.length === 0) {\n            this.destination.complete();\n        }\n    };\n    return DelayWhenSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SubscriptionDelayObservable = (function (_super) {\n    __extends(SubscriptionDelayObservable, _super);\n    function SubscriptionDelayObservable(/** @deprecated internal use only */ source, subscriptionDelay) {\n        _super.call(this);\n        this.source = source;\n        this.subscriptionDelay = subscriptionDelay;\n    }\n    /** @deprecated internal use only */ SubscriptionDelayObservable.prototype._subscribe = function (subscriber) {\n        this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source));\n    };\n    return SubscriptionDelayObservable;\n}(Observable_1.Observable));\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SubscriptionDelaySubscriber = (function (_super) {\n    __extends(SubscriptionDelaySubscriber, _super);\n    function SubscriptionDelaySubscriber(parent, source) {\n        _super.call(this);\n        this.parent = parent;\n        this.source = source;\n        this.sourceSubscribed = false;\n    }\n    SubscriptionDelaySubscriber.prototype._next = function (unused) {\n        this.subscribeToSource();\n    };\n    SubscriptionDelaySubscriber.prototype._error = function (err) {\n        this.unsubscribe();\n        this.parent.error(err);\n    };\n    SubscriptionDelaySubscriber.prototype._complete = function () {\n        this.subscribeToSource();\n    };\n    SubscriptionDelaySubscriber.prototype.subscribeToSource = function () {\n        if (!this.sourceSubscribed) {\n            this.sourceSubscribed = true;\n            this.unsubscribe();\n            this.source.subscribe(this.parent);\n        }\n    };\n    return SubscriptionDelaySubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/dematerialize.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Converts an Observable of {@link Notification} objects into the emissions\n * that they represent.\n *\n * <span class=\"informal\">Unwraps {@link Notification} objects as actual `next`,\n * `error` and `complete` emissions. The opposite of {@link materialize}.</span>\n *\n * <img src=\"./img/dematerialize.png\" width=\"100%\">\n *\n * `dematerialize` is assumed to operate an Observable that only emits\n * {@link Notification} objects as `next` emissions, and does not emit any\n * `error`. Such Observable is the output of a `materialize` operation. Those\n * notifications are then unwrapped using the metadata they contain, and emitted\n * as `next`, `error`, and `complete` on the output Observable.\n *\n * Use this operator in conjunction with {@link materialize}.\n *\n * @example <caption>Convert an Observable of Notifications to an actual Observable</caption>\n * var notifA = new Rx.Notification('N', 'A');\n * var notifB = new Rx.Notification('N', 'B');\n * var notifE = new Rx.Notification('E', void 0,\n *   new TypeError('x.toUpperCase is not a function')\n * );\n * var materialized = Rx.Observable.of(notifA, notifB, notifE);\n * var upperCase = materialized.dematerialize();\n * upperCase.subscribe(x => console.log(x), e => console.error(e));\n *\n * // Results in:\n * // A\n * // B\n * // TypeError: x.toUpperCase is not a function\n *\n * @see {@link Notification}\n * @see {@link materialize}\n *\n * @return {Observable} An Observable that emits items and notifications\n * embedded in Notification objects emitted by the source Observable.\n * @method dematerialize\n * @owner Observable\n */\nfunction dematerialize() {\n    return function dematerializeOperatorFunction(source) {\n        return source.lift(new DeMaterializeOperator());\n    };\n}\nexports.dematerialize = dematerialize;\nvar DeMaterializeOperator = (function () {\n    function DeMaterializeOperator() {\n    }\n    DeMaterializeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DeMaterializeSubscriber(subscriber));\n    };\n    return DeMaterializeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DeMaterializeSubscriber = (function (_super) {\n    __extends(DeMaterializeSubscriber, _super);\n    function DeMaterializeSubscriber(destination) {\n        _super.call(this, destination);\n    }\n    DeMaterializeSubscriber.prototype._next = function (value) {\n        value.observe(this.destination);\n    };\n    return DeMaterializeSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/distinct.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\nvar Set_1 = __webpack_require__(\"./node_modules/rxjs/util/Set.js\");\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items.\n *\n * If a keySelector function is provided, then it will project each value from the source observable into a new value that it will\n * check for equality with previously projected values. If a keySelector function is not provided, it will use each value from the\n * source observable directly with an equality check against previous values.\n *\n * In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking.\n *\n * In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the\n * hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct`\n * use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so\n * that the internal `Set` can be \"flushed\", basically clearing it of values.\n *\n * @example <caption>A simple example with numbers</caption>\n * Observable.of(1, 1, 2, 2, 2, 1, 2, 3, 4, 3, 2, 1)\n *   .distinct()\n *   .subscribe(x => console.log(x)); // 1, 2, 3, 4\n *\n * @example <caption>An example using a keySelector function</caption>\n * interface Person {\n *    age: number,\n *    name: string\n * }\n *\n * Observable.of<Person>(\n *     { age: 4, name: 'Foo'},\n *     { age: 7, name: 'Bar'},\n *     { age: 5, name: 'Foo'})\n *     .distinct((p: Person) => p.name)\n *     .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n *\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n *\n * @param {function} [keySelector] Optional function to select which value you want to check as distinct.\n * @param {Observable} [flushes] Optional Observable for flushing the internal HashSet of the operator.\n * @return {Observable} An Observable that emits items from the source Observable with distinct values.\n * @method distinct\n * @owner Observable\n */\nfunction distinct(keySelector, flushes) {\n    return function (source) { return source.lift(new DistinctOperator(keySelector, flushes)); };\n}\nexports.distinct = distinct;\nvar DistinctOperator = (function () {\n    function DistinctOperator(keySelector, flushes) {\n        this.keySelector = keySelector;\n        this.flushes = flushes;\n    }\n    DistinctOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes));\n    };\n    return DistinctOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DistinctSubscriber = (function (_super) {\n    __extends(DistinctSubscriber, _super);\n    function DistinctSubscriber(destination, keySelector, flushes) {\n        _super.call(this, destination);\n        this.keySelector = keySelector;\n        this.values = new Set_1.Set();\n        if (flushes) {\n            this.add(subscribeToResult_1.subscribeToResult(this, flushes));\n        }\n    }\n    DistinctSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.values.clear();\n    };\n    DistinctSubscriber.prototype.notifyError = function (error, innerSub) {\n        this._error(error);\n    };\n    DistinctSubscriber.prototype._next = function (value) {\n        if (this.keySelector) {\n            this._useKeySelector(value);\n        }\n        else {\n            this._finalizeNext(value, value);\n        }\n    };\n    DistinctSubscriber.prototype._useKeySelector = function (value) {\n        var key;\n        var destination = this.destination;\n        try {\n            key = this.keySelector(value);\n        }\n        catch (err) {\n            destination.error(err);\n            return;\n        }\n        this._finalizeNext(key, value);\n    };\n    DistinctSubscriber.prototype._finalizeNext = function (key, value) {\n        var values = this.values;\n        if (!values.has(key)) {\n            values.add(key);\n            this.destination.next(value);\n        }\n    };\n    return DistinctSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.DistinctSubscriber = DistinctSubscriber;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/distinctUntilChanged.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\n/* tslint:enable:max-line-length */\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item.\n *\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n *\n * If a comparator function is not provided, an equality check is used by default.\n *\n * @example <caption>A simple example with numbers</caption>\n * Observable.of(1, 1, 2, 2, 2, 1, 1, 2, 3, 3, 4)\n *   .distinctUntilChanged()\n *   .subscribe(x => console.log(x)); // 1, 2, 1, 2, 3, 4\n *\n * @example <caption>An example using a compare function</caption>\n * interface Person {\n *    age: number,\n *    name: string\n * }\n *\n * Observable.of<Person>(\n *     { age: 4, name: 'Foo'},\n *     { age: 7, name: 'Bar'},\n *     { age: 5, name: 'Foo'})\n *     { age: 6, name: 'Foo'})\n *     .distinctUntilChanged((p: Person, q: Person) => p.name === q.name)\n *     .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo' }\n *\n * @see {@link distinct}\n * @see {@link distinctUntilKeyChanged}\n *\n * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return {Observable} An Observable that emits items from the source Observable with distinct values.\n * @method distinctUntilChanged\n * @owner Observable\n */\nfunction distinctUntilChanged(compare, keySelector) {\n    return function (source) { return source.lift(new DistinctUntilChangedOperator(compare, keySelector)); };\n}\nexports.distinctUntilChanged = distinctUntilChanged;\nvar DistinctUntilChangedOperator = (function () {\n    function DistinctUntilChangedOperator(compare, keySelector) {\n        this.compare = compare;\n        this.keySelector = keySelector;\n    }\n    DistinctUntilChangedOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));\n    };\n    return DistinctUntilChangedOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DistinctUntilChangedSubscriber = (function (_super) {\n    __extends(DistinctUntilChangedSubscriber, _super);\n    function DistinctUntilChangedSubscriber(destination, compare, keySelector) {\n        _super.call(this, destination);\n        this.keySelector = keySelector;\n        this.hasKey = false;\n        if (typeof compare === 'function') {\n            this.compare = compare;\n        }\n    }\n    DistinctUntilChangedSubscriber.prototype.compare = function (x, y) {\n        return x === y;\n    };\n    DistinctUntilChangedSubscriber.prototype._next = function (value) {\n        var keySelector = this.keySelector;\n        var key = value;\n        if (keySelector) {\n            key = tryCatch_1.tryCatch(this.keySelector)(value);\n            if (key === errorObject_1.errorObject) {\n                return this.destination.error(errorObject_1.errorObject.e);\n            }\n        }\n        var result = false;\n        if (this.hasKey) {\n            result = tryCatch_1.tryCatch(this.compare)(this.key, key);\n            if (result === errorObject_1.errorObject) {\n                return this.destination.error(errorObject_1.errorObject.e);\n            }\n        }\n        else {\n            this.hasKey = true;\n        }\n        if (Boolean(result) === false) {\n            this.key = key;\n            this.destination.next(value);\n        }\n    };\n    return DistinctUntilChangedSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/distinctUntilKeyChanged.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar distinctUntilChanged_1 = __webpack_require__(\"./node_modules/rxjs/operators/distinctUntilChanged.js\");\n/* tslint:enable:max-line-length */\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item,\n * using a property accessed by using the key provided to check if the two items are distinct.\n *\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n *\n * If a comparator function is not provided, an equality check is used by default.\n *\n * @example <caption>An example comparing the name of persons</caption>\n *\n *  interface Person {\n *     age: number,\n *     name: string\n *  }\n *\n * Observable.of<Person>(\n *     { age: 4, name: 'Foo'},\n *     { age: 7, name: 'Bar'},\n *     { age: 5, name: 'Foo'},\n *     { age: 6, name: 'Foo'})\n *     .distinctUntilKeyChanged('name')\n *     .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo' }\n *\n * @example <caption>An example comparing the first letters of the name</caption>\n *\n * interface Person {\n *     age: number,\n *     name: string\n *  }\n *\n * Observable.of<Person>(\n *     { age: 4, name: 'Foo1'},\n *     { age: 7, name: 'Bar'},\n *     { age: 5, name: 'Foo2'},\n *     { age: 6, name: 'Foo3'})\n *     .distinctUntilKeyChanged('name', (x: string, y: string) => x.substring(0, 3) === y.substring(0, 3))\n *     .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo1' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo2' }\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n *\n * @param {string} key String key for object property lookup on each item.\n * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return {Observable} An Observable that emits items from the source Observable with distinct values based on the key specified.\n * @method distinctUntilKeyChanged\n * @owner Observable\n */\nfunction distinctUntilKeyChanged(key, compare) {\n    return distinctUntilChanged_1.distinctUntilChanged(function (x, y) { return compare ? compare(x[key], y[key]) : x[key] === y[key]; });\n}\nexports.distinctUntilKeyChanged = distinctUntilKeyChanged;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/elementAt.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar ArgumentOutOfRangeError_1 = __webpack_require__(\"./node_modules/rxjs/util/ArgumentOutOfRangeError.js\");\n/**\n * Emits the single value at the specified `index` in a sequence of emissions\n * from the source Observable.\n *\n * <span class=\"informal\">Emits only the i-th value, then completes.</span>\n *\n * <img src=\"./img/elementAt.png\" width=\"100%\">\n *\n * `elementAt` returns an Observable that emits the item at the specified\n * `index` in the source Observable, or a default value if that `index` is out\n * of range and the `default` argument is provided. If the `default` argument is\n * not given and the `index` is out of range, the output Observable will emit an\n * `ArgumentOutOfRangeError` error.\n *\n * @example <caption>Emit only the third click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.elementAt(2);\n * result.subscribe(x => console.log(x));\n *\n * // Results in:\n * // click 1 = nothing\n * // click 2 = nothing\n * // click 3 = MouseEvent object logged to console\n *\n * @see {@link first}\n * @see {@link last}\n * @see {@link skip}\n * @see {@link single}\n * @see {@link take}\n *\n * @throws {ArgumentOutOfRangeError} When using `elementAt(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0` or the\n * Observable has completed before emitting the i-th `next` notification.\n *\n * @param {number} index Is the number `i` for the i-th source emission that has\n * happened since the subscription, starting from the number `0`.\n * @param {T} [defaultValue] The default value returned for missing indices.\n * @return {Observable} An Observable that emits a single item, if it is found.\n * Otherwise, will emit the default value if given. If not, then emits an error.\n * @method elementAt\n * @owner Observable\n */\nfunction elementAt(index, defaultValue) {\n    return function (source) { return source.lift(new ElementAtOperator(index, defaultValue)); };\n}\nexports.elementAt = elementAt;\nvar ElementAtOperator = (function () {\n    function ElementAtOperator(index, defaultValue) {\n        this.index = index;\n        this.defaultValue = defaultValue;\n        if (index < 0) {\n            throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;\n        }\n    }\n    ElementAtOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ElementAtSubscriber(subscriber, this.index, this.defaultValue));\n    };\n    return ElementAtOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ElementAtSubscriber = (function (_super) {\n    __extends(ElementAtSubscriber, _super);\n    function ElementAtSubscriber(destination, index, defaultValue) {\n        _super.call(this, destination);\n        this.index = index;\n        this.defaultValue = defaultValue;\n    }\n    ElementAtSubscriber.prototype._next = function (x) {\n        if (this.index-- === 0) {\n            this.destination.next(x);\n            this.destination.complete();\n        }\n    };\n    ElementAtSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        if (this.index >= 0) {\n            if (typeof this.defaultValue !== 'undefined') {\n                destination.next(this.defaultValue);\n            }\n            else {\n                destination.error(new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError);\n            }\n        }\n        destination.complete();\n    };\n    return ElementAtSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/every.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Returns an Observable that emits whether or not every item of the source satisfies the condition specified.\n *\n * @example <caption>A simple example emitting true if all elements are less than 5, false otherwise</caption>\n *  Observable.of(1, 2, 3, 4, 5, 6)\n *     .every(x => x < 5)\n *     .subscribe(x => console.log(x)); // -> false\n *\n * @param {function} predicate A function for determining if an item meets a specified condition.\n * @param {any} [thisArg] Optional object to use for `this` in the callback.\n * @return {Observable} An Observable of booleans that determines if all items of the source Observable meet the condition specified.\n * @method every\n * @owner Observable\n */\nfunction every(predicate, thisArg) {\n    return function (source) { return source.lift(new EveryOperator(predicate, thisArg, source)); };\n}\nexports.every = every;\nvar EveryOperator = (function () {\n    function EveryOperator(predicate, thisArg, source) {\n        this.predicate = predicate;\n        this.thisArg = thisArg;\n        this.source = source;\n    }\n    EveryOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));\n    };\n    return EveryOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar EverySubscriber = (function (_super) {\n    __extends(EverySubscriber, _super);\n    function EverySubscriber(destination, predicate, thisArg, source) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.thisArg = thisArg;\n        this.source = source;\n        this.index = 0;\n        this.thisArg = thisArg || this;\n    }\n    EverySubscriber.prototype.notifyComplete = function (everyValueMatch) {\n        this.destination.next(everyValueMatch);\n        this.destination.complete();\n    };\n    EverySubscriber.prototype._next = function (value) {\n        var result = false;\n        try {\n            result = this.predicate.call(this.thisArg, value, this.index++, this.source);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        if (!result) {\n            this.notifyComplete(false);\n        }\n    };\n    EverySubscriber.prototype._complete = function () {\n        this.notifyComplete(true);\n    };\n    return EverySubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/exhaust.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Converts a higher-order Observable into a first-order Observable by dropping\n * inner Observables while the previous inner Observable has not yet completed.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by dropping the\n * next inner Observables while the current inner is still executing.</span>\n *\n * <img src=\"./img/exhaust.png\" width=\"100%\">\n *\n * `exhaust` subscribes to an Observable that emits Observables, also known as a\n * higher-order Observable. Each time it observes one of these emitted inner\n * Observables, the output Observable begins emitting the items emitted by that\n * inner Observable. So far, it behaves like {@link mergeAll}. However,\n * `exhaust` ignores every new inner Observable if the previous Observable has\n * not yet completed. Once that one completes, it will accept and flatten the\n * next inner Observable and repeat this process.\n *\n * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000).take(5));\n * var result = higherOrder.exhaust();\n * result.subscribe(x => console.log(x));\n *\n * @see {@link combineAll}\n * @see {@link concatAll}\n * @see {@link switch}\n * @see {@link mergeAll}\n * @see {@link exhaustMap}\n * @see {@link zipAll}\n *\n * @return {Observable} An Observable that takes a source of Observables and propagates the first observable\n * exclusively until it completes before subscribing to the next.\n * @method exhaust\n * @owner Observable\n */\nfunction exhaust() {\n    return function (source) { return source.lift(new SwitchFirstOperator()); };\n}\nexports.exhaust = exhaust;\nvar SwitchFirstOperator = (function () {\n    function SwitchFirstOperator() {\n    }\n    SwitchFirstOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SwitchFirstSubscriber(subscriber));\n    };\n    return SwitchFirstOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SwitchFirstSubscriber = (function (_super) {\n    __extends(SwitchFirstSubscriber, _super);\n    function SwitchFirstSubscriber(destination) {\n        _super.call(this, destination);\n        this.hasCompleted = false;\n        this.hasSubscription = false;\n    }\n    SwitchFirstSubscriber.prototype._next = function (value) {\n        if (!this.hasSubscription) {\n            this.hasSubscription = true;\n            this.add(subscribeToResult_1.subscribeToResult(this, value));\n        }\n    };\n    SwitchFirstSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (!this.hasSubscription) {\n            this.destination.complete();\n        }\n    };\n    SwitchFirstSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.remove(innerSub);\n        this.hasSubscription = false;\n        if (this.hasCompleted) {\n            this.destination.complete();\n        }\n    };\n    return SwitchFirstSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/exhaustMap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/* tslint:enable:max-line-length */\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable only if the previous projected Observable has completed.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link exhaust}.</span>\n *\n * <img src=\"./img/exhaustMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. When it projects a source value to\n * an Observable, the output Observable begins emitting the items emitted by\n * that projected Observable. However, `exhaustMap` ignores every new projected\n * Observable if the previous projected Observable has not yet completed. Once\n * that one completes, it will accept and flatten the next projected Observable\n * and repeat this process.\n *\n * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.exhaustMap((ev) => Rx.Observable.interval(1000).take(5));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMap}\n * @see {@link exhaust}\n * @see {@link mergeMap}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable containing projected Observables\n * of each item of the source, ignoring projected Observables that start before\n * their preceding Observable has completed.\n * @method exhaustMap\n * @owner Observable\n */\nfunction exhaustMap(project, resultSelector) {\n    return function (source) { return source.lift(new SwitchFirstMapOperator(project, resultSelector)); };\n}\nexports.exhaustMap = exhaustMap;\nvar SwitchFirstMapOperator = (function () {\n    function SwitchFirstMapOperator(project, resultSelector) {\n        this.project = project;\n        this.resultSelector = resultSelector;\n    }\n    SwitchFirstMapOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SwitchFirstMapSubscriber(subscriber, this.project, this.resultSelector));\n    };\n    return SwitchFirstMapOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SwitchFirstMapSubscriber = (function (_super) {\n    __extends(SwitchFirstMapSubscriber, _super);\n    function SwitchFirstMapSubscriber(destination, project, resultSelector) {\n        _super.call(this, destination);\n        this.project = project;\n        this.resultSelector = resultSelector;\n        this.hasSubscription = false;\n        this.hasCompleted = false;\n        this.index = 0;\n    }\n    SwitchFirstMapSubscriber.prototype._next = function (value) {\n        if (!this.hasSubscription) {\n            this.tryNext(value);\n        }\n    };\n    SwitchFirstMapSubscriber.prototype.tryNext = function (value) {\n        var index = this.index++;\n        var destination = this.destination;\n        try {\n            var result = this.project(value, index);\n            this.hasSubscription = true;\n            this.add(subscribeToResult_1.subscribeToResult(this, result, value, index));\n        }\n        catch (err) {\n            destination.error(err);\n        }\n    };\n    SwitchFirstMapSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (!this.hasSubscription) {\n            this.destination.complete();\n        }\n    };\n    SwitchFirstMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        if (resultSelector) {\n            this.trySelectResult(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        else {\n            destination.next(innerValue);\n        }\n    };\n    SwitchFirstMapSubscriber.prototype.trySelectResult = function (outerValue, innerValue, outerIndex, innerIndex) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        try {\n            var result = resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n            destination.next(result);\n        }\n        catch (err) {\n            destination.error(err);\n        }\n    };\n    SwitchFirstMapSubscriber.prototype.notifyError = function (err) {\n        this.destination.error(err);\n    };\n    SwitchFirstMapSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.remove(innerSub);\n        this.hasSubscription = false;\n        if (this.hasCompleted) {\n            this.destination.complete();\n        }\n    };\n    return SwitchFirstMapSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/expand.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/* tslint:enable:max-line-length */\n/**\n * Recursively projects each source value to an Observable which is merged in\n * the output Observable.\n *\n * <span class=\"informal\">It's similar to {@link mergeMap}, but applies the\n * projection function to every source value as well as every output value.\n * It's recursive.</span>\n *\n * <img src=\"./img/expand.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger. *Expand* will re-emit on the output\n * Observable every source value. Then, each output value is given to the\n * `project` function which returns an inner Observable to be merged on the\n * output Observable. Those output values resulting from the projection are also\n * given to the `project` function to produce new output values. This is how\n * *expand* behaves recursively.\n *\n * @example <caption>Start emitting the powers of two on every click, at most 10 of them</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var powersOfTwo = clicks\n *   .mapTo(1)\n *   .expand(x => Rx.Observable.of(2 * x).delay(1000))\n *   .take(10);\n * powersOfTwo.subscribe(x => console.log(x));\n *\n * @see {@link mergeMap}\n * @see {@link mergeScan}\n *\n * @param {function(value: T, index: number) => Observable} project A function\n * that, when applied to an item emitted by the source or the output Observable,\n * returns an Observable.\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {Scheduler} [scheduler=null] The IScheduler to use for subscribing to\n * each projected inner Observable.\n * @return {Observable} An Observable that emits the source values and also\n * result of applying the projection function to each value emitted on the\n * output Observable and and merging the results of the Observables obtained\n * from this transformation.\n * @method expand\n * @owner Observable\n */\nfunction expand(project, concurrent, scheduler) {\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n    if (scheduler === void 0) { scheduler = undefined; }\n    concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent;\n    return function (source) { return source.lift(new ExpandOperator(project, concurrent, scheduler)); };\n}\nexports.expand = expand;\nvar ExpandOperator = (function () {\n    function ExpandOperator(project, concurrent, scheduler) {\n        this.project = project;\n        this.concurrent = concurrent;\n        this.scheduler = scheduler;\n    }\n    ExpandOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ExpandSubscriber(subscriber, this.project, this.concurrent, this.scheduler));\n    };\n    return ExpandOperator;\n}());\nexports.ExpandOperator = ExpandOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ExpandSubscriber = (function (_super) {\n    __extends(ExpandSubscriber, _super);\n    function ExpandSubscriber(destination, project, concurrent, scheduler) {\n        _super.call(this, destination);\n        this.project = project;\n        this.concurrent = concurrent;\n        this.scheduler = scheduler;\n        this.index = 0;\n        this.active = 0;\n        this.hasCompleted = false;\n        if (concurrent < Number.POSITIVE_INFINITY) {\n            this.buffer = [];\n        }\n    }\n    ExpandSubscriber.dispatch = function (arg) {\n        var subscriber = arg.subscriber, result = arg.result, value = arg.value, index = arg.index;\n        subscriber.subscribeToProjection(result, value, index);\n    };\n    ExpandSubscriber.prototype._next = function (value) {\n        var destination = this.destination;\n        if (destination.closed) {\n            this._complete();\n            return;\n        }\n        var index = this.index++;\n        if (this.active < this.concurrent) {\n            destination.next(value);\n            var result = tryCatch_1.tryCatch(this.project)(value, index);\n            if (result === errorObject_1.errorObject) {\n                destination.error(errorObject_1.errorObject.e);\n            }\n            else if (!this.scheduler) {\n                this.subscribeToProjection(result, value, index);\n            }\n            else {\n                var state = { subscriber: this, result: result, value: value, index: index };\n                this.add(this.scheduler.schedule(ExpandSubscriber.dispatch, 0, state));\n            }\n        }\n        else {\n            this.buffer.push(value);\n        }\n    };\n    ExpandSubscriber.prototype.subscribeToProjection = function (result, value, index) {\n        this.active++;\n        this.add(subscribeToResult_1.subscribeToResult(this, result, value, index));\n    };\n    ExpandSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (this.hasCompleted && this.active === 0) {\n            this.destination.complete();\n        }\n    };\n    ExpandSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this._next(innerValue);\n    };\n    ExpandSubscriber.prototype.notifyComplete = function (innerSub) {\n        var buffer = this.buffer;\n        this.remove(innerSub);\n        this.active--;\n        if (buffer && buffer.length > 0) {\n            this._next(buffer.shift());\n        }\n        if (this.hasCompleted && this.active === 0) {\n            this.destination.complete();\n        }\n    };\n    return ExpandSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.ExpandSubscriber = ExpandSubscriber;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/filter.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/* tslint:enable:max-line-length */\n/**\n * Filter items emitted by the source Observable by only emitting those that\n * satisfy a specified predicate.\n *\n * <span class=\"informal\">Like\n * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),\n * it only emits a value from the source if it passes a criterion function.</span>\n *\n * <img src=\"./img/filter.png\" width=\"100%\">\n *\n * Similar to the well-known `Array.prototype.filter` method, this operator\n * takes values from the source Observable, passes them through a `predicate`\n * function and only emits those values that yielded `true`.\n *\n * @example <caption>Emit only click events whose target was a DIV element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var clicksOnDivs = clicks.filter(ev => ev.target.tagName === 'DIV');\n * clicksOnDivs.subscribe(x => console.log(x));\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n * @see {@link ignoreElements}\n * @see {@link partition}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted, if `false` the value is not passed to the output\n * Observable. The `index` parameter is the number `i` for the i-th source\n * emission that has happened since the subscription, starting from the number\n * `0`.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable} An Observable of values from the source that were\n * allowed by the `predicate` function.\n * @method filter\n * @owner Observable\n */\nfunction filter(predicate, thisArg) {\n    return function filterOperatorFunction(source) {\n        return source.lift(new FilterOperator(predicate, thisArg));\n    };\n}\nexports.filter = filter;\nvar FilterOperator = (function () {\n    function FilterOperator(predicate, thisArg) {\n        this.predicate = predicate;\n        this.thisArg = thisArg;\n    }\n    FilterOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));\n    };\n    return FilterOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar FilterSubscriber = (function (_super) {\n    __extends(FilterSubscriber, _super);\n    function FilterSubscriber(destination, predicate, thisArg) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.thisArg = thisArg;\n        this.count = 0;\n    }\n    // the try catch block below is left specifically for\n    // optimization and perf reasons. a tryCatcher is not necessary here.\n    FilterSubscriber.prototype._next = function (value) {\n        var result;\n        try {\n            result = this.predicate.call(this.thisArg, value, this.count++);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        if (result) {\n            this.destination.next(value);\n        }\n    };\n    return FilterSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/finalize.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar Subscription_1 = __webpack_require__(\"./node_modules/rxjs/Subscription.js\");\n/**\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * @param {function} callback Function to be called when source terminates.\n * @return {Observable} An Observable that mirrors the source, but will call the specified function on termination.\n * @method finally\n * @owner Observable\n */\nfunction finalize(callback) {\n    return function (source) { return source.lift(new FinallyOperator(callback)); };\n}\nexports.finalize = finalize;\nvar FinallyOperator = (function () {\n    function FinallyOperator(callback) {\n        this.callback = callback;\n    }\n    FinallyOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new FinallySubscriber(subscriber, this.callback));\n    };\n    return FinallyOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar FinallySubscriber = (function (_super) {\n    __extends(FinallySubscriber, _super);\n    function FinallySubscriber(destination, callback) {\n        _super.call(this, destination);\n        this.add(new Subscription_1.Subscription(callback));\n    }\n    return FinallySubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/find.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Emits only the first value emitted by the source Observable that meets some\n * condition.\n *\n * <span class=\"informal\">Finds the first value that passes some test and emits\n * that.</span>\n *\n * <img src=\"./img/find.png\" width=\"100%\">\n *\n * `find` searches for the first item in the source Observable that matches the\n * specified condition embodied by the `predicate`, and returns the first\n * occurrence in the source. Unlike {@link first}, the `predicate` is required\n * in `find`, and does not emit an error if a valid value is not found.\n *\n * @example <caption>Find and emit the first click that happens on a DIV element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.find(ev => ev.target.tagName === 'DIV');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link filter}\n * @see {@link first}\n * @see {@link findIndex}\n * @see {@link take}\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate\n * A function called with each item to test for condition matching.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable<T>} An Observable of the first item that matches the\n * condition.\n * @method find\n * @owner Observable\n */\nfunction find(predicate, thisArg) {\n    if (typeof predicate !== 'function') {\n        throw new TypeError('predicate is not a function');\n    }\n    return function (source) { return source.lift(new FindValueOperator(predicate, source, false, thisArg)); };\n}\nexports.find = find;\nvar FindValueOperator = (function () {\n    function FindValueOperator(predicate, source, yieldIndex, thisArg) {\n        this.predicate = predicate;\n        this.source = source;\n        this.yieldIndex = yieldIndex;\n        this.thisArg = thisArg;\n    }\n    FindValueOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));\n    };\n    return FindValueOperator;\n}());\nexports.FindValueOperator = FindValueOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar FindValueSubscriber = (function (_super) {\n    __extends(FindValueSubscriber, _super);\n    function FindValueSubscriber(destination, predicate, source, yieldIndex, thisArg) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.source = source;\n        this.yieldIndex = yieldIndex;\n        this.thisArg = thisArg;\n        this.index = 0;\n    }\n    FindValueSubscriber.prototype.notifyComplete = function (value) {\n        var destination = this.destination;\n        destination.next(value);\n        destination.complete();\n    };\n    FindValueSubscriber.prototype._next = function (value) {\n        var _a = this, predicate = _a.predicate, thisArg = _a.thisArg;\n        var index = this.index++;\n        try {\n            var result = predicate.call(thisArg || this, value, index, this.source);\n            if (result) {\n                this.notifyComplete(this.yieldIndex ? index : value);\n            }\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    FindValueSubscriber.prototype._complete = function () {\n        this.notifyComplete(this.yieldIndex ? -1 : undefined);\n    };\n    return FindValueSubscriber;\n}(Subscriber_1.Subscriber));\nexports.FindValueSubscriber = FindValueSubscriber;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/findIndex.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar find_1 = __webpack_require__(\"./node_modules/rxjs/operators/find.js\");\n/**\n * Emits only the index of the first value emitted by the source Observable that\n * meets some condition.\n *\n * <span class=\"informal\">It's like {@link find}, but emits the index of the\n * found value, not the value itself.</span>\n *\n * <img src=\"./img/findIndex.png\" width=\"100%\">\n *\n * `findIndex` searches for the first item in the source Observable that matches\n * the specified condition embodied by the `predicate`, and returns the\n * (zero-based) index of the first occurrence in the source. Unlike\n * {@link first}, the `predicate` is required in `findIndex`, and does not emit\n * an error if a valid value is not found.\n *\n * @example <caption>Emit the index of first click that happens on a DIV element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.findIndex(ev => ev.target.tagName === 'DIV');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link first}\n * @see {@link take}\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate\n * A function called with each item to test for condition matching.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable} An Observable of the index of the first item that\n * matches the condition.\n * @method find\n * @owner Observable\n */\nfunction findIndex(predicate, thisArg) {\n    return function (source) { return source.lift(new find_1.FindValueOperator(predicate, source, true, thisArg)); };\n}\nexports.findIndex = findIndex;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/first.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar EmptyError_1 = __webpack_require__(\"./node_modules/rxjs/util/EmptyError.js\");\n/**\n * Emits only the first value (or the first value that meets some condition)\n * emitted by the source Observable.\n *\n * <span class=\"informal\">Emits only the first value. Or emits only the first\n * value that passes some test.</span>\n *\n * <img src=\"./img/first.png\" width=\"100%\">\n *\n * If called with no arguments, `first` emits the first value of the source\n * Observable, then completes. If called with a `predicate` function, `first`\n * emits the first value of the source that matches the specified condition. It\n * may also take a `resultSelector` function to produce the output value from\n * the input value, and a `defaultValue` to emit in case the source completes\n * before it is able to emit a valid value. Throws an error if `defaultValue`\n * was not provided and a matching element is not found.\n *\n * @example <caption>Emit only the first click that happens on the DOM</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.first();\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Emits the first click that happens on a DIV</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.first(ev => ev.target.tagName === 'DIV');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link take}\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} [predicate]\n * An optional function called with each item to test for condition matching.\n * @param {function(value: T, index: number): R} [resultSelector] A function to\n * produce the value on the output Observable based on the values\n * and the indices of the source Observable. The arguments passed to this\n * function are:\n * - `value`: the value that was emitted on the source.\n * - `index`: the \"index\" of the value from the source.\n * @param {R} [defaultValue] The default value emitted in case no valid value\n * was found on the source.\n * @return {Observable<T|R>} An Observable of the first item that matches the\n * condition.\n * @method first\n * @owner Observable\n */\nfunction first(predicate, resultSelector, defaultValue) {\n    return function (source) { return source.lift(new FirstOperator(predicate, resultSelector, defaultValue, source)); };\n}\nexports.first = first;\nvar FirstOperator = (function () {\n    function FirstOperator(predicate, resultSelector, defaultValue, source) {\n        this.predicate = predicate;\n        this.resultSelector = resultSelector;\n        this.defaultValue = defaultValue;\n        this.source = source;\n    }\n    FirstOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new FirstSubscriber(observer, this.predicate, this.resultSelector, this.defaultValue, this.source));\n    };\n    return FirstOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar FirstSubscriber = (function (_super) {\n    __extends(FirstSubscriber, _super);\n    function FirstSubscriber(destination, predicate, resultSelector, defaultValue, source) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.resultSelector = resultSelector;\n        this.defaultValue = defaultValue;\n        this.source = source;\n        this.index = 0;\n        this.hasCompleted = false;\n        this._emitted = false;\n    }\n    FirstSubscriber.prototype._next = function (value) {\n        var index = this.index++;\n        if (this.predicate) {\n            this._tryPredicate(value, index);\n        }\n        else {\n            this._emit(value, index);\n        }\n    };\n    FirstSubscriber.prototype._tryPredicate = function (value, index) {\n        var result;\n        try {\n            result = this.predicate(value, index, this.source);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        if (result) {\n            this._emit(value, index);\n        }\n    };\n    FirstSubscriber.prototype._emit = function (value, index) {\n        if (this.resultSelector) {\n            this._tryResultSelector(value, index);\n            return;\n        }\n        this._emitFinal(value);\n    };\n    FirstSubscriber.prototype._tryResultSelector = function (value, index) {\n        var result;\n        try {\n            result = this.resultSelector(value, index);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this._emitFinal(result);\n    };\n    FirstSubscriber.prototype._emitFinal = function (value) {\n        var destination = this.destination;\n        if (!this._emitted) {\n            this._emitted = true;\n            destination.next(value);\n            destination.complete();\n            this.hasCompleted = true;\n        }\n    };\n    FirstSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        if (!this.hasCompleted && typeof this.defaultValue !== 'undefined') {\n            destination.next(this.defaultValue);\n            destination.complete();\n        }\n        else if (!this.hasCompleted) {\n            destination.error(new EmptyError_1.EmptyError);\n        }\n    };\n    return FirstSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/groupBy.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar Subscription_1 = __webpack_require__(\"./node_modules/rxjs/Subscription.js\");\nvar Observable_1 = __webpack_require__(\"./node_modules/rxjs/Observable.js\");\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\nvar Map_1 = __webpack_require__(\"./node_modules/rxjs/util/Map.js\");\nvar FastMap_1 = __webpack_require__(\"./node_modules/rxjs/util/FastMap.js\");\n/* tslint:enable:max-line-length */\n/**\n * Groups the items emitted by an Observable according to a specified criterion,\n * and emits these grouped items as `GroupedObservables`, one\n * {@link GroupedObservable} per group.\n *\n * <img src=\"./img/groupBy.png\" width=\"100%\">\n *\n * @example <caption>Group objects by id and return as array</caption>\n * Observable.of<Obj>({id: 1, name: 'aze1'},\n *                    {id: 2, name: 'sf2'},\n *                    {id: 2, name: 'dg2'},\n *                    {id: 1, name: 'erg1'},\n *                    {id: 1, name: 'df1'},\n *                    {id: 2, name: 'sfqfb2'},\n *                    {id: 3, name: 'qfs3'},\n *                    {id: 2, name: 'qsgqsfg2'}\n *     )\n *     .groupBy(p => p.id)\n *     .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], []))\n *     .subscribe(p => console.log(p));\n *\n * // displays:\n * // [ { id: 1, name: 'aze1' },\n * //   { id: 1, name: 'erg1' },\n * //   { id: 1, name: 'df1' } ]\n * //\n * // [ { id: 2, name: 'sf2' },\n * //   { id: 2, name: 'dg2' },\n * //   { id: 2, name: 'sfqfb2' },\n * //   { id: 2, name: 'qsgqsfg2' } ]\n * //\n * // [ { id: 3, name: 'qfs3' } ]\n *\n * @example <caption>Pivot data on the id field</caption>\n * Observable.of<Obj>({id: 1, name: 'aze1'},\n *                    {id: 2, name: 'sf2'},\n *                    {id: 2, name: 'dg2'},\n *                    {id: 1, name: 'erg1'},\n *                    {id: 1, name: 'df1'},\n *                    {id: 2, name: 'sfqfb2'},\n *                    {id: 3, name: 'qfs1'},\n *                    {id: 2, name: 'qsgqsfg2'}\n *                   )\n *     .groupBy(p => p.id, p => p.name)\n *     .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], [\"\" + group$.key]))\n *     .map(arr => ({'id': parseInt(arr[0]), 'values': arr.slice(1)}))\n *     .subscribe(p => console.log(p));\n *\n * // displays:\n * // { id: 1, values: [ 'aze1', 'erg1', 'df1' ] }\n * // { id: 2, values: [ 'sf2', 'dg2', 'sfqfb2', 'qsgqsfg2' ] }\n * // { id: 3, values: [ 'qfs1' ] }\n *\n * @param {function(value: T): K} keySelector A function that extracts the key\n * for each item.\n * @param {function(value: T): R} [elementSelector] A function that extracts the\n * return element for each item.\n * @param {function(grouped: GroupedObservable<K,R>): Observable<any>} [durationSelector]\n * A function that returns an Observable to determine how long each group should\n * exist.\n * @return {Observable<GroupedObservable<K,R>>} An Observable that emits\n * GroupedObservables, each of which corresponds to a unique key value and each\n * of which emits those items from the source Observable that share that key\n * value.\n * @method groupBy\n * @owner Observable\n */\nfunction groupBy(keySelector, elementSelector, durationSelector, subjectSelector) {\n    return function (source) {\n        return source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));\n    };\n}\nexports.groupBy = groupBy;\nvar GroupByOperator = (function () {\n    function GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector) {\n        this.keySelector = keySelector;\n        this.elementSelector = elementSelector;\n        this.durationSelector = durationSelector;\n        this.subjectSelector = subjectSelector;\n    }\n    GroupByOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new GroupBySubscriber(subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector));\n    };\n    return GroupByOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar GroupBySubscriber = (function (_super) {\n    __extends(GroupBySubscriber, _super);\n    function GroupBySubscriber(destination, keySelector, elementSelector, durationSelector, subjectSelector) {\n        _super.call(this, destination);\n        this.keySelector = keySelector;\n        this.elementSelector = elementSelector;\n        this.durationSelector = durationSelector;\n        this.subjectSelector = subjectSelector;\n        this.groups = null;\n        this.attemptedToUnsubscribe = false;\n        this.count = 0;\n    }\n    GroupBySubscriber.prototype._next = function (value) {\n        var key;\n        try {\n            key = this.keySelector(value);\n        }\n        catch (err) {\n            this.error(err);\n            return;\n        }\n        this._group(value, key);\n    };\n    GroupBySubscriber.prototype._group = function (value, key) {\n        var groups = this.groups;\n        if (!groups) {\n            groups = this.groups = typeof key === 'string' ? new FastMap_1.FastMap() : new Map_1.Map();\n        }\n        var group = groups.get(key);\n        var element;\n        if (this.elementSelector) {\n            try {\n                element = this.elementSelector(value);\n            }\n            catch (err) {\n                this.error(err);\n            }\n        }\n        else {\n            element = value;\n        }\n        if (!group) {\n            group = this.subjectSelector ? this.subjectSelector() : new Subject_1.Subject();\n            groups.set(key, group);\n            var groupedObservable = new GroupedObservable(key, group, this);\n            this.destination.next(groupedObservable);\n            if (this.durationSelector) {\n                var duration = void 0;\n                try {\n                    duration = this.durationSelector(new GroupedObservable(key, group));\n                }\n                catch (err) {\n                    this.error(err);\n                    return;\n                }\n                this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));\n            }\n        }\n        if (!group.closed) {\n            group.next(element);\n        }\n    };\n    GroupBySubscriber.prototype._error = function (err) {\n        var groups = this.groups;\n        if (groups) {\n            groups.forEach(function (group, key) {\n                group.error(err);\n            });\n            groups.clear();\n        }\n        this.destination.error(err);\n    };\n    GroupBySubscriber.prototype._complete = function () {\n        var groups = this.groups;\n        if (groups) {\n            groups.forEach(function (group, key) {\n                group.complete();\n            });\n            groups.clear();\n        }\n        this.destination.complete();\n    };\n    GroupBySubscriber.prototype.removeGroup = function (key) {\n        this.groups.delete(key);\n    };\n    GroupBySubscriber.prototype.unsubscribe = function () {\n        if (!this.closed) {\n            this.attemptedToUnsubscribe = true;\n            if (this.count === 0) {\n                _super.prototype.unsubscribe.call(this);\n            }\n        }\n    };\n    return GroupBySubscriber;\n}(Subscriber_1.Subscriber));\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar GroupDurationSubscriber = (function (_super) {\n    __extends(GroupDurationSubscriber, _super);\n    function GroupDurationSubscriber(key, group, parent) {\n        _super.call(this, group);\n        this.key = key;\n        this.group = group;\n        this.parent = parent;\n    }\n    GroupDurationSubscriber.prototype._next = function (value) {\n        this.complete();\n    };\n    /** @deprecated internal use only */ GroupDurationSubscriber.prototype._unsubscribe = function () {\n        var _a = this, parent = _a.parent, key = _a.key;\n        this.key = this.parent = null;\n        if (parent) {\n            parent.removeGroup(key);\n        }\n    };\n    return GroupDurationSubscriber;\n}(Subscriber_1.Subscriber));\n/**\n * An Observable representing values belonging to the same group represented by\n * a common key. The values emitted by a GroupedObservable come from the source\n * Observable. The common key is available as the field `key` on a\n * GroupedObservable instance.\n *\n * @class GroupedObservable<K, T>\n */\nvar GroupedObservable = (function (_super) {\n    __extends(GroupedObservable, _super);\n    function GroupedObservable(key, groupSubject, refCountSubscription) {\n        _super.call(this);\n        this.key = key;\n        this.groupSubject = groupSubject;\n        this.refCountSubscription = refCountSubscription;\n    }\n    /** @deprecated internal use only */ GroupedObservable.prototype._subscribe = function (subscriber) {\n        var subscription = new Subscription_1.Subscription();\n        var _a = this, refCountSubscription = _a.refCountSubscription, groupSubject = _a.groupSubject;\n        if (refCountSubscription && !refCountSubscription.closed) {\n            subscription.add(new InnerRefCountSubscription(refCountSubscription));\n        }\n        subscription.add(groupSubject.subscribe(subscriber));\n        return subscription;\n    };\n    return GroupedObservable;\n}(Observable_1.Observable));\nexports.GroupedObservable = GroupedObservable;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar InnerRefCountSubscription = (function (_super) {\n    __extends(InnerRefCountSubscription, _super);\n    function InnerRefCountSubscription(parent) {\n        _super.call(this);\n        this.parent = parent;\n        parent.count++;\n    }\n    InnerRefCountSubscription.prototype.unsubscribe = function () {\n        var parent = this.parent;\n        if (!parent.closed && !this.closed) {\n            _super.prototype.unsubscribe.call(this);\n            parent.count -= 1;\n            if (parent.count === 0 && parent.attemptedToUnsubscribe) {\n                parent.unsubscribe();\n            }\n        }\n    };\n    return InnerRefCountSubscription;\n}(Subscription_1.Subscription));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/ignoreElements.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar noop_1 = __webpack_require__(\"./node_modules/rxjs/util/noop.js\");\n/**\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * <img src=\"./img/ignoreElements.png\" width=\"100%\">\n *\n * @return {Observable} An empty Observable that only calls `complete`\n * or `error`, based on which one is called by the source Observable.\n * @method ignoreElements\n * @owner Observable\n */\nfunction ignoreElements() {\n    return function ignoreElementsOperatorFunction(source) {\n        return source.lift(new IgnoreElementsOperator());\n    };\n}\nexports.ignoreElements = ignoreElements;\nvar IgnoreElementsOperator = (function () {\n    function IgnoreElementsOperator() {\n    }\n    IgnoreElementsOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new IgnoreElementsSubscriber(subscriber));\n    };\n    return IgnoreElementsOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar IgnoreElementsSubscriber = (function (_super) {\n    __extends(IgnoreElementsSubscriber, _super);\n    function IgnoreElementsSubscriber() {\n        _super.apply(this, arguments);\n    }\n    IgnoreElementsSubscriber.prototype._next = function (unused) {\n        noop_1.noop();\n    };\n    return IgnoreElementsSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/isEmpty.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nfunction isEmpty() {\n    return function (source) { return source.lift(new IsEmptyOperator()); };\n}\nexports.isEmpty = isEmpty;\nvar IsEmptyOperator = (function () {\n    function IsEmptyOperator() {\n    }\n    IsEmptyOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new IsEmptySubscriber(observer));\n    };\n    return IsEmptyOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar IsEmptySubscriber = (function (_super) {\n    __extends(IsEmptySubscriber, _super);\n    function IsEmptySubscriber(destination) {\n        _super.call(this, destination);\n    }\n    IsEmptySubscriber.prototype.notifyComplete = function (isEmpty) {\n        var destination = this.destination;\n        destination.next(isEmpty);\n        destination.complete();\n    };\n    IsEmptySubscriber.prototype._next = function (value) {\n        this.notifyComplete(false);\n    };\n    IsEmptySubscriber.prototype._complete = function () {\n        this.notifyComplete(true);\n    };\n    return IsEmptySubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/last.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar EmptyError_1 = __webpack_require__(\"./node_modules/rxjs/util/EmptyError.js\");\n/* tslint:enable:max-line-length */\n/**\n * Returns an Observable that emits only the last item emitted by the source Observable.\n * It optionally takes a predicate function as a parameter, in which case, rather than emitting\n * the last item from the source Observable, the resulting Observable will emit the last item\n * from the source Observable that satisfies the predicate.\n *\n * <img src=\"./img/last.png\" width=\"100%\">\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * @param {function} predicate - The condition any source emitted item has to satisfy.\n * @return {Observable} An Observable that emits only the last item satisfying the given condition\n * from the source, or an NoSuchElementException if no such items are emitted.\n * @throws - Throws if no items that match the predicate are emitted by the source Observable.\n * @method last\n * @owner Observable\n */\nfunction last(predicate, resultSelector, defaultValue) {\n    return function (source) { return source.lift(new LastOperator(predicate, resultSelector, defaultValue, source)); };\n}\nexports.last = last;\nvar LastOperator = (function () {\n    function LastOperator(predicate, resultSelector, defaultValue, source) {\n        this.predicate = predicate;\n        this.resultSelector = resultSelector;\n        this.defaultValue = defaultValue;\n        this.source = source;\n    }\n    LastOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new LastSubscriber(observer, this.predicate, this.resultSelector, this.defaultValue, this.source));\n    };\n    return LastOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar LastSubscriber = (function (_super) {\n    __extends(LastSubscriber, _super);\n    function LastSubscriber(destination, predicate, resultSelector, defaultValue, source) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.resultSelector = resultSelector;\n        this.defaultValue = defaultValue;\n        this.source = source;\n        this.hasValue = false;\n        this.index = 0;\n        if (typeof defaultValue !== 'undefined') {\n            this.lastValue = defaultValue;\n            this.hasValue = true;\n        }\n    }\n    LastSubscriber.prototype._next = function (value) {\n        var index = this.index++;\n        if (this.predicate) {\n            this._tryPredicate(value, index);\n        }\n        else {\n            if (this.resultSelector) {\n                this._tryResultSelector(value, index);\n                return;\n            }\n            this.lastValue = value;\n            this.hasValue = true;\n        }\n    };\n    LastSubscriber.prototype._tryPredicate = function (value, index) {\n        var result;\n        try {\n            result = this.predicate(value, index, this.source);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        if (result) {\n            if (this.resultSelector) {\n                this._tryResultSelector(value, index);\n                return;\n            }\n            this.lastValue = value;\n            this.hasValue = true;\n        }\n    };\n    LastSubscriber.prototype._tryResultSelector = function (value, index) {\n        var result;\n        try {\n            result = this.resultSelector(value, index);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.lastValue = result;\n        this.hasValue = true;\n    };\n    LastSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        if (this.hasValue) {\n            destination.next(this.lastValue);\n            destination.complete();\n        }\n        else {\n            destination.error(new EmptyError_1.EmptyError);\n        }\n    };\n    return LastSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/map.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Applies a given `project` function to each value emitted by the source\n * Observable, and emits the resulting values as an Observable.\n *\n * <span class=\"informal\">Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),\n * it passes each source value through a transformation function to get\n * corresponding output values.</span>\n *\n * <img src=\"./img/map.png\" width=\"100%\">\n *\n * Similar to the well known `Array.prototype.map` function, this operator\n * applies a projection to each value and emits that projection in the output\n * Observable.\n *\n * @example <caption>Map every click to the clientX position of that click</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var positions = clicks.map(ev => ev.clientX);\n * positions.subscribe(x => console.log(x));\n *\n * @see {@link mapTo}\n * @see {@link pluck}\n *\n * @param {function(value: T, index: number): R} project The function to apply\n * to each `value` emitted by the source Observable. The `index` parameter is\n * the number `i` for the i-th emission that has happened since the\n * subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to define what `this` is in the\n * `project` function.\n * @return {Observable<R>} An Observable that emits the values from the source\n * Observable transformed by the given `project` function.\n * @method map\n * @owner Observable\n */\nfunction map(project, thisArg) {\n    return function mapOperation(source) {\n        if (typeof project !== 'function') {\n            throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\n        }\n        return source.lift(new MapOperator(project, thisArg));\n    };\n}\nexports.map = map;\nvar MapOperator = (function () {\n    function MapOperator(project, thisArg) {\n        this.project = project;\n        this.thisArg = thisArg;\n    }\n    MapOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));\n    };\n    return MapOperator;\n}());\nexports.MapOperator = MapOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MapSubscriber = (function (_super) {\n    __extends(MapSubscriber, _super);\n    function MapSubscriber(destination, project, thisArg) {\n        _super.call(this, destination);\n        this.project = project;\n        this.count = 0;\n        this.thisArg = thisArg || this;\n    }\n    // NOTE: This looks unoptimized, but it's actually purposefully NOT\n    // using try/catch optimizations.\n    MapSubscriber.prototype._next = function (value) {\n        var result;\n        try {\n            result = this.project.call(this.thisArg, value, this.count++);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    return MapSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/mapTo.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Emits the given constant value on the output Observable every time the source\n * Observable emits a value.\n *\n * <span class=\"informal\">Like {@link map}, but it maps every source value to\n * the same output value every time.</span>\n *\n * <img src=\"./img/mapTo.png\" width=\"100%\">\n *\n * Takes a constant `value` as argument, and emits that whenever the source\n * Observable emits a value. In other words, ignores the actual source value,\n * and simply uses the emission moment to know when to emit the given `value`.\n *\n * @example <caption>Map every click to the string 'Hi'</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var greetings = clicks.mapTo('Hi');\n * greetings.subscribe(x => console.log(x));\n *\n * @see {@link map}\n *\n * @param {any} value The value to map each source value to.\n * @return {Observable} An Observable that emits the given `value` every time\n * the source Observable emits something.\n * @method mapTo\n * @owner Observable\n */\nfunction mapTo(value) {\n    return function (source) { return source.lift(new MapToOperator(value)); };\n}\nexports.mapTo = mapTo;\nvar MapToOperator = (function () {\n    function MapToOperator(value) {\n        this.value = value;\n    }\n    MapToOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new MapToSubscriber(subscriber, this.value));\n    };\n    return MapToOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MapToSubscriber = (function (_super) {\n    __extends(MapToSubscriber, _super);\n    function MapToSubscriber(destination, value) {\n        _super.call(this, destination);\n        this.value = value;\n    }\n    MapToSubscriber.prototype._next = function (x) {\n        this.destination.next(this.value);\n    };\n    return MapToSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/materialize.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar Notification_1 = __webpack_require__(\"./node_modules/rxjs/Notification.js\");\n/**\n * Represents all of the notifications from the source Observable as `next`\n * emissions marked with their original types within {@link Notification}\n * objects.\n *\n * <span class=\"informal\">Wraps `next`, `error` and `complete` emissions in\n * {@link Notification} objects, emitted as `next` on the output Observable.\n * </span>\n *\n * <img src=\"./img/materialize.png\" width=\"100%\">\n *\n * `materialize` returns an Observable that emits a `next` notification for each\n * `next`, `error`, or `complete` emission of the source Observable. When the\n * source Observable emits `complete`, the output Observable will emit `next` as\n * a Notification of type \"complete\", and then it will emit `complete` as well.\n * When the source Observable emits `error`, the output will emit `next` as a\n * Notification of type \"error\", and then `complete`.\n *\n * This operator is useful for producing metadata of the source Observable, to\n * be consumed as `next` emissions. Use it in conjunction with\n * {@link dematerialize}.\n *\n * @example <caption>Convert a faulty Observable to an Observable of Notifications</caption>\n * var letters = Rx.Observable.of('a', 'b', 13, 'd');\n * var upperCase = letters.map(x => x.toUpperCase());\n * var materialized = upperCase.materialize();\n * materialized.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // - Notification {kind: \"N\", value: \"A\", error: undefined, hasValue: true}\n * // - Notification {kind: \"N\", value: \"B\", error: undefined, hasValue: true}\n * // - Notification {kind: \"E\", value: undefined, error: TypeError:\n * //   x.toUpperCase is not a function at MapSubscriber.letters.map.x\n * //   [as project] (http://1…, hasValue: false}\n *\n * @see {@link Notification}\n * @see {@link dematerialize}\n *\n * @return {Observable<Notification<T>>} An Observable that emits\n * {@link Notification} objects that wrap the original emissions from the source\n * Observable with metadata.\n * @method materialize\n * @owner Observable\n */\nfunction materialize() {\n    return function materializeOperatorFunction(source) {\n        return source.lift(new MaterializeOperator());\n    };\n}\nexports.materialize = materialize;\nvar MaterializeOperator = (function () {\n    function MaterializeOperator() {\n    }\n    MaterializeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new MaterializeSubscriber(subscriber));\n    };\n    return MaterializeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MaterializeSubscriber = (function (_super) {\n    __extends(MaterializeSubscriber, _super);\n    function MaterializeSubscriber(destination) {\n        _super.call(this, destination);\n    }\n    MaterializeSubscriber.prototype._next = function (value) {\n        this.destination.next(Notification_1.Notification.createNext(value));\n    };\n    MaterializeSubscriber.prototype._error = function (err) {\n        var destination = this.destination;\n        destination.next(Notification_1.Notification.createError(err));\n        destination.complete();\n    };\n    MaterializeSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        destination.next(Notification_1.Notification.createComplete());\n        destination.complete();\n    };\n    return MaterializeSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/max.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar reduce_1 = __webpack_require__(\"./node_modules/rxjs/operators/reduce.js\");\n/**\n * The Max operator operates on an Observable that emits numbers (or items that can be compared with a provided function),\n * and when source Observable completes it emits a single item: the item with the largest value.\n *\n * <img src=\"./img/max.png\" width=\"100%\">\n *\n * @example <caption>Get the maximal value of a series of numbers</caption>\n * Rx.Observable.of(5, 4, 7, 2, 8)\n *   .max()\n *   .subscribe(x => console.log(x)); // -> 8\n *\n * @example <caption>Use a comparer function to get the maximal item</caption>\n * interface Person {\n *   age: number,\n *   name: string\n * }\n * Observable.of<Person>({age: 7, name: 'Foo'},\n *                       {age: 5, name: 'Bar'},\n *                       {age: 9, name: 'Beer'})\n *           .max<Person>((a: Person, b: Person) => a.age < b.age ? -1 : 1)\n *           .subscribe((x: Person) => console.log(x.name)); // -> 'Beer'\n * }\n *\n * @see {@link min}\n *\n * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the\n * value of two items.\n * @return {Observable} An Observable that emits item with the largest value.\n * @method max\n * @owner Observable\n */\nfunction max(comparer) {\n    var max = (typeof comparer === 'function')\n        ? function (x, y) { return comparer(x, y) > 0 ? x : y; }\n        : function (x, y) { return x > y ? x : y; };\n    return reduce_1.reduce(max);\n}\nexports.max = max;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/merge.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar merge_1 = __webpack_require__(\"./node_modules/rxjs/observable/merge.js\");\nvar merge_2 = __webpack_require__(\"./node_modules/rxjs/observable/merge.js\");\nexports.mergeStatic = merge_2.merge;\n/* tslint:enable:max-line-length */\n/**\n * Creates an output Observable which concurrently emits all values from every\n * given input Observable.\n *\n * <span class=\"informal\">Flattens multiple Observables together by blending\n * their values into one Observable.</span>\n *\n * <img src=\"./img/merge.png\" width=\"100%\">\n *\n * `merge` subscribes to each given input Observable (either the source or an\n * Observable given as argument), and simply forwards (without doing any\n * transformation) all the values from all the input Observables to the output\n * Observable. The output Observable only completes once all input Observables\n * have completed. Any error delivered by an input Observable will be immediately\n * emitted on the output Observable.\n *\n * @example <caption>Merge together two Observables: 1s interval and clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var timer = Rx.Observable.interval(1000);\n * var clicksOrTimer = clicks.merge(timer);\n * clicksOrTimer.subscribe(x => console.log(x));\n *\n * @example <caption>Merge together 3 Observables, but only 2 run concurrently</caption>\n * var timer1 = Rx.Observable.interval(1000).take(10);\n * var timer2 = Rx.Observable.interval(2000).take(6);\n * var timer3 = Rx.Observable.interval(500).take(10);\n * var concurrent = 2; // the argument\n * var merged = timer1.merge(timer2, timer3, concurrent);\n * merged.subscribe(x => console.log(x));\n *\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n *\n * @param {ObservableInput} other An input Observable to merge with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {Scheduler} [scheduler=null] The IScheduler to use for managing\n * concurrency of input Observables.\n * @return {Observable} An Observable that emits items that are the result of\n * every input Observable.\n * @method merge\n * @owner Observable\n */\nfunction merge() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    return function (source) { return source.lift.call(merge_1.merge.apply(void 0, [source].concat(observables))); };\n}\nexports.merge = merge;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/mergeAll.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar mergeMap_1 = __webpack_require__(\"./node_modules/rxjs/operators/mergeMap.js\");\nvar identity_1 = __webpack_require__(\"./node_modules/rxjs/util/identity.js\");\n/**\n * Converts a higher-order Observable into a first-order Observable which\n * concurrently delivers all values that are emitted on the inner Observables.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables.</span>\n *\n * <img src=\"./img/mergeAll.png\" width=\"100%\">\n *\n * `mergeAll` subscribes to an Observable that emits Observables, also known as\n * a higher-order Observable. Each time it observes one of these emitted inner\n * Observables, it subscribes to that and delivers all the values from the\n * inner Observable on the output Observable. The output Observable only\n * completes once all inner Observables have completed. Any error delivered by\n * a inner Observable will be immediately emitted on the output Observable.\n *\n * @example <caption>Spawn a new interval Observable for each click event, and blend their outputs as one Observable</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000));\n * var firstOrder = higherOrder.mergeAll();\n * firstOrder.subscribe(x => console.log(x));\n *\n * @example <caption>Count from 0 to 9 every second for each click, but only allow 2 concurrent timers</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000).take(10));\n * var firstOrder = higherOrder.mergeAll(2);\n * firstOrder.subscribe(x => console.log(x));\n *\n * @see {@link combineAll}\n * @see {@link concatAll}\n * @see {@link exhaust}\n * @see {@link merge}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switch}\n * @see {@link zipAll}\n *\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of inner\n * Observables being subscribed to concurrently.\n * @return {Observable} An Observable that emits values coming from all the\n * inner Observables emitted by the source Observable.\n * @method mergeAll\n * @owner Observable\n */\nfunction mergeAll(concurrent) {\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n    return mergeMap_1.mergeMap(identity_1.identity, null, concurrent);\n}\nexports.mergeAll = mergeAll;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/mergeMap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\n/* tslint:enable:max-line-length */\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link mergeAll}.</span>\n *\n * <img src=\"./img/mergeMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger.\n *\n * @example <caption>Map and flatten each letter to an Observable ticking every 1 second</caption>\n * var letters = Rx.Observable.of('a', 'b', 'c');\n * var result = letters.mergeMap(x =>\n *   Rx.Observable.interval(1000).map(i => x+i)\n * );\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // a0\n * // b0\n * // c0\n * // a1\n * // b1\n * // c1\n * // continues to list a,b,c with respective ascending integers\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return {Observable} An Observable that emits the result of applying the\n * projection function (and the optional `resultSelector`) to each item emitted\n * by the source Observable and merging the results of the Observables obtained\n * from this transformation.\n * @method mergeMap\n * @owner Observable\n */\nfunction mergeMap(project, resultSelector, concurrent) {\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n    return function mergeMapOperatorFunction(source) {\n        if (typeof resultSelector === 'number') {\n            concurrent = resultSelector;\n            resultSelector = null;\n        }\n        return source.lift(new MergeMapOperator(project, resultSelector, concurrent));\n    };\n}\nexports.mergeMap = mergeMap;\nvar MergeMapOperator = (function () {\n    function MergeMapOperator(project, resultSelector, concurrent) {\n        if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n        this.project = project;\n        this.resultSelector = resultSelector;\n        this.concurrent = concurrent;\n    }\n    MergeMapOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new MergeMapSubscriber(observer, this.project, this.resultSelector, this.concurrent));\n    };\n    return MergeMapOperator;\n}());\nexports.MergeMapOperator = MergeMapOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MergeMapSubscriber = (function (_super) {\n    __extends(MergeMapSubscriber, _super);\n    function MergeMapSubscriber(destination, project, resultSelector, concurrent) {\n        if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n        _super.call(this, destination);\n        this.project = project;\n        this.resultSelector = resultSelector;\n        this.concurrent = concurrent;\n        this.hasCompleted = false;\n        this.buffer = [];\n        this.active = 0;\n        this.index = 0;\n    }\n    MergeMapSubscriber.prototype._next = function (value) {\n        if (this.active < this.concurrent) {\n            this._tryNext(value);\n        }\n        else {\n            this.buffer.push(value);\n        }\n    };\n    MergeMapSubscriber.prototype._tryNext = function (value) {\n        var result;\n        var index = this.index++;\n        try {\n            result = this.project(value, index);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.active++;\n        this._innerSub(result, value, index);\n    };\n    MergeMapSubscriber.prototype._innerSub = function (ish, value, index) {\n        this.add(subscribeToResult_1.subscribeToResult(this, ish, value, index));\n    };\n    MergeMapSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (this.active === 0 && this.buffer.length === 0) {\n            this.destination.complete();\n        }\n    };\n    MergeMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        if (this.resultSelector) {\n            this._notifyResultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        else {\n            this.destination.next(innerValue);\n        }\n    };\n    MergeMapSubscriber.prototype._notifyResultSelector = function (outerValue, innerValue, outerIndex, innerIndex) {\n        var result;\n        try {\n            result = this.resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    MergeMapSubscriber.prototype.notifyComplete = function (innerSub) {\n        var buffer = this.buffer;\n        this.remove(innerSub);\n        this.active--;\n        if (buffer.length > 0) {\n            this._next(buffer.shift());\n        }\n        else if (this.active === 0 && this.hasCompleted) {\n            this.destination.complete();\n        }\n    };\n    return MergeMapSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.MergeMapSubscriber = MergeMapSubscriber;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/mergeMapTo.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/* tslint:enable:max-line-length */\n/**\n * Projects each source value to the same Observable which is merged multiple\n * times in the output Observable.\n *\n * <span class=\"informal\">It's like {@link mergeMap}, but maps each value always\n * to the same inner Observable.</span>\n *\n * <img src=\"./img/mergeMapTo.png\" width=\"100%\">\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then merges those resulting Observables into one\n * single Observable, which is the output Observable.\n *\n * @example <caption>For each click event, start an interval Observable ticking every 1 second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.mergeMapTo(Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMapTo}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeScan}\n * @see {@link switchMapTo}\n *\n * @param {ObservableInput} innerObservable An Observable to replace each value from\n * the source Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return {Observable} An Observable that emits items from the given\n * `innerObservable` (and optionally transformed through `resultSelector`) every\n * time a value is emitted on the source Observable.\n * @method mergeMapTo\n * @owner Observable\n */\nfunction mergeMapTo(innerObservable, resultSelector, concurrent) {\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n    if (typeof resultSelector === 'number') {\n        concurrent = resultSelector;\n        resultSelector = null;\n    }\n    return function (source) { return source.lift(new MergeMapToOperator(innerObservable, resultSelector, concurrent)); };\n}\nexports.mergeMapTo = mergeMapTo;\n// TODO: Figure out correct signature here: an Operator<Observable<T>, R>\n//       needs to implement call(observer: Subscriber<R>): Subscriber<Observable<T>>\nvar MergeMapToOperator = (function () {\n    function MergeMapToOperator(ish, resultSelector, concurrent) {\n        if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n        this.ish = ish;\n        this.resultSelector = resultSelector;\n        this.concurrent = concurrent;\n    }\n    MergeMapToOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new MergeMapToSubscriber(observer, this.ish, this.resultSelector, this.concurrent));\n    };\n    return MergeMapToOperator;\n}());\nexports.MergeMapToOperator = MergeMapToOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MergeMapToSubscriber = (function (_super) {\n    __extends(MergeMapToSubscriber, _super);\n    function MergeMapToSubscriber(destination, ish, resultSelector, concurrent) {\n        if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n        _super.call(this, destination);\n        this.ish = ish;\n        this.resultSelector = resultSelector;\n        this.concurrent = concurrent;\n        this.hasCompleted = false;\n        this.buffer = [];\n        this.active = 0;\n        this.index = 0;\n    }\n    MergeMapToSubscriber.prototype._next = function (value) {\n        if (this.active < this.concurrent) {\n            var resultSelector = this.resultSelector;\n            var index = this.index++;\n            var ish = this.ish;\n            var destination = this.destination;\n            this.active++;\n            this._innerSub(ish, destination, resultSelector, value, index);\n        }\n        else {\n            this.buffer.push(value);\n        }\n    };\n    MergeMapToSubscriber.prototype._innerSub = function (ish, destination, resultSelector, value, index) {\n        this.add(subscribeToResult_1.subscribeToResult(this, ish, value, index));\n    };\n    MergeMapToSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (this.active === 0 && this.buffer.length === 0) {\n            this.destination.complete();\n        }\n    };\n    MergeMapToSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        if (resultSelector) {\n            this.trySelectResult(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        else {\n            destination.next(innerValue);\n        }\n    };\n    MergeMapToSubscriber.prototype.trySelectResult = function (outerValue, innerValue, outerIndex, innerIndex) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        var result;\n        try {\n            result = resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        catch (err) {\n            destination.error(err);\n            return;\n        }\n        destination.next(result);\n    };\n    MergeMapToSubscriber.prototype.notifyError = function (err) {\n        this.destination.error(err);\n    };\n    MergeMapToSubscriber.prototype.notifyComplete = function (innerSub) {\n        var buffer = this.buffer;\n        this.remove(innerSub);\n        this.active--;\n        if (buffer.length > 0) {\n            this._next(buffer.shift());\n        }\n        else if (this.active === 0 && this.hasCompleted) {\n            this.destination.complete();\n        }\n    };\n    return MergeMapToSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.MergeMapToSubscriber = MergeMapToSubscriber;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/mergeScan.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\n/**\n * Applies an accumulator function over the source Observable where the\n * accumulator function itself returns an Observable, then each intermediate\n * Observable returned is merged into the output Observable.\n *\n * <span class=\"informal\">It's like {@link scan}, but the Observables returned\n * by the accumulator are merged into the outer Observable.</span>\n *\n * @example <caption>Count the number of click events</caption>\n * const click$ = Rx.Observable.fromEvent(document, 'click');\n * const one$ = click$.mapTo(1);\n * const seed = 0;\n * const count$ = one$.mergeScan((acc, one) => Rx.Observable.of(acc + one), seed);\n * count$.subscribe(x => console.log(x));\n *\n * // Results:\n * 1\n * 2\n * 3\n * 4\n * // ...and so on for each click\n *\n * @param {function(acc: R, value: T): Observable<R>} accumulator\n * The accumulator function called on each source value.\n * @param seed The initial accumulation value.\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of\n * input Observables being subscribed to concurrently.\n * @return {Observable<R>} An observable of the accumulated values.\n * @method mergeScan\n * @owner Observable\n */\nfunction mergeScan(accumulator, seed, concurrent) {\n    if (concurrent === void 0) { concurrent = Number.POSITIVE_INFINITY; }\n    return function (source) { return source.lift(new MergeScanOperator(accumulator, seed, concurrent)); };\n}\nexports.mergeScan = mergeScan;\nvar MergeScanOperator = (function () {\n    function MergeScanOperator(accumulator, seed, concurrent) {\n        this.accumulator = accumulator;\n        this.seed = seed;\n        this.concurrent = concurrent;\n    }\n    MergeScanOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new MergeScanSubscriber(subscriber, this.accumulator, this.seed, this.concurrent));\n    };\n    return MergeScanOperator;\n}());\nexports.MergeScanOperator = MergeScanOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar MergeScanSubscriber = (function (_super) {\n    __extends(MergeScanSubscriber, _super);\n    function MergeScanSubscriber(destination, accumulator, acc, concurrent) {\n        _super.call(this, destination);\n        this.accumulator = accumulator;\n        this.acc = acc;\n        this.concurrent = concurrent;\n        this.hasValue = false;\n        this.hasCompleted = false;\n        this.buffer = [];\n        this.active = 0;\n        this.index = 0;\n    }\n    MergeScanSubscriber.prototype._next = function (value) {\n        if (this.active < this.concurrent) {\n            var index = this.index++;\n            var ish = tryCatch_1.tryCatch(this.accumulator)(this.acc, value);\n            var destination = this.destination;\n            if (ish === errorObject_1.errorObject) {\n                destination.error(errorObject_1.errorObject.e);\n            }\n            else {\n                this.active++;\n                this._innerSub(ish, value, index);\n            }\n        }\n        else {\n            this.buffer.push(value);\n        }\n    };\n    MergeScanSubscriber.prototype._innerSub = function (ish, value, index) {\n        this.add(subscribeToResult_1.subscribeToResult(this, ish, value, index));\n    };\n    MergeScanSubscriber.prototype._complete = function () {\n        this.hasCompleted = true;\n        if (this.active === 0 && this.buffer.length === 0) {\n            if (this.hasValue === false) {\n                this.destination.next(this.acc);\n            }\n            this.destination.complete();\n        }\n    };\n    MergeScanSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var destination = this.destination;\n        this.acc = innerValue;\n        this.hasValue = true;\n        destination.next(innerValue);\n    };\n    MergeScanSubscriber.prototype.notifyComplete = function (innerSub) {\n        var buffer = this.buffer;\n        this.remove(innerSub);\n        this.active--;\n        if (buffer.length > 0) {\n            this._next(buffer.shift());\n        }\n        else if (this.active === 0 && this.hasCompleted) {\n            if (this.hasValue === false) {\n                this.destination.next(this.acc);\n            }\n            this.destination.complete();\n        }\n    };\n    return MergeScanSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\nexports.MergeScanSubscriber = MergeScanSubscriber;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/min.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar reduce_1 = __webpack_require__(\"./node_modules/rxjs/operators/reduce.js\");\n/**\n * The Min operator operates on an Observable that emits numbers (or items that can be compared with a provided function),\n * and when source Observable completes it emits a single item: the item with the smallest value.\n *\n * <img src=\"./img/min.png\" width=\"100%\">\n *\n * @example <caption>Get the minimal value of a series of numbers</caption>\n * Rx.Observable.of(5, 4, 7, 2, 8)\n *   .min()\n *   .subscribe(x => console.log(x)); // -> 2\n *\n * @example <caption>Use a comparer function to get the minimal item</caption>\n * interface Person {\n *   age: number,\n *   name: string\n * }\n * Observable.of<Person>({age: 7, name: 'Foo'},\n *                       {age: 5, name: 'Bar'},\n *                       {age: 9, name: 'Beer'})\n *           .min<Person>( (a: Person, b: Person) => a.age < b.age ? -1 : 1)\n *           .subscribe((x: Person) => console.log(x.name)); // -> 'Bar'\n * }\n *\n * @see {@link max}\n *\n * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the\n * value of two items.\n * @return {Observable<R>} An Observable that emits item with the smallest value.\n * @method min\n * @owner Observable\n */\nfunction min(comparer) {\n    var min = (typeof comparer === 'function')\n        ? function (x, y) { return comparer(x, y) < 0 ? x : y; }\n        : function (x, y) { return x < y ? x : y; };\n    return reduce_1.reduce(min);\n}\nexports.min = min;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/multicast.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar ConnectableObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/ConnectableObservable.js\");\n/* tslint:enable:max-line-length */\n/**\n * Returns an Observable that emits the results of invoking a specified selector on items\n * emitted by a ConnectableObservable that shares a single subscription to the underlying stream.\n *\n * <img src=\"./img/multicast.png\" width=\"100%\">\n *\n * @param {Function|Subject} subjectOrSubjectFactory - Factory function to create an intermediate subject through\n * which the source sequence's elements will be multicast to the selector function\n * or Subject to push source elements into.\n * @param {Function} [selector] - Optional selector function that can use the multicasted source stream\n * as many times as needed, without causing multiple subscriptions to the source stream.\n * Subscribers to the given source will receive all notifications of the source from the\n * time of the subscription forward.\n * @return {Observable} An Observable that emits the results of invoking the selector\n * on the items emitted by a `ConnectableObservable` that shares a single subscription to\n * the underlying stream.\n * @method multicast\n * @owner Observable\n */\nfunction multicast(subjectOrSubjectFactory, selector) {\n    return function multicastOperatorFunction(source) {\n        var subjectFactory;\n        if (typeof subjectOrSubjectFactory === 'function') {\n            subjectFactory = subjectOrSubjectFactory;\n        }\n        else {\n            subjectFactory = function subjectFactory() {\n                return subjectOrSubjectFactory;\n            };\n        }\n        if (typeof selector === 'function') {\n            return source.lift(new MulticastOperator(subjectFactory, selector));\n        }\n        var connectable = Object.create(source, ConnectableObservable_1.connectableObservableDescriptor);\n        connectable.source = source;\n        connectable.subjectFactory = subjectFactory;\n        return connectable;\n    };\n}\nexports.multicast = multicast;\nvar MulticastOperator = (function () {\n    function MulticastOperator(subjectFactory, selector) {\n        this.subjectFactory = subjectFactory;\n        this.selector = selector;\n    }\n    MulticastOperator.prototype.call = function (subscriber, source) {\n        var selector = this.selector;\n        var subject = this.subjectFactory();\n        var subscription = selector(subject).subscribe(subscriber);\n        subscription.add(source.subscribe(subject));\n        return subscription;\n    };\n    return MulticastOperator;\n}());\nexports.MulticastOperator = MulticastOperator;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/observeOn.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar Notification_1 = __webpack_require__(\"./node_modules/rxjs/Notification.js\");\n/**\n *\n * Re-emits all notifications from source Observable with specified scheduler.\n *\n * <span class=\"informal\">Ensure a specific scheduler is used, from outside of an Observable.</span>\n *\n * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule\n * notifications emitted by the source Observable. It might be useful, if you do not have control over\n * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless.\n *\n * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable,\n * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal\n * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits\n * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`.\n * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split\n * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source\n * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a\n * little bit more, to ensure that they are emitted at expected moments.\n *\n * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications\n * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn`\n * will delay all notifications - including error notifications - while `delay` will pass through error\n * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator\n * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used\n * for notification emissions in general.\n *\n * @example <caption>Ensure values in subscribe are called just before browser repaint.</caption>\n * const intervals = Rx.Observable.interval(10); // Intervals are scheduled\n *                                               // with async scheduler by default...\n *\n * intervals\n * .observeOn(Rx.Scheduler.animationFrame)       // ...but we will observe on animationFrame\n * .subscribe(val => {                           // scheduler to ensure smooth animation.\n *   someDiv.style.height = val + 'px';\n * });\n *\n * @see {@link delay}\n *\n * @param {IScheduler} scheduler Scheduler that will be used to reschedule notifications from source Observable.\n * @param {number} [delay] Number of milliseconds that states with what delay every notification should be rescheduled.\n * @return {Observable<T>} Observable that emits the same notifications as the source Observable,\n * but with provided scheduler.\n *\n * @method observeOn\n * @owner Observable\n */\nfunction observeOn(scheduler, delay) {\n    if (delay === void 0) { delay = 0; }\n    return function observeOnOperatorFunction(source) {\n        return source.lift(new ObserveOnOperator(scheduler, delay));\n    };\n}\nexports.observeOn = observeOn;\nvar ObserveOnOperator = (function () {\n    function ObserveOnOperator(scheduler, delay) {\n        if (delay === void 0) { delay = 0; }\n        this.scheduler = scheduler;\n        this.delay = delay;\n    }\n    ObserveOnOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));\n    };\n    return ObserveOnOperator;\n}());\nexports.ObserveOnOperator = ObserveOnOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ObserveOnSubscriber = (function (_super) {\n    __extends(ObserveOnSubscriber, _super);\n    function ObserveOnSubscriber(destination, scheduler, delay) {\n        if (delay === void 0) { delay = 0; }\n        _super.call(this, destination);\n        this.scheduler = scheduler;\n        this.delay = delay;\n    }\n    ObserveOnSubscriber.dispatch = function (arg) {\n        var notification = arg.notification, destination = arg.destination;\n        notification.observe(destination);\n        this.unsubscribe();\n    };\n    ObserveOnSubscriber.prototype.scheduleMessage = function (notification) {\n        this.add(this.scheduler.schedule(ObserveOnSubscriber.dispatch, this.delay, new ObserveOnMessage(notification, this.destination)));\n    };\n    ObserveOnSubscriber.prototype._next = function (value) {\n        this.scheduleMessage(Notification_1.Notification.createNext(value));\n    };\n    ObserveOnSubscriber.prototype._error = function (err) {\n        this.scheduleMessage(Notification_1.Notification.createError(err));\n    };\n    ObserveOnSubscriber.prototype._complete = function () {\n        this.scheduleMessage(Notification_1.Notification.createComplete());\n    };\n    return ObserveOnSubscriber;\n}(Subscriber_1.Subscriber));\nexports.ObserveOnSubscriber = ObserveOnSubscriber;\nvar ObserveOnMessage = (function () {\n    function ObserveOnMessage(notification, destination) {\n        this.notification = notification;\n        this.destination = destination;\n    }\n    return ObserveOnMessage;\n}());\nexports.ObserveOnMessage = ObserveOnMessage;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/onErrorResumeNext.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar FromObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/FromObservable.js\");\nvar isArray_1 = __webpack_require__(\"./node_modules/rxjs/util/isArray.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/* tslint:enable:max-line-length */\n/**\n * When any of the provided Observable emits an complete or error notification, it immediately subscribes to the next one\n * that was passed.\n *\n * <span class=\"informal\">Execute series of Observables no matter what, even if it means swallowing errors.</span>\n *\n * <img src=\"./img/onErrorResumeNext.png\" width=\"100%\">\n *\n * `onErrorResumeNext` is an operator that accepts a series of Observables, provided either directly as\n * arguments or as an array. If no single Observable is provided, returned Observable will simply behave the same\n * as the source.\n *\n * `onErrorResumeNext` returns an Observable that starts by subscribing and re-emitting values from the source Observable.\n * When its stream of values ends - no matter if Observable completed or emitted an error - `onErrorResumeNext`\n * will subscribe to the first Observable that was passed as an argument to the method. It will start re-emitting\n * its values as well and - again - when that stream ends, `onErrorResumeNext` will proceed to subscribing yet another\n * Observable in provided series, no matter if previous Observable completed or ended with an error. This will\n * be happening until there is no more Observables left in the series, at which point returned Observable will\n * complete - even if the last subscribed stream ended with an error.\n *\n * `onErrorResumeNext` can be therefore thought of as version of {@link concat} operator, which is more permissive\n * when it comes to the errors emitted by its input Observables. While `concat` subscribes to the next Observable\n * in series only if previous one successfully completed, `onErrorResumeNext` subscribes even if it ended with\n * an error.\n *\n * Note that you do not get any access to errors emitted by the Observables. In particular do not\n * expect these errors to appear in error callback passed to {@link subscribe}. If you want to take\n * specific actions based on what error was emitted by an Observable, you should try out {@link catch} instead.\n *\n *\n * @example <caption>Subscribe to the next Observable after map fails</caption>\n * Rx.Observable.of(1, 2, 3, 0)\n *   .map(x => {\n *       if (x === 0) { throw Error(); }\n         return 10 / x;\n *   })\n *   .onErrorResumeNext(Rx.Observable.of(1, 2, 3))\n *   .subscribe(\n *     val => console.log(val),\n *     err => console.log(err),          // Will never be called.\n *     () => console.log('that\\'s it!')\n *   );\n *\n * // Logs:\n * // 10\n * // 5\n * // 3.3333333333333335\n * // 1\n * // 2\n * // 3\n * // \"that's it!\"\n *\n * @see {@link concat}\n * @see {@link catch}\n *\n * @param {...ObservableInput} observables Observables passed either directly or as an array.\n * @return {Observable} An Observable that emits values from source Observable, but - if it errors - subscribes\n * to the next passed Observable and so on, until it completes or runs out of Observables.\n * @method onErrorResumeNext\n * @owner Observable\n */\nfunction onErrorResumeNext() {\n    var nextSources = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        nextSources[_i - 0] = arguments[_i];\n    }\n    if (nextSources.length === 1 && isArray_1.isArray(nextSources[0])) {\n        nextSources = nextSources[0];\n    }\n    return function (source) { return source.lift(new OnErrorResumeNextOperator(nextSources)); };\n}\nexports.onErrorResumeNext = onErrorResumeNext;\n/* tslint:enable:max-line-length */\nfunction onErrorResumeNextStatic() {\n    var nextSources = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        nextSources[_i - 0] = arguments[_i];\n    }\n    var source = null;\n    if (nextSources.length === 1 && isArray_1.isArray(nextSources[0])) {\n        nextSources = nextSources[0];\n    }\n    source = nextSources.shift();\n    return new FromObservable_1.FromObservable(source, null).lift(new OnErrorResumeNextOperator(nextSources));\n}\nexports.onErrorResumeNextStatic = onErrorResumeNextStatic;\nvar OnErrorResumeNextOperator = (function () {\n    function OnErrorResumeNextOperator(nextSources) {\n        this.nextSources = nextSources;\n    }\n    OnErrorResumeNextOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new OnErrorResumeNextSubscriber(subscriber, this.nextSources));\n    };\n    return OnErrorResumeNextOperator;\n}());\nvar OnErrorResumeNextSubscriber = (function (_super) {\n    __extends(OnErrorResumeNextSubscriber, _super);\n    function OnErrorResumeNextSubscriber(destination, nextSources) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.nextSources = nextSources;\n    }\n    OnErrorResumeNextSubscriber.prototype.notifyError = function (error, innerSub) {\n        this.subscribeToNextSource();\n    };\n    OnErrorResumeNextSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.subscribeToNextSource();\n    };\n    OnErrorResumeNextSubscriber.prototype._error = function (err) {\n        this.subscribeToNextSource();\n    };\n    OnErrorResumeNextSubscriber.prototype._complete = function () {\n        this.subscribeToNextSource();\n    };\n    OnErrorResumeNextSubscriber.prototype.subscribeToNextSource = function () {\n        var next = this.nextSources.shift();\n        if (next) {\n            this.add(subscribeToResult_1.subscribeToResult(this, next));\n        }\n        else {\n            this.destination.complete();\n        }\n    };\n    return OnErrorResumeNextSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/pairwise.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Groups pairs of consecutive emissions together and emits them as an array of\n * two values.\n *\n * <span class=\"informal\">Puts the current value and previous value together as\n * an array, and emits that.</span>\n *\n * <img src=\"./img/pairwise.png\" width=\"100%\">\n *\n * The Nth emission from the source Observable will cause the output Observable\n * to emit an array [(N-1)th, Nth] of the previous and the current value, as a\n * pair. For this reason, `pairwise` emits on the second and subsequent\n * emissions from the source Observable, but not on the first emission, because\n * there is no previous value in that case.\n *\n * @example <caption>On every click (starting from the second), emit the relative distance to the previous click</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var pairs = clicks.pairwise();\n * var distance = pairs.map(pair => {\n *   var x0 = pair[0].clientX;\n *   var y0 = pair[0].clientY;\n *   var x1 = pair[1].clientX;\n *   var y1 = pair[1].clientY;\n *   return Math.sqrt(Math.pow(x0 - x1, 2) + Math.pow(y0 - y1, 2));\n * });\n * distance.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n *\n * @return {Observable<Array<T>>} An Observable of pairs (as arrays) of\n * consecutive values from the source Observable.\n * @method pairwise\n * @owner Observable\n */\nfunction pairwise() {\n    return function (source) { return source.lift(new PairwiseOperator()); };\n}\nexports.pairwise = pairwise;\nvar PairwiseOperator = (function () {\n    function PairwiseOperator() {\n    }\n    PairwiseOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new PairwiseSubscriber(subscriber));\n    };\n    return PairwiseOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar PairwiseSubscriber = (function (_super) {\n    __extends(PairwiseSubscriber, _super);\n    function PairwiseSubscriber(destination) {\n        _super.call(this, destination);\n        this.hasPrev = false;\n    }\n    PairwiseSubscriber.prototype._next = function (value) {\n        if (this.hasPrev) {\n            this.destination.next([this.prev, value]);\n        }\n        else {\n            this.hasPrev = true;\n        }\n        this.prev = value;\n    };\n    return PairwiseSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/partition.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar not_1 = __webpack_require__(\"./node_modules/rxjs/util/not.js\");\nvar filter_1 = __webpack_require__(\"./node_modules/rxjs/operators/filter.js\");\n/**\n * Splits the source Observable into two, one with values that satisfy a\n * predicate, and another with values that don't satisfy the predicate.\n *\n * <span class=\"informal\">It's like {@link filter}, but returns two Observables:\n * one like the output of {@link filter}, and the other with values that did not\n * pass the condition.</span>\n *\n * <img src=\"./img/partition.png\" width=\"100%\">\n *\n * `partition` outputs an array with two Observables that partition the values\n * from the source Observable through the given `predicate` function. The first\n * Observable in that array emits source values for which the predicate argument\n * returns true. The second Observable emits source values for which the\n * predicate returns false. The first behaves like {@link filter} and the second\n * behaves like {@link filter} with the predicate negated.\n *\n * @example <caption>Partition click events into those on DIV elements and those elsewhere</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var parts = clicks.partition(ev => ev.target.tagName === 'DIV');\n * var clicksOnDivs = parts[0];\n * var clicksElsewhere = parts[1];\n * clicksOnDivs.subscribe(x => console.log('DIV clicked: ', x));\n * clicksElsewhere.subscribe(x => console.log('Other clicked: ', x));\n *\n * @see {@link filter}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted on the first Observable in the returned array, if\n * `false` the value is emitted on the second Observable in the array. The\n * `index` parameter is the number `i` for the i-th source emission that has\n * happened since the subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {[Observable<T>, Observable<T>]} An array with two Observables: one\n * with values that passed the predicate, and another with values that did not\n * pass the predicate.\n * @method partition\n * @owner Observable\n */\nfunction partition(predicate, thisArg) {\n    return function (source) { return [\n        filter_1.filter(predicate, thisArg)(source),\n        filter_1.filter(not_1.not(predicate, thisArg))(source)\n    ]; };\n}\nexports.partition = partition;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/pluck.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar map_1 = __webpack_require__(\"./node_modules/rxjs/operators/map.js\");\n/**\n * Maps each source value (an object) to its specified nested property.\n *\n * <span class=\"informal\">Like {@link map}, but meant only for picking one of\n * the nested properties of every emitted object.</span>\n *\n * <img src=\"./img/pluck.png\" width=\"100%\">\n *\n * Given a list of strings describing a path to an object property, retrieves\n * the value of a specified nested property from all values in the source\n * Observable. If a property can't be resolved, it will return `undefined` for\n * that value.\n *\n * @example <caption>Map every click to the tagName of the clicked target element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var tagNames = clicks.pluck('target', 'tagName');\n * tagNames.subscribe(x => console.log(x));\n *\n * @see {@link map}\n *\n * @param {...string} properties The nested properties to pluck from each source\n * value (an object).\n * @return {Observable} A new Observable of property values from the source values.\n * @method pluck\n * @owner Observable\n */\nfunction pluck() {\n    var properties = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        properties[_i - 0] = arguments[_i];\n    }\n    var length = properties.length;\n    if (length === 0) {\n        throw new Error('list of properties cannot be empty.');\n    }\n    return function (source) { return map_1.map(plucker(properties, length))(source); };\n}\nexports.pluck = pluck;\nfunction plucker(props, length) {\n    var mapper = function (x) {\n        var currentProp = x;\n        for (var i = 0; i < length; i++) {\n            var p = currentProp[props[i]];\n            if (typeof p !== 'undefined') {\n                currentProp = p;\n            }\n            else {\n                return undefined;\n            }\n        }\n        return currentProp;\n    };\n    return mapper;\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/publish.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\nvar multicast_1 = __webpack_require__(\"./node_modules/rxjs/operators/multicast.js\");\n/* tslint:enable:max-line-length */\n/**\n * Returns a ConnectableObservable, which is a variety of Observable that waits until its connect method is called\n * before it begins emitting items to those Observers that have subscribed to it.\n *\n * <img src=\"./img/publish.png\" width=\"100%\">\n *\n * @param {Function} [selector] - Optional selector function which can use the multicasted source sequence as many times\n * as needed, without causing multiple subscriptions to the source sequence.\n * Subscribers to the given source will receive all notifications of the source from the time of the subscription on.\n * @return A ConnectableObservable that upon connection causes the source Observable to emit items to its Observers.\n * @method publish\n * @owner Observable\n */\nfunction publish(selector) {\n    return selector ?\n        multicast_1.multicast(function () { return new Subject_1.Subject(); }, selector) :\n        multicast_1.multicast(new Subject_1.Subject());\n}\nexports.publish = publish;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/publishBehavior.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar BehaviorSubject_1 = __webpack_require__(\"./node_modules/rxjs/BehaviorSubject.js\");\nvar multicast_1 = __webpack_require__(\"./node_modules/rxjs/operators/multicast.js\");\n/**\n * @param value\n * @return {ConnectableObservable<T>}\n * @method publishBehavior\n * @owner Observable\n */\nfunction publishBehavior(value) {\n    return function (source) { return multicast_1.multicast(new BehaviorSubject_1.BehaviorSubject(value))(source); };\n}\nexports.publishBehavior = publishBehavior;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/publishLast.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar AsyncSubject_1 = __webpack_require__(\"./node_modules/rxjs/AsyncSubject.js\");\nvar multicast_1 = __webpack_require__(\"./node_modules/rxjs/operators/multicast.js\");\nfunction publishLast() {\n    return function (source) { return multicast_1.multicast(new AsyncSubject_1.AsyncSubject())(source); };\n}\nexports.publishLast = publishLast;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/publishReplay.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar ReplaySubject_1 = __webpack_require__(\"./node_modules/rxjs/ReplaySubject.js\");\nvar multicast_1 = __webpack_require__(\"./node_modules/rxjs/operators/multicast.js\");\n/* tslint:enable:max-line-length */\nfunction publishReplay(bufferSize, windowTime, selectorOrScheduler, scheduler) {\n    if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {\n        scheduler = selectorOrScheduler;\n    }\n    var selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;\n    var subject = new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler);\n    return function (source) { return multicast_1.multicast(function () { return subject; }, selector)(source); };\n}\nexports.publishReplay = publishReplay;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/race.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar isArray_1 = __webpack_require__(\"./node_modules/rxjs/util/isArray.js\");\nvar race_1 = __webpack_require__(\"./node_modules/rxjs/observable/race.js\");\n/* tslint:enable:max-line-length */\n/**\n * Returns an Observable that mirrors the first source Observable to emit an item\n * from the combination of this Observable and supplied Observables.\n * @param {...Observables} ...observables Sources used to race for which Observable emits first.\n * @return {Observable} An Observable that mirrors the output of the first Observable to emit an item.\n * @method race\n * @owner Observable\n */\nfunction race() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    return function raceOperatorFunction(source) {\n        // if the only argument is an array, it was most likely called with\n        // `pair([obs1, obs2, ...])`\n        if (observables.length === 1 && isArray_1.isArray(observables[0])) {\n            observables = observables[0];\n        }\n        return source.lift.call(race_1.race.apply(void 0, [source].concat(observables)));\n    };\n}\nexports.race = race;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/reduce.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar scan_1 = __webpack_require__(\"./node_modules/rxjs/operators/scan.js\");\nvar takeLast_1 = __webpack_require__(\"./node_modules/rxjs/operators/takeLast.js\");\nvar defaultIfEmpty_1 = __webpack_require__(\"./node_modules/rxjs/operators/defaultIfEmpty.js\");\nvar pipe_1 = __webpack_require__(\"./node_modules/rxjs/util/pipe.js\");\n/* tslint:enable:max-line-length */\n/**\n * Applies an accumulator function over the source Observable, and returns the\n * accumulated result when the source completes, given an optional seed value.\n *\n * <span class=\"informal\">Combines together all values emitted on the source,\n * using an accumulator function that knows how to join a new source value into\n * the accumulation from the past.</span>\n *\n * <img src=\"./img/reduce.png\" width=\"100%\">\n *\n * Like\n * [Array.prototype.reduce()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce),\n * `reduce` applies an `accumulator` function against an accumulation and each\n * value of the source Observable (from the past) to reduce it to a single\n * value, emitted on the output Observable. Note that `reduce` will only emit\n * one value, only when the source Observable completes. It is equivalent to\n * applying operator {@link scan} followed by operator {@link last}.\n *\n * Returns an Observable that applies a specified `accumulator` function to each\n * item emitted by the source Observable. If a `seed` value is specified, then\n * that value will be used as the initial value for the accumulator. If no seed\n * value is specified, the first item of the source is used as the seed.\n *\n * @example <caption>Count the number of click events that happened in 5 seconds</caption>\n * var clicksInFiveSeconds = Rx.Observable.fromEvent(document, 'click')\n *   .takeUntil(Rx.Observable.interval(5000));\n * var ones = clicksInFiveSeconds.mapTo(1);\n * var seed = 0;\n * var count = ones.reduce((acc, one) => acc + one, seed);\n * count.subscribe(x => console.log(x));\n *\n * @see {@link count}\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link scan}\n *\n * @param {function(acc: R, value: T, index: number): R} accumulator The accumulator function\n * called on each source value.\n * @param {R} [seed] The initial accumulation value.\n * @return {Observable<R>} An Observable that emits a single value that is the\n * result of accumulating the values emitted by the source Observable.\n * @method reduce\n * @owner Observable\n */\nfunction reduce(accumulator, seed) {\n    // providing a seed of `undefined` *should* be valid and trigger\n    // hasSeed! so don't use `seed !== undefined` checks!\n    // For this reason, we have to check it here at the original call site\n    // otherwise inside Operator/Subscriber we won't know if `undefined`\n    // means they didn't provide anything or if they literally provided `undefined`\n    if (arguments.length >= 2) {\n        return function reduceOperatorFunctionWithSeed(source) {\n            return pipe_1.pipe(scan_1.scan(accumulator, seed), takeLast_1.takeLast(1), defaultIfEmpty_1.defaultIfEmpty(seed))(source);\n        };\n    }\n    return function reduceOperatorFunction(source) {\n        return pipe_1.pipe(scan_1.scan(function (acc, value, index) {\n            return accumulator(acc, value, index + 1);\n        }), takeLast_1.takeLast(1))(source);\n    };\n}\nexports.reduce = reduce;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/refCount.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nfunction refCount() {\n    return function refCountOperatorFunction(source) {\n        return source.lift(new RefCountOperator(source));\n    };\n}\nexports.refCount = refCount;\nvar RefCountOperator = (function () {\n    function RefCountOperator(connectable) {\n        this.connectable = connectable;\n    }\n    RefCountOperator.prototype.call = function (subscriber, source) {\n        var connectable = this.connectable;\n        connectable._refCount++;\n        var refCounter = new RefCountSubscriber(subscriber, connectable);\n        var subscription = source.subscribe(refCounter);\n        if (!refCounter.closed) {\n            refCounter.connection = connectable.connect();\n        }\n        return subscription;\n    };\n    return RefCountOperator;\n}());\nvar RefCountSubscriber = (function (_super) {\n    __extends(RefCountSubscriber, _super);\n    function RefCountSubscriber(destination, connectable) {\n        _super.call(this, destination);\n        this.connectable = connectable;\n    }\n    /** @deprecated internal use only */ RefCountSubscriber.prototype._unsubscribe = function () {\n        var connectable = this.connectable;\n        if (!connectable) {\n            this.connection = null;\n            return;\n        }\n        this.connectable = null;\n        var refCount = connectable._refCount;\n        if (refCount <= 0) {\n            this.connection = null;\n            return;\n        }\n        connectable._refCount = refCount - 1;\n        if (refCount > 1) {\n            this.connection = null;\n            return;\n        }\n        ///\n        // Compare the local RefCountSubscriber's connection Subscription to the\n        // connection Subscription on the shared ConnectableObservable. In cases\n        // where the ConnectableObservable source synchronously emits values, and\n        // the RefCountSubscriber's downstream Observers synchronously unsubscribe,\n        // execution continues to here before the RefCountOperator has a chance to\n        // supply the RefCountSubscriber with the shared connection Subscription.\n        // For example:\n        // ```\n        // Observable.range(0, 10)\n        //   .publish()\n        //   .refCount()\n        //   .take(5)\n        //   .subscribe();\n        // ```\n        // In order to account for this case, RefCountSubscriber should only dispose\n        // the ConnectableObservable's shared connection Subscription if the\n        // connection Subscription exists, *and* either:\n        //   a. RefCountSubscriber doesn't have a reference to the shared connection\n        //      Subscription yet, or,\n        //   b. RefCountSubscriber's connection Subscription reference is identical\n        //      to the shared connection Subscription\n        ///\n        var connection = this.connection;\n        var sharedConnection = connectable._connection;\n        this.connection = null;\n        if (sharedConnection && (!connection || sharedConnection === connection)) {\n            sharedConnection.unsubscribe();\n        }\n    };\n    return RefCountSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/repeat.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar EmptyObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/EmptyObservable.js\");\n/**\n * Returns an Observable that repeats the stream of items emitted by the source Observable at most count times.\n *\n * <img src=\"./img/repeat.png\" width=\"100%\">\n *\n * @param {number} [count] The number of times the source Observable items are repeated, a count of 0 will yield\n * an empty Observable.\n * @return {Observable} An Observable that repeats the stream of items emitted by the source Observable at most\n * count times.\n * @method repeat\n * @owner Observable\n */\nfunction repeat(count) {\n    if (count === void 0) { count = -1; }\n    return function (source) {\n        if (count === 0) {\n            return new EmptyObservable_1.EmptyObservable();\n        }\n        else if (count < 0) {\n            return source.lift(new RepeatOperator(-1, source));\n        }\n        else {\n            return source.lift(new RepeatOperator(count - 1, source));\n        }\n    };\n}\nexports.repeat = repeat;\nvar RepeatOperator = (function () {\n    function RepeatOperator(count, source) {\n        this.count = count;\n        this.source = source;\n    }\n    RepeatOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new RepeatSubscriber(subscriber, this.count, this.source));\n    };\n    return RepeatOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar RepeatSubscriber = (function (_super) {\n    __extends(RepeatSubscriber, _super);\n    function RepeatSubscriber(destination, count, source) {\n        _super.call(this, destination);\n        this.count = count;\n        this.source = source;\n    }\n    RepeatSubscriber.prototype.complete = function () {\n        if (!this.isStopped) {\n            var _a = this, source = _a.source, count = _a.count;\n            if (count === 0) {\n                return _super.prototype.complete.call(this);\n            }\n            else if (count > -1) {\n                this.count = count - 1;\n            }\n            source.subscribe(this._unsubscribeAndRecycle());\n        }\n    };\n    return RepeatSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/repeatWhen.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Returns an Observable that mirrors the source Observable with the exception of a `complete`. If the source\n * Observable calls `complete`, this method will emit to the Observable returned from `notifier`. If that Observable\n * calls `complete` or `error`, then this method will call `complete` or `error` on the child subscription. Otherwise\n * this method will resubscribe to the source Observable.\n *\n * <img src=\"./img/repeatWhen.png\" width=\"100%\">\n *\n * @param {function(notifications: Observable): Observable} notifier - Receives an Observable of notifications with\n * which a user can `complete` or `error`, aborting the repetition.\n * @return {Observable} The source Observable modified with repeat logic.\n * @method repeatWhen\n * @owner Observable\n */\nfunction repeatWhen(notifier) {\n    return function (source) { return source.lift(new RepeatWhenOperator(notifier)); };\n}\nexports.repeatWhen = repeatWhen;\nvar RepeatWhenOperator = (function () {\n    function RepeatWhenOperator(notifier) {\n        this.notifier = notifier;\n    }\n    RepeatWhenOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new RepeatWhenSubscriber(subscriber, this.notifier, source));\n    };\n    return RepeatWhenOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar RepeatWhenSubscriber = (function (_super) {\n    __extends(RepeatWhenSubscriber, _super);\n    function RepeatWhenSubscriber(destination, notifier, source) {\n        _super.call(this, destination);\n        this.notifier = notifier;\n        this.source = source;\n        this.sourceIsBeingSubscribedTo = true;\n    }\n    RepeatWhenSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.sourceIsBeingSubscribedTo = true;\n        this.source.subscribe(this);\n    };\n    RepeatWhenSubscriber.prototype.notifyComplete = function (innerSub) {\n        if (this.sourceIsBeingSubscribedTo === false) {\n            return _super.prototype.complete.call(this);\n        }\n    };\n    RepeatWhenSubscriber.prototype.complete = function () {\n        this.sourceIsBeingSubscribedTo = false;\n        if (!this.isStopped) {\n            if (!this.retries) {\n                this.subscribeToRetries();\n            }\n            if (!this.retriesSubscription || this.retriesSubscription.closed) {\n                return _super.prototype.complete.call(this);\n            }\n            this._unsubscribeAndRecycle();\n            this.notifications.next();\n        }\n    };\n    /** @deprecated internal use only */ RepeatWhenSubscriber.prototype._unsubscribe = function () {\n        var _a = this, notifications = _a.notifications, retriesSubscription = _a.retriesSubscription;\n        if (notifications) {\n            notifications.unsubscribe();\n            this.notifications = null;\n        }\n        if (retriesSubscription) {\n            retriesSubscription.unsubscribe();\n            this.retriesSubscription = null;\n        }\n        this.retries = null;\n    };\n    /** @deprecated internal use only */ RepeatWhenSubscriber.prototype._unsubscribeAndRecycle = function () {\n        var _a = this, notifications = _a.notifications, retries = _a.retries, retriesSubscription = _a.retriesSubscription;\n        this.notifications = null;\n        this.retries = null;\n        this.retriesSubscription = null;\n        _super.prototype._unsubscribeAndRecycle.call(this);\n        this.notifications = notifications;\n        this.retries = retries;\n        this.retriesSubscription = retriesSubscription;\n        return this;\n    };\n    RepeatWhenSubscriber.prototype.subscribeToRetries = function () {\n        this.notifications = new Subject_1.Subject();\n        var retries = tryCatch_1.tryCatch(this.notifier)(this.notifications);\n        if (retries === errorObject_1.errorObject) {\n            return _super.prototype.complete.call(this);\n        }\n        this.retries = retries;\n        this.retriesSubscription = subscribeToResult_1.subscribeToResult(this, retries);\n    };\n    return RepeatWhenSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/retry.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable\n * calls `error`, this method will resubscribe to the source Observable for a maximum of `count` resubscriptions (given\n * as a number parameter) rather than propagating the `error` call.\n *\n * <img src=\"./img/retry.png\" width=\"100%\">\n *\n * Any and all items emitted by the source Observable will be emitted by the resulting Observable, even those emitted\n * during failed subscriptions. For example, if an Observable fails at first but emits [1, 2] then succeeds the second\n * time and emits: [1, 2, 3, 4, 5] then the complete stream of emissions and notifications\n * would be: [1, 2, 1, 2, 3, 4, 5, `complete`].\n * @param {number} count - Number of retry attempts before failing.\n * @return {Observable} The source Observable modified with the retry logic.\n * @method retry\n * @owner Observable\n */\nfunction retry(count) {\n    if (count === void 0) { count = -1; }\n    return function (source) { return source.lift(new RetryOperator(count, source)); };\n}\nexports.retry = retry;\nvar RetryOperator = (function () {\n    function RetryOperator(count, source) {\n        this.count = count;\n        this.source = source;\n    }\n    RetryOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new RetrySubscriber(subscriber, this.count, this.source));\n    };\n    return RetryOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar RetrySubscriber = (function (_super) {\n    __extends(RetrySubscriber, _super);\n    function RetrySubscriber(destination, count, source) {\n        _super.call(this, destination);\n        this.count = count;\n        this.source = source;\n    }\n    RetrySubscriber.prototype.error = function (err) {\n        if (!this.isStopped) {\n            var _a = this, source = _a.source, count = _a.count;\n            if (count === 0) {\n                return _super.prototype.error.call(this, err);\n            }\n            else if (count > -1) {\n                this.count = count - 1;\n            }\n            source.subscribe(this._unsubscribeAndRecycle());\n        }\n    };\n    return RetrySubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/retryWhen.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable\n * calls `error`, this method will emit the Throwable that caused the error to the Observable returned from `notifier`.\n * If that Observable calls `complete` or `error` then this method will call `complete` or `error` on the child\n * subscription. Otherwise this method will resubscribe to the source Observable.\n *\n * <img src=\"./img/retryWhen.png\" width=\"100%\">\n *\n * @param {function(errors: Observable): Observable} notifier - Receives an Observable of notifications with which a\n * user can `complete` or `error`, aborting the retry.\n * @return {Observable} The source Observable modified with retry logic.\n * @method retryWhen\n * @owner Observable\n */\nfunction retryWhen(notifier) {\n    return function (source) { return source.lift(new RetryWhenOperator(notifier, source)); };\n}\nexports.retryWhen = retryWhen;\nvar RetryWhenOperator = (function () {\n    function RetryWhenOperator(notifier, source) {\n        this.notifier = notifier;\n        this.source = source;\n    }\n    RetryWhenOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));\n    };\n    return RetryWhenOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar RetryWhenSubscriber = (function (_super) {\n    __extends(RetryWhenSubscriber, _super);\n    function RetryWhenSubscriber(destination, notifier, source) {\n        _super.call(this, destination);\n        this.notifier = notifier;\n        this.source = source;\n    }\n    RetryWhenSubscriber.prototype.error = function (err) {\n        if (!this.isStopped) {\n            var errors = this.errors;\n            var retries = this.retries;\n            var retriesSubscription = this.retriesSubscription;\n            if (!retries) {\n                errors = new Subject_1.Subject();\n                retries = tryCatch_1.tryCatch(this.notifier)(errors);\n                if (retries === errorObject_1.errorObject) {\n                    return _super.prototype.error.call(this, errorObject_1.errorObject.e);\n                }\n                retriesSubscription = subscribeToResult_1.subscribeToResult(this, retries);\n            }\n            else {\n                this.errors = null;\n                this.retriesSubscription = null;\n            }\n            this._unsubscribeAndRecycle();\n            this.errors = errors;\n            this.retries = retries;\n            this.retriesSubscription = retriesSubscription;\n            errors.next(err);\n        }\n    };\n    /** @deprecated internal use only */ RetryWhenSubscriber.prototype._unsubscribe = function () {\n        var _a = this, errors = _a.errors, retriesSubscription = _a.retriesSubscription;\n        if (errors) {\n            errors.unsubscribe();\n            this.errors = null;\n        }\n        if (retriesSubscription) {\n            retriesSubscription.unsubscribe();\n            this.retriesSubscription = null;\n        }\n        this.retries = null;\n    };\n    RetryWhenSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var _a = this, errors = _a.errors, retries = _a.retries, retriesSubscription = _a.retriesSubscription;\n        this.errors = null;\n        this.retries = null;\n        this.retriesSubscription = null;\n        this._unsubscribeAndRecycle();\n        this.errors = errors;\n        this.retries = retries;\n        this.retriesSubscription = retriesSubscription;\n        this.source.subscribe(this);\n    };\n    return RetryWhenSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/sample.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Emits the most recently emitted value from the source Observable whenever\n * another Observable, the `notifier`, emits.\n *\n * <span class=\"informal\">It's like {@link sampleTime}, but samples whenever\n * the `notifier` Observable emits something.</span>\n *\n * <img src=\"./img/sample.png\" width=\"100%\">\n *\n * Whenever the `notifier` Observable emits a value or completes, `sample`\n * looks at the source Observable and emits whichever value it has most recently\n * emitted since the previous sampling, unless the source has not emitted\n * anything since the previous sampling. The `notifier` is subscribed to as soon\n * as the output Observable is subscribed.\n *\n * @example <caption>On every click, sample the most recent \"seconds\" timer</caption>\n * var seconds = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = seconds.sample(clicks);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param {Observable<any>} notifier The Observable to use for sampling the\n * source Observable.\n * @return {Observable<T>} An Observable that emits the results of sampling the\n * values emitted by the source Observable whenever the notifier Observable\n * emits value or completes.\n * @method sample\n * @owner Observable\n */\nfunction sample(notifier) {\n    return function (source) { return source.lift(new SampleOperator(notifier)); };\n}\nexports.sample = sample;\nvar SampleOperator = (function () {\n    function SampleOperator(notifier) {\n        this.notifier = notifier;\n    }\n    SampleOperator.prototype.call = function (subscriber, source) {\n        var sampleSubscriber = new SampleSubscriber(subscriber);\n        var subscription = source.subscribe(sampleSubscriber);\n        subscription.add(subscribeToResult_1.subscribeToResult(sampleSubscriber, this.notifier));\n        return subscription;\n    };\n    return SampleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SampleSubscriber = (function (_super) {\n    __extends(SampleSubscriber, _super);\n    function SampleSubscriber() {\n        _super.apply(this, arguments);\n        this.hasValue = false;\n    }\n    SampleSubscriber.prototype._next = function (value) {\n        this.value = value;\n        this.hasValue = true;\n    };\n    SampleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.emitValue();\n    };\n    SampleSubscriber.prototype.notifyComplete = function () {\n        this.emitValue();\n    };\n    SampleSubscriber.prototype.emitValue = function () {\n        if (this.hasValue) {\n            this.hasValue = false;\n            this.destination.next(this.value);\n        }\n    };\n    return SampleSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/sampleTime.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\n/**\n * Emits the most recently emitted value from the source Observable within\n * periodic time intervals.\n *\n * <span class=\"informal\">Samples the source Observable at periodic time\n * intervals, emitting what it samples.</span>\n *\n * <img src=\"./img/sampleTime.png\" width=\"100%\">\n *\n * `sampleTime` periodically looks at the source Observable and emits whichever\n * value it has most recently emitted since the previous sampling, unless the\n * source has not emitted anything since the previous sampling. The sampling\n * happens periodically in time every `period` milliseconds (or the time unit\n * defined by the optional `scheduler` argument). The sampling starts as soon as\n * the output Observable is subscribed.\n *\n * @example <caption>Every second, emit the most recent click at most once</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.sampleTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param {number} period The sampling period expressed in milliseconds or the\n * time unit determined internally by the optional `scheduler`.\n * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for\n * managing the timers that handle the sampling.\n * @return {Observable<T>} An Observable that emits the results of sampling the\n * values emitted by the source Observable at the specified time interval.\n * @method sampleTime\n * @owner Observable\n */\nfunction sampleTime(period, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return function (source) { return source.lift(new SampleTimeOperator(period, scheduler)); };\n}\nexports.sampleTime = sampleTime;\nvar SampleTimeOperator = (function () {\n    function SampleTimeOperator(period, scheduler) {\n        this.period = period;\n        this.scheduler = scheduler;\n    }\n    SampleTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SampleTimeSubscriber(subscriber, this.period, this.scheduler));\n    };\n    return SampleTimeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SampleTimeSubscriber = (function (_super) {\n    __extends(SampleTimeSubscriber, _super);\n    function SampleTimeSubscriber(destination, period, scheduler) {\n        _super.call(this, destination);\n        this.period = period;\n        this.scheduler = scheduler;\n        this.hasValue = false;\n        this.add(scheduler.schedule(dispatchNotification, period, { subscriber: this, period: period }));\n    }\n    SampleTimeSubscriber.prototype._next = function (value) {\n        this.lastValue = value;\n        this.hasValue = true;\n    };\n    SampleTimeSubscriber.prototype.notifyNext = function () {\n        if (this.hasValue) {\n            this.hasValue = false;\n            this.destination.next(this.lastValue);\n        }\n    };\n    return SampleTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchNotification(state) {\n    var subscriber = state.subscriber, period = state.period;\n    subscriber.notifyNext();\n    this.schedule(state, period);\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/scan.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/* tslint:enable:max-line-length */\n/**\n * Applies an accumulator function over the source Observable, and returns each\n * intermediate result, with an optional seed value.\n *\n * <span class=\"informal\">It's like {@link reduce}, but emits the current\n * accumulation whenever the source emits a value.</span>\n *\n * <img src=\"./img/scan.png\" width=\"100%\">\n *\n * Combines together all values emitted on the source, using an accumulator\n * function that knows how to join a new source value into the accumulation from\n * the past. Is similar to {@link reduce}, but emits the intermediate\n * accumulations.\n *\n * Returns an Observable that applies a specified `accumulator` function to each\n * item emitted by the source Observable. If a `seed` value is specified, then\n * that value will be used as the initial value for the accumulator. If no seed\n * value is specified, the first item of the source is used as the seed.\n *\n * @example <caption>Count the number of click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var ones = clicks.mapTo(1);\n * var seed = 0;\n * var count = ones.scan((acc, one) => acc + one, seed);\n * count.subscribe(x => console.log(x));\n *\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link reduce}\n *\n * @param {function(acc: R, value: T, index: number): R} accumulator\n * The accumulator function called on each source value.\n * @param {T|R} [seed] The initial accumulation value.\n * @return {Observable<R>} An observable of the accumulated values.\n * @method scan\n * @owner Observable\n */\nfunction scan(accumulator, seed) {\n    var hasSeed = false;\n    // providing a seed of `undefined` *should* be valid and trigger\n    // hasSeed! so don't use `seed !== undefined` checks!\n    // For this reason, we have to check it here at the original call site\n    // otherwise inside Operator/Subscriber we won't know if `undefined`\n    // means they didn't provide anything or if they literally provided `undefined`\n    if (arguments.length >= 2) {\n        hasSeed = true;\n    }\n    return function scanOperatorFunction(source) {\n        return source.lift(new ScanOperator(accumulator, seed, hasSeed));\n    };\n}\nexports.scan = scan;\nvar ScanOperator = (function () {\n    function ScanOperator(accumulator, seed, hasSeed) {\n        if (hasSeed === void 0) { hasSeed = false; }\n        this.accumulator = accumulator;\n        this.seed = seed;\n        this.hasSeed = hasSeed;\n    }\n    ScanOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));\n    };\n    return ScanOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ScanSubscriber = (function (_super) {\n    __extends(ScanSubscriber, _super);\n    function ScanSubscriber(destination, accumulator, _seed, hasSeed) {\n        _super.call(this, destination);\n        this.accumulator = accumulator;\n        this._seed = _seed;\n        this.hasSeed = hasSeed;\n        this.index = 0;\n    }\n    Object.defineProperty(ScanSubscriber.prototype, \"seed\", {\n        get: function () {\n            return this._seed;\n        },\n        set: function (value) {\n            this.hasSeed = true;\n            this._seed = value;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    ScanSubscriber.prototype._next = function (value) {\n        if (!this.hasSeed) {\n            this.seed = value;\n            this.destination.next(value);\n        }\n        else {\n            return this._tryNext(value);\n        }\n    };\n    ScanSubscriber.prototype._tryNext = function (value) {\n        var index = this.index++;\n        var result;\n        try {\n            result = this.accumulator(this.seed, value, index);\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n        this.seed = result;\n        this.destination.next(result);\n    };\n    return ScanSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/sequenceEqual.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\n/**\n * Compares all values of two observables in sequence using an optional comparor function\n * and returns an observable of a single boolean value representing whether or not the two sequences\n * are equal.\n *\n * <span class=\"informal\">Checks to see of all values emitted by both observables are equal, in order.</span>\n *\n * <img src=\"./img/sequenceEqual.png\" width=\"100%\">\n *\n * `sequenceEqual` subscribes to two observables and buffers incoming values from each observable. Whenever either\n * observable emits a value, the value is buffered and the buffers are shifted and compared from the bottom\n * up; If any value pair doesn't match, the returned observable will emit `false` and complete. If one of the\n * observables completes, the operator will wait for the other observable to complete; If the other\n * observable emits before completing, the returned observable will emit `false` and complete. If one observable never\n * completes or emits after the other complets, the returned observable will never complete.\n *\n * @example <caption>figure out if the Konami code matches</caption>\n * var code = Rx.Observable.from([\n *  \"ArrowUp\",\n *  \"ArrowUp\",\n *  \"ArrowDown\",\n *  \"ArrowDown\",\n *  \"ArrowLeft\",\n *  \"ArrowRight\",\n *  \"ArrowLeft\",\n *  \"ArrowRight\",\n *  \"KeyB\",\n *  \"KeyA\",\n *  \"Enter\" // no start key, clearly.\n * ]);\n *\n * var keys = Rx.Observable.fromEvent(document, 'keyup')\n *  .map(e => e.code);\n * var matches = keys.bufferCount(11, 1)\n *  .mergeMap(\n *    last11 =>\n *      Rx.Observable.from(last11)\n *        .sequenceEqual(code)\n *   );\n * matches.subscribe(matched => console.log('Successful cheat at Contra? ', matched));\n *\n * @see {@link combineLatest}\n * @see {@link zip}\n * @see {@link withLatestFrom}\n *\n * @param {Observable} compareTo The observable sequence to compare the source sequence to.\n * @param {function} [comparor] An optional function to compare each value pair\n * @return {Observable} An Observable of a single boolean value representing whether or not\n * the values emitted by both observables were equal in sequence.\n * @method sequenceEqual\n * @owner Observable\n */\nfunction sequenceEqual(compareTo, comparor) {\n    return function (source) { return source.lift(new SequenceEqualOperator(compareTo, comparor)); };\n}\nexports.sequenceEqual = sequenceEqual;\nvar SequenceEqualOperator = (function () {\n    function SequenceEqualOperator(compareTo, comparor) {\n        this.compareTo = compareTo;\n        this.comparor = comparor;\n    }\n    SequenceEqualOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SequenceEqualSubscriber(subscriber, this.compareTo, this.comparor));\n    };\n    return SequenceEqualOperator;\n}());\nexports.SequenceEqualOperator = SequenceEqualOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SequenceEqualSubscriber = (function (_super) {\n    __extends(SequenceEqualSubscriber, _super);\n    function SequenceEqualSubscriber(destination, compareTo, comparor) {\n        _super.call(this, destination);\n        this.compareTo = compareTo;\n        this.comparor = comparor;\n        this._a = [];\n        this._b = [];\n        this._oneComplete = false;\n        this.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination, this)));\n    }\n    SequenceEqualSubscriber.prototype._next = function (value) {\n        if (this._oneComplete && this._b.length === 0) {\n            this.emit(false);\n        }\n        else {\n            this._a.push(value);\n            this.checkValues();\n        }\n    };\n    SequenceEqualSubscriber.prototype._complete = function () {\n        if (this._oneComplete) {\n            this.emit(this._a.length === 0 && this._b.length === 0);\n        }\n        else {\n            this._oneComplete = true;\n        }\n    };\n    SequenceEqualSubscriber.prototype.checkValues = function () {\n        var _c = this, _a = _c._a, _b = _c._b, comparor = _c.comparor;\n        while (_a.length > 0 && _b.length > 0) {\n            var a = _a.shift();\n            var b = _b.shift();\n            var areEqual = false;\n            if (comparor) {\n                areEqual = tryCatch_1.tryCatch(comparor)(a, b);\n                if (areEqual === errorObject_1.errorObject) {\n                    this.destination.error(errorObject_1.errorObject.e);\n                }\n            }\n            else {\n                areEqual = a === b;\n            }\n            if (!areEqual) {\n                this.emit(false);\n            }\n        }\n    };\n    SequenceEqualSubscriber.prototype.emit = function (value) {\n        var destination = this.destination;\n        destination.next(value);\n        destination.complete();\n    };\n    SequenceEqualSubscriber.prototype.nextB = function (value) {\n        if (this._oneComplete && this._a.length === 0) {\n            this.emit(false);\n        }\n        else {\n            this._b.push(value);\n            this.checkValues();\n        }\n    };\n    return SequenceEqualSubscriber;\n}(Subscriber_1.Subscriber));\nexports.SequenceEqualSubscriber = SequenceEqualSubscriber;\nvar SequenceEqualCompareToSubscriber = (function (_super) {\n    __extends(SequenceEqualCompareToSubscriber, _super);\n    function SequenceEqualCompareToSubscriber(destination, parent) {\n        _super.call(this, destination);\n        this.parent = parent;\n    }\n    SequenceEqualCompareToSubscriber.prototype._next = function (value) {\n        this.parent.nextB(value);\n    };\n    SequenceEqualCompareToSubscriber.prototype._error = function (err) {\n        this.parent.error(err);\n    };\n    SequenceEqualCompareToSubscriber.prototype._complete = function () {\n        this.parent._complete();\n    };\n    return SequenceEqualCompareToSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/share.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar multicast_1 = __webpack_require__(\"./node_modules/rxjs/operators/multicast.js\");\nvar refCount_1 = __webpack_require__(\"./node_modules/rxjs/operators/refCount.js\");\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\nfunction shareSubjectFactory() {\n    return new Subject_1.Subject();\n}\n/**\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for .multicast(() => new Subject()).refCount().\n *\n * <img src=\"./img/share.png\" width=\"100%\">\n *\n * @return {Observable<T>} An Observable that upon connection causes the source Observable to emit items to its Observers.\n * @method share\n * @owner Observable\n */\nfunction share() {\n    return function (source) { return refCount_1.refCount()(multicast_1.multicast(shareSubjectFactory)(source)); };\n}\nexports.share = share;\n;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/shareReplay.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar ReplaySubject_1 = __webpack_require__(\"./node_modules/rxjs/ReplaySubject.js\");\n/**\n * @method shareReplay\n * @owner Observable\n */\nfunction shareReplay(bufferSize, windowTime, scheduler) {\n    return function (source) { return source.lift(shareReplayOperator(bufferSize, windowTime, scheduler)); };\n}\nexports.shareReplay = shareReplay;\nfunction shareReplayOperator(bufferSize, windowTime, scheduler) {\n    var subject;\n    var refCount = 0;\n    var subscription;\n    var hasError = false;\n    var isComplete = false;\n    return function shareReplayOperation(source) {\n        refCount++;\n        if (!subject || hasError) {\n            hasError = false;\n            subject = new ReplaySubject_1.ReplaySubject(bufferSize, windowTime, scheduler);\n            subscription = source.subscribe({\n                next: function (value) { subject.next(value); },\n                error: function (err) {\n                    hasError = true;\n                    subject.error(err);\n                },\n                complete: function () {\n                    isComplete = true;\n                    subject.complete();\n                },\n            });\n        }\n        var innerSub = subject.subscribe(this);\n        return function () {\n            refCount--;\n            innerSub.unsubscribe();\n            if (subscription && refCount === 0 && isComplete) {\n                subscription.unsubscribe();\n            }\n        };\n    };\n}\n;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/single.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar EmptyError_1 = __webpack_require__(\"./node_modules/rxjs/util/EmptyError.js\");\n/**\n * Returns an Observable that emits the single item emitted by the source Observable that matches a specified\n * predicate, if that Observable emits one such item. If the source Observable emits more than one such item or no\n * such items, notify of an IllegalArgumentException or NoSuchElementException respectively.\n *\n * <img src=\"./img/single.png\" width=\"100%\">\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * @param {Function} predicate - A predicate function to evaluate items emitted by the source Observable.\n * @return {Observable<T>} An Observable that emits the single item emitted by the source Observable that matches\n * the predicate.\n .\n * @method single\n * @owner Observable\n */\nfunction single(predicate) {\n    return function (source) { return source.lift(new SingleOperator(predicate, source)); };\n}\nexports.single = single;\nvar SingleOperator = (function () {\n    function SingleOperator(predicate, source) {\n        this.predicate = predicate;\n        this.source = source;\n    }\n    SingleOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));\n    };\n    return SingleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SingleSubscriber = (function (_super) {\n    __extends(SingleSubscriber, _super);\n    function SingleSubscriber(destination, predicate, source) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.source = source;\n        this.seenValue = false;\n        this.index = 0;\n    }\n    SingleSubscriber.prototype.applySingleValue = function (value) {\n        if (this.seenValue) {\n            this.destination.error('Sequence contains more than one element');\n        }\n        else {\n            this.seenValue = true;\n            this.singleValue = value;\n        }\n    };\n    SingleSubscriber.prototype._next = function (value) {\n        var index = this.index++;\n        if (this.predicate) {\n            this.tryNext(value, index);\n        }\n        else {\n            this.applySingleValue(value);\n        }\n    };\n    SingleSubscriber.prototype.tryNext = function (value, index) {\n        try {\n            if (this.predicate(value, index, this.source)) {\n                this.applySingleValue(value);\n            }\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    SingleSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        if (this.index > 0) {\n            destination.next(this.seenValue ? this.singleValue : undefined);\n            destination.complete();\n        }\n        else {\n            destination.error(new EmptyError_1.EmptyError);\n        }\n    };\n    return SingleSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/skip.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Returns an Observable that skips the first `count` items emitted by the source Observable.\n *\n * <img src=\"./img/skip.png\" width=\"100%\">\n *\n * @param {Number} count - The number of times, items emitted by source Observable should be skipped.\n * @return {Observable} An Observable that skips values emitted by the source Observable.\n *\n * @method skip\n * @owner Observable\n */\nfunction skip(count) {\n    return function (source) { return source.lift(new SkipOperator(count)); };\n}\nexports.skip = skip;\nvar SkipOperator = (function () {\n    function SkipOperator(total) {\n        this.total = total;\n    }\n    SkipOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SkipSubscriber(subscriber, this.total));\n    };\n    return SkipOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SkipSubscriber = (function (_super) {\n    __extends(SkipSubscriber, _super);\n    function SkipSubscriber(destination, total) {\n        _super.call(this, destination);\n        this.total = total;\n        this.count = 0;\n    }\n    SkipSubscriber.prototype._next = function (x) {\n        if (++this.count > this.total) {\n            this.destination.next(x);\n        }\n    };\n    return SkipSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/skipLast.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar ArgumentOutOfRangeError_1 = __webpack_require__(\"./node_modules/rxjs/util/ArgumentOutOfRangeError.js\");\n/**\n * Skip the last `count` values emitted by the source Observable.\n *\n * <img src=\"./img/skipLast.png\" width=\"100%\">\n *\n * `skipLast` returns an Observable that accumulates a queue with a length\n * enough to store the first `count` values. As more values are received,\n * values are taken from the front of the queue and produced on the result\n * sequence. This causes values to be delayed.\n *\n * @example <caption>Skip the last 2 values of an Observable with many values</caption>\n * var many = Rx.Observable.range(1, 5);\n * var skipLastTwo = many.skipLast(2);\n * skipLastTwo.subscribe(x => console.log(x));\n *\n * // Results in:\n * // 1 2 3\n *\n * @see {@link skip}\n * @see {@link skipUntil}\n * @see {@link skipWhile}\n * @see {@link take}\n *\n * @throws {ArgumentOutOfRangeError} When using `skipLast(i)`, it throws\n * ArgumentOutOrRangeError if `i < 0`.\n *\n * @param {number} count Number of elements to skip from the end of the source Observable.\n * @returns {Observable<T>} An Observable that skips the last count values\n * emitted by the source Observable.\n * @method skipLast\n * @owner Observable\n */\nfunction skipLast(count) {\n    return function (source) { return source.lift(new SkipLastOperator(count)); };\n}\nexports.skipLast = skipLast;\nvar SkipLastOperator = (function () {\n    function SkipLastOperator(_skipCount) {\n        this._skipCount = _skipCount;\n        if (this._skipCount < 0) {\n            throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;\n        }\n    }\n    SkipLastOperator.prototype.call = function (subscriber, source) {\n        if (this._skipCount === 0) {\n            // If we don't want to skip any values then just subscribe\n            // to Subscriber without any further logic.\n            return source.subscribe(new Subscriber_1.Subscriber(subscriber));\n        }\n        else {\n            return source.subscribe(new SkipLastSubscriber(subscriber, this._skipCount));\n        }\n    };\n    return SkipLastOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SkipLastSubscriber = (function (_super) {\n    __extends(SkipLastSubscriber, _super);\n    function SkipLastSubscriber(destination, _skipCount) {\n        _super.call(this, destination);\n        this._skipCount = _skipCount;\n        this._count = 0;\n        this._ring = new Array(_skipCount);\n    }\n    SkipLastSubscriber.prototype._next = function (value) {\n        var skipCount = this._skipCount;\n        var count = this._count++;\n        if (count < skipCount) {\n            this._ring[count] = value;\n        }\n        else {\n            var currentIndex = count % skipCount;\n            var ring = this._ring;\n            var oldValue = ring[currentIndex];\n            ring[currentIndex] = value;\n            this.destination.next(oldValue);\n        }\n    };\n    return SkipLastSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/skipUntil.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * <img src=\"./img/skipUntil.png\" width=\"100%\">\n *\n * @param {Observable} notifier - The second Observable that has to emit an item before the source Observable's elements begin to\n * be mirrored by the resulting Observable.\n * @return {Observable<T>} An Observable that skips items from the source Observable until the second Observable emits\n * an item, then emits the remaining items.\n * @method skipUntil\n * @owner Observable\n */\nfunction skipUntil(notifier) {\n    return function (source) { return source.lift(new SkipUntilOperator(notifier)); };\n}\nexports.skipUntil = skipUntil;\nvar SkipUntilOperator = (function () {\n    function SkipUntilOperator(notifier) {\n        this.notifier = notifier;\n    }\n    SkipUntilOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SkipUntilSubscriber(subscriber, this.notifier));\n    };\n    return SkipUntilOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SkipUntilSubscriber = (function (_super) {\n    __extends(SkipUntilSubscriber, _super);\n    function SkipUntilSubscriber(destination, notifier) {\n        _super.call(this, destination);\n        this.hasValue = false;\n        this.isInnerStopped = false;\n        this.add(subscribeToResult_1.subscribeToResult(this, notifier));\n    }\n    SkipUntilSubscriber.prototype._next = function (value) {\n        if (this.hasValue) {\n            _super.prototype._next.call(this, value);\n        }\n    };\n    SkipUntilSubscriber.prototype._complete = function () {\n        if (this.isInnerStopped) {\n            _super.prototype._complete.call(this);\n        }\n        else {\n            this.unsubscribe();\n        }\n    };\n    SkipUntilSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.hasValue = true;\n    };\n    SkipUntilSubscriber.prototype.notifyComplete = function () {\n        this.isInnerStopped = true;\n        if (this.isStopped) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    return SkipUntilSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/skipWhile.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds\n * true, but emits all further source items as soon as the condition becomes false.\n *\n * <img src=\"./img/skipWhile.png\" width=\"100%\">\n *\n * @param {Function} predicate - A function to test each item emitted from the source Observable.\n * @return {Observable<T>} An Observable that begins emitting items emitted by the source Observable when the\n * specified predicate becomes false.\n * @method skipWhile\n * @owner Observable\n */\nfunction skipWhile(predicate) {\n    return function (source) { return source.lift(new SkipWhileOperator(predicate)); };\n}\nexports.skipWhile = skipWhile;\nvar SkipWhileOperator = (function () {\n    function SkipWhileOperator(predicate) {\n        this.predicate = predicate;\n    }\n    SkipWhileOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SkipWhileSubscriber(subscriber, this.predicate));\n    };\n    return SkipWhileOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SkipWhileSubscriber = (function (_super) {\n    __extends(SkipWhileSubscriber, _super);\n    function SkipWhileSubscriber(destination, predicate) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.skipping = true;\n        this.index = 0;\n    }\n    SkipWhileSubscriber.prototype._next = function (value) {\n        var destination = this.destination;\n        if (this.skipping) {\n            this.tryCallPredicate(value);\n        }\n        if (!this.skipping) {\n            destination.next(value);\n        }\n    };\n    SkipWhileSubscriber.prototype.tryCallPredicate = function (value) {\n        try {\n            var result = this.predicate(value, this.index++);\n            this.skipping = Boolean(result);\n        }\n        catch (err) {\n            this.destination.error(err);\n        }\n    };\n    return SkipWhileSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/startWith.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar ArrayObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/ArrayObservable.js\");\nvar ScalarObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/ScalarObservable.js\");\nvar EmptyObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/EmptyObservable.js\");\nvar concat_1 = __webpack_require__(\"./node_modules/rxjs/observable/concat.js\");\nvar isScheduler_1 = __webpack_require__(\"./node_modules/rxjs/util/isScheduler.js\");\n/* tslint:enable:max-line-length */\n/**\n * Returns an Observable that emits the items you specify as arguments before it begins to emit\n * items emitted by the source Observable.\n *\n * <img src=\"./img/startWith.png\" width=\"100%\">\n *\n * @param {...T} values - Items you want the modified Observable to emit first.\n * @param {Scheduler} [scheduler] - A {@link IScheduler} to use for scheduling\n * the emissions of the `next` notifications.\n * @return {Observable} An Observable that emits the items in the specified Iterable and then emits the items\n * emitted by the source Observable.\n * @method startWith\n * @owner Observable\n */\nfunction startWith() {\n    var array = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        array[_i - 0] = arguments[_i];\n    }\n    return function (source) {\n        var scheduler = array[array.length - 1];\n        if (isScheduler_1.isScheduler(scheduler)) {\n            array.pop();\n        }\n        else {\n            scheduler = null;\n        }\n        var len = array.length;\n        if (len === 1) {\n            return concat_1.concat(new ScalarObservable_1.ScalarObservable(array[0], scheduler), source);\n        }\n        else if (len > 1) {\n            return concat_1.concat(new ArrayObservable_1.ArrayObservable(array, scheduler), source);\n        }\n        else {\n            return concat_1.concat(new EmptyObservable_1.EmptyObservable(scheduler), source);\n        }\n    };\n}\nexports.startWith = startWith;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/switchAll.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar switchMap_1 = __webpack_require__(\"./node_modules/rxjs/operators/switchMap.js\");\nvar identity_1 = __webpack_require__(\"./node_modules/rxjs/util/identity.js\");\nfunction switchAll() {\n    return switchMap_1.switchMap(identity_1.identity);\n}\nexports.switchAll = switchAll;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/switchMap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/* tslint:enable:max-line-length */\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable, emitting values only from the most recently projected Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link switch}.</span>\n *\n * <img src=\"./img/switchMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. Each time it observes one of these\n * inner Observables, the output Observable begins emitting the items emitted by\n * that inner Observable. When a new inner Observable is emitted, `switchMap`\n * stops emitting items from the earlier-emitted inner Observable and begins\n * emitting items from the new one. It continues to behave like this for\n * subsequent inner Observables.\n *\n * @example <caption>Rerun an interval Observable on every click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.switchMap((ev) => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link mergeMap}\n * @see {@link switch}\n * @see {@link switchMapTo}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable that emits the result of applying the\n * projection function (and the optional `resultSelector`) to each item emitted\n * by the source Observable and taking only the values from the most recently\n * projected inner Observable.\n * @method switchMap\n * @owner Observable\n */\nfunction switchMap(project, resultSelector) {\n    return function switchMapOperatorFunction(source) {\n        return source.lift(new SwitchMapOperator(project, resultSelector));\n    };\n}\nexports.switchMap = switchMap;\nvar SwitchMapOperator = (function () {\n    function SwitchMapOperator(project, resultSelector) {\n        this.project = project;\n        this.resultSelector = resultSelector;\n    }\n    SwitchMapOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SwitchMapSubscriber(subscriber, this.project, this.resultSelector));\n    };\n    return SwitchMapOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SwitchMapSubscriber = (function (_super) {\n    __extends(SwitchMapSubscriber, _super);\n    function SwitchMapSubscriber(destination, project, resultSelector) {\n        _super.call(this, destination);\n        this.project = project;\n        this.resultSelector = resultSelector;\n        this.index = 0;\n    }\n    SwitchMapSubscriber.prototype._next = function (value) {\n        var result;\n        var index = this.index++;\n        try {\n            result = this.project(value, index);\n        }\n        catch (error) {\n            this.destination.error(error);\n            return;\n        }\n        this._innerSub(result, value, index);\n    };\n    SwitchMapSubscriber.prototype._innerSub = function (result, value, index) {\n        var innerSubscription = this.innerSubscription;\n        if (innerSubscription) {\n            innerSubscription.unsubscribe();\n        }\n        this.add(this.innerSubscription = subscribeToResult_1.subscribeToResult(this, result, value, index));\n    };\n    SwitchMapSubscriber.prototype._complete = function () {\n        var innerSubscription = this.innerSubscription;\n        if (!innerSubscription || innerSubscription.closed) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    /** @deprecated internal use only */ SwitchMapSubscriber.prototype._unsubscribe = function () {\n        this.innerSubscription = null;\n    };\n    SwitchMapSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.remove(innerSub);\n        this.innerSubscription = null;\n        if (this.isStopped) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    SwitchMapSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        if (this.resultSelector) {\n            this._tryNotifyNext(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        else {\n            this.destination.next(innerValue);\n        }\n    };\n    SwitchMapSubscriber.prototype._tryNotifyNext = function (outerValue, innerValue, outerIndex, innerIndex) {\n        var result;\n        try {\n            result = this.resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    return SwitchMapSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/switchMapTo.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/* tslint:enable:max-line-length */\n/**\n * Projects each source value to the same Observable which is flattened multiple\n * times with {@link switch} in the output Observable.\n *\n * <span class=\"informal\">It's like {@link switchMap}, but maps each value\n * always to the same inner Observable.</span>\n *\n * <img src=\"./img/switchMapTo.png\" width=\"100%\">\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then flattens those resulting Observables into one\n * single Observable, which is the output Observable. The output Observables\n * emits values only from the most recently emitted instance of\n * `innerObservable`.\n *\n * @example <caption>Rerun an interval Observable on every click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.switchMapTo(Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMapTo}\n * @see {@link switch}\n * @see {@link switchMap}\n * @see {@link mergeMapTo}\n *\n * @param {ObservableInput} innerObservable An Observable to replace each value from\n * the source Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable that emits items from the given\n * `innerObservable` (and optionally transformed through `resultSelector`) every\n * time a value is emitted on the source Observable, and taking only the values\n * from the most recently projected inner Observable.\n * @method switchMapTo\n * @owner Observable\n */\nfunction switchMapTo(innerObservable, resultSelector) {\n    return function (source) { return source.lift(new SwitchMapToOperator(innerObservable, resultSelector)); };\n}\nexports.switchMapTo = switchMapTo;\nvar SwitchMapToOperator = (function () {\n    function SwitchMapToOperator(observable, resultSelector) {\n        this.observable = observable;\n        this.resultSelector = resultSelector;\n    }\n    SwitchMapToOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new SwitchMapToSubscriber(subscriber, this.observable, this.resultSelector));\n    };\n    return SwitchMapToOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar SwitchMapToSubscriber = (function (_super) {\n    __extends(SwitchMapToSubscriber, _super);\n    function SwitchMapToSubscriber(destination, inner, resultSelector) {\n        _super.call(this, destination);\n        this.inner = inner;\n        this.resultSelector = resultSelector;\n        this.index = 0;\n    }\n    SwitchMapToSubscriber.prototype._next = function (value) {\n        var innerSubscription = this.innerSubscription;\n        if (innerSubscription) {\n            innerSubscription.unsubscribe();\n        }\n        this.add(this.innerSubscription = subscribeToResult_1.subscribeToResult(this, this.inner, value, this.index++));\n    };\n    SwitchMapToSubscriber.prototype._complete = function () {\n        var innerSubscription = this.innerSubscription;\n        if (!innerSubscription || innerSubscription.closed) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    /** @deprecated internal use only */ SwitchMapToSubscriber.prototype._unsubscribe = function () {\n        this.innerSubscription = null;\n    };\n    SwitchMapToSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.remove(innerSub);\n        this.innerSubscription = null;\n        if (this.isStopped) {\n            _super.prototype._complete.call(this);\n        }\n    };\n    SwitchMapToSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        if (resultSelector) {\n            this.tryResultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        else {\n            destination.next(innerValue);\n        }\n    };\n    SwitchMapToSubscriber.prototype.tryResultSelector = function (outerValue, innerValue, outerIndex, innerIndex) {\n        var _a = this, resultSelector = _a.resultSelector, destination = _a.destination;\n        var result;\n        try {\n            result = resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n        }\n        catch (err) {\n            destination.error(err);\n            return;\n        }\n        destination.next(result);\n    };\n    return SwitchMapToSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/take.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar ArgumentOutOfRangeError_1 = __webpack_require__(\"./node_modules/rxjs/util/ArgumentOutOfRangeError.js\");\nvar EmptyObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/EmptyObservable.js\");\n/**\n * Emits only the first `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Takes the first `count` values from the source, then\n * completes.</span>\n *\n * <img src=\"./img/take.png\" width=\"100%\">\n *\n * `take` returns an Observable that emits only the first `count` values emitted\n * by the source Observable. If the source emits fewer than `count` values then\n * all of its values are emitted. After that, it completes, regardless if the\n * source completes.\n *\n * @example <caption>Take the first 5 seconds of an infinite 1-second interval Observable</caption>\n * var interval = Rx.Observable.interval(1000);\n * var five = interval.take(5);\n * five.subscribe(x => console.log(x));\n *\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @throws {ArgumentOutOfRangeError} When using `take(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.\n *\n * @param {number} count The maximum number of `next` values to emit.\n * @return {Observable<T>} An Observable that emits only the first `count`\n * values emitted by the source Observable, or all of the values from the source\n * if the source emits fewer than `count` values.\n * @method take\n * @owner Observable\n */\nfunction take(count) {\n    return function (source) {\n        if (count === 0) {\n            return new EmptyObservable_1.EmptyObservable();\n        }\n        else {\n            return source.lift(new TakeOperator(count));\n        }\n    };\n}\nexports.take = take;\nvar TakeOperator = (function () {\n    function TakeOperator(total) {\n        this.total = total;\n        if (this.total < 0) {\n            throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;\n        }\n    }\n    TakeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TakeSubscriber(subscriber, this.total));\n    };\n    return TakeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TakeSubscriber = (function (_super) {\n    __extends(TakeSubscriber, _super);\n    function TakeSubscriber(destination, total) {\n        _super.call(this, destination);\n        this.total = total;\n        this.count = 0;\n    }\n    TakeSubscriber.prototype._next = function (value) {\n        var total = this.total;\n        var count = ++this.count;\n        if (count <= total) {\n            this.destination.next(value);\n            if (count === total) {\n                this.destination.complete();\n                this.unsubscribe();\n            }\n        }\n    };\n    return TakeSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/takeLast.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar ArgumentOutOfRangeError_1 = __webpack_require__(\"./node_modules/rxjs/util/ArgumentOutOfRangeError.js\");\nvar EmptyObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/EmptyObservable.js\");\n/**\n * Emits only the last `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Remembers the latest `count` values, then emits those\n * only when the source completes.</span>\n *\n * <img src=\"./img/takeLast.png\" width=\"100%\">\n *\n * `takeLast` returns an Observable that emits at most the last `count` values\n * emitted by the source Observable. If the source emits fewer than `count`\n * values then all of its values are emitted. This operator must wait until the\n * `complete` notification emission from the source in order to emit the `next`\n * values on the output Observable, because otherwise it is impossible to know\n * whether or not more values will be emitted on the source. For this reason,\n * all values are emitted synchronously, followed by the complete notification.\n *\n * @example <caption>Take the last 3 values of an Observable with many values</caption>\n * var many = Rx.Observable.range(1, 100);\n * var lastThree = many.takeLast(3);\n * lastThree.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @throws {ArgumentOutOfRangeError} When using `takeLast(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.\n *\n * @param {number} count The maximum number of values to emit from the end of\n * the sequence of values emitted by the source Observable.\n * @return {Observable<T>} An Observable that emits at most the last count\n * values emitted by the source Observable.\n * @method takeLast\n * @owner Observable\n */\nfunction takeLast(count) {\n    return function takeLastOperatorFunction(source) {\n        if (count === 0) {\n            return new EmptyObservable_1.EmptyObservable();\n        }\n        else {\n            return source.lift(new TakeLastOperator(count));\n        }\n    };\n}\nexports.takeLast = takeLast;\nvar TakeLastOperator = (function () {\n    function TakeLastOperator(total) {\n        this.total = total;\n        if (this.total < 0) {\n            throw new ArgumentOutOfRangeError_1.ArgumentOutOfRangeError;\n        }\n    }\n    TakeLastOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TakeLastSubscriber(subscriber, this.total));\n    };\n    return TakeLastOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TakeLastSubscriber = (function (_super) {\n    __extends(TakeLastSubscriber, _super);\n    function TakeLastSubscriber(destination, total) {\n        _super.call(this, destination);\n        this.total = total;\n        this.ring = new Array();\n        this.count = 0;\n    }\n    TakeLastSubscriber.prototype._next = function (value) {\n        var ring = this.ring;\n        var total = this.total;\n        var count = this.count++;\n        if (ring.length < total) {\n            ring.push(value);\n        }\n        else {\n            var index = count % total;\n            ring[index] = value;\n        }\n    };\n    TakeLastSubscriber.prototype._complete = function () {\n        var destination = this.destination;\n        var count = this.count;\n        if (count > 0) {\n            var total = this.count >= this.total ? this.total : this.count;\n            var ring = this.ring;\n            for (var i = 0; i < total; i++) {\n                var idx = (count++) % total;\n                destination.next(ring[idx]);\n            }\n        }\n        destination.complete();\n    };\n    return TakeLastSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/takeUntil.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Emits the values emitted by the source Observable until a `notifier`\n * Observable emits a value.\n *\n * <span class=\"informal\">Lets values pass until a second Observable,\n * `notifier`, emits something. Then, it completes.</span>\n *\n * <img src=\"./img/takeUntil.png\" width=\"100%\">\n *\n * `takeUntil` subscribes and begins mirroring the source Observable. It also\n * monitors a second Observable, `notifier` that you provide. If the `notifier`\n * emits a value or a complete notification, the output Observable stops\n * mirroring the source Observable and completes.\n *\n * @example <caption>Tick every second until the first click happens</caption>\n * var interval = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = interval.takeUntil(clicks);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param {Observable} notifier The Observable whose first emitted value will\n * cause the output Observable of `takeUntil` to stop emitting values from the\n * source Observable.\n * @return {Observable<T>} An Observable that emits the values from the source\n * Observable until such time as `notifier` emits its first value.\n * @method takeUntil\n * @owner Observable\n */\nfunction takeUntil(notifier) {\n    return function (source) { return source.lift(new TakeUntilOperator(notifier)); };\n}\nexports.takeUntil = takeUntil;\nvar TakeUntilOperator = (function () {\n    function TakeUntilOperator(notifier) {\n        this.notifier = notifier;\n    }\n    TakeUntilOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TakeUntilSubscriber(subscriber, this.notifier));\n    };\n    return TakeUntilOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TakeUntilSubscriber = (function (_super) {\n    __extends(TakeUntilSubscriber, _super);\n    function TakeUntilSubscriber(destination, notifier) {\n        _super.call(this, destination);\n        this.notifier = notifier;\n        this.add(subscribeToResult_1.subscribeToResult(this, notifier));\n    }\n    TakeUntilSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.complete();\n    };\n    TakeUntilSubscriber.prototype.notifyComplete = function () {\n        // noop\n    };\n    return TakeUntilSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/takeWhile.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/**\n * Emits values emitted by the source Observable so long as each value satisfies\n * the given `predicate`, and then completes as soon as this `predicate` is not\n * satisfied.\n *\n * <span class=\"informal\">Takes values from the source only while they pass the\n * condition given. When the first value does not satisfy, it completes.</span>\n *\n * <img src=\"./img/takeWhile.png\" width=\"100%\">\n *\n * `takeWhile` subscribes and begins mirroring the source Observable. Each value\n * emitted on the source is given to the `predicate` function which returns a\n * boolean, representing a condition to be satisfied by the source values. The\n * output Observable emits the source values until such time as the `predicate`\n * returns false, at which point `takeWhile` stops mirroring the source\n * Observable and completes the output Observable.\n *\n * @example <caption>Emit click events only while the clientX property is greater than 200</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.takeWhile(ev => ev.clientX > 200);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates a value emitted by the source Observable and returns a boolean.\n * Also takes the (zero-based) index as the second argument.\n * @return {Observable<T>} An Observable that emits the values from the source\n * Observable so long as each value satisfies the condition defined by the\n * `predicate`, then completes.\n * @method takeWhile\n * @owner Observable\n */\nfunction takeWhile(predicate) {\n    return function (source) { return source.lift(new TakeWhileOperator(predicate)); };\n}\nexports.takeWhile = takeWhile;\nvar TakeWhileOperator = (function () {\n    function TakeWhileOperator(predicate) {\n        this.predicate = predicate;\n    }\n    TakeWhileOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate));\n    };\n    return TakeWhileOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TakeWhileSubscriber = (function (_super) {\n    __extends(TakeWhileSubscriber, _super);\n    function TakeWhileSubscriber(destination, predicate) {\n        _super.call(this, destination);\n        this.predicate = predicate;\n        this.index = 0;\n    }\n    TakeWhileSubscriber.prototype._next = function (value) {\n        var destination = this.destination;\n        var result;\n        try {\n            result = this.predicate(value, this.index++);\n        }\n        catch (err) {\n            destination.error(err);\n            return;\n        }\n        this.nextOrComplete(value, result);\n    };\n    TakeWhileSubscriber.prototype.nextOrComplete = function (value, predicateResult) {\n        var destination = this.destination;\n        if (Boolean(predicateResult)) {\n            destination.next(value);\n        }\n        else {\n            destination.complete();\n        }\n    };\n    return TakeWhileSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/tap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\n/* tslint:enable:max-line-length */\n/**\n * Perform a side effect for every emission on the source Observable, but return\n * an Observable that is identical to the source.\n *\n * <span class=\"informal\">Intercepts each emission on the source and runs a\n * function, but returns an output which is identical to the source as long as errors don't occur.</span>\n *\n * <img src=\"./img/do.png\" width=\"100%\">\n *\n * Returns a mirrored Observable of the source Observable, but modified so that\n * the provided Observer is called to perform a side effect for every value,\n * error, and completion emitted by the source. Any errors that are thrown in\n * the aforementioned Observer or handlers are safely sent down the error path\n * of the output Observable.\n *\n * This operator is useful for debugging your Observables for the correct values\n * or performing other side effects.\n *\n * Note: this is different to a `subscribe` on the Observable. If the Observable\n * returned by `do` is not subscribed, the side effects specified by the\n * Observer will never happen. `do` therefore simply spies on existing\n * execution, it does not trigger an execution to happen like `subscribe` does.\n *\n * @example <caption>Map every click to the clientX position of that click, while also logging the click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var positions = clicks\n *   .do(ev => console.log(ev))\n *   .map(ev => ev.clientX);\n * positions.subscribe(x => console.log(x));\n *\n * @see {@link map}\n * @see {@link subscribe}\n *\n * @param {Observer|function} [nextOrObserver] A normal Observer object or a\n * callback for `next`.\n * @param {function} [error] Callback for errors in the source.\n * @param {function} [complete] Callback for the completion of the source.\n * @return {Observable} An Observable identical to the source, but runs the\n * specified Observer or callback(s) for each item.\n * @name tap\n */\nfunction tap(nextOrObserver, error, complete) {\n    return function tapOperatorFunction(source) {\n        return source.lift(new DoOperator(nextOrObserver, error, complete));\n    };\n}\nexports.tap = tap;\nvar DoOperator = (function () {\n    function DoOperator(nextOrObserver, error, complete) {\n        this.nextOrObserver = nextOrObserver;\n        this.error = error;\n        this.complete = complete;\n    }\n    DoOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new DoSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));\n    };\n    return DoOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar DoSubscriber = (function (_super) {\n    __extends(DoSubscriber, _super);\n    function DoSubscriber(destination, nextOrObserver, error, complete) {\n        _super.call(this, destination);\n        var safeSubscriber = new Subscriber_1.Subscriber(nextOrObserver, error, complete);\n        safeSubscriber.syncErrorThrowable = true;\n        this.add(safeSubscriber);\n        this.safeSubscriber = safeSubscriber;\n    }\n    DoSubscriber.prototype._next = function (value) {\n        var safeSubscriber = this.safeSubscriber;\n        safeSubscriber.next(value);\n        if (safeSubscriber.syncErrorThrown) {\n            this.destination.error(safeSubscriber.syncErrorValue);\n        }\n        else {\n            this.destination.next(value);\n        }\n    };\n    DoSubscriber.prototype._error = function (err) {\n        var safeSubscriber = this.safeSubscriber;\n        safeSubscriber.error(err);\n        if (safeSubscriber.syncErrorThrown) {\n            this.destination.error(safeSubscriber.syncErrorValue);\n        }\n        else {\n            this.destination.error(err);\n        }\n    };\n    DoSubscriber.prototype._complete = function () {\n        var safeSubscriber = this.safeSubscriber;\n        safeSubscriber.complete();\n        if (safeSubscriber.syncErrorThrown) {\n            this.destination.error(safeSubscriber.syncErrorValue);\n        }\n        else {\n            this.destination.complete();\n        }\n    };\n    return DoSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/throttle.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\nexports.defaultThrottleConfig = {\n    leading: true,\n    trailing: false\n};\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for a duration determined by another Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link throttleTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * <img src=\"./img/throttle.png\" width=\"100%\">\n *\n * `throttle` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled by calling the `durationSelector` function with the source value,\n * which returns the \"duration\" Observable. When the duration Observable emits a\n * value or completes, the timer is disabled, and this process repeats for the\n * next source value.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.throttle(ev => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param {function(value: T): SubscribableOrPromise} durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration for each source value, returned as an Observable or a Promise.\n * @param {Object} config a configuration object to define `leading` and `trailing` behavior. Defaults\n * to `{ leading: true, trailing: false }`.\n * @return {Observable<T>} An Observable that performs the throttle operation to\n * limit the rate of emissions from the source.\n * @method throttle\n * @owner Observable\n */\nfunction throttle(durationSelector, config) {\n    if (config === void 0) { config = exports.defaultThrottleConfig; }\n    return function (source) { return source.lift(new ThrottleOperator(durationSelector, config.leading, config.trailing)); };\n}\nexports.throttle = throttle;\nvar ThrottleOperator = (function () {\n    function ThrottleOperator(durationSelector, leading, trailing) {\n        this.durationSelector = durationSelector;\n        this.leading = leading;\n        this.trailing = trailing;\n    }\n    ThrottleOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ThrottleSubscriber(subscriber, this.durationSelector, this.leading, this.trailing));\n    };\n    return ThrottleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc\n * @ignore\n * @extends {Ignored}\n */\nvar ThrottleSubscriber = (function (_super) {\n    __extends(ThrottleSubscriber, _super);\n    function ThrottleSubscriber(destination, durationSelector, _leading, _trailing) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.durationSelector = durationSelector;\n        this._leading = _leading;\n        this._trailing = _trailing;\n        this._hasTrailingValue = false;\n    }\n    ThrottleSubscriber.prototype._next = function (value) {\n        if (this.throttled) {\n            if (this._trailing) {\n                this._hasTrailingValue = true;\n                this._trailingValue = value;\n            }\n        }\n        else {\n            var duration = this.tryDurationSelector(value);\n            if (duration) {\n                this.add(this.throttled = subscribeToResult_1.subscribeToResult(this, duration));\n            }\n            if (this._leading) {\n                this.destination.next(value);\n                if (this._trailing) {\n                    this._hasTrailingValue = true;\n                    this._trailingValue = value;\n                }\n            }\n        }\n    };\n    ThrottleSubscriber.prototype.tryDurationSelector = function (value) {\n        try {\n            return this.durationSelector(value);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return null;\n        }\n    };\n    /** @deprecated internal use only */ ThrottleSubscriber.prototype._unsubscribe = function () {\n        var _a = this, throttled = _a.throttled, _trailingValue = _a._trailingValue, _hasTrailingValue = _a._hasTrailingValue, _trailing = _a._trailing;\n        this._trailingValue = null;\n        this._hasTrailingValue = false;\n        if (throttled) {\n            this.remove(throttled);\n            this.throttled = null;\n            throttled.unsubscribe();\n        }\n    };\n    ThrottleSubscriber.prototype._sendTrailing = function () {\n        var _a = this, destination = _a.destination, throttled = _a.throttled, _trailing = _a._trailing, _trailingValue = _a._trailingValue, _hasTrailingValue = _a._hasTrailingValue;\n        if (throttled && _trailing && _hasTrailingValue) {\n            destination.next(_trailingValue);\n            this._trailingValue = null;\n            this._hasTrailingValue = false;\n        }\n    };\n    ThrottleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this._sendTrailing();\n        this._unsubscribe();\n    };\n    ThrottleSubscriber.prototype.notifyComplete = function () {\n        this._sendTrailing();\n        this._unsubscribe();\n    };\n    return ThrottleSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/throttleTime.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\nvar throttle_1 = __webpack_require__(\"./node_modules/rxjs/operators/throttle.js\");\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for `duration` milliseconds, then repeats this process.\n *\n * <span class=\"informal\">Lets a value pass, then ignores source values for the\n * next `duration` milliseconds.</span>\n *\n * <img src=\"./img/throttleTime.png\" width=\"100%\">\n *\n * `throttleTime` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled. After `duration` milliseconds (or the time unit determined\n * internally by the optional `scheduler`) has passed, the timer is disabled,\n * and this process repeats for the next source value. Optionally takes a\n * {@link IScheduler} for managing timers.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.throttleTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param {number} duration Time to wait before emitting another value after\n * emitting the last value, measured in milliseconds or the time unit determined\n * internally by the optional `scheduler`.\n * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for\n * managing the timers that handle the throttling.\n * @return {Observable<T>} An Observable that performs the throttle operation to\n * limit the rate of emissions from the source.\n * @method throttleTime\n * @owner Observable\n */\nfunction throttleTime(duration, scheduler, config) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    if (config === void 0) { config = throttle_1.defaultThrottleConfig; }\n    return function (source) { return source.lift(new ThrottleTimeOperator(duration, scheduler, config.leading, config.trailing)); };\n}\nexports.throttleTime = throttleTime;\nvar ThrottleTimeOperator = (function () {\n    function ThrottleTimeOperator(duration, scheduler, leading, trailing) {\n        this.duration = duration;\n        this.scheduler = scheduler;\n        this.leading = leading;\n        this.trailing = trailing;\n    }\n    ThrottleTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ThrottleTimeSubscriber(subscriber, this.duration, this.scheduler, this.leading, this.trailing));\n    };\n    return ThrottleTimeOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ThrottleTimeSubscriber = (function (_super) {\n    __extends(ThrottleTimeSubscriber, _super);\n    function ThrottleTimeSubscriber(destination, duration, scheduler, leading, trailing) {\n        _super.call(this, destination);\n        this.duration = duration;\n        this.scheduler = scheduler;\n        this.leading = leading;\n        this.trailing = trailing;\n        this._hasTrailingValue = false;\n        this._trailingValue = null;\n    }\n    ThrottleTimeSubscriber.prototype._next = function (value) {\n        if (this.throttled) {\n            if (this.trailing) {\n                this._trailingValue = value;\n                this._hasTrailingValue = true;\n            }\n        }\n        else {\n            this.add(this.throttled = this.scheduler.schedule(dispatchNext, this.duration, { subscriber: this }));\n            if (this.leading) {\n                this.destination.next(value);\n            }\n        }\n    };\n    ThrottleTimeSubscriber.prototype.clearThrottle = function () {\n        var throttled = this.throttled;\n        if (throttled) {\n            if (this.trailing && this._hasTrailingValue) {\n                this.destination.next(this._trailingValue);\n                this._trailingValue = null;\n                this._hasTrailingValue = false;\n            }\n            throttled.unsubscribe();\n            this.remove(throttled);\n            this.throttled = null;\n        }\n    };\n    return ThrottleTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchNext(arg) {\n    var subscriber = arg.subscriber;\n    subscriber.clearThrottle();\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/timeInterval.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\nfunction timeInterval(scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return function (source) { return source.lift(new TimeIntervalOperator(scheduler)); };\n}\nexports.timeInterval = timeInterval;\nvar TimeInterval = (function () {\n    function TimeInterval(value, interval) {\n        this.value = value;\n        this.interval = interval;\n    }\n    return TimeInterval;\n}());\nexports.TimeInterval = TimeInterval;\n;\nvar TimeIntervalOperator = (function () {\n    function TimeIntervalOperator(scheduler) {\n        this.scheduler = scheduler;\n    }\n    TimeIntervalOperator.prototype.call = function (observer, source) {\n        return source.subscribe(new TimeIntervalSubscriber(observer, this.scheduler));\n    };\n    return TimeIntervalOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TimeIntervalSubscriber = (function (_super) {\n    __extends(TimeIntervalSubscriber, _super);\n    function TimeIntervalSubscriber(destination, scheduler) {\n        _super.call(this, destination);\n        this.scheduler = scheduler;\n        this.lastTime = 0;\n        this.lastTime = scheduler.now();\n    }\n    TimeIntervalSubscriber.prototype._next = function (value) {\n        var now = this.scheduler.now();\n        var span = now - this.lastTime;\n        this.lastTime = now;\n        this.destination.next(new TimeInterval(value, span));\n    };\n    return TimeIntervalSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/timeout.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\nvar isDate_1 = __webpack_require__(\"./node_modules/rxjs/util/isDate.js\");\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar TimeoutError_1 = __webpack_require__(\"./node_modules/rxjs/util/TimeoutError.js\");\n/**\n *\n * Errors if Observable does not emit a value in given time span.\n *\n * <span class=\"informal\">Timeouts on Observable that doesn't emit values fast enough.</span>\n *\n * <img src=\"./img/timeout.png\" width=\"100%\">\n *\n * `timeout` operator accepts as an argument either a number or a Date.\n *\n * If number was provided, it returns an Observable that behaves like a source\n * Observable, unless there is a period of time where there is no value emitted.\n * So if you provide `100` as argument and first value comes after 50ms from\n * the moment of subscription, this value will be simply re-emitted by the resulting\n * Observable. If however after that 100ms passes without a second value being emitted,\n * stream will end with an error and source Observable will be unsubscribed.\n * These checks are performed throughout whole lifecycle of Observable - from the moment\n * it was subscribed to, until it completes or errors itself. Thus every value must be\n * emitted within specified period since previous value.\n *\n * If provided argument was Date, returned Observable behaves differently. It throws\n * if Observable did not complete before provided Date. This means that periods between\n * emission of particular values do not matter in this case. If Observable did not complete\n * before provided Date, source Observable will be unsubscribed. Other than that, resulting\n * stream behaves just as source Observable.\n *\n * `timeout` accepts also a Scheduler as a second parameter. It is used to schedule moment (or moments)\n * when returned Observable will check if source stream emitted value or completed.\n *\n * @example <caption>Check if ticks are emitted within certain timespan</caption>\n * const seconds = Rx.Observable.interval(1000);\n *\n * seconds.timeout(1100) // Let's use bigger timespan to be safe,\n *                       // since `interval` might fire a bit later then scheduled.\n * .subscribe(\n *     value => console.log(value), // Will emit numbers just as regular `interval` would.\n *     err => console.log(err) // Will never be called.\n * );\n *\n * seconds.timeout(900).subscribe(\n *     value => console.log(value), // Will never be called.\n *     err => console.log(err) // Will emit error before even first value is emitted,\n *                             // since it did not arrive within 900ms period.\n * );\n *\n * @example <caption>Use Date to check if Observable completed</caption>\n * const seconds = Rx.Observable.interval(1000);\n *\n * seconds.timeout(new Date(\"December 17, 2020 03:24:00\"))\n * .subscribe(\n *     value => console.log(value), // Will emit values as regular `interval` would\n *                                  // until December 17, 2020 at 03:24:00.\n *     err => console.log(err) // On December 17, 2020 at 03:24:00 it will emit an error,\n *                             // since Observable did not complete by then.\n * );\n *\n * @see {@link timeoutWith}\n *\n * @param {number|Date} due Number specifying period within which Observable must emit values\n *                          or Date specifying before when Observable should complete\n * @param {Scheduler} [scheduler] Scheduler controlling when timeout checks occur.\n * @return {Observable<T>} Observable that mirrors behaviour of source, unless timeout checks fail.\n * @method timeout\n * @owner Observable\n */\nfunction timeout(due, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    var absoluteTimeout = isDate_1.isDate(due);\n    var waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(due);\n    return function (source) { return source.lift(new TimeoutOperator(waitFor, absoluteTimeout, scheduler, new TimeoutError_1.TimeoutError())); };\n}\nexports.timeout = timeout;\nvar TimeoutOperator = (function () {\n    function TimeoutOperator(waitFor, absoluteTimeout, scheduler, errorInstance) {\n        this.waitFor = waitFor;\n        this.absoluteTimeout = absoluteTimeout;\n        this.scheduler = scheduler;\n        this.errorInstance = errorInstance;\n    }\n    TimeoutOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TimeoutSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.scheduler, this.errorInstance));\n    };\n    return TimeoutOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TimeoutSubscriber = (function (_super) {\n    __extends(TimeoutSubscriber, _super);\n    function TimeoutSubscriber(destination, absoluteTimeout, waitFor, scheduler, errorInstance) {\n        _super.call(this, destination);\n        this.absoluteTimeout = absoluteTimeout;\n        this.waitFor = waitFor;\n        this.scheduler = scheduler;\n        this.errorInstance = errorInstance;\n        this.action = null;\n        this.scheduleTimeout();\n    }\n    TimeoutSubscriber.dispatchTimeout = function (subscriber) {\n        subscriber.error(subscriber.errorInstance);\n    };\n    TimeoutSubscriber.prototype.scheduleTimeout = function () {\n        var action = this.action;\n        if (action) {\n            // Recycle the action if we've already scheduled one. All the production\n            // Scheduler Actions mutate their state/delay time and return themeselves.\n            // VirtualActions are immutable, so they create and return a clone. In this\n            // case, we need to set the action reference to the most recent VirtualAction,\n            // to ensure that's the one we clone from next time.\n            this.action = action.schedule(this, this.waitFor);\n        }\n        else {\n            this.add(this.action = this.scheduler.schedule(TimeoutSubscriber.dispatchTimeout, this.waitFor, this));\n        }\n    };\n    TimeoutSubscriber.prototype._next = function (value) {\n        if (!this.absoluteTimeout) {\n            this.scheduleTimeout();\n        }\n        _super.prototype._next.call(this, value);\n    };\n    /** @deprecated internal use only */ TimeoutSubscriber.prototype._unsubscribe = function () {\n        this.action = null;\n        this.scheduler = null;\n        this.errorInstance = null;\n    };\n    return TimeoutSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/timeoutWith.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\nvar isDate_1 = __webpack_require__(\"./node_modules/rxjs/util/isDate.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/* tslint:enable:max-line-length */\n/**\n *\n * Errors if Observable does not emit a value in given time span, in case of which\n * subscribes to the second Observable.\n *\n * <span class=\"informal\">It's a version of `timeout` operator that let's you specify fallback Observable.</span>\n *\n * <img src=\"./img/timeoutWith.png\" width=\"100%\">\n *\n * `timeoutWith` is a variation of `timeout` operator. It behaves exactly the same,\n * still accepting as a first argument either a number or a Date, which control - respectively -\n * when values of source Observable should be emitted or when it should complete.\n *\n * The only difference is that it accepts a second, required parameter. This parameter\n * should be an Observable which will be subscribed when source Observable fails any timeout check.\n * So whenever regular `timeout` would emit an error, `timeoutWith` will instead start re-emitting\n * values from second Observable. Note that this fallback Observable is not checked for timeouts\n * itself, so it can emit values and complete at arbitrary points in time. From the moment of a second\n * subscription, Observable returned from `timeoutWith` simply mirrors fallback stream. When that\n * stream completes, it completes as well.\n *\n * Scheduler, which in case of `timeout` is provided as as second argument, can be still provided\n * here - as a third, optional parameter. It still is used to schedule timeout checks and -\n * as a consequence - when second Observable will be subscribed, since subscription happens\n * immediately after failing check.\n *\n * @example <caption>Add fallback observable</caption>\n * const seconds = Rx.Observable.interval(1000);\n * const minutes = Rx.Observable.interval(60 * 1000);\n *\n * seconds.timeoutWith(900, minutes)\n *     .subscribe(\n *         value => console.log(value), // After 900ms, will start emitting `minutes`,\n *                                      // since first value of `seconds` will not arrive fast enough.\n *         err => console.log(err) // Would be called after 900ms in case of `timeout`,\n *                                 // but here will never be called.\n *     );\n *\n * @param {number|Date} due Number specifying period within which Observable must emit values\n *                          or Date specifying before when Observable should complete\n * @param {Observable<T>} withObservable Observable which will be subscribed if source fails timeout check.\n * @param {Scheduler} [scheduler] Scheduler controlling when timeout checks occur.\n * @return {Observable<T>} Observable that mirrors behaviour of source or, when timeout check fails, of an Observable\n *                          passed as a second parameter.\n * @method timeoutWith\n * @owner Observable\n */\nfunction timeoutWith(due, withObservable, scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return function (source) {\n        var absoluteTimeout = isDate_1.isDate(due);\n        var waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(due);\n        return source.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));\n    };\n}\nexports.timeoutWith = timeoutWith;\nvar TimeoutWithOperator = (function () {\n    function TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler) {\n        this.waitFor = waitFor;\n        this.absoluteTimeout = absoluteTimeout;\n        this.withObservable = withObservable;\n        this.scheduler = scheduler;\n    }\n    TimeoutWithOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new TimeoutWithSubscriber(subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler));\n    };\n    return TimeoutWithOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar TimeoutWithSubscriber = (function (_super) {\n    __extends(TimeoutWithSubscriber, _super);\n    function TimeoutWithSubscriber(destination, absoluteTimeout, waitFor, withObservable, scheduler) {\n        _super.call(this, destination);\n        this.absoluteTimeout = absoluteTimeout;\n        this.waitFor = waitFor;\n        this.withObservable = withObservable;\n        this.scheduler = scheduler;\n        this.action = null;\n        this.scheduleTimeout();\n    }\n    TimeoutWithSubscriber.dispatchTimeout = function (subscriber) {\n        var withObservable = subscriber.withObservable;\n        subscriber._unsubscribeAndRecycle();\n        subscriber.add(subscribeToResult_1.subscribeToResult(subscriber, withObservable));\n    };\n    TimeoutWithSubscriber.prototype.scheduleTimeout = function () {\n        var action = this.action;\n        if (action) {\n            // Recycle the action if we've already scheduled one. All the production\n            // Scheduler Actions mutate their state/delay time and return themeselves.\n            // VirtualActions are immutable, so they create and return a clone. In this\n            // case, we need to set the action reference to the most recent VirtualAction,\n            // to ensure that's the one we clone from next time.\n            this.action = action.schedule(this, this.waitFor);\n        }\n        else {\n            this.add(this.action = this.scheduler.schedule(TimeoutWithSubscriber.dispatchTimeout, this.waitFor, this));\n        }\n    };\n    TimeoutWithSubscriber.prototype._next = function (value) {\n        if (!this.absoluteTimeout) {\n            this.scheduleTimeout();\n        }\n        _super.prototype._next.call(this, value);\n    };\n    /** @deprecated internal use only */ TimeoutWithSubscriber.prototype._unsubscribe = function () {\n        this.action = null;\n        this.scheduler = null;\n        this.withObservable = null;\n    };\n    return TimeoutWithSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/timestamp.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\nvar map_1 = __webpack_require__(\"./node_modules/rxjs/operators/map.js\");\n/**\n * @param scheduler\n * @return {Observable<Timestamp<any>>|WebSocketSubject<T>|Observable<T>}\n * @method timestamp\n * @owner Observable\n */\nfunction timestamp(scheduler) {\n    if (scheduler === void 0) { scheduler = async_1.async; }\n    return map_1.map(function (value) { return new Timestamp(value, scheduler.now()); });\n    // return (source: Observable<T>) => source.lift(new TimestampOperator(scheduler));\n}\nexports.timestamp = timestamp;\nvar Timestamp = (function () {\n    function Timestamp(value, timestamp) {\n        this.value = value;\n        this.timestamp = timestamp;\n    }\n    return Timestamp;\n}());\nexports.Timestamp = Timestamp;\n;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/toArray.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar reduce_1 = __webpack_require__(\"./node_modules/rxjs/operators/reduce.js\");\nfunction toArrayReducer(arr, item, index) {\n    if (index === 0) {\n        return [item];\n    }\n    arr.push(item);\n    return arr;\n}\nfunction toArray() {\n    return reduce_1.reduce(toArrayReducer, []);\n}\nexports.toArray = toArray;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/window.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Branch out the source Observable values as a nested Observable whenever\n * `windowBoundaries` emits.\n *\n * <span class=\"informal\">It's like {@link buffer}, but emits a nested Observable\n * instead of an array.</span>\n *\n * <img src=\"./img/window.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits connected, non-overlapping\n * windows. It emits the current window and opens a new one whenever the\n * Observable `windowBoundaries` emits an item. Because each window is an\n * Observable, the output is a higher-order Observable.\n *\n * @example <caption>In every window of 1 second each, emit at most 2 click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var interval = Rx.Observable.interval(1000);\n * var result = clicks.window(interval)\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link windowWhen}\n * @see {@link buffer}\n *\n * @param {Observable<any>} windowBoundaries An Observable that completes the\n * previous window and starts a new window.\n * @return {Observable<Observable<T>>} An Observable of windows, which are\n * Observables emitting values of the source Observable.\n * @method window\n * @owner Observable\n */\nfunction window(windowBoundaries) {\n    return function windowOperatorFunction(source) {\n        return source.lift(new WindowOperator(windowBoundaries));\n    };\n}\nexports.window = window;\nvar WindowOperator = (function () {\n    function WindowOperator(windowBoundaries) {\n        this.windowBoundaries = windowBoundaries;\n    }\n    WindowOperator.prototype.call = function (subscriber, source) {\n        var windowSubscriber = new WindowSubscriber(subscriber);\n        var sourceSubscription = source.subscribe(windowSubscriber);\n        if (!sourceSubscription.closed) {\n            windowSubscriber.add(subscribeToResult_1.subscribeToResult(windowSubscriber, this.windowBoundaries));\n        }\n        return sourceSubscription;\n    };\n    return WindowOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowSubscriber = (function (_super) {\n    __extends(WindowSubscriber, _super);\n    function WindowSubscriber(destination) {\n        _super.call(this, destination);\n        this.window = new Subject_1.Subject();\n        destination.next(this.window);\n    }\n    WindowSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.openWindow();\n    };\n    WindowSubscriber.prototype.notifyError = function (error, innerSub) {\n        this._error(error);\n    };\n    WindowSubscriber.prototype.notifyComplete = function (innerSub) {\n        this._complete();\n    };\n    WindowSubscriber.prototype._next = function (value) {\n        this.window.next(value);\n    };\n    WindowSubscriber.prototype._error = function (err) {\n        this.window.error(err);\n        this.destination.error(err);\n    };\n    WindowSubscriber.prototype._complete = function () {\n        this.window.complete();\n        this.destination.complete();\n    };\n    /** @deprecated internal use only */ WindowSubscriber.prototype._unsubscribe = function () {\n        this.window = null;\n    };\n    WindowSubscriber.prototype.openWindow = function () {\n        var prevWindow = this.window;\n        if (prevWindow) {\n            prevWindow.complete();\n        }\n        var destination = this.destination;\n        var newWindow = this.window = new Subject_1.Subject();\n        destination.next(newWindow);\n    };\n    return WindowSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/windowCount.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\n/**\n * Branch out the source Observable values as a nested Observable with each\n * nested Observable emitting at most `windowSize` values.\n *\n * <span class=\"informal\">It's like {@link bufferCount}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowCount.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits windows every `startWindowEvery`\n * items, each containing no more than `windowSize` items. When the source\n * Observable completes or encounters an error, the output Observable emits\n * the current window and propagates the notification from the source\n * Observable. If `startWindowEvery` is not provided, then new windows are\n * started immediately at the start of the source and when each window completes\n * with size `windowSize`.\n *\n * @example <caption>Ignore every 3rd click event, starting from the first one</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowCount(3)\n *   .map(win => win.skip(1)) // skip first of every 3 clicks\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Ignore every 3rd click event, starting from the third one</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowCount(2, 3)\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link windowWhen}\n * @see {@link bufferCount}\n *\n * @param {number} windowSize The maximum number of values emitted by each\n * window.\n * @param {number} [startWindowEvery] Interval at which to start a new window.\n * For example if `startWindowEvery` is `2`, then a new window will be started\n * on every other value from the source. A new window is started at the\n * beginning of the source by default.\n * @return {Observable<Observable<T>>} An Observable of windows, which in turn\n * are Observable of values.\n * @method windowCount\n * @owner Observable\n */\nfunction windowCount(windowSize, startWindowEvery) {\n    if (startWindowEvery === void 0) { startWindowEvery = 0; }\n    return function windowCountOperatorFunction(source) {\n        return source.lift(new WindowCountOperator(windowSize, startWindowEvery));\n    };\n}\nexports.windowCount = windowCount;\nvar WindowCountOperator = (function () {\n    function WindowCountOperator(windowSize, startWindowEvery) {\n        this.windowSize = windowSize;\n        this.startWindowEvery = startWindowEvery;\n    }\n    WindowCountOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WindowCountSubscriber(subscriber, this.windowSize, this.startWindowEvery));\n    };\n    return WindowCountOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowCountSubscriber = (function (_super) {\n    __extends(WindowCountSubscriber, _super);\n    function WindowCountSubscriber(destination, windowSize, startWindowEvery) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.windowSize = windowSize;\n        this.startWindowEvery = startWindowEvery;\n        this.windows = [new Subject_1.Subject()];\n        this.count = 0;\n        destination.next(this.windows[0]);\n    }\n    WindowCountSubscriber.prototype._next = function (value) {\n        var startWindowEvery = (this.startWindowEvery > 0) ? this.startWindowEvery : this.windowSize;\n        var destination = this.destination;\n        var windowSize = this.windowSize;\n        var windows = this.windows;\n        var len = windows.length;\n        for (var i = 0; i < len && !this.closed; i++) {\n            windows[i].next(value);\n        }\n        var c = this.count - windowSize + 1;\n        if (c >= 0 && c % startWindowEvery === 0 && !this.closed) {\n            windows.shift().complete();\n        }\n        if (++this.count % startWindowEvery === 0 && !this.closed) {\n            var window_1 = new Subject_1.Subject();\n            windows.push(window_1);\n            destination.next(window_1);\n        }\n    };\n    WindowCountSubscriber.prototype._error = function (err) {\n        var windows = this.windows;\n        if (windows) {\n            while (windows.length > 0 && !this.closed) {\n                windows.shift().error(err);\n            }\n        }\n        this.destination.error(err);\n    };\n    WindowCountSubscriber.prototype._complete = function () {\n        var windows = this.windows;\n        if (windows) {\n            while (windows.length > 0 && !this.closed) {\n                windows.shift().complete();\n            }\n        }\n        this.destination.complete();\n    };\n    /** @deprecated internal use only */ WindowCountSubscriber.prototype._unsubscribe = function () {\n        this.count = 0;\n        this.windows = null;\n    };\n    return WindowCountSubscriber;\n}(Subscriber_1.Subscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/windowTime.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\nvar async_1 = __webpack_require__(\"./node_modules/rxjs/scheduler/async.js\");\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar isNumeric_1 = __webpack_require__(\"./node_modules/rxjs/util/isNumeric.js\");\nvar isScheduler_1 = __webpack_require__(\"./node_modules/rxjs/util/isScheduler.js\");\nfunction windowTime(windowTimeSpan) {\n    var scheduler = async_1.async;\n    var windowCreationInterval = null;\n    var maxWindowSize = Number.POSITIVE_INFINITY;\n    if (isScheduler_1.isScheduler(arguments[3])) {\n        scheduler = arguments[3];\n    }\n    if (isScheduler_1.isScheduler(arguments[2])) {\n        scheduler = arguments[2];\n    }\n    else if (isNumeric_1.isNumeric(arguments[2])) {\n        maxWindowSize = arguments[2];\n    }\n    if (isScheduler_1.isScheduler(arguments[1])) {\n        scheduler = arguments[1];\n    }\n    else if (isNumeric_1.isNumeric(arguments[1])) {\n        windowCreationInterval = arguments[1];\n    }\n    return function windowTimeOperatorFunction(source) {\n        return source.lift(new WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler));\n    };\n}\nexports.windowTime = windowTime;\nvar WindowTimeOperator = (function () {\n    function WindowTimeOperator(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {\n        this.windowTimeSpan = windowTimeSpan;\n        this.windowCreationInterval = windowCreationInterval;\n        this.maxWindowSize = maxWindowSize;\n        this.scheduler = scheduler;\n    }\n    WindowTimeOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WindowTimeSubscriber(subscriber, this.windowTimeSpan, this.windowCreationInterval, this.maxWindowSize, this.scheduler));\n    };\n    return WindowTimeOperator;\n}());\nvar CountedSubject = (function (_super) {\n    __extends(CountedSubject, _super);\n    function CountedSubject() {\n        _super.apply(this, arguments);\n        this._numberOfNextedValues = 0;\n    }\n    CountedSubject.prototype.next = function (value) {\n        this._numberOfNextedValues++;\n        _super.prototype.next.call(this, value);\n    };\n    Object.defineProperty(CountedSubject.prototype, \"numberOfNextedValues\", {\n        get: function () {\n            return this._numberOfNextedValues;\n        },\n        enumerable: true,\n        configurable: true\n    });\n    return CountedSubject;\n}(Subject_1.Subject));\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowTimeSubscriber = (function (_super) {\n    __extends(WindowTimeSubscriber, _super);\n    function WindowTimeSubscriber(destination, windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.windowTimeSpan = windowTimeSpan;\n        this.windowCreationInterval = windowCreationInterval;\n        this.maxWindowSize = maxWindowSize;\n        this.scheduler = scheduler;\n        this.windows = [];\n        var window = this.openWindow();\n        if (windowCreationInterval !== null && windowCreationInterval >= 0) {\n            var closeState = { subscriber: this, window: window, context: null };\n            var creationState = { windowTimeSpan: windowTimeSpan, windowCreationInterval: windowCreationInterval, subscriber: this, scheduler: scheduler };\n            this.add(scheduler.schedule(dispatchWindowClose, windowTimeSpan, closeState));\n            this.add(scheduler.schedule(dispatchWindowCreation, windowCreationInterval, creationState));\n        }\n        else {\n            var timeSpanOnlyState = { subscriber: this, window: window, windowTimeSpan: windowTimeSpan };\n            this.add(scheduler.schedule(dispatchWindowTimeSpanOnly, windowTimeSpan, timeSpanOnlyState));\n        }\n    }\n    WindowTimeSubscriber.prototype._next = function (value) {\n        var windows = this.windows;\n        var len = windows.length;\n        for (var i = 0; i < len; i++) {\n            var window_1 = windows[i];\n            if (!window_1.closed) {\n                window_1.next(value);\n                if (window_1.numberOfNextedValues >= this.maxWindowSize) {\n                    this.closeWindow(window_1);\n                }\n            }\n        }\n    };\n    WindowTimeSubscriber.prototype._error = function (err) {\n        var windows = this.windows;\n        while (windows.length > 0) {\n            windows.shift().error(err);\n        }\n        this.destination.error(err);\n    };\n    WindowTimeSubscriber.prototype._complete = function () {\n        var windows = this.windows;\n        while (windows.length > 0) {\n            var window_2 = windows.shift();\n            if (!window_2.closed) {\n                window_2.complete();\n            }\n        }\n        this.destination.complete();\n    };\n    WindowTimeSubscriber.prototype.openWindow = function () {\n        var window = new CountedSubject();\n        this.windows.push(window);\n        var destination = this.destination;\n        destination.next(window);\n        return window;\n    };\n    WindowTimeSubscriber.prototype.closeWindow = function (window) {\n        window.complete();\n        var windows = this.windows;\n        windows.splice(windows.indexOf(window), 1);\n    };\n    return WindowTimeSubscriber;\n}(Subscriber_1.Subscriber));\nfunction dispatchWindowTimeSpanOnly(state) {\n    var subscriber = state.subscriber, windowTimeSpan = state.windowTimeSpan, window = state.window;\n    if (window) {\n        subscriber.closeWindow(window);\n    }\n    state.window = subscriber.openWindow();\n    this.schedule(state, windowTimeSpan);\n}\nfunction dispatchWindowCreation(state) {\n    var windowTimeSpan = state.windowTimeSpan, subscriber = state.subscriber, scheduler = state.scheduler, windowCreationInterval = state.windowCreationInterval;\n    var window = subscriber.openWindow();\n    var action = this;\n    var context = { action: action, subscription: null };\n    var timeSpanState = { subscriber: subscriber, window: window, context: context };\n    context.subscription = scheduler.schedule(dispatchWindowClose, windowTimeSpan, timeSpanState);\n    action.add(context.subscription);\n    action.schedule(state, windowCreationInterval);\n}\nfunction dispatchWindowClose(state) {\n    var subscriber = state.subscriber, window = state.window, context = state.context;\n    if (context && context.action && context.subscription) {\n        context.action.remove(context.subscription);\n    }\n    subscriber.closeWindow(window);\n}\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/windowToggle.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\nvar Subscription_1 = __webpack_require__(\"./node_modules/rxjs/Subscription.js\");\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Branch out the source Observable values as a nested Observable starting from\n * an emission from `openings` and ending when the output of `closingSelector`\n * emits.\n *\n * <span class=\"informal\">It's like {@link bufferToggle}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowToggle.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits windows that contain those items\n * emitted by the source Observable between the time when the `openings`\n * Observable emits an item and when the Observable returned by\n * `closingSelector` emits an item.\n *\n * @example <caption>Every other second, emit the click events from the next 500ms</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var openings = Rx.Observable.interval(1000);\n * var result = clicks.windowToggle(openings, i =>\n *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()\n * ).mergeAll();\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowWhen}\n * @see {@link bufferToggle}\n *\n * @param {Observable<O>} openings An observable of notifications to start new\n * windows.\n * @param {function(value: O): Observable} closingSelector A function that takes\n * the value emitted by the `openings` observable and returns an Observable,\n * which, when it emits (either `next` or `complete`), signals that the\n * associated window should complete.\n * @return {Observable<Observable<T>>} An observable of windows, which in turn\n * are Observables.\n * @method windowToggle\n * @owner Observable\n */\nfunction windowToggle(openings, closingSelector) {\n    return function (source) { return source.lift(new WindowToggleOperator(openings, closingSelector)); };\n}\nexports.windowToggle = windowToggle;\nvar WindowToggleOperator = (function () {\n    function WindowToggleOperator(openings, closingSelector) {\n        this.openings = openings;\n        this.closingSelector = closingSelector;\n    }\n    WindowToggleOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WindowToggleSubscriber(subscriber, this.openings, this.closingSelector));\n    };\n    return WindowToggleOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowToggleSubscriber = (function (_super) {\n    __extends(WindowToggleSubscriber, _super);\n    function WindowToggleSubscriber(destination, openings, closingSelector) {\n        _super.call(this, destination);\n        this.openings = openings;\n        this.closingSelector = closingSelector;\n        this.contexts = [];\n        this.add(this.openSubscription = subscribeToResult_1.subscribeToResult(this, openings, openings));\n    }\n    WindowToggleSubscriber.prototype._next = function (value) {\n        var contexts = this.contexts;\n        if (contexts) {\n            var len = contexts.length;\n            for (var i = 0; i < len; i++) {\n                contexts[i].window.next(value);\n            }\n        }\n    };\n    WindowToggleSubscriber.prototype._error = function (err) {\n        var contexts = this.contexts;\n        this.contexts = null;\n        if (contexts) {\n            var len = contexts.length;\n            var index = -1;\n            while (++index < len) {\n                var context = contexts[index];\n                context.window.error(err);\n                context.subscription.unsubscribe();\n            }\n        }\n        _super.prototype._error.call(this, err);\n    };\n    WindowToggleSubscriber.prototype._complete = function () {\n        var contexts = this.contexts;\n        this.contexts = null;\n        if (contexts) {\n            var len = contexts.length;\n            var index = -1;\n            while (++index < len) {\n                var context = contexts[index];\n                context.window.complete();\n                context.subscription.unsubscribe();\n            }\n        }\n        _super.prototype._complete.call(this);\n    };\n    /** @deprecated internal use only */ WindowToggleSubscriber.prototype._unsubscribe = function () {\n        var contexts = this.contexts;\n        this.contexts = null;\n        if (contexts) {\n            var len = contexts.length;\n            var index = -1;\n            while (++index < len) {\n                var context = contexts[index];\n                context.window.unsubscribe();\n                context.subscription.unsubscribe();\n            }\n        }\n    };\n    WindowToggleSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        if (outerValue === this.openings) {\n            var closingSelector = this.closingSelector;\n            var closingNotifier = tryCatch_1.tryCatch(closingSelector)(innerValue);\n            if (closingNotifier === errorObject_1.errorObject) {\n                return this.error(errorObject_1.errorObject.e);\n            }\n            else {\n                var window_1 = new Subject_1.Subject();\n                var subscription = new Subscription_1.Subscription();\n                var context = { window: window_1, subscription: subscription };\n                this.contexts.push(context);\n                var innerSubscription = subscribeToResult_1.subscribeToResult(this, closingNotifier, context);\n                if (innerSubscription.closed) {\n                    this.closeWindow(this.contexts.length - 1);\n                }\n                else {\n                    innerSubscription.context = context;\n                    subscription.add(innerSubscription);\n                }\n                this.destination.next(window_1);\n            }\n        }\n        else {\n            this.closeWindow(this.contexts.indexOf(outerValue));\n        }\n    };\n    WindowToggleSubscriber.prototype.notifyError = function (err) {\n        this.error(err);\n    };\n    WindowToggleSubscriber.prototype.notifyComplete = function (inner) {\n        if (inner !== this.openSubscription) {\n            this.closeWindow(this.contexts.indexOf(inner.context));\n        }\n    };\n    WindowToggleSubscriber.prototype.closeWindow = function (index) {\n        if (index === -1) {\n            return;\n        }\n        var contexts = this.contexts;\n        var context = contexts[index];\n        var window = context.window, subscription = context.subscription;\n        contexts.splice(index, 1);\n        window.complete();\n        subscription.unsubscribe();\n    };\n    return WindowToggleSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/windowWhen.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar Subject_1 = __webpack_require__(\"./node_modules/rxjs/Subject.js\");\nvar tryCatch_1 = __webpack_require__(\"./node_modules/rxjs/util/tryCatch.js\");\nvar errorObject_1 = __webpack_require__(\"./node_modules/rxjs/util/errorObject.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/**\n * Branch out the source Observable values as a nested Observable using a\n * factory function of closing Observables to determine when to start a new\n * window.\n *\n * <span class=\"informal\">It's like {@link bufferWhen}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowWhen.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits connected, non-overlapping windows.\n * It emits the current window and opens a new one whenever the Observable\n * produced by the specified `closingSelector` function emits an item. The first\n * window is opened immediately when subscribing to the output Observable.\n *\n * @example <caption>Emit only the first two clicks events in every window of [1-5] random seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks\n *   .windowWhen(() => Rx.Observable.interval(1000 + Math.random() * 4000))\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link bufferWhen}\n *\n * @param {function(): Observable} closingSelector A function that takes no\n * arguments and returns an Observable that signals (on either `next` or\n * `complete`) when to close the previous window and start a new one.\n * @return {Observable<Observable<T>>} An observable of windows, which in turn\n * are Observables.\n * @method windowWhen\n * @owner Observable\n */\nfunction windowWhen(closingSelector) {\n    return function windowWhenOperatorFunction(source) {\n        return source.lift(new WindowOperator(closingSelector));\n    };\n}\nexports.windowWhen = windowWhen;\nvar WindowOperator = (function () {\n    function WindowOperator(closingSelector) {\n        this.closingSelector = closingSelector;\n    }\n    WindowOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WindowSubscriber(subscriber, this.closingSelector));\n    };\n    return WindowOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WindowSubscriber = (function (_super) {\n    __extends(WindowSubscriber, _super);\n    function WindowSubscriber(destination, closingSelector) {\n        _super.call(this, destination);\n        this.destination = destination;\n        this.closingSelector = closingSelector;\n        this.openWindow();\n    }\n    WindowSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.openWindow(innerSub);\n    };\n    WindowSubscriber.prototype.notifyError = function (error, innerSub) {\n        this._error(error);\n    };\n    WindowSubscriber.prototype.notifyComplete = function (innerSub) {\n        this.openWindow(innerSub);\n    };\n    WindowSubscriber.prototype._next = function (value) {\n        this.window.next(value);\n    };\n    WindowSubscriber.prototype._error = function (err) {\n        this.window.error(err);\n        this.destination.error(err);\n        this.unsubscribeClosingNotification();\n    };\n    WindowSubscriber.prototype._complete = function () {\n        this.window.complete();\n        this.destination.complete();\n        this.unsubscribeClosingNotification();\n    };\n    WindowSubscriber.prototype.unsubscribeClosingNotification = function () {\n        if (this.closingNotification) {\n            this.closingNotification.unsubscribe();\n        }\n    };\n    WindowSubscriber.prototype.openWindow = function (innerSub) {\n        if (innerSub === void 0) { innerSub = null; }\n        if (innerSub) {\n            this.remove(innerSub);\n            innerSub.unsubscribe();\n        }\n        var prevWindow = this.window;\n        if (prevWindow) {\n            prevWindow.complete();\n        }\n        var window = this.window = new Subject_1.Subject();\n        this.destination.next(window);\n        var closingNotifier = tryCatch_1.tryCatch(this.closingSelector)();\n        if (closingNotifier === errorObject_1.errorObject) {\n            var err = errorObject_1.errorObject.e;\n            this.destination.error(err);\n            this.window.error(err);\n        }\n        else {\n            this.add(this.closingNotification = subscribeToResult_1.subscribeToResult(this, closingNotifier));\n        }\n    };\n    return WindowSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/withLatestFrom.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\n/* tslint:enable:max-line-length */\n/**\n * Combines the source Observable with other Observables to create an Observable\n * whose values are calculated from the latest values of each, only when the\n * source emits.\n *\n * <span class=\"informal\">Whenever the source Observable emits a value, it\n * computes a formula using that value plus the latest values from other input\n * Observables, then emits the output of that formula.</span>\n *\n * <img src=\"./img/withLatestFrom.png\" width=\"100%\">\n *\n * `withLatestFrom` combines each value from the source Observable (the\n * instance) with the latest values from the other input Observables only when\n * the source emits a value, optionally using a `project` function to determine\n * the value to be emitted on the output Observable. All input Observables must\n * emit at least one value before the output Observable will emit a value.\n *\n * @example <caption>On every click event, emit an array with the latest timer event plus the click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var timer = Rx.Observable.interval(1000);\n * var result = clicks.withLatestFrom(timer);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link combineLatest}\n *\n * @param {ObservableInput} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Function} [project] Projection function for combining values\n * together. Receives all values in order of the Observables passed, where the\n * first parameter is a value from the source Observable. (e.g.\n * `a.withLatestFrom(b, c, (a1, b1, c1) => a1 + b1 + c1)`). If this is not\n * passed, arrays will be emitted on the output Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n * @method withLatestFrom\n * @owner Observable\n */\nfunction withLatestFrom() {\n    var args = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        args[_i - 0] = arguments[_i];\n    }\n    return function (source) {\n        var project;\n        if (typeof args[args.length - 1] === 'function') {\n            project = args.pop();\n        }\n        var observables = args;\n        return source.lift(new WithLatestFromOperator(observables, project));\n    };\n}\nexports.withLatestFrom = withLatestFrom;\nvar WithLatestFromOperator = (function () {\n    function WithLatestFromOperator(observables, project) {\n        this.observables = observables;\n        this.project = project;\n    }\n    WithLatestFromOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new WithLatestFromSubscriber(subscriber, this.observables, this.project));\n    };\n    return WithLatestFromOperator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar WithLatestFromSubscriber = (function (_super) {\n    __extends(WithLatestFromSubscriber, _super);\n    function WithLatestFromSubscriber(destination, observables, project) {\n        _super.call(this, destination);\n        this.observables = observables;\n        this.project = project;\n        this.toRespond = [];\n        var len = observables.length;\n        this.values = new Array(len);\n        for (var i = 0; i < len; i++) {\n            this.toRespond.push(i);\n        }\n        for (var i = 0; i < len; i++) {\n            var observable = observables[i];\n            this.add(subscribeToResult_1.subscribeToResult(this, observable, observable, i));\n        }\n    }\n    WithLatestFromSubscriber.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.values[outerIndex] = innerValue;\n        var toRespond = this.toRespond;\n        if (toRespond.length > 0) {\n            var found = toRespond.indexOf(outerIndex);\n            if (found !== -1) {\n                toRespond.splice(found, 1);\n            }\n        }\n    };\n    WithLatestFromSubscriber.prototype.notifyComplete = function () {\n        // noop\n    };\n    WithLatestFromSubscriber.prototype._next = function (value) {\n        if (this.toRespond.length === 0) {\n            var args = [value].concat(this.values);\n            if (this.project) {\n                this._tryProject(args);\n            }\n            else {\n                this.destination.next(args);\n            }\n        }\n    };\n    WithLatestFromSubscriber.prototype._tryProject = function (args) {\n        var result;\n        try {\n            result = this.project.apply(this, args);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    return WithLatestFromSubscriber;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/zip.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar __extends = (this && this.__extends) || function (d, b) {\n    for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p];\n    function __() { this.constructor = d; }\n    d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\n};\nvar ArrayObservable_1 = __webpack_require__(\"./node_modules/rxjs/observable/ArrayObservable.js\");\nvar isArray_1 = __webpack_require__(\"./node_modules/rxjs/util/isArray.js\");\nvar Subscriber_1 = __webpack_require__(\"./node_modules/rxjs/Subscriber.js\");\nvar OuterSubscriber_1 = __webpack_require__(\"./node_modules/rxjs/OuterSubscriber.js\");\nvar subscribeToResult_1 = __webpack_require__(\"./node_modules/rxjs/util/subscribeToResult.js\");\nvar iterator_1 = __webpack_require__(\"./node_modules/rxjs/symbol/iterator.js\");\n/* tslint:enable:max-line-length */\n/**\n * @param observables\n * @return {Observable<R>}\n * @method zip\n * @owner Observable\n */\nfunction zip() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    return function zipOperatorFunction(source) {\n        return source.lift.call(zipStatic.apply(void 0, [source].concat(observables)));\n    };\n}\nexports.zip = zip;\n/* tslint:enable:max-line-length */\n/**\n * Combines multiple Observables to create an Observable whose values are calculated from the values, in order, of each\n * of its input Observables.\n *\n * If the latest parameter is a function, this function is used to compute the created value from the input values.\n * Otherwise, an array of the input values is returned.\n *\n * @example <caption>Combine age and name from different sources</caption>\n *\n * let age$ = Observable.of<number>(27, 25, 29);\n * let name$ = Observable.of<string>('Foo', 'Bar', 'Beer');\n * let isDev$ = Observable.of<boolean>(true, true, false);\n *\n * Observable\n *     .zip(age$,\n *          name$,\n *          isDev$,\n *          (age: number, name: string, isDev: boolean) => ({ age, name, isDev }))\n *     .subscribe(x => console.log(x));\n *\n * // outputs\n * // { age: 27, name: 'Foo', isDev: true }\n * // { age: 25, name: 'Bar', isDev: true }\n * // { age: 29, name: 'Beer', isDev: false }\n *\n * @param observables\n * @return {Observable<R>}\n * @static true\n * @name zip\n * @owner Observable\n */\nfunction zipStatic() {\n    var observables = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        observables[_i - 0] = arguments[_i];\n    }\n    var project = observables[observables.length - 1];\n    if (typeof project === 'function') {\n        observables.pop();\n    }\n    return new ArrayObservable_1.ArrayObservable(observables).lift(new ZipOperator(project));\n}\nexports.zipStatic = zipStatic;\nvar ZipOperator = (function () {\n    function ZipOperator(project) {\n        this.project = project;\n    }\n    ZipOperator.prototype.call = function (subscriber, source) {\n        return source.subscribe(new ZipSubscriber(subscriber, this.project));\n    };\n    return ZipOperator;\n}());\nexports.ZipOperator = ZipOperator;\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ZipSubscriber = (function (_super) {\n    __extends(ZipSubscriber, _super);\n    function ZipSubscriber(destination, project, values) {\n        if (values === void 0) { values = Object.create(null); }\n        _super.call(this, destination);\n        this.iterators = [];\n        this.active = 0;\n        this.project = (typeof project === 'function') ? project : null;\n        this.values = values;\n    }\n    ZipSubscriber.prototype._next = function (value) {\n        var iterators = this.iterators;\n        if (isArray_1.isArray(value)) {\n            iterators.push(new StaticArrayIterator(value));\n        }\n        else if (typeof value[iterator_1.iterator] === 'function') {\n            iterators.push(new StaticIterator(value[iterator_1.iterator]()));\n        }\n        else {\n            iterators.push(new ZipBufferIterator(this.destination, this, value));\n        }\n    };\n    ZipSubscriber.prototype._complete = function () {\n        var iterators = this.iterators;\n        var len = iterators.length;\n        if (len === 0) {\n            this.destination.complete();\n            return;\n        }\n        this.active = len;\n        for (var i = 0; i < len; i++) {\n            var iterator = iterators[i];\n            if (iterator.stillUnsubscribed) {\n                this.add(iterator.subscribe(iterator, i));\n            }\n            else {\n                this.active--; // not an observable\n            }\n        }\n    };\n    ZipSubscriber.prototype.notifyInactive = function () {\n        this.active--;\n        if (this.active === 0) {\n            this.destination.complete();\n        }\n    };\n    ZipSubscriber.prototype.checkIterators = function () {\n        var iterators = this.iterators;\n        var len = iterators.length;\n        var destination = this.destination;\n        // abort if not all of them have values\n        for (var i = 0; i < len; i++) {\n            var iterator = iterators[i];\n            if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {\n                return;\n            }\n        }\n        var shouldComplete = false;\n        var args = [];\n        for (var i = 0; i < len; i++) {\n            var iterator = iterators[i];\n            var result = iterator.next();\n            // check to see if it's completed now that you've gotten\n            // the next value.\n            if (iterator.hasCompleted()) {\n                shouldComplete = true;\n            }\n            if (result.done) {\n                destination.complete();\n                return;\n            }\n            args.push(result.value);\n        }\n        if (this.project) {\n            this._tryProject(args);\n        }\n        else {\n            destination.next(args);\n        }\n        if (shouldComplete) {\n            destination.complete();\n        }\n    };\n    ZipSubscriber.prototype._tryProject = function (args) {\n        var result;\n        try {\n            result = this.project.apply(this, args);\n        }\n        catch (err) {\n            this.destination.error(err);\n            return;\n        }\n        this.destination.next(result);\n    };\n    return ZipSubscriber;\n}(Subscriber_1.Subscriber));\nexports.ZipSubscriber = ZipSubscriber;\nvar StaticIterator = (function () {\n    function StaticIterator(iterator) {\n        this.iterator = iterator;\n        this.nextResult = iterator.next();\n    }\n    StaticIterator.prototype.hasValue = function () {\n        return true;\n    };\n    StaticIterator.prototype.next = function () {\n        var result = this.nextResult;\n        this.nextResult = this.iterator.next();\n        return result;\n    };\n    StaticIterator.prototype.hasCompleted = function () {\n        var nextResult = this.nextResult;\n        return nextResult && nextResult.done;\n    };\n    return StaticIterator;\n}());\nvar StaticArrayIterator = (function () {\n    function StaticArrayIterator(array) {\n        this.array = array;\n        this.index = 0;\n        this.length = 0;\n        this.length = array.length;\n    }\n    StaticArrayIterator.prototype[iterator_1.iterator] = function () {\n        return this;\n    };\n    StaticArrayIterator.prototype.next = function (value) {\n        var i = this.index++;\n        var array = this.array;\n        return i < this.length ? { value: array[i], done: false } : { value: null, done: true };\n    };\n    StaticArrayIterator.prototype.hasValue = function () {\n        return this.array.length > this.index;\n    };\n    StaticArrayIterator.prototype.hasCompleted = function () {\n        return this.array.length === this.index;\n    };\n    return StaticArrayIterator;\n}());\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nvar ZipBufferIterator = (function (_super) {\n    __extends(ZipBufferIterator, _super);\n    function ZipBufferIterator(destination, parent, observable) {\n        _super.call(this, destination);\n        this.parent = parent;\n        this.observable = observable;\n        this.stillUnsubscribed = true;\n        this.buffer = [];\n        this.isComplete = false;\n    }\n    ZipBufferIterator.prototype[iterator_1.iterator] = function () {\n        return this;\n    };\n    // NOTE: there is actually a name collision here with Subscriber.next and Iterator.next\n    //    this is legit because `next()` will never be called by a subscription in this case.\n    ZipBufferIterator.prototype.next = function () {\n        var buffer = this.buffer;\n        if (buffer.length === 0 && this.isComplete) {\n            return { value: null, done: true };\n        }\n        else {\n            return { value: buffer.shift(), done: false };\n        }\n    };\n    ZipBufferIterator.prototype.hasValue = function () {\n        return this.buffer.length > 0;\n    };\n    ZipBufferIterator.prototype.hasCompleted = function () {\n        return this.buffer.length === 0 && this.isComplete;\n    };\n    ZipBufferIterator.prototype.notifyComplete = function () {\n        if (this.buffer.length > 0) {\n            this.isComplete = true;\n            this.parent.notifyInactive();\n        }\n        else {\n            this.destination.complete();\n        }\n    };\n    ZipBufferIterator.prototype.notifyNext = function (outerValue, innerValue, outerIndex, innerIndex, innerSub) {\n        this.buffer.push(innerValue);\n        this.parent.checkIterators();\n    };\n    ZipBufferIterator.prototype.subscribe = function (value, index) {\n        return subscribeToResult_1.subscribeToResult(this, this.observable, this, index);\n    };\n    return ZipBufferIterator;\n}(OuterSubscriber_1.OuterSubscriber));\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/operators/zipAll.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar zip_1 = __webpack_require__(\"./node_modules/rxjs/operators/zip.js\");\nfunction zipAll(project) {\n    return function (source) { return source.lift(new zip_1.ZipOperator(project)); };\n}\nexports.zipAll = zipAll;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/scheduler/async.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/scheduler/async.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/symbol/iterator.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/symbol/iterator.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/ArgumentOutOfRangeError.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/ArgumentOutOfRangeError.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/EmptyError.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/EmptyError.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/FastMap.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/FastMap.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/Map.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/Map.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/Set.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/Set.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/TimeoutError.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/TimeoutError.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/errorObject.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/errorObject.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/identity.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nfunction identity(x) {\n    return x;\n}\nexports.identity = identity;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/isArray.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/isArray.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/isDate.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/isDate.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/isNumeric.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/isNumeric.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/isScheduler.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/isScheduler.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/noop.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/noop.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/not.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/not.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/pipe.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\nvar noop_1 = __webpack_require__(\"./node_modules/rxjs/util/noop.js\");\n/* tslint:enable:max-line-length */\nfunction pipe() {\n    var fns = [];\n    for (var _i = 0; _i < arguments.length; _i++) {\n        fns[_i - 0] = arguments[_i];\n    }\n    return pipeFromArray(fns);\n}\nexports.pipe = pipe;\n/* @internal */\nfunction pipeFromArray(fns) {\n    if (!fns) {\n        return noop_1.noop;\n    }\n    if (fns.length === 1) {\n        return fns[0];\n    }\n    return function piped(input) {\n        return fns.reduce(function (prev, fn) { return fn(prev); }, input);\n    };\n}\nexports.pipeFromArray = pipeFromArray;\n\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/subscribeToResult.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/subscribeToResult.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/rxjs/util/tryCatch.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/tryCatch.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/webpack/buildin/global.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/webpack/buildin/global.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/webpack/buildin/module.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/webpack/buildin/module.js\");\n\n/***/ }),\n\n/***/ \"./node_modules/zone.js/dist/zone.js\":\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/zone.js/dist/zone.js\");\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/app.component.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar AppComponent = /** @class */ (function () {\r\n    function AppComponent() {\r\n    }\r\n    AppComponent = __decorate([\r\n        core_1.Component({\r\n            selector: 'app',\r\n            template: \"\\n        <voucher></voucher>\\n    \"\r\n        }),\r\n        __metadata(\"design:paramtypes\", [])\r\n    ], AppComponent);\r\n    return AppComponent;\r\n}());\r\nexports.AppComponent = AppComponent;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/app.module.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar app_component_1 = __webpack_require__(\"./src/main/typescript/app/app.component.ts\");\r\nvar voucher_service_module_1 = __webpack_require__(\"./src/main/typescript/app/service/voucher.service.module.ts\");\r\nvar voucher_component_module_1 = __webpack_require__(\"./src/main/typescript/app/components/voucher/voucher.component.module.ts\");\r\nvar js_infrastructure_ng4_csi_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-csi/target/dist/index.js\");\r\nvar AppModule = /** @class */ (function (_super) {\r\n    __extends(AppModule, _super);\r\n    function AppModule() {\r\n        var _this = _super !== null && _super.apply(this, arguments) || this;\r\n        _this.appComponentType = app_component_1.AppComponent;\r\n        return _this;\r\n    }\r\n    AppModule = __decorate([\r\n        core_1.NgModule({\r\n            imports: [\r\n                voucher_component_module_1.VoucherComponentModule,\r\n                voucher_service_module_1.VoucherServiceModule\r\n            ],\r\n            declarations: [\r\n                app_component_1.AppComponent\r\n            ],\r\n            entryComponents: [\r\n                app_component_1.AppComponent\r\n            ]\r\n        })\r\n    ], AppModule);\r\n    return AppModule;\r\n}(js_infrastructure_ng4_csi_1.AbstractCsiAppModule));\r\nexports.AppModule = AppModule;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/components/voucher/child-components/feedback-message.component.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar rxjs_1 = __webpack_require__(\"./node_modules/rxjs/Rx.js\");\r\nvar voucher_service_1 = __webpack_require__(\"./src/main/typescript/app/service/voucher.service.ts\");\r\nvar FeedbackMessageComponent = /** @class */ (function () {\r\n    function FeedbackMessageComponent() {\r\n        this.classObjectForMessageType = {};\r\n    }\r\n    FeedbackMessageComponent.prototype.ngOnInit = function () {\r\n        var _this = this;\r\n        if (this.messageType$) {\r\n            this.messageType$.subscribe(function (messageType) {\r\n                var classObject = {\r\n                    'alert-success': messageType === voucher_service_1.FeedbackMessageType.SUCCESS,\r\n                    'alert-danger': messageType === voucher_service_1.FeedbackMessageType.ERROR\r\n                };\r\n                _this.classObjectForMessageType = classObject;\r\n            });\r\n        }\r\n    };\r\n    __decorate([\r\n        core_1.Input(),\r\n        __metadata(\"design:type\", rxjs_1.Observable)\r\n    ], FeedbackMessageComponent.prototype, \"messageType$\", void 0);\r\n    __decorate([\r\n        core_1.Input(),\r\n        __metadata(\"design:type\", rxjs_1.Observable)\r\n    ], FeedbackMessageComponent.prototype, \"content$\", void 0);\r\n    FeedbackMessageComponent = __decorate([\r\n        core_1.Component({\r\n            template: \"\\n        <div class=\\\"alert small\\\" [ngClass]=\\\"classObjectForMessageType\\\" role=\\\"alert\\\">\\n            <p [innerHTML]=\\\"content$ | async\\\"\\n               trackingId=\\\"message\\\"\\n               data-co-uitest-element=\\\"vch_message\\\"></p>\\n        </div>\\n    \",\r\n            selector: \"feedback-message\",\r\n            changeDetection: core_1.ChangeDetectionStrategy.OnPush\r\n        })\r\n    ], FeedbackMessageComponent);\r\n    return FeedbackMessageComponent;\r\n}());\r\nexports.FeedbackMessageComponent = FeedbackMessageComponent;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/components/voucher/child-components/voucher-applied.component.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar rxjs_1 = __webpack_require__(\"./node_modules/rxjs/Rx.js\");\r\nvar VoucherAppliedComponent = /** @class */ (function () {\r\n    function VoucherAppliedComponent() {\r\n        this.deleteVoucher = new core_1.EventEmitter();\r\n    }\r\n    VoucherAppliedComponent.prototype.onDelete = function () {\r\n        this.deleteVoucher.emit();\r\n    };\r\n    __decorate([\r\n        core_1.Input(),\r\n        __metadata(\"design:type\", rxjs_1.Observable)\r\n    ], VoucherAppliedComponent.prototype, \"displayedVoucherCode$\", void 0);\r\n    __decorate([\r\n        core_1.Output(),\r\n        __metadata(\"design:type\", core_1.EventEmitter)\r\n    ], VoucherAppliedComponent.prototype, \"deleteVoucher\", void 0);\r\n    VoucherAppliedComponent = __decorate([\r\n        core_1.Component({\r\n            template: \"\\n        <div>\\n            <p>\\n                <strong>Gutscheincode:</strong> <span\\n                    trackingId=\\\"cdisplay\\\"\\n                    data-co-uitest-element=\\\"vch_code_display\\\">{{ displayedVoucherCode$ | async}}</span>\\n\\n                <a class=\\\"link-action pull-right\\\" (click)=\\\"onDelete()\\\"\\n                   trackingAttributes\\n                   trackingAttributesAction=\\\"form\\\"\\n                   trackingAttributesElementId=\\\"removeVoucherCode\\\">\\n                    <span class=\\\"glyphicon glyphicon-remove\\\"\\n                          trackingId=\\\"remove\\\"\\n                          data-co-uitest-element=\\\"vch_code_remove\\\"></span>\\n                    Gutscheincode entfernen\\n                </a>\\n            </p>\\n        </div>\\n    \",\r\n            selector: \"voucher-applied\"\r\n        })\r\n    ], VoucherAppliedComponent);\r\n    return VoucherAppliedComponent;\r\n}());\r\nexports.VoucherAppliedComponent = VoucherAppliedComponent;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/components/voucher/child-components/voucher-input.component.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar forms_1 = __webpack_require__(\"./node_modules/@angular/forms/@angular/forms.es5.js\");\r\nvar VoucherInputComponent = /** @class */ (function () {\r\n    function VoucherInputComponent() {\r\n        this.applyVoucher = new core_1.EventEmitter();\r\n        this.formSubmitted = false;\r\n    }\r\n    VoucherInputComponent.prototype.ngOnInit = function () {\r\n        if (this.validationSpec) {\r\n            this.voucherInput.control.setValidators([\r\n                forms_1.Validators.required,\r\n                forms_1.Validators.minLength(this.validationSpec.minLength),\r\n                forms_1.Validators.maxLength(this.validationSpec.maxLength)\r\n            ]);\r\n        }\r\n    };\r\n    VoucherInputComponent.prototype.onSubmit = function () {\r\n        if (this.voucherForm.valid) {\r\n            var value = this.voucherInput.value.trim();\r\n            this.applyVoucher.emit(value);\r\n        }\r\n        this.formSubmitted = true;\r\n    };\r\n    Object.defineProperty(VoucherInputComponent.prototype, \"shouldShowValidationError\", {\r\n        get: function () {\r\n            return (this.voucherForm.invalid &&\r\n                (this.voucherForm.touched || this.formSubmitted));\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    Object.defineProperty(VoucherInputComponent.prototype, \"getVchValidationError\", {\r\n        get: function () {\r\n            var errorMessage = \"\";\r\n            if (this.voucherInput.errors.required)\r\n                errorMessage = \"Bitte geben Sie einen Gutscheincode ein.\";\r\n            else if (this.voucherInput.errors.minlength)\r\n                errorMessage = \"Der eingegebene Gutscheincode ist zu kurz.\";\r\n            else if (this.voucherInput.errors.maxlength)\r\n                errorMessage = \"Der eingegebene Gutscheincode ist zu lang.\";\r\n            return errorMessage;\r\n        },\r\n        enumerable: true,\r\n        configurable: true\r\n    });\r\n    __decorate([\r\n        core_1.Output(),\r\n        __metadata(\"design:type\", core_1.EventEmitter)\r\n    ], VoucherInputComponent.prototype, \"applyVoucher\", void 0);\r\n    __decorate([\r\n        core_1.Input(),\r\n        __metadata(\"design:type\", Object)\r\n    ], VoucherInputComponent.prototype, \"validationSpec\", void 0);\r\n    __decorate([\r\n        core_1.ViewChild(\"voucherInput\"),\r\n        __metadata(\"design:type\", forms_1.NgModel)\r\n    ], VoucherInputComponent.prototype, \"voucherInput\", void 0);\r\n    __decorate([\r\n        core_1.ViewChild(\"voucherForm\"),\r\n        __metadata(\"design:type\", forms_1.FormGroup)\r\n    ], VoucherInputComponent.prototype, \"voucherForm\", void 0);\r\n    __decorate([\r\n        core_1.Input(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherInputComponent.prototype, \"voucherInputText\", void 0);\r\n    __decorate([\r\n        core_1.Input(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherInputComponent.prototype, \"voucherCodeText\", void 0);\r\n    __decorate([\r\n        core_1.Input(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherInputComponent.prototype, \"redeemText\", void 0);\r\n    VoucherInputComponent = __decorate([\r\n        core_1.Component({\r\n            selector: \"voucher-input\",\r\n            template: \"\\n        <div class=\\\"voucher-input-container\\\">\\n            <!-- TODO: OSD-1859 use this for debugging validation, remove once validation works as intended -->\\n            <label for=\\\"voucher-code-input\\\">{{ voucherInputText}}</label>\\n\\n            <form novalidate (ngSubmit)=\\\"onSubmit()\\\" class=\\\"co-h__no-margin\\\" #voucherForm=\\\"ngForm\\\">\\n                <div class=\\\"form-group form-group-line\\\">\\n                    <div class=\\\"input\\\" [ngClass]=\\\"{'has-error has-danger': shouldShowValidationError}\\\">\\n                        <span class=\\\"js-float-label hide-label\\\">\\n                            <span class=\\\"float-label-text\\\" data-text=\\\"Gutscheincode\\\"></span>\\n                            <input class=\\\"form-control\\\"\\n                                   id=\\\"voucher-code-input\\\"\\n                                   data-float-label=\\\"Gutscheincode\\\"\\n                                   [placeholder]=\\\"voucherCodeText\\\"\\n                                   name=\\\"voucherInput\\\"\\n                                   #voucherInput=\\\"ngModel\\\"\\n                                   ngModel\\n                                   data-co-uitest-element=\\\"vch_code_input\\\"\\n                                   trackingId=\\\"input\\\"\\n                                   trackingAttributes\\n                                   trackingAttributesAction=\\\"form\\\"\\n                                   trackingAttributesElementId=\\\"voucherCodeInput\\\"\\n                                   aria-describedby=\\\"vch-validation-error\\\"\\n                            >\\n                        </span>\\n                        <span *ngIf=\\\"shouldShowValidationError\\\"\\n                              id=\\\"vch-validation-error\\\"\\n                              class=\\\"help-block with-errors\\\"\\n                              trackingId=\\\"validation_errors\\\"\\n                              data-co-uitest-element=\\\"vch_validation_errors\\\">\\n                            {{getVchValidationError}}\\n                        </span>\\n                    </div>\\n\\n\\n                    <div class=\\\"form-inline-buttons\\\">\\n                        <button class=\\\"btn btn-beta btn-block\\\"\\n                                type=\\\"submit\\\"\\n                                trackingId=\\\"submit\\\"\\n                                data-co-uitest-element=\\\"vch_code_submit\\\"\\n                                trackingAttributes\\n                                trackingAttributesAction=\\\"button\\\"\\n                                trackingAttributesElementId=\\\"redeemVoucherCode\\\"\\n                        >\\n                          <span>{{ redeemText }}</span>  \\n                        </button>\\n                    </div>\\n                </div>\\n            </form>\\n        </div>\\n    \"\r\n        })\r\n    ], VoucherInputComponent);\r\n    return VoucherInputComponent;\r\n}());\r\nexports.VoucherInputComponent = VoucherInputComponent;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/components/voucher/child-components/voucher-panel.component.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar rxjs_1 = __webpack_require__(\"./node_modules/rxjs/Rx.js\");\r\nvar VoucherPanelComponent = /** @class */ (function () {\r\n    function VoucherPanelComponent() {\r\n        this.toggle = new core_1.EventEmitter();\r\n    }\r\n    VoucherPanelComponent.prototype.onToggle = function () {\r\n        this.toggle.emit();\r\n    };\r\n    VoucherPanelComponent.prototype.ngOnInit = function () {\r\n        this.classForPanel$ = this.open$.map(function (open) {\r\n            return {\r\n                'in': open\r\n            };\r\n        });\r\n        this.classForPanelTitle$ = this.open$.map(function (open) {\r\n            return {\r\n                'collapsed': !open\r\n            };\r\n        });\r\n    };\r\n    __decorate([\r\n        core_1.Input(),\r\n        __metadata(\"design:type\", rxjs_1.Observable)\r\n    ], VoucherPanelComponent.prototype, \"open$\", void 0);\r\n    __decorate([\r\n        core_1.Output(),\r\n        __metadata(\"design:type\", Object)\r\n    ], VoucherPanelComponent.prototype, \"toggle\", void 0);\r\n    VoucherPanelComponent = __decorate([\r\n        core_1.Component({\r\n            template: \"\\n        <div class=\\\"panel-group section-accordion margin-bottom-md\\\">\\n\\n            <div class=\\\"panel\\\">\\n                <a href=\\\"javascript:void(0)\\\" role=\\\"button\\\" [ngClass]=\\\"classForPanelTitle$ | async\\\"\\n                   (click)=\\\"onToggle()\\\"\\n                   trackingId=\\\"panel\\\"\\n                   data-co-uitest-element=\\\"vch_panel\\\"\\n                   trackingAttributes\\n                   trackingAttributesAction=\\\"accordion\\\"\\n                   trackingAttributesElementId=\\\"redeemVoucherPanel\\\"\\n                   >\\n                  \\n                    \\n                    Gutschein einl\\u00F6sen\\n                </a>\\n                <div class=\\\"accordion-content collapse\\\"\\n                     [ngClass]=\\\"classForPanel$ | async\\\">\\n\\n                    <ng-content></ng-content>\\n                </div>\\n            </div>\\n        </div>\\n    \",\r\n            selector: 'voucher-panel'\r\n        })\r\n    ], VoucherPanelComponent);\r\n    return VoucherPanelComponent;\r\n}());\r\nexports.VoucherPanelComponent = VoucherPanelComponent;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/components/voucher/voucher.component.module.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar platform_browser_1 = __webpack_require__(\"./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js\");\r\nvar voucher_applied_component_1 = __webpack_require__(\"./src/main/typescript/app/components/voucher/child-components/voucher-applied.component.ts\");\r\nvar voucher_input_component_1 = __webpack_require__(\"./src/main/typescript/app/components/voucher/child-components/voucher-input.component.ts\");\r\nvar voucher_panel_component_1 = __webpack_require__(\"./src/main/typescript/app/components/voucher/child-components/voucher-panel.component.ts\");\r\nvar voucher_component_1 = __webpack_require__(\"./src/main/typescript/app/components/voucher/voucher.component.ts\");\r\nvar feedback_message_component_1 = __webpack_require__(\"./src/main/typescript/app/components/voucher/child-components/feedback-message.component.ts\");\r\nvar forms_1 = __webpack_require__(\"./node_modules/@angular/forms/@angular/forms.es5.js\");\r\nvar js_infrastructure_ng4_comp_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-comp/target/dist/index.js\");\r\nvar VoucherComponentModule = /** @class */ (function () {\r\n    function VoucherComponentModule() {\r\n    }\r\n    VoucherComponentModule = __decorate([\r\n        core_1.NgModule({\r\n            imports: [\r\n                platform_browser_1.BrowserModule,\r\n                forms_1.FormsModule,\r\n                forms_1.ReactiveFormsModule,\r\n                js_infrastructure_ng4_comp_1.TrackingAttributesModule\r\n            ],\r\n            declarations: [\r\n                voucher_component_1.VoucherComponent,\r\n                voucher_panel_component_1.VoucherPanelComponent,\r\n                voucher_input_component_1.VoucherInputComponent,\r\n                voucher_applied_component_1.VoucherAppliedComponent,\r\n                feedback_message_component_1.FeedbackMessageComponent,\r\n                js_infrastructure_ng4_comp_1.TrackingIdComponent,\r\n                js_infrastructure_ng4_comp_1.TrackingContextComponent\r\n            ],\r\n            exports: [\r\n                voucher_component_1.VoucherComponent\r\n            ]\r\n        })\r\n    ], VoucherComponentModule);\r\n    return VoucherComponentModule;\r\n}());\r\nexports.VoucherComponentModule = VoucherComponentModule;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/components/voucher/voucher.component.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar voucher_service_1 = __webpack_require__(\"./src/main/typescript/app/service/voucher.service.ts\");\r\nvar VoucherComponent = /** @class */ (function () {\r\n    function VoucherComponent(voucherService) {\r\n        this.voucherService = voucherService;\r\n        this.validationSpec$ = this.voucherService.voucherValidationSpec$;\r\n        this.panelOpen$ = this.voucherService.panelOpen$;\r\n        this.feedbackMessageType$ = this.voucherService.feedbackMessageType$;\r\n        this.feedbackMessage$ = this.voucherService.feedbackMessage$;\r\n        this.voucherInputMode$ = this.voucherService.voucherInputMode$;\r\n        this.hasFeedbackMessage$ = this.voucherService.hasFeedbackMessage$;\r\n        this.displayedVoucherCode$ = this.voucherService.displayedVoucherCode$;\r\n        this.voucherInputText$ = this.voucherService.voucherInputText$;\r\n        this.voucherCodeText$ = this.voucherService.voucherCodeText$;\r\n        this.redeemText$ = this.voucherService.redeemText$;\r\n    }\r\n    VoucherComponent.prototype.ngOnInit = function () {\r\n    };\r\n    VoucherComponent.prototype.onApplyVoucher = function (voucherCode) {\r\n        this.voucherService.applyVoucher(voucherCode);\r\n    };\r\n    VoucherComponent.prototype.onDeleteVoucher = function () {\r\n        this.voucherService.deleteVoucher();\r\n    };\r\n    VoucherComponent.prototype.onTogglePanel = function () {\r\n        this.voucherService.togglePanel();\r\n    };\r\n    VoucherComponent = __decorate([\r\n        core_1.Component({\r\n            template: \"\\n        <div>\\n            <voucher-panel [open$]=\\\"panelOpen$\\\"\\n                           (toggle)=\\\"onTogglePanel()\\\"\\n                           trackingContext=\\\"voucher\\\">\\n                <feedback-message *ngIf=\\\"hasFeedbackMessage$ | async\\\"\\n                                  [messageType$]=\\\"feedbackMessageType$\\\"\\n                                  [content$]=\\\"feedbackMessage$\\\"\\n                                  trackingContext=\\\"feedback\\\">\\n                </feedback-message>\\n\\n                <voucher-input *ngIf=\\\"voucherInputMode$ | async\\\"\\n                               (applyVoucher)=\\\"onApplyVoucher($event)\\\"\\n                               [validationSpec]=\\\"validationSpec$ | async\\\"\\n                               [voucherInputText]=\\\"voucherInputText$ | async\\\"\\n                               [voucherCodeText]=\\\"voucherCodeText$ | async\\\"\\n                               [redeemText]=\\\"redeemText$ | async\\\"\\n                               trackingContext=\\\"input\\\">\\n                </voucher-input>\\n                <voucher-applied *ngIf=\\\"!(voucherInputMode$ | async)\\\"\\n                                 [displayedVoucherCode$]=\\\"displayedVoucherCode$\\\"\\n                                 (deleteVoucher)=\\\"onDeleteVoucher()\\\"\\n                                 trackingContext=\\\"applied\\\">\\n\\n                </voucher-applied>\\n            </voucher-panel>\\n        </div>\",\r\n            selector: 'voucher',\r\n            // fast change detection possible because observables and immutable data structures are used\r\n            changeDetection: core_1.ChangeDetectionStrategy.OnPush\r\n        }),\r\n        __metadata(\"design:paramtypes\", [voucher_service_1.VoucherService])\r\n    ], VoucherComponent);\r\n    return VoucherComponent;\r\n}());\r\nexports.VoucherComponent = VoucherComponent;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/page-value/voucher-page.value.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_generic_datatypes_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\");\r\nvar voucher_value_type_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-value-type.ts\");\r\nvar applied_voucher_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/applied-voucher.value.ts\");\r\nvar voucher_validation_spec_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-validation-spec.value.ts\");\r\nvar VoucherPageValue = /** @class */ (function () {\r\n    function VoucherPageValue() {\r\n    }\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property({ nullable: true }),\r\n        __metadata(\"design:type\", applied_voucher_value_1.AppliedVoucherValue)\r\n    ], VoucherPageValue.prototype, \"appliedVoucher\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", js_infrastructure_generic_datatypes_1.PostCall)\r\n    ], VoucherPageValue.prototype, \"applyVoucherCall\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", voucher_validation_spec_value_1.VoucherValidationSpecValue)\r\n    ], VoucherPageValue.prototype, \"voucherValidationSpec\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherPageValue.prototype, \"voucherInputText\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherPageValue.prototype, \"voucherCodeText\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherPageValue.prototype, \"redeemText\", void 0);\r\n    VoucherPageValue = __decorate([\r\n        voucher_value_type_1.VoucherValueType()\r\n    ], VoucherPageValue);\r\n    return VoucherPageValue;\r\n}());\r\nexports.VoucherPageValue = VoucherPageValue;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/service/voucher.service.module.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_ng4_store_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\");\r\nvar voucher_service_1 = __webpack_require__(\"./src/main/typescript/app/service/voucher.service.ts\");\r\nvar voucher_page_value_1 = __webpack_require__(\"./src/main/typescript/app/page-value/voucher-page.value.ts\");\r\nvar voucher_reducer_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/reducers/voucher.reducer.ts\");\r\nvar voucher_page_value_reducer_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/reducers/voucher.page-value.reducer.ts\");\r\nvar voucher_ui_state_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-ui-state.value.ts\");\r\nvar voucher_root_state_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-root-state.value.ts\");\r\nvar abstract_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts\");\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar js_infrastructure_ng4_store_csi_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store-csi/target/dist/index.js\");\r\nvar js_infrastructure_ng4_csi_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-csi/target/dist/index.js\");\r\nvar VoucherServiceModule = /** @class */ (function () {\r\n    function VoucherServiceModule() {\r\n    }\r\n    VoucherServiceModule = __decorate([\r\n        core_1.NgModule({\r\n            imports: [\r\n                js_infrastructure_ng4_store_1.ShopApplicationModule,\r\n                js_infrastructure_ng4_csi_1.CsiModule,\r\n                js_infrastructure_ng4_store_csi_1.StoreCsiModule,\r\n            ],\r\n            providers: [\r\n                js_infrastructure_ng4_store_1.ShopApplicationModule.forRootComponent({\r\n                    extensionName: 'voucher',\r\n                    actionBaseType: abstract_voucher_action_1.AbstractVoucherAction,\r\n                    initialStoreValue: voucher_root_state_value_1.VoucherRootStateValue.create({\r\n                        uiState: voucher_ui_state_value_1.VoucherUiStateValue.create({\r\n                            panelOpen: false,\r\n                            displayedVoucherCode: null,\r\n                            currentFeedbackMessage: null,\r\n                            voucherEditable: true,\r\n                            voucherInputMode: true,\r\n                            voucherInputText: '',\r\n                            voucherCodeText: '',\r\n                            redeemText: ''\r\n                        })\r\n                    }),\r\n                    reducers: [\r\n                        voucher_page_value_reducer_1.VoucherPageValueReducer,\r\n                        voucher_reducer_1.VoucherReducer\r\n                    ],\r\n                    pageValue: {\r\n                        customReducer: true,\r\n                        pageValueType: voucher_page_value_1.VoucherPageValue\r\n                    }\r\n                }),\r\n                voucher_service_1.VoucherService\r\n            ]\r\n        })\r\n    ], VoucherServiceModule);\r\n    return VoucherServiceModule;\r\n}());\r\nexports.VoucherServiceModule = VoucherServiceModule;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/service/voucher.service.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_ng4_store_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\");\r\nvar core_1 = __webpack_require__(\"./node_modules/@angular/core/@angular/core.es5.js\");\r\nvar effects_1 = __webpack_require__(\"./node_modules/@ngrx/effects/index.js\");\r\nvar apply_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/apply-voucher-action.ts\");\r\nvar voucher_applied_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/voucher-applied-action.ts\");\r\nvar applied_voucher_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/applied-voucher.value.ts\");\r\nvar delete_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/delete-voucher-action.ts\");\r\nvar voucher_deleted_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/voucher-deleted-action.ts\");\r\nvar voucher_result_type_enum_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-result-type.enum.ts\");\r\nvar toggle_voucher_panel_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/toggle-voucher-panel.action.ts\");\r\nvar voucher_enum_type_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-enum-type.ts\");\r\nvar js_infrastructure_generic_datatypes_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\");\r\nvar voucher_benefit_changed_csi_outbound_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/voucher-benefit-changed-csi-outbound.action.ts\");\r\nvar VoucherService = /** @class */ (function (_super) {\r\n    __extends(VoucherService, _super);\r\n    function VoucherService(store, actions) {\r\n        var _this = _super.call(this, store, actions) || this;\r\n        _this.feedbackMessage$ = _this.select(function (data) { return (data && data.uiState.currentFeedbackMessage) || null; });\r\n        _this.feedbackMessageType$ = _this.select(function (data) {\r\n            return data && data.appliedVoucher && data.appliedVoucher.validationResult === voucher_result_type_enum_1.VoucherResultType.ACCEPTED\r\n                ? FeedbackMessageType.SUCCESS\r\n                : FeedbackMessageType.ERROR;\r\n        });\r\n        _this.hasFeedbackMessage$ = _this.feedbackMessage$.map(function (message) { return !!message; });\r\n        _this.voucherInputMode$ = _this.select(function (data) { return (data && data.uiState.voucherInputMode) || false; });\r\n        // UI state\r\n        _this.panelOpen$ = _this.select(function (data) { return (data && data.uiState.panelOpen) || false; });\r\n        _this.displayedVoucherCode$ = _this.select(function (data) { return (data && data.uiState.displayedVoucherCode) || null; });\r\n        _this.voucherValidationSpec$ = _this.select(function (data) { return (data && data.voucherValidationSpec) || null; });\r\n        _this.voucherInputText$ = _this.select(function (state) { return state.uiState.voucherInputText || 'Enter voucher Text'; });\r\n        _this.voucherCodeText$ = _this.select(function (state) { return state.uiState.voucherCodeText || 'Enter voucher Code'; });\r\n        _this.redeemText$ = _this.select(function (state) { return state.uiState.redeemText || 'Enter voucher ButtonText'; });\r\n        return _this;\r\n    }\r\n    VoucherService.prototype.onApplyVoucher = function (action) {\r\n        this.callWithPayload(this.currentState.applyVoucherCall.withData(action.voucherCode), applied_voucher_value_1.AppliedVoucherValue, function (appliedVoucher) { return new voucher_applied_action_1.VoucherAppliedAction(appliedVoucher); });\r\n    };\r\n    VoucherService.prototype.onVoucherApplied = function (action) {\r\n        this.dispatch(new voucher_benefit_changed_csi_outbound_action_1.VoucherBenefitChangedCsiOutboundAction());\r\n    };\r\n    VoucherService.prototype.onVoucherDeleted = function (action) {\r\n        this.dispatch(new voucher_benefit_changed_csi_outbound_action_1.VoucherBenefitChangedCsiOutboundAction());\r\n    };\r\n    VoucherService.prototype.onDeleteVoucher = function (action) {\r\n        this.callWithoutPayload(this.currentState.appliedVoucher.unapplyVoucherCall, function () { return new voucher_deleted_action_1.VoucherDeletedAction(); });\r\n    };\r\n    VoucherService.prototype.applyVoucher = function (voucherCode) {\r\n        this.dispatch(new apply_voucher_action_1.ApplyVoucherAction(voucherCode));\r\n    };\r\n    VoucherService.prototype.deleteVoucher = function () {\r\n        this.dispatch(new delete_voucher_action_1.DeleteVoucherAction());\r\n    };\r\n    VoucherService.prototype.togglePanel = function () {\r\n        this.dispatch(new toggle_voucher_panel_action_1.ToggleVoucherPanelAction());\r\n    };\r\n    __decorate([\r\n        js_infrastructure_ng4_store_1.OnAction(),\r\n        __metadata(\"design:type\", Function),\r\n        __metadata(\"design:paramtypes\", [apply_voucher_action_1.ApplyVoucherAction]),\r\n        __metadata(\"design:returntype\", void 0)\r\n    ], VoucherService.prototype, \"onApplyVoucher\", null);\r\n    __decorate([\r\n        js_infrastructure_ng4_store_1.OnAction(),\r\n        __metadata(\"design:type\", Function),\r\n        __metadata(\"design:paramtypes\", [voucher_applied_action_1.VoucherAppliedAction]),\r\n        __metadata(\"design:returntype\", void 0)\r\n    ], VoucherService.prototype, \"onVoucherApplied\", null);\r\n    __decorate([\r\n        js_infrastructure_ng4_store_1.OnAction(),\r\n        __metadata(\"design:type\", Function),\r\n        __metadata(\"design:paramtypes\", [voucher_deleted_action_1.VoucherDeletedAction]),\r\n        __metadata(\"design:returntype\", void 0)\r\n    ], VoucherService.prototype, \"onVoucherDeleted\", null);\r\n    __decorate([\r\n        js_infrastructure_ng4_store_1.OnAction(),\r\n        __metadata(\"design:type\", Function),\r\n        __metadata(\"design:paramtypes\", [delete_voucher_action_1.DeleteVoucherAction]),\r\n        __metadata(\"design:returntype\", void 0)\r\n    ], VoucherService.prototype, \"onDeleteVoucher\", null);\r\n    VoucherService = __decorate([\r\n        core_1.Injectable(),\r\n        __metadata(\"design:paramtypes\", [js_infrastructure_ng4_store_1.IExtensionStore, effects_1.Actions])\r\n    ], VoucherService);\r\n    return VoucherService;\r\n}(js_infrastructure_ng4_store_1.AbstractStoreService));\r\nexports.VoucherService = VoucherService;\r\nvar FeedbackMessageType = /** @class */ (function (_super) {\r\n    __extends(FeedbackMessageType, _super);\r\n    function FeedbackMessageType() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    FeedbackMessageType_1 = FeedbackMessageType;\r\n    FeedbackMessageType.prototype.toString = function () {\r\n        return this.name;\r\n    };\r\n    FeedbackMessageType.SUCCESS = new FeedbackMessageType_1();\r\n    FeedbackMessageType.ERROR = new FeedbackMessageType_1();\r\n    FeedbackMessageType = FeedbackMessageType_1 = __decorate([\r\n        voucher_enum_type_1.VoucherEnumType()\r\n    ], FeedbackMessageType);\r\n    return FeedbackMessageType;\r\n    var FeedbackMessageType_1;\r\n}(js_infrastructure_generic_datatypes_1.AbstractEnum));\r\nexports.FeedbackMessageType = FeedbackMessageType;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_ng4_store_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\");\r\nvar AbstractVoucherAction = /** @class */ (function (_super) {\r\n    __extends(AbstractVoucherAction, _super);\r\n    function AbstractVoucherAction() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    AbstractVoucherAction.NAMESPACE = \"voucher\";\r\n    return AbstractVoucherAction;\r\n}(js_infrastructure_ng4_store_1.AbstractBaseAction));\r\nexports.AbstractVoucherAction = AbstractVoucherAction;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/actions/apply-voucher-action.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar abstract_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts\");\r\nvar ApplyVoucherAction = /** @class */ (function (_super) {\r\n    __extends(ApplyVoucherAction, _super);\r\n    function ApplyVoucherAction(voucherCode) {\r\n        var _this = _super.call(this) || this;\r\n        _this.voucherCode = voucherCode;\r\n        return _this;\r\n    }\r\n    return ApplyVoucherAction;\r\n}(abstract_voucher_action_1.AbstractVoucherAction));\r\nexports.ApplyVoucherAction = ApplyVoucherAction;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/actions/delete-voucher-action.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar abstract_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts\");\r\nvar DeleteVoucherAction = /** @class */ (function (_super) {\r\n    __extends(DeleteVoucherAction, _super);\r\n    function DeleteVoucherAction() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    return DeleteVoucherAction;\r\n}(abstract_voucher_action_1.AbstractVoucherAction));\r\nexports.DeleteVoucherAction = DeleteVoucherAction;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/actions/toggle-voucher-panel.action.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar abstract_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts\");\r\nvar ToggleVoucherPanelAction = /** @class */ (function (_super) {\r\n    __extends(ToggleVoucherPanelAction, _super);\r\n    function ToggleVoucherPanelAction() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    return ToggleVoucherPanelAction;\r\n}(abstract_voucher_action_1.AbstractVoucherAction));\r\nexports.ToggleVoucherPanelAction = ToggleVoucherPanelAction;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/actions/voucher-applied-action.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar abstract_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts\");\r\nvar VoucherAppliedAction = /** @class */ (function (_super) {\r\n    __extends(VoucherAppliedAction, _super);\r\n    function VoucherAppliedAction(appliedVoucher) {\r\n        var _this = _super.call(this) || this;\r\n        _this.appliedVoucher = appliedVoucher;\r\n        return _this;\r\n    }\r\n    return VoucherAppliedAction;\r\n}(abstract_voucher_action_1.AbstractVoucherAction));\r\nexports.VoucherAppliedAction = VoucherAppliedAction;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/actions/voucher-benefit-changed-csi-outbound.action.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_ng4_store_csi_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store-csi/target/dist/index.js\");\r\nvar abstract_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts\");\r\n/**\r\n * This action is used to notify the parent application that the benefits has changed.\r\n */\r\nvar VoucherBenefitChangedCsiOutboundAction = /** @class */ (function (_super) {\r\n    __extends(VoucherBenefitChangedCsiOutboundAction, _super);\r\n    function VoucherBenefitChangedCsiOutboundAction() {\r\n        return _super.call(this) || this;\r\n    }\r\n    VoucherBenefitChangedCsiOutboundAction = __decorate([\r\n        js_infrastructure_ng4_store_csi_1.CsiOutboundAction(\r\n        // ATTENTION: Don't change this string as it is the message type the parent application is listening to.\r\n        \"voucher-benefit-changed\"),\r\n        __metadata(\"design:paramtypes\", [])\r\n    ], VoucherBenefitChangedCsiOutboundAction);\r\n    return VoucherBenefitChangedCsiOutboundAction;\r\n}(abstract_voucher_action_1.AbstractVoucherAction));\r\nexports.VoucherBenefitChangedCsiOutboundAction = VoucherBenefitChangedCsiOutboundAction;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/actions/voucher-deleted-action.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar abstract_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts\");\r\nvar VoucherDeletedAction = /** @class */ (function (_super) {\r\n    __extends(VoucherDeletedAction, _super);\r\n    function VoucherDeletedAction() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    return VoucherDeletedAction;\r\n}(abstract_voucher_action_1.AbstractVoucherAction));\r\nexports.VoucherDeletedAction = VoucherDeletedAction;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/reducers/reducer-utils.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar voucher_result_type_enum_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-result-type.enum.ts\");\r\nfunction computeUiStateWithAppliedVoucher(state, appliedVoucher) {\r\n    return state.update({\r\n        appliedVoucher: appliedVoucher,\r\n        uiState: function (s) { return s.update({\r\n            displayedVoucherCode: appliedVoucher.voucherCode,\r\n            currentFeedbackMessage: appliedVoucher.feedbackMessage,\r\n            voucherInputMode: appliedVoucher.validationResult !== voucher_result_type_enum_1.VoucherResultType.ACCEPTED,\r\n            panelOpen: true,\r\n            voucherInputText: state.voucherInputText,\r\n            voucherCodeText: state.voucherCodeText,\r\n            redeemText: state.redeemText\r\n        }); }\r\n    });\r\n}\r\nexports.computeUiStateWithAppliedVoucher = computeUiStateWithAppliedVoucher;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/reducers/voucher.page-value.reducer.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar voucher_root_state_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-root-state.value.ts\");\r\nvar js_infrastructure_ng4_store_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\");\r\nvar reducer_utils_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/reducers/reducer-utils.ts\");\r\nvar VoucherPageValueReducer = /** @class */ (function (_super) {\r\n    __extends(VoucherPageValueReducer, _super);\r\n    function VoucherPageValueReducer() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    VoucherPageValueReducer.prototype.computeInitialStateFromPageValue = function (state, action) {\r\n        var pageValue = action.pageValue;\r\n        var initialState = state.update({\r\n            appliedVoucher: pageValue.appliedVoucher,\r\n            applyVoucherCall: pageValue.applyVoucherCall,\r\n            voucherValidationSpec: pageValue.voucherValidationSpec,\r\n            voucherInputText: pageValue.voucherInputText,\r\n            voucherCodeText: pageValue.voucherCodeText,\r\n            redeemText: pageValue.redeemText,\r\n            uiState: function (s) { return s.update({\r\n                voucherInputText: pageValue.voucherInputText,\r\n                voucherCodeText: pageValue.voucherCodeText,\r\n                redeemText: pageValue.redeemText\r\n            }); }\r\n        });\r\n        return pageValue.appliedVoucher\r\n            ? reducer_utils_1.computeUiStateWithAppliedVoucher(initialState, pageValue.appliedVoucher)\r\n            : initialState;\r\n    };\r\n    __decorate([\r\n        js_infrastructure_ng4_store_1.ReducerMethod(),\r\n        __metadata(\"design:type\", Function),\r\n        __metadata(\"design:paramtypes\", [voucher_root_state_value_1.VoucherRootStateValue, js_infrastructure_ng4_store_1.PageValueAction]),\r\n        __metadata(\"design:returntype\", voucher_root_state_value_1.VoucherRootStateValue)\r\n    ], VoucherPageValueReducer.prototype, \"computeInitialStateFromPageValue\", null);\r\n    return VoucherPageValueReducer;\r\n}(js_infrastructure_ng4_store_1.AbstractMethodReducer));\r\nexports.VoucherPageValueReducer = VoucherPageValueReducer;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/reducers/voucher.reducer.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_ng4_store_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\");\r\nvar voucher_root_state_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-root-state.value.ts\");\r\nvar apply_voucher_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/apply-voucher-action.ts\");\r\nvar voucher_applied_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/voucher-applied-action.ts\");\r\nvar voucher_deleted_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/voucher-deleted-action.ts\");\r\nvar toggle_voucher_panel_action_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/actions/toggle-voucher-panel.action.ts\");\r\nvar reducer_utils_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/reducers/reducer-utils.ts\");\r\nvar VoucherReducer = /** @class */ (function (_super) {\r\n    __extends(VoucherReducer, _super);\r\n    function VoucherReducer() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    VoucherReducer.prototype.applyVoucher = function (state, action) {\r\n        return state.update({\r\n            uiState: function (s) { return s.update({\r\n                voucherEditable: false\r\n            }); }\r\n        });\r\n    };\r\n    VoucherReducer.prototype.voucherApplied = function (state, action) {\r\n        return reducer_utils_1.computeUiStateWithAppliedVoucher(state, action.appliedVoucher);\r\n    };\r\n    VoucherReducer.prototype.deleteVoucher = function (state, action) {\r\n        return state.update({\r\n            appliedVoucher: null,\r\n            uiState: function (s) { return s.update({\r\n                displayedVoucherCode: null,\r\n                voucherEditable: true,\r\n                displayVoucherCode: null,\r\n                currentFeedbackMessage: null,\r\n                voucherInputMode: true,\r\n                voucherInputText: state.voucherInputText,\r\n                voucherCodeText: state.voucherCodeText,\r\n                redeemText: state.redeemText\r\n            }); },\r\n        });\r\n    };\r\n    VoucherReducer.prototype.tooglePanel = function (state, action) {\r\n        return state.update({\r\n            uiState: function (s) { return s.update({\r\n                panelOpen: function (open) { return !open; }\r\n            }); }\r\n        });\r\n    };\r\n    __decorate([\r\n        js_infrastructure_ng4_store_1.ReducerMethod(),\r\n        __metadata(\"design:type\", Function),\r\n        __metadata(\"design:paramtypes\", [voucher_root_state_value_1.VoucherRootStateValue, apply_voucher_action_1.ApplyVoucherAction]),\r\n        __metadata(\"design:returntype\", voucher_root_state_value_1.VoucherRootStateValue)\r\n    ], VoucherReducer.prototype, \"applyVoucher\", null);\r\n    __decorate([\r\n        js_infrastructure_ng4_store_1.ReducerMethod(),\r\n        __metadata(\"design:type\", Function),\r\n        __metadata(\"design:paramtypes\", [voucher_root_state_value_1.VoucherRootStateValue, voucher_applied_action_1.VoucherAppliedAction]),\r\n        __metadata(\"design:returntype\", voucher_root_state_value_1.VoucherRootStateValue)\r\n    ], VoucherReducer.prototype, \"voucherApplied\", null);\r\n    __decorate([\r\n        js_infrastructure_ng4_store_1.ReducerMethod(),\r\n        __metadata(\"design:type\", Function),\r\n        __metadata(\"design:paramtypes\", [voucher_root_state_value_1.VoucherRootStateValue, voucher_deleted_action_1.VoucherDeletedAction]),\r\n        __metadata(\"design:returntype\", voucher_root_state_value_1.VoucherRootStateValue)\r\n    ], VoucherReducer.prototype, \"deleteVoucher\", null);\r\n    __decorate([\r\n        js_infrastructure_ng4_store_1.ReducerMethod(),\r\n        __metadata(\"design:type\", Function),\r\n        __metadata(\"design:paramtypes\", [voucher_root_state_value_1.VoucherRootStateValue, toggle_voucher_panel_action_1.ToggleVoucherPanelAction]),\r\n        __metadata(\"design:returntype\", voucher_root_state_value_1.VoucherRootStateValue)\r\n    ], VoucherReducer.prototype, \"tooglePanel\", null);\r\n    return VoucherReducer;\r\n}(js_infrastructure_ng4_store_1.AbstractMethodReducer));\r\nexports.VoucherReducer = VoucherReducer;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/values/applied-voucher.value.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_ng4_store_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\");\r\nvar js_infrastructure_generic_datatypes_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\");\r\nvar voucher_value_type_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-value-type.ts\");\r\nvar voucher_result_type_enum_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-result-type.enum.ts\");\r\nvar AppliedVoucherValue = /** @class */ (function (_super) {\r\n    __extends(AppliedVoucherValue, _super);\r\n    function AppliedVoucherValue() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], AppliedVoucherValue.prototype, \"voucherCode\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", voucher_result_type_enum_1.VoucherResultType)\r\n    ], AppliedVoucherValue.prototype, \"validationResult\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], AppliedVoucherValue.prototype, \"feedbackMessage\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", js_infrastructure_generic_datatypes_1.PostCall)\r\n    ], AppliedVoucherValue.prototype, \"unapplyVoucherCall\", void 0);\r\n    AppliedVoucherValue = __decorate([\r\n        voucher_value_type_1.VoucherValueType()\r\n    ], AppliedVoucherValue);\r\n    return AppliedVoucherValue;\r\n}(js_infrastructure_ng4_store_1.AbstractStoreValue));\r\nexports.AppliedVoucherValue = AppliedVoucherValue;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/values/voucher-enum-type.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_generic_datatypes_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\");\r\nfunction VoucherEnumType() {\r\n    return js_infrastructure_generic_datatypes_1.EnumType(\"voucher\");\r\n}\r\nexports.VoucherEnumType = VoucherEnumType;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/values/voucher-result-type.enum.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar voucher_enum_type_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-enum-type.ts\");\r\nvar js_infrastructure_generic_datatypes_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\");\r\nvar VoucherResultType = /** @class */ (function (_super) {\r\n    __extends(VoucherResultType, _super);\r\n    function VoucherResultType() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    VoucherResultType_1 = VoucherResultType;\r\n    /**\r\n     * The voucher code was accepted.\r\n     */\r\n    VoucherResultType.ACCEPTED = new VoucherResultType_1();\r\n    /**\r\n     * The user tried to apply a voucher on top of another one already applied.\r\n     */\r\n    VoucherResultType.UNSUPPORTED_MULTIPLE_VOUCHERS = new VoucherResultType_1();\r\n    /**\r\n     * The voucher could not be applied because the cart was empty.\r\n     */\r\n    VoucherResultType.EMPTY_CART = new VoucherResultType_1();\r\n    /**\r\n     * An unexpected error occurred when applying the voucher.\r\n     */\r\n    VoucherResultType.UNEXPECTED_ERROR = new VoucherResultType_1();\r\n    // TODO Add error message documentation when available in MCE docs\r\n    VoucherResultType.INVALID_PRODUCT_ID = new VoucherResultType_1();\r\n    VoucherResultType.INVALID_VO_NUMBER = new VoucherResultType_1();\r\n    VoucherResultType.VOUCHER_ALREADY_CASHED_IN = new VoucherResultType_1();\r\n    VoucherResultType.VOUCHER_EXPIRED = new VoucherResultType_1();\r\n    VoucherResultType.VOUCHER_PROFILE_NOT_VALID_YET = new VoucherResultType_1();\r\n    VoucherResultType.VOUCHER_NOT_VALID_FOR_CHOSEN_PRODUCT = new VoucherResultType_1();\r\n    VoucherResultType.ALLOWED_CASHINS_COMPLETED = new VoucherResultType_1();\r\n    VoucherResultType.WRONG_CASHIN_SALES_CHANNEL = new VoucherResultType_1();\r\n    VoucherResultType.VOUCHER_PROFILE_STOPPED = new VoucherResultType_1();\r\n    VoucherResultType.VOUCHER_PROFILE_EXPIRED = new VoucherResultType_1();\r\n    VoucherResultType.DUPLICATE_RESERVATION_REQUEST = new VoucherResultType_1();\r\n    VoucherResultType.ALLOWED_CASHINS_FOR_VO_COMPLETED = new VoucherResultType_1();\r\n    VoucherResultType.FRAME_CONTRACT_NOT_VALID = new VoucherResultType_1();\r\n    VoucherResultType.VO_NOT_VALID_FOR_PROFILE = new VoucherResultType_1();\r\n    VoucherResultType.INVALID_VOUCHER_CATEGORY = new VoucherResultType_1();\r\n    VoucherResultType.INVALID_VOUCHER_CODE = new VoucherResultType_1();\r\n    VoucherResultType = VoucherResultType_1 = __decorate([\r\n        voucher_enum_type_1.VoucherEnumType()\r\n    ], VoucherResultType);\r\n    return VoucherResultType;\r\n    var VoucherResultType_1;\r\n}(js_infrastructure_generic_datatypes_1.AbstractEnum));\r\nexports.VoucherResultType = VoucherResultType;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/values/voucher-root-state.value.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_ng4_store_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\");\r\nvar voucher_value_type_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-value-type.ts\");\r\nvar voucher_ui_state_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-ui-state.value.ts\");\r\nvar applied_voucher_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/applied-voucher.value.ts\");\r\nvar js_infrastructure_generic_datatypes_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\");\r\nvar voucher_validation_spec_value_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-validation-spec.value.ts\");\r\nvar VoucherRootStateValue = /** @class */ (function (_super) {\r\n    __extends(VoucherRootStateValue, _super);\r\n    function VoucherRootStateValue() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property({ nullable: true }),\r\n        __metadata(\"design:type\", applied_voucher_value_1.AppliedVoucherValue)\r\n    ], VoucherRootStateValue.prototype, \"appliedVoucher\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property({ nullable: true }),\r\n        __metadata(\"design:type\", js_infrastructure_generic_datatypes_1.PostCall)\r\n    ], VoucherRootStateValue.prototype, \"applyVoucherCall\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property({ nullable: true }),\r\n        __metadata(\"design:type\", voucher_validation_spec_value_1.VoucherValidationSpecValue)\r\n    ], VoucherRootStateValue.prototype, \"voucherValidationSpec\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", voucher_ui_state_value_1.VoucherUiStateValue)\r\n    ], VoucherRootStateValue.prototype, \"uiState\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherRootStateValue.prototype, \"voucherInputText\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherRootStateValue.prototype, \"voucherCodeText\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherRootStateValue.prototype, \"redeemText\", void 0);\r\n    VoucherRootStateValue = __decorate([\r\n        voucher_value_type_1.VoucherValueType()\r\n    ], VoucherRootStateValue);\r\n    return VoucherRootStateValue;\r\n}(js_infrastructure_ng4_store_1.AbstractRootStoreValue));\r\nexports.VoucherRootStateValue = VoucherRootStateValue;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/values/voucher-ui-state.value.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __extends = (this && this.__extends) || (function () {\r\n    var extendStatics = Object.setPrototypeOf ||\r\n        ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n        function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };\r\n    return function (d, b) {\r\n        extendStatics(d, b);\r\n        function __() { this.constructor = d; }\r\n        d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n    };\r\n})();\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_ng4_store_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-store/target/dist/index.js\");\r\nvar voucher_value_type_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-value-type.ts\");\r\nvar js_infrastructure_generic_datatypes_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\");\r\nvar VoucherUiStateValue = /** @class */ (function (_super) {\r\n    __extends(VoucherUiStateValue, _super);\r\n    function VoucherUiStateValue() {\r\n        return _super !== null && _super.apply(this, arguments) || this;\r\n    }\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", Boolean)\r\n    ], VoucherUiStateValue.prototype, \"panelOpen\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", Boolean)\r\n    ], VoucherUiStateValue.prototype, \"voucherEditable\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property({ nullable: true }),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherUiStateValue.prototype, \"currentFeedbackMessage\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property({ nullable: true }),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherUiStateValue.prototype, \"displayedVoucherCode\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", Boolean)\r\n    ], VoucherUiStateValue.prototype, \"voucherInputMode\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherUiStateValue.prototype, \"voucherInputText\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherUiStateValue.prototype, \"voucherCodeText\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", String)\r\n    ], VoucherUiStateValue.prototype, \"redeemText\", void 0);\r\n    VoucherUiStateValue = __decorate([\r\n        voucher_value_type_1.VoucherValueType()\r\n    ], VoucherUiStateValue);\r\n    return VoucherUiStateValue;\r\n}(js_infrastructure_ng4_store_1.AbstractStoreValue));\r\nexports.VoucherUiStateValue = VoucherUiStateValue;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/values/voucher-validation-spec.value.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nvar __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {\r\n    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n    if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n    return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n};\r\nvar __metadata = (this && this.__metadata) || function (k, v) {\r\n    if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(k, v);\r\n};\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar voucher_value_type_1 = __webpack_require__(\"./src/main/typescript/app/stores/voucher/values/voucher-value-type.ts\");\r\nvar js_infrastructure_generic_datatypes_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\");\r\nvar VoucherValidationSpecValue = /** @class */ (function () {\r\n    function VoucherValidationSpecValue() {\r\n    }\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", Number)\r\n    ], VoucherValidationSpecValue.prototype, \"minLength\", void 0);\r\n    __decorate([\r\n        js_infrastructure_generic_datatypes_1.Property(),\r\n        __metadata(\"design:type\", Number)\r\n    ], VoucherValidationSpecValue.prototype, \"maxLength\", void 0);\r\n    VoucherValidationSpecValue = __decorate([\r\n        voucher_value_type_1.VoucherValueType()\r\n    ], VoucherValidationSpecValue);\r\n    return VoucherValidationSpecValue;\r\n}());\r\nexports.VoucherValidationSpecValue = VoucherValidationSpecValue;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/app/stores/voucher/values/voucher-value-type.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\nvar js_infrastructure_generic_datatypes_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-generic-datatypes/target/dist/index.js\");\r\nfunction VoucherValueType() {\r\n    return js_infrastructure_generic_datatypes_1.ValueType(\"voucher\");\r\n}\r\nexports.VoucherValueType = VoucherValueType;\r\n\n\n/***/ }),\n\n/***/ \"./src/main/typescript/index.ts\":\n/***/ (function(module, exports, __webpack_require__) {\n\n\"use strict\";\n\r\nObject.defineProperty(exports, \"__esModule\", { value: true });\r\n__webpack_require__(\"./node_modules/reflect-metadata/Reflect.js\"); //this must be imported before zone.js ... otherwise the ng will not boot\r\n__webpack_require__(\"./node_modules/zone.js/dist/zone.js\");\r\n__webpack_require__(\"./node_modules/core-js/es7/reflect.js\");\r\n__webpack_require__(\"./node_modules/rxjs/Rx.js\");\r\nvar app_module_1 = __webpack_require__(\"./src/main/typescript/app/app.module.ts\");\r\nvar js_infrastructure_ng4_csi_1 = __webpack_require__(\"./node_modules/@shop/js-infrastructure-ng4-csi/target/dist/index.js\");\r\nexports.bootstrap = js_infrastructure_ng4_csi_1.createCsiBootstrapForNg4Module(app_module_1.AppModule);\r\n\n\n/***/ }),\n\n/***/ 0:\n/***/ (function(module, exports, __webpack_require__) {\n\nmodule.exports = __webpack_require__(\"./src/main/typescript/index.ts\");\n\n\n/***/ }),\n\n/***/ \"dll-reference _shop_js_vendor_ng4\":\n/***/ (function(module, exports) {\n\nmodule.exports = _shop_js_vendor_ng4;\n\n/***/ })\n\n/******/ });\n});\n\n\n// WEBPACK FOOTER //\n// index.js","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/common/@angular/common.es5.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/@angular/common/@angular/common.es5.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/@angular/common/@angular/common.es5.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/core/@angular/core.es5.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/@angular/core/@angular/core.es5.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/@angular/core/@angular/core.es5.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/forms/@angular/forms.es5.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/@angular/forms/@angular/forms.es5.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/@angular/forms/@angular/forms.es5.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/http/@angular/http.es5.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/@angular/http/@angular/http.es5.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/@angular/http/@angular/http.es5.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/@angular/platform-browser-dynamic/@angular/platform-browser-dynamic.es5.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/@angular/platform-browser/@angular/platform-browser.es5.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@ngrx/effects/index.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/@ngrx/effects/index.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/@ngrx/effects/index.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@ngrx/store-devtools/index.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/@ngrx/store-devtools/index.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/@ngrx/store-devtools/index.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/@ngrx/store/index.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/@ngrx/store/index.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/@ngrx/store/index.js\n// module chunks = 0","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"_shop_js_infrastructure_generic_datatypes\"] = factory();\n\telse\n\t\troot[\"_shop_js_infrastructure_generic_datatypes\"] = factory();\n})(window, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/webpack/bootstrap","export * from \"./infrastructure-enum-type.decorator\"\nexport * from \"./infrastructure-value-type.decorator\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/base/index.ts","import {EnumType} from \"../valuemetadata/decorators/enum-type.decorator\";\n\nexport function InfrastructureEnumType(): ClassDecorator{\n    return EnumType(\"infrastructure\");\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/base/infrastructure-enum-type.decorator.ts","import {ValueType} from \"../valuemetadata/decorators/value-type.decorator\";\n\nexport function InfrastructureValueType(): ClassDecorator{\n    return ValueType(\"infrastructure\");\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/base/infrastructure-value-type.decorator.ts","import {Link} from \"./link.value\";\nimport {Call} from \"./call.value\";\nimport {Property} from \"../valuemetadata/decorators/property.decorator\";\n\nexport class AbstractHttpCall<T> extends Call<T>{\n    @Property()\n    public readonly link: Link;\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/abstract-http-call.value.ts","import {AbstractImmutableData} from \"../immutable/abstract-immutable-data\";\n\n/**\n * This class is used to abstract a call to the server and encapsulates information like url, http method,\n * or data to post. Typically instances of call are created on the server side. The client chooses the appropriate\n * call instance for an action and calls the {@link ICallService} to execute the call and return the result of this\n * call.\n */\nexport class Call<T> extends AbstractImmutableData {\n}\n\n\n\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/call.value.ts","import {Call} from \"./call.value\";\nimport {InfrastructureValueType} from \"../base/infrastructure-value-type.decorator\";\nimport {Property} from \"../valuemetadata/decorators/property.decorator\";\n@InfrastructureValueType()\nexport class ConstantCall<T> extends Call<T> {\n\n    @Property()\n    public readonly constantPayload: T\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/constant-call.value.ts","import {AbstractHttpCall} from \"./abstract-http-call.value\";\nimport {InfrastructureValueType} from \"../base/infrastructure-value-type.decorator\";\n\n@InfrastructureValueType()\nexport class DeleteCall<T> extends AbstractHttpCall<T> {\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/delete-call.value.ts","import {ArrayProperty} from \"../valuemetadata/decorators\";\nimport {InfrastructureValueType} from \"../base\";\n\n@InfrastructureValueType()\nexport class GenericRequestError {\n    @ArrayProperty(String) readonly messages: string[];\n\n    constructor(messages: string[]) {\n        this.messages = messages;\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/generic-request-error.ts","import {AbstractHttpCall} from \"./abstract-http-call.value\";\nimport {InfrastructureValueType} from \"../base/infrastructure-value-type.decorator\";\n\n@InfrastructureValueType()\nexport class GetCall<T> extends AbstractHttpCall<T> {\n\n\n    withVariables(variables: { [key: string]: string }): GetCall<T> {\n\n        let urlWithPattern = this.link.uri;\n        let resultUrl = urlWithPattern.replace(/_(\\w+)_/g, function (match, group1) {\n            return variables[group1];\n        });\n\n        return this.update<GetCall<T>>({\n            link: (link) => link.update({uri: resultUrl})\n        });\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/get-call.value.ts","export * from \"./abstract-http-call.value\"\nexport * from \"./call.value\"\nexport * from \"./constant-call.value\"\nexport * from \"./delete-call.value\"\nexport * from \"./get-call.value\"\nexport * from \"./link.value\"\nexport * from \"./navigation-event.value\"\nexport * from \"./post-call.value\"\nexport * from \"./service\"\nexport * from \"./generic-request-error\"\n\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/index.ts","import {Property} from \"../valuemetadata/decorators/property.decorator\";\nimport {InfrastructureValueType} from \"../base/infrastructure-value-type.decorator\";\nimport {AbstractImmutableData} from \"../immutable/abstract-immutable-data\";\n\n/**\n * This class is used on the client side for a ResolvedLink which is generated in the JSON Mapping from a Link object\n * and LinkResolver\n */\n\n@InfrastructureValueType()\nexport class Link extends AbstractImmutableData{\n\n    @Property()\n    public readonly uri: string;\n\n    @Property({nullable: true})\n    public readonly mediaType: string;\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/link.value.ts","import {Link} from \"./link.value\";\nimport {InfrastructureValueType} from \"../base/infrastructure-value-type.decorator\";\nimport {Property} from \"../valuemetadata/decorators/property.decorator\";\n\n@InfrastructureValueType()\nexport class NavigationEvent {\n\n    @Property()\n    public readonly link: Link;\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/navigation-event.value.ts","import {AbstractHttpCall} from \"./abstract-http-call.value\";\nimport {Property} from \"../valuemetadata/decorators/property.decorator\";\nimport {InfrastructureValueType} from \"../base/infrastructure-value-type.decorator\";\n\n@InfrastructureValueType()\nexport class PostCall<T> extends AbstractHttpCall<T> {\n\n    @Property({nullable: true})\n    public readonly data: any;\n\n\n\n    withData(data: any): PostCall<T> {\n        return this.update<PostCall<T>>({data: data});\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/post-call.value.ts","import {IMappingService} from \"../../mapping\";\nimport {AbstractHttpCall, Call, ConstantCall, DeleteCall, GetCall, NavigationEvent, PostCall} from \"..\";\n\nimport axios from \"axios\";\nimport isString = require(\"lodash/isString\");\nimport {setFlowId} from \"./flow-id-request-interceptor\";\n\ntype CatchHandler = (requestError: any) => Promise<any>;\n\n/**\n * This interface is used to abstract a call to the server\n */\nexport interface ICallService {\n    handleCall<T>(call: Call<T>, recursionCounter?: number): Promise<T>;\n}\n\nexport class CallService implements ICallService {\n    static RECURSION_LIMIT: number = 10;\n    private catchHandler: CatchHandler | null = null;\n\n    constructor(private mappingService: IMappingService) {}\n\n    registerCatchHandler(handler: CatchHandler) {\n        this.catchHandler = handler;\n    }\n\n    handleCall<T>(call: Call<T>, recursionCounter: number = 0): Promise<T> {\n        if (recursionCounter >= CallService.RECURSION_LIMIT) {\n            throw new Error(\n                \"Trying to have more than 10 recursive Calls, this looks like an infinite loop... \"\n            );\n        }\n\n        if (call instanceof ConstantCall) {\n            return this.handleConstantCall(<ConstantCall<T>>call);\n        } else {\n            // otherwise we do a ajax call\n            var restCall = call as AbstractHttpCall<T>;\n            var resultPromise = this.doExec(restCall);\n\n            const catchHandler = this.catchHandler || this.defaultCatchHandler;\n\n            return resultPromise\n                .then((p: any) => {\n                    // check if the result is a constant call (e.g. navigationEvent)...\n                    if (p instanceof ConstantCall) {\n                        return this.handleCall(p, recursionCounter + 1);\n                    }\n                    // or a AbstractCall\n                    if (p instanceof AbstractHttpCall) {\n                        return this.handleCall(p, recursionCounter + 1);\n                    }\n                    return p;\n                })\n                .catch(\n                    catchHandler\n                );\n        }\n    }\n\n    private defaultCatchHandler = (requestError: any) => {\n        const parsedRequestError = this.mappingService.fromJson(\n            requestError.response.data\n        );\n        return Promise.reject(parsedRequestError);\n    };\n\n    /**\n     * In case of a constant call as it's payload will be returned as a promise.\n     */\n    private handleConstantCall<T>(constantCall: ConstantCall<T>): Promise<T> {\n        if (constantCall.constantPayload instanceof NavigationEvent) {\n            var navigationEvent = constantCall.constantPayload;\n            this.doRedirect(navigationEvent.link.uri);\n        }\n\n        return Promise.resolve(constantCall.constantPayload);\n    }\n\n    private doRedirect(url: string): void {\n        CallService.validateUrl(url);\n        window.location.href = url;\n    }\n\n    private doExec<T>(call: AbstractHttpCall<T>): Promise<T> {\n        var headers: { [key: string]: any } = {};\n        if (call.link.mediaType !== null) {\n            headers[\"Content-Type\"] = call.link.mediaType;\n        }\n        var method;\n        var data = {};\n        if (call instanceof PostCall) {\n            var jsonData = this.mappingService.toJson(\n                (call as PostCall<T>).data\n            );\n            data = JSON.stringify(jsonData);\n            method = \"POST\";\n        } else if (call instanceof GetCall) {\n            method = \"GET\";\n        } else if (call instanceof DeleteCall) {\n            method = \"DELETE\";\n        } else {\n            throw new Error(\"Unknown Method of call: \" + call);\n        }\n\n        axios.interceptors.request.use(setFlowId, (error) => Promise.reject(error));\n\n        return axios\n            .request<T>({\n                url: call.link.uri,\n                method,\n                data,\n                headers,\n                withCredentials: this.isSendRequestWithCredentials()\n            })\n            .then(response => response.data)\n            .then(parsed => this.mappingService.fromJson(parsed));\n    }\n\n    // ugly workaround to fix CORS issues in DEV environments, but only there!\n    private isSendRequestWithCredentials(): boolean {\n        let metaElements = document.querySelectorAll(\"meta[name=corsEnabled]\");\n        if (metaElements.length !== 0) {\n            return metaElements[0].getAttribute(\"content\") === \"true\";\n        }\n        return false;\n    }\n\n    private static validateUrl(url: string): void {\n        if (!isString(url)) {\n            throw new Error(\"The given URL is not a string!\");\n        }\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/service/call.service.ts","import {AxiosRequestConfig} from \"axios\";\n\nexport function setFlowId(config: AxiosRequestConfig) {\n    let metaElements = document.querySelectorAll('meta[name=flowId]');\n    let flowId = undefined;\n\n    if (metaElements.length !== 0) {\n        flowId = metaElements[0].getAttribute('content');\n    }\n\n    if (flowId) {\n        config.headers.flowId = flowId;\n    }\n\n    return config;\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/service/flow-id-request-interceptor.ts","export * from \"./call.service\"\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/call/service/index.ts","import \"reflect-metadata\";\nimport { PropertyDecoratorInfo } from \"./property-decorator-info\";\n\nexport function extractInfoFromPropertyDecorator(\n    target: any,\n    propertyKey: string\n) {\n    return new PropertyDecoratorInfo(\n        Reflect.getMetadata(\"design:type\", target, propertyKey),\n        propertyKey,\n        target.constructor\n    );\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/decoratorutil/extract-info-from-property-decorator.function.ts","export * from \"./extract-info-from-property-decorator.function\"\nexport * from \"./property-decorator-info\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/decoratorutil/index.ts","import {NewableType} from \"../types/types\";\n\nexport class PropertyDecoratorInfo {\n    constructor(public readonly propertyType: NewableType<any>,\n                public readonly propertyName: string,\n                public readonly ownerType: NewableType<any>) {\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/decoratorutil/property-decorator-info.ts","import {NewableType, Type} from \"../types/types\";\n\nconst INDEX_SYMBOL = Symbol(\"shop/infrastructure/AbstractEnum#INDEX_SYMBOL\");\n\ntype AbstractEnumType<T extends AbstractEnum> = Type<T> & {\n    values(this: Type<T>): T[];\n    toIndex(this: Type<T>): { [name: string]: T};\n    forName(name: string): T\n}\n\nexport class AbstractEnum {\n\n    static values<T extends AbstractEnum>(this: Type<T>): T[] {\n        let index = ((<any>this) as typeof AbstractEnum).toIndex();\n        return Object.keys(index).map((key) => index[key] as T);\n    }\n\n    static toIndex<T extends AbstractEnum>(this: Type<T>): { [name: string]: T } {\n        let index: { [name: string]: T } = (this as any)[INDEX_SYMBOL];\n        if(index){\n            return index;\n        }\n\n        // calculate index, take all constructor properties that are of the enum type....\n        index = Object.keys(this).reduce((map, name) => {\n            let potentialEnumValue = (this as any)[name];\n            if(potentialEnumValue instanceof this){\n                return Object.assign({}, map, {[name]: potentialEnumValue});\n            }\n            return map;\n        }, {});\n\n        Object.freeze(index);\n        (this as any)[INDEX_SYMBOL] = index;\n        return index;\n    }\n\n    static forName<T extends AbstractEnum>(this: Type<T>, name: string): T {\n        let index = ((<any>this) as typeof AbstractEnum).toIndex();\n        return index[name] as T || null;\n    }\n\n    get name(): string {\n        let index: { [name: string]: AbstractEnum } = (this.constructor as typeof AbstractEnum).toIndex();\n        let nameOrUndefined = Object.keys(index).find((enumName) => index[enumName] === this);\n        return nameOrUndefined || null;\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/enum/abstract-enum.ts","export * from \"./abstract-enum\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/enum/index.ts","import { NewableType } from \"../types/types\";\nimport {\n    CreateObject,\n    ImmutableObjects,\n    UpdateObject\n} from \"./immutable-objects\";\n\n/**\n * This class is used to define the function types in the subclasses ... the behaviour is added via the decorator ...\n * the behaviour should be moved to this class ...\n */\nexport class AbstractImmutableData {\n    /**\n     * This method returns a copy of the object on which it is called with the same type the supplied argument is used\n     * to replace property values in the copy.\n     * @param values this object is used to replace property values in the resulting copy. If a object value is a\n     * function this function is called with the old value of the property and the return value of the function is used\n     * as the new value of the property.\n     *\n     * @returns {T} a updated copy of the object, that is frozen (if any property is changed) or the instance (if no property is changed).\n     */\n    update<T extends AbstractImmutableData>(\n        this: T,\n        values: UpdateObject<T>\n    ): T {\n        return ImmutableObjects.update(<T>this, values);\n    }\n\n    /**\n     * This method creates a new instance of the type on which this function is called with the properties set that are\n     * supplied as argument.\n     *\n     * @param values\n     * @returns {T} A new value of the object with the supplied properties. The object and all its values should be\n     * frozen.\n     */\n    static create<T extends AbstractImmutableData>(\n        this: NewableType<T>,\n        values: CreateObject<T>\n    ): T {\n        return ImmutableObjects.create(<NewableType<T>>this, values);\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/immutable/abstract-immutable-data.ts","import {NewableType} from \"../types/types\";\n\nexport type UpdatePropertyFunction<P> = (key: P) => P\nexport type UpdateObjectValue<P> = P | UpdatePropertyFunction<P>\nexport type UpdateObject<T> = {[P in keyof T]?: UpdateObjectValue<T[P]>}\nexport type CreateObject<T> = {[P in keyof T]?: T[P]}\nexport type CreateableType<T> = { create: CreateFunction<T>, prototype: any };\nexport type CreateFunction<T> = (properties: CreateObject<T>) => T;\nexport type UpdateFunction<T> = ((updatedProps: UpdateObject<T>) => T)\n\n// copy from https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/freeze\nfunction deepFreeze(obj: any) {\n\n    // begin addition okrammer:\n    // we assume that if we hit a frozen object the graph below has already been frozen ...\n    // this assumption holds true because we recreate the object graph bottom up ...\n    if (Object.isFrozen(obj)) {\n        return;\n    }\n    // end\n\n\n    // Retrieve the property names defined on obj\n    var propNames = Object.getOwnPropertyNames(obj);\n\n    // Freeze properties before freezing self\n    propNames.forEach(function (name) {\n        var prop = obj[name];\n\n        // Freeze prop if it is an object\n        if (typeof prop == 'object' && prop !== null)\n            deepFreeze(prop);\n    });\n\n    // Freeze self (no-op if already frozen)\n    return Object.freeze(obj);\n}\n\nexport const ImmutableObjects = {\n    /**\n     * This method creates a new instance of the type on which this function is called with the properties set that are\n     * supplied as argument.\n     *\n     * @param values\n     * @returns {T} A new value of the object with the supplied properties. The object and all its values should be\n     * frozen.\n     */\n    create: function <T>(constructor: NewableType<T>, values: CreateObject<T>): T {\n        let instance: T = Object.create(constructor.prototype);\n        (Object as any).assign(instance, values);\n\n        deepFreeze(instance);\n\n        return instance;\n    },\n\n    /**\n     * This method returns a copy of the object on which it is called with the same type the supplied argument is used\n     * to replace property values in the copy.\n     *\n     * @param object the template object that defines the source state\n     * @param values this object is used to replace property values in the resulting copy. If a object value is a\n     * function this function is called with the old value of the property and the return value of the function is used\n     * as the new value of the property.\n     *\n     * @returns a updated copy of the object, that is frozen (if any property is changed) or the instance (if no property is changed).\n     */\n    update: function <T>(object: T, values: UpdateObject<T>): T {\n        // copy references of the old instance ...\n        let properties = {... <any>object};\n        // override the data that is supplied from the parameter ...\n        Object.keys(values).forEach((name: any) => {\n            let value = (values as any)[name];\n            // if it is a function call it with the old value ...\n            // and use the result as value ...\n            if (value instanceof Function) {\n                properties[name] = value.call(null, (object as any)[name]);\n            } else {\n                properties[name] = value;\n            }\n        });\n        // use the 'static' 'create' method of the type on which 'update' has been called ....\n        // by using 'create' we assure that the new instance is frozen ...\n        // only create a new instance if a property is changed\n        for (let prop in properties) {\n            if (properties[prop] != (object as any)[prop]) {\n                return ImmutableObjects.create(<NewableType<T>><any>object.constructor, properties);\n            }\n        }\n\n        return object;\n    }\n};\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/immutable/immutable-objects.ts","export * from \"./immutable-objects\";\nexport * from \"./abstract-immutable-data\";\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/immutable/index.ts","import \"reflect-metadata\"; //this must be imported before zone.js ... otherwise the ng will not boot\nimport \"core-js/es7/reflect\";\n\nexport * from \"./base\";\nexport * from \"./call\";\nexport * from \"./decoratorutil\";\nexport * from \"./enum\";\nexport * from \"./valuemetadata\";\nexport * from \"./types/types\";\nexport * from \"./immutable\";\nexport * from \"./tracking\";\nexport * from \"./mapping\";\nexport * from \"./pagevalue\";\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/index.ts","\nexport class ICustomType<T> {\n}\n\nexport interface ICustomType<T> {\n    typeName: string;\n    isType(obj: any): boolean;\n    fromJson(json: any): T;\n    toJson(obj: T): any;\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/mapping/custom-type.interface.ts","export * from \"./custom-type.interface\";\nexport * from \"./mapping.service\";\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/mapping/index.ts","import isUndefined = require(\"lodash/isUndefined\");\nimport isArray = require(\"lodash/isArray\");\nimport isObject = require(\"lodash/isObject\");\nimport isNull = require(\"lodash/isNull\");\nimport map = require(\"lodash/map\");\nimport find = require(\"lodash/find\");\nimport {AbstractPropertyMetaData, AbstractTypeMetaData, EnumMetaData, ValueMetaData} from \"../valuemetadata\";\nimport {ICustomType} from \"./custom-type.interface\";\nimport {ValueMetaDataService} from \"../valuemetadata/service/value-meta-data-service\";\n\n/**\n * This service is used to map between value classes in javascript and javascript objects that are deserialized from\n * JSON. Any type that should be serialized or deserialized must be registered first by the provider via a call to\n * {@link #addAnnotatedType} or {@link #addCustomType}.\n */\nexport interface IMappingService {\n    /**\n     * This function takes a javascript object graph that is returned form json deserialization and creates\n     * a new typed object graph based on the registered types.\n     */\n    fromJson(json: any): any;\n\n    /**\n     * This function takes a typed object graph based on the registered types and returns a javascript object graph\n     * that can be serialized to json.\n     */\n    toJson(value: any): any;\n}\n\n/**\n * This service maps between untyped objects that are created from json to TypeScript classes.\n * To use this service the ts class and type safe enums must define a static field of type MetaInfo.\n * Every class that should be mapped must be registered via the addType method.\n */\nexport class MappingService implements IMappingService {\n    /**\n     * this string is used to add and extract type information to and from the json graph.\n     */\n    private static TYPE_INFO_PROPERTY = \"@type\";\n\n    /**\n     * this string is the property name that is used to place or extract the name of a enum constant.\n     */\n    private static ENUM_NAME_PROPERTY = \"name\";\n\n    private metaDatasForName: {\n        [qualifiedTypeName: string]: AbstractTypeMetaData<any>;\n    } = {};\n    private customTypes: { [qualifiedTypeName: string]: ICustomType<any> } = {};\n\n    constructor(\n        /*@inject(TYPES.ValueMetaDataService)*/\n        private readonly valueMetaDataService: ValueMetaDataService\n    ) {\n        this.metaDatasForName = valueMetaDataService.getMetaDatas().reduce(\n            (map, metaData) => ({\n                ...map,\n                [metaData.qualifiedName]: metaData\n            }),\n            {}\n        );\n\n        this.customTypes = valueMetaDataService.getCustomTypes().reduce(\n            (map, type) => {\n                return ({\n                ...map,\n\n                [type.typeName]: type\n            })},\n            {}\n        );\n    }\n\n    fromJson(json: any): any {\n        return this.fromJsonImpl(json, new Context(\"<root>\"));\n    }\n\n    private fromJsonImpl(json: any, context: Context): any {\n        if (isUndefined(json)) {\n            this.reportError('Encountered \"undefined\" value!', context, {\n                json: json\n            });\n        }\n        if (json === null) {\n            return null;\n        }\n\n        if (isArray(json)) {\n            return map(json, (value: any, index: number) =>\n                this.fromJsonImpl(value, context.index(index))\n            );\n        }\n\n        if (isObject(json)) {\n            let qualifiedTypeName: string =\n                json[MappingService.TYPE_INFO_PROPERTY];\n\n            if (!qualifiedTypeName) {\n                // okay used as simple value object ... no type information ...\n                let result: any = {};\n                Object.keys(json).forEach(\n                    (key: string) =>\n                        (result[key] = this.fromJsonImpl(\n                            json[key],\n                            context.index(key)\n                        ))\n                );\n                return result;\n            } else {\n                return this.fromTypedJson(json, qualifiedTypeName, context);\n            }\n        }\n\n        return json;\n    }\n\n    private fromTypedJson(\n        json: any,\n        qualifiedTypeName: string,\n        context: Context\n    ): any {\n        let metaData: AbstractTypeMetaData<any> = this.metaDatasForName[\n            qualifiedTypeName\n        ];\n        if (metaData) {\n            if (metaData instanceof EnumMetaData) {\n                return this.enumFromTypedJson(json, metaData, context);\n            } else if (metaData instanceof ValueMetaData) {\n                return this.valueFromTypedJson(json, metaData, context);\n            }\n            this.reportError(\"Unknown metaData type!\", context, {\n                typeInfo: qualifiedTypeName,\n                metaData: metaData,\n                json: json,\n                metaDatas: this.metaDatasForName\n            });\n        } else {\n            let customType: ICustomType<any> = this.customTypes[\n                qualifiedTypeName\n            ];\n            if (customType) {\n                return customType.fromJson(json);\n            }\n\n            this.reportError(\n                'Unknown qualifiedTypeName: \"' + qualifiedTypeName + '\"',\n                context,\n                {\n                    qualifiedTypeName: qualifiedTypeName,\n                    json: json,\n                    metaDatas: this.metaDatasForName,\n                    customTypes: this.customTypes\n                }\n            );\n        }\n    }\n\n    private valueFromTypedJson(\n        json: any,\n        metaData: ValueMetaData<any>,\n        context: Context\n    ) {\n        let properties: any = {};\n        metaData.properties.forEach((property: AbstractPropertyMetaData) => {\n            let value = this.fromJsonImpl(\n                json[property.name],\n                context.property(property.name)\n            );\n            properties[property.name] = value;\n        });\n\n        let result = Object.create(metaData.type.prototype);\n        Object.assign(result, properties);\n        return result;\n    }\n\n    private enumFromTypedJson(\n        json: any,\n        metaData: EnumMetaData<any>,\n        context: Context\n    ) {\n        var enumName = json[MappingService.ENUM_NAME_PROPERTY];\n        if (!enumName) {\n            this.reportError(\"Invalid json for enum!\", context, {\n                json: json,\n                metaData: metaData\n            });\n        }\n\n        var enumCtor: any = metaData.type;\n        var enumValue = enumCtor[enumName];\n        if (!enumValue) {\n            this.reportError(\n                'Invalid enum name! Did you forgot the \"static\" keyword?',\n                context,\n                {\n                    enumName: enumName,\n                    metaData: metaData\n                }\n            );\n        }\n        return enumValue;\n    }\n\n    private reportError(message: string, context: Context, args?: any) {\n        args = Object.assign({}, { path: context.path }, args);\n\n        let exceptionMessage = Object.keys(args).reduce(\n            (message: string, name: string) => {\n                return message + \" \" + (name + \"=\" + args[name] + \"; \");\n            },\n            message\n        );\n\n        throw new Error(exceptionMessage);\n    }\n\n    toJson(value: any): any {\n        return this.toJsonImpl(value, new Context(\"<root>\"));\n    }\n\n    toJsonImpl(value: any, context: Context): any {\n        if (isUndefined(value)) {\n            this.reportError(\"Encountered undefined value!\", context, {});\n        }\n        if (isNull(value)) {\n            return null;\n        }\n        if (isArray(value)) {\n            return map(value, (element: any, index: number) => {\n                return this.toJsonImpl(element, context.index(index));\n            });\n        }\n\n        let customType = find(this.customTypes, (ct: ICustomType<any>) =>\n            ct.isType(value)\n        );\n        if (customType) {\n            let obj = customType.toJson(value);\n            obj[MappingService.TYPE_INFO_PROPERTY] = customType.typeName;\n            return obj;\n        }\n\n        if (isObject(value)) {\n            let metaData: AbstractTypeMetaData<any> =\n                value.constructor &&\n                this.valueMetaDataService.getMetaData(value.constructor);\n            if (metaData) {\n                if (metaData instanceof EnumMetaData) {\n                    return this.enumToJson(value, metaData, context);\n                } else if (metaData instanceof ValueMetaData) {\n                    return this.valueToJson(value, metaData, context);\n                } else {\n                    this.reportError(\"Unsupported meta data type!\", context, {\n                        metaData: metaData\n                    });\n                }\n            } else {\n                return this.objectToJson(value, context);\n            }\n        }\n\n        return value;\n    }\n\n    private valueToJson(\n        value: any,\n        metaData: ValueMetaData<any>,\n        context: Context\n    ): any {\n        let obj: any = {};\n        obj[MappingService.TYPE_INFO_PROPERTY] = metaData.qualifiedName;\n        metaData.properties.forEach(\n            (propertyMetaData: AbstractPropertyMetaData) => {\n                let key = propertyMetaData.name;\n                var propertyValue = value[key];\n                obj[key] = this.toJsonImpl(\n                    propertyValue,\n                    context.property(key)\n                );\n            }\n        );\n        return obj;\n    }\n\n    private enumToJson(\n        value: any,\n        metaData: EnumMetaData<any>,\n        context: Context\n    ): any {\n        let obj: any = {};\n        let enumValue = value[MappingService.ENUM_NAME_PROPERTY];\n        if (!enumValue) {\n            this.reportError(\n                'Failed building json from enum, \"' +\n                    MappingService.ENUM_NAME_PROPERTY +\n                    '\" is undefined or null!',\n                context,\n                {\n                    enumObject: value,\n                    metaData: metaData\n                }\n            );\n        }\n        obj[MappingService.TYPE_INFO_PROPERTY] = metaData.qualifiedName;\n        obj[MappingService.ENUM_NAME_PROPERTY] = enumValue;\n        return obj;\n    }\n\n    private objectToJson(value: { [key: string]: any }, context: Context): any {\n        let obj: { [key: string]: any } = {};\n        Object.keys(value).forEach(\n            (key: string) =>\n                (obj[key] = this.toJsonImpl(value[key], context.index(key)))\n        );\n        return obj;\n    }\n}\n\nexport class Context {\n    constructor(public readonly path: string) {}\n\n    property(name: String): Context {\n        return new Context(this.path + \".\" + name);\n    }\n\n    index(index: number | string): Context {\n        return new Context(this.path + \"[\" + index + \"]\");\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/mapping/mapping.service.ts","export * from \"./page-value-loader\";\nexport * from \"./page-value-json-loader\";\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/pagevalue/index.ts","export interface IPageValueJsonLoader {\n    load(pageValueName: string): any;\n}\n\nexport class PageValueJsonLoader implements IPageValueJsonLoader {\n    load(pageValueName: string): any {\n        let script = document.querySelector(`script#${pageValueName}`).innerHTML;\n        let json = JSON.parse(script);\n        return json;\n    }\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/pagevalue/page-value-json-loader.ts","import {IMappingService} from \"../mapping\";\nimport {PageValueJsonLoader} from \"./page-value-json-loader\";\nimport {Type} from \"..\";\n\nexport interface IPageValueLoader {\n    load<T>(pageValueName: string, type: Type<T>): T;\n}\n\nexport class PageValueLoader<T> {\n    constructor(\n        private readonly mappingService: IMappingService,\n        private readonly jsonLoader: PageValueJsonLoader,\n    ) {}\n\n    load<T>(pageValueName: string, type: Type<T>) {\n        let json = this.jsonLoader.load(pageValueName);\n        let pageValue = this.mappingService.fromJson(json);\n        if (!(pageValue instanceof type)) {\n            throw new Error(\n                `Unexpected PageValue type expected ${\n                    type.name\n                    } but got ${pageValue.constructor.name}`\n            );\n        }\n        return pageValue;\n    }\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/pagevalue/page-value-loader.ts","export * from \"./tracking-info.value\";\nexport {TrackingService} from \"./service\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/tracking/index.ts","export * from \"./tracking.service\"\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/tracking/service/index.ts","import {TrackingInfo} from \"../tracking-info.value\";\n\nexport interface ITefDataLayer {\n    push(content: String): void\n}\n\nexport class TrackingService {\n    constructor(private tefDataLayer: ITefDataLayer) {}\n\n    public track(trackingInfo: TrackingInfo): void {\n        if (trackingInfo) {\n            this.tefDataLayer.push(JSON.parse(trackingInfo.rawContent));\n        }\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/tracking/service/tracking.service.ts","import {InfrastructureValueType} from \"../base/infrastructure-value-type.decorator\";\nimport {Property} from \"../valuemetadata/decorators/property.decorator\";\nimport {AbstractImmutableData} from \"../immutable/abstract-immutable-data\";\n/**\n * Implements a wrapper for tracking data, typically holds a raw json.\n */\n\n@InfrastructureValueType()\nexport class TrackingInfo extends AbstractImmutableData{\n\n    @Property()\n    rawContent:string;\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/tracking/tracking-info.value.ts","import {AbstractEnum} from \"../enum\";\nimport {InfrastructureEnumType} from \"../base\";\n\n@InfrastructureEnumType()\nexport class DayOfWeek extends AbstractEnum {\n    static readonly MONDAY = new DayOfWeek();\n    static readonly TUESDAY = new DayOfWeek();\n    static readonly WEDNESDAY = new DayOfWeek();\n    static readonly THURSDAY = new DayOfWeek();\n    static readonly FRIDAY = new DayOfWeek();\n    static readonly SATURDAY = new DayOfWeek();\n    static readonly SUNDAY = new DayOfWeek();\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/types/day-of-week.ts","import {CustomType} from \"../valuemetadata/decorators\";\nimport {ICustomType} from \"../mapping\";\n\n@CustomType()\nexport class LocalDateDefinition implements ICustomType<Date> {\n    typeName = \"infrastructure:LocalDate\";\n\n    fromJson = (json: any): Date => {\n        return new Date(json.date)\n    };\n\n    isType = (obj: any): boolean => {\n        return obj instanceof Date;\n    };\n\n    toJson = (date: Date): any => {\n        let year = date.getFullYear();\n        let month = date.getMonth() + 1;\n        let day = date.getDate();\n        return {date: year + \"-\" + (month < 10 ? \"0\" : \"\") + month + \"-\" + (day < 10 ? \"0\" : \"\") + day}\n    };\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/types/local-date.ts","export type NewableType<T> = {new(...args: any[]): T} & Function;\nexport type Type<T> = Function & {prototype: T}\nexport * from \"./local-date\"\nexport * from \"./day-of-week\"\n\n// this class is only there because files that contains only interfaces are not properly handled when creating d.ts files\nexport class TypesDummyClass{\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/types/types.ts","import {ArrayPropertyMetaData} from \"../service/array-property-meta-data\";\nimport {extractInfoFromPropertyDecorator} from \"../../decoratorutil/extract-info-from-property-decorator.function\";\nimport {combineWithPropertyOptionDefaults} from \"./combine-with-property-option-defaults.function\";\nimport {ValueMetaDataRegistry} from \"../service/value-meta-data-registry\";\nimport {ValueTypeDefinition, isTypeList} from \"./value-type-definition\";\n\nexport function ArrayProperty(elementType: ValueTypeDefinition, options: { nullable?: boolean } = {}): PropertyDecorator {\n    return (target: Object, propertyKey: string) => {\n\n        if (!elementType) {\n            throw new Error(\"@ArrayProperty 'elementType' is null or undefined!\");\n        }\n\n        options = combineWithPropertyOptionDefaults(options);\n\n        let propertyDecoratorInformation = extractInfoFromPropertyDecorator(target, propertyKey);\n\n        if (propertyDecoratorInformation.propertyType !== Array) {\n            throw new Error(\"Decorator @ArrayProperty must only be used on Array properties\")\n        }\n        if (isTypeList(elementType)) {\n            ValueMetaDataRegistry.appendPropertyMetaData(propertyDecoratorInformation.ownerType,\n                new ArrayPropertyMetaData(propertyDecoratorInformation.propertyName, options.nullable, elementType)\n            );\n        } else {\n            ValueMetaDataRegistry.appendPropertyMetaData(propertyDecoratorInformation.ownerType,\n                new ArrayPropertyMetaData(propertyDecoratorInformation.propertyName, options.nullable, [elementType])\n            );\n\n        }\n\n    }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/array-property.decorator.ts","const PROPERTY_DECORATOR_OPTIONS_DEFAULTS = {nullable: false};\n\nexport function combineWithPropertyOptionDefaults(options: object): object {\n    return Object.assign({}, PROPERTY_DECORATOR_OPTIONS_DEFAULTS, options);\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/combine-with-property-option-defaults.function.ts","import {registerCustomType} from \"../register\";\n\nexport function CustomType(): ClassDecorator {\n    return (target: Function) => {\n        registerCustomType(new target.prototype.constructor())\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/custom-type.decorator.ts","import { registerEnumTypeInNamespace } from \"../register\";\n\nexport function EnumType(namespace: string): ClassDecorator {\n    return (target: Function) => {\n        registerEnumTypeInNamespace(target, namespace);\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/enum-type.decorator.ts","export * from \"./array-property.decorator\"\nexport * from \"./enum-type.decorator\"\nexport * from \"./property.decorator\"\nexport * from \"./value-type.decorator\"\nexport * from \"./custom-type.decorator\"\nexport {ValueTypeDefinition} from \"./value-type-definition\"\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/index.ts","import {combineWithPropertyOptionDefaults} from \"./combine-with-property-option-defaults.function\";\nimport {extractInfoFromPropertyDecorator} from \"../../decoratorutil/extract-info-from-property-decorator.function\";\nimport {PropertyMetaData} from \"../service/property-meta-data\";\nimport {ValueMetaDataRegistry} from \"../service/value-meta-data-registry\";\nimport {ValueTypeDefinition, isTypeList} from \"./value-type-definition\";\n\n\nexport function Property(propertyOptions: { nullable?: boolean, type?: ValueTypeDefinition } = {}): PropertyDecorator {\n    let {type, ...options } = propertyOptions;\n    return (target: Object, propertyKey: string) => {\n\n        options = combineWithPropertyOptionDefaults(options);\n\n        let propertyDecoratorInformation = extractInfoFromPropertyDecorator(target, propertyKey);\n\n        if (propertyDecoratorInformation.propertyType === Array) {\n            throw new Error(\"Decorator @Property can not be used on Array properties, use @ArrayProperty instead\")\n        }\n\n        if (type) {\n            if (isTypeList(type)) {\n                ValueMetaDataRegistry.appendPropertyMetaData(\n                    propertyDecoratorInformation.ownerType,\n                    new PropertyMetaData(propertyDecoratorInformation.propertyName, options.nullable, type)\n                );\n            } else {\n                ValueMetaDataRegistry.appendPropertyMetaData(\n                    propertyDecoratorInformation.ownerType,\n                    new PropertyMetaData(propertyDecoratorInformation.propertyName, options.nullable, [type])\n                );\n            }\n        } else {\n            ValueMetaDataRegistry.appendPropertyMetaData(\n                propertyDecoratorInformation.ownerType,\n                new PropertyMetaData(propertyDecoratorInformation.propertyName, options.nullable, [propertyDecoratorInformation.propertyType])\n            );\n        }\n    }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/property.decorator.ts","import { NewableType } from \"../../types/types\";\nimport isArray =  require(\"lodash/isArray\");\n\nexport type ValueTypeDefinition = NewableType<any> | NewableType<any>[];\n\nexport function isTypeList(\n    type: ValueTypeDefinition\n): type is NewableType<any>[] {\n    return isArray(type);\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/value-type-definition.ts","import { registerValueTypeInNamespace } from \"../register\";\n\nexport function ValueType(namespace: string): ClassDecorator {\n    return (target: Function) => {\n        registerValueTypeInNamespace(target, namespace);\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/decorators/value-type.decorator.ts","export * from \"./decorators\"\nexport * from \"./service\"\nexport * from \"./register\"\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/index.ts","import { NewableType } from \"../types/types\";\nimport { EnumMetaData, ValueMetaData, ValueMetaDataRegistry } from \"./service\";\nimport {ICustomType} from \"../mapping\";\n\nexport const registerValueTypeInNamespace = (target: Function, namespace: string) => {\n    let type = <NewableType<any>>target;\n    let propertyMetaData = ValueMetaDataRegistry.getPropertyMetaData(type);\n    let metadata = new ValueMetaData(type, target.name, namespace, propertyMetaData);\n    ValueMetaDataRegistry.registerTypeAndSetMetaData(type, metadata);\n};\n\nexport const registerEnumTypeInNamespace = (target: Function, namespace: string) => {\n    let type = <NewableType<any>>target;\n    let enumMetaData = new EnumMetaData(type, target.name, namespace);\n    ValueMetaDataRegistry.registerTypeAndSetMetaData(type, enumMetaData);\n};\n\nexport const registerCustomType = (type: ICustomType<any>) => {\n    ValueMetaDataRegistry.registerCustomType(type);\n};\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/register.ts","\nexport abstract class AbstractPropertyMetaData {\n    constructor(public readonly name: string, public readonly nullable: boolean) {\n\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/abstract-property-meta-data.ts","import {NewableType} from \"../../types/types\";\n\n\nexport abstract class AbstractTypeMetaData<T> {\n    constructor(public readonly type: NewableType<T>,\n                public readonly name: string,\n                public readonly namespace: string) {\n    }\n\n    get qualifiedName(): string {\n        return this.namespace + \":\" + this.name;\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/abstract-type-meta-data.ts","import {NewableType} from \"../../types/types\";\nimport {AbstractPropertyMetaData} from \"./abstract-property-meta-data\";\n\nexport class ArrayPropertyMetaData extends AbstractPropertyMetaData {\n    constructor(name: string, public readonly nullable: boolean, public readonly elementTypes: NewableType<any>[]) {\n        super(name, nullable);\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/array-property-meta-data.ts","import {NewableType} from \"../../types/types\";\nimport {AbstractTypeMetaData} from \"./abstract-type-meta-data\";\n\nexport class EnumMetaData<T> extends AbstractTypeMetaData<T> {\n    constructor(type: NewableType<T>,\n                name: string,\n                namespace: string) {\n        super(type, name, namespace)\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/enum-meta-data.ts","export * from \"./abstract-property-meta-data\"\nexport * from \"./abstract-type-meta-data\"\nexport * from \"./array-property-meta-data\"\nexport * from \"./enum-meta-data\"\nexport * from \"./property-meta-data\"\nexport * from \"./value-meta-data\"\nexport * from \"./value-meta-data-registry\"\nexport * from \"./value-meta-data-service\"\nexport * from \"./value-validation-service\"\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/index.ts","import {NewableType} from \"../../types/types\";\nimport {AbstractPropertyMetaData} from \"./abstract-property-meta-data\";\n\nexport class PropertyMetaData extends AbstractPropertyMetaData {\n    constructor(name: string, public readonly nullable: boolean, public readonly elementTypes: NewableType<any>[]) {\n        super(name, nullable);\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/property-meta-data.ts","import { NewableType } from \"../../types/types\";\nimport { AbstractPropertyMetaData } from \"./abstract-property-meta-data\";\nimport { AbstractTypeMetaData } from \"./abstract-type-meta-data\";\nimport {ICustomType} from \"../../mapping\";\n\nconst TYPE_META_DATA_SYMBOL = Symbol(\"shop/infrastructure/typeMetaData\");\nconst PROPERTY_META_DATA_SYMBOL = Symbol(\n    \"shop/infrastructure/propertyMetaData\"\n);\n\nconst valueTypeList: NewableType<any>[] = [];\nconst customTypeList: ICustomType<any>[] = [];\n\nfunction appendPropertyMetaData(\n    target: Object,\n    valueTypePropertyMetaData: AbstractPropertyMetaData\n) {\n    let propertyMetaDatas: AbstractPropertyMetaData[] =\n        Reflect.getMetadata(PROPERTY_META_DATA_SYMBOL, target) || [];\n    propertyMetaDatas = propertyMetaDatas.concat([valueTypePropertyMetaData]);\n    Reflect.defineMetadata(\n        PROPERTY_META_DATA_SYMBOL,\n        propertyMetaDatas,\n        target\n    );\n}\n\nfunction getPropertyMetaData(\n    target: NewableType<any>\n): AbstractPropertyMetaData[] {\n    return Reflect.getMetadata(PROPERTY_META_DATA_SYMBOL, target) || [];\n}\n\nfunction getTypeMetaData<T>(type: NewableType<T>): AbstractTypeMetaData<T> {\n    return Reflect.getOwnMetadata(TYPE_META_DATA_SYMBOL, type);\n}\n\nfunction registerTypeAndSetMetaData<T>(\n    type: NewableType<T>,\n    metaData: AbstractTypeMetaData<T>\n) {\n    Reflect.defineMetadata(TYPE_META_DATA_SYMBOL, metaData, type);\n    valueTypeList.push(type);\n}\n\nfunction registerCustomType<T>(\n    type: ICustomType<T>,\n) {\n    customTypeList.push(type);\n}\n\n// exported members\nexport const ValueMetaDataRegistry = {\n    appendPropertyMetaData,\n    getPropertyMetaData,\n    getTypeMetaData,\n    registerTypeAndSetMetaData,\n    registerCustomType,\n    getTypes: () => {\n        return Object.freeze([...valueTypeList]);\n    },\n    getCustomTypes: () => {\n        return Object.freeze([...customTypeList]);\n    }\n};\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/value-meta-data-registry.ts","import \"reflect-metadata\";\nimport { ValueMetaDataRegistry } from \"./value-meta-data-registry\";\nimport { AbstractTypeMetaData } from \"./abstract-type-meta-data\";\nimport {ICustomType, NewableType} from \"../..\";\n\nexport class ValueMetaDataService {\n    getMetaData<T>(type: NewableType<T>): AbstractTypeMetaData<T> {\n        return ValueMetaDataRegistry.getTypeMetaData(type);\n    }\n\n    getMetaDatas(): AbstractTypeMetaData<any>[] {\n        return ValueMetaDataRegistry.getTypes().map(type => {\n            return this.getMetaData(type);\n        });\n    }\n\n    getCustomTypes(): ReadonlyArray<ICustomType<any>> {\n        return ValueMetaDataRegistry.getCustomTypes();\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/value-meta-data-service.ts","\nimport {AbstractPropertyMetaData} from \"./abstract-property-meta-data\";\nimport {NewableType} from \"../../types/types\";\nimport {AbstractTypeMetaData} from \"./abstract-type-meta-data\";\n\nexport class ValueMetaData<T> extends AbstractTypeMetaData<T> {\n    constructor(type: NewableType<T>,\n                name: string,\n                namespace: string,\n                public readonly properties: AbstractPropertyMetaData[]) {\n        super(type, name, namespace)\n\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/value-meta-data.ts","import {\n    AbstractTypeMetaData,\n    ArrayPropertyMetaData,\n    EnumMetaData,\n    NewableType,\n    PropertyMetaData,\n    ValueMetaData,\n    ValueMetaDataService\n} from \"../..\";\nimport isNull = require(\"lodash/isNull\");\nimport isUndefined = require(\"lodash/isUndefined\");\nimport isArray = require(\"lodash/isArray\");\nimport isFunction = require(\"lodash/isFunction\");\nimport isPlainObject = require(\"lodash/isPlainObject\");\nimport isObjectLike = require(\"lodash/isObjectLike\");\nimport isString = require(\"lodash/isString\");\nimport isNumber = require(\"lodash/isNumber\");\nimport isBoolean = require(\"lodash/isBoolean\");\n\nfunction assertIsFunction(val: any) {\n    if (!isFunction(val)) {\n        throw new Error(`expected a function for instanceof check, but got ${val} of type ${typeof val}`);\n    }\n    return true;\n}\n\n\nexport class ValueValidationService {\n    constructor(private readonly valueMetaDataService: ValueMetaDataService) {\n    }\n\n    validate<T>(value: T, debugPath: string = \"\") {\n\n        if(isNull(value)){\n            return;\n        }\n\n        if(isUndefined(value)){\n            throw new Error(\"Encountered undefined [\" + debugPath + \"]\");\n        }\n\n        let metaData: AbstractTypeMetaData<T> = this.valueMetaDataService.getMetaData(<NewableType<T>>value.constructor);\n        if (metaData instanceof ValueMetaData) {\n            this.validateValue(value, metaData, debugPath);\n        } else if (metaData instanceof EnumMetaData){\n            this.validateEnum(value, metaData, debugPath);\n        }else if (isArray(value)) {\n            value.forEach((element, index) => {\n                this.validate(element, debugPath + \"[\" + index + \"]\")\n            })\n        } else if (isPlainObject(value)) {\n            Object.keys(value).forEach((key) => {\n                this.validate((value as any)[key], debugPath + \"[\" + key + \"]\")\n            })\n        }else if(isObjectLike(value)){\n            throw new Error(\"Found a unsupported object of type: '\" + typeof value + \"' toString: '\" + value + \"'. Maybe you forgotten to add a @ValueType decorator on a object with a prototype ...\");\n        }\n    }\n\n    private validateEnum(value: any, metaData: EnumMetaData<any>, debugPath: string) {\n        let foundEnumInstance = Object.keys(metaData.type).some((key) => {\n            let enumCtor: any = metaData.type;\n            return value === enumCtor[key];\n        });\n\n        if(!foundEnumInstance){\n            throw new Error(\"Enum instance not found on enum of type\" + metaData.qualifiedName +  \" [\" + debugPath + \"]\");\n        }\n    }\n\n    private validateValue(value: any, metaData: ValueMetaData<any>, debugPath: string) {\n        metaData.properties.forEach((p) => {\n\n            let propertyDebugPath = debugPath + \".\" + p.name;\n            let propertyValue = value[p.name];\n\n            this.validate(propertyValue, propertyDebugPath);\n\n            if (propertyValue == null && !p.nullable) {\n                throw new Error(\"Property \" + p.name + \" of \" + metaData.name + \" not nullable but was null [\" + propertyDebugPath + \"]\");\n            }\n\n            if (p instanceof PropertyMetaData) {\n                this.validateTypedProperty(propertyValue, p, metaData, propertyDebugPath);\n            }\n\n            if (p instanceof ArrayPropertyMetaData) {\n                this.validateArrayProperty(propertyValue, p, metaData, propertyDebugPath);\n            }\n        })\n    }\n\n    private validateTypedProperty(propertyValue: any, propertyMetaData: PropertyMetaData, metaData: ValueMetaData<any>, debugPath: string): void {\n        const matchesSome = propertyMetaData.elementTypes.some(elementType => this.isValueOfType(propertyValue, elementType));\n        if (!matchesSome) {\n            const expectedTypes = propertyMetaData.elementTypes.map((e) => e.name).join(\",\");\n            const message = `Property '${propertyMetaData.name}' of ${metaData.name} should be one of types ${expectedTypes} but was of type ${propertyValue.constructor.name} [${debugPath}]`;\n            throw new Error(message);\n        }\n    }\n\n    public isValueOfType(value: any, type: Function) {\n        return (isNull(value)\n            || ((type === Number) && isNumber(value))\n            || ((type === Boolean) && isBoolean(value))\n            || ((type === String) && isString(value))\n            || (assertIsFunction(type) && (value instanceof type))\n        );\n    }\n\n    private validateArrayProperty(propertyValue: any, propertyMetaData: ArrayPropertyMetaData, metaData: ValueMetaData<any>, debugPath: string): void {\n        if (isArray(propertyValue)) {\n            throw new Error(\"Property \" + propertyMetaData.name + \" of \" + metaData.name + \" should be an array but was of type \" + typeof propertyValue + \" [\" + debugPath + \"]\");\n        }\n\n        (propertyValue as Array<any>).forEach((element, index) => {\n            let matchesSome;\n            try {\n                matchesSome = propertyMetaData.elementTypes.some((elementType) => this.isValueOfType(element, elementType));\n            } catch (e) {\n                const message = `Error while determining type of Element with index ${index} of property ${propertyMetaData.name} of ${metaData.name}. ${e.message} [${debugPath}[${index}]]`;\n                throw new Error(message)\n            }\n            if (!matchesSome) {\n                const expectedTypes = propertyMetaData.elementTypes.map((e) => e.name).join(\",\");\n                const message = `Element with index ${index} of property ${propertyMetaData.name} of ${metaData.name} should be one of types ${expectedTypes} but was of type ${element.constructor.name} [${debugPath}[${index}]]`;\n                throw new Error(message);\n            }\n        });\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/src/main/typescript/valuemetadata/service/value-validation-service.ts","module.exports = require(\"axios\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"axios\"","module.exports = require(\"core-js/es7/reflect\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"core-js/es7/reflect\"","module.exports = require(\"lodash/find\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/find\"","module.exports = require(\"lodash/isArray\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isArray\"","module.exports = require(\"lodash/isBoolean\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isBoolean\"","module.exports = require(\"lodash/isFunction\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isFunction\"","module.exports = require(\"lodash/isNull\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isNull\"","module.exports = require(\"lodash/isNumber\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isNumber\"","module.exports = require(\"lodash/isObject\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isObject\"","module.exports = require(\"lodash/isObjectLike\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isObjectLike\"","module.exports = require(\"lodash/isPlainObject\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isPlainObject\"","module.exports = require(\"lodash/isString\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isString\"","module.exports = require(\"lodash/isUndefined\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/isUndefined\"","module.exports = require(\"lodash/map\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"lodash/map\"","module.exports = require(\"reflect-metadata\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_generic_datatypes/external \"reflect-metadata\"","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"_shop_js_infrastructure_ng4_comp\"] = factory();\n\telse\n\t\troot[\"_shop_js_infrastructure_ng4_comp\"] = factory();\n})(window, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/webpack/bootstrap","export * from \"./tracking-context.component\";\nexport * from \"./tracking-id.component\";\nexport * from \"./tracking-attributes\";\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/index.ts","export * from \"./tracking-attributes.directive\";\nexport * from \"./tracking-product-line.enum\";\nexport * from \"./tracking-product-lines.directive\";\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/index.ts","import {Directive, OnDestroy, OnInit, Optional} from \"@angular/core\";\nimport {TrackingAttributesService} from \"../../services/tracking-attributes/tracking-attributes.service\";\nimport {TrackingProductLinesDirective} from \"./tracking-product-lines.directive\";\nimport {Observable} from \"rxjs/Observable\";\nimport {Subscription} from \"rxjs/Subscription\";\nimport {CsiAppComponent} from \"@shop/js-infrastructure-ng4-csi\";\n\n@Directive({\n    selector: '[trackingAttributesCsi]'\n})\nexport class TrackingAttributesCsiDirective implements OnInit, OnDestroy {\n\n\n    private _subscription: Subscription;\n\n    constructor(private readonly trackingAttributesService: TrackingAttributesService,\n                @Optional() private readonly  enclosingTrackingProductLines: TrackingProductLinesDirective,\n                private readonly csiAppComponent: CsiAppComponent) {\n    }\n\n\n    ngOnDestroy(): void {\n        this._subscription && this._subscription.unsubscribe();\n    }\n\n\n    ngOnInit(): void {\n        // if there is a enclosing TrackingProductLines Directive use this to obtain the tracking product line ...\n        // if not use the service -- the service listen for events from outside the csi that set up a product line ...\n        const productLineSource: { productLineString$: Observable<string> } = this.enclosingTrackingProductLines || this.trackingAttributesService;\n\n        this._subscription = productLineSource.productLineString$.subscribe((value) => {\n            this.csiAppComponent.send({\n                type: TrackingAttributesService.MESSAGE_TYPE,\n                value\n            })\n        });\n    }\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/tracking-attributes-csi.directive.ts","import {\n    AfterViewInit,\n    Directive,\n    ElementRef, HostListener,\n    Input,\n    OnChanges,\n    OnDestroy,\n    Optional,\n    Renderer2,\n    SimpleChanges\n} from \"@angular/core\";\nimport { TrackingAttributesService } from \"../../services/tracking-attributes/tracking-attributes.service\";\nimport { TrackingProductLinesDirective } from \"./tracking-product-lines.directive\";\nimport { Observable } from \"rxjs/Observable\";\nimport { Subscription } from \"rxjs/Subscription\";\n\nconst TRACKING_ACTION_KEY: string = \"data-tracking-action\";\nconst TRACKING_DESCRIPTION_KEY: string = \"data-tracking-description\";\n\nconst VALID_TRACKING_ACTION_VALUES: string[] = ['button', 'accordion', 'link', 'radiobutton', 'checkbox', 'close', 'tab', 'form', 'selectionfield'];\n\nconst DEBUG_STYLE = \"background: #AB47BC; color: white; border-radius: 2px;\";\n\n@Directive({\n    selector: '[trackingAttributes]'\n})\nexport class TrackingAttributesDirective implements OnChanges, AfterViewInit, OnDestroy {\n\n    @Input() trackingAttributesElementId: string;\n    @Input() trackingAttributesAction: string;\n\n    private productLineString: string;\n    private _subscription: Subscription;\n\n    constructor(private trackingAttributesService: TrackingAttributesService,\n        @Optional() private enclosingTrackingProductLines: TrackingProductLinesDirective,\n        private el: ElementRef,\n        private renderer: Renderer2) {\n    }\n\n    @HostListener('mouseenter')\n    onMouseEnter() {\n        if (this.trackingAttributesService.isDebuggingEnabled()) {\n            console.log(`%c TRACKING-DEBUG: %c action: ${this.getAction()} | description: ${this.getDescription()}`, DEBUG_STYLE, \"\");\n        }\n    }\n\n\n    ngOnChanges(changes: SimpleChanges): void {\n        this.renderAttributes();\n    }\n\n\n    ngOnDestroy(): void {\n        this._subscription && this._subscription.unsubscribe();\n    }\n\n    private renderAttributes(): void {\n        this.renderTrackingDescription();\n        this.renderTrackingAction();\n    }\n\n    private renderTrackingAction(): void {\n        const action = this.getAction();\n\n        if (!action) {\n            console.error(\"Can't render tracking-action invalid action!\", {\n                action,\n                element: this.el\n            })\n        }\n        this.renderer.setAttribute(this.el.nativeElement, TRACKING_ACTION_KEY, action);\n    }\n\n    private getAction() {\n        const action = ~VALID_TRACKING_ACTION_VALUES.indexOf(this.trackingAttributesAction)\n            ? this.trackingAttributesAction\n            : null;\n        return action;\n    }\n\n    private renderTrackingDescription(): void {\n        const description = this.getDescription();\n\n        if (this.trackingAttributesService.isDebuggingEnabled()) {\n            this.renderer.setStyle(this.el.nativeElement, \"border\", \"3px solid #AB47BC\");\n        }\n\n        if (!description) {\n            this.renderer.removeAttribute(this.el.nativeElement, TRACKING_DESCRIPTION_KEY);\n        } else {\n            this.renderer.setAttribute(this.el.nativeElement, TRACKING_DESCRIPTION_KEY, description);\n        }\n\n    }\n\n    private getDescription() {\n        const application = this.trackingAttributesService.getApplication();\n        const pageArea = this.trackingAttributesService.getPageArea();\n        const productLineString = this.productLineString;\n        const trackingAttributesElementId = this.trackingAttributesElementId;\n\n        const description = application && pageArea && productLineString && trackingAttributesElementId\n            ? `${application}_${productLineString}_${pageArea}_${trackingAttributesElementId}`\n            : null;\n        return description;\n    }\n\n    ngAfterViewInit(): void {\n\n        // if there is a enclosing TrackingProductLines Directive use this to obtain the tracking product line ...\n        // if not use the service -- the service listen for events from outside the csi that set up a product line ...\n        const productLineSource: { productLineString$: Observable<string> } = this.enclosingTrackingProductLines || this.trackingAttributesService;\n\n        this._subscription = productLineSource.productLineString$.subscribe((value) => {\n            this.productLineString = value;\n            this.renderAttributes();\n        });\n        this.renderAttributes();\n    }\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/tracking-attributes.directive.ts","import {AbstractEnum} from \"@shop/js-infrastructure-generic-datatypes\"\n\nexport class TrackingProductLine extends AbstractEnum {\n    public static readonly SIM_ONLY = new TrackingProductLine('simOnly');\n    public static readonly HARDWARE_ONLY = new TrackingProductLine('hardwareOnly');\n    public static readonly BUNDLE = new TrackingProductLine('bundle');\n    public static readonly DSL = new TrackingProductLine('dsl');\n    public static readonly GADGETS = new TrackingProductLine('gadgets');\n\n    private constructor(public readonly trackingValue: string) {\n        super();\n    }\n\n\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/tracking-product-line.enum.ts","import { Directive, Input, OnChanges, OnDestroy, SimpleChanges } from \"@angular/core\";\nimport { ReplaySubject } from \"rxjs/ReplaySubject\";\nimport { TrackingProductLine } from \"./tracking-product-line.enum\";\nimport * as _ from \"lodash\";\nimport \"rxjs/operators\";\nimport {Observable} from \"rxjs\";\n\n@Directive({\n    selector: '[trackingProductLines]'\n})\nexport class TrackingProductLinesDirective implements OnChanges, OnDestroy {\n\n    @Input()\n    trackingProductLines: TrackingProductLine | string | TrackingProductLine[] | string[];\n\n    private readonly _productLineString$ = new ReplaySubject<string>(1);\n    public readonly productLineString$: Observable<string> = this._productLineString$\n        .asObservable();\n\n    ngOnChanges(changes: SimpleChanges): void {\n        this._productLineString$.next(this.buildProductLineString());\n    }\n\n    private buildProductLineString(): string {\n        const value = this.trackingProductLines;\n\n        if (!value) {\n            return null;\n        }\n\n        // first normalize the array / single element part\n        let array = _.isArray(value) ? value : [value];\n\n        // than normalize the element types ...\n        // supported are strings with the value of the enum instance names for use in templates or\n        // the enum instances for use in typescript code like controllers.\n        let arrayOfEnum = array.map((element) => {\n            if (element instanceof TrackingProductLine) {\n                // nothing to do ...\n                return element;\n            }\n            if (_.isString(element)) {\n                // try parse the the string ...\n                let trackingProductLine = TrackingProductLine.forName(element);\n                if (!trackingProductLine) {\n                    throw new Error('\"' + element + \"' is not a valid product line!\");\n                }\n                return trackingProductLine;\n            }\n            throw new Error(\"Unsupported value type \" + typeof element);\n        });\n\n        let arrayOfString = arrayOfEnum.map((e) => e.trackingValue);\n        return arrayOfString.sort().join(\",\")\n    }\n\n    ngOnDestroy(): void {\n        this._productLineString$.complete();\n    }\n\n\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-attributes/tracking-product-lines.directive.ts","import {Directive, Input, OnInit, Optional, SkipSelf} from '@angular/core';\n\n@Directive({selector: '[trackingContext]'})\nexport class TrackingContextComponent {\n\n    @Input() trackingContext: string;\n\n    constructor(@Optional() @SkipSelf() private context: TrackingContextComponent) {\n    }\n\n    get generateTrackingContext(): string {\n        if (this.context === null) {\n            return this.trackingContext;\n        }\n        return this.context.generateTrackingContext + \".\" + this.trackingContext;\n    }\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-context.component.ts","import {Directive, ElementRef, Input, OnInit, Optional, Renderer2, SkipSelf} from '@angular/core';\nimport {TrackingContextComponent} from \"./tracking-context.component\";\n\n@Directive({selector: '[trackingId]'})\nexport class TrackingIdComponent implements OnInit {\n\n    @Input() trackingId: string;\n\n    constructor(@Optional() @SkipSelf() private context: TrackingContextComponent,\n                private element: ElementRef,\n                private renderer: Renderer2) {\n    }\n\n    ngOnInit() {\n        if (this.context === null) {\n            this.renderContext(this.trackingId);\n        } else {\n            let trackingText = this.context.generateTrackingContext + \".\" + this.trackingId;\n            this.renderContext(trackingText);\n        }\n    }\n\n    private renderContext(contextText: string) {\n        this.renderer.setAttribute(this.element.nativeElement, \"data-tracking\", contextText)\n\n    }\n\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/components/tracking-id.component.ts","import \"reflect-metadata\"; //this must be imported before zone.js ... otherwise the ng will not boot\nimport 'zone.js';\nimport 'core-js/es7/reflect';\nimport '@angular/platform-browser-dynamic';\nimport \"rxjs/Rx\"\n\nexport * from \"./components\";\nexport * from \"./services\";\nexport * from \"./tracking-attributes.module\";\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/index.ts","export * from \"./tracking-attributes\";\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/services/index.ts","export * from \"./tracking-attributes.service\";\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/services/tracking-attributes/index.ts","\nimport {Inject} from \"@angular/core\";\nimport {ReplaySubject} from \"rxjs/ReplaySubject\";\nimport * as _ from \"lodash\";\nimport {DOCUMENT} from \"@angular/common\";\nimport {CsiChannelService} from \"@shop/js-infrastructure-ng4-csi\";\n\n// The Typescript compiler (2.6.2) don't generate a require for the import\n// if we only use this type in the metadata declaration (eg. the constructor argument) ...\n// .. so we give the compiler a other type usage for this imported class...\n{\n    let ignoreMe = CsiChannelService;\n}\n\nexport class TrackingAttributesService {\n    static readonly MESSAGE_TYPE = 'tracking-product-lines';\n    private readonly unsubscribeCallback: () => void;\n    public readonly productLineString$ = new ReplaySubject<string>(1);\n\n    constructor(private readonly channelService: CsiChannelService,\n                @Inject(DOCUMENT) private readonly document: Document) {\n\n        this.unsubscribeCallback = this.channelService.subscribe((message: any) => {\n            if (message.type === TrackingAttributesService.MESSAGE_TYPE) {\n                const productLineString = message['value'];\n                if(!(_.isString(productLineString) && productLineString)){\n                    console.error(\"Invalid productLineString!\", {message});\n                } else {\n                    this.productLineString$.next(productLineString);\n                }\n            }\n        })\n    }\n\n\n    getApplication(): string {\n        return \"e-shop\";\n    }\n\n\n    getPageArea(): string {\n        const metaElementContent = this.getMetaElementContent('pagearea');\n        if (!metaElementContent) {\n            console.error(`Unable to find required meta element content with name \"pagearea\".`)\n        }\n        return metaElementContent;\n    }\n\n    private getMetaElementContent(name: string) {\n        let metaElement = this.document.querySelector(`meta[name=${name}]`);\n\n        let content = metaElement && (<any>metaElement)['content'];\n\n        return content;\n    }\n\n    isDebuggingEnabled(): boolean {\n        let metaElementContent: any = this.getMetaElementContent('commerce_debug_modes');\n        return metaElementContent && metaElementContent.indexOf('tracking') !== -1;\n    }\n\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/services/tracking-attributes/tracking-attributes.service.ts","import {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\nimport {TrackingAttributesService} from \"./services/tracking-attributes/tracking-attributes.service\";\nimport {CsiModule} from \"@shop/js-infrastructure-ng4-csi\";\nimport {TrackingAttributesDirective} from \"./components/tracking-attributes/tracking-attributes.directive\";\nimport {TrackingProductLinesDirective} from \"./components/tracking-attributes/tracking-product-lines.directive\";\nimport {TrackingAttributesCsiDirective} from \"./components/tracking-attributes/tracking-attributes-csi.directive\";\n\n@NgModule({\n    imports: [CommonModule, CsiModule],\n    providers: [TrackingAttributesService],\n    declarations: [\n        TrackingAttributesDirective,\n        TrackingProductLinesDirective,\n        TrackingAttributesCsiDirective\n    ],\n    exports: [\n        TrackingAttributesDirective,\n        TrackingProductLinesDirective,\n        TrackingAttributesCsiDirective\n    ]\n})\nexport class TrackingAttributesModule{\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/src/main/typescript/tracking-attributes.module.ts","module.exports = require(\"@angular/common\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"@angular/common\"","module.exports = require(\"@angular/core\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"@angular/core\"","module.exports = require(\"@angular/platform-browser-dynamic\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"@angular/platform-browser-dynamic\"","module.exports = require(\"@shop/js-infrastructure-generic-datatypes\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"@shop/js-infrastructure-generic-datatypes\"","module.exports = require(\"@shop/js-infrastructure-ng4-csi\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"@shop/js-infrastructure-ng4-csi\"","module.exports = require(\"core-js/es7/reflect\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"core-js/es7/reflect\"","module.exports = require(\"lodash\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"lodash\"","module.exports = require(\"reflect-metadata\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"reflect-metadata\"","module.exports = require(\"rxjs/ReplaySubject\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"rxjs/ReplaySubject\"","module.exports = require(\"rxjs/Rx\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"rxjs/Rx\"","module.exports = require(\"rxjs/operators\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"rxjs/operators\"","module.exports = require(\"zone.js\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_comp/external \"zone.js\"","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"_shop_js_infrastructure_ng4_csi\"] = factory();\n\telse\n\t\troot[\"_shop_js_infrastructure_ng4_csi\"] = factory();\n})(window, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/webpack/bootstrap","import {ApplicationRef, Provider, Type, NgModule} from \"@angular/core\";\nimport {getCsiBootstrapContext} from \"./csi-bootstrap\";\n\n\n/**\n * Base class for the application module of an angular 4 esi application\n *\n * You need to override the appComponentType property in the sub class and provide the proper type\n * of the Component to be bootstrapped.\n */\nexport abstract class AbstractCsiAppModule {\n    protected abstract readonly appComponentType: Type<any>;\n\n    ngDoBootstrap(app: ApplicationRef) {\n        app.bootstrap(this.appComponentType, getCsiBootstrapContext().element);\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/abstract-csi-app.module.ts","import {AfterViewChecked, Component, ElementRef, EventEmitter, Input, NgZone, Output} from \"@angular/core\";\nimport {CsiApp, CsiConfig, CsiMessage, CsiWebpackModule} from '@shop/js-infrastructure-generic-csi';\nimport {Observable} from \"rxjs/Rx\";\nimport {ReplaySubject} from \"rxjs/ReplaySubject\";\n\n@Component({\n    selector: \"csi-app\",\n    template: `\n        <ng-content *ngIf=\"!isWebpackModuleAvailable\"></ng-content>\n    `\n})\nexport class CsiAppComponent implements AfterViewChecked {\n\n    private afterInit = false;\n\n    @Input()\n    moduleName: string;\n\n    @Input()\n    config: CsiConfig;\n\n    @Output()\n    outboundMessage: EventEmitter<CsiMessage> = new EventEmitter();\n\n    @Input()\n    inboundMessage$: Observable<CsiMessage>;\n\n    private readonly _csiLoaded$: ReplaySubject<boolean> = new ReplaySubject<boolean>(1);\n    public readonly csiLoaded$ = this._csiLoaded$.asObservable();\n\n    private queuedMessages: CsiMessage[] = [];\n\n    private csiApp: CsiApp;\n\n    //handle to the unsubscribe method of the Csi communication channel\n    private channelUnsubscribe: () => void;\n\n    constructor(private zone: NgZone, private element: ElementRef) {\n    }\n\n    get isWebpackModuleAvailable() {\n        return !!this.getWebpackModule()\n    }\n\n    private getWebpackModule(): CsiWebpackModule {\n        return (window as any)[this.moduleName];\n    }\n\n    public send(message: CsiMessage): void {\n        if(this.csiApp){\n            this.csiApp.channel.send(message);\n        }else{\n            this.queuedMessages.push(message);\n        }\n    }\n\n    ngAfterViewChecked(): void {\n        if (!this.afterInit && this.isWebpackModuleAvailable) {\n            this.afterInit = true;\n\n            this.zone.runOutsideAngular(async () => {\n                this.csiApp = await this.getWebpackModule().bootstrap(this.element.nativeElement, this.config);\n                this.channelUnsubscribe = this.csiApp.channel.subscribe(message => this.outboundMessage.next(message));\n\n                // flush the queued messages ...\n                this.queuedMessages.forEach(message => this.csiApp.channel.send(message));\n                this.queuedMessages = null;\n\n                if (this.inboundMessage$) {\n                    this.inboundMessage$.subscribe(message => {\n                            this.csiApp.channel.send(message);\n                        }\n                    );\n                }\n                this._csiLoaded$.next(true);\n                this._csiLoaded$.complete()\n            });\n        }\n    }\n\n    destroy() {\n        if (this.channelUnsubscribe) {\n            this.channelUnsubscribe();\n        }\n        if (this.csiApp) {\n            this.csiApp.destroy();\n        }\n    }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/components/csiApp.component.ts","export * from \"./csiApp.component\";\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/components/index.ts","import {platformBrowserDynamic} from \"@angular/platform-browser-dynamic\";\nimport {NgModuleRef, Type} from \"@angular/core\";\nimport {CsiBootstrapFunction, CsiConfig} from '@shop/js-infrastructure-generic-csi';\nimport {CsiChannelService} from \"./csi-channel.service\";\nimport {AbstractCsiAppModule} from \"./abstract-csi-app.module\";\n\nlet bootstrapContext: CsiNg4BootstrapContext;\n\nexport class CsiNg4BootstrapContext {\n    constructor(public readonly element: any,\n                public readonly csiConfig: CsiConfig) {\n    }\n}\n\nfunction setCsiBootstrapContext(config: CsiNg4BootstrapContext) {\n    bootstrapContext = config;\n}\n\nexport function getCsiBootstrapContext() {\n    if (!bootstrapContext) {\n        throw new Error('no bootstrapContext defined. Did you forget to call setCsiBootstrapContext?');\n    }\n    return bootstrapContext;\n}\n\n/**\n * This method creates the bootstrap function in order to instantiate the passed angular 4 module type and\n * export it as an esi.\n *\n * @param {Type<M>} moduleType\n * @return {CsiBootstrapFunction}\n */\nexport function createCsiBootstrapForNg4Module<M extends AbstractCsiAppModule>(moduleType: Type<M>): CsiBootstrapFunction {\n    return (element: any, csiConfig: CsiConfig) => {\n        setCsiBootstrapContext(new CsiNg4BootstrapContext(element, csiConfig));\n        const promise: Promise<NgModuleRef<M>> = platformBrowserDynamic().bootstrapModule(moduleType);\n\n        return promise.then((module: NgModuleRef<M>) => {\n            return {\n                channel: module.injector.get(CsiChannelService).getExternalCsiChannel(),\n                destroy: () => module.destroy(),\n                nativeHandle: module,\n                frameworkHint: 'ng4'\n            };\n        });\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/csi-bootstrap.ts","import {CsiChannel, CsiMessage, CsiMessageListener} from '@shop/js-infrastructure-generic-csi';\nimport {EventEmitter, Injectable, NgZone} from \"@angular/core\";\n\nexport type UnsubscribeFunction = () => void;\n\n/**\n * This service is used to send and receive messages to the CsiChannel.\n */\n@Injectable()\nexport class CsiChannelService /* we don't implement here CsiChannel because this service implements the other side */{\n\n    /**\n     * This emitter is used to send a message from the host application to the csi application\n     */\n    private sendToInternalEmitter: EventEmitter<CsiMessage> = new EventEmitter<CsiMessage>();\n\n    /**\n     * This emitter is used to send a message from the csi application to the host application\n     */\n    private sendToExternalEmitter: EventEmitter<CsiMessage> = new EventEmitter<CsiMessage>();\n\n    constructor(private zone: NgZone) {\n    }\n\n    send(message: CsiMessage): void {\n        this.sendToExternalEmitter.emit(message);\n    }\n\n    subscribe(fn: CsiMessageListener): UnsubscribeFunction {\n        const subscription = this.sendToInternalEmitter.subscribe(fn);\n        return () => {\n            subscription.unsubscribe();\n        }\n    }\n\n    /**\n     * @returns {CsiChannel} that should be used from outside the csi to send message to the csi and receive messages from the csi.\n     */\n    getExternalCsiChannel(): CsiChannel {\n        return {\n            send: (message: CsiMessage) => {\n                //we need to wrap the emit call in a zone run in order to make change detection work\n                //i really don't understand why this is necessary, but even calling detectChanges() on the changedetector of the\n                //component does not update the templates  properly ...\n                this.zone.run(() => {\n                    this.sendToInternalEmitter.emit(message);\n                });\n            },\n\n            subscribe: (fn: CsiMessageListener) => {\n                const subscription = this.sendToExternalEmitter.subscribe((message: CsiMessage) => {\n                    this.zone.runOutsideAngular(() => {\n                        fn(message);\n                    })\n                });\n                return () => {\n                    subscription.unsubscribe();\n                }\n            }\n        }\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/csi-channel.service.ts","/**\n * This module must be imported to provide the services for the csi infrastructure\n *\n */\nimport {CsiAppComponent} from \"./components/csiApp.component\";\nimport {CsiChannelService} from \"./csi-channel.service\";\nimport {NgModule} from \"@angular/core\";\nimport {CommonModule} from \"@angular/common\";\n\n@NgModule({\n    imports: [CommonModule],\n    providers: [CsiChannelService],\n    declarations: [\n        CsiAppComponent\n    ],\n    exports: [\n        CsiAppComponent\n    ]\n})\nexport class CsiModule{\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/csi.module.ts","export * from \"./csi-channel.service\";\nexport * from \"./csi-bootstrap\";\nexport * from \"./abstract-csi-app.module\";\nexport * from \"./csi.module\";\nexport * from \"./components\";\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/src/main/typescript/index.ts","module.exports = require(\"@angular/common\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/external \"@angular/common\"","module.exports = require(\"@angular/core\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/external \"@angular/core\"","module.exports = require(\"@angular/platform-browser-dynamic\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/external \"@angular/platform-browser-dynamic\"","module.exports = require(\"rxjs/ReplaySubject\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/external \"rxjs/ReplaySubject\"","module.exports = require(\"rxjs/Rx\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_csi/external \"rxjs/Rx\"","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"_shop_js_infrastructure_ng4_store_csi\"] = factory();\n\telse\n\t\troot[\"_shop_js_infrastructure_ng4_store_csi\"] = factory();\n})(window, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/webpack/bootstrap","import * as _ from \"lodash\";\nimport {AbstractBaseAction} from \"@shop/js-infrastructure-ng4-store\";\nimport {Type} from \"@shop/js-infrastructure-generic-datatypes\";\n\n\nlet inboundActionRegistry: ActionTypeForMessageType = {};\nconst OUTBOUND_MESSAGE_TYPE_SYMBOL = Symbol(\"js-infrastructure-ng4-store-csi/outboundMessageTypeSymbol\");\n\nexport type ActionTypeForMessageType = { [messageType: string]: Type<AbstractBaseAction> }\n\n\nfunction checkTarget(target: Function, decoratorName: string) {\n    if (!AbstractBaseAction.isPrototypeOf(target)) {\n        throw new Error(`@${decoratorName} must be applied to subclass of AbstractBaseAction!`);\n    }\n}\n\nfunction checkMessageType(messageType: string) {\n    if (!messageType) {\n        throw new Error(\"parameter 'messageType' must be defined!\")\n    }\n}\n\n\nexport function findAllCsiInboundActions(): ActionTypeForMessageType {\n    // defensive copy\n    return _.extend({}, inboundActionRegistry);\n}\n\n\nexport function getOutboundMessageTypeForAction(action: AbstractBaseAction): string | null {\n    return (action.constructor as any)[OUTBOUND_MESSAGE_TYPE_SYMBOL] || null\n}\n\nexport function CsiInboundAction(messageType: string): ClassDecorator {\n    checkMessageType(messageType);\n    return <TFunction extends Function>(target: TFunction) => {\n        checkTarget(target, \"CsiInboundAction\");\n\n        if (inboundActionRegistry[messageType]) {\n            throw new Error(`Action ${inboundActionRegistry[messageType].name} already registered for messageType '${messageType}'`);\n        }\n\n        inboundActionRegistry[messageType] = target;\n\n    };\n}\n\nexport function CsiOutboundAction(messageType: string): ClassDecorator {\n    checkMessageType(messageType);\n    return <TFunction extends Function>(target: TFunction) => {\n        checkTarget(target, \"CsiOutboundAction\");\n        (target as any)[OUTBOUND_MESSAGE_TYPE_SYMBOL] = messageType;\n\n    };\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/src/main/typescript/csi-actions.ts","import {Actions} from \"@ngrx/effects\";\nimport {Dispatcher} from \"@ngrx/store\";\nimport {APP_INITIALIZER, Injectable, Provider} from \"@angular/core\";\nimport {findAllCsiInboundActions, getOutboundMessageTypeForAction} from \"./csi-actions\";\nimport * as _ from \"lodash\";\nimport {CsiChannelService} from \"@shop/js-infrastructure-ng4-csi\";\nimport {CsiMessage} from \"@shop/js-infrastructure-generic-csi\";\nimport {Type} from \"@shop/js-infrastructure-generic-datatypes\";\nimport {AbstractBaseAction} from \"@shop/js-infrastructure-ng4-store\";\n\n@Injectable()\nexport class CsiStoreService {\n\n    public static provider(): Provider {\n        return [\n            CsiStoreService,\n            {provide: APP_INITIALIZER, useFactory: () => (): any => null, deps: [CsiStoreService], multi: true}\n        ];\n    }\n\n    constructor(private readonly actions: Actions,\n                private readonly dispatcher: Dispatcher,\n                private readonly channel: CsiChannelService) {\n\n        let inboundActionTypesForMessageType = findAllCsiInboundActions();\n\n        this.actions.subscribe(action => {\n            let messageType = getOutboundMessageTypeForAction(action);\n\n            if (messageType) {\n                let message: CsiMessage = _.extend(\n                    {},\n                    action,\n                    // do this at the end, actions contain a although a \"type\" property\n                    {type: messageType}\n                );\n                this.channel.send(message);\n                return;\n            }\n        });\n\n\n        this.channel.subscribe((message: CsiMessage) => {\n            let actionType: Type<AbstractBaseAction> = inboundActionTypesForMessageType[message.type];\n            if (actionType) {\n                let actionInstance = Object.create(actionType.prototype);\n                actionType.call(actionInstance, message);\n                this.dispatcher.next(actionInstance);\n            }\n        });\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/src/main/typescript/csi-store.service.ts","export * from \"./csi-actions\";\nexport * from \"./csi-store.service\";\nexport * from \"./store-csi.module\";\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/src/main/typescript/index.ts","import {CsiStoreService} from \"./csi-store.service\";\nimport {NgModule} from \"@angular/core\";\n\n@NgModule({\n    providers: [\n       CsiStoreService.provider()\n    ]\n})\nexport class StoreCsiModule {}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/src/main/typescript/store-csi.module.ts","module.exports = require(\"@angular/core\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/external \"@angular/core\"","module.exports = require(\"@ngrx/effects\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/external \"@ngrx/effects\"","module.exports = require(\"@ngrx/store\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/external \"@ngrx/store\"","module.exports = require(\"@shop/js-infrastructure-ng4-csi\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/external \"@shop/js-infrastructure-ng4-csi\"","module.exports = require(\"@shop/js-infrastructure-ng4-store\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/external \"@shop/js-infrastructure-ng4-store\"","module.exports = require(\"lodash\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store_csi/external \"lodash\"","(function webpackUniversalModuleDefinition(root, factory) {\n\tif(typeof exports === 'object' && typeof module === 'object')\n\t\tmodule.exports = factory();\n\telse if(typeof define === 'function' && define.amd)\n\t\tdefine([], factory);\n\telse if(typeof exports === 'object')\n\t\texports[\"_shop_js_infrastructure_ng4_store\"] = factory();\n\telse\n\t\troot[\"_shop_js_infrastructure_ng4_store\"] = factory();\n})(window, function() {\nreturn \n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/webpack/universalModuleDefinition"," \t// The module cache\n \tvar installedModules = {};\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"\";\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/webpack/bootstrap","import {AbstractBaseAction} from \"../store/abstract-base.action\";\n\nexport abstract class AbstractInfrastructureAction extends AbstractBaseAction{\n\n    private static NAMESPACE = \"infrastructure\";\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/base/abstract-infrastructure-action.ts","export * from \"./abstract-infrastructure-action\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/base/index.ts","import {AbstractBaseAction} from \"../store/abstract-base.action\";\nimport {Provider, Type} from \"@angular/core\";\nimport {ICallPayloadInterceptor} from \"./call-payload-interceptor.interface\";\nimport {LoadCallAction} from \"./actions/load-call.action\";\n\nexport abstract class AbstractCallPayloadInterceptor implements ICallPayloadInterceptor{\n\n    static provider(this: Type<AbstractCallPayloadInterceptor>) : Provider[]{\n        return [\n            this,\n            {provide: ICallPayloadInterceptor, useExisting: this, multi: true}\n        ];\n    }\n\n    abstract intercept(payload: any, action: LoadCallAction<any>): AbstractBaseAction | null;\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/abstract-call-payload-interceptor.ts","import {AbstractInfrastructureAction} from \"../../base/abstract-infrastructure-action\";\nimport {Call} from \"@shop/js-infrastructure-generic-datatypes\";\n\nexport class LoadCallHttpErrorAction extends AbstractInfrastructureAction{\n\n    constructor(public readonly call: Call<any>,\n                public readonly error: Error){\n        super();\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/actions/load-call-http-error.action.ts","import {LoadCallAction} from \"./load-call.action\";\nimport {AbstractInfrastructureAction} from \"../../base/abstract-infrastructure-action\";\n\nexport class LoadCallResultValidationErrorAction extends AbstractInfrastructureAction {\n    constructor(public readonly message: string,\n                public readonly payload: any,\n                public readonly callAction: LoadCallAction<any>) {\n        super();\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/actions/load-call-result-validation-error.action.ts","import {AbstractBaseAction} from \"../../store/abstract-base.action\";\nimport {LoadCallAction} from \"./load-call.action\";\nimport {AbstractInfrastructureAction} from \"../../base/abstract-infrastructure-action\";\n\nexport class LoadCallSuccessAction<T> extends AbstractInfrastructureAction {\n\n    constructor(public readonly payload: T,\n                public readonly initalLoadAction: LoadCallAction<any>,\n                public readonly successActionCreator: (payload?: T) => AbstractBaseAction = null,\n                public readonly causingAction: LoadCallAction<any> = null) {\n        super();\n    }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/actions/load-call-success.action.ts","import {AbstractBaseAction} from \"../../store/abstract-base.action\";\nimport * as _ from \"lodash\";\nimport {AbstractInfrastructureAction} from \"../../base/abstract-infrastructure-action\";\nimport {Call, Type} from \"@shop/js-infrastructure-generic-datatypes\";\n\n/**\n * This action is used to trigger the resolution of a call. This will in the most cases trigger a ajax interaction.\n * If the call has been processed and the response was successful the #successActionCreator is triggered with the\n * response payload if any.\n *\n * It is possible to chain calls so that one call will return another call that is resolved and\n * so on, every LoadCallAction that is spawned in this way will carry the causing action with it in #causingAction.\n *\n * The #resultTypeDescriptor is used to check the returned payload after parsing it to json and mapping it with the\n * IMappingService.\n */\nexport class LoadCallAction<T> extends AbstractInfrastructureAction {\n\n    /**\n     * @template T\n     * @param {Call<T>} call\n     * @param {PayloadTypeDescriptor<T>} resultTypeDescriptor a description of the expected payload\n     * @param {(payload) => AbstractBaseAction} successActionCreator this call back is used to create a action that is\n     * used to transport the payload into the store or into a sideeffect.\n     * @param {LoadCallAction<*>} causingAction if null this is the initial call that was triggered.\n     */\n    constructor(public readonly call: Call<T>,\n                public readonly resultTypeDescriptor: PayloadTypeDescriptor<T>,\n                public readonly successActionCreator: (payload?: T) => AbstractBaseAction = null,\n                public readonly causingAction: LoadCallAction<any> = null) {\n        super();\n    }\n\n    get initialAction(): LoadCallAction<T> {\n        if (this.causingAction) {\n            return this.causingAction.initialAction;\n        }\n        return this;\n    }\n}\n\n/**\n * This class is used to express that the payload is an array.\n * The only field in this class is an array of types, every array element must be instance of one of this types.\n */\nexport class PayloadArrayTypeDescriptor<T> {\n\n    public readonly types: Type<T>[];\n\n    /**\n     * @template T\n     * @param {Type<T>[] | Type<T>} types, here you can pass a type or an array of types.\n     */\n    constructor(types: Type<T>[] | Type<T>) {\n        if (_.isArray(types)) {\n            this.types = types;\n        } else if (_.isFunction(types)) {\n            this.types = [types];\n        } else {\n            throw new Error(\"Only arrays and constructor functions are supported but got \" + typeof types);\n        }\n\n    }\n}\n\n/**\n * Description of the expected payload\n */\nexport type PayloadTypeDescriptor<T> =\n    // a value of some kind ...\n    PayloadTypeDescriptorWithValue<T>\n    // return nothing\n    | \"void\"\n\nexport type PayloadTypeDescriptorWithValue<T> =\n    // return a payload that is instance of this type\n    Type<T>\n    // return a payload that is a instance of one this types\n    | Type<T>[]\n    // return a payload that is a array\n    // ... the type of the array elements are specified in the constructor\n    | PayloadArrayTypeDescriptor<T>\n    // this value will trigger no validation of the payload  ...\n    | \"unchecked\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/actions/load-call.action.ts","import {AbstractBaseAction} from \"../store/abstract-base.action\";\nimport {LoadCallAction} from \"./actions/load-call.action\";\n\n\nexport interface ICallPayloadInterceptor {\n     intercept(payload: any, loadCallAction: LoadCallAction<any>): AbstractBaseAction | null;\n}\n\nexport class ICallPayloadInterceptor{\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/call-payload-interceptor.interface.ts","import {AbstractBaseAction} from \"../store/abstract-base.action\";\nimport {Call, NewableType} from \"@shop/js-infrastructure-generic-datatypes\";\n/**\n * This interface is used to abstract a call to the server on a higher level than the $http service.\n */\nexport interface ICallService {\n    doCall<T>(call:Call<T>, payloadType: NewableType<T>, onPayloadActionCreator: (payload: T) => AbstractBaseAction ): void\n}\n\nexport class ICallService {\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/call.service.interface.ts","import { Observable } from \"rxjs/Observable\";\nimport { ICallPayloadInterceptor } from \"./call-payload-interceptor.interface\";\nimport { ICallService } from \"./call.service.interface\";\nimport { ILogger, ILoggerService } from \"../logging/logger.service.interface\";\nimport { IMappingService } from \"../mapping/mapping.service.interface\";\nimport {\n    APP_INITIALIZER,\n    Inject,\n    Injectable,\n    Optional,\n    Provider\n} from \"@angular/core\";\nimport { Http, Response } from \"@angular/http\";\nimport { Dispatcher } from \"@ngrx/store\";\nimport \"rxjs/Rx\";\nimport { Actions } from \"@ngrx/effects\";\nimport { AbstractBaseAction } from \"../store/abstract-base.action\";\nimport {\n    LoadCallAction,\n    PayloadArrayTypeDescriptor\n} from \"./actions/load-call.action\";\nimport { ValueValidationService } from \"../validation/value-validation.service\";\nimport { LoadCallResultValidationErrorAction } from \"./actions/load-call-result-validation-error.action\";\nimport { LoadCallSuccessAction } from \"./actions/load-call-success.action\";\nimport { LoadCallHttpErrorAction } from \"./actions/load-call-http-error.action\";\nimport * as _ from \"lodash\";\nimport { HeaderInterceptor } from \"./interceptors/header-interceptor\";\nimport { Meta } from \"@angular/platform-browser\";\nimport {\n    AbstractHttpCall,\n    Call,\n    ConstantCall,\n    DeleteCall,\n    GetCall,\n    NewableType,\n    PostCall\n} from \"@shop/js-infrastructure-generic-datatypes/target/dist\";\n\n@Injectable()\nexport class CallService implements ICallService {\n    public static provider(): Provider[] {\n        return [\n            { provide: ICallService, useClass: CallService },\n            // use here a initializer to register the call service eager ...\n            {\n                provide: APP_INITIALIZER,\n                useFactory: () => () => {},\n                multi: true,\n                deps: [ICallService]\n            }\n        ];\n    }\n\n    private readonly logger: ILogger;\n    private readonly payloadInterceptors: ICallPayloadInterceptor[];\n\n    constructor(\n        private readonly metaService: Meta,\n        private readonly http: Http,\n        @Inject(IMappingService)\n        private readonly mappingService: IMappingService,\n        private readonly valueValidationService: ValueValidationService,\n        @Inject(ILoggerService) loggerService: ILoggerService,\n        private readonly dispatcher: Dispatcher,\n        private readonly actions: Actions,\n        @Inject(ICallPayloadInterceptor)\n        @Optional()\n        payloadInterceptors: ICallPayloadInterceptor[],\n        @Inject(HeaderInterceptor)\n        private readonly headerInterceptor: HeaderInterceptor\n    ) {\n        this.logger = loggerService.create(\"commerce.common.MappingService\");\n        this.payloadInterceptors = payloadInterceptors || [];\n\n        this.actions\n            .switchMap(LoadCallAction.streamOfThisAction())\n            .subscribe(action => this.resolveCallImpl(action));\n\n        this.actions\n            .switchMap(LoadCallSuccessAction.streamOfThisAction())\n            .subscribe(action =>\n                this.handlePayload(action.payload, action.causingAction)\n            );\n    }\n\n    doCall<T>(\n        call: Call<T>,\n        payloadType: NewableType<T>,\n        onPayloadActionCreator: (payload: any) => AbstractBaseAction\n    ): void {\n        this.dispatcher.dispatch(\n            new LoadCallAction<T>(call, onPayloadActionCreator, null)\n        );\n    }\n\n    resolveCallImpl<T>(action: LoadCallAction<any>): void {\n        let observable: Observable<any>;\n        if (action.call instanceof ConstantCall) {\n            observable = this.handleConstantCall(action.call);\n        } else if (action.call instanceof AbstractHttpCall) {\n            observable = this.handleHttpCall(action.call);\n        } else {\n            throw new Error(\"Unresolvable call type: \" + action.call);\n        }\n\n        observable.subscribe((payload: any) => {\n            this.dispatcher.dispatch(\n                new LoadCallSuccessAction(\n                    payload,\n                    action.initialAction,\n                    action.successActionCreator,\n                    action\n                )\n            );\n        });\n    }\n\n    private validatePayload(\n        payload: any,\n        action: LoadCallAction<any>\n    ): boolean {\n        let payloadType = action.resultTypeDescriptor;\n\n        if (payloadType === \"void\" || payloadType === \"unchecked\") {\n            return true;\n        }\n\n        try {\n            this.valueValidationService.validate(payload, \"<payload>\");\n        } catch (e) {\n            this.validationError(e.message, payload, action);\n            return false;\n        }\n\n        if (_.isFunction(payloadType)) {\n            if (\n                !this.valueValidationService.isValueOfType(payload, payloadType)\n            ) {\n                this.validationError(\n                    \"payload not instance of expected type\",\n                    payload,\n                    action\n                );\n                return false;\n            }\n        }\n\n        if (_.isArray(payloadType)) {\n            if (\n                !payloadType.some(type =>\n                    this.valueValidationService.isValueOfType(payload, type)\n                )\n            ) {\n                this.validationError(\n                    \"payload not instance of expected type\",\n                    payload,\n                    action\n                );\n                return false;\n            }\n        }\n\n        if (payloadType instanceof PayloadArrayTypeDescriptor) {\n            if (!_.isArray(payload)) {\n                this.validationError(\"payload not an array\", payload, action);\n                return false;\n            }\n\n            let elementTypes = (<PayloadArrayTypeDescriptor<any>>payloadType)\n                .types;\n            if (\n                !(<any[]>payload).every(element =>\n                    elementTypes.some(type =>\n                        this.assertPayloadType(payload, type)\n                    )\n                )\n            ) {\n                this.validationError(\n                    \"payload element not instance of expected type\",\n                    payload,\n                    action\n                );\n                return false;\n            }\n        }\n\n        return true;\n    }\n\n    private assertPayloadType(payload: any, type: Function): boolean {\n        return this.valueValidationService.isValueOfType(payload, type);\n    }\n\n    private validationError(\n        message: string,\n        payload: any,\n        action: LoadCallAction<any>\n    ) {\n        this.dispatcher.dispatch(\n            new LoadCallResultValidationErrorAction(message, payload, action)\n        );\n        this.logger.error(\"Call returned invalid payload!\", {\n            message,\n            action,\n            payload\n        });\n    }\n\n    private handlePayload<T>(\n        payload: T,\n        loadCallAction: LoadCallAction<any>\n    ): void {\n        if (this.interceptPayload(payload, loadCallAction)) {\n            return;\n        }\n\n        if (!this.validatePayload(payload, loadCallAction)) {\n            return;\n        }\n\n        // only invoke action creator if the payload is valid ...\n        if (loadCallAction.successActionCreator) {\n            this.handleDefaultPayload(loadCallAction, payload);\n        }\n    }\n\n    private handleDefaultPayload(\n        loadCallAction: LoadCallAction<any>,\n        payload: any\n    ) {\n        let successAction = loadCallAction.successActionCreator(payload);\n        this.dispatcher.dispatch(successAction);\n    }\n\n    private interceptPayload(\n        payload: any,\n        loadCallAction: LoadCallAction<any>\n    ): boolean {\n        return this.payloadInterceptors.some(interceptor => {\n            let interceptionAction = interceptor.intercept(\n                payload,\n                loadCallAction\n            );\n            if (interceptionAction) {\n                this.logger.debug(\"payload interception\", {\n                    payload,\n                    loadCallAction,\n                    interceptor,\n                    interceptionAction\n                });\n                this.dispatcher.dispatch(interceptionAction);\n                return true;\n            }\n            return false;\n        });\n    }\n\n    /**\n     * In case of a constant call as it's payload will be returned as a promise.\n     */\n    private handleConstantCall<T>(\n        constantCall: ConstantCall<T>\n    ): Observable<any> {\n        return Observable.from([constantCall.constantPayload]);\n    }\n\n    private handleHttpCall<T>(call: AbstractHttpCall<T>): Observable<any> {\n        let method;\n        let body;\n        if (call instanceof PostCall) {\n            let jsonData = this.mappingService.toJson(call.data);\n            body = JSON.stringify(jsonData);\n            method = \"POST\";\n        } else if (call instanceof GetCall) {\n            method = \"GET\";\n        } else if (call instanceof DeleteCall) {\n            method = \"DELETE\";\n        } else {\n            throw new Error(\"Unknown Method of call: \" + call);\n        }\n\n        let headers = this.headerInterceptor.headers(call);\n\n        let result = this.http.request(call.link.uri, {\n            method: method,\n            body: body,\n            withCredentials: this.isSendRequestWithCredentials(),\n            headers: headers\n        });\n\n        return result\n            .catch((err, caught) => this.handleHttpError(call, err))\n            .map((response: Response) => {\n                // use here the response to decide if we want to parse it to json or if the response contains no body ...\n                // we check later before triggering the action creator if this is expected or not ...\n                // otherwise recursive calls will not work (calls that return calls that return calls ...)\n                if (response.text().length > 0) {\n                    return this.mappingService.fromJson(response.json());\n                } else {\n                    return null;\n                }\n            });\n    }\n\n    // ugly workaround to fix CORS issues in DEV environments, but only there!\n    private isSendRequestWithCredentials(): boolean {\n        let metaElement: HTMLMetaElement = this.metaService.getTag(\n            \"name=corsEnabled\"\n        );\n        if (metaElement !== null) {\n            return metaElement.content === \"true\";\n        }\n    }\n\n    private handleHttpError(\n        call: AbstractHttpCall<any>,\n        err: any\n    ): Observable<any> {\n        this.dispatcher.dispatch(new LoadCallHttpErrorAction(call, err));\n        return Observable.throw(err);\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/call.service.ts","export * from \"./actions/load-call.action\"\nexport * from \"./actions/load-call-http-error.action\"\nexport * from \"./actions/load-call-result-validation-error.action\"\nexport * from \"./actions/load-call-success.action\"\n\nexport * from \"./interceptors/navigation.action\"\nexport * from \"./interceptors/navigation-event-call-payload-interceptor\"\nexport * from \"./interceptors/recursive-call-payload-interceptor\"\n\nexport * from \"./abstract-call-payload-interceptor\"\nexport * from \"./call.service\"\nexport * from \"./call-payload-interceptor.interface\"\nexport * from \"./call.service.interface\"\n\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/index.ts","import {Inject, Injectable} from \"@angular/core\";\nimport {IFlowIdService} from \"../../flowid/flow-id.service.interface\";\nimport {MockSettingsService} from \"../../mock/mock-settings.service\";\nimport {Headers} from \"@angular/http\";\nimport {AbstractHttpCall} from \"@shop/js-infrastructure-generic-datatypes\";\n\n@Injectable()\nexport class HeaderInterceptor {\n\n    constructor(@Inject(IFlowIdService) private readonly flowIdService: IFlowIdService,\n                @Inject(MockSettingsService) private readonly mockSettingsService: MockSettingsService) {\n    }\n\n    headers<T>(call: AbstractHttpCall<T>): Headers {\n\n        let headers = new Headers();\n        if (call.link.mediaType !== null) {\n            headers.set('Content-Type', call.link.mediaType);\n        }\n\n        let flowId = this.flowIdService.flowId;\n        if (flowId) {\n            headers.set('flowId', flowId);\n        }\n\n        let mockSettings = this.mockSettingsService.mockSettingsString;\n        if (mockSettings) {\n            headers.set('X-MOCK', mockSettings);\n        }\n\n        return headers;\n\n    }\n\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/interceptors/header-interceptor.ts","import {Actions} from \"@ngrx/effects\";\nimport {AbstractCallPayloadInterceptor} from \"../abstract-call-payload-interceptor\";\nimport {AbstractBaseAction} from \"../../store/abstract-base.action\";\nimport \"rxjs/Rx\";\nimport {NavigationAction} from \"./navigation.action\";\nimport {Inject, Injectable} from \"@angular/core\";\nimport {DOCUMENT} from \"@angular/platform-browser\";\nimport {NavigationEvent} from \"@shop/js-infrastructure-generic-datatypes\";\n\n@Injectable()\nexport class NavigationEventCallPayloadInterceptor extends AbstractCallPayloadInterceptor {\n\n    constructor(actions: Actions, @Inject(DOCUMENT) document: Document) {\n        super();\n        actions\n            .filter(NavigationAction.instanceFilter())\n            .subscribe(action => {\n                document.location.href = action.url;\n            });\n    }\n\n    intercept(payload: any): AbstractBaseAction | null {\n        if (payload instanceof NavigationEvent) {\n            return new NavigationAction(payload.link.uri);\n        }\n        return null;\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/interceptors/navigation-event-call-payload-interceptor.ts","import {AbstractInfrastructureAction} from \"../../base/abstract-infrastructure-action\";\n\nexport class NavigationAction extends AbstractInfrastructureAction {\n\n    constructor(public readonly url: string) {\n        super()\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/interceptors/navigation.action.ts","import {AbstractCallPayloadInterceptor} from \"../abstract-call-payload-interceptor\";\nimport {AbstractBaseAction} from \"../../store/abstract-base.action\";\nimport \"rxjs/Rx\";\nimport {Injectable} from \"@angular/core\";\nimport {LoadCallAction} from \"../actions/load-call.action\";\nimport {Call} from \"@shop/js-infrastructure-generic-datatypes\";\n\n/**\n * The interceptor handles call objects that are returned in the payload.\n *\n * If a call object is returned, then this interceptor will return a LoadCallAction, so that the returned call is executed.\n * If no call is intercepted, then null is returned.\n *\n * @see{LoadCallAction}\n */\n@Injectable()\nexport class RecursiveCallPayloadInterceptor extends AbstractCallPayloadInterceptor {\n\n    constructor() {\n        super();\n    }\n\n    intercept(payload: any, action: LoadCallAction<any>): AbstractBaseAction | null {\n        if (payload instanceof Call) {\n            return new LoadCallAction(payload, action.resultTypeDescriptor, action.successActionCreator, action);\n        }\n        return null;\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/call/interceptors/recursive-call-payload-interceptor.ts","import {ChangeDetectionStrategy, Component, ElementRef, EventEmitter, OnInit, Output, ViewChild} from '@angular/core';\n\ndeclare var $: any; // TODO: OSD-2112 this declaration should be moved to js-infrastructure\n\n@Component({\n    selector: 'compendium-modal',\n    template: `\n        <div class=\"modal fade\" tabindex=\"-1\" role=\"dialog\" #modalElement>\n            <div class=\"modal-dialog modal-lg modal-has-header modal-has-footer modal-scrollable-bottom\" role=\"document\">\n                <div class=\"modal-content\">\n                    \n                    <div class=\"modal-header\">\n                        <button class=\"close\" type=\"button\" data-dismiss=\"modal\" aria-label=\"Close\"><span\n                                aria-hidden=\"true\">×</span></button>\n                        <h4 class=\"modal-title\">\n                            <ng-content select=\"[modal-header]\"></ng-content>\n                        </h4>\n                    </div>\n                    \n                    <div class=\"modal-body\">\n                        <ng-content></ng-content>\n                    </div>\n                    \n                    <div class=\"modal-footer\" [hidden]=\"hideFooter\" #modalFooter>\n                        <ng-content select=\"[modal-footer]\"></ng-content>\n                    </div>\n                </div>\n            </div>\n        </div>`,\n    changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CompendiumModalComponent implements OnInit {\n\n    // get a reference to the actual modal DOM node\n    @ViewChild('modalElement')\n    private modalElement: ElementRef;\n\n    private jQueryModalElement: any;\n\n    @ViewChild('modalFooter')\n    private modalFooter:ElementRef;\n\n    private hideFooter: boolean = false;\n\n    constructor() {\n    }\n\n    ngOnInit(): void {\n        // hide the footer if no content is supplied\n        this.hideFooter = !(this.modalFooter.nativeElement && this.modalFooter.nativeElement.children.length > 0);\n\n        // we need a jQuery element to call the .modal() method\n        this.jQueryModalElement = $(this.modalElement.nativeElement);\n\n        this.jQueryModalElement.modal('show');\n\n        // pressing ESC or clicking the \"x\" icon fires the 'hidden.bs.modal' event (Compendium code)\n        // we need to update our UI state when this event is fired\n        this.jQueryModalElement.on('hidden.bs.modal', () => {\n                this.modalClosed.emit();\n            }\n        );\n    }\n\n    @Output()\n    modalClosed: EventEmitter<void> = new EventEmitter();\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/components/compendium-modal.component.ts","import {ChangeDetectionStrategy, Component, Input} from '@angular/core';\nimport {Observable} from 'rxjs/Observable';\n\n@Component({\n    selector: 'compendium-price-display',\n    template: `        \n     <span class=\"price\" [ngClass]=\"classForAlignment\">\n         <span class=\"cond\" [innerHTML]=\"contentBefore$ | async\"></span>\n         <span class=\"sum\" [innerHTML]=\"(amount$ | async) | price:'integer'\"></span>\n         <span class=\"suffix\" [innerHTML]=\"(amount$ | async) | price:'decimal'\"></span>\n         <span class=\"currency\">€</span>\n         <span class=\"condAfter\" style=\"display: block;\" [innerHTML]=\"additionalContentAfter$ | async\"></span>\n         <span class=\"condAfter\" style=\"display: block;\" [innerHTML]=\"contentAfter$ | async\"></span>\n     </span>\n    `,\n    changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class CompendiumPriceDisplayComponent {\n\n    // content\n    @Input()\n    amount$: Observable<number>;\n\n    @Input()\n    contentBefore$: Observable<string>;\n\n    @Input()\n    contentAfter$: Observable<string>;\n\n    @Input()\n    additionalContentAfter$: Observable<string>;\n\n    @Input()\n    alignment: string;\n\n    get classForAlignment(): { [key: string]: boolean } {\n        return {\n            'price-left': this.alignment === 'left',\n            '': this.alignment === 'center' || this.alignment === undefined, // default alignment\n            'price-right': this.alignment === 'right'\n        }\n    }\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/components/compendium-price-display.component.ts","export * from \"./compendium-price-display.component\";\nexport * from \"./compendium-modal.component\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/components/index.ts","import {IChainReducer} from \"../store/chain-reducer.interface\";\nimport {AbstractRootStoreValue} from \"../store/abstract-root-store-value\";\nimport {AbstractBaseAction} from \"../store/abstract-base.action\";\n\nexport interface IExtensionChainReducer<A extends AbstractBaseAction, S extends AbstractRootStoreValue> extends IChainReducer<A,S>{\n}\n\nexport abstract class IExtensionChainReducer<A extends AbstractBaseAction, S extends AbstractRootStoreValue> extends IChainReducer<A,S>{\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/extension/extension-chain-reducer.interface.ts","import {IReducer} from \"../store/reducer.interface\";\nimport {AbstractRootStoreValue} from \"../store/abstract-root-store-value\";\nimport {AbstractBaseAction} from \"../store/abstract-base.action\";\nexport interface IExtensionReducer<A extends AbstractBaseAction, S extends AbstractRootStoreValue> extends IReducer<A,S>{\n}\n\nexport abstract class IExtensionReducer<A extends AbstractBaseAction, S extends AbstractRootStoreValue> extends IReducer<A,S>{\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/extension/extension-reducer.interface.ts","import {Store} from \"@ngrx/store\";\n\nexport interface IExtensionStore<T> extends Store<T>{\n\n}\nexport class IExtensionStore<T>{\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/extension/extension-store.interface.ts","export * from \"./extension-chain-reducer.interface\"\nexport * from \"./extension-reducer.interface\"\nexport * from \"./extension-store.interface\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/extension/index.ts","export interface IFlowIdService {\n    flowId: string\n}\n\nexport class IFlowIdService {\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/flowid/flow-id.service.interface.ts","import {IFlowIdService} from \"./flow-id.service.interface\";\nimport {Inject, Provider} from \"@angular/core\";\nimport {DOCUMENT} from \"@angular/common\";\n\nexport class FlowIdService implements IFlowIdService {\n\n    public readonly flowId: string;\n\n    constructor(@Inject(DOCUMENT) document: Document) {\n        let flowIdElement = document.querySelector(\"meta[name=flowId]\");\n        this.flowId = (flowIdElement) ? flowIdElement.getAttribute(\"content\") : null;\n    }\n\n    public static provider (): Provider[] {\n        return [{provide: IFlowIdService, useClass: FlowIdService}]\n    }\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/flowid/flow-id.service.ts","export * from \"./flow-id.service.interface\";\nexport * from \"./flow-id.service\";\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/flowid/index.ts","import \"rxjs/Rx\"\nexport * from \"./base\";\nexport * from \"./call\";\nexport * from \"./components\"\nexport * from \"./extension\";\nexport * from \"./flowid\";\nexport * from \"./logging\";\nexport * from \"./mapping\"\nexport * from \"./mock\"\nexport * from \"./pagevalue\";\nexport * from \"./pipes\";\nexport * from \"./store\";\nexport * from \"./tracking\";\nexport * from \"./validation\";\nexport * from \"./valuemetadata\";\nexport * from \"./shop-application.module\";\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/index.ts","'use strict';\n\nimport * as _ from \"lodash\";\nimport {ILogger, ILoggerService} from \"./logger.service.interface\";\n\ntype LogConfig = {[key: string]: string|number}\n\n// private stuff ...\nvar utils = {\n    /**\n     * Function to access local storage if available defined here to be accessible by the log package.\n     * @return {null | Storage} The local storage or null if no local storage is available.\n     */\n    getLocalStorage: (): any|null => {\n        if (typeof(Storage) !== 'undefined') {\n            try {\n                if (window.localStorage) {\n                    window.localStorage.setItem('test', 'test');\n                    window.localStorage.removeItem('test');\n                    return window.localStorage;\n                }\n            } catch (e) {\n            }\n        }\n        return null;\n    },\n\n    /**\n     * Creates a regular expression that match a simple string pattern that contains '*' for any string.\n     * The string can only contain word characters and '.'.\n     * @return {RegExp}\n     */\n    regExpFromSimplePattern: (patternString: string): RegExp => {\n        // argsContract(arguments, 'str');\n        if (!/^[\\w.:/*]*$/.test(patternString)) {\n            throw new Error(\"Failed compiling '\" + patternString + \"' illegal character found!\");\n        }\n        return new RegExp(patternString.replace(/\\./g, '\\\\.').replace(/\\*/g, '.*'));\n    }\n};\n\nexport function createLoggerService() {\n    'use strict';\n    var LEVELS = {\n        OFF: 40,\n        ERROR: 30,\n        WARN: 20,\n        INFO: 10,\n        DEBUG: 0\n    };\n\n    var DEFAULT_CONFIG = {\n        '*': LEVELS.ERROR,\n        'commerce.log.*': LEVELS.INFO\n    };\n\n    /**\n     * The Logger used to log system events in the log package,\n     * it is initialised as noop object and will will be replaced\n     * after the base log infrastructure is initialized.\n     *\n     * @type {{error: Function, warn: Function, info: Function, debug: Function}} a logger instance.\n     */\n    var logLogger: ILogger = {\n        name: 'logLogger',\n        error: function (subject: string, context?: {}) {\n        },\n        warn: function (subject: string, context?: {}) {\n        },\n        info: function (subject: string, context?: {}) {\n        },\n        debug: function (subject: string, context?: {}) {\n        },\n        sub: function (name: string) {\n            return null;\n        }\n    };\n\n    var logFunctionFactory = function (levelName: string) {\n        if (typeof(window['console']) === 'undefined') {\n            return function () {\n            };\n        }\n        var consoleFunction = (window as any)['console'][levelName.toLowerCase()];\n\n        if (!_.isFunction(consoleFunction)) {\n            return function () {\n                consoleFunction = window['console']['log'];\n            };\n        }\n        return function () {\n            consoleFunction.apply(window['console'], arguments);\n        };\n    };\n\n    /**\n     * currently set config\n     * The key should be a pattern string with '*' as wildcard\n     * The value is a number or string of the required level.\n     */\n    var currentConfig = {};\n\n    /**\n     * Compiled config rules\n     * @type {Array<CompiledRule>}\n     *\n     */\n    var currentCompiledConfig: any[] = [];\n\n    class CompiledRule{\n        constructor(public regexp: RegExp, public level: number, public pattern: string) {}\n    }\n\n    /**\n     * This function tries to create an error level from a number or a string.\n     * @param {string|number} level A errror level representated as a number or as a error level name,\n     * the case does not matter.\n     * @return {number}\n     */\n    function interpreteLevel(level: string | number): number {\n        if (typeof level === 'string') {\n            return (LEVELS as any)[level.toUpperCase().trim()] || LEVELS.DEBUG;\n        }\n        if (typeof level === 'number') {\n            return level;\n        }\n        logLogger.warn('Failed to interprete level!', {level: level});\n        return LEVELS.DEBUG;\n    }\n\n    /**\n     * This function compiles a config object by creating RegExp objects from the string keys\n     * and tries to interprete the value as an error level.\n     *\n     * @param {{}} config The key must be a string, the value could be a string or a number.\n     */\n    function compileConfig(config: LogConfig): CompiledRule[] {\n        var pattern;\n\n        var compiledConfig = [];\n        for (pattern in config) {\n            if (config.hasOwnProperty(pattern)) {\n                // escape '.' in pattern and replace stars with '.*' for regexp processing\n                var regexp = utils.regExpFromSimplePattern(pattern);\n                compiledConfig.push(new CompiledRule(regexp, interpreteLevel(config[pattern]), pattern));\n            }\n        }\n\n        // sort rules so that the longest rules are applied first\n        return compiledConfig.sort(function (obj1, obj2) {\n            return obj2.pattern.length - obj1.pattern.length;\n        });\n    }\n\n    /**\n     * This function compiles and loads an config object.\n     * @param {{}} config\n     */\n    function loadLogConfig(config: LogConfig) {\n        try {\n            currentCompiledConfig = compileConfig(config);\n            currentConfig = config;\n        } catch (e) {\n            logLogger.error('Failed compiling config!', {config: config, exception: e});\n        }\n    }\n\n    /**\n     * This function stores the config in local storage and set it as current config.\n     * @param {{}} config\n     */\n    function setLogConfig(config: any) {\n        var localStorage = utils.getLocalStorage();\n        if (localStorage !== null) {\n            logLogger.info('writing config to local storage', {config: config});\n            localStorage['logConfig'] = JSON.stringify(config);\n        } else {\n            logLogger.warn('Can not set log config, no local storage supported!', undefined);\n        }\n        loadLogConfig(config);\n    }\n\n    /**\n     * This function retrieve the current config from local storage.\n     */\n    function getLogConfig():LogConfig  {\n        var currentLogSettings = DEFAULT_CONFIG;\n        var localStorage = utils.getLocalStorage();\n        if (localStorage) {\n            var configString = localStorage['logConfig'];\n            if (configString) {\n                try {\n                    currentLogSettings = JSON.parse(configString);\n                } catch (e) {\n                    logLogger.error(\n                        'Failed reading config from local storage!',\n                        {string: configString, exception: e}\n                    );\n                }\n            }\n        }\n        return currentLogSettings;\n    }\n\n    /**\n     * This function adds a new rule to the current log config.\n     * @param {string} loggerNamePart A pattern to filter the logger name, with '*' as wildcard character.\n     * @param {string|number} level The log level that should be applied to the matched logger,\n     * can be the log level name or the log level number.\n     */\n    function addLogConfig(loggerNamePart: string, level: string|number) {\n        var config = getLogConfig();\n        config[loggerNamePart] = level;\n        setLogConfig(config);\n    }\n\n    /**\n     * This function reset the log config to the default value.\n     */\n    function resetLogConfig() {\n        setLogConfig(DEFAULT_CONFIG);\n        logLogger.info('config reset', undefined);\n    }\n\n    /**\n     * This function extracts the value of the jsLogConfig parameter from an url string.\n     * @param {string} url that should be parsed.\n     * @return {string} the value of the url parameter.\n     */\n    function getLogConfigStringFromUrl(url: string) {\n        var regexp = new RegExp('[?&]jsLogConfig=([\\'\"a-zA-Z0-9._:,*]+)');\n        var match = regexp.exec(url);\n        return (match && match[1]) || '';\n    }\n\n    /**\n     * This function parses an string to an object which keys and values are strings.\n     * Each entry is separated by an ',' and key and value is separated by ':'\n     *\n     * @param {string} configString a string in the format \"key:value,key1:value2\"\n     * that should be parsed to an object.\n     *\n     * @return {{}}\n     */\n    function parseConfigString(configString: string) {\n        var rules = configString.split(',');\n        var config:LogConfig = {};\n        var i;\n        for (i = 0; i < rules.length; i += 1) {\n            var rule = rules[i];\n            var tokens = rule.split(':');\n            if (tokens.length === 2) {\n                config[tokens[0]] = tokens[1];\n            }\n        }\n        return config;\n    }\n\n    /**\n     * Reads the current url of the browser and searches for the query parameter\n     * 'jsLogConfig' and constructs a log config from its value.\n     * This config is stored in the local storage to survives a page reload.\n     */\n    function setupLogConfigFromUrl() {\n        var url = window.location.href;\n\n        // find the url parameter value in a basic way without help of a lib\n        var configString = getLogConfigStringFromUrl(url);\n        if (configString.length !== 0) {\n            if (configString === 'reset') {\n                resetLogConfig();\n            } else {\n                var config = parseConfigString(configString);\n                logLogger.info('found config in page url', {config: config});\n                setLogConfig(config);\n            }\n        } else {\n            loadLogConfig(getLogConfig());\n        }\n    }\n\n    /**\n     * simple utilitiy function to create a readable string representation of a integer log level.\n     * @param {number} level the log level.\n     * @return {string} the string representation.\n     */\n    function levelToString(level: number) {\n        var levelName;\n\n        for (levelName in LEVELS) {\n            if (LEVELS.hasOwnProperty(levelName) && level === (LEVELS as any)[levelName]) {\n                return levelName;\n            }\n        }\n        return 'UNKNOWN';\n    }\n\n    /**\n     * This function determines if a message should be suppressed according to the log config.\n     *\n     * @param {string} loggerName of the message.\n     * @param {number} level the log level of the message.\n     * @return {boolean} if true the message should not be processed.\n     */\n    function isMessageSuppressed(loggerName: string, level: number) {\n        var i,\n            configRule;\n\n        for (i = 0; i < currentCompiledConfig.length; i += 1) {\n            configRule = currentCompiledConfig[i];\n            if (configRule.regexp.exec(loggerName)) {\n                return configRule.level > level;\n            }\n        }\n        return false;\n    }\n\n\n    /**\n     * This function implements the actual logging to the Console object.\n     *\n     * @param {string} loggerName the logical name of a logger, this should correspond to the namespace\n     *                    of the object that logs the message.\n     * @param {number} level the log level of the message.\n     * values that should be logged with the message.\n     * @return {function(*)} returns a functions that supports variable arguments that are all logged.\n     */\n    function createLogFunction(loggerName: string, level: number) {\n\n        var levelName = levelToString(level);\n        var evt = '[';\n        evt += levelName;\n        evt += '][';\n        evt += loggerName;\n        evt += ']';\n\n\n        return function () {\n            if (isMessageSuppressed(loggerName, level)) {\n                return;\n            }\n            var array = [];\n            array.push(evt);\n            for (var i = 0; i < arguments.length; i += 1) {\n                var arg = arguments[i];\n                array.push(arg);\n            }\n            logFunctionFactory(levelName).apply(null, array);\n        };\n    }\n\n    /**\n     * Function that creates a new logger object for the supplied loggerName.\n     * a object that contains a function for each log level.\n     */\n    function createLogObject(loggerName: string): ILogger {\n        var levelName,\n            logger = {};\n\n        for (levelName in LEVELS) {\n            if (LEVELS.hasOwnProperty(levelName) && levelName !== 'OFF') {\n                (logger as any)[levelName.toLowerCase()] = createLogFunction(loggerName, (LEVELS as any)[levelName]);\n            }\n        }\n        (logger as any)['name'] = loggerName;\n        (logger as any)['sub'] = function (subName: string) {\n            return createLogObject(loggerName + \"/\" + subName);\n        };\n        return <ILogger>logger;\n    }\n\n    function setupLogFunctionFactory(f: any) {\n        if (typeof(f) !== 'function') {\n            throw new TypeError('LogFunctionFactory must be a Function');\n        }\n        logFunctionFactory = f;\n    }\n\n    // create a logger instance for the usage in the log package\n    logLogger = createLogObject('commerce.common.log');\n\n    setupLogConfigFromUrl();\n\n\n    // publish api\n    var logService: ILoggerService = {\n        create: createLogObject,\n        DEBUG: LEVELS.DEBUG,\n        INFO: LEVELS.INFO,\n        WARN: LEVELS.WARN,\n        ERROR: LEVELS.ERROR,\n        config: {\n            'set': setLogConfig,\n            'get': getLogConfig,\n            'add': addLogConfig,\n            'reset': resetLogConfig,\n            'fromUrl': setupLogConfigFromUrl\n        }\n    };\n    return logService;\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/logging/create-logger-service.function.ts","export * from \"./create-logger-service.function\"\nexport * from \"./logger.service.interface\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/logging/index.ts","\n// exported members ....\nexport interface ILogger {\n    name: string\n    error(subject: string, context?: {}): void;\n    warn(subject: string, context?: {}): void;\n    info(subject: string, context?: {}): void;\n    debug(subject: string, context?: {}): void;\n    sub(name: string): ILogger\n}\n\nexport interface ILoggerService {\n    DEBUG: number;\n    INFO: number;\n    WARN: number;\n    ERROR: number;\n    create(name: string): ILogger\n    config: ILoggerConfigService\n}\n\nexport class ILoggerService {\n}\n\nexport interface ILoggerConfigService {\n    set(config: {}): void\n    get(): {}\n    add(name: string, level: number): void\n    reset(): void\n    fromUrl(url: string): void\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/logging/logger.service.interface.ts","import { Provider, Type } from \"@angular/core\";\nimport { ICustomType } from \"@shop/js-infrastructure-generic-datatypes\";\nexport abstract class AbstractCustomType<T> implements ICustomType<T> {\n    static provider(this: Type<any>): Provider[] {\n        return [this, { provide: ICustomType, useExisting: this, multi: true }];\n    }\n\n    abstract typeName: string;\n\n    abstract isType(obj: any): boolean;\n\n    abstract fromJson(json: any): T;\n\n    abstract toJson(obj: T): any;\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/abstract-custom-type.ts","import {AbstractCustomType} from \"../abstract-custom-type\";\nimport * as _ from \"lodash\";\n\nexport class DateCustomType extends AbstractCustomType<Date>{\n\n    typeName: string = \"common:Date\";\n\n    isType(obj: any): boolean {\n        return _.isDate(obj)\n    }\n\n    fromJson(json: any): Date {\n        return new Date(json.date)\n    }\n\n    toJson(date: Date) {\n        var year = date.getFullYear();\n        var month = date.getMonth() + 1;\n        var day = date.getDate();\n        return {date: year + \"-\" + (month < 10 ? \"0\" : \"\") + month + \"-\" + (day < 10 ? \"0\" : \"\") + day}\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/customtypes/date-custom-type.ts","export * from \"./customtypes/date-custom-type\";\nexport * from \"./abstract-custom-type\";\nexport * from \"./mapping.service.interface\";\n// export * from \"./MappingService\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/index.ts","\n\n/**\n * This service is used to map between value classes in javascript and javascript objects that are deserialized from\n * JSON. Any type that should be serialized or deserialized must be registered first by the provider via a call to\n * {@link #addAnnotatedType} or {@link #addCustomType}.\n */\nexport interface IMappingService {\n\n\n\n    /**\n     * This function takes a javascript object graph that is returned form json deserialization and creates\n     * a new typed object graph based on the registered types.\n     */\n    fromJson(json:any):any;\n\n    /**\n     * This function takes a typed object graph based on the registered types and returns a javascript object graph\n     * that can be serialized to json.\n     */\n    toJson(value:any):any;\n}\n\n\n\nexport class IMappingService{}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/mapping.service.interface.ts","import { IMappingService } from \"./mapping.service.interface\";\nimport { ILogger, ILoggerService } from \"../logging/logger.service.interface\";\n\nimport * as _ from \"lodash\";\nimport { Inject, Injectable } from \"@angular/core\";\nimport { ValueMetaDataService } from \"../valuemetadata/value-meta-data.service\";\nimport {\n    AbstractTypeMetaData,\n    EnumMetaData,\n    PropertyMetaData,\n    ValueMetaData,\n    ICustomType\n} from \"@shop/js-infrastructure-generic-datatypes\";\n\n/**\n * This service maps between untyped objects that are created from json to TypeScript classes.\n * To use this service the ts class and type safe enums must define a static field of type MetaInfo.\n * Every class that should be mapped must be registered via the addType method.\n */\n@Injectable()\nexport class MappingService implements IMappingService {\n    /**\n     * this string is used to add and extract type information to and from the json graph.\n     */\n    private static TYPE_INFO_PROPERTY = \"@type\";\n\n    /**\n     * this string is the property name that is used to place or extract the name of a enum constant.\n     */\n    private static ENUM_NAME_PROPERTY = \"name\";\n\n    private logger: ILogger;\n\n    private metaDatasForName: {\n        [qualifiedTypeName: string]: AbstractTypeMetaData<any>;\n    } = {};\n    private customTypes: { [qualifiedTypeName: string]: ICustomType<any> } = {};\n\n    private readonly valueMetaDataService: ValueMetaDataService;\n\n    constructor(\n        @Inject(ILoggerService) loggerService: ILoggerService,\n        @Inject(ValueMetaDataService)\n        valueMetaDataService: ValueMetaDataService,\n        @Inject(ICustomType) customTypes: ICustomType<any>[]\n    ) {\n        this.valueMetaDataService = valueMetaDataService;\n        this.logger = loggerService.create(\"commerce.common.MappingService\");\n        this.customTypes = customTypes.reduce(\n            (map, customType) => ({\n                ...map,\n                [customType.typeName]: customType\n            }),\n            {}\n        );\n        this.metaDatasForName = valueMetaDataService.getMetaDatas().reduce(\n            (map, metaData) => ({\n                ...map,\n                [metaData.qualifiedName]: metaData\n            }),\n            {}\n        );\n    }\n\n    fromJson(json: any): any {\n        return this.fromJsonImpl(json, new Context(\"<root>\"));\n    }\n\n    private fromJsonImpl(json: any, context: Context): any {\n        if (_.isUndefined(json)) {\n            this.reportError('Encountered \"undefined\" value!', context, {\n                json: json\n            });\n        }\n        if (json === null) {\n            return null;\n        }\n\n        if (_.isArray(json)) {\n            return _.map(json, (value: any, index: number) =>\n                this.fromJsonImpl(value, context.index(index))\n            );\n        }\n\n        if (_.isObject(json)) {\n            let qualifiedTypeName: string =\n                json[MappingService.TYPE_INFO_PROPERTY];\n\n            if (!qualifiedTypeName) {\n                // okay used as simple value object ... no type information ...\n                let result: any = {};\n                Object.keys(json).forEach(\n                    (key: string) =>\n                        (result[key] = this.fromJsonImpl(\n                            json[key],\n                            context.index(key)\n                        ))\n                );\n                return result;\n            } else {\n                return this.fromTypedJson(json, qualifiedTypeName, context);\n            }\n        }\n\n        return json;\n    }\n\n    private fromTypedJson(\n        json: any,\n        qualifiedTypeName: string,\n        context: Context\n    ): any {\n        let metaData: AbstractTypeMetaData<any> = this.metaDatasForName[\n            qualifiedTypeName\n        ];\n        if (metaData) {\n            if (metaData instanceof EnumMetaData) {\n                return this.enumFromTypedJson(json, metaData, context);\n            } else if (metaData instanceof ValueMetaData) {\n                return this.valueFromTypedJson(json, metaData, context);\n            }\n            this.reportError(\"Unknown metaData type!\", context, {\n                typeInfo: qualifiedTypeName,\n                metaData: metaData,\n                json: json,\n                metaDatas: this.metaDatasForName\n            });\n        } else {\n            let customType: ICustomType<any> = this.customTypes[\n                qualifiedTypeName\n            ];\n            if (customType) {\n                return customType.fromJson(json);\n            }\n\n            this.reportError(\n                'Unknown qualifiedTypeName: \"' + qualifiedTypeName + '\"',\n                context,\n                {\n                    qualifiedTypeName: qualifiedTypeName,\n                    json: json,\n                    metaDatas: this.metaDatasForName,\n                    customTypes: this.customTypes\n                }\n            );\n        }\n    }\n\n    private valueFromTypedJson(\n        json: any,\n        metaData: ValueMetaData<any>,\n        context: Context\n    ) {\n        let properties: any = {};\n        metaData.properties.forEach((property: PropertyMetaData) => {\n            let value = this.fromJsonImpl(\n                json[property.name],\n                context.property(property.name)\n            );\n            properties[property.name] = value;\n        });\n\n        let result = Object.create(metaData.type.prototype);\n        Object.assign(result, properties);\n        return result;\n    }\n\n    private enumFromTypedJson(\n        json: any,\n        metaData: EnumMetaData<any>,\n        context: Context\n    ) {\n        var enumName = json[MappingService.ENUM_NAME_PROPERTY];\n        if (!enumName) {\n            this.reportError(\"Invalid json for enum!\", context, {\n                json: json,\n                metaData: metaData\n            });\n        }\n\n        var enumCtor: any = metaData.type;\n        var enumValue = enumCtor[enumName];\n        if (!enumValue) {\n            this.reportError(\n                'Invalid enum name! Did you forgot the \"static\" keyword?',\n                context,\n                {\n                    enumName: enumName,\n                    metaData: metaData\n                }\n            );\n        }\n        return enumValue;\n    }\n\n    private reportError(message: string, context: Context, args?: any) {\n        args = Object.assign({}, { path: context.path }, args);\n\n        this.logger.error(message, args);\n\n        let exceptionMessage = Object.keys(args).reduce(\n            (message: string, name: string) => {\n                return message + \" \" + (name + \"=\" + args[name] + \"; \");\n            },\n            message\n        );\n\n        throw new Error(exceptionMessage);\n    }\n\n    toJson(value: any): any {\n        return this.toJsonImpl(value, new Context(\"<root>\"));\n    }\n\n    toJsonImpl(value: any, context: Context): any {\n        if (_.isUndefined(value)) {\n            this.reportError(\"Encountered undefined value!\", context, {});\n        }\n        if (_.isNull(value)) {\n            return null;\n        }\n        if (_.isArray(value)) {\n            return _.map(value, (element: any, index: number) => {\n                return this.toJsonImpl(element, context.index(index));\n            });\n        }\n\n        let customType: ICustomType<any> = _.find(\n            this.customTypes,\n            (ct: ICustomType<any>) => ct.isType(value)\n        );\n        if (customType) {\n            let obj = customType.toJson(value);\n            obj[MappingService.TYPE_INFO_PROPERTY] = customType.typeName;\n            return obj;\n        }\n\n        if (_.isObject(value)) {\n            let metaData: AbstractTypeMetaData<any> =\n                value.constructor &&\n                this.valueMetaDataService.getMetaData(value.constructor);\n            if (metaData) {\n                if (metaData instanceof EnumMetaData) {\n                    return this.enumToJson(value, metaData, context);\n                } else if (metaData instanceof ValueMetaData) {\n                    return this.valueToJson(value, metaData, context);\n                } else {\n                    this.reportError(\"Unsupported meta data type!\", context, {\n                        metaData: metaData\n                    });\n                }\n            } else {\n                return this.objectToJson(value, context);\n            }\n        }\n\n        return value;\n    }\n\n    private valueToJson(\n        value: any,\n        metaData: ValueMetaData<any>,\n        context: Context\n    ): any {\n        let obj: any = {};\n        obj[MappingService.TYPE_INFO_PROPERTY] = metaData.qualifiedName;\n        metaData.properties.forEach((propertyMetaData: PropertyMetaData) => {\n            let key = propertyMetaData.name;\n            var propertyValue = value[key];\n            obj[key] = this.toJsonImpl(propertyValue, context.property(key));\n        });\n        return obj;\n    }\n\n    private enumToJson(\n        value: any,\n        metaData: EnumMetaData<any>,\n        context: Context\n    ): any {\n        let obj: any = {};\n        let enumValue = value[MappingService.ENUM_NAME_PROPERTY];\n        if (!enumValue) {\n            this.reportError(\n                'Failed building json from enum, \"' +\n                    MappingService.ENUM_NAME_PROPERTY +\n                    '\" is undefined or null!',\n                context,\n                {\n                    enumObject: value,\n                    metaData: metaData\n                }\n            );\n        }\n        obj[MappingService.TYPE_INFO_PROPERTY] = metaData.qualifiedName;\n        obj[MappingService.ENUM_NAME_PROPERTY] = enumValue;\n        return obj;\n    }\n\n    private objectToJson(value: Object, context: Context): any {\n        let obj: any = {};\n        Object.keys(value).forEach(\n            (key: string) =>\n                (obj[key] = this.toJsonImpl(value, context.index(key)))\n        );\n        return obj;\n    }\n}\n\nexport class Context {\n    constructor(public readonly path: string) {}\n\n    property(name: String): Context {\n        return new Context(this.path + \".\" + name);\n    }\n\n    index(index: number | string): Context {\n        return new Context(this.path + \"[\" + index + \"]\");\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mapping/mapping.service.ts","export * from \"./mock-settings.service\"\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mock/index.ts","import {DOCUMENT} from \"@angular/common\";\nimport {Inject} from \"@angular/core\";\n\nexport class MockSettingsService {\n\n    public readonly mockSettingsString: string;\n\n    constructor(@Inject(DOCUMENT) document: Document) {\n        let metaElement = document.querySelector(\"meta[name=mock]\");\n        this.mockSettingsString = (metaElement) ? metaElement.getAttribute(\"content\") : null;\n    }\n\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/mock/mock-settings.service.ts","export * from \"./page-value.action\"\nexport * from \"./page-value-loader\"\nexport * from \"./page-value.reducer\"\nexport * from \"./page-value-json-loader\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/index.ts","import {Inject, Injectable} from \"@angular/core\";\nimport {DOCUMENT} from \"@angular/platform-browser\";\n\n@Injectable()\nexport class PageValueJsonLoader {\n    private doc:Document;\n    constructor(@Inject(DOCUMENT) doc: Document) {\n        this.doc = doc;\n    }\n\n    load(pageValueName: string):any {\n        let script = this.doc.querySelector(`script#${pageValueName}`).innerHTML;\n        let json = JSON.parse(script);\n        return json;\n    }\n\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/page-value-json-loader.ts","import {Injectable} from \"@angular/core\";\nimport {Store} from \"@ngrx/store\";\nimport {IMappingService} from \"../mapping/mapping.service.interface\";\nimport {AbstractBaseAction} from \"../store/abstract-base.action\";\nimport {PageValueJsonLoader} from \"./page-value-json-loader\";\nimport {NewableType} from \"@shop/js-infrastructure-generic-datatypes\";\n\n\n@Injectable()\nexport class PageValueLoader {\n\n    constructor(private readonly mappingService: IMappingService,\n                private readonly jsonLoader: PageValueJsonLoader,\n                private readonly pageValueType: NewableType<any>) {\n    }\n\n    load<T>(store: Store<any>, pageValueName: string, actionCreator: (pageValue: T) => AbstractBaseAction) {\n        let json = this.jsonLoader.load(pageValueName);\n        let pageValue = this.mappingService.fromJson(json);\n        if(!(pageValue instanceof this.pageValueType)){\n            throw new Error(`Unexpected PageValue type expected ${this.pageValueType.name} but got ${pageValue.constructor.name}`)\n        }\n        store.dispatch(actionCreator(pageValue));\n    }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/page-value-loader.ts","import {AbstractInfrastructureAction} from \"../base/abstract-infrastructure-action\";\nexport class PageValueAction extends AbstractInfrastructureAction{\n    constructor(\n        public readonly pageValue: any,\n        public readonly pageValueName: any\n    ){\n        super();\n    }\n}\n\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/page-value.action.ts","import {AbstractMethodReducer, ReducerMethod} from \"../store/abstract-method-reducer\";\nimport {PageValueAction} from \"./page-value.action\";\n\n\nexport class PageValueReducer extends AbstractMethodReducer<any, any> {\n\n    constructor(private readonly pageValueName: string){\n        super();\n    }\n\n    @ReducerMethod()\n    pageValueAction(state: any, action: PageValueAction): any {\n        if(action.pageValueName === this.pageValueName){\n            return action.pageValue;\n        }\n        return state;\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pagevalue/page-value.reducer.ts","\nimport { Pipe, PipeTransform } from '@angular/core';\n/*\n * Transform a number to a valid currency string for shop application\n * Usage:\n *   value | euro\n * Example:\n *   {{ 2.99 | euro }}\n *   formats to: '2,99 €'\n*/\n@Pipe({name: 'euro'})\nexport class EuroPipe implements PipeTransform {\n    transform(value: number): string {\n        if (value == undefined) {\n            return;\n        }\n        let money = value.toFixed(2).toString();\n        let values:string[] = money.split('.');\n        let euros = values[0];\n        let cents = values[1];\n\n        return euros + \",\" + cents + \" €\";\n    }\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/euro.pipe.ts","export * from \"./pipes.module\";\nexport * from \"./euro.pipe\";\nexport * from \"./price.pipe\";\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/index.ts","import {NgModule} from \"@angular/core\";\nimport {UnsafeHtmlPipe} from \"./unsafe-html.pipe\";\nimport {EuroPipe} from \"./euro.pipe\";\nimport {PricePipe} from \"./price.pipe\";\n\n@NgModule({\n    imports: [\n    ],\n    declarations: [\n        EuroPipe,\n        UnsafeHtmlPipe,\n        PricePipe\n    ],\n    providers: [\n        EuroPipe,\n        UnsafeHtmlPipe,\n        PricePipe\n    ],\n    exports: [\n        EuroPipe,\n        UnsafeHtmlPipe,\n        PricePipe\n    ]\n\n})\nexport class PipesModule {\n}\n\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/pipes.module.ts","import {Pipe, PipeTransform} from '@angular/core';\n\n/**\n * This pipe takes a number and returns either the integer part or the decimal part of the price.\n * The decimal part will always be returned as a strign consisting of two characters.\n *\n * To define which part of the price should be returned, you pass the parameter 'part' either the string\n * 'integer' or 'decimal'\n */\n@Pipe({\n    name: 'price',\n    pure: true\n})\nexport class PricePipe implements PipeTransform {\n\n    public static readonly INTEGER = 'integer';\n    public static readonly DECIMAL = 'decimal';\n\n    private getPriceInteger(price: number): string {\n        return String(Math.floor(Math.round(price * 100) / 100));\n    }\n\n    private getPriceDecimal(price: number): string {\n        if (price) {\n            return Math.round(price * 100).toString().substr(-2);\n        }\n        return \"00\";\n    }\n\n    transform(value: number, part: string = PricePipe.INTEGER): string {\n        if (PricePipe.INTEGER != part && PricePipe.DECIMAL != part) {\n            throw new Error(`invalid part parameter '${part}' passed to PricePipe`);\n        }\n        if (part == PricePipe.INTEGER) {\n            return this.getPriceInteger(value);\n        } else {\n            return this.getPriceDecimal(value);\n        }\n    }\n}\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/price.pipe.ts","import { Pipe, PipeTransform } from '@angular/core';\nimport {DomSanitizer, SafeHtml} from \"@angular/platform-browser\";\n/*\n * This is used to prevent the sanitizer from removing inline-styles for cmsDebugging\n *\n*/\n@Pipe({name: 'unsafeHtml'})\nexport class UnsafeHtmlPipe implements PipeTransform {\n\n    constructor(private sanitized: DomSanitizer) {}\n    transform(value: any): SafeHtml {\n        return this.sanitized.bypassSecurityTrustHtml(value);\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/pipes/unsafe-html.pipe.ts","import {RecursiveCallPayloadInterceptor} from \"./call/interceptors/recursive-call-payload-interceptor\";\nimport {NavigationEventCallPayloadInterceptor} from \"./call/interceptors/navigation-event-call-payload-interceptor\";\nimport {StoreValidationChainReducer} from \"./validation/store-validation-chain.reducer\";\nimport {ValueValidationService} from \"./validation/value-validation.service\";\nimport {RootReducer} from \"./store/root.reducer\";\nimport {ValueMetaDataService} from \"./valuemetadata/value-meta-data.service\";\nimport {DateCustomType} from \"./mapping/customtypes/date-custom-type\";\nimport {CallService} from \"./call/call.service\";\nimport {MappingService} from \"./mapping/mapping.service\";\nimport {createLoggerService} from \"./logging/create-logger-service.function\";\nimport {ILoggerService} from \"./logging/logger.service.interface\";\nimport {IMappingService} from \"./mapping/mapping.service.interface\";\nimport {HttpModule} from \"@angular/http\";\nimport {StoreDevtoolsModule} from \"@ngrx/store-devtools\";\nimport {BrowserModule, DOCUMENT} from \"@angular/platform-browser\";\nimport {EffectsModule} from \"@ngrx/effects\";\nimport { NgModule, Provider} from \"@angular/core\";\nimport {Store, StoreModule} from \"@ngrx/store\";\nimport {IReducer} from \"./store/reducer.interface\";\nimport {AbstractBaseAction} from \"./store/abstract-base.action\";\nimport {PageValueLoader} from \"./pagevalue/page-value-loader\";\nimport {PageValueAction} from \"./pagevalue/page-value.action\";\nimport {AbstractRootStoreValue} from \"./store/abstract-root-store-value\";\nimport {PropertyChainReducer} from \"./store/property-chain.reducer\";\nimport {PageValueReducer} from \"./pagevalue/page-value.reducer\";\nimport {FormsModule} from \"@angular/forms\";\nimport {IExtensionStore} from \"./extension/extension-store.interface\";\nimport {IChainReducer} from \"./store/chain-reducer.interface\";\nimport {IExtensionReducer} from \"./extension/extension-reducer.interface\";\nimport {IExtensionChainReducer} from \"./extension/extension-chain-reducer.interface\";\nimport {PageValueJsonLoader} from \"./pagevalue/page-value-json-loader\";\nimport {FlowIdService} from \"./flowid/flow-id.service\";\nimport {MockSettingsService} from \"./mock/mock-settings.service\";\nimport {HeaderInterceptor} from \"./call/interceptors/header-interceptor\";\nimport {TrackingService} from \"./tracking/tracking.service\";\nimport {NewableType, Type} from \"@shop/js-infrastructure-generic-datatypes\";\n@NgModule({\n    imports: [\n        EffectsModule,\n        BrowserModule,\n        HttpModule,\n        EffectsModule,\n        FormsModule,\n\n        HttpModule,\n        StoreModule.provideStore((s: any) => s /* this reducer is replaced with the root reducer*/, {}),\n        StoreDevtoolsModule.instrumentOnlyWithExtension({}),\n    ],\n    providers: [\n        // infra\n        {provide: ILoggerService, useFactory: createLoggerService},\n        {provide: IMappingService, useClass: MappingService},\n        FlowIdService.provider(),\n        MockSettingsService,\n        HeaderInterceptor,\n        CallService.provider(),\n        DateCustomType.provider(),\n        ValueMetaDataService,\n        RootReducer.providerForRoot(),\n        ValueValidationService,\n        StoreValidationChainReducer.provider(),\n        NavigationEventCallPayloadInterceptor.provider(),\n        RecursiveCallPayloadInterceptor.provider(),\n        {provide: PageValueJsonLoader, useClass: PageValueJsonLoader},\n        TrackingService.provider()\n    ],\n    exports: [\n        EffectsModule,\n        BrowserModule,\n        HttpModule,\n        EffectsModule,\n        FormsModule,\n        StoreModule,\n        HttpModule\n    ]\n\n})\nexport class ShopApplicationModule {\n\n    static forRootComponent<S extends AbstractRootStoreValue, A extends AbstractBaseAction>(config: IExtensionConfigWithStore<S, A>): Provider[] {\n\n        let providers: Provider[] = [];\n\n        // create the extension store ... which is a view of the root store (<root>[extensionName])\n        providers.push({\n\n                provide: IExtensionStore,\n\n                useFactory: (\n                    store: Store<any>,\n                    rootReducer: RootReducer<any, any>,\n                    extensionReducers: IExtensionReducer<any, any>[],\n                    extensionChainReducers: IExtensionChainReducer<any, any>[],\n                    mappingService: IMappingService,\n                    document: Document,\n                    pageValueJsonLoader: PageValueJsonLoader) => {\n\n                    let extensionRootReducer = new RootReducer(extensionChainReducers, extensionReducers);\n                    rootReducer.addReducer(extensionRootReducer);\n\n                    // the right operation is lift ... but lift is broken ... so we use select which returns a\n                    // complete store and not just a Observable ...\n                    let extensionStore = <IExtensionStore<any>> store.select(state => {\n                            return state[config.extensionName];\n                        }\n                    );\n\n                    if(config.pageValue){\n                        new PageValueLoader(mappingService, pageValueJsonLoader, config.pageValue.pageValueType).load(\n                            extensionStore,\n                            config.extensionName,\n                            (pageValue) => new PageValueAction(pageValue, config.extensionName)\n                        );\n                    }\n\n                    return extensionStore;\n                },\n                deps: [\n                    Store,\n                    RootReducer,\n                    IExtensionReducer,\n                    IExtensionChainReducer,\n                    IMappingService,\n                    DOCUMENT,\n                    PageValueJsonLoader\n                ]\n            },\n        );\n\n        // create a chain reducer in this extension that creates a view for this extension for the other reducers ...\n        providers.push(\n            {\n                provide: IExtensionChainReducer,\n                useValue: new PropertyChainReducer(config.extensionName, config.initialStoreValue),\n                multi: true\n            },\n        );\n\n        // register reducers\n        config.reducers.forEach(reducerType => {\n            providers.push(reducerType, {\n                provide: IExtensionReducer,\n                useExisting: reducerType,\n                multi: true\n            });\n        });\n\n        // register chain reducers\n        if (config.chainReducers) {\n            config.chainReducers.forEach(reducerType => {\n                providers.push(reducerType, {\n                    provide: IExtensionChainReducer,\n                    useExisting: reducerType,\n                    multi: true\n                });\n            })\n        }\n\n\n        if (config.pageValue && !config.pageValue['customReducer']) {\n            providers.push({\n                    provide: IExtensionReducer,\n                    useValue: new PageValueReducer(config.extensionName),\n                    multi: true\n                }\n            );\n        }\n\n        return providers;\n\n    }\n}\n\nexport interface IExtensionConfigWithStore<S extends AbstractRootStoreValue, A extends AbstractBaseAction> {\n    extensionName: string;\n    actionBaseType: Type<A>;\n    initialStoreValue: S;\n    reducers: NewableType<IReducer<A, S>>[]\n    chainReducers?: NewableType<IChainReducer<A, S>>[]\n    pageValue?:  {\n        customReducer?: boolean,\n        pageValueType: NewableType<any>\n    }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/shop-application.module.ts","import {Action} from \"@ngrx/store\";\nimport {Observable} from \"rxjs/Observable\";\nimport \"rxjs/add/observable/from\";\nimport \"rxjs/add/observable/empty\";\n\n\nexport type BaseActionType<T extends AbstractBaseAction> = { new(...args: any[]): T; instanceFilter(): (actionToTest: any) => boolean; }\n\nexport abstract class AbstractBaseAction implements Action {\n\n    public readonly type: string;\n\n    static actionName(this: {NAMESPACE?:string}) {\n        let namespace = this['NAMESPACE'];\n        if (!namespace) {\n            throw new Error(\"'NAMESPACE' property not found in constructor prototype chain for constructor: \" + this);\n        }\n        return namespace + \":\" + (<Function>this).name;\n    }\n\n    static instanceFilter(): (action: any) => boolean {\n        return (action) => action instanceof this;\n    }\n\n    static streamOfThisAction<T extends AbstractBaseAction>(this: { new(...args: any[]): T }): (action: any) => Observable<T> {\n        return (action) => {\n            if (action instanceof this) {\n                return Observable.from([action])\n            } else {\n                return Observable.empty();\n            }\n        }\n    }\n\n    constructor() {\n        this.type = (this.constructor as any).actionName();\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-base.action.ts","import {Provider, Type} from \"@angular/core\";\nimport {AbstractRootStoreValue} from \"./abstract-root-store-value\";\nimport {AbstractBaseAction} from \"./abstract-base.action\";\nimport {IChainReducer} from \"./chain-reducer.interface\";\nimport {ReduceFn} from \"./reduce-fn.type\";\n\n\nexport abstract class AbstractChainReducer<A extends AbstractBaseAction, D extends AbstractRootStoreValue> implements IChainReducer<A, D>{\n\n    static provider(this: Type<any>): Provider[]{\n        return [this, {provide: IChainReducer, useExisting: this, multi: true}];\n    }\n\n    abstract reduce(state: D, action: A, nextReduce: ReduceFn<A, D>): D;\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-chain-reducer.ts","import {AbstractBaseAction, BaseActionType} from \"./abstract-base.action\";\nimport {AbstractRootStoreValue} from \"./abstract-root-store-value\";\nimport \"reflect-metadata\";\nimport {AbstractReducer} from \"./abstract.reducer\";\n\nconst REGISTERED_REDUCER_METHODS_SYMBOL = Symbol(\"shop/registeredReducerMethods\");\n\nclass RegisteredReducerMethod {\n    constructor(public readonly actionType: BaseActionType<any>,\n                public readonly methodName: symbol | string) {\n\n    }\n}\n\n/// exported members\n\nexport abstract class AbstractMethodReducer<A extends AbstractBaseAction, S extends AbstractRootStoreValue> extends AbstractReducer<A, S>{\n\n    reduce(initialState: S, action: A): S {\n        let registeredReducerMethods: RegisteredReducerMethod[] = Reflect.getOwnMetadata(REGISTERED_REDUCER_METHODS_SYMBOL, Reflect.getPrototypeOf(this));\n        return registeredReducerMethods.reduce((state, reducerMethod) => {\n\n            if (action instanceof reducerMethod.actionType) {\n                let reducerFn: Function = (this as any)[reducerMethod.methodName];\n                return reducerFn.call(this, state, action);\n            }\n\n            return state;\n\n        }, initialState);\n    }\n\n}\n\nexport function ReducerMethod(): PropertyDecorator {\n    return (target: any, propertyKey: string | symbol) => {\n\n        if (!(target instanceof AbstractMethodReducer)) {\n            throw new Error(\"@ReducerMethod can only be applied to method that are defined in subtypes of AbstractMethodReducer\");\n        }\n\n        var parameterTypes = Reflect.getMetadata(\"design:paramtypes\", target, propertyKey);\n\n        let stateType = parameterTypes[0];\n\n        let actionType = parameterTypes[1];\n        if (!AbstractBaseAction.isPrototypeOf(actionType)) {\n            throw new Error(\"Second argument of a method decorated with @ReducerMethod must be a subtype of AbstractBaseAction but was \" + actionType);\n        }\n\n        var returnType = Reflect.getMetadata(\"design:returntype\", target, propertyKey);\n        if (stateType !== returnType) {\n            throw new Error(\"Return type of a method decorated with @ReducerMethod must match first parameter type but was \" + returnType);\n        }\n\n        let registeredReducerMethods: RegisteredReducerMethod[] = Reflect.getOwnMetadata(REGISTERED_REDUCER_METHODS_SYMBOL, target) || [];\n        registeredReducerMethods = registeredReducerMethods.concat([new RegisteredReducerMethod(actionType, propertyKey)]);\n        Reflect.defineMetadata(REGISTERED_REDUCER_METHODS_SYMBOL, registeredReducerMethods, target);\n    }\n}\n\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-method-reducer.ts","import {AbstractStoreValue} from \"./abstract-store.value\";\nexport abstract class AbstractRootStoreValue extends AbstractStoreValue{\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-root-store-value.ts","//// Module private helper ...\nimport {Actions} from \"@ngrx/effects\";\nimport {Store} from \"@ngrx/store\";\nimport \"rxjs/Rx\";\n\nimport {Observable} from \"rxjs/Observable\";\nimport {AbstractBaseAction, BaseActionType} from \"./abstract-base.action\";\nimport {AbstractRootStoreValue} from \"./abstract-root-store-value\";\nimport \"reflect-metadata\";\nimport {LoadCallAction, PayloadTypeDescriptor, PayloadTypeDescriptorWithValue} from \"../call/actions/load-call.action\";\nimport {Call} from \"@shop/js-infrastructure-generic-datatypes\";\n\n\n// private state and helpers ...\nconst EFFECT_METHOD_SYMBOL = Symbol(\"shop/infrastructure/OnActionRegistration\");\n\n\nclass OnActionMethodRegistration {\n    constructor(public readonly actionType: BaseActionType<AbstractBaseAction>,\n                public readonly handler: Function) {\n    }\n}\n\n\n// Exported members ....\nexport abstract class AbstractStoreService<SD extends AbstractRootStoreValue> {\n\n    protected currentState: SD;\n\n    constructor(protected readonly store: Store<SD>,\n                protected readonly actions: Actions) {\n\n        let registrations: OnActionMethodRegistration[] = Reflect.getOwnMetadata(EFFECT_METHOD_SYMBOL, Reflect.getPrototypeOf(this)) || [];\n\n        registrations.forEach((registration: OnActionMethodRegistration) => {\n            actions\n                .filter((action) => action instanceof registration.actionType)\n                .subscribe((action) => registration.handler.call(this, action))\n        });\n\n        this.select((s) => s).subscribe(\n            (state) => {\n                this.currentState = state\n            }\n        );\n    }\n\n    protected dispatch(action: AbstractBaseAction): void {\n        this.store.dispatch(action);\n    }\n\n    /**\n     * This is the old form of the call method is here for upward compatibility.\n     *\n     * @template T\n     * @param {Call<T>} call\n     * @param {(payload: T) => AbstractBaseAction} actionCreator\n     * @deprecated use #callWithPayload or #callWithoutPayload instead\n     */\n    protected call<T>(call: Call<T>, actionCreator: (payload: T) => AbstractBaseAction = null): void {\n        this.store.dispatch(new LoadCallAction(call, \"unchecked\", actionCreator));\n    }\n\n    /**\n     * This method is used to resolve a call, this is the main way to interact with the backend via ajax.\n     * This method expects a return value from the call, that is passed to the actionCreator.\n     * If used with a Call that trigger a backend interaction that don't return a value e.g. a DELETE call, this will\n     * cause an error.\n     *\n     * @template T\n     * @param {Call<T>} call\n     * @param {PayloadTypeDescriptor<T>} typeDescriptor\n     * @param {(payload: T) => AbstractBaseAction} actionCreator\n     */\n    protected callWithPayload<T>(call: Call<T>, typeDescriptor: PayloadTypeDescriptorWithValue<T>, actionCreator: (payload: T) => AbstractBaseAction = null): void {\n        this.store.dispatch(new LoadCallAction(call, typeDescriptor, actionCreator));\n    }\n\n    /**\n     * This method is used to resolve a call, this is the main way to interact with the backend via ajax.\n     * This method expects a return value from the call, that is passed to the actionCreator.\n     * If used with a Call that trigger a backend interaction that don't return a value e.g. a DELETE call, this will\n     * cause an error.\n     *\n     * @template T\n     * @param {Call<T>} call\n     * @param {(payload: T) => AbstractBaseAction} actionCreator\n     */\n    protected callWithoutPayload<T>(call: Call<void>, actionCreator: () => AbstractBaseAction = null): void {\n        this.store.dispatch(new LoadCallAction(call, \"void\", actionCreator));\n    }\n\n    protected select<T>(selector: (data: SD) => T): Observable<T> {\n        return this.store.select(selector);\n    }\n\n    protected actionsOfType<T extends AbstractBaseAction>(baseActionType: BaseActionType<T>): Observable<T> {\n        return this.actions.filter(baseActionType.instanceFilter())\n            .map((action) => action as T)\n    }\n}\n\n\nexport function OnAction(): MethodDecorator {\n    return (target: any, propertyKey: string | symbol, descriptor: TypedPropertyDescriptor<any>) => {\n\n        if (!(target instanceof AbstractStoreService)) {\n            throw new Error(\"@OnAction can only be applied to method that are defined in subtypes of StoreService\");\n        }\n\n        var parameterTypes = Reflect.getMetadata(\"design:paramtypes\", target, propertyKey);\n        let actionType: BaseActionType<any> = parameterTypes[0];\n        if (!AbstractBaseAction.isPrototypeOf(actionType)) {\n            throw new Error(\"Second argument of a method decorated with @OnAction must be a subtype of AbstractBaseAction but was \" + parameterTypes[1]);\n        }\n\n        let effectMethods: OnActionMethodRegistration[] = Reflect.getOwnMetadata(EFFECT_METHOD_SYMBOL, target) || [];\n        effectMethods = effectMethods.concat([new OnActionMethodRegistration(actionType, descriptor.value)]);\n        Reflect.defineMetadata(EFFECT_METHOD_SYMBOL, effectMethods, target);\n    }\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-store-service.ts","import {AbstractImmutableData} from \"@shop/js-infrastructure-generic-datatypes\";\n\n/**\n * This class is used to define the function types in the subclasses ... the behaviour is added via the decorator ...\n * the behaviour should be moved to this class ...\n */\nexport abstract class AbstractStoreValue extends AbstractImmutableData{\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract-store.value.ts","import {IReducer} from \"./reducer.interface\";\nimport {AbstractRootStoreValue} from \"./abstract-root-store-value\";\nimport {AbstractBaseAction} from \"./abstract-base.action\";\nimport {Provider, Type} from \"@angular/core\";\n\nexport type IReducerType<A extends AbstractBaseAction, D extends AbstractRootStoreValue> = { new(): IReducer<A, D> }\n\nexport abstract class AbstractReducer<A extends AbstractBaseAction, D extends AbstractRootStoreValue> implements IReducer<A, D>{\n\n    static provider(this: Type<any>): Provider[]{\n        return [this, {provide: IReducer, useExisting: this, multi: true}];\n    }\n\n    abstract reduce(state: D, action: A): D;\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/abstract.reducer.ts","import {AbstractRootStoreValue} from \"./abstract-root-store-value\";\nimport {AbstractBaseAction} from \"./abstract-base.action\";\nimport {ReduceFn} from \"./reduce-fn.type\";\n\nexport interface IChainReducer<A extends AbstractBaseAction, D extends AbstractRootStoreValue> {\n    reduce(state: D, action: A, nextReduce: ReduceFn<A, D>): D\n}\n\nexport class IChainReducer<A extends AbstractBaseAction, D extends AbstractRootStoreValue> {}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/chain-reducer.interface.ts","export * from \"./abstract-base.action\"\nexport * from \"./abstract-chain-reducer\"\nexport * from \"./abstract-method-reducer\"\nexport * from \"./abstract.reducer\"\nexport * from \"./abstract-root-store-value\"\nexport * from \"./abstract-store-service\"\nexport * from \"./abstract-store.value\"\nexport * from \"./chain-reducer.interface\"\nexport * from \"./reducer.interface\"\nexport * from \"./property-chain.reducer\"\nexport * from \"./reduce-fn.type\"\nexport * from \"./root.reducer\"\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/index.ts","import {AbstractChainReducer} from \"./abstract-chain-reducer\";\nimport {ReduceFn} from \"./reduce-fn.type\";\nexport class PropertyChainReducer extends AbstractChainReducer<any, any> {\n\n    constructor(private readonly propertyName: string,\n                private readonly initialPropertyValue: any) {\n        super();\n    }\n\n\n    reduce(state: any, action: any, nextReduce: ReduceFn<any, any>): any {\n        let propertyValue = state[this.propertyName] || this.initialPropertyValue;\n        return Object.assign({}, ...state, {[this.propertyName]: nextReduce(propertyValue, action)});\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/property-chain.reducer.ts","import {AbstractRootStoreValue} from \"./abstract-root-store-value\";\nimport {AbstractBaseAction} from \"./abstract-base.action\";\n\nexport type ReduceFn<A extends AbstractBaseAction, D extends AbstractRootStoreValue> = (state: D, action: A) => D;\n\nexport class ReduceFnDummyClass{};\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/reduce-fn.type.ts","import {AbstractRootStoreValue} from \"./abstract-root-store-value\";\nimport {AbstractBaseAction} from \"./abstract-base.action\";\n\nexport interface IReducer<A extends AbstractBaseAction, D extends AbstractRootStoreValue> {\n    reduce(state: D, action: A): D\n}\n\nexport class IReducer<A extends AbstractBaseAction, D extends AbstractRootStoreValue>{\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/reducer.interface.ts","import {AbstractBaseAction} from \"./abstract-base.action\";\nimport {APP_INITIALIZER, Inject, Injectable, Optional, Provider} from \"@angular/core\";\nimport {Store} from \"@ngrx/store\";\nimport * as _ from \"lodash\";\nimport {IChainReducer} from \"./chain-reducer.interface\";\nimport {IReducer} from \"./reducer.interface\";\nimport {ReduceFn} from \"./reduce-fn.type\";\nimport {AbstractRootStoreValue} from \"./abstract-root-store-value\";\n\n@Injectable()\nexport class RootReducer<A extends AbstractBaseAction, S extends AbstractRootStoreValue> implements IReducer<A, S> {\n\n    static providerForRoot(): Provider[] {\n        return [\n            RootReducer,\n            {\n                provide: APP_INITIALIZER,\n                useFactory: (rootReducer: RootReducer<any, any>, store: Store<any>) => {\n                    store.replaceReducer(rootReducer.createReduceFn());\n                    return ():any => undefined;\n                },\n                deps: [RootReducer, Store],\n                multi: true\n            }\n        ];\n\n    }\n\n    static providerForChild(rootReducerToken: any, childReducerToken: any, childChainReducerToken: any): Provider[] {\n        return [\n            {\n                provide: rootReducerToken,\n                useFactory: (childReducer: IReducer<any, any>[], childChainReducer: IChainReducer<any, any>[]) => {\n                    return new RootReducer(childChainReducer || [], childReducer || []);\n                },\n                deps: [childReducerToken, childChainReducerToken],\n                multi: true\n            }\n        ];\n    }\n\n\n    private chain: IChainReducer<A, S>[];\n\n    constructor(@Optional() @Inject(IChainReducer) private chainReducers: IChainReducer<A, S>[],\n                @Optional() @Inject(IReducer) private  reducers: IReducer<A, S>[]) {\n        this.chainReducers = this.chainReducers || [];\n        this.reducers = this.reducers || [];\n        this.buildChain();\n    }\n\n\n    private buildChain() {\n        let finalChainReducer = {\n            reduce: (initialState: S, a: A, next: ReduceFn<A, S>) => {\n                return this.reducers.reduce((s, reducer) => {\n                    return reducer.reduce(s, a);\n                }, initialState)\n            }\n        };\n\n        this.chain = [...this.chainReducers, finalChainReducer];\n    }\n\n    createReduceFn(): ReduceFn<A, S> {\n        return (state, action) => {\n            return this.reduce(state, action);\n        }\n    }\n\n    callChain(remainingChain: IChainReducer<A, S>[], state: S, action: A): S {\n        if (remainingChain.length === 0) {\n            return state;\n        }\n\n        let reducer = remainingChain[0];\n        return reducer.reduce(state, action, (state, action) => {\n            return this.callChain(_.drop(remainingChain, 1), state, action);\n        })\n    }\n\n    reduce(state: S, action: A): S {\n        return this.callChain(this.chain, state, action);\n    }\n\n    addReducer(reducer: IReducer<A, S>){\n        this.reducers.push(reducer);\n        this.buildChain();\n    }\n\n\n}\n\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/store/root.reducer.ts","import {AbstractInfrastructureAction} from \"../../base/abstract-infrastructure-action\";\nimport {Call, TrackingInfo} from \"@shop/js-infrastructure-generic-datatypes\";\n\nexport class TrackingAction extends AbstractInfrastructureAction {\n\n    constructor(public readonly call: Call<TrackingInfo>) {\n        super();\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/tracking/actions/tracking.action.ts","import {AbstractInfrastructureAction} from \"../../base/abstract-infrastructure-action\";\nimport {TrackingInfo} from \"@shop/js-infrastructure-generic-datatypes\";\n\nexport class WriteTrackingToDataLayerAction extends AbstractInfrastructureAction {\n\n    constructor(public readonly trackingInfo: TrackingInfo) {\n        super();\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/tracking/actions/write-tracking-to-data-layer.action.ts","export * from \"./actions/tracking.action\";\nexport * from \"./tracking.service\";\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/tracking/index.ts","import {APP_INITIALIZER, Inject, Injectable, Provider} from \"@angular/core\";\nimport {TrackingAction} from \"./actions/tracking.action\";\nimport {ILogger, ILoggerService} from \"../logging/logger.service.interface\";\nimport {Dispatcher} from \"@ngrx/store\";\nimport {Actions} from \"@ngrx/effects\";\nimport {LoadCallAction} from \"../call/actions/load-call.action\";\nimport {WriteTrackingToDataLayerAction} from \"./actions/write-tracking-to-data-layer.action\";\nimport isNull = require(\"lodash/isNull\");\nimport isUndefined = require(\"lodash/isUndefined\");\nimport {Call, TrackingInfo} from \"@shop/js-infrastructure-generic-datatypes\";\nimport \"rxjs/add/operator/switchMap\";\n\n@Injectable()\nexport class TrackingService {\n\n    public static provider(): Provider[] {\n        return [\n            {provide: TrackingService, useClass: TrackingService},\n            // use here a initializer to register the call service eager ...\n            {\n                provide: APP_INITIALIZER, useFactory: () => () => {\n            },\n                multi: true, deps: [TrackingService]\n            }\n        ]\n    }\n\n    private logger: ILogger;\n\n    constructor(@Inject(ILoggerService) loggerService: ILoggerService,\n                private readonly dispatcher: Dispatcher,\n                private readonly actions: Actions,) {\n\n        this.logger = loggerService.create('infrastructure.TrackingService');\n\n        this.actions.switchMap(TrackingAction.streamOfThisAction())\n            .subscribe((action) => this.track(action.call));\n\n        this.actions.switchMap(WriteTrackingToDataLayerAction.streamOfThisAction())\n            .subscribe((action) => {\n                this.writeTrackingToDataLayer(action.trackingInfo);\n            });\n    }\n\n    track(call: Call<TrackingInfo>): void {\n\n        if (isNull(call) || isUndefined(call)) {\n            return;\n        }\n\n        this.dispatcher.dispatch(new LoadCallAction(call, TrackingInfo, (trackingInfo: TrackingInfo) => {\n                return new WriteTrackingToDataLayerAction(trackingInfo)\n            })\n        );\n    }\n\n    writeTrackingToDataLayer(trackingInfo: TrackingInfo): void {\n        let datalayer: any[] = (window as any)['tefDataLayer'];\n        if (datalayer) {\n            try {\n                if (!isUndefined(trackingInfo)) {\n\n                    this.logger.info(\"Logging Event : \", {\n                        'content': trackingInfo.rawContent\n                    });\n                    //push to tefDataLayer\n                    datalayer.push(JSON.parse(trackingInfo.rawContent));\n                }\n            } catch (e) {\n                //ignore by intention\n                this.logger.error(e);\n            }\n        }\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/tracking/tracking.service.ts","export * from \"./store-validation-chain.reducer\"\nexport * from \"./value-validation.service\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/validation/index.ts","import {ValueValidationService} from \"./value-validation.service\";\nimport {Injectable} from \"@angular/core\";\nimport {Dispatcher} from \"@ngrx/store\";\nimport {AbstractChainReducer} from \"../store/abstract-chain-reducer\";\nimport {AbstractBaseAction} from \"../store/abstract-base.action\";\nimport {AbstractRootStoreValue} from \"../store/abstract-root-store-value\";\nimport {ReduceFn} from \"../store/reduce-fn.type\";\n\n\n@Injectable()\nexport class StoreValidationChainReducer extends AbstractChainReducer<AbstractBaseAction, AbstractRootStoreValue> {\n\n    constructor(private readonly valueMetaDataService: ValueValidationService,\n                private readonly dispatcher: Dispatcher) {\n        super();\n    }\n\n    reduce(state: AbstractRootStoreValue, action: AbstractBaseAction, nextReduce: ReduceFn<AbstractBaseAction, AbstractRootStoreValue>): AbstractRootStoreValue {\n        let newState = nextReduce(state, action);\n        if (newState !== null) {\n            try {\n                this.valueMetaDataService.validate(newState, \"<store-new-value>\");\n            } catch (err) {\n                this.logError(\"Store invalid state detected, restoring store state!\", err, newState, action);\n\n                // now revert to the old state ...\n                try {\n                    // check if the old state was invalid ... this can happen if the initial state is broken\n                    // and can cause infinity-loops ...\n                    this.valueMetaDataService.validate(state, \"<store-old-value>\");\n                    // if there is no exception ... return the old state ...\n                    return state;\n                } catch (e) {\n                    this.logError(\"Restore old state failed, old state is itself invalid, setting state to <null>!\", err, state, action);\n                    return null;\n                }\n            }\n        }\n        return newState;\n    }\n\n    private logError(message: string, err: Error, invalidState: AbstractRootStoreValue, action: AbstractBaseAction) {\n        console.error(message,\n            {message: err.message, droppedState: invalidState, causingAction: action});\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/validation/store-validation-chain.reducer.ts","\nimport * as _ from \"lodash\";\nimport {Injectable} from \"@angular/core\";\nimport {ValueMetaDataService} from \"../valuemetadata/value-meta-data.service\";\nimport {\n    AbstractTypeMetaData, ArrayPropertyMetaData, EnumMetaData, NewableType, PropertyMetaData,\n    ValueMetaData\n} from \"@shop/js-infrastructure-generic-datatypes\";\n\nfunction assertIsFunction(val: any) {\n\n    if (!_.isFunction(val)) {\n        throw new Error(`expected a function for instanceof check, but got ${val} of type ${typeof val}`);\n    }\n\n    return true;\n\n}\n\n\n@Injectable()\nexport class ValueValidationService {\n    constructor(private readonly valueMetaDataService: ValueMetaDataService) {\n    }\n\n\n    validate<T>(value: T, debugPath: string = \"\") {\n\n        if(_.isNull(value)){\n            return;\n        }\n\n        if(_.isUndefined(value)){\n            throw new Error(\"Encountered undefined [\" + debugPath + \"]\");\n        }\n\n        let metaData: AbstractTypeMetaData<T> = this.valueMetaDataService.getMetaData(<NewableType<T>>value.constructor);\n        if (metaData instanceof ValueMetaData) {\n            this.validateValue(value, metaData, debugPath);\n        } else if (metaData instanceof EnumMetaData){\n            this.validateEnum(value, metaData, debugPath);\n        }else if (_.isArray(value)) {\n            value.forEach((element, index) => {\n                this.validate(element, debugPath + \"[\" + index + \"]\")\n            })\n        } else if (_.isPlainObject(value)) {\n            Object.keys(value).forEach((key) => {\n                this.validate((value as any)[key], debugPath + \"[\" + key + \"]\")\n            })\n        }else if(_.isObjectLike(value)){\n            throw new Error(\"Found a unsupported object of with type: '\" + typeof value + \"' toString: '\" + value + \"' constructor name: '\" + (value.constructor && value.constructor.name) + \"'. Maybe you forgotten to add a @ValueType decorator on a object with a prototype ...\");\n        }\n    }\n\n    private validateEnum(value: any, metaData: EnumMetaData<any>, debugPath: string) {\n        let foundEnumInstance = Object.keys(metaData.type).some((key) => {\n            let enumCtor: any = metaData.type;\n            return value === enumCtor[key];\n        });\n\n        if(!foundEnumInstance){\n            throw new Error(\"Enum instance not found on enum of type\" + metaData.qualifiedName +  \" [\" + debugPath + \"]\");\n        }\n    }\n\n    private validateValue(value: any, metaData: ValueMetaData<any>, debugPath: string) {\n        metaData.properties.forEach((p) => {\n\n            let propertyDebugPath = debugPath + \".\" + p.name;\n            let propertyValue = value[p.name];\n\n            this.validate(propertyValue, propertyDebugPath);\n\n            if (propertyValue == null && !p.nullable) {\n                throw new Error(\"Property \" + p.name + \" of \" + metaData.name + \" not nullable but was null [\" + propertyDebugPath + \"]\");\n            }\n\n            if (p instanceof PropertyMetaData) {\n                this.validateTypedProperty(propertyValue, p, metaData, propertyDebugPath);\n            }\n\n            if (p instanceof ArrayPropertyMetaData) {\n                this.validateArrayProperty(propertyValue, p, metaData, propertyDebugPath);\n            }\n        })\n    }\n\n    private validateTypedProperty(propertyValue: any, propertyMetaData: PropertyMetaData, metaData: ValueMetaData<any>, debugPath: string): void {\n        const matchesSome = propertyMetaData.elementTypes.some(elementType => this.isValueOfType(propertyValue, elementType));\n        if (!matchesSome) {\n            const expectedTypes = propertyMetaData.elementTypes.map((e) => e.name).join(\",\");\n            const message = `Property '${propertyMetaData.name}' of ${metaData.name} should be one of types ${expectedTypes} but was of type ${propertyValue.constructor.name} [${debugPath}]`;\n            throw new Error(message);\n        }\n    }\n\n    public isValueOfType(value: any, type: Function) {\n        return (_.isNull(value)\n            || ((type === Number) && _.isNumber(value))\n            || ((type === Boolean) && _.isBoolean(value))\n            || ((type === String) && _.isString(value))\n            || (assertIsFunction(type) && (value instanceof type))\n        );\n    }\n\n    private validateArrayProperty(propertyValue: any, propertyMetaData: ArrayPropertyMetaData, metaData: ValueMetaData<any>, debugPath: string): void {\n        if (!_.isArray(propertyValue)) {\n            throw new Error(\"Property \" + propertyMetaData.name + \" of \" + metaData.name + \" should be an array but was of type \" + typeof propertyValue + \" [\" + debugPath + \"]\");\n        }\n\n        (propertyValue as Array<any>).forEach((element, index) => {\n            let matchesSome;\n            try {\n                matchesSome = propertyMetaData.elementTypes.some((elementType) => this.isValueOfType(element, elementType));\n            } catch (e) {\n                const message = `Error while determining type of Element with index ${index} of property ${propertyMetaData.name} of ${metaData.name}. ${e.message} [${debugPath}[${index}]]`;\n                throw new Error(message)\n            }\n            if (!matchesSome) {\n                const expectedTypes = propertyMetaData.elementTypes.map((e) => e.name).join(\",\");\n                const message = `Element with index ${index} of property ${propertyMetaData.name} of ${metaData.name} should be one of types ${expectedTypes} but was of type ${element.constructor.name} [${debugPath}[${index}]]`;\n                throw new Error(message);\n            }\n        });\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/validation/value-validation.service.ts","\nexport * from \"./value-meta-data.service\"\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/valuemetadata/index.ts","import {Injectable} from \"@angular/core\";\nimport \"reflect-metadata\";\nimport {AbstractTypeMetaData, NewableType, ValueMetaDataRegistry} from \"@shop/js-infrastructure-generic-datatypes\";\n\n\n@Injectable()\nexport class ValueMetaDataService {\n\n    getMetaData<T>(type: NewableType<T>): AbstractTypeMetaData<T> {\n        return ValueMetaDataRegistry.getTypeMetaData(type);\n    }\n\n    getMetaDatas(): AbstractTypeMetaData<any>[] {\n        return ValueMetaDataRegistry.getTypes().map((type) => {\n            return this.getMetaData(type);\n        })\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/src/main/typescript/valuemetadata/value-meta-data.service.ts","module.exports = require(\"@angular/common\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@angular/common\"","module.exports = require(\"@angular/core\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@angular/core\"","module.exports = require(\"@angular/forms\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@angular/forms\"","module.exports = require(\"@angular/http\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@angular/http\"","module.exports = require(\"@angular/platform-browser\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@angular/platform-browser\"","module.exports = require(\"@ngrx/effects\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@ngrx/effects\"","module.exports = require(\"@ngrx/store\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@ngrx/store\"","module.exports = require(\"@ngrx/store-devtools\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@ngrx/store-devtools\"","module.exports = require(\"@shop/js-infrastructure-generic-datatypes\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@shop/js-infrastructure-generic-datatypes\"","module.exports = require(\"@shop/js-infrastructure-generic-datatypes/target/dist\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"@shop/js-infrastructure-generic-datatypes/target/dist\"","module.exports = require(\"lodash\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"lodash\"","module.exports = require(\"lodash/isNull\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"lodash/isNull\"","module.exports = require(\"lodash/isUndefined\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"lodash/isUndefined\"","module.exports = require(\"reflect-metadata\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"reflect-metadata\"","module.exports = require(\"rxjs/Observable\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/Observable\"","module.exports = require(\"rxjs/Rx\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/Rx\"","module.exports = require(\"rxjs/add/observable/empty\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/add/observable/empty\"","module.exports = require(\"rxjs/add/observable/from\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/add/observable/from\"","module.exports = require(\"rxjs/add/operator/switchMap\");\n\n\n// WEBPACK FOOTER //\n// webpack://_shop_js_infrastructure_ng4_store/external \"rxjs/add/operator/switchMap\"","module.exports = require('./lib/axios');\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/index.js\n// module id = ./node_modules/axios/index.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\nvar settle = require('./../core/settle');\nvar buildURL = require('./../helpers/buildURL');\nvar parseHeaders = require('./../helpers/parseHeaders');\nvar isURLSameOrigin = require('./../helpers/isURLSameOrigin');\nvar createError = require('../core/createError');\n\nmodule.exports = function xhrAdapter(config) {\n  return new Promise(function dispatchXhrRequest(resolve, reject) {\n    var requestData = config.data;\n    var requestHeaders = config.headers;\n\n    if (utils.isFormData(requestData)) {\n      delete requestHeaders['Content-Type']; // Let the browser set it\n    }\n\n    var request = new XMLHttpRequest();\n\n    // HTTP basic authentication\n    if (config.auth) {\n      var username = config.auth.username || '';\n      var password = config.auth.password || '';\n      requestHeaders.Authorization = 'Basic ' + btoa(username + ':' + password);\n    }\n\n    request.open(config.method.toUpperCase(), buildURL(config.url, config.params, config.paramsSerializer), true);\n\n    // Set the request timeout in MS\n    request.timeout = config.timeout;\n\n    // Listen for ready state\n    request.onreadystatechange = function handleLoad() {\n      if (!request || request.readyState !== 4) {\n        return;\n      }\n\n      // The request errored out and we didn't get a response, this will be\n      // handled by onerror instead\n      // With one exception: request that using file: protocol, most browsers\n      // will return status as 0 even though it's a successful request\n      if (request.status === 0 && !(request.responseURL && request.responseURL.indexOf('file:') === 0)) {\n        return;\n      }\n\n      // Prepare the response\n      var responseHeaders = 'getAllResponseHeaders' in request ? parseHeaders(request.getAllResponseHeaders()) : null;\n      var responseData = !config.responseType || config.responseType === 'text' ? request.responseText : request.response;\n      var response = {\n        data: responseData,\n        status: request.status,\n        statusText: request.statusText,\n        headers: responseHeaders,\n        config: config,\n        request: request\n      };\n\n      settle(resolve, reject, response);\n\n      // Clean up request\n      request = null;\n    };\n\n    // Handle low level network errors\n    request.onerror = function handleError() {\n      // Real errors are hidden from us by the browser\n      // onerror should only fire if it's a network error\n      reject(createError('Network Error', config, null, request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Handle timeout\n    request.ontimeout = function handleTimeout() {\n      reject(createError('timeout of ' + config.timeout + 'ms exceeded', config, 'ECONNABORTED',\n        request));\n\n      // Clean up request\n      request = null;\n    };\n\n    // Add xsrf header\n    // This is only done if running in a standard browser environment.\n    // Specifically not if we're in a web worker, or react-native.\n    if (utils.isStandardBrowserEnv()) {\n      var cookies = require('./../helpers/cookies');\n\n      // Add xsrf header\n      var xsrfValue = (config.withCredentials || isURLSameOrigin(config.url)) && config.xsrfCookieName ?\n          cookies.read(config.xsrfCookieName) :\n          undefined;\n\n      if (xsrfValue) {\n        requestHeaders[config.xsrfHeaderName] = xsrfValue;\n      }\n    }\n\n    // Add headers to the request\n    if ('setRequestHeader' in request) {\n      utils.forEach(requestHeaders, function setRequestHeader(val, key) {\n        if (typeof requestData === 'undefined' && key.toLowerCase() === 'content-type') {\n          // Remove Content-Type if data is undefined\n          delete requestHeaders[key];\n        } else {\n          // Otherwise add header to the request\n          request.setRequestHeader(key, val);\n        }\n      });\n    }\n\n    // Add withCredentials to request if needed\n    if (config.withCredentials) {\n      request.withCredentials = true;\n    }\n\n    // Add responseType to request if needed\n    if (config.responseType) {\n      try {\n        request.responseType = config.responseType;\n      } catch (e) {\n        // Expected DOMException thrown by browsers not compatible XMLHttpRequest Level 2.\n        // But, this can be suppressed for 'json' type as it can be parsed by default 'transformResponse' function.\n        if (config.responseType !== 'json') {\n          throw e;\n        }\n      }\n    }\n\n    // Handle progress if needed\n    if (typeof config.onDownloadProgress === 'function') {\n      request.addEventListener('progress', config.onDownloadProgress);\n    }\n\n    // Not all browsers support upload events\n    if (typeof config.onUploadProgress === 'function' && request.upload) {\n      request.upload.addEventListener('progress', config.onUploadProgress);\n    }\n\n    if (config.cancelToken) {\n      // Handle cancellation\n      config.cancelToken.promise.then(function onCanceled(cancel) {\n        if (!request) {\n          return;\n        }\n\n        request.abort();\n        reject(cancel);\n        // Clean up request\n        request = null;\n      });\n    }\n\n    if (requestData === undefined) {\n      requestData = null;\n    }\n\n    // Send the request\n    request.send(requestData);\n  });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/adapters/xhr.js\n// module id = ./node_modules/axios/lib/adapters/xhr.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./utils');\nvar bind = require('./helpers/bind');\nvar Axios = require('./core/Axios');\nvar defaults = require('./defaults');\n\n/**\n * Create an instance of Axios\n *\n * @param {Object} defaultConfig The default config for the instance\n * @return {Axios} A new instance of Axios\n */\nfunction createInstance(defaultConfig) {\n  var context = new Axios(defaultConfig);\n  var instance = bind(Axios.prototype.request, context);\n\n  // Copy axios.prototype to instance\n  utils.extend(instance, Axios.prototype, context);\n\n  // Copy context to instance\n  utils.extend(instance, context);\n\n  return instance;\n}\n\n// Create the default instance to be exported\nvar axios = createInstance(defaults);\n\n// Expose Axios class to allow class inheritance\naxios.Axios = Axios;\n\n// Factory for creating new instances\naxios.create = function create(instanceConfig) {\n  return createInstance(utils.merge(defaults, instanceConfig));\n};\n\n// Expose Cancel & CancelToken\naxios.Cancel = require('./cancel/Cancel');\naxios.CancelToken = require('./cancel/CancelToken');\naxios.isCancel = require('./cancel/isCancel');\n\n// Expose all/spread\naxios.all = function all(promises) {\n  return Promise.all(promises);\n};\naxios.spread = require('./helpers/spread');\n\nmodule.exports = axios;\n\n// Allow use of default import syntax in TypeScript\nmodule.exports.default = axios;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/axios.js\n// module id = ./node_modules/axios/lib/axios.js\n// module chunks = 0","'use strict';\n\n/**\n * A `Cancel` is an object that is thrown when an operation is canceled.\n *\n * @class\n * @param {string=} message The message.\n */\nfunction Cancel(message) {\n  this.message = message;\n}\n\nCancel.prototype.toString = function toString() {\n  return 'Cancel' + (this.message ? ': ' + this.message : '');\n};\n\nCancel.prototype.__CANCEL__ = true;\n\nmodule.exports = Cancel;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/cancel/Cancel.js\n// module id = ./node_modules/axios/lib/cancel/Cancel.js\n// module chunks = 0","'use strict';\n\nvar Cancel = require('./Cancel');\n\n/**\n * A `CancelToken` is an object that can be used to request cancellation of an operation.\n *\n * @class\n * @param {Function} executor The executor function.\n */\nfunction CancelToken(executor) {\n  if (typeof executor !== 'function') {\n    throw new TypeError('executor must be a function.');\n  }\n\n  var resolvePromise;\n  this.promise = new Promise(function promiseExecutor(resolve) {\n    resolvePromise = resolve;\n  });\n\n  var token = this;\n  executor(function cancel(message) {\n    if (token.reason) {\n      // Cancellation has already been requested\n      return;\n    }\n\n    token.reason = new Cancel(message);\n    resolvePromise(token.reason);\n  });\n}\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nCancelToken.prototype.throwIfRequested = function throwIfRequested() {\n  if (this.reason) {\n    throw this.reason;\n  }\n};\n\n/**\n * Returns an object that contains a new `CancelToken` and a function that, when called,\n * cancels the `CancelToken`.\n */\nCancelToken.source = function source() {\n  var cancel;\n  var token = new CancelToken(function executor(c) {\n    cancel = c;\n  });\n  return {\n    token: token,\n    cancel: cancel\n  };\n};\n\nmodule.exports = CancelToken;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/cancel/CancelToken.js\n// module id = ./node_modules/axios/lib/cancel/CancelToken.js\n// module chunks = 0","'use strict';\n\nmodule.exports = function isCancel(value) {\n  return !!(value && value.__CANCEL__);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/cancel/isCancel.js\n// module id = ./node_modules/axios/lib/cancel/isCancel.js\n// module chunks = 0","'use strict';\n\nvar defaults = require('./../defaults');\nvar utils = require('./../utils');\nvar InterceptorManager = require('./InterceptorManager');\nvar dispatchRequest = require('./dispatchRequest');\n\n/**\n * Create a new instance of Axios\n *\n * @param {Object} instanceConfig The default config for the instance\n */\nfunction Axios(instanceConfig) {\n  this.defaults = instanceConfig;\n  this.interceptors = {\n    request: new InterceptorManager(),\n    response: new InterceptorManager()\n  };\n}\n\n/**\n * Dispatch a request\n *\n * @param {Object} config The config specific for this request (merged with this.defaults)\n */\nAxios.prototype.request = function request(config) {\n  /*eslint no-param-reassign:0*/\n  // Allow for axios('example/url'[, config]) a la fetch API\n  if (typeof config === 'string') {\n    config = utils.merge({\n      url: arguments[0]\n    }, arguments[1]);\n  }\n\n  config = utils.merge(defaults, {method: 'get'}, this.defaults, config);\n  config.method = config.method.toLowerCase();\n\n  // Hook up interceptors middleware\n  var chain = [dispatchRequest, undefined];\n  var promise = Promise.resolve(config);\n\n  this.interceptors.request.forEach(function unshiftRequestInterceptors(interceptor) {\n    chain.unshift(interceptor.fulfilled, interceptor.rejected);\n  });\n\n  this.interceptors.response.forEach(function pushResponseInterceptors(interceptor) {\n    chain.push(interceptor.fulfilled, interceptor.rejected);\n  });\n\n  while (chain.length) {\n    promise = promise.then(chain.shift(), chain.shift());\n  }\n\n  return promise;\n};\n\n// Provide aliases for supported request methods\nutils.forEach(['delete', 'get', 'head', 'options'], function forEachMethodNoData(method) {\n  /*eslint func-names:0*/\n  Axios.prototype[method] = function(url, config) {\n    return this.request(utils.merge(config || {}, {\n      method: method,\n      url: url\n    }));\n  };\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n  /*eslint func-names:0*/\n  Axios.prototype[method] = function(url, data, config) {\n    return this.request(utils.merge(config || {}, {\n      method: method,\n      url: url,\n      data: data\n    }));\n  };\n});\n\nmodule.exports = Axios;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/core/Axios.js\n// module id = ./node_modules/axios/lib/core/Axios.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\nfunction InterceptorManager() {\n  this.handlers = [];\n}\n\n/**\n * Add a new interceptor to the stack\n *\n * @param {Function} fulfilled The function to handle `then` for a `Promise`\n * @param {Function} rejected The function to handle `reject` for a `Promise`\n *\n * @return {Number} An ID used to remove interceptor later\n */\nInterceptorManager.prototype.use = function use(fulfilled, rejected) {\n  this.handlers.push({\n    fulfilled: fulfilled,\n    rejected: rejected\n  });\n  return this.handlers.length - 1;\n};\n\n/**\n * Remove an interceptor from the stack\n *\n * @param {Number} id The ID that was returned by `use`\n */\nInterceptorManager.prototype.eject = function eject(id) {\n  if (this.handlers[id]) {\n    this.handlers[id] = null;\n  }\n};\n\n/**\n * Iterate over all the registered interceptors\n *\n * This method is particularly useful for skipping over any\n * interceptors that may have become `null` calling `eject`.\n *\n * @param {Function} fn The function to call for each interceptor\n */\nInterceptorManager.prototype.forEach = function forEach(fn) {\n  utils.forEach(this.handlers, function forEachHandler(h) {\n    if (h !== null) {\n      fn(h);\n    }\n  });\n};\n\nmodule.exports = InterceptorManager;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/core/InterceptorManager.js\n// module id = ./node_modules/axios/lib/core/InterceptorManager.js\n// module chunks = 0","'use strict';\n\nvar enhanceError = require('./enhanceError');\n\n/**\n * Create an Error with the specified message, config, error code, request and response.\n *\n * @param {string} message The error message.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The created error.\n */\nmodule.exports = function createError(message, config, code, request, response) {\n  var error = new Error(message);\n  return enhanceError(error, config, code, request, response);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/core/createError.js\n// module id = ./node_modules/axios/lib/core/createError.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\nvar transformData = require('./transformData');\nvar isCancel = require('../cancel/isCancel');\nvar defaults = require('../defaults');\nvar isAbsoluteURL = require('./../helpers/isAbsoluteURL');\nvar combineURLs = require('./../helpers/combineURLs');\n\n/**\n * Throws a `Cancel` if cancellation has been requested.\n */\nfunction throwIfCancellationRequested(config) {\n  if (config.cancelToken) {\n    config.cancelToken.throwIfRequested();\n  }\n}\n\n/**\n * Dispatch a request to the server using the configured adapter.\n *\n * @param {object} config The config that is to be used for the request\n * @returns {Promise} The Promise to be fulfilled\n */\nmodule.exports = function dispatchRequest(config) {\n  throwIfCancellationRequested(config);\n\n  // Support baseURL config\n  if (config.baseURL && !isAbsoluteURL(config.url)) {\n    config.url = combineURLs(config.baseURL, config.url);\n  }\n\n  // Ensure headers exist\n  config.headers = config.headers || {};\n\n  // Transform request data\n  config.data = transformData(\n    config.data,\n    config.headers,\n    config.transformRequest\n  );\n\n  // Flatten headers\n  config.headers = utils.merge(\n    config.headers.common || {},\n    config.headers[config.method] || {},\n    config.headers || {}\n  );\n\n  utils.forEach(\n    ['delete', 'get', 'head', 'post', 'put', 'patch', 'common'],\n    function cleanHeaderConfig(method) {\n      delete config.headers[method];\n    }\n  );\n\n  var adapter = config.adapter || defaults.adapter;\n\n  return adapter(config).then(function onAdapterResolution(response) {\n    throwIfCancellationRequested(config);\n\n    // Transform response data\n    response.data = transformData(\n      response.data,\n      response.headers,\n      config.transformResponse\n    );\n\n    return response;\n  }, function onAdapterRejection(reason) {\n    if (!isCancel(reason)) {\n      throwIfCancellationRequested(config);\n\n      // Transform response data\n      if (reason && reason.response) {\n        reason.response.data = transformData(\n          reason.response.data,\n          reason.response.headers,\n          config.transformResponse\n        );\n      }\n    }\n\n    return Promise.reject(reason);\n  });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/core/dispatchRequest.js\n// module id = ./node_modules/axios/lib/core/dispatchRequest.js\n// module chunks = 0","'use strict';\n\n/**\n * Update an Error with the specified config, error code, and response.\n *\n * @param {Error} error The error to update.\n * @param {Object} config The config.\n * @param {string} [code] The error code (for example, 'ECONNABORTED').\n * @param {Object} [request] The request.\n * @param {Object} [response] The response.\n * @returns {Error} The error.\n */\nmodule.exports = function enhanceError(error, config, code, request, response) {\n  error.config = config;\n  if (code) {\n    error.code = code;\n  }\n  error.request = request;\n  error.response = response;\n  return error;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/core/enhanceError.js\n// module id = ./node_modules/axios/lib/core/enhanceError.js\n// module chunks = 0","'use strict';\n\nvar createError = require('./createError');\n\n/**\n * Resolve or reject a Promise based on response status.\n *\n * @param {Function} resolve A function that resolves the promise.\n * @param {Function} reject A function that rejects the promise.\n * @param {object} response The response.\n */\nmodule.exports = function settle(resolve, reject, response) {\n  var validateStatus = response.config.validateStatus;\n  // Note: status is not exposed by XDomainRequest\n  if (!response.status || !validateStatus || validateStatus(response.status)) {\n    resolve(response);\n  } else {\n    reject(createError(\n      'Request failed with status code ' + response.status,\n      response.config,\n      null,\n      response.request,\n      response\n    ));\n  }\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/core/settle.js\n// module id = ./node_modules/axios/lib/core/settle.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\n/**\n * Transform the data for a request or a response\n *\n * @param {Object|String} data The data to be transformed\n * @param {Array} headers The headers for the request or response\n * @param {Array|Function} fns A single function or Array of functions\n * @returns {*} The resulting transformed data\n */\nmodule.exports = function transformData(data, headers, fns) {\n  /*eslint no-param-reassign:0*/\n  utils.forEach(fns, function transform(fn) {\n    data = fn(data, headers);\n  });\n\n  return data;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/core/transformData.js\n// module id = ./node_modules/axios/lib/core/transformData.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./utils');\nvar normalizeHeaderName = require('./helpers/normalizeHeaderName');\n\nvar DEFAULT_CONTENT_TYPE = {\n  'Content-Type': 'application/x-www-form-urlencoded'\n};\n\nfunction setContentTypeIfUnset(headers, value) {\n  if (!utils.isUndefined(headers) && utils.isUndefined(headers['Content-Type'])) {\n    headers['Content-Type'] = value;\n  }\n}\n\nfunction getDefaultAdapter() {\n  var adapter;\n  if (typeof XMLHttpRequest !== 'undefined') {\n    // For browsers use XHR adapter\n    adapter = require('./adapters/xhr');\n  } else if (typeof process !== 'undefined') {\n    // For node use HTTP adapter\n    adapter = require('./adapters/http');\n  }\n  return adapter;\n}\n\nvar defaults = {\n  adapter: getDefaultAdapter(),\n\n  transformRequest: [function transformRequest(data, headers) {\n    normalizeHeaderName(headers, 'Content-Type');\n    if (utils.isFormData(data) ||\n      utils.isArrayBuffer(data) ||\n      utils.isBuffer(data) ||\n      utils.isStream(data) ||\n      utils.isFile(data) ||\n      utils.isBlob(data)\n    ) {\n      return data;\n    }\n    if (utils.isArrayBufferView(data)) {\n      return data.buffer;\n    }\n    if (utils.isURLSearchParams(data)) {\n      setContentTypeIfUnset(headers, 'application/x-www-form-urlencoded;charset=utf-8');\n      return data.toString();\n    }\n    if (utils.isObject(data)) {\n      setContentTypeIfUnset(headers, 'application/json;charset=utf-8');\n      return JSON.stringify(data);\n    }\n    return data;\n  }],\n\n  transformResponse: [function transformResponse(data) {\n    /*eslint no-param-reassign:0*/\n    if (typeof data === 'string') {\n      try {\n        data = JSON.parse(data);\n      } catch (e) { /* Ignore */ }\n    }\n    return data;\n  }],\n\n  /**\n   * A timeout in milliseconds to abort a request. If set to 0 (default) a\n   * timeout is not created.\n   */\n  timeout: 0,\n\n  xsrfCookieName: 'XSRF-TOKEN',\n  xsrfHeaderName: 'X-XSRF-TOKEN',\n\n  maxContentLength: -1,\n\n  validateStatus: function validateStatus(status) {\n    return status >= 200 && status < 300;\n  }\n};\n\ndefaults.headers = {\n  common: {\n    'Accept': 'application/json, text/plain, */*'\n  }\n};\n\nutils.forEach(['delete', 'get', 'head'], function forEachMethodNoData(method) {\n  defaults.headers[method] = {};\n});\n\nutils.forEach(['post', 'put', 'patch'], function forEachMethodWithData(method) {\n  defaults.headers[method] = utils.merge(DEFAULT_CONTENT_TYPE);\n});\n\nmodule.exports = defaults;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/defaults.js\n// module id = ./node_modules/axios/lib/defaults.js\n// module chunks = 0","'use strict';\n\nmodule.exports = function bind(fn, thisArg) {\n  return function wrap() {\n    var args = new Array(arguments.length);\n    for (var i = 0; i < args.length; i++) {\n      args[i] = arguments[i];\n    }\n    return fn.apply(thisArg, args);\n  };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/helpers/bind.js\n// module id = ./node_modules/axios/lib/helpers/bind.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\nfunction encode(val) {\n  return encodeURIComponent(val).\n    replace(/%40/gi, '@').\n    replace(/%3A/gi, ':').\n    replace(/%24/g, '$').\n    replace(/%2C/gi, ',').\n    replace(/%20/g, '+').\n    replace(/%5B/gi, '[').\n    replace(/%5D/gi, ']');\n}\n\n/**\n * Build a URL by appending params to the end\n *\n * @param {string} url The base of the url (e.g., http://www.google.com)\n * @param {object} [params] The params to be appended\n * @returns {string} The formatted url\n */\nmodule.exports = function buildURL(url, params, paramsSerializer) {\n  /*eslint no-param-reassign:0*/\n  if (!params) {\n    return url;\n  }\n\n  var serializedParams;\n  if (paramsSerializer) {\n    serializedParams = paramsSerializer(params);\n  } else if (utils.isURLSearchParams(params)) {\n    serializedParams = params.toString();\n  } else {\n    var parts = [];\n\n    utils.forEach(params, function serialize(val, key) {\n      if (val === null || typeof val === 'undefined') {\n        return;\n      }\n\n      if (utils.isArray(val)) {\n        key = key + '[]';\n      } else {\n        val = [val];\n      }\n\n      utils.forEach(val, function parseValue(v) {\n        if (utils.isDate(v)) {\n          v = v.toISOString();\n        } else if (utils.isObject(v)) {\n          v = JSON.stringify(v);\n        }\n        parts.push(encode(key) + '=' + encode(v));\n      });\n    });\n\n    serializedParams = parts.join('&');\n  }\n\n  if (serializedParams) {\n    url += (url.indexOf('?') === -1 ? '?' : '&') + serializedParams;\n  }\n\n  return url;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/helpers/buildURL.js\n// module id = ./node_modules/axios/lib/helpers/buildURL.js\n// module chunks = 0","'use strict';\n\n/**\n * Creates a new URL by combining the specified URLs\n *\n * @param {string} baseURL The base URL\n * @param {string} relativeURL The relative URL\n * @returns {string} The combined URL\n */\nmodule.exports = function combineURLs(baseURL, relativeURL) {\n  return relativeURL\n    ? baseURL.replace(/\\/+$/, '') + '/' + relativeURL.replace(/^\\/+/, '')\n    : baseURL;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/helpers/combineURLs.js\n// module id = ./node_modules/axios/lib/helpers/combineURLs.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n  utils.isStandardBrowserEnv() ?\n\n  // Standard browser envs support document.cookie\n  (function standardBrowserEnv() {\n    return {\n      write: function write(name, value, expires, path, domain, secure) {\n        var cookie = [];\n        cookie.push(name + '=' + encodeURIComponent(value));\n\n        if (utils.isNumber(expires)) {\n          cookie.push('expires=' + new Date(expires).toGMTString());\n        }\n\n        if (utils.isString(path)) {\n          cookie.push('path=' + path);\n        }\n\n        if (utils.isString(domain)) {\n          cookie.push('domain=' + domain);\n        }\n\n        if (secure === true) {\n          cookie.push('secure');\n        }\n\n        document.cookie = cookie.join('; ');\n      },\n\n      read: function read(name) {\n        var match = document.cookie.match(new RegExp('(^|;\\\\s*)(' + name + ')=([^;]*)'));\n        return (match ? decodeURIComponent(match[3]) : null);\n      },\n\n      remove: function remove(name) {\n        this.write(name, '', Date.now() - 86400000);\n      }\n    };\n  })() :\n\n  // Non standard browser env (web workers, react-native) lack needed support.\n  (function nonStandardBrowserEnv() {\n    return {\n      write: function write() {},\n      read: function read() { return null; },\n      remove: function remove() {}\n    };\n  })()\n);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/helpers/cookies.js\n// module id = ./node_modules/axios/lib/helpers/cookies.js\n// module chunks = 0","'use strict';\n\n/**\n * Determines whether the specified URL is absolute\n *\n * @param {string} url The URL to test\n * @returns {boolean} True if the specified URL is absolute, otherwise false\n */\nmodule.exports = function isAbsoluteURL(url) {\n  // A URL is considered absolute if it begins with \"<scheme>://\" or \"//\" (protocol-relative URL).\n  // RFC 3986 defines scheme name as a sequence of characters beginning with a letter and followed\n  // by any combination of letters, digits, plus, period, or hyphen.\n  return /^([a-z][a-z\\d\\+\\-\\.]*:)?\\/\\//i.test(url);\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/helpers/isAbsoluteURL.js\n// module id = ./node_modules/axios/lib/helpers/isAbsoluteURL.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\nmodule.exports = (\n  utils.isStandardBrowserEnv() ?\n\n  // Standard browser envs have full support of the APIs needed to test\n  // whether the request URL is of the same origin as current location.\n  (function standardBrowserEnv() {\n    var msie = /(msie|trident)/i.test(navigator.userAgent);\n    var urlParsingNode = document.createElement('a');\n    var originURL;\n\n    /**\n    * Parse a URL to discover it's components\n    *\n    * @param {String} url The URL to be parsed\n    * @returns {Object}\n    */\n    function resolveURL(url) {\n      var href = url;\n\n      if (msie) {\n        // IE needs attribute set twice to normalize properties\n        urlParsingNode.setAttribute('href', href);\n        href = urlParsingNode.href;\n      }\n\n      urlParsingNode.setAttribute('href', href);\n\n      // urlParsingNode provides the UrlUtils interface - http://url.spec.whatwg.org/#urlutils\n      return {\n        href: urlParsingNode.href,\n        protocol: urlParsingNode.protocol ? urlParsingNode.protocol.replace(/:$/, '') : '',\n        host: urlParsingNode.host,\n        search: urlParsingNode.search ? urlParsingNode.search.replace(/^\\?/, '') : '',\n        hash: urlParsingNode.hash ? urlParsingNode.hash.replace(/^#/, '') : '',\n        hostname: urlParsingNode.hostname,\n        port: urlParsingNode.port,\n        pathname: (urlParsingNode.pathname.charAt(0) === '/') ?\n                  urlParsingNode.pathname :\n                  '/' + urlParsingNode.pathname\n      };\n    }\n\n    originURL = resolveURL(window.location.href);\n\n    /**\n    * Determine if a URL shares the same origin as the current location\n    *\n    * @param {String} requestURL The URL to test\n    * @returns {boolean} True if URL shares the same origin, otherwise false\n    */\n    return function isURLSameOrigin(requestURL) {\n      var parsed = (utils.isString(requestURL)) ? resolveURL(requestURL) : requestURL;\n      return (parsed.protocol === originURL.protocol &&\n            parsed.host === originURL.host);\n    };\n  })() :\n\n  // Non standard browser envs (web workers, react-native) lack needed support.\n  (function nonStandardBrowserEnv() {\n    return function isURLSameOrigin() {\n      return true;\n    };\n  })()\n);\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/helpers/isURLSameOrigin.js\n// module id = ./node_modules/axios/lib/helpers/isURLSameOrigin.js\n// module chunks = 0","'use strict';\n\nvar utils = require('../utils');\n\nmodule.exports = function normalizeHeaderName(headers, normalizedName) {\n  utils.forEach(headers, function processHeader(value, name) {\n    if (name !== normalizedName && name.toUpperCase() === normalizedName.toUpperCase()) {\n      headers[normalizedName] = value;\n      delete headers[name];\n    }\n  });\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/helpers/normalizeHeaderName.js\n// module id = ./node_modules/axios/lib/helpers/normalizeHeaderName.js\n// module chunks = 0","'use strict';\n\nvar utils = require('./../utils');\n\n// Headers whose duplicates are ignored by node\n// c.f. https://nodejs.org/api/http.html#http_message_headers\nvar ignoreDuplicateOf = [\n  'age', 'authorization', 'content-length', 'content-type', 'etag',\n  'expires', 'from', 'host', 'if-modified-since', 'if-unmodified-since',\n  'last-modified', 'location', 'max-forwards', 'proxy-authorization',\n  'referer', 'retry-after', 'user-agent'\n];\n\n/**\n * Parse headers into an object\n *\n * ```\n * Date: Wed, 27 Aug 2014 08:58:49 GMT\n * Content-Type: application/json\n * Connection: keep-alive\n * Transfer-Encoding: chunked\n * ```\n *\n * @param {String} headers Headers needing to be parsed\n * @returns {Object} Headers parsed into an object\n */\nmodule.exports = function parseHeaders(headers) {\n  var parsed = {};\n  var key;\n  var val;\n  var i;\n\n  if (!headers) { return parsed; }\n\n  utils.forEach(headers.split('\\n'), function parser(line) {\n    i = line.indexOf(':');\n    key = utils.trim(line.substr(0, i)).toLowerCase();\n    val = utils.trim(line.substr(i + 1));\n\n    if (key) {\n      if (parsed[key] && ignoreDuplicateOf.indexOf(key) >= 0) {\n        return;\n      }\n      if (key === 'set-cookie') {\n        parsed[key] = (parsed[key] ? parsed[key] : []).concat([val]);\n      } else {\n        parsed[key] = parsed[key] ? parsed[key] + ', ' + val : val;\n      }\n    }\n  });\n\n  return parsed;\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/helpers/parseHeaders.js\n// module id = ./node_modules/axios/lib/helpers/parseHeaders.js\n// module chunks = 0","'use strict';\n\n/**\n * Syntactic sugar for invoking a function and expanding an array for arguments.\n *\n * Common use case would be to use `Function.prototype.apply`.\n *\n *  ```js\n *  function f(x, y, z) {}\n *  var args = [1, 2, 3];\n *  f.apply(null, args);\n *  ```\n *\n * With `spread` this example can be re-written.\n *\n *  ```js\n *  spread(function(x, y, z) {})([1, 2, 3]);\n *  ```\n *\n * @param {Function} callback\n * @returns {Function}\n */\nmodule.exports = function spread(callback) {\n  return function wrap(arr) {\n    return callback.apply(null, arr);\n  };\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/helpers/spread.js\n// module id = ./node_modules/axios/lib/helpers/spread.js\n// module chunks = 0","'use strict';\n\nvar bind = require('./helpers/bind');\nvar isBuffer = require('is-buffer');\n\n/*global toString:true*/\n\n// utils is a library of generic helper functions non-specific to axios\n\nvar toString = Object.prototype.toString;\n\n/**\n * Determine if a value is an Array\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Array, otherwise false\n */\nfunction isArray(val) {\n  return toString.call(val) === '[object Array]';\n}\n\n/**\n * Determine if a value is an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an ArrayBuffer, otherwise false\n */\nfunction isArrayBuffer(val) {\n  return toString.call(val) === '[object ArrayBuffer]';\n}\n\n/**\n * Determine if a value is a FormData\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an FormData, otherwise false\n */\nfunction isFormData(val) {\n  return (typeof FormData !== 'undefined') && (val instanceof FormData);\n}\n\n/**\n * Determine if a value is a view on an ArrayBuffer\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a view on an ArrayBuffer, otherwise false\n */\nfunction isArrayBufferView(val) {\n  var result;\n  if ((typeof ArrayBuffer !== 'undefined') && (ArrayBuffer.isView)) {\n    result = ArrayBuffer.isView(val);\n  } else {\n    result = (val) && (val.buffer) && (val.buffer instanceof ArrayBuffer);\n  }\n  return result;\n}\n\n/**\n * Determine if a value is a String\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a String, otherwise false\n */\nfunction isString(val) {\n  return typeof val === 'string';\n}\n\n/**\n * Determine if a value is a Number\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Number, otherwise false\n */\nfunction isNumber(val) {\n  return typeof val === 'number';\n}\n\n/**\n * Determine if a value is undefined\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if the value is undefined, otherwise false\n */\nfunction isUndefined(val) {\n  return typeof val === 'undefined';\n}\n\n/**\n * Determine if a value is an Object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is an Object, otherwise false\n */\nfunction isObject(val) {\n  return val !== null && typeof val === 'object';\n}\n\n/**\n * Determine if a value is a Date\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Date, otherwise false\n */\nfunction isDate(val) {\n  return toString.call(val) === '[object Date]';\n}\n\n/**\n * Determine if a value is a File\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a File, otherwise false\n */\nfunction isFile(val) {\n  return toString.call(val) === '[object File]';\n}\n\n/**\n * Determine if a value is a Blob\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Blob, otherwise false\n */\nfunction isBlob(val) {\n  return toString.call(val) === '[object Blob]';\n}\n\n/**\n * Determine if a value is a Function\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Function, otherwise false\n */\nfunction isFunction(val) {\n  return toString.call(val) === '[object Function]';\n}\n\n/**\n * Determine if a value is a Stream\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a Stream, otherwise false\n */\nfunction isStream(val) {\n  return isObject(val) && isFunction(val.pipe);\n}\n\n/**\n * Determine if a value is a URLSearchParams object\n *\n * @param {Object} val The value to test\n * @returns {boolean} True if value is a URLSearchParams object, otherwise false\n */\nfunction isURLSearchParams(val) {\n  return typeof URLSearchParams !== 'undefined' && val instanceof URLSearchParams;\n}\n\n/**\n * Trim excess whitespace off the beginning and end of a string\n *\n * @param {String} str The String to trim\n * @returns {String} The String freed of excess whitespace\n */\nfunction trim(str) {\n  return str.replace(/^\\s*/, '').replace(/\\s*$/, '');\n}\n\n/**\n * Determine if we're running in a standard browser environment\n *\n * This allows axios to run in a web worker, and react-native.\n * Both environments support XMLHttpRequest, but not fully standard globals.\n *\n * web workers:\n *  typeof window -> undefined\n *  typeof document -> undefined\n *\n * react-native:\n *  navigator.product -> 'ReactNative'\n */\nfunction isStandardBrowserEnv() {\n  if (typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {\n    return false;\n  }\n  return (\n    typeof window !== 'undefined' &&\n    typeof document !== 'undefined'\n  );\n}\n\n/**\n * Iterate over an Array or an Object invoking a function for each item.\n *\n * If `obj` is an Array callback will be called passing\n * the value, index, and complete array for each item.\n *\n * If 'obj' is an Object callback will be called passing\n * the value, key, and complete object for each property.\n *\n * @param {Object|Array} obj The object to iterate\n * @param {Function} fn The callback to invoke for each item\n */\nfunction forEach(obj, fn) {\n  // Don't bother if no value provided\n  if (obj === null || typeof obj === 'undefined') {\n    return;\n  }\n\n  // Force an array if not already something iterable\n  if (typeof obj !== 'object') {\n    /*eslint no-param-reassign:0*/\n    obj = [obj];\n  }\n\n  if (isArray(obj)) {\n    // Iterate over array values\n    for (var i = 0, l = obj.length; i < l; i++) {\n      fn.call(null, obj[i], i, obj);\n    }\n  } else {\n    // Iterate over object keys\n    for (var key in obj) {\n      if (Object.prototype.hasOwnProperty.call(obj, key)) {\n        fn.call(null, obj[key], key, obj);\n      }\n    }\n  }\n}\n\n/**\n * Accepts varargs expecting each argument to be an object, then\n * immutably merges the properties of each object and returns result.\n *\n * When multiple objects contain the same key the later object in\n * the arguments list will take precedence.\n *\n * Example:\n *\n * ```js\n * var result = merge({foo: 123}, {foo: 456});\n * console.log(result.foo); // outputs 456\n * ```\n *\n * @param {Object} obj1 Object to merge\n * @returns {Object} Result of all merge properties\n */\nfunction merge(/* obj1, obj2, obj3, ... */) {\n  var result = {};\n  function assignValue(val, key) {\n    if (typeof result[key] === 'object' && typeof val === 'object') {\n      result[key] = merge(result[key], val);\n    } else {\n      result[key] = val;\n    }\n  }\n\n  for (var i = 0, l = arguments.length; i < l; i++) {\n    forEach(arguments[i], assignValue);\n  }\n  return result;\n}\n\n/**\n * Extends object a by mutably adding to it the properties of object b.\n *\n * @param {Object} a The object to be extended\n * @param {Object} b The object to copy properties from\n * @param {Object} thisArg The object to bind function to\n * @return {Object} The resulting value of object a\n */\nfunction extend(a, b, thisArg) {\n  forEach(b, function assignValue(val, key) {\n    if (thisArg && typeof val === 'function') {\n      a[key] = bind(val, thisArg);\n    } else {\n      a[key] = val;\n    }\n  });\n  return a;\n}\n\nmodule.exports = {\n  isArray: isArray,\n  isArrayBuffer: isArrayBuffer,\n  isBuffer: isBuffer,\n  isFormData: isFormData,\n  isArrayBufferView: isArrayBufferView,\n  isString: isString,\n  isNumber: isNumber,\n  isObject: isObject,\n  isUndefined: isUndefined,\n  isDate: isDate,\n  isFile: isFile,\n  isBlob: isBlob,\n  isFunction: isFunction,\n  isStream: isStream,\n  isURLSearchParams: isURLSearchParams,\n  isStandardBrowserEnv: isStandardBrowserEnv,\n  forEach: forEach,\n  merge: merge,\n  extend: extend,\n  trim: trim\n};\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/axios/lib/utils.js\n// module id = ./node_modules/axios/lib/utils.js\n// module chunks = 0","require('../modules/es7.reflect.define-metadata');\nrequire('../modules/es7.reflect.delete-metadata');\nrequire('../modules/es7.reflect.get-metadata');\nrequire('../modules/es7.reflect.get-metadata-keys');\nrequire('../modules/es7.reflect.get-own-metadata');\nrequire('../modules/es7.reflect.get-own-metadata-keys');\nrequire('../modules/es7.reflect.has-metadata');\nrequire('../modules/es7.reflect.has-own-metadata');\nrequire('../modules/es7.reflect.metadata');\nmodule.exports = require('../modules/_core').Reflect;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/core-js/es7/reflect.js\n// module id = ./node_modules/core-js/es7/reflect.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/_core.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/_core.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/_core.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.define-metadata.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/es7.reflect.define-metadata.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/es7.reflect.define-metadata.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.delete-metadata.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/es7.reflect.delete-metadata.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/es7.reflect.delete-metadata.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/es7.reflect.get-metadata-keys.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.get-metadata.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/es7.reflect.get-metadata.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/es7.reflect.get-metadata.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/es7.reflect.get-own-metadata-keys.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.get-own-metadata.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/es7.reflect.get-own-metadata.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/es7.reflect.get-own-metadata.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.has-metadata.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/es7.reflect.has-metadata.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/es7.reflect.has-metadata.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.has-own-metadata.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/es7.reflect.has-own-metadata.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/es7.reflect.has-own-metadata.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/core-js/modules/es7.reflect.metadata.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/core-js/modules/es7.reflect.metadata.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/core-js/modules/es7.reflect.metadata.js\n// module chunks = 0","/*!\n * Determine if an object is a Buffer\n *\n * @author   Feross Aboukhadijeh <https://feross.org>\n * @license  MIT\n */\n\n// The _isBuffer check is for Safari 5-7 support, because it's missing\n// Object.prototype.constructor. Remove this eventually\nmodule.exports = function (obj) {\n  return obj != null && (isBuffer(obj) || isSlowBuffer(obj) || !!obj._isBuffer)\n}\n\nfunction isBuffer (obj) {\n  return !!obj.constructor && typeof obj.constructor.isBuffer === 'function' && obj.constructor.isBuffer(obj)\n}\n\n// For Node v0.10 support. Remove this eventually.\nfunction isSlowBuffer (obj) {\n  return typeof obj.readFloatLE === 'function' && typeof obj.slice === 'function' && isBuffer(obj.slice(0, 0))\n}\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/is-buffer/index.js\n// module id = ./node_modules/is-buffer/index.js\n// module chunks = 0","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar DataView = getNative(root, 'DataView');\n\nmodule.exports = DataView;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_DataView.js\n// module id = ./node_modules/lodash/_DataView.js\n// module chunks = 0","var hashClear = require('./_hashClear'),\n    hashDelete = require('./_hashDelete'),\n    hashGet = require('./_hashGet'),\n    hashHas = require('./_hashHas'),\n    hashSet = require('./_hashSet');\n\n/**\n * Creates a hash object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Hash(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `Hash`.\nHash.prototype.clear = hashClear;\nHash.prototype['delete'] = hashDelete;\nHash.prototype.get = hashGet;\nHash.prototype.has = hashHas;\nHash.prototype.set = hashSet;\n\nmodule.exports = Hash;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_Hash.js\n// module id = ./node_modules/lodash/_Hash.js\n// module chunks = 0","var listCacheClear = require('./_listCacheClear'),\n    listCacheDelete = require('./_listCacheDelete'),\n    listCacheGet = require('./_listCacheGet'),\n    listCacheHas = require('./_listCacheHas'),\n    listCacheSet = require('./_listCacheSet');\n\n/**\n * Creates an list cache object.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction ListCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `ListCache`.\nListCache.prototype.clear = listCacheClear;\nListCache.prototype['delete'] = listCacheDelete;\nListCache.prototype.get = listCacheGet;\nListCache.prototype.has = listCacheHas;\nListCache.prototype.set = listCacheSet;\n\nmodule.exports = ListCache;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_ListCache.js\n// module id = ./node_modules/lodash/_ListCache.js\n// module chunks = 0","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Map = getNative(root, 'Map');\n\nmodule.exports = Map;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_Map.js\n// module id = ./node_modules/lodash/_Map.js\n// module chunks = 0","var mapCacheClear = require('./_mapCacheClear'),\n    mapCacheDelete = require('./_mapCacheDelete'),\n    mapCacheGet = require('./_mapCacheGet'),\n    mapCacheHas = require('./_mapCacheHas'),\n    mapCacheSet = require('./_mapCacheSet');\n\n/**\n * Creates a map cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction MapCache(entries) {\n  var index = -1,\n      length = entries == null ? 0 : entries.length;\n\n  this.clear();\n  while (++index < length) {\n    var entry = entries[index];\n    this.set(entry[0], entry[1]);\n  }\n}\n\n// Add methods to `MapCache`.\nMapCache.prototype.clear = mapCacheClear;\nMapCache.prototype['delete'] = mapCacheDelete;\nMapCache.prototype.get = mapCacheGet;\nMapCache.prototype.has = mapCacheHas;\nMapCache.prototype.set = mapCacheSet;\n\nmodule.exports = MapCache;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_MapCache.js\n// module id = ./node_modules/lodash/_MapCache.js\n// module chunks = 0","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Promise = getNative(root, 'Promise');\n\nmodule.exports = Promise;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_Promise.js\n// module id = ./node_modules/lodash/_Promise.js\n// module chunks = 0","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar Set = getNative(root, 'Set');\n\nmodule.exports = Set;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_Set.js\n// module id = ./node_modules/lodash/_Set.js\n// module chunks = 0","var MapCache = require('./_MapCache'),\n    setCacheAdd = require('./_setCacheAdd'),\n    setCacheHas = require('./_setCacheHas');\n\n/**\n *\n * Creates an array cache object to store unique values.\n *\n * @private\n * @constructor\n * @param {Array} [values] The values to cache.\n */\nfunction SetCache(values) {\n  var index = -1,\n      length = values == null ? 0 : values.length;\n\n  this.__data__ = new MapCache;\n  while (++index < length) {\n    this.add(values[index]);\n  }\n}\n\n// Add methods to `SetCache`.\nSetCache.prototype.add = SetCache.prototype.push = setCacheAdd;\nSetCache.prototype.has = setCacheHas;\n\nmodule.exports = SetCache;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_SetCache.js\n// module id = ./node_modules/lodash/_SetCache.js\n// module chunks = 0","var ListCache = require('./_ListCache'),\n    stackClear = require('./_stackClear'),\n    stackDelete = require('./_stackDelete'),\n    stackGet = require('./_stackGet'),\n    stackHas = require('./_stackHas'),\n    stackSet = require('./_stackSet');\n\n/**\n * Creates a stack cache object to store key-value pairs.\n *\n * @private\n * @constructor\n * @param {Array} [entries] The key-value pairs to cache.\n */\nfunction Stack(entries) {\n  var data = this.__data__ = new ListCache(entries);\n  this.size = data.size;\n}\n\n// Add methods to `Stack`.\nStack.prototype.clear = stackClear;\nStack.prototype['delete'] = stackDelete;\nStack.prototype.get = stackGet;\nStack.prototype.has = stackHas;\nStack.prototype.set = stackSet;\n\nmodule.exports = Stack;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_Stack.js\n// module id = ./node_modules/lodash/_Stack.js\n// module chunks = 0","var root = require('./_root');\n\n/** Built-in value references. */\nvar Symbol = root.Symbol;\n\nmodule.exports = Symbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_Symbol.js\n// module id = ./node_modules/lodash/_Symbol.js\n// module chunks = 0","var root = require('./_root');\n\n/** Built-in value references. */\nvar Uint8Array = root.Uint8Array;\n\nmodule.exports = Uint8Array;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_Uint8Array.js\n// module id = ./node_modules/lodash/_Uint8Array.js\n// module chunks = 0","var getNative = require('./_getNative'),\n    root = require('./_root');\n\n/* Built-in method references that are verified to be native. */\nvar WeakMap = getNative(root, 'WeakMap');\n\nmodule.exports = WeakMap;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_WeakMap.js\n// module id = ./node_modules/lodash/_WeakMap.js\n// module chunks = 0","/**\n * A specialized version of `_.filter` for arrays without support for\n * iteratee shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {Array} Returns the new filtered array.\n */\nfunction arrayFilter(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      resIndex = 0,\n      result = [];\n\n  while (++index < length) {\n    var value = array[index];\n    if (predicate(value, index, array)) {\n      result[resIndex++] = value;\n    }\n  }\n  return result;\n}\n\nmodule.exports = arrayFilter;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_arrayFilter.js\n// module id = ./node_modules/lodash/_arrayFilter.js\n// module chunks = 0","var baseTimes = require('./_baseTimes'),\n    isArguments = require('./isArguments'),\n    isArray = require('./isArray'),\n    isBuffer = require('./isBuffer'),\n    isIndex = require('./_isIndex'),\n    isTypedArray = require('./isTypedArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Creates an array of the enumerable property names of the array-like `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @param {boolean} inherited Specify returning inherited property names.\n * @returns {Array} Returns the array of property names.\n */\nfunction arrayLikeKeys(value, inherited) {\n  var isArr = isArray(value),\n      isArg = !isArr && isArguments(value),\n      isBuff = !isArr && !isArg && isBuffer(value),\n      isType = !isArr && !isArg && !isBuff && isTypedArray(value),\n      skipIndexes = isArr || isArg || isBuff || isType,\n      result = skipIndexes ? baseTimes(value.length, String) : [],\n      length = result.length;\n\n  for (var key in value) {\n    if ((inherited || hasOwnProperty.call(value, key)) &&\n        !(skipIndexes && (\n           // Safari 9 has enumerable `arguments.length` in strict mode.\n           key == 'length' ||\n           // Node.js 0.10 has enumerable non-index properties on buffers.\n           (isBuff && (key == 'offset' || key == 'parent')) ||\n           // PhantomJS 2 has enumerable non-index properties on typed arrays.\n           (isType && (key == 'buffer' || key == 'byteLength' || key == 'byteOffset')) ||\n           // Skip index properties.\n           isIndex(key, length)\n        ))) {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nmodule.exports = arrayLikeKeys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_arrayLikeKeys.js\n// module id = ./node_modules/lodash/_arrayLikeKeys.js\n// module chunks = 0","/**\n * A specialized version of `_.map` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction arrayMap(array, iteratee) {\n  var index = -1,\n      length = array == null ? 0 : array.length,\n      result = Array(length);\n\n  while (++index < length) {\n    result[index] = iteratee(array[index], index, array);\n  }\n  return result;\n}\n\nmodule.exports = arrayMap;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_arrayMap.js\n// module id = ./node_modules/lodash/_arrayMap.js\n// module chunks = 0","/**\n * Appends the elements of `values` to `array`.\n *\n * @private\n * @param {Array} array The array to modify.\n * @param {Array} values The values to append.\n * @returns {Array} Returns `array`.\n */\nfunction arrayPush(array, values) {\n  var index = -1,\n      length = values.length,\n      offset = array.length;\n\n  while (++index < length) {\n    array[offset + index] = values[index];\n  }\n  return array;\n}\n\nmodule.exports = arrayPush;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_arrayPush.js\n// module id = ./node_modules/lodash/_arrayPush.js\n// module chunks = 0","/**\n * A specialized version of `_.some` for arrays without support for iteratee\n * shorthands.\n *\n * @private\n * @param {Array} [array] The array to iterate over.\n * @param {Function} predicate The function invoked per iteration.\n * @returns {boolean} Returns `true` if any element passes the predicate check,\n *  else `false`.\n */\nfunction arraySome(array, predicate) {\n  var index = -1,\n      length = array == null ? 0 : array.length;\n\n  while (++index < length) {\n    if (predicate(array[index], index, array)) {\n      return true;\n    }\n  }\n  return false;\n}\n\nmodule.exports = arraySome;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_arraySome.js\n// module id = ./node_modules/lodash/_arraySome.js\n// module chunks = 0","var eq = require('./eq');\n\n/**\n * Gets the index at which the `key` is found in `array` of key-value pairs.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {*} key The key to search for.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction assocIndexOf(array, key) {\n  var length = array.length;\n  while (length--) {\n    if (eq(array[length][0], key)) {\n      return length;\n    }\n  }\n  return -1;\n}\n\nmodule.exports = assocIndexOf;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_assocIndexOf.js\n// module id = ./node_modules/lodash/_assocIndexOf.js\n// module chunks = 0","var baseForOwn = require('./_baseForOwn'),\n    createBaseEach = require('./_createBaseEach');\n\n/**\n * The base implementation of `_.forEach` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array|Object} Returns `collection`.\n */\nvar baseEach = createBaseEach(baseForOwn);\n\nmodule.exports = baseEach;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseEach.js\n// module id = ./node_modules/lodash/_baseEach.js\n// module chunks = 0","/**\n * The base implementation of `_.findIndex` and `_.findLastIndex` without\n * support for iteratee shorthands.\n *\n * @private\n * @param {Array} array The array to inspect.\n * @param {Function} predicate The function invoked per iteration.\n * @param {number} fromIndex The index to search from.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {number} Returns the index of the matched value, else `-1`.\n */\nfunction baseFindIndex(array, predicate, fromIndex, fromRight) {\n  var length = array.length,\n      index = fromIndex + (fromRight ? 1 : -1);\n\n  while ((fromRight ? index-- : ++index < length)) {\n    if (predicate(array[index], index, array)) {\n      return index;\n    }\n  }\n  return -1;\n}\n\nmodule.exports = baseFindIndex;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseFindIndex.js\n// module id = ./node_modules/lodash/_baseFindIndex.js\n// module chunks = 0","var createBaseFor = require('./_createBaseFor');\n\n/**\n * The base implementation of `baseForOwn` which iterates over `object`\n * properties returned by `keysFunc` and invokes `iteratee` for each property.\n * Iteratee functions may exit iteration early by explicitly returning `false`.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @returns {Object} Returns `object`.\n */\nvar baseFor = createBaseFor();\n\nmodule.exports = baseFor;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseFor.js\n// module id = ./node_modules/lodash/_baseFor.js\n// module chunks = 0","var baseFor = require('./_baseFor'),\n    keys = require('./keys');\n\n/**\n * The base implementation of `_.forOwn` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Object} Returns `object`.\n */\nfunction baseForOwn(object, iteratee) {\n  return object && baseFor(object, iteratee, keys);\n}\n\nmodule.exports = baseForOwn;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseForOwn.js\n// module id = ./node_modules/lodash/_baseForOwn.js\n// module chunks = 0","var castPath = require('./_castPath'),\n    toKey = require('./_toKey');\n\n/**\n * The base implementation of `_.get` without support for default values.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @returns {*} Returns the resolved value.\n */\nfunction baseGet(object, path) {\n  path = castPath(path, object);\n\n  var index = 0,\n      length = path.length;\n\n  while (object != null && index < length) {\n    object = object[toKey(path[index++])];\n  }\n  return (index && index == length) ? object : undefined;\n}\n\nmodule.exports = baseGet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseGet.js\n// module id = ./node_modules/lodash/_baseGet.js\n// module chunks = 0","var arrayPush = require('./_arrayPush'),\n    isArray = require('./isArray');\n\n/**\n * The base implementation of `getAllKeys` and `getAllKeysIn` which uses\n * `keysFunc` and `symbolsFunc` to get the enumerable property names and\n * symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Function} keysFunc The function to get the keys of `object`.\n * @param {Function} symbolsFunc The function to get the symbols of `object`.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction baseGetAllKeys(object, keysFunc, symbolsFunc) {\n  var result = keysFunc(object);\n  return isArray(object) ? result : arrayPush(result, symbolsFunc(object));\n}\n\nmodule.exports = baseGetAllKeys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseGetAllKeys.js\n// module id = ./node_modules/lodash/_baseGetAllKeys.js\n// module chunks = 0","var Symbol = require('./_Symbol'),\n    getRawTag = require('./_getRawTag'),\n    objectToString = require('./_objectToString');\n\n/** `Object#toString` result references. */\nvar nullTag = '[object Null]',\n    undefinedTag = '[object Undefined]';\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * The base implementation of `getTag` without fallbacks for buggy environments.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nfunction baseGetTag(value) {\n  if (value == null) {\n    return value === undefined ? undefinedTag : nullTag;\n  }\n  return (symToStringTag && symToStringTag in Object(value))\n    ? getRawTag(value)\n    : objectToString(value);\n}\n\nmodule.exports = baseGetTag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseGetTag.js\n// module id = ./node_modules/lodash/_baseGetTag.js\n// module chunks = 0","/**\n * The base implementation of `_.hasIn` without support for deep paths.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {Array|string} key The key to check.\n * @returns {boolean} Returns `true` if `key` exists, else `false`.\n */\nfunction baseHasIn(object, key) {\n  return object != null && key in Object(object);\n}\n\nmodule.exports = baseHasIn;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseHasIn.js\n// module id = ./node_modules/lodash/_baseHasIn.js\n// module chunks = 0","var baseGetTag = require('./_baseGetTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]';\n\n/**\n * The base implementation of `_.isArguments`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n */\nfunction baseIsArguments(value) {\n  return isObjectLike(value) && baseGetTag(value) == argsTag;\n}\n\nmodule.exports = baseIsArguments;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseIsArguments.js\n// module id = ./node_modules/lodash/_baseIsArguments.js\n// module chunks = 0","var baseIsEqualDeep = require('./_baseIsEqualDeep'),\n    isObjectLike = require('./isObjectLike');\n\n/**\n * The base implementation of `_.isEqual` which supports partial comparisons\n * and tracks traversed objects.\n *\n * @private\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @param {boolean} bitmask The bitmask flags.\n *  1 - Unordered comparison\n *  2 - Partial comparison\n * @param {Function} [customizer] The function to customize comparisons.\n * @param {Object} [stack] Tracks traversed `value` and `other` objects.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n */\nfunction baseIsEqual(value, other, bitmask, customizer, stack) {\n  if (value === other) {\n    return true;\n  }\n  if (value == null || other == null || (!isObjectLike(value) && !isObjectLike(other))) {\n    return value !== value && other !== other;\n  }\n  return baseIsEqualDeep(value, other, bitmask, customizer, baseIsEqual, stack);\n}\n\nmodule.exports = baseIsEqual;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseIsEqual.js\n// module id = ./node_modules/lodash/_baseIsEqual.js\n// module chunks = 0","var Stack = require('./_Stack'),\n    equalArrays = require('./_equalArrays'),\n    equalByTag = require('./_equalByTag'),\n    equalObjects = require('./_equalObjects'),\n    getTag = require('./_getTag'),\n    isArray = require('./isArray'),\n    isBuffer = require('./isBuffer'),\n    isTypedArray = require('./isTypedArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqual` for arrays and objects which performs\n * deep comparisons and tracks traversed objects enabling objects with circular\n * references to be compared.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} [stack] Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction baseIsEqualDeep(object, other, bitmask, customizer, equalFunc, stack) {\n  var objIsArr = isArray(object),\n      othIsArr = isArray(other),\n      objTag = objIsArr ? arrayTag : getTag(object),\n      othTag = othIsArr ? arrayTag : getTag(other);\n\n  objTag = objTag == argsTag ? objectTag : objTag;\n  othTag = othTag == argsTag ? objectTag : othTag;\n\n  var objIsObj = objTag == objectTag,\n      othIsObj = othTag == objectTag,\n      isSameTag = objTag == othTag;\n\n  if (isSameTag && isBuffer(object)) {\n    if (!isBuffer(other)) {\n      return false;\n    }\n    objIsArr = true;\n    objIsObj = false;\n  }\n  if (isSameTag && !objIsObj) {\n    stack || (stack = new Stack);\n    return (objIsArr || isTypedArray(object))\n      ? equalArrays(object, other, bitmask, customizer, equalFunc, stack)\n      : equalByTag(object, other, objTag, bitmask, customizer, equalFunc, stack);\n  }\n  if (!(bitmask & COMPARE_PARTIAL_FLAG)) {\n    var objIsWrapped = objIsObj && hasOwnProperty.call(object, '__wrapped__'),\n        othIsWrapped = othIsObj && hasOwnProperty.call(other, '__wrapped__');\n\n    if (objIsWrapped || othIsWrapped) {\n      var objUnwrapped = objIsWrapped ? object.value() : object,\n          othUnwrapped = othIsWrapped ? other.value() : other;\n\n      stack || (stack = new Stack);\n      return equalFunc(objUnwrapped, othUnwrapped, bitmask, customizer, stack);\n    }\n  }\n  if (!isSameTag) {\n    return false;\n  }\n  stack || (stack = new Stack);\n  return equalObjects(object, other, bitmask, customizer, equalFunc, stack);\n}\n\nmodule.exports = baseIsEqualDeep;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseIsEqualDeep.js\n// module id = ./node_modules/lodash/_baseIsEqualDeep.js\n// module chunks = 0","var Stack = require('./_Stack'),\n    baseIsEqual = require('./_baseIsEqual');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.isMatch` without support for iteratee shorthands.\n *\n * @private\n * @param {Object} object The object to inspect.\n * @param {Object} source The object of property values to match.\n * @param {Array} matchData The property names, values, and compare flags to match.\n * @param {Function} [customizer] The function to customize comparisons.\n * @returns {boolean} Returns `true` if `object` is a match, else `false`.\n */\nfunction baseIsMatch(object, source, matchData, customizer) {\n  var index = matchData.length,\n      length = index,\n      noCustomizer = !customizer;\n\n  if (object == null) {\n    return !length;\n  }\n  object = Object(object);\n  while (index--) {\n    var data = matchData[index];\n    if ((noCustomizer && data[2])\n          ? data[1] !== object[data[0]]\n          : !(data[0] in object)\n        ) {\n      return false;\n    }\n  }\n  while (++index < length) {\n    data = matchData[index];\n    var key = data[0],\n        objValue = object[key],\n        srcValue = data[1];\n\n    if (noCustomizer && data[2]) {\n      if (objValue === undefined && !(key in object)) {\n        return false;\n      }\n    } else {\n      var stack = new Stack;\n      if (customizer) {\n        var result = customizer(objValue, srcValue, key, object, source, stack);\n      }\n      if (!(result === undefined\n            ? baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG, customizer, stack)\n            : result\n          )) {\n        return false;\n      }\n    }\n  }\n  return true;\n}\n\nmodule.exports = baseIsMatch;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseIsMatch.js\n// module id = ./node_modules/lodash/_baseIsMatch.js\n// module chunks = 0","var isFunction = require('./isFunction'),\n    isMasked = require('./_isMasked'),\n    isObject = require('./isObject'),\n    toSource = require('./_toSource');\n\n/**\n * Used to match `RegExp`\n * [syntax characters](http://ecma-international.org/ecma-262/7.0/#sec-patterns).\n */\nvar reRegExpChar = /[\\\\^$.*+?()[\\]{}|]/g;\n\n/** Used to detect host constructors (Safari). */\nvar reIsHostCtor = /^\\[object .+?Constructor\\]$/;\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to detect if a method is native. */\nvar reIsNative = RegExp('^' +\n  funcToString.call(hasOwnProperty).replace(reRegExpChar, '\\\\$&')\n  .replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g, '$1.*?') + '$'\n);\n\n/**\n * The base implementation of `_.isNative` without bad shim checks.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a native function,\n *  else `false`.\n */\nfunction baseIsNative(value) {\n  if (!isObject(value) || isMasked(value)) {\n    return false;\n  }\n  var pattern = isFunction(value) ? reIsNative : reIsHostCtor;\n  return pattern.test(toSource(value));\n}\n\nmodule.exports = baseIsNative;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseIsNative.js\n// module id = ./node_modules/lodash/_baseIsNative.js\n// module chunks = 0","var baseGetTag = require('./_baseGetTag'),\n    isLength = require('./isLength'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar argsTag = '[object Arguments]',\n    arrayTag = '[object Array]',\n    boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    funcTag = '[object Function]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    objectTag = '[object Object]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    weakMapTag = '[object WeakMap]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]',\n    float32Tag = '[object Float32Array]',\n    float64Tag = '[object Float64Array]',\n    int8Tag = '[object Int8Array]',\n    int16Tag = '[object Int16Array]',\n    int32Tag = '[object Int32Array]',\n    uint8Tag = '[object Uint8Array]',\n    uint8ClampedTag = '[object Uint8ClampedArray]',\n    uint16Tag = '[object Uint16Array]',\n    uint32Tag = '[object Uint32Array]';\n\n/** Used to identify `toStringTag` values of typed arrays. */\nvar typedArrayTags = {};\ntypedArrayTags[float32Tag] = typedArrayTags[float64Tag] =\ntypedArrayTags[int8Tag] = typedArrayTags[int16Tag] =\ntypedArrayTags[int32Tag] = typedArrayTags[uint8Tag] =\ntypedArrayTags[uint8ClampedTag] = typedArrayTags[uint16Tag] =\ntypedArrayTags[uint32Tag] = true;\ntypedArrayTags[argsTag] = typedArrayTags[arrayTag] =\ntypedArrayTags[arrayBufferTag] = typedArrayTags[boolTag] =\ntypedArrayTags[dataViewTag] = typedArrayTags[dateTag] =\ntypedArrayTags[errorTag] = typedArrayTags[funcTag] =\ntypedArrayTags[mapTag] = typedArrayTags[numberTag] =\ntypedArrayTags[objectTag] = typedArrayTags[regexpTag] =\ntypedArrayTags[setTag] = typedArrayTags[stringTag] =\ntypedArrayTags[weakMapTag] = false;\n\n/**\n * The base implementation of `_.isTypedArray` without Node.js optimizations.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n */\nfunction baseIsTypedArray(value) {\n  return isObjectLike(value) &&\n    isLength(value.length) && !!typedArrayTags[baseGetTag(value)];\n}\n\nmodule.exports = baseIsTypedArray;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseIsTypedArray.js\n// module id = ./node_modules/lodash/_baseIsTypedArray.js\n// module chunks = 0","var baseMatches = require('./_baseMatches'),\n    baseMatchesProperty = require('./_baseMatchesProperty'),\n    identity = require('./identity'),\n    isArray = require('./isArray'),\n    property = require('./property');\n\n/**\n * The base implementation of `_.iteratee`.\n *\n * @private\n * @param {*} [value=_.identity] The value to convert to an iteratee.\n * @returns {Function} Returns the iteratee.\n */\nfunction baseIteratee(value) {\n  // Don't store the `typeof` result in a variable to avoid a JIT bug in Safari 9.\n  // See https://bugs.webkit.org/show_bug.cgi?id=156034 for more details.\n  if (typeof value == 'function') {\n    return value;\n  }\n  if (value == null) {\n    return identity;\n  }\n  if (typeof value == 'object') {\n    return isArray(value)\n      ? baseMatchesProperty(value[0], value[1])\n      : baseMatches(value);\n  }\n  return property(value);\n}\n\nmodule.exports = baseIteratee;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseIteratee.js\n// module id = ./node_modules/lodash/_baseIteratee.js\n// module chunks = 0","var isPrototype = require('./_isPrototype'),\n    nativeKeys = require('./_nativeKeys');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * The base implementation of `_.keys` which doesn't treat sparse arrays as dense.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n */\nfunction baseKeys(object) {\n  if (!isPrototype(object)) {\n    return nativeKeys(object);\n  }\n  var result = [];\n  for (var key in Object(object)) {\n    if (hasOwnProperty.call(object, key) && key != 'constructor') {\n      result.push(key);\n    }\n  }\n  return result;\n}\n\nmodule.exports = baseKeys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseKeys.js\n// module id = ./node_modules/lodash/_baseKeys.js\n// module chunks = 0","var baseEach = require('./_baseEach'),\n    isArrayLike = require('./isArrayLike');\n\n/**\n * The base implementation of `_.map` without support for iteratee shorthands.\n *\n * @private\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n */\nfunction baseMap(collection, iteratee) {\n  var index = -1,\n      result = isArrayLike(collection) ? Array(collection.length) : [];\n\n  baseEach(collection, function(value, key, collection) {\n    result[++index] = iteratee(value, key, collection);\n  });\n  return result;\n}\n\nmodule.exports = baseMap;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseMap.js\n// module id = ./node_modules/lodash/_baseMap.js\n// module chunks = 0","var baseIsMatch = require('./_baseIsMatch'),\n    getMatchData = require('./_getMatchData'),\n    matchesStrictComparable = require('./_matchesStrictComparable');\n\n/**\n * The base implementation of `_.matches` which doesn't clone `source`.\n *\n * @private\n * @param {Object} source The object of property values to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatches(source) {\n  var matchData = getMatchData(source);\n  if (matchData.length == 1 && matchData[0][2]) {\n    return matchesStrictComparable(matchData[0][0], matchData[0][1]);\n  }\n  return function(object) {\n    return object === source || baseIsMatch(object, source, matchData);\n  };\n}\n\nmodule.exports = baseMatches;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseMatches.js\n// module id = ./node_modules/lodash/_baseMatches.js\n// module chunks = 0","var baseIsEqual = require('./_baseIsEqual'),\n    get = require('./get'),\n    hasIn = require('./hasIn'),\n    isKey = require('./_isKey'),\n    isStrictComparable = require('./_isStrictComparable'),\n    matchesStrictComparable = require('./_matchesStrictComparable'),\n    toKey = require('./_toKey');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * The base implementation of `_.matchesProperty` which doesn't clone `srcValue`.\n *\n * @private\n * @param {string} path The path of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction baseMatchesProperty(path, srcValue) {\n  if (isKey(path) && isStrictComparable(srcValue)) {\n    return matchesStrictComparable(toKey(path), srcValue);\n  }\n  return function(object) {\n    var objValue = get(object, path);\n    return (objValue === undefined && objValue === srcValue)\n      ? hasIn(object, path)\n      : baseIsEqual(srcValue, objValue, COMPARE_PARTIAL_FLAG | COMPARE_UNORDERED_FLAG);\n  };\n}\n\nmodule.exports = baseMatchesProperty;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseMatchesProperty.js\n// module id = ./node_modules/lodash/_baseMatchesProperty.js\n// module chunks = 0","/**\n * The base implementation of `_.property` without support for deep paths.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction baseProperty(key) {\n  return function(object) {\n    return object == null ? undefined : object[key];\n  };\n}\n\nmodule.exports = baseProperty;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseProperty.js\n// module id = ./node_modules/lodash/_baseProperty.js\n// module chunks = 0","var baseGet = require('./_baseGet');\n\n/**\n * A specialized version of `baseProperty` which supports deep paths.\n *\n * @private\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n */\nfunction basePropertyDeep(path) {\n  return function(object) {\n    return baseGet(object, path);\n  };\n}\n\nmodule.exports = basePropertyDeep;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_basePropertyDeep.js\n// module id = ./node_modules/lodash/_basePropertyDeep.js\n// module chunks = 0","/**\n * The base implementation of `_.times` without support for iteratee shorthands\n * or max array length checks.\n *\n * @private\n * @param {number} n The number of times to invoke `iteratee`.\n * @param {Function} iteratee The function invoked per iteration.\n * @returns {Array} Returns the array of results.\n */\nfunction baseTimes(n, iteratee) {\n  var index = -1,\n      result = Array(n);\n\n  while (++index < n) {\n    result[index] = iteratee(index);\n  }\n  return result;\n}\n\nmodule.exports = baseTimes;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseTimes.js\n// module id = ./node_modules/lodash/_baseTimes.js\n// module chunks = 0","var Symbol = require('./_Symbol'),\n    arrayMap = require('./_arrayMap'),\n    isArray = require('./isArray'),\n    isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolToString = symbolProto ? symbolProto.toString : undefined;\n\n/**\n * The base implementation of `_.toString` which doesn't convert nullish\n * values to empty strings.\n *\n * @private\n * @param {*} value The value to process.\n * @returns {string} Returns the string.\n */\nfunction baseToString(value) {\n  // Exit early for strings to avoid a performance hit in some environments.\n  if (typeof value == 'string') {\n    return value;\n  }\n  if (isArray(value)) {\n    // Recursively convert values (susceptible to call stack limits).\n    return arrayMap(value, baseToString) + '';\n  }\n  if (isSymbol(value)) {\n    return symbolToString ? symbolToString.call(value) : '';\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = baseToString;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseToString.js\n// module id = ./node_modules/lodash/_baseToString.js\n// module chunks = 0","/**\n * The base implementation of `_.unary` without support for storing metadata.\n *\n * @private\n * @param {Function} func The function to cap arguments for.\n * @returns {Function} Returns the new capped function.\n */\nfunction baseUnary(func) {\n  return function(value) {\n    return func(value);\n  };\n}\n\nmodule.exports = baseUnary;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_baseUnary.js\n// module id = ./node_modules/lodash/_baseUnary.js\n// module chunks = 0","/**\n * Checks if a `cache` value for `key` exists.\n *\n * @private\n * @param {Object} cache The cache to query.\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction cacheHas(cache, key) {\n  return cache.has(key);\n}\n\nmodule.exports = cacheHas;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_cacheHas.js\n// module id = ./node_modules/lodash/_cacheHas.js\n// module chunks = 0","var isArray = require('./isArray'),\n    isKey = require('./_isKey'),\n    stringToPath = require('./_stringToPath'),\n    toString = require('./toString');\n\n/**\n * Casts `value` to a path array if it's not one.\n *\n * @private\n * @param {*} value The value to inspect.\n * @param {Object} [object] The object to query keys on.\n * @returns {Array} Returns the cast property path array.\n */\nfunction castPath(value, object) {\n  if (isArray(value)) {\n    return value;\n  }\n  return isKey(value, object) ? [value] : stringToPath(toString(value));\n}\n\nmodule.exports = castPath;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_castPath.js\n// module id = ./node_modules/lodash/_castPath.js\n// module chunks = 0","var root = require('./_root');\n\n/** Used to detect overreaching core-js shims. */\nvar coreJsData = root['__core-js_shared__'];\n\nmodule.exports = coreJsData;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_coreJsData.js\n// module id = ./node_modules/lodash/_coreJsData.js\n// module chunks = 0","var isArrayLike = require('./isArrayLike');\n\n/**\n * Creates a `baseEach` or `baseEachRight` function.\n *\n * @private\n * @param {Function} eachFunc The function to iterate over a collection.\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseEach(eachFunc, fromRight) {\n  return function(collection, iteratee) {\n    if (collection == null) {\n      return collection;\n    }\n    if (!isArrayLike(collection)) {\n      return eachFunc(collection, iteratee);\n    }\n    var length = collection.length,\n        index = fromRight ? length : -1,\n        iterable = Object(collection);\n\n    while ((fromRight ? index-- : ++index < length)) {\n      if (iteratee(iterable[index], index, iterable) === false) {\n        break;\n      }\n    }\n    return collection;\n  };\n}\n\nmodule.exports = createBaseEach;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_createBaseEach.js\n// module id = ./node_modules/lodash/_createBaseEach.js\n// module chunks = 0","/**\n * Creates a base function for methods like `_.forIn` and `_.forOwn`.\n *\n * @private\n * @param {boolean} [fromRight] Specify iterating from right to left.\n * @returns {Function} Returns the new base function.\n */\nfunction createBaseFor(fromRight) {\n  return function(object, iteratee, keysFunc) {\n    var index = -1,\n        iterable = Object(object),\n        props = keysFunc(object),\n        length = props.length;\n\n    while (length--) {\n      var key = props[fromRight ? length : ++index];\n      if (iteratee(iterable[key], key, iterable) === false) {\n        break;\n      }\n    }\n    return object;\n  };\n}\n\nmodule.exports = createBaseFor;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_createBaseFor.js\n// module id = ./node_modules/lodash/_createBaseFor.js\n// module chunks = 0","var baseIteratee = require('./_baseIteratee'),\n    isArrayLike = require('./isArrayLike'),\n    keys = require('./keys');\n\n/**\n * Creates a `_.find` or `_.findLast` function.\n *\n * @private\n * @param {Function} findIndexFunc The function to find the collection index.\n * @returns {Function} Returns the new find function.\n */\nfunction createFind(findIndexFunc) {\n  return function(collection, predicate, fromIndex) {\n    var iterable = Object(collection);\n    if (!isArrayLike(collection)) {\n      var iteratee = baseIteratee(predicate, 3);\n      collection = keys(collection);\n      predicate = function(key) { return iteratee(iterable[key], key, iterable); };\n    }\n    var index = findIndexFunc(collection, predicate, fromIndex);\n    return index > -1 ? iterable[iteratee ? collection[index] : index] : undefined;\n  };\n}\n\nmodule.exports = createFind;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_createFind.js\n// module id = ./node_modules/lodash/_createFind.js\n// module chunks = 0","var SetCache = require('./_SetCache'),\n    arraySome = require('./_arraySome'),\n    cacheHas = require('./_cacheHas');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/**\n * A specialized version of `baseIsEqualDeep` for arrays with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Array} array The array to compare.\n * @param {Array} other The other array to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `array` and `other` objects.\n * @returns {boolean} Returns `true` if the arrays are equivalent, else `false`.\n */\nfunction equalArrays(array, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      arrLength = array.length,\n      othLength = other.length;\n\n  if (arrLength != othLength && !(isPartial && othLength > arrLength)) {\n    return false;\n  }\n  // Check that cyclic values are equal.\n  var arrStacked = stack.get(array);\n  var othStacked = stack.get(other);\n  if (arrStacked && othStacked) {\n    return arrStacked == other && othStacked == array;\n  }\n  var index = -1,\n      result = true,\n      seen = (bitmask & COMPARE_UNORDERED_FLAG) ? new SetCache : undefined;\n\n  stack.set(array, other);\n  stack.set(other, array);\n\n  // Ignore non-index properties.\n  while (++index < arrLength) {\n    var arrValue = array[index],\n        othValue = other[index];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, arrValue, index, other, array, stack)\n        : customizer(arrValue, othValue, index, array, other, stack);\n    }\n    if (compared !== undefined) {\n      if (compared) {\n        continue;\n      }\n      result = false;\n      break;\n    }\n    // Recursively compare arrays (susceptible to call stack limits).\n    if (seen) {\n      if (!arraySome(other, function(othValue, othIndex) {\n            if (!cacheHas(seen, othIndex) &&\n                (arrValue === othValue || equalFunc(arrValue, othValue, bitmask, customizer, stack))) {\n              return seen.push(othIndex);\n            }\n          })) {\n        result = false;\n        break;\n      }\n    } else if (!(\n          arrValue === othValue ||\n            equalFunc(arrValue, othValue, bitmask, customizer, stack)\n        )) {\n      result = false;\n      break;\n    }\n  }\n  stack['delete'](array);\n  stack['delete'](other);\n  return result;\n}\n\nmodule.exports = equalArrays;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_equalArrays.js\n// module id = ./node_modules/lodash/_equalArrays.js\n// module chunks = 0","var Symbol = require('./_Symbol'),\n    Uint8Array = require('./_Uint8Array'),\n    eq = require('./eq'),\n    equalArrays = require('./_equalArrays'),\n    mapToArray = require('./_mapToArray'),\n    setToArray = require('./_setToArray');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1,\n    COMPARE_UNORDERED_FLAG = 2;\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]',\n    dateTag = '[object Date]',\n    errorTag = '[object Error]',\n    mapTag = '[object Map]',\n    numberTag = '[object Number]',\n    regexpTag = '[object RegExp]',\n    setTag = '[object Set]',\n    stringTag = '[object String]',\n    symbolTag = '[object Symbol]';\n\nvar arrayBufferTag = '[object ArrayBuffer]',\n    dataViewTag = '[object DataView]';\n\n/** Used to convert symbols to primitives and strings. */\nvar symbolProto = Symbol ? Symbol.prototype : undefined,\n    symbolValueOf = symbolProto ? symbolProto.valueOf : undefined;\n\n/**\n * A specialized version of `baseIsEqualDeep` for comparing objects of\n * the same `toStringTag`.\n *\n * **Note:** This function only supports comparing values with tags of\n * `Boolean`, `Date`, `Error`, `Number`, `RegExp`, or `String`.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {string} tag The `toStringTag` of the objects to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalByTag(object, other, tag, bitmask, customizer, equalFunc, stack) {\n  switch (tag) {\n    case dataViewTag:\n      if ((object.byteLength != other.byteLength) ||\n          (object.byteOffset != other.byteOffset)) {\n        return false;\n      }\n      object = object.buffer;\n      other = other.buffer;\n\n    case arrayBufferTag:\n      if ((object.byteLength != other.byteLength) ||\n          !equalFunc(new Uint8Array(object), new Uint8Array(other))) {\n        return false;\n      }\n      return true;\n\n    case boolTag:\n    case dateTag:\n    case numberTag:\n      // Coerce booleans to `1` or `0` and dates to milliseconds.\n      // Invalid dates are coerced to `NaN`.\n      return eq(+object, +other);\n\n    case errorTag:\n      return object.name == other.name && object.message == other.message;\n\n    case regexpTag:\n    case stringTag:\n      // Coerce regexes to strings and treat strings, primitives and objects,\n      // as equal. See http://www.ecma-international.org/ecma-262/7.0/#sec-regexp.prototype.tostring\n      // for more details.\n      return object == (other + '');\n\n    case mapTag:\n      var convert = mapToArray;\n\n    case setTag:\n      var isPartial = bitmask & COMPARE_PARTIAL_FLAG;\n      convert || (convert = setToArray);\n\n      if (object.size != other.size && !isPartial) {\n        return false;\n      }\n      // Assume cyclic values are equal.\n      var stacked = stack.get(object);\n      if (stacked) {\n        return stacked == other;\n      }\n      bitmask |= COMPARE_UNORDERED_FLAG;\n\n      // Recursively compare objects (susceptible to call stack limits).\n      stack.set(object, other);\n      var result = equalArrays(convert(object), convert(other), bitmask, customizer, equalFunc, stack);\n      stack['delete'](object);\n      return result;\n\n    case symbolTag:\n      if (symbolValueOf) {\n        return symbolValueOf.call(object) == symbolValueOf.call(other);\n      }\n  }\n  return false;\n}\n\nmodule.exports = equalByTag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_equalByTag.js\n// module id = ./node_modules/lodash/_equalByTag.js\n// module chunks = 0","var getAllKeys = require('./_getAllKeys');\n\n/** Used to compose bitmasks for value comparisons. */\nvar COMPARE_PARTIAL_FLAG = 1;\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * A specialized version of `baseIsEqualDeep` for objects with support for\n * partial deep comparisons.\n *\n * @private\n * @param {Object} object The object to compare.\n * @param {Object} other The other object to compare.\n * @param {number} bitmask The bitmask flags. See `baseIsEqual` for more details.\n * @param {Function} customizer The function to customize comparisons.\n * @param {Function} equalFunc The function to determine equivalents of values.\n * @param {Object} stack Tracks traversed `object` and `other` objects.\n * @returns {boolean} Returns `true` if the objects are equivalent, else `false`.\n */\nfunction equalObjects(object, other, bitmask, customizer, equalFunc, stack) {\n  var isPartial = bitmask & COMPARE_PARTIAL_FLAG,\n      objProps = getAllKeys(object),\n      objLength = objProps.length,\n      othProps = getAllKeys(other),\n      othLength = othProps.length;\n\n  if (objLength != othLength && !isPartial) {\n    return false;\n  }\n  var index = objLength;\n  while (index--) {\n    var key = objProps[index];\n    if (!(isPartial ? key in other : hasOwnProperty.call(other, key))) {\n      return false;\n    }\n  }\n  // Check that cyclic values are equal.\n  var objStacked = stack.get(object);\n  var othStacked = stack.get(other);\n  if (objStacked && othStacked) {\n    return objStacked == other && othStacked == object;\n  }\n  var result = true;\n  stack.set(object, other);\n  stack.set(other, object);\n\n  var skipCtor = isPartial;\n  while (++index < objLength) {\n    key = objProps[index];\n    var objValue = object[key],\n        othValue = other[key];\n\n    if (customizer) {\n      var compared = isPartial\n        ? customizer(othValue, objValue, key, other, object, stack)\n        : customizer(objValue, othValue, key, object, other, stack);\n    }\n    // Recursively compare objects (susceptible to call stack limits).\n    if (!(compared === undefined\n          ? (objValue === othValue || equalFunc(objValue, othValue, bitmask, customizer, stack))\n          : compared\n        )) {\n      result = false;\n      break;\n    }\n    skipCtor || (skipCtor = key == 'constructor');\n  }\n  if (result && !skipCtor) {\n    var objCtor = object.constructor,\n        othCtor = other.constructor;\n\n    // Non `Object` object instances with different constructors are not equal.\n    if (objCtor != othCtor &&\n        ('constructor' in object && 'constructor' in other) &&\n        !(typeof objCtor == 'function' && objCtor instanceof objCtor &&\n          typeof othCtor == 'function' && othCtor instanceof othCtor)) {\n      result = false;\n    }\n  }\n  stack['delete'](object);\n  stack['delete'](other);\n  return result;\n}\n\nmodule.exports = equalObjects;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_equalObjects.js\n// module id = ./node_modules/lodash/_equalObjects.js\n// module chunks = 0","/** Detect free variable `global` from Node.js. */\nvar freeGlobal = typeof global == 'object' && global && global.Object === Object && global;\n\nmodule.exports = freeGlobal;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_freeGlobal.js\n// module id = ./node_modules/lodash/_freeGlobal.js\n// module chunks = 0","var baseGetAllKeys = require('./_baseGetAllKeys'),\n    getSymbols = require('./_getSymbols'),\n    keys = require('./keys');\n\n/**\n * Creates an array of own enumerable property names and symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names and symbols.\n */\nfunction getAllKeys(object) {\n  return baseGetAllKeys(object, keys, getSymbols);\n}\n\nmodule.exports = getAllKeys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_getAllKeys.js\n// module id = ./node_modules/lodash/_getAllKeys.js\n// module chunks = 0","var isKeyable = require('./_isKeyable');\n\n/**\n * Gets the data for `map`.\n *\n * @private\n * @param {Object} map The map to query.\n * @param {string} key The reference key.\n * @returns {*} Returns the map data.\n */\nfunction getMapData(map, key) {\n  var data = map.__data__;\n  return isKeyable(key)\n    ? data[typeof key == 'string' ? 'string' : 'hash']\n    : data.map;\n}\n\nmodule.exports = getMapData;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_getMapData.js\n// module id = ./node_modules/lodash/_getMapData.js\n// module chunks = 0","var isStrictComparable = require('./_isStrictComparable'),\n    keys = require('./keys');\n\n/**\n * Gets the property names, values, and compare flags of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the match data of `object`.\n */\nfunction getMatchData(object) {\n  var result = keys(object),\n      length = result.length;\n\n  while (length--) {\n    var key = result[length],\n        value = object[key];\n\n    result[length] = [key, value, isStrictComparable(value)];\n  }\n  return result;\n}\n\nmodule.exports = getMatchData;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_getMatchData.js\n// module id = ./node_modules/lodash/_getMatchData.js\n// module chunks = 0","var baseIsNative = require('./_baseIsNative'),\n    getValue = require('./_getValue');\n\n/**\n * Gets the native function at `key` of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {string} key The key of the method to get.\n * @returns {*} Returns the function if it's native, else `undefined`.\n */\nfunction getNative(object, key) {\n  var value = getValue(object, key);\n  return baseIsNative(value) ? value : undefined;\n}\n\nmodule.exports = getNative;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_getNative.js\n// module id = ./node_modules/lodash/_getNative.js\n// module chunks = 0","var overArg = require('./_overArg');\n\n/** Built-in value references. */\nvar getPrototype = overArg(Object.getPrototypeOf, Object);\n\nmodule.exports = getPrototype;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_getPrototype.js\n// module id = ./node_modules/lodash/_getPrototype.js\n// module chunks = 0","var Symbol = require('./_Symbol');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/** Built-in value references. */\nvar symToStringTag = Symbol ? Symbol.toStringTag : undefined;\n\n/**\n * A specialized version of `baseGetTag` which ignores `Symbol.toStringTag` values.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the raw `toStringTag`.\n */\nfunction getRawTag(value) {\n  var isOwn = hasOwnProperty.call(value, symToStringTag),\n      tag = value[symToStringTag];\n\n  try {\n    value[symToStringTag] = undefined;\n    var unmasked = true;\n  } catch (e) {}\n\n  var result = nativeObjectToString.call(value);\n  if (unmasked) {\n    if (isOwn) {\n      value[symToStringTag] = tag;\n    } else {\n      delete value[symToStringTag];\n    }\n  }\n  return result;\n}\n\nmodule.exports = getRawTag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_getRawTag.js\n// module id = ./node_modules/lodash/_getRawTag.js\n// module chunks = 0","var arrayFilter = require('./_arrayFilter'),\n    stubArray = require('./stubArray');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeGetSymbols = Object.getOwnPropertySymbols;\n\n/**\n * Creates an array of the own enumerable symbols of `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of symbols.\n */\nvar getSymbols = !nativeGetSymbols ? stubArray : function(object) {\n  if (object == null) {\n    return [];\n  }\n  object = Object(object);\n  return arrayFilter(nativeGetSymbols(object), function(symbol) {\n    return propertyIsEnumerable.call(object, symbol);\n  });\n};\n\nmodule.exports = getSymbols;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_getSymbols.js\n// module id = ./node_modules/lodash/_getSymbols.js\n// module chunks = 0","var DataView = require('./_DataView'),\n    Map = require('./_Map'),\n    Promise = require('./_Promise'),\n    Set = require('./_Set'),\n    WeakMap = require('./_WeakMap'),\n    baseGetTag = require('./_baseGetTag'),\n    toSource = require('./_toSource');\n\n/** `Object#toString` result references. */\nvar mapTag = '[object Map]',\n    objectTag = '[object Object]',\n    promiseTag = '[object Promise]',\n    setTag = '[object Set]',\n    weakMapTag = '[object WeakMap]';\n\nvar dataViewTag = '[object DataView]';\n\n/** Used to detect maps, sets, and weakmaps. */\nvar dataViewCtorString = toSource(DataView),\n    mapCtorString = toSource(Map),\n    promiseCtorString = toSource(Promise),\n    setCtorString = toSource(Set),\n    weakMapCtorString = toSource(WeakMap);\n\n/**\n * Gets the `toStringTag` of `value`.\n *\n * @private\n * @param {*} value The value to query.\n * @returns {string} Returns the `toStringTag`.\n */\nvar getTag = baseGetTag;\n\n// Fallback for data views, maps, sets, and weak maps in IE 11 and promises in Node.js < 6.\nif ((DataView && getTag(new DataView(new ArrayBuffer(1))) != dataViewTag) ||\n    (Map && getTag(new Map) != mapTag) ||\n    (Promise && getTag(Promise.resolve()) != promiseTag) ||\n    (Set && getTag(new Set) != setTag) ||\n    (WeakMap && getTag(new WeakMap) != weakMapTag)) {\n  getTag = function(value) {\n    var result = baseGetTag(value),\n        Ctor = result == objectTag ? value.constructor : undefined,\n        ctorString = Ctor ? toSource(Ctor) : '';\n\n    if (ctorString) {\n      switch (ctorString) {\n        case dataViewCtorString: return dataViewTag;\n        case mapCtorString: return mapTag;\n        case promiseCtorString: return promiseTag;\n        case setCtorString: return setTag;\n        case weakMapCtorString: return weakMapTag;\n      }\n    }\n    return result;\n  };\n}\n\nmodule.exports = getTag;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_getTag.js\n// module id = ./node_modules/lodash/_getTag.js\n// module chunks = 0","/**\n * Gets the value at `key` of `object`.\n *\n * @private\n * @param {Object} [object] The object to query.\n * @param {string} key The key of the property to get.\n * @returns {*} Returns the property value.\n */\nfunction getValue(object, key) {\n  return object == null ? undefined : object[key];\n}\n\nmodule.exports = getValue;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_getValue.js\n// module id = ./node_modules/lodash/_getValue.js\n// module chunks = 0","var castPath = require('./_castPath'),\n    isArguments = require('./isArguments'),\n    isArray = require('./isArray'),\n    isIndex = require('./_isIndex'),\n    isLength = require('./isLength'),\n    toKey = require('./_toKey');\n\n/**\n * Checks if `path` exists on `object`.\n *\n * @private\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @param {Function} hasFunc The function to check properties.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n */\nfunction hasPath(object, path, hasFunc) {\n  path = castPath(path, object);\n\n  var index = -1,\n      length = path.length,\n      result = false;\n\n  while (++index < length) {\n    var key = toKey(path[index]);\n    if (!(result = object != null && hasFunc(object, key))) {\n      break;\n    }\n    object = object[key];\n  }\n  if (result || ++index != length) {\n    return result;\n  }\n  length = object == null ? 0 : object.length;\n  return !!length && isLength(length) && isIndex(key, length) &&\n    (isArray(object) || isArguments(object));\n}\n\nmodule.exports = hasPath;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_hasPath.js\n// module id = ./node_modules/lodash/_hasPath.js\n// module chunks = 0","var nativeCreate = require('./_nativeCreate');\n\n/**\n * Removes all key-value entries from the hash.\n *\n * @private\n * @name clear\n * @memberOf Hash\n */\nfunction hashClear() {\n  this.__data__ = nativeCreate ? nativeCreate(null) : {};\n  this.size = 0;\n}\n\nmodule.exports = hashClear;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_hashClear.js\n// module id = ./node_modules/lodash/_hashClear.js\n// module chunks = 0","/**\n * Removes `key` and its value from the hash.\n *\n * @private\n * @name delete\n * @memberOf Hash\n * @param {Object} hash The hash to modify.\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction hashDelete(key) {\n  var result = this.has(key) && delete this.__data__[key];\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\nmodule.exports = hashDelete;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_hashDelete.js\n// module id = ./node_modules/lodash/_hashDelete.js\n// module chunks = 0","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Gets the hash value for `key`.\n *\n * @private\n * @name get\n * @memberOf Hash\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction hashGet(key) {\n  var data = this.__data__;\n  if (nativeCreate) {\n    var result = data[key];\n    return result === HASH_UNDEFINED ? undefined : result;\n  }\n  return hasOwnProperty.call(data, key) ? data[key] : undefined;\n}\n\nmodule.exports = hashGet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_hashGet.js\n// module id = ./node_modules/lodash/_hashGet.js\n// module chunks = 0","var nativeCreate = require('./_nativeCreate');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/**\n * Checks if a hash value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Hash\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction hashHas(key) {\n  var data = this.__data__;\n  return nativeCreate ? (data[key] !== undefined) : hasOwnProperty.call(data, key);\n}\n\nmodule.exports = hashHas;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_hashHas.js\n// module id = ./node_modules/lodash/_hashHas.js\n// module chunks = 0","var nativeCreate = require('./_nativeCreate');\n\n/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Sets the hash `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Hash\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the hash instance.\n */\nfunction hashSet(key, value) {\n  var data = this.__data__;\n  this.size += this.has(key) ? 0 : 1;\n  data[key] = (nativeCreate && value === undefined) ? HASH_UNDEFINED : value;\n  return this;\n}\n\nmodule.exports = hashSet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_hashSet.js\n// module id = ./node_modules/lodash/_hashSet.js\n// module chunks = 0","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/** Used to detect unsigned integer values. */\nvar reIsUint = /^(?:0|[1-9]\\d*)$/;\n\n/**\n * Checks if `value` is a valid array-like index.\n *\n * @private\n * @param {*} value The value to check.\n * @param {number} [length=MAX_SAFE_INTEGER] The upper bounds of a valid index.\n * @returns {boolean} Returns `true` if `value` is a valid index, else `false`.\n */\nfunction isIndex(value, length) {\n  var type = typeof value;\n  length = length == null ? MAX_SAFE_INTEGER : length;\n\n  return !!length &&\n    (type == 'number' ||\n      (type != 'symbol' && reIsUint.test(value))) &&\n        (value > -1 && value % 1 == 0 && value < length);\n}\n\nmodule.exports = isIndex;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_isIndex.js\n// module id = ./node_modules/lodash/_isIndex.js\n// module chunks = 0","var isArray = require('./isArray'),\n    isSymbol = require('./isSymbol');\n\n/** Used to match property names within property paths. */\nvar reIsDeepProp = /\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,\n    reIsPlainProp = /^\\w*$/;\n\n/**\n * Checks if `value` is a property name and not a property path.\n *\n * @private\n * @param {*} value The value to check.\n * @param {Object} [object] The object to query keys on.\n * @returns {boolean} Returns `true` if `value` is a property name, else `false`.\n */\nfunction isKey(value, object) {\n  if (isArray(value)) {\n    return false;\n  }\n  var type = typeof value;\n  if (type == 'number' || type == 'symbol' || type == 'boolean' ||\n      value == null || isSymbol(value)) {\n    return true;\n  }\n  return reIsPlainProp.test(value) || !reIsDeepProp.test(value) ||\n    (object != null && value in Object(object));\n}\n\nmodule.exports = isKey;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_isKey.js\n// module id = ./node_modules/lodash/_isKey.js\n// module chunks = 0","/**\n * Checks if `value` is suitable for use as unique object key.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is suitable, else `false`.\n */\nfunction isKeyable(value) {\n  var type = typeof value;\n  return (type == 'string' || type == 'number' || type == 'symbol' || type == 'boolean')\n    ? (value !== '__proto__')\n    : (value === null);\n}\n\nmodule.exports = isKeyable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_isKeyable.js\n// module id = ./node_modules/lodash/_isKeyable.js\n// module chunks = 0","var coreJsData = require('./_coreJsData');\n\n/** Used to detect methods masquerading as native. */\nvar maskSrcKey = (function() {\n  var uid = /[^.]+$/.exec(coreJsData && coreJsData.keys && coreJsData.keys.IE_PROTO || '');\n  return uid ? ('Symbol(src)_1.' + uid) : '';\n}());\n\n/**\n * Checks if `func` has its source masked.\n *\n * @private\n * @param {Function} func The function to check.\n * @returns {boolean} Returns `true` if `func` is masked, else `false`.\n */\nfunction isMasked(func) {\n  return !!maskSrcKey && (maskSrcKey in func);\n}\n\nmodule.exports = isMasked;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_isMasked.js\n// module id = ./node_modules/lodash/_isMasked.js\n// module chunks = 0","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Checks if `value` is likely a prototype object.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a prototype, else `false`.\n */\nfunction isPrototype(value) {\n  var Ctor = value && value.constructor,\n      proto = (typeof Ctor == 'function' && Ctor.prototype) || objectProto;\n\n  return value === proto;\n}\n\nmodule.exports = isPrototype;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_isPrototype.js\n// module id = ./node_modules/lodash/_isPrototype.js\n// module chunks = 0","var isObject = require('./isObject');\n\n/**\n * Checks if `value` is suitable for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` if suitable for strict\n *  equality comparisons, else `false`.\n */\nfunction isStrictComparable(value) {\n  return value === value && !isObject(value);\n}\n\nmodule.exports = isStrictComparable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_isStrictComparable.js\n// module id = ./node_modules/lodash/_isStrictComparable.js\n// module chunks = 0","/**\n * Removes all key-value entries from the list cache.\n *\n * @private\n * @name clear\n * @memberOf ListCache\n */\nfunction listCacheClear() {\n  this.__data__ = [];\n  this.size = 0;\n}\n\nmodule.exports = listCacheClear;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_listCacheClear.js\n// module id = ./node_modules/lodash/_listCacheClear.js\n// module chunks = 0","var assocIndexOf = require('./_assocIndexOf');\n\n/** Used for built-in method references. */\nvar arrayProto = Array.prototype;\n\n/** Built-in value references. */\nvar splice = arrayProto.splice;\n\n/**\n * Removes `key` and its value from the list cache.\n *\n * @private\n * @name delete\n * @memberOf ListCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction listCacheDelete(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    return false;\n  }\n  var lastIndex = data.length - 1;\n  if (index == lastIndex) {\n    data.pop();\n  } else {\n    splice.call(data, index, 1);\n  }\n  --this.size;\n  return true;\n}\n\nmodule.exports = listCacheDelete;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_listCacheDelete.js\n// module id = ./node_modules/lodash/_listCacheDelete.js\n// module chunks = 0","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Gets the list cache value for `key`.\n *\n * @private\n * @name get\n * @memberOf ListCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction listCacheGet(key) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  return index < 0 ? undefined : data[index][1];\n}\n\nmodule.exports = listCacheGet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_listCacheGet.js\n// module id = ./node_modules/lodash/_listCacheGet.js\n// module chunks = 0","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Checks if a list cache value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf ListCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction listCacheHas(key) {\n  return assocIndexOf(this.__data__, key) > -1;\n}\n\nmodule.exports = listCacheHas;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_listCacheHas.js\n// module id = ./node_modules/lodash/_listCacheHas.js\n// module chunks = 0","var assocIndexOf = require('./_assocIndexOf');\n\n/**\n * Sets the list cache `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf ListCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the list cache instance.\n */\nfunction listCacheSet(key, value) {\n  var data = this.__data__,\n      index = assocIndexOf(data, key);\n\n  if (index < 0) {\n    ++this.size;\n    data.push([key, value]);\n  } else {\n    data[index][1] = value;\n  }\n  return this;\n}\n\nmodule.exports = listCacheSet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_listCacheSet.js\n// module id = ./node_modules/lodash/_listCacheSet.js\n// module chunks = 0","var Hash = require('./_Hash'),\n    ListCache = require('./_ListCache'),\n    Map = require('./_Map');\n\n/**\n * Removes all key-value entries from the map.\n *\n * @private\n * @name clear\n * @memberOf MapCache\n */\nfunction mapCacheClear() {\n  this.size = 0;\n  this.__data__ = {\n    'hash': new Hash,\n    'map': new (Map || ListCache),\n    'string': new Hash\n  };\n}\n\nmodule.exports = mapCacheClear;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_mapCacheClear.js\n// module id = ./node_modules/lodash/_mapCacheClear.js\n// module chunks = 0","var getMapData = require('./_getMapData');\n\n/**\n * Removes `key` and its value from the map.\n *\n * @private\n * @name delete\n * @memberOf MapCache\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction mapCacheDelete(key) {\n  var result = getMapData(this, key)['delete'](key);\n  this.size -= result ? 1 : 0;\n  return result;\n}\n\nmodule.exports = mapCacheDelete;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_mapCacheDelete.js\n// module id = ./node_modules/lodash/_mapCacheDelete.js\n// module chunks = 0","var getMapData = require('./_getMapData');\n\n/**\n * Gets the map value for `key`.\n *\n * @private\n * @name get\n * @memberOf MapCache\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction mapCacheGet(key) {\n  return getMapData(this, key).get(key);\n}\n\nmodule.exports = mapCacheGet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_mapCacheGet.js\n// module id = ./node_modules/lodash/_mapCacheGet.js\n// module chunks = 0","var getMapData = require('./_getMapData');\n\n/**\n * Checks if a map value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf MapCache\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction mapCacheHas(key) {\n  return getMapData(this, key).has(key);\n}\n\nmodule.exports = mapCacheHas;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_mapCacheHas.js\n// module id = ./node_modules/lodash/_mapCacheHas.js\n// module chunks = 0","var getMapData = require('./_getMapData');\n\n/**\n * Sets the map `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf MapCache\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the map cache instance.\n */\nfunction mapCacheSet(key, value) {\n  var data = getMapData(this, key),\n      size = data.size;\n\n  data.set(key, value);\n  this.size += data.size == size ? 0 : 1;\n  return this;\n}\n\nmodule.exports = mapCacheSet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_mapCacheSet.js\n// module id = ./node_modules/lodash/_mapCacheSet.js\n// module chunks = 0","/**\n * Converts `map` to its key-value pairs.\n *\n * @private\n * @param {Object} map The map to convert.\n * @returns {Array} Returns the key-value pairs.\n */\nfunction mapToArray(map) {\n  var index = -1,\n      result = Array(map.size);\n\n  map.forEach(function(value, key) {\n    result[++index] = [key, value];\n  });\n  return result;\n}\n\nmodule.exports = mapToArray;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_mapToArray.js\n// module id = ./node_modules/lodash/_mapToArray.js\n// module chunks = 0","/**\n * A specialized version of `matchesProperty` for source values suitable\n * for strict equality comparisons, i.e. `===`.\n *\n * @private\n * @param {string} key The key of the property to get.\n * @param {*} srcValue The value to match.\n * @returns {Function} Returns the new spec function.\n */\nfunction matchesStrictComparable(key, srcValue) {\n  return function(object) {\n    if (object == null) {\n      return false;\n    }\n    return object[key] === srcValue &&\n      (srcValue !== undefined || (key in Object(object)));\n  };\n}\n\nmodule.exports = matchesStrictComparable;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_matchesStrictComparable.js\n// module id = ./node_modules/lodash/_matchesStrictComparable.js\n// module chunks = 0","var memoize = require('./memoize');\n\n/** Used as the maximum memoize cache size. */\nvar MAX_MEMOIZE_SIZE = 500;\n\n/**\n * A specialized version of `_.memoize` which clears the memoized function's\n * cache when it exceeds `MAX_MEMOIZE_SIZE`.\n *\n * @private\n * @param {Function} func The function to have its output memoized.\n * @returns {Function} Returns the new memoized function.\n */\nfunction memoizeCapped(func) {\n  var result = memoize(func, function(key) {\n    if (cache.size === MAX_MEMOIZE_SIZE) {\n      cache.clear();\n    }\n    return key;\n  });\n\n  var cache = result.cache;\n  return result;\n}\n\nmodule.exports = memoizeCapped;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_memoizeCapped.js\n// module id = ./node_modules/lodash/_memoizeCapped.js\n// module chunks = 0","var getNative = require('./_getNative');\n\n/* Built-in method references that are verified to be native. */\nvar nativeCreate = getNative(Object, 'create');\n\nmodule.exports = nativeCreate;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_nativeCreate.js\n// module id = ./node_modules/lodash/_nativeCreate.js\n// module chunks = 0","var overArg = require('./_overArg');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeKeys = overArg(Object.keys, Object);\n\nmodule.exports = nativeKeys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_nativeKeys.js\n// module id = ./node_modules/lodash/_nativeKeys.js\n// module chunks = 0","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Detect free variable `process` from Node.js. */\nvar freeProcess = moduleExports && freeGlobal.process;\n\n/** Used to access faster Node.js helpers. */\nvar nodeUtil = (function() {\n  try {\n    // Use `util.types` for Node.js 10+.\n    var types = freeModule && freeModule.require && freeModule.require('util').types;\n\n    if (types) {\n      return types;\n    }\n\n    // Legacy `process.binding('util')` for Node.js < 10.\n    return freeProcess && freeProcess.binding && freeProcess.binding('util');\n  } catch (e) {}\n}());\n\nmodule.exports = nodeUtil;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_nodeUtil.js\n// module id = ./node_modules/lodash/_nodeUtil.js\n// module chunks = 0","/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/**\n * Used to resolve the\n * [`toStringTag`](http://ecma-international.org/ecma-262/7.0/#sec-object.prototype.tostring)\n * of values.\n */\nvar nativeObjectToString = objectProto.toString;\n\n/**\n * Converts `value` to a string using `Object.prototype.toString`.\n *\n * @private\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n */\nfunction objectToString(value) {\n  return nativeObjectToString.call(value);\n}\n\nmodule.exports = objectToString;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_objectToString.js\n// module id = ./node_modules/lodash/_objectToString.js\n// module chunks = 0","/**\n * Creates a unary function that invokes `func` with its argument transformed.\n *\n * @private\n * @param {Function} func The function to wrap.\n * @param {Function} transform The argument transform.\n * @returns {Function} Returns the new function.\n */\nfunction overArg(func, transform) {\n  return function(arg) {\n    return func(transform(arg));\n  };\n}\n\nmodule.exports = overArg;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_overArg.js\n// module id = ./node_modules/lodash/_overArg.js\n// module chunks = 0","var freeGlobal = require('./_freeGlobal');\n\n/** Detect free variable `self`. */\nvar freeSelf = typeof self == 'object' && self && self.Object === Object && self;\n\n/** Used as a reference to the global object. */\nvar root = freeGlobal || freeSelf || Function('return this')();\n\nmodule.exports = root;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_root.js\n// module id = ./node_modules/lodash/_root.js\n// module chunks = 0","/** Used to stand-in for `undefined` hash values. */\nvar HASH_UNDEFINED = '__lodash_hash_undefined__';\n\n/**\n * Adds `value` to the array cache.\n *\n * @private\n * @name add\n * @memberOf SetCache\n * @alias push\n * @param {*} value The value to cache.\n * @returns {Object} Returns the cache instance.\n */\nfunction setCacheAdd(value) {\n  this.__data__.set(value, HASH_UNDEFINED);\n  return this;\n}\n\nmodule.exports = setCacheAdd;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_setCacheAdd.js\n// module id = ./node_modules/lodash/_setCacheAdd.js\n// module chunks = 0","/**\n * Checks if `value` is in the array cache.\n *\n * @private\n * @name has\n * @memberOf SetCache\n * @param {*} value The value to search for.\n * @returns {number} Returns `true` if `value` is found, else `false`.\n */\nfunction setCacheHas(value) {\n  return this.__data__.has(value);\n}\n\nmodule.exports = setCacheHas;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_setCacheHas.js\n// module id = ./node_modules/lodash/_setCacheHas.js\n// module chunks = 0","/**\n * Converts `set` to an array of its values.\n *\n * @private\n * @param {Object} set The set to convert.\n * @returns {Array} Returns the values.\n */\nfunction setToArray(set) {\n  var index = -1,\n      result = Array(set.size);\n\n  set.forEach(function(value) {\n    result[++index] = value;\n  });\n  return result;\n}\n\nmodule.exports = setToArray;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_setToArray.js\n// module id = ./node_modules/lodash/_setToArray.js\n// module chunks = 0","var ListCache = require('./_ListCache');\n\n/**\n * Removes all key-value entries from the stack.\n *\n * @private\n * @name clear\n * @memberOf Stack\n */\nfunction stackClear() {\n  this.__data__ = new ListCache;\n  this.size = 0;\n}\n\nmodule.exports = stackClear;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_stackClear.js\n// module id = ./node_modules/lodash/_stackClear.js\n// module chunks = 0","/**\n * Removes `key` and its value from the stack.\n *\n * @private\n * @name delete\n * @memberOf Stack\n * @param {string} key The key of the value to remove.\n * @returns {boolean} Returns `true` if the entry was removed, else `false`.\n */\nfunction stackDelete(key) {\n  var data = this.__data__,\n      result = data['delete'](key);\n\n  this.size = data.size;\n  return result;\n}\n\nmodule.exports = stackDelete;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_stackDelete.js\n// module id = ./node_modules/lodash/_stackDelete.js\n// module chunks = 0","/**\n * Gets the stack value for `key`.\n *\n * @private\n * @name get\n * @memberOf Stack\n * @param {string} key The key of the value to get.\n * @returns {*} Returns the entry value.\n */\nfunction stackGet(key) {\n  return this.__data__.get(key);\n}\n\nmodule.exports = stackGet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_stackGet.js\n// module id = ./node_modules/lodash/_stackGet.js\n// module chunks = 0","/**\n * Checks if a stack value for `key` exists.\n *\n * @private\n * @name has\n * @memberOf Stack\n * @param {string} key The key of the entry to check.\n * @returns {boolean} Returns `true` if an entry for `key` exists, else `false`.\n */\nfunction stackHas(key) {\n  return this.__data__.has(key);\n}\n\nmodule.exports = stackHas;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_stackHas.js\n// module id = ./node_modules/lodash/_stackHas.js\n// module chunks = 0","var ListCache = require('./_ListCache'),\n    Map = require('./_Map'),\n    MapCache = require('./_MapCache');\n\n/** Used as the size to enable large array optimizations. */\nvar LARGE_ARRAY_SIZE = 200;\n\n/**\n * Sets the stack `key` to `value`.\n *\n * @private\n * @name set\n * @memberOf Stack\n * @param {string} key The key of the value to set.\n * @param {*} value The value to set.\n * @returns {Object} Returns the stack cache instance.\n */\nfunction stackSet(key, value) {\n  var data = this.__data__;\n  if (data instanceof ListCache) {\n    var pairs = data.__data__;\n    if (!Map || (pairs.length < LARGE_ARRAY_SIZE - 1)) {\n      pairs.push([key, value]);\n      this.size = ++data.size;\n      return this;\n    }\n    data = this.__data__ = new MapCache(pairs);\n  }\n  data.set(key, value);\n  this.size = data.size;\n  return this;\n}\n\nmodule.exports = stackSet;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_stackSet.js\n// module id = ./node_modules/lodash/_stackSet.js\n// module chunks = 0","var memoizeCapped = require('./_memoizeCapped');\n\n/** Used to match property names within property paths. */\nvar rePropName = /[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g;\n\n/** Used to match backslashes in property paths. */\nvar reEscapeChar = /\\\\(\\\\)?/g;\n\n/**\n * Converts `string` to a property path array.\n *\n * @private\n * @param {string} string The string to convert.\n * @returns {Array} Returns the property path array.\n */\nvar stringToPath = memoizeCapped(function(string) {\n  var result = [];\n  if (string.charCodeAt(0) === 46 /* . */) {\n    result.push('');\n  }\n  string.replace(rePropName, function(match, number, quote, subString) {\n    result.push(quote ? subString.replace(reEscapeChar, '$1') : (number || match));\n  });\n  return result;\n});\n\nmodule.exports = stringToPath;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_stringToPath.js\n// module id = ./node_modules/lodash/_stringToPath.js\n// module chunks = 0","var isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0;\n\n/**\n * Converts `value` to a string key if it's not a string or symbol.\n *\n * @private\n * @param {*} value The value to inspect.\n * @returns {string|symbol} Returns the key.\n */\nfunction toKey(value) {\n  if (typeof value == 'string' || isSymbol(value)) {\n    return value;\n  }\n  var result = (value + '');\n  return (result == '0' && (1 / value) == -INFINITY) ? '-0' : result;\n}\n\nmodule.exports = toKey;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_toKey.js\n// module id = ./node_modules/lodash/_toKey.js\n// module chunks = 0","/** Used for built-in method references. */\nvar funcProto = Function.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/**\n * Converts `func` to its source code.\n *\n * @private\n * @param {Function} func The function to convert.\n * @returns {string} Returns the source code.\n */\nfunction toSource(func) {\n  if (func != null) {\n    try {\n      return funcToString.call(func);\n    } catch (e) {}\n    try {\n      return (func + '');\n    } catch (e) {}\n  }\n  return '';\n}\n\nmodule.exports = toSource;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/_toSource.js\n// module id = ./node_modules/lodash/_toSource.js\n// module chunks = 0","/**\n * Performs a\n * [`SameValueZero`](http://ecma-international.org/ecma-262/7.0/#sec-samevaluezero)\n * comparison between two values to determine if they are equivalent.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to compare.\n * @param {*} other The other value to compare.\n * @returns {boolean} Returns `true` if the values are equivalent, else `false`.\n * @example\n *\n * var object = { 'a': 1 };\n * var other = { 'a': 1 };\n *\n * _.eq(object, object);\n * // => true\n *\n * _.eq(object, other);\n * // => false\n *\n * _.eq('a', 'a');\n * // => true\n *\n * _.eq('a', Object('a'));\n * // => false\n *\n * _.eq(NaN, NaN);\n * // => true\n */\nfunction eq(value, other) {\n  return value === other || (value !== value && other !== other);\n}\n\nmodule.exports = eq;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/eq.js\n// module id = ./node_modules/lodash/eq.js\n// module chunks = 0","var createFind = require('./_createFind'),\n    findIndex = require('./findIndex');\n\n/**\n * Iterates over elements of `collection`, returning the first element\n * `predicate` returns truthy for. The predicate is invoked with three\n * arguments: (value, index|key, collection).\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {*} Returns the matched element, else `undefined`.\n * @example\n *\n * var users = [\n *   { 'user': 'barney',  'age': 36, 'active': true },\n *   { 'user': 'fred',    'age': 40, 'active': false },\n *   { 'user': 'pebbles', 'age': 1,  'active': true }\n * ];\n *\n * _.find(users, function(o) { return o.age < 40; });\n * // => object for 'barney'\n *\n * // The `_.matches` iteratee shorthand.\n * _.find(users, { 'age': 1, 'active': true });\n * // => object for 'pebbles'\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.find(users, ['active', false]);\n * // => object for 'fred'\n *\n * // The `_.property` iteratee shorthand.\n * _.find(users, 'active');\n * // => object for 'barney'\n */\nvar find = createFind(findIndex);\n\nmodule.exports = find;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/find.js\n// module id = ./node_modules/lodash/find.js\n// module chunks = 0","var baseFindIndex = require('./_baseFindIndex'),\n    baseIteratee = require('./_baseIteratee'),\n    toInteger = require('./toInteger');\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max;\n\n/**\n * This method is like `_.find` except that it returns the index of the first\n * element `predicate` returns truthy for instead of the element itself.\n *\n * @static\n * @memberOf _\n * @since 1.1.0\n * @category Array\n * @param {Array} array The array to inspect.\n * @param {Function} [predicate=_.identity] The function invoked per iteration.\n * @param {number} [fromIndex=0] The index to search from.\n * @returns {number} Returns the index of the found element, else `-1`.\n * @example\n *\n * var users = [\n *   { 'user': 'barney',  'active': false },\n *   { 'user': 'fred',    'active': false },\n *   { 'user': 'pebbles', 'active': true }\n * ];\n *\n * _.findIndex(users, function(o) { return o.user == 'barney'; });\n * // => 0\n *\n * // The `_.matches` iteratee shorthand.\n * _.findIndex(users, { 'user': 'fred', 'active': false });\n * // => 1\n *\n * // The `_.matchesProperty` iteratee shorthand.\n * _.findIndex(users, ['active', false]);\n * // => 0\n *\n * // The `_.property` iteratee shorthand.\n * _.findIndex(users, 'active');\n * // => 2\n */\nfunction findIndex(array, predicate, fromIndex) {\n  var length = array == null ? 0 : array.length;\n  if (!length) {\n    return -1;\n  }\n  var index = fromIndex == null ? 0 : toInteger(fromIndex);\n  if (index < 0) {\n    index = nativeMax(length + index, 0);\n  }\n  return baseFindIndex(array, baseIteratee(predicate, 3), index);\n}\n\nmodule.exports = findIndex;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/findIndex.js\n// module id = ./node_modules/lodash/findIndex.js\n// module chunks = 0","var baseGet = require('./_baseGet');\n\n/**\n * Gets the value at `path` of `object`. If the resolved value is\n * `undefined`, the `defaultValue` is returned in its place.\n *\n * @static\n * @memberOf _\n * @since 3.7.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path of the property to get.\n * @param {*} [defaultValue] The value returned for `undefined` resolved values.\n * @returns {*} Returns the resolved value.\n * @example\n *\n * var object = { 'a': [{ 'b': { 'c': 3 } }] };\n *\n * _.get(object, 'a[0].b.c');\n * // => 3\n *\n * _.get(object, ['a', '0', 'b', 'c']);\n * // => 3\n *\n * _.get(object, 'a.b.c', 'default');\n * // => 'default'\n */\nfunction get(object, path, defaultValue) {\n  var result = object == null ? undefined : baseGet(object, path);\n  return result === undefined ? defaultValue : result;\n}\n\nmodule.exports = get;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/get.js\n// module id = ./node_modules/lodash/get.js\n// module chunks = 0","var baseHasIn = require('./_baseHasIn'),\n    hasPath = require('./_hasPath');\n\n/**\n * Checks if `path` is a direct or inherited property of `object`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Object\n * @param {Object} object The object to query.\n * @param {Array|string} path The path to check.\n * @returns {boolean} Returns `true` if `path` exists, else `false`.\n * @example\n *\n * var object = _.create({ 'a': _.create({ 'b': 2 }) });\n *\n * _.hasIn(object, 'a');\n * // => true\n *\n * _.hasIn(object, 'a.b');\n * // => true\n *\n * _.hasIn(object, ['a', 'b']);\n * // => true\n *\n * _.hasIn(object, 'b');\n * // => false\n */\nfunction hasIn(object, path) {\n  return object != null && hasPath(object, path, baseHasIn);\n}\n\nmodule.exports = hasIn;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/hasIn.js\n// module id = ./node_modules/lodash/hasIn.js\n// module chunks = 0","/**\n * This method returns the first argument it receives.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Util\n * @param {*} value Any value.\n * @returns {*} Returns `value`.\n * @example\n *\n * var object = { 'a': 1 };\n *\n * console.log(_.identity(object) === object);\n * // => true\n */\nfunction identity(value) {\n  return value;\n}\n\nmodule.exports = identity;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/identity.js\n// module id = ./node_modules/lodash/identity.js\n// module chunks = 0","var baseIsArguments = require('./_baseIsArguments'),\n    isObjectLike = require('./isObjectLike');\n\n/** Used for built-in method references. */\nvar objectProto = Object.prototype;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Built-in value references. */\nvar propertyIsEnumerable = objectProto.propertyIsEnumerable;\n\n/**\n * Checks if `value` is likely an `arguments` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an `arguments` object,\n *  else `false`.\n * @example\n *\n * _.isArguments(function() { return arguments; }());\n * // => true\n *\n * _.isArguments([1, 2, 3]);\n * // => false\n */\nvar isArguments = baseIsArguments(function() { return arguments; }()) ? baseIsArguments : function(value) {\n  return isObjectLike(value) && hasOwnProperty.call(value, 'callee') &&\n    !propertyIsEnumerable.call(value, 'callee');\n};\n\nmodule.exports = isArguments;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isArguments.js\n// module id = ./node_modules/lodash/isArguments.js\n// module chunks = 0","/**\n * Checks if `value` is classified as an `Array` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an array, else `false`.\n * @example\n *\n * _.isArray([1, 2, 3]);\n * // => true\n *\n * _.isArray(document.body.children);\n * // => false\n *\n * _.isArray('abc');\n * // => false\n *\n * _.isArray(_.noop);\n * // => false\n */\nvar isArray = Array.isArray;\n\nmodule.exports = isArray;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isArray.js\n// module id = ./node_modules/lodash/isArray.js\n// module chunks = 0","var isFunction = require('./isFunction'),\n    isLength = require('./isLength');\n\n/**\n * Checks if `value` is array-like. A value is considered array-like if it's\n * not a function and has a `value.length` that's an integer greater than or\n * equal to `0` and less than or equal to `Number.MAX_SAFE_INTEGER`.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is array-like, else `false`.\n * @example\n *\n * _.isArrayLike([1, 2, 3]);\n * // => true\n *\n * _.isArrayLike(document.body.children);\n * // => true\n *\n * _.isArrayLike('abc');\n * // => true\n *\n * _.isArrayLike(_.noop);\n * // => false\n */\nfunction isArrayLike(value) {\n  return value != null && isLength(value.length) && !isFunction(value);\n}\n\nmodule.exports = isArrayLike;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isArrayLike.js\n// module id = ./node_modules/lodash/isArrayLike.js\n// module chunks = 0","var baseGetTag = require('./_baseGetTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar boolTag = '[object Boolean]';\n\n/**\n * Checks if `value` is classified as a boolean primitive or object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a boolean, else `false`.\n * @example\n *\n * _.isBoolean(false);\n * // => true\n *\n * _.isBoolean(null);\n * // => false\n */\nfunction isBoolean(value) {\n  return value === true || value === false ||\n    (isObjectLike(value) && baseGetTag(value) == boolTag);\n}\n\nmodule.exports = isBoolean;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isBoolean.js\n// module id = ./node_modules/lodash/isBoolean.js\n// module chunks = 0","var root = require('./_root'),\n    stubFalse = require('./stubFalse');\n\n/** Detect free variable `exports`. */\nvar freeExports = typeof exports == 'object' && exports && !exports.nodeType && exports;\n\n/** Detect free variable `module`. */\nvar freeModule = freeExports && typeof module == 'object' && module && !module.nodeType && module;\n\n/** Detect the popular CommonJS extension `module.exports`. */\nvar moduleExports = freeModule && freeModule.exports === freeExports;\n\n/** Built-in value references. */\nvar Buffer = moduleExports ? root.Buffer : undefined;\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeIsBuffer = Buffer ? Buffer.isBuffer : undefined;\n\n/**\n * Checks if `value` is a buffer.\n *\n * @static\n * @memberOf _\n * @since 4.3.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a buffer, else `false`.\n * @example\n *\n * _.isBuffer(new Buffer(2));\n * // => true\n *\n * _.isBuffer(new Uint8Array(2));\n * // => false\n */\nvar isBuffer = nativeIsBuffer || stubFalse;\n\nmodule.exports = isBuffer;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isBuffer.js\n// module id = ./node_modules/lodash/isBuffer.js\n// module chunks = 0","var baseGetTag = require('./_baseGetTag'),\n    isObject = require('./isObject');\n\n/** `Object#toString` result references. */\nvar asyncTag = '[object AsyncFunction]',\n    funcTag = '[object Function]',\n    genTag = '[object GeneratorFunction]',\n    proxyTag = '[object Proxy]';\n\n/**\n * Checks if `value` is classified as a `Function` object.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a function, else `false`.\n * @example\n *\n * _.isFunction(_);\n * // => true\n *\n * _.isFunction(/abc/);\n * // => false\n */\nfunction isFunction(value) {\n  if (!isObject(value)) {\n    return false;\n  }\n  // The use of `Object#toString` avoids issues with the `typeof` operator\n  // in Safari 9 which returns 'object' for typed arrays and other constructors.\n  var tag = baseGetTag(value);\n  return tag == funcTag || tag == genTag || tag == asyncTag || tag == proxyTag;\n}\n\nmodule.exports = isFunction;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isFunction.js\n// module id = ./node_modules/lodash/isFunction.js\n// module chunks = 0","/** Used as references for various `Number` constants. */\nvar MAX_SAFE_INTEGER = 9007199254740991;\n\n/**\n * Checks if `value` is a valid array-like length.\n *\n * **Note:** This method is loosely based on\n * [`ToLength`](http://ecma-international.org/ecma-262/7.0/#sec-tolength).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a valid length, else `false`.\n * @example\n *\n * _.isLength(3);\n * // => true\n *\n * _.isLength(Number.MIN_VALUE);\n * // => false\n *\n * _.isLength(Infinity);\n * // => false\n *\n * _.isLength('3');\n * // => false\n */\nfunction isLength(value) {\n  return typeof value == 'number' &&\n    value > -1 && value % 1 == 0 && value <= MAX_SAFE_INTEGER;\n}\n\nmodule.exports = isLength;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isLength.js\n// module id = ./node_modules/lodash/isLength.js\n// module chunks = 0","/**\n * Checks if `value` is `null`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `null`, else `false`.\n * @example\n *\n * _.isNull(null);\n * // => true\n *\n * _.isNull(void 0);\n * // => false\n */\nfunction isNull(value) {\n  return value === null;\n}\n\nmodule.exports = isNull;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isNull.js\n// module id = ./node_modules/lodash/isNull.js\n// module chunks = 0","var baseGetTag = require('./_baseGetTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar numberTag = '[object Number]';\n\n/**\n * Checks if `value` is classified as a `Number` primitive or object.\n *\n * **Note:** To exclude `Infinity`, `-Infinity`, and `NaN`, which are\n * classified as numbers, use the `_.isFinite` method.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a number, else `false`.\n * @example\n *\n * _.isNumber(3);\n * // => true\n *\n * _.isNumber(Number.MIN_VALUE);\n * // => true\n *\n * _.isNumber(Infinity);\n * // => true\n *\n * _.isNumber('3');\n * // => false\n */\nfunction isNumber(value) {\n  return typeof value == 'number' ||\n    (isObjectLike(value) && baseGetTag(value) == numberTag);\n}\n\nmodule.exports = isNumber;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isNumber.js\n// module id = ./node_modules/lodash/isNumber.js\n// module chunks = 0","/**\n * Checks if `value` is the\n * [language type](http://www.ecma-international.org/ecma-262/7.0/#sec-ecmascript-language-types)\n * of `Object`. (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`)\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is an object, else `false`.\n * @example\n *\n * _.isObject({});\n * // => true\n *\n * _.isObject([1, 2, 3]);\n * // => true\n *\n * _.isObject(_.noop);\n * // => true\n *\n * _.isObject(null);\n * // => false\n */\nfunction isObject(value) {\n  var type = typeof value;\n  return value != null && (type == 'object' || type == 'function');\n}\n\nmodule.exports = isObject;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isObject.js\n// module id = ./node_modules/lodash/isObject.js\n// module chunks = 0","/**\n * Checks if `value` is object-like. A value is object-like if it's not `null`\n * and has a `typeof` result of \"object\".\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is object-like, else `false`.\n * @example\n *\n * _.isObjectLike({});\n * // => true\n *\n * _.isObjectLike([1, 2, 3]);\n * // => true\n *\n * _.isObjectLike(_.noop);\n * // => false\n *\n * _.isObjectLike(null);\n * // => false\n */\nfunction isObjectLike(value) {\n  return value != null && typeof value == 'object';\n}\n\nmodule.exports = isObjectLike;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isObjectLike.js\n// module id = ./node_modules/lodash/isObjectLike.js\n// module chunks = 0","var baseGetTag = require('./_baseGetTag'),\n    getPrototype = require('./_getPrototype'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar objectTag = '[object Object]';\n\n/** Used for built-in method references. */\nvar funcProto = Function.prototype,\n    objectProto = Object.prototype;\n\n/** Used to resolve the decompiled source of functions. */\nvar funcToString = funcProto.toString;\n\n/** Used to check objects for own properties. */\nvar hasOwnProperty = objectProto.hasOwnProperty;\n\n/** Used to infer the `Object` constructor. */\nvar objectCtorString = funcToString.call(Object);\n\n/**\n * Checks if `value` is a plain object, that is, an object created by the\n * `Object` constructor or one with a `[[Prototype]]` of `null`.\n *\n * @static\n * @memberOf _\n * @since 0.8.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a plain object, else `false`.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n * }\n *\n * _.isPlainObject(new Foo);\n * // => false\n *\n * _.isPlainObject([1, 2, 3]);\n * // => false\n *\n * _.isPlainObject({ 'x': 0, 'y': 0 });\n * // => true\n *\n * _.isPlainObject(Object.create(null));\n * // => true\n */\nfunction isPlainObject(value) {\n  if (!isObjectLike(value) || baseGetTag(value) != objectTag) {\n    return false;\n  }\n  var proto = getPrototype(value);\n  if (proto === null) {\n    return true;\n  }\n  var Ctor = hasOwnProperty.call(proto, 'constructor') && proto.constructor;\n  return typeof Ctor == 'function' && Ctor instanceof Ctor &&\n    funcToString.call(Ctor) == objectCtorString;\n}\n\nmodule.exports = isPlainObject;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isPlainObject.js\n// module id = ./node_modules/lodash/isPlainObject.js\n// module chunks = 0","var baseGetTag = require('./_baseGetTag'),\n    isArray = require('./isArray'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar stringTag = '[object String]';\n\n/**\n * Checks if `value` is classified as a `String` primitive or object.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a string, else `false`.\n * @example\n *\n * _.isString('abc');\n * // => true\n *\n * _.isString(1);\n * // => false\n */\nfunction isString(value) {\n  return typeof value == 'string' ||\n    (!isArray(value) && isObjectLike(value) && baseGetTag(value) == stringTag);\n}\n\nmodule.exports = isString;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isString.js\n// module id = ./node_modules/lodash/isString.js\n// module chunks = 0","var baseGetTag = require('./_baseGetTag'),\n    isObjectLike = require('./isObjectLike');\n\n/** `Object#toString` result references. */\nvar symbolTag = '[object Symbol]';\n\n/**\n * Checks if `value` is classified as a `Symbol` primitive or object.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a symbol, else `false`.\n * @example\n *\n * _.isSymbol(Symbol.iterator);\n * // => true\n *\n * _.isSymbol('abc');\n * // => false\n */\nfunction isSymbol(value) {\n  return typeof value == 'symbol' ||\n    (isObjectLike(value) && baseGetTag(value) == symbolTag);\n}\n\nmodule.exports = isSymbol;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isSymbol.js\n// module id = ./node_modules/lodash/isSymbol.js\n// module chunks = 0","var baseIsTypedArray = require('./_baseIsTypedArray'),\n    baseUnary = require('./_baseUnary'),\n    nodeUtil = require('./_nodeUtil');\n\n/* Node.js helper references. */\nvar nodeIsTypedArray = nodeUtil && nodeUtil.isTypedArray;\n\n/**\n * Checks if `value` is classified as a typed array.\n *\n * @static\n * @memberOf _\n * @since 3.0.0\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is a typed array, else `false`.\n * @example\n *\n * _.isTypedArray(new Uint8Array);\n * // => true\n *\n * _.isTypedArray([]);\n * // => false\n */\nvar isTypedArray = nodeIsTypedArray ? baseUnary(nodeIsTypedArray) : baseIsTypedArray;\n\nmodule.exports = isTypedArray;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isTypedArray.js\n// module id = ./node_modules/lodash/isTypedArray.js\n// module chunks = 0","/**\n * Checks if `value` is `undefined`.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Lang\n * @param {*} value The value to check.\n * @returns {boolean} Returns `true` if `value` is `undefined`, else `false`.\n * @example\n *\n * _.isUndefined(void 0);\n * // => true\n *\n * _.isUndefined(null);\n * // => false\n */\nfunction isUndefined(value) {\n  return value === undefined;\n}\n\nmodule.exports = isUndefined;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/isUndefined.js\n// module id = ./node_modules/lodash/isUndefined.js\n// module chunks = 0","var arrayLikeKeys = require('./_arrayLikeKeys'),\n    baseKeys = require('./_baseKeys'),\n    isArrayLike = require('./isArrayLike');\n\n/**\n * Creates an array of the own enumerable property names of `object`.\n *\n * **Note:** Non-object values are coerced to objects. See the\n * [ES spec](http://ecma-international.org/ecma-262/7.0/#sec-object.keys)\n * for more details.\n *\n * @static\n * @since 0.1.0\n * @memberOf _\n * @category Object\n * @param {Object} object The object to query.\n * @returns {Array} Returns the array of property names.\n * @example\n *\n * function Foo() {\n *   this.a = 1;\n *   this.b = 2;\n * }\n *\n * Foo.prototype.c = 3;\n *\n * _.keys(new Foo);\n * // => ['a', 'b'] (iteration order is not guaranteed)\n *\n * _.keys('hi');\n * // => ['0', '1']\n */\nfunction keys(object) {\n  return isArrayLike(object) ? arrayLikeKeys(object) : baseKeys(object);\n}\n\nmodule.exports = keys;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/keys.js\n// module id = ./node_modules/lodash/keys.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/lodash/lodash.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/lodash/lodash.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/lodash/lodash.js\n// module chunks = 0","var arrayMap = require('./_arrayMap'),\n    baseIteratee = require('./_baseIteratee'),\n    baseMap = require('./_baseMap'),\n    isArray = require('./isArray');\n\n/**\n * Creates an array of values by running each element in `collection` thru\n * `iteratee`. The iteratee is invoked with three arguments:\n * (value, index|key, collection).\n *\n * Many lodash methods are guarded to work as iteratees for methods like\n * `_.every`, `_.filter`, `_.map`, `_.mapValues`, `_.reject`, and `_.some`.\n *\n * The guarded methods are:\n * `ary`, `chunk`, `curry`, `curryRight`, `drop`, `dropRight`, `every`,\n * `fill`, `invert`, `parseInt`, `random`, `range`, `rangeRight`, `repeat`,\n * `sampleSize`, `slice`, `some`, `sortBy`, `split`, `take`, `takeRight`,\n * `template`, `trim`, `trimEnd`, `trimStart`, and `words`\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Collection\n * @param {Array|Object} collection The collection to iterate over.\n * @param {Function} [iteratee=_.identity] The function invoked per iteration.\n * @returns {Array} Returns the new mapped array.\n * @example\n *\n * function square(n) {\n *   return n * n;\n * }\n *\n * _.map([4, 8], square);\n * // => [16, 64]\n *\n * _.map({ 'a': 4, 'b': 8 }, square);\n * // => [16, 64] (iteration order is not guaranteed)\n *\n * var users = [\n *   { 'user': 'barney' },\n *   { 'user': 'fred' }\n * ];\n *\n * // The `_.property` iteratee shorthand.\n * _.map(users, 'user');\n * // => ['barney', 'fred']\n */\nfunction map(collection, iteratee) {\n  var func = isArray(collection) ? arrayMap : baseMap;\n  return func(collection, baseIteratee(iteratee, 3));\n}\n\nmodule.exports = map;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/map.js\n// module id = ./node_modules/lodash/map.js\n// module chunks = 0","var MapCache = require('./_MapCache');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a function that memoizes the result of `func`. If `resolver` is\n * provided, it determines the cache key for storing the result based on the\n * arguments provided to the memoized function. By default, the first argument\n * provided to the memoized function is used as the map cache key. The `func`\n * is invoked with the `this` binding of the memoized function.\n *\n * **Note:** The cache is exposed as the `cache` property on the memoized\n * function. Its creation may be customized by replacing the `_.memoize.Cache`\n * constructor with one whose instances implement the\n * [`Map`](http://ecma-international.org/ecma-262/7.0/#sec-properties-of-the-map-prototype-object)\n * method interface of `clear`, `delete`, `get`, `has`, and `set`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to have its output memoized.\n * @param {Function} [resolver] The function to resolve the cache key.\n * @returns {Function} Returns the new memoized function.\n * @example\n *\n * var object = { 'a': 1, 'b': 2 };\n * var other = { 'c': 3, 'd': 4 };\n *\n * var values = _.memoize(_.values);\n * values(object);\n * // => [1, 2]\n *\n * values(other);\n * // => [3, 4]\n *\n * object.a = 2;\n * values(object);\n * // => [1, 2]\n *\n * // Modify the result cache.\n * values.cache.set(object, ['a', 'b']);\n * values(object);\n * // => ['a', 'b']\n *\n * // Replace `_.memoize.Cache`.\n * _.memoize.Cache = WeakMap;\n */\nfunction memoize(func, resolver) {\n  if (typeof func != 'function' || (resolver != null && typeof resolver != 'function')) {\n    throw new TypeError(FUNC_ERROR_TEXT);\n  }\n  var memoized = function() {\n    var args = arguments,\n        key = resolver ? resolver.apply(this, args) : args[0],\n        cache = memoized.cache;\n\n    if (cache.has(key)) {\n      return cache.get(key);\n    }\n    var result = func.apply(this, args);\n    memoized.cache = cache.set(key, result) || cache;\n    return result;\n  };\n  memoized.cache = new (memoize.Cache || MapCache);\n  return memoized;\n}\n\n// Expose `MapCache`.\nmemoize.Cache = MapCache;\n\nmodule.exports = memoize;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/memoize.js\n// module id = ./node_modules/lodash/memoize.js\n// module chunks = 0","var baseProperty = require('./_baseProperty'),\n    basePropertyDeep = require('./_basePropertyDeep'),\n    isKey = require('./_isKey'),\n    toKey = require('./_toKey');\n\n/**\n * Creates a function that returns the value at `path` of a given object.\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Util\n * @param {Array|string} path The path of the property to get.\n * @returns {Function} Returns the new accessor function.\n * @example\n *\n * var objects = [\n *   { 'a': { 'b': 2 } },\n *   { 'a': { 'b': 1 } }\n * ];\n *\n * _.map(objects, _.property('a.b'));\n * // => [2, 1]\n *\n * _.map(_.sortBy(objects, _.property(['a', 'b'])), 'a.b');\n * // => [1, 2]\n */\nfunction property(path) {\n  return isKey(path) ? baseProperty(toKey(path)) : basePropertyDeep(path);\n}\n\nmodule.exports = property;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/property.js\n// module id = ./node_modules/lodash/property.js\n// module chunks = 0","/**\n * This method returns a new empty array.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {Array} Returns the new empty array.\n * @example\n *\n * var arrays = _.times(2, _.stubArray);\n *\n * console.log(arrays);\n * // => [[], []]\n *\n * console.log(arrays[0] === arrays[1]);\n * // => false\n */\nfunction stubArray() {\n  return [];\n}\n\nmodule.exports = stubArray;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/stubArray.js\n// module id = ./node_modules/lodash/stubArray.js\n// module chunks = 0","/**\n * This method returns `false`.\n *\n * @static\n * @memberOf _\n * @since 4.13.0\n * @category Util\n * @returns {boolean} Returns `false`.\n * @example\n *\n * _.times(2, _.stubFalse);\n * // => [false, false]\n */\nfunction stubFalse() {\n  return false;\n}\n\nmodule.exports = stubFalse;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/stubFalse.js\n// module id = ./node_modules/lodash/stubFalse.js\n// module chunks = 0","var toNumber = require('./toNumber');\n\n/** Used as references for various `Number` constants. */\nvar INFINITY = 1 / 0,\n    MAX_INTEGER = 1.7976931348623157e+308;\n\n/**\n * Converts `value` to a finite number.\n *\n * @static\n * @memberOf _\n * @since 4.12.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted number.\n * @example\n *\n * _.toFinite(3.2);\n * // => 3.2\n *\n * _.toFinite(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toFinite(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toFinite('3.2');\n * // => 3.2\n */\nfunction toFinite(value) {\n  if (!value) {\n    return value === 0 ? value : 0;\n  }\n  value = toNumber(value);\n  if (value === INFINITY || value === -INFINITY) {\n    var sign = (value < 0 ? -1 : 1);\n    return sign * MAX_INTEGER;\n  }\n  return value === value ? value : 0;\n}\n\nmodule.exports = toFinite;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/toFinite.js\n// module id = ./node_modules/lodash/toFinite.js\n// module chunks = 0","var toFinite = require('./toFinite');\n\n/**\n * Converts `value` to an integer.\n *\n * **Note:** This method is loosely based on\n * [`ToInteger`](http://www.ecma-international.org/ecma-262/7.0/#sec-tointeger).\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {number} Returns the converted integer.\n * @example\n *\n * _.toInteger(3.2);\n * // => 3\n *\n * _.toInteger(Number.MIN_VALUE);\n * // => 0\n *\n * _.toInteger(Infinity);\n * // => 1.7976931348623157e+308\n *\n * _.toInteger('3.2');\n * // => 3\n */\nfunction toInteger(value) {\n  var result = toFinite(value),\n      remainder = result % 1;\n\n  return result === result ? (remainder ? result - remainder : result) : 0;\n}\n\nmodule.exports = toInteger;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/toInteger.js\n// module id = ./node_modules/lodash/toInteger.js\n// module chunks = 0","var isObject = require('./isObject'),\n    isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to match leading and trailing whitespace. */\nvar reTrim = /^\\s+|\\s+$/g;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n  if (typeof value == 'number') {\n    return value;\n  }\n  if (isSymbol(value)) {\n    return NAN;\n  }\n  if (isObject(value)) {\n    var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n    value = isObject(other) ? (other + '') : other;\n  }\n  if (typeof value != 'string') {\n    return value === 0 ? value : +value;\n  }\n  value = value.replace(reTrim, '');\n  var isBinary = reIsBinary.test(value);\n  return (isBinary || reIsOctal.test(value))\n    ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n    : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/toNumber.js\n// module id = ./node_modules/lodash/toNumber.js\n// module chunks = 0","var baseToString = require('./_baseToString');\n\n/**\n * Converts `value` to a string. An empty string is returned for `null`\n * and `undefined` values. The sign of `-0` is preserved.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to convert.\n * @returns {string} Returns the converted string.\n * @example\n *\n * _.toString(null);\n * // => ''\n *\n * _.toString(-0);\n * // => '-0'\n *\n * _.toString([1, 2, 3]);\n * // => '1,2,3'\n */\nfunction toString(value) {\n  return value == null ? '' : baseToString(value);\n}\n\nmodule.exports = toString;\n\n\n\n//////////////////\n// WEBPACK FOOTER\n// ./node_modules/lodash/toString.js\n// module id = ./node_modules/lodash/toString.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/process/browser.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/process/browser.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/process/browser.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/reflect-metadata/Reflect.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/reflect-metadata/Reflect.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/reflect-metadata/Reflect.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/AsyncSubject.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/AsyncSubject.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/AsyncSubject.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/BehaviorSubject.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/BehaviorSubject.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/BehaviorSubject.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Notification.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/Notification.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/Notification.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Observable.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/Observable.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/Observable.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/OuterSubscriber.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/OuterSubscriber.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/OuterSubscriber.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/ReplaySubject.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/ReplaySubject.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/ReplaySubject.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Rx.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/Rx.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/Rx.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Subject.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/Subject.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/Subject.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Subscriber.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/Subscriber.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/Subscriber.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/Subscription.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/Subscription.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/Subscription.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/add/observable/empty.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/add/observable/empty.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/add/observable/empty.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/add/observable/from.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/add/observable/from.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/add/observable/from.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/add/operator/switchMap.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/add/operator/switchMap.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/add/operator/switchMap.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/ArrayObservable.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/observable/ArrayObservable.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/observable/ArrayObservable.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/ConnectableObservable.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/observable/ConnectableObservable.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/observable/ConnectableObservable.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/EmptyObservable.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/observable/EmptyObservable.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/observable/EmptyObservable.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/FromObservable.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/observable/FromObservable.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/observable/FromObservable.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/ScalarObservable.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/observable/ScalarObservable.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/observable/ScalarObservable.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/concat.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/observable/concat.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/observable/concat.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/merge.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/observable/merge.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/observable/merge.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/race.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/observable/race.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/observable/race.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/observable/timer.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/observable/timer.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/observable/timer.js\n// module chunks = 0","export { audit } from './operators/audit';\nexport { auditTime } from './operators/auditTime';\nexport { buffer } from './operators/buffer';\nexport { bufferCount } from './operators/bufferCount';\nexport { bufferTime } from './operators/bufferTime';\nexport { bufferToggle } from './operators/bufferToggle';\nexport { bufferWhen } from './operators/bufferWhen';\nexport { catchError } from './operators/catchError';\nexport { combineAll } from './operators/combineAll';\nexport { combineLatest } from './operators/combineLatest';\nexport { concat } from './operators/concat';\nexport { concatAll } from './operators/concatAll';\nexport { concatMap } from './operators/concatMap';\nexport { concatMapTo } from './operators/concatMapTo';\nexport { count } from './operators/count';\nexport { debounce } from './operators/debounce';\nexport { debounceTime } from './operators/debounceTime';\nexport { defaultIfEmpty } from './operators/defaultIfEmpty';\nexport { delay } from './operators/delay';\nexport { delayWhen } from './operators/delayWhen';\nexport { dematerialize } from './operators/dematerialize';\nexport { distinct } from './operators/distinct';\nexport { distinctUntilChanged } from './operators/distinctUntilChanged';\nexport { distinctUntilKeyChanged } from './operators/distinctUntilKeyChanged';\nexport { elementAt } from './operators/elementAt';\nexport { every } from './operators/every';\nexport { exhaust } from './operators/exhaust';\nexport { exhaustMap } from './operators/exhaustMap';\nexport { expand } from './operators/expand';\nexport { filter } from './operators/filter';\nexport { finalize } from './operators/finalize';\nexport { find } from './operators/find';\nexport { findIndex } from './operators/findIndex';\nexport { first } from './operators/first';\nexport { groupBy } from './operators/groupBy';\nexport { ignoreElements } from './operators/ignoreElements';\nexport { isEmpty } from './operators/isEmpty';\nexport { last } from './operators/last';\nexport { map } from './operators/map';\nexport { mapTo } from './operators/mapTo';\nexport { materialize } from './operators/materialize';\nexport { max } from './operators/max';\nexport { merge } from './operators/merge';\nexport { mergeAll } from './operators/mergeAll';\nexport { mergeMap } from './operators/mergeMap';\nexport { mergeMap as flatMap } from './operators/mergeMap';\nexport { mergeMapTo } from './operators/mergeMapTo';\nexport { mergeScan } from './operators/mergeScan';\nexport { min } from './operators/min';\nexport { multicast } from './operators/multicast';\nexport { observeOn } from './operators/observeOn';\nexport { onErrorResumeNext } from './operators/onErrorResumeNext';\nexport { pairwise } from './operators/pairwise';\nexport { partition } from './operators/partition';\nexport { pluck } from './operators/pluck';\nexport { publish } from './operators/publish';\nexport { publishBehavior } from './operators/publishBehavior';\nexport { publishLast } from './operators/publishLast';\nexport { publishReplay } from './operators/publishReplay';\nexport { race } from './operators/race';\nexport { reduce } from './operators/reduce';\nexport { repeat } from './operators/repeat';\nexport { repeatWhen } from './operators/repeatWhen';\nexport { retry } from './operators/retry';\nexport { retryWhen } from './operators/retryWhen';\nexport { refCount } from './operators/refCount';\nexport { sample } from './operators/sample';\nexport { sampleTime } from './operators/sampleTime';\nexport { scan } from './operators/scan';\nexport { sequenceEqual } from './operators/sequenceEqual';\nexport { share } from './operators/share';\nexport { shareReplay } from './operators/shareReplay';\nexport { single } from './operators/single';\nexport { skip } from './operators/skip';\nexport { skipLast } from './operators/skipLast';\nexport { skipUntil } from './operators/skipUntil';\nexport { skipWhile } from './operators/skipWhile';\nexport { startWith } from './operators/startWith';\n/**\n * TODO(https://github.com/ReactiveX/rxjs/issues/2900): Add back subscribeOn once it can be\n * treeshaken. Currently if this export is added back, it\n * forces apps to bring in asap scheduler along with\n * Immediate, root, and other supporting code.\n */\n// export { subscribeOn } from './operators/subscribeOn';\nexport { switchAll } from './operators/switchAll';\nexport { switchMap } from './operators/switchMap';\nexport { switchMapTo } from './operators/switchMapTo';\nexport { take } from './operators/take';\nexport { takeLast } from './operators/takeLast';\nexport { takeUntil } from './operators/takeUntil';\nexport { takeWhile } from './operators/takeWhile';\nexport { tap } from './operators/tap';\nexport { throttle } from './operators/throttle';\nexport { throttleTime } from './operators/throttleTime';\nexport { timeInterval } from './operators/timeInterval';\nexport { timeout } from './operators/timeout';\nexport { timeoutWith } from './operators/timeoutWith';\nexport { timestamp } from './operators/timestamp';\nexport { toArray } from './operators/toArray';\nexport { window } from './operators/window';\nexport { windowCount } from './operators/windowCount';\nexport { windowTime } from './operators/windowTime';\nexport { windowToggle } from './operators/windowToggle';\nexport { windowWhen } from './operators/windowWhen';\nexport { withLatestFrom } from './operators/withLatestFrom';\nexport { zip } from './operators/zip';\nexport { zipAll } from './operators/zipAll';\n\n\n\n// WEBPACK FOOTER //\n// ../src/operators.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable, SubscribableOrPromise } from '../Observable';\nimport { Subscription, TeardownLogic } from '../Subscription';\n\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Ignores source values for a duration determined by another Observable, then\n * emits the most recent value from the source Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link auditTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * <img src=\"./img/audit.png\" width=\"100%\">\n *\n * `audit` is similar to `throttle`, but emits the last value from the silenced\n * time window, instead of the first value. `audit` emits the most recent value\n * from the source Observable on the output Observable as soon as its internal\n * timer becomes disabled, and ignores source values while the timer is enabled.\n * Initially, the timer is disabled. As soon as the first source value arrives,\n * the timer is enabled by calling the `durationSelector` function with the\n * source value, which returns the \"duration\" Observable. When the duration\n * Observable emits a value or completes, the timer is disabled, then the most\n * recent source value is emitted on the output Observable, and this process\n * repeats for the next source value.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.audit(ev => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttle}\n *\n * @param {function(value: T): SubscribableOrPromise} durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration, returned as an Observable or a Promise.\n * @return {Observable<T>} An Observable that performs rate-limiting of\n * emissions from the source Observable.\n * @method audit\n * @owner Observable\n */\nexport function audit<T>(durationSelector: (value: T) => SubscribableOrPromise<any>): MonoTypeOperatorFunction<T> {\n  return function auditOperatorFunction(source: Observable<T>) {\n    return source.lift(new AuditOperator(durationSelector));\n  };\n}\n\nclass AuditOperator<T> implements Operator<T, T> {\n  constructor(private durationSelector: (value: T) => SubscribableOrPromise<any>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new AuditSubscriber<T, T>(subscriber, this.durationSelector));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass AuditSubscriber<T, R> extends OuterSubscriber<T, R> {\n\n  private value: T;\n  private hasValue: boolean = false;\n  private throttled: Subscription;\n\n  constructor(destination: Subscriber<T>,\n              private durationSelector: (value: T) => SubscribableOrPromise<any>) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    this.value = value;\n    this.hasValue = true;\n    if (!this.throttled) {\n      const duration = tryCatch(this.durationSelector)(value);\n      if (duration === errorObject) {\n        this.destination.error(errorObject.e);\n      } else {\n        const innerSubscription = subscribeToResult(this, duration);\n        if (innerSubscription.closed) {\n          this.clearThrottle();\n        } else {\n          this.add(this.throttled = innerSubscription);\n        }\n      }\n    }\n  }\n\n  clearThrottle() {\n    const { value, hasValue, throttled } = this;\n    if (throttled) {\n      this.remove(throttled);\n      this.throttled = null;\n      throttled.unsubscribe();\n    }\n    if (hasValue) {\n      this.value = null;\n      this.hasValue = false;\n      this.destination.next(value);\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: R, outerIndex: number, innerIndex: number): void {\n    this.clearThrottle();\n  }\n\n  notifyComplete(): void {\n    this.clearThrottle();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/audit.ts","import { async } from '../scheduler/async';\nimport { IScheduler } from '../Scheduler';\nimport { audit } from './audit';\nimport { timer } from '../observable/timer';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Ignores source values for `duration` milliseconds, then emits the most recent\n * value from the source Observable, then repeats this process.\n *\n * <span class=\"informal\">When it sees a source values, it ignores that plus\n * the next ones for `duration` milliseconds, and then it emits the most recent\n * value from the source.</span>\n *\n * <img src=\"./img/auditTime.png\" width=\"100%\">\n *\n * `auditTime` is similar to `throttleTime`, but emits the last value from the\n * silenced time window, instead of the first value. `auditTime` emits the most\n * recent value from the source Observable on the output Observable as soon as\n * its internal timer becomes disabled, and ignores source values while the\n * timer is enabled. Initially, the timer is disabled. As soon as the first\n * source value arrives, the timer is enabled. After `duration` milliseconds (or\n * the time unit determined internally by the optional `scheduler`) has passed,\n * the timer is disabled, then the most recent source value is emitted on the\n * output Observable, and this process repeats for the next source value.\n * Optionally takes a {@link IScheduler} for managing timers.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.auditTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} duration Time to wait before emitting the most recent source\n * value, measured in milliseconds or the time unit determined internally\n * by the optional `scheduler`.\n * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for\n * managing the timers that handle the rate-limiting behavior.\n * @return {Observable<T>} An Observable that performs rate-limiting of\n * emissions from the source Observable.\n * @method auditTime\n * @owner Observable\n */\nexport function auditTime<T>(duration: number, scheduler: IScheduler = async): MonoTypeOperatorFunction<T> {\n  return audit(() => timer(duration, scheduler));\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/auditTime.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Buffers the source Observable values until `closingNotifier` emits.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when another Observable emits.</span>\n *\n * <img src=\"./img/buffer.png\" width=\"100%\">\n *\n * Buffers the incoming Observable values until the given `closingNotifier`\n * Observable emits a value, at which point it emits the buffer on the output\n * Observable and starts a new buffer internally, awaiting the next time\n * `closingNotifier` emits.\n *\n * @example <caption>On every click, emit array of most recent interval events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var interval = Rx.Observable.interval(1000);\n * var buffered = interval.buffer(clicks);\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link bufferCount}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link window}\n *\n * @param {Observable<any>} closingNotifier An Observable that signals the\n * buffer to be emitted on the output Observable.\n * @return {Observable<T[]>} An Observable of buffers, which are arrays of\n * values.\n * @method buffer\n * @owner Observable\n */\nexport function buffer<T>(closingNotifier: Observable<any>): OperatorFunction<T, T[]> {\n  return function bufferOperatorFunction(source: Observable<T>) {\n    return source.lift(new BufferOperator<T>(closingNotifier));\n  };\n}\n\nclass BufferOperator<T> implements Operator<T, T[]> {\n\n  constructor(private closingNotifier: Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<T[]>, source: any): any {\n    return source.subscribe(new BufferSubscriber(subscriber, this.closingNotifier));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass BufferSubscriber<T> extends OuterSubscriber<T, any> {\n  private buffer: T[] = [];\n\n  constructor(destination: Subscriber<T[]>, closingNotifier: Observable<any>) {\n    super(destination);\n    this.add(subscribeToResult(this, closingNotifier));\n  }\n\n  protected _next(value: T) {\n    this.buffer.push(value);\n  }\n\n  notifyNext(outerValue: T, innerValue: any,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, any>): void {\n    const buffer = this.buffer;\n    this.buffer = [];\n    this.destination.next(buffer);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/buffer.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Buffers the source Observable values until the size hits the maximum\n * `bufferSize` given.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * that array only when its size reaches `bufferSize`.</span>\n *\n * <img src=\"./img/bufferCount.png\" width=\"100%\">\n *\n * Buffers a number of values from the source Observable by `bufferSize` then\n * emits the buffer and clears it, and starts a new buffer each\n * `startBufferEvery` values. If `startBufferEvery` is not provided or is\n * `null`, then new buffers are started immediately at the start of the source\n * and when each buffer closes and is emitted.\n *\n * @example <caption>Emit the last two click events as an array</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferCount(2);\n * buffered.subscribe(x => console.log(x));\n *\n * @example <caption>On every click, emit the last two click events as an array</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferCount(2, 1);\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link pairwise}\n * @see {@link windowCount}\n *\n * @param {number} bufferSize The maximum size of the buffer emitted.\n * @param {number} [startBufferEvery] Interval at which to start a new buffer.\n * For example if `startBufferEvery` is `2`, then a new buffer will be started\n * on every other value from the source. A new buffer is started at the\n * beginning of the source by default.\n * @return {Observable<T[]>} An Observable of arrays of buffered values.\n * @method bufferCount\n * @owner Observable\n */\nexport function bufferCount<T>(bufferSize: number, startBufferEvery: number = null): OperatorFunction<T, T[]> {\n  return function bufferCountOperatorFunction(source: Observable<T>) {\n    return source.lift(new BufferCountOperator<T>(bufferSize, startBufferEvery));\n  };\n}\n\nclass BufferCountOperator<T> implements Operator<T, T[]> {\n  private subscriberClass: any;\n\n  constructor(private bufferSize: number, private startBufferEvery: number) {\n    if (!startBufferEvery || bufferSize === startBufferEvery) {\n      this.subscriberClass = BufferCountSubscriber;\n    } else {\n      this.subscriberClass = BufferSkipCountSubscriber;\n    }\n  }\n\n  call(subscriber: Subscriber<T[]>, source: any): TeardownLogic {\n    return source.subscribe(new this.subscriberClass(subscriber, this.bufferSize, this.startBufferEvery));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass BufferCountSubscriber<T> extends Subscriber<T> {\n  private buffer: T[] = [];\n\n  constructor(destination: Subscriber<T[]>, private bufferSize: number) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    const buffer = this.buffer;\n\n    buffer.push(value);\n\n    if (buffer.length == this.bufferSize) {\n      this.destination.next(buffer);\n      this.buffer = [];\n    }\n  }\n\n  protected _complete(): void {\n    const buffer = this.buffer;\n    if (buffer.length > 0) {\n      this.destination.next(buffer);\n    }\n    super._complete();\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass BufferSkipCountSubscriber<T> extends Subscriber<T> {\n  private buffers: Array<T[]> = [];\n  private count: number = 0;\n\n  constructor(destination: Subscriber<T[]>, private bufferSize: number, private startBufferEvery: number) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    const { bufferSize, startBufferEvery, buffers, count } = this;\n\n    this.count++;\n    if (count % startBufferEvery === 0) {\n      buffers.push([]);\n    }\n\n    for (let i = buffers.length; i--; ) {\n      const buffer = buffers[i];\n      buffer.push(value);\n      if (buffer.length === bufferSize) {\n        buffers.splice(i, 1);\n        this.destination.next(buffer);\n      }\n    }\n  }\n\n  protected _complete(): void {\n    const { buffers, destination } = this;\n\n    while (buffers.length > 0) {\n      let buffer = buffers.shift();\n      if (buffer.length > 0) {\n        destination.next(buffer);\n      }\n    }\n    super._complete();\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/bufferCount.ts","import { IScheduler } from '../Scheduler';\nimport { Action } from '../scheduler/Action';\nimport { Operator } from '../Operator';\nimport { async } from '../scheduler/async';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { isScheduler } from '../util/isScheduler';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function bufferTime<T>(bufferTimeSpan: number, scheduler?: IScheduler): OperatorFunction<T, T[]>;\nexport function bufferTime<T>(bufferTimeSpan: number, bufferCreationInterval: number, scheduler?: IScheduler): OperatorFunction<T, T[]>;\nexport function bufferTime<T>(bufferTimeSpan: number, bufferCreationInterval: number, maxBufferSize: number, scheduler?: IScheduler): OperatorFunction<T, T[]>;\n/* tslint:enable:max-line-length */\n\n/**\n * Buffers the source Observable values for a specific time period.\n *\n * <span class=\"informal\">Collects values from the past as an array, and emits\n * those arrays periodically in time.</span>\n *\n * <img src=\"./img/bufferTime.png\" width=\"100%\">\n *\n * Buffers values from the source for a specific time duration `bufferTimeSpan`.\n * Unless the optional argument `bufferCreationInterval` is given, it emits and\n * resets the buffer every `bufferTimeSpan` milliseconds. If\n * `bufferCreationInterval` is given, this operator opens the buffer every\n * `bufferCreationInterval` milliseconds and closes (emits and resets) the\n * buffer every `bufferTimeSpan` milliseconds. When the optional argument\n * `maxBufferSize` is specified, the buffer will be closed either after\n * `bufferTimeSpan` milliseconds or when it contains `maxBufferSize` elements.\n *\n * @example <caption>Every second, emit an array of the recent click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferTime(1000);\n * buffered.subscribe(x => console.log(x));\n *\n * @example <caption>Every 5 seconds, emit the click events from the next 2 seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferTime(2000, 5000);\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n * @see {@link bufferToggle}\n * @see {@link bufferWhen}\n * @see {@link windowTime}\n *\n * @param {number} bufferTimeSpan The amount of time to fill each buffer array.\n * @param {number} [bufferCreationInterval] The interval at which to start new\n * buffers.\n * @param {number} [maxBufferSize] The maximum buffer size.\n * @param {Scheduler} [scheduler=async] The scheduler on which to schedule the\n * intervals that determine buffer boundaries.\n * @return {Observable<T[]>} An observable of arrays of buffered values.\n * @method bufferTime\n * @owner Observable\n */\nexport function bufferTime<T>(bufferTimeSpan: number): OperatorFunction<T, T[]> {\n  let length: number = arguments.length;\n\n  let scheduler: IScheduler = async;\n  if (isScheduler(arguments[arguments.length - 1])) {\n    scheduler = arguments[arguments.length - 1];\n    length--;\n  }\n\n  let bufferCreationInterval: number = null;\n  if (length >= 2) {\n    bufferCreationInterval = arguments[1];\n  }\n\n  let maxBufferSize: number = Number.POSITIVE_INFINITY;\n  if (length >= 3) {\n    maxBufferSize = arguments[2];\n  }\n\n  return function bufferTimeOperatorFunction(source: Observable<T>) {\n    return source.lift(new BufferTimeOperator<T>(bufferTimeSpan, bufferCreationInterval, maxBufferSize, scheduler));\n  };\n}\n\nclass BufferTimeOperator<T> implements Operator<T, T[]> {\n  constructor(private bufferTimeSpan: number,\n              private bufferCreationInterval: number,\n              private maxBufferSize: number,\n              private scheduler: IScheduler) {\n  }\n\n  call(subscriber: Subscriber<T[]>, source: any): any {\n    return source.subscribe(new BufferTimeSubscriber(\n      subscriber, this.bufferTimeSpan, this.bufferCreationInterval, this.maxBufferSize, this.scheduler\n    ));\n  }\n}\n\nclass Context<T> {\n  buffer: T[] = [];\n  closeAction: Subscription;\n}\n\ntype CreationState<T> = {\n  bufferTimeSpan: number;\n  bufferCreationInterval: number,\n  subscriber: BufferTimeSubscriber<T>;\n  scheduler: IScheduler;\n};\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass BufferTimeSubscriber<T> extends Subscriber<T> {\n  private contexts: Array<Context<T>> = [];\n  private timespanOnly: boolean;\n\n  constructor(destination: Subscriber<T[]>,\n              private bufferTimeSpan: number,\n              private bufferCreationInterval: number,\n              private maxBufferSize: number,\n              private scheduler: IScheduler) {\n    super(destination);\n    const context = this.openContext();\n    this.timespanOnly = bufferCreationInterval == null || bufferCreationInterval < 0;\n    if (this.timespanOnly) {\n      const timeSpanOnlyState = { subscriber: this, context, bufferTimeSpan };\n      this.add(context.closeAction = scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n    } else {\n      const closeState = { subscriber: this, context };\n      const creationState: CreationState<T> = { bufferTimeSpan, bufferCreationInterval, subscriber: this, scheduler };\n      this.add(context.closeAction = scheduler.schedule(dispatchBufferClose, bufferTimeSpan, closeState));\n      this.add(scheduler.schedule(dispatchBufferCreation, bufferCreationInterval, creationState));\n    }\n  }\n\n  protected _next(value: T) {\n    const contexts = this.contexts;\n    const len = contexts.length;\n    let filledBufferContext: Context<T>;\n    for (let i = 0; i < len; i++) {\n      const context = contexts[i];\n      const buffer = context.buffer;\n      buffer.push(value);\n      if (buffer.length == this.maxBufferSize) {\n        filledBufferContext = context;\n      }\n    }\n\n    if (filledBufferContext) {\n      this.onBufferFull(filledBufferContext);\n    }\n  }\n\n  protected _error(err: any) {\n    this.contexts.length = 0;\n    super._error(err);\n  }\n\n  protected _complete() {\n    const { contexts, destination } = this;\n    while (contexts.length > 0) {\n      const context = contexts.shift();\n      destination.next(context.buffer);\n    }\n    super._complete();\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    this.contexts = null;\n  }\n\n  protected onBufferFull(context: Context<T>) {\n    this.closeContext(context);\n    const closeAction = context.closeAction;\n    closeAction.unsubscribe();\n    this.remove(closeAction);\n\n    if (!this.closed && this.timespanOnly) {\n      context = this.openContext();\n      const bufferTimeSpan = this.bufferTimeSpan;\n      const timeSpanOnlyState = { subscriber: this, context, bufferTimeSpan };\n      this.add(context.closeAction = this.scheduler.schedule(dispatchBufferTimeSpanOnly, bufferTimeSpan, timeSpanOnlyState));\n    }\n  }\n\n  openContext(): Context<T> {\n    const context: Context<T> = new Context<T>();\n    this.contexts.push(context);\n    return context;\n  }\n\n  closeContext(context: Context<T>) {\n    this.destination.next(context.buffer);\n    const contexts = this.contexts;\n\n    const spliceIndex = contexts ? contexts.indexOf(context) : -1;\n    if (spliceIndex >= 0) {\n      contexts.splice(contexts.indexOf(context), 1);\n    }\n  }\n}\n\nfunction dispatchBufferTimeSpanOnly(this: Action<any>, state: any) {\n  const subscriber: BufferTimeSubscriber<any> = state.subscriber;\n\n  const prevContext = state.context;\n  if (prevContext) {\n    subscriber.closeContext(prevContext);\n  }\n\n  if (!subscriber.closed) {\n    state.context = subscriber.openContext();\n    state.context.closeAction = this.schedule(state, state.bufferTimeSpan);\n  }\n}\n\ninterface DispatchArg<T> {\n  subscriber: BufferTimeSubscriber<T>;\n  context: Context<T>;\n}\n\nfunction dispatchBufferCreation<T>(this: Action<CreationState<T>>, state: CreationState<T>) {\n  const { bufferCreationInterval, bufferTimeSpan, subscriber, scheduler } = state;\n  const context = subscriber.openContext();\n  const action = <Action<CreationState<T>>>this;\n  if (!subscriber.closed) {\n    subscriber.add(context.closeAction = scheduler.schedule<DispatchArg<T>>(dispatchBufferClose, bufferTimeSpan, { subscriber, context }));\n    action.schedule(state, bufferCreationInterval);\n  }\n}\n\nfunction dispatchBufferClose<T>(arg: DispatchArg<T>) {\n  const { subscriber, context } = arg;\n  subscriber.closeContext(context);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/bufferTime.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable, SubscribableOrPromise } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Buffers the source Observable values starting from an emission from\n * `openings` and ending when the output of `closingSelector` emits.\n *\n * <span class=\"informal\">Collects values from the past as an array. Starts\n * collecting only when `opening` emits, and calls the `closingSelector`\n * function to get an Observable that tells when to close the buffer.</span>\n *\n * <img src=\"./img/bufferToggle.png\" width=\"100%\">\n *\n * Buffers values from the source by opening the buffer via signals from an\n * Observable provided to `openings`, and closing and sending the buffers when\n * a Subscribable or Promise returned by the `closingSelector` function emits.\n *\n * @example <caption>Every other second, emit the click events from the next 500ms</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var openings = Rx.Observable.interval(1000);\n * var buffered = clicks.bufferToggle(openings, i =>\n *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()\n * );\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n * @see {@link bufferTime}\n * @see {@link bufferWhen}\n * @see {@link windowToggle}\n *\n * @param {SubscribableOrPromise<O>} openings A Subscribable or Promise of notifications to start new\n * buffers.\n * @param {function(value: O): SubscribableOrPromise} closingSelector A function that takes\n * the value emitted by the `openings` observable and returns a Subscribable or Promise,\n * which, when it emits, signals that the associated buffer should be emitted\n * and cleared.\n * @return {Observable<T[]>} An observable of arrays of buffered values.\n * @method bufferToggle\n * @owner Observable\n */\nexport function bufferToggle<T, O>(\n  openings: SubscribableOrPromise<O>,\n  closingSelector: (value: O) => SubscribableOrPromise<any>\n): OperatorFunction<T, T[]> {\n  return function bufferToggleOperatorFunction(source: Observable<T>) {\n    return source.lift(new BufferToggleOperator<T, O>(openings, closingSelector));\n  };\n}\n\nclass BufferToggleOperator<T, O> implements Operator<T, T[]> {\n\n  constructor(private openings: SubscribableOrPromise<O>,\n              private closingSelector: (value: O) => SubscribableOrPromise<any>) {\n  }\n\n  call(subscriber: Subscriber<T[]>, source: any): any {\n    return source.subscribe(new BufferToggleSubscriber(subscriber, this.openings, this.closingSelector));\n  }\n}\n\ninterface BufferContext<T> {\n  buffer: T[];\n  subscription: Subscription;\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass BufferToggleSubscriber<T, O> extends OuterSubscriber<T, O> {\n  private contexts: Array<BufferContext<T>> = [];\n\n  constructor(destination: Subscriber<T[]>,\n              private openings: SubscribableOrPromise<O>,\n              private closingSelector: (value: O) => SubscribableOrPromise<any> | void) {\n    super(destination);\n    this.add(subscribeToResult(this, openings));\n  }\n\n  protected _next(value: T): void {\n    const contexts = this.contexts;\n    const len = contexts.length;\n    for (let i = 0; i < len; i++) {\n      contexts[i].buffer.push(value);\n    }\n  }\n\n  protected _error(err: any): void {\n    const contexts = this.contexts;\n    while (contexts.length > 0) {\n      const context = contexts.shift();\n      context.subscription.unsubscribe();\n      context.buffer = null;\n      context.subscription = null;\n    }\n    this.contexts = null;\n    super._error(err);\n  }\n\n  protected _complete(): void {\n    const contexts = this.contexts;\n    while (contexts.length > 0) {\n      const context = contexts.shift();\n      this.destination.next(context.buffer);\n      context.subscription.unsubscribe();\n      context.buffer = null;\n      context.subscription = null;\n    }\n    this.contexts = null;\n    super._complete();\n  }\n\n  notifyNext(outerValue: any, innerValue: O,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, O>): void {\n    outerValue ? this.closeBuffer(outerValue) : this.openBuffer(innerValue);\n  }\n\n  notifyComplete(innerSub: InnerSubscriber<T, O>): void {\n    this.closeBuffer((<any> innerSub).context);\n  }\n\n  private openBuffer(value: O): void {\n    try {\n      const closingSelector = this.closingSelector;\n      const closingNotifier = closingSelector.call(this, value);\n      if (closingNotifier) {\n        this.trySubscribe(closingNotifier);\n      }\n    } catch (err) {\n      this._error(err);\n    }\n  }\n\n  private closeBuffer(context: BufferContext<T>): void {\n    const contexts = this.contexts;\n\n    if (contexts && context) {\n      const { buffer, subscription } = context;\n      this.destination.next(buffer);\n      contexts.splice(contexts.indexOf(context), 1);\n      this.remove(subscription);\n      subscription.unsubscribe();\n    }\n  }\n\n  private trySubscribe(closingNotifier: any): void {\n    const contexts = this.contexts;\n\n    const buffer: Array<T> = [];\n    const subscription = new Subscription();\n    const context = { buffer, subscription };\n    contexts.push(context);\n\n    const innerSubscription = subscribeToResult(this, closingNotifier, <any>context);\n\n    if (!innerSubscription || innerSubscription.closed) {\n      this.closeBuffer(context);\n    } else {\n      (<any> innerSubscription).context = context;\n\n      this.add(innerSubscription);\n      subscription.add(innerSubscription);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/bufferToggle.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Buffers the source Observable values, using a factory function of closing\n * Observables to determine when to close, emit, and reset the buffer.\n *\n * <span class=\"informal\">Collects values from the past as an array. When it\n * starts collecting values, it calls a function that returns an Observable that\n * tells when to close the buffer and restart collecting.</span>\n *\n * <img src=\"./img/bufferWhen.png\" width=\"100%\">\n *\n * Opens a buffer immediately, then closes the buffer when the observable\n * returned by calling `closingSelector` function emits a value. When it closes\n * the buffer, it immediately opens a new buffer and repeats the process.\n *\n * @example <caption>Emit an array of the last clicks every [1-5] random seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var buffered = clicks.bufferWhen(() =>\n *   Rx.Observable.interval(1000 + Math.random() * 4000)\n * );\n * buffered.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n * @see {@link bufferTime}\n * @see {@link bufferToggle}\n * @see {@link windowWhen}\n *\n * @param {function(): Observable} closingSelector A function that takes no\n * arguments and returns an Observable that signals buffer closure.\n * @return {Observable<T[]>} An observable of arrays of buffered values.\n * @method bufferWhen\n * @owner Observable\n */\nexport function bufferWhen<T>(closingSelector: () => Observable<any>): OperatorFunction<T, T[]> {\n  return function (source: Observable<T>) {\n    return source.lift(new BufferWhenOperator(closingSelector));\n  };\n}\n\nclass BufferWhenOperator<T> implements Operator<T, T[]> {\n\n  constructor(private closingSelector: () => Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<T[]>, source: any): any {\n    return source.subscribe(new BufferWhenSubscriber(subscriber, this.closingSelector));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass BufferWhenSubscriber<T> extends OuterSubscriber<T, any> {\n  private buffer: T[];\n  private subscribing: boolean = false;\n  private closingSubscription: Subscription;\n\n  constructor(destination: Subscriber<T[]>, private closingSelector: () => Observable<any>) {\n    super(destination);\n    this.openBuffer();\n  }\n\n  protected _next(value: T) {\n    this.buffer.push(value);\n  }\n\n  protected _complete() {\n    const buffer = this.buffer;\n    if (buffer) {\n      this.destination.next(buffer);\n    }\n    super._complete();\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    this.buffer = null;\n    this.subscribing = false;\n  }\n\n  notifyNext(outerValue: T, innerValue: any,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, any>): void {\n    this.openBuffer();\n  }\n\n  notifyComplete(): void {\n    if (this.subscribing) {\n      this.complete();\n    } else {\n      this.openBuffer();\n    }\n  }\n\n  openBuffer() {\n\n    let { closingSubscription } = this;\n\n    if (closingSubscription) {\n      this.remove(closingSubscription);\n      closingSubscription.unsubscribe();\n    }\n\n    const buffer = this.buffer;\n    if (this.buffer) {\n      this.destination.next(buffer);\n    }\n\n    this.buffer = [];\n\n    const closingNotifier = tryCatch(this.closingSelector)();\n\n    if (closingNotifier === errorObject) {\n      this.error(errorObject.e);\n    } else {\n      closingSubscription = new Subscription();\n      this.closingSubscription = closingSubscription;\n      this.add(closingSubscription);\n      this.subscribing = true;\n      closingSubscription.add(subscribeToResult(this, closingNotifier));\n      this.subscribing = false;\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/bufferWhen.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable, ObservableInput } from '../Observable';\n\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Catches errors on the observable to be handled by returning a new observable or throwing an error.\n *\n * <img src=\"./img/catch.png\" width=\"100%\">\n *\n * @example <caption>Continues with a different Observable when there's an error</caption>\n *\n * Observable.of(1, 2, 3, 4, 5)\n *   .map(n => {\n * \t   if (n == 4) {\n * \t     throw 'four!';\n *     }\n *\t   return n;\n *   })\n *   .catch(err => Observable.of('I', 'II', 'III', 'IV', 'V'))\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, I, II, III, IV, V\n *\n * @example <caption>Retries the caught source Observable again in case of error, similar to retry() operator</caption>\n *\n * Observable.of(1, 2, 3, 4, 5)\n *   .map(n => {\n * \t   if (n === 4) {\n * \t     throw 'four!';\n *     }\n * \t   return n;\n *   })\n *   .catch((err, caught) => caught)\n *   .take(30)\n *   .subscribe(x => console.log(x));\n *   // 1, 2, 3, 1, 2, 3, ...\n *\n * @example <caption>Throws a new error when the source Observable throws an error</caption>\n *\n * Observable.of(1, 2, 3, 4, 5)\n *   .map(n => {\n *     if (n == 4) {\n *       throw 'four!';\n *     }\n *     return n;\n *   })\n *   .catch(err => {\n *     throw 'error in source. Details: ' + err;\n *   })\n *   .subscribe(\n *     x => console.log(x),\n *     err => console.log(err)\n *   );\n *   // 1, 2, 3, error in source. Details: four!\n *\n * @param {function} selector a function that takes as arguments `err`, which is the error, and `caught`, which\n *  is the source observable, in case you'd like to \"retry\" that observable by returning it again. Whatever observable\n *  is returned by the `selector` will be used to continue the observable chain.\n * @return {Observable} An observable that originates from either the source or the observable returned by the\n *  catch `selector` function.\n * @name catchError\n */\nexport function catchError<T, R>(selector: (err: any, caught: Observable<T>) => ObservableInput<R>): OperatorFunction<T, T | R> {\n  return function catchErrorOperatorFunction(source: Observable<T>): Observable<T | R> {\n    const operator = new CatchOperator(selector);\n    const caught = source.lift(operator);\n    return (operator.caught = caught as Observable<T>);\n  };\n}\n\nclass CatchOperator<T, R> implements Operator<T, T | R> {\n  caught: Observable<T>;\n\n  constructor(private selector: (err: any, caught: Observable<T>) => ObservableInput<T | R>) {\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new CatchSubscriber(subscriber, this.selector, this.caught));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass CatchSubscriber<T, R> extends OuterSubscriber<T, T | R> {\n  constructor(destination: Subscriber<any>,\n              private selector: (err: any, caught: Observable<T>) => ObservableInput<T | R>,\n              private caught: Observable<T>) {\n    super(destination);\n  }\n\n  // NOTE: overriding `error` instead of `_error` because we don't want\n  // to have this flag this subscriber as `isStopped`. We can mimic the\n  // behavior of the RetrySubscriber (from the `retry` operator), where\n  // we unsubscribe from our source chain, reset our Subscriber flags,\n  // then subscribe to the selector result.\n  error(err: any) {\n    if (!this.isStopped) {\n      let result: any;\n      try {\n        result = this.selector(err, this.caught);\n      } catch (err2) {\n        super.error(err2);\n        return;\n      }\n      this._unsubscribeAndRecycle();\n      this.add(subscribeToResult(this, result));\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/catchError.ts","import { CombineLatestOperator } from '../operators/combineLatest';\nimport { Observable } from '../Observable';\nimport { OperatorFunction } from '../interfaces';\n\nexport function combineAll<T, R>(project?: (...values: Array<any>) => R): OperatorFunction<T, R> {\n  return (source: Observable<T>) => source.lift(new CombineLatestOperator(project));\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/combineAll.ts","import { Observable, ObservableInput } from '../Observable';\nimport { ArrayObservable } from '../observable/ArrayObservable';\nimport { isArray } from '../util/isArray';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\nconst none = {};\n\n/* tslint:disable:max-line-length */\nexport function combineLatest<T, R>(project: (v1: T) => R): OperatorFunction<T, R>;\nexport function combineLatest<T, T2, R>(v2: ObservableInput<T2>, project: (v1: T, v2: T2) => R): OperatorFunction<T, R>;\nexport function combineLatest<T, T2, T3, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, project: (v1: T, v2: T2, v3: T3) => R): OperatorFunction<T, R>;\nexport function combineLatest<T, T2, T3, T4, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, project: (v1: T, v2: T2, v3: T3, v4: T4) => R): OperatorFunction<T, R>;\nexport function combineLatest<T, T2, T3, T4, T5, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => R): OperatorFunction<T, R>;\nexport function combineLatest<T, T2, T3, T4, T5, T6, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => R): OperatorFunction<T, R> ;\nexport function combineLatest<T, T2>(v2: ObservableInput<T2>): OperatorFunction<T, [T, T2]>;\nexport function combineLatest<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>): OperatorFunction<T, [T, T2, T3]>;\nexport function combineLatest<T, T2, T3, T4>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>): OperatorFunction<T, [T, T2, T3, T4]>;\nexport function combineLatest<T, T2, T3, T4, T5>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>): OperatorFunction<T, [T, T2, T3, T4, T5]>;\nexport function combineLatest<T, T2, T3, T4, T5, T6>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>): OperatorFunction<T, [T, T2, T3, T4, T5, T6]> ;\nexport function combineLatest<T, R>(...observables: Array<ObservableInput<T> | ((...values: Array<T>) => R)>): OperatorFunction<T, R>;\nexport function combineLatest<T, R>(array: ObservableInput<T>[]): OperatorFunction<T, Array<T>>;\nexport function combineLatest<T, TOther, R>(array: ObservableInput<TOther>[], project: (v1: T, ...values: Array<TOther>) => R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Combines multiple Observables to create an Observable whose values are\n * calculated from the latest values of each of its input Observables.\n *\n * <span class=\"informal\">Whenever any input Observable emits a value, it\n * computes a formula using the latest values from all the inputs, then emits\n * the output of that formula.</span>\n *\n * <img src=\"./img/combineLatest.png\" width=\"100%\">\n *\n * `combineLatest` combines the values from this Observable with values from\n * Observables passed as arguments. This is done by subscribing to each\n * Observable, in order, and collecting an array of each of the most recent\n * values any time any of the input Observables emits, then either taking that\n * array and passing it as arguments to an optional `project` function and\n * emitting the return value of that, or just emitting the array of recent\n * values directly if there is no `project` function.\n *\n * @example <caption>Dynamically calculate the Body-Mass Index from an Observable of weight and one for height</caption>\n * var weight = Rx.Observable.of(70, 72, 76, 79, 75);\n * var height = Rx.Observable.of(1.76, 1.77, 1.78);\n * var bmi = weight.combineLatest(height, (w, h) => w / (h * h));\n * bmi.subscribe(x => console.log('BMI is ' + x));\n *\n * // With output to console:\n * // BMI is 24.212293388429753\n * // BMI is 23.93948099205209\n * // BMI is 23.671253629592222\n *\n * @see {@link combineAll}\n * @see {@link merge}\n * @see {@link withLatestFrom}\n *\n * @param {ObservableInput} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {function} [project] An optional function to project the values from\n * the combined latest values into a new value on the output Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n * @method combineLatest\n * @owner Observable\n */\nexport function combineLatest<T, R>(...observables: Array<ObservableInput<any> |\n                                                    Array<ObservableInput<any>> |\n                                                    ((...values: Array<any>) => R)>): OperatorFunction<T, R> {\n  let project: (...values: Array<any>) => R = null;\n  if (typeof observables[observables.length - 1] === 'function') {\n    project = <(...values: Array<any>) => R>observables.pop();\n  }\n\n  // if the first and only other argument besides the resultSelector is an array\n  // assume it's been called with `combineLatest([obs1, obs2, obs3], project)`\n  if (observables.length === 1 && isArray(observables[0])) {\n    observables = (<any>observables[0]).slice();\n  }\n\n  return (source: Observable<T>) => source.lift.call(new ArrayObservable([source, ...observables]), new CombineLatestOperator(project));\n}\n\nexport class CombineLatestOperator<T, R> implements Operator<T, R> {\n  constructor(private project?: (...values: Array<any>) => R) {\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new CombineLatestSubscriber(subscriber, this.project));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class CombineLatestSubscriber<T, R> extends OuterSubscriber<T, R> {\n  private active: number = 0;\n  private values: any[] = [];\n  private observables: any[] = [];\n  private toRespond: number;\n\n  constructor(destination: Subscriber<R>, private project?: (...values: Array<any>) => R) {\n    super(destination);\n  }\n\n  protected _next(observable: any) {\n    this.values.push(none);\n    this.observables.push(observable);\n  }\n\n  protected _complete() {\n    const observables = this.observables;\n    const len = observables.length;\n    if (len === 0) {\n      this.destination.complete();\n    } else {\n      this.active = len;\n      this.toRespond = len;\n      for (let i = 0; i < len; i++) {\n        const observable = observables[i];\n        this.add(subscribeToResult(this, observable, observable, i));\n      }\n    }\n  }\n\n  notifyComplete(unused: Subscriber<R>): void {\n    if ((this.active -= 1) === 0) {\n      this.destination.complete();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    const values = this.values;\n    const oldVal = values[outerIndex];\n    const toRespond = !this.toRespond\n      ? 0\n      : oldVal === none ? --this.toRespond : this.toRespond;\n    values[outerIndex] = innerValue;\n\n    if (toRespond === 0) {\n      if (this.project) {\n        this._tryProject(values);\n      } else {\n        this.destination.next(values.slice());\n      }\n    }\n  }\n\n  private _tryProject(values: any[]) {\n    let result: any;\n    try {\n      result = this.project.apply(this, values);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    this.destination.next(result);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/combineLatest.ts","import { Observable, ObservableInput } from '../Observable';\nimport { IScheduler } from '../Scheduler';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\nimport { concat as concatStatic } from '../observable/concat';\n\nexport { concat as concatStatic } from '../observable/concat';\n\n/* tslint:disable:max-line-length */\nexport function concat<T>(scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function concat<T, T2>(v2: ObservableInput<T2>, scheduler?: IScheduler): OperatorFunction<T, T | T2>;\nexport function concat<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3>;\nexport function concat<T, T2, T3, T4>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3 | T4>;\nexport function concat<T, T2, T3, T4, T5>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3 | T4 | T5>;\nexport function concat<T, T2, T3, T4, T5, T6>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3 | T4 | T5 | T6>;\nexport function concat<T>(...observables: Array<ObservableInput<T> | IScheduler>): MonoTypeOperatorFunction<T>;\nexport function concat<T, R>(...observables: Array<ObservableInput<any> | IScheduler>): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Creates an output Observable which sequentially emits all values from every\n * given input Observable after the current Observable.\n *\n * <span class=\"informal\">Concatenates multiple Observables together by\n * sequentially emitting their values, one Observable after the other.</span>\n *\n * <img src=\"./img/concat.png\" width=\"100%\">\n *\n * Joins this Observable with multiple other Observables by subscribing to them\n * one at a time, starting with the source, and merging their results into the\n * output Observable. Will wait for each Observable to complete before moving\n * on to the next.\n *\n * @example <caption>Concatenate a timer counting from 0 to 3 with a synchronous sequence from 1 to 10</caption>\n * var timer = Rx.Observable.interval(1000).take(4);\n * var sequence = Rx.Observable.range(1, 10);\n * var result = timer.concat(sequence);\n * result.subscribe(x => console.log(x));\n *\n * // results in:\n * // 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3 -immediate-> 1 ... 10\n *\n * @example <caption>Concatenate 3 Observables</caption>\n * var timer1 = Rx.Observable.interval(1000).take(10);\n * var timer2 = Rx.Observable.interval(2000).take(6);\n * var timer3 = Rx.Observable.interval(500).take(10);\n * var result = timer1.concat(timer2, timer3);\n * result.subscribe(x => console.log(x));\n *\n * // results in the following:\n * // (Prints to console sequentially)\n * // -1000ms-> 0 -1000ms-> 1 -1000ms-> ... 9\n * // -2000ms-> 0 -2000ms-> 1 -2000ms-> ... 5\n * // -500ms-> 0 -500ms-> 1 -500ms-> ... 9\n *\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n *\n * @param {ObservableInput} other An input Observable to concatenate after the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Scheduler} [scheduler=null] An optional IScheduler to schedule each\n * Observable subscription on.\n * @return {Observable} All values of each passed Observable merged into a\n * single Observable, in order, in serial fashion.\n * @method concat\n * @owner Observable\n */\nexport function concat<T, R>(...observables: Array<ObservableInput<any> | IScheduler>): OperatorFunction<T, R> {\n  return (source: Observable<T>) => source.lift.call(concatStatic<T, R>(source, ...observables));\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/concat.ts","\nimport { mergeAll } from './mergeAll';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Converts a higher-order Observable into a first-order Observable by\n * concatenating the inner Observables in order.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by putting one\n * inner Observable after the other.</span>\n *\n * <img src=\"./img/concatAll.png\" width=\"100%\">\n *\n * Joins every Observable emitted by the source (a higher-order Observable), in\n * a serial fashion. It subscribes to each inner Observable only after the\n * previous inner Observable has completed, and merges all of their values into\n * the returned observable.\n *\n * __Warning:__ If the source Observable emits Observables quickly and\n * endlessly, and the inner Observables it emits generally complete slower than\n * the source emits, you can run into memory issues as the incoming Observables\n * collect in an unbounded buffer.\n *\n * Note: `concatAll` is equivalent to `mergeAll` with concurrency parameter set\n * to `1`.\n *\n * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map(ev => Rx.Observable.interval(1000).take(4));\n * var firstOrder = higherOrder.concatAll();\n * firstOrder.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n *\n * @see {@link combineAll}\n * @see {@link concat}\n * @see {@link concatMap}\n * @see {@link concatMapTo}\n * @see {@link exhaust}\n * @see {@link mergeAll}\n * @see {@link switch}\n * @see {@link zipAll}\n *\n * @return {Observable} An Observable emitting values from all the inner\n * Observables concatenated.\n * @method concatAll\n * @owner Observable\n */\nexport function concatAll<T>(): MonoTypeOperatorFunction<T> {\n  return mergeAll(1);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/concatAll.ts","import { mergeMap } from './mergeMap';\nimport { ObservableInput } from '../Observable';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function concatMap<T, R>(project: (value: T, index: number) =>  ObservableInput<R>): OperatorFunction<T, R>;\nexport function concatMap<T, I, R>(project: (value: T, index: number) =>  ObservableInput<I>, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable, in a serialized fashion waiting for each one to complete before\n * merging the next.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link concatAll}.</span>\n *\n * <img src=\"./img/concatMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. Each new inner Observable is\n * concatenated with the previous inner Observable.\n *\n * __Warning:__ if source values arrive endlessly and faster than their\n * corresponding inner Observables can complete, it will result in memory issues\n * as inner Observables amass in an unbounded buffer waiting for their turn to\n * be subscribed to.\n *\n * Note: `concatMap` is equivalent to `mergeMap` with concurrency parameter set\n * to `1`.\n *\n * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.concatMap(ev => Rx.Observable.interval(1000).take(4));\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n *\n * @see {@link concat}\n * @see {@link concatAll}\n * @see {@link concatMapTo}\n * @see {@link exhaustMap}\n * @see {@link mergeMap}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable that emits the result of applying the\n * projection function (and the optional `resultSelector`) to each item emitted\n * by the source Observable and taking values from each projected inner\n * Observable sequentially.\n * @method concatMap\n * @owner Observable\n */\nexport function concatMap<T, I, R>(project: (value: T, index: number) =>  ObservableInput<I>,\n                                   resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) {\n  return mergeMap(project, resultSelector, 1);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/concatMap.ts","import { Observable, ObservableInput } from '../Observable';\nimport { concatMap } from './concatMap';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function concatMapTo<T, R>(observable: ObservableInput<R>): OperatorFunction<T, R>;\nexport function concatMapTo<T, I, R>(observable: ObservableInput<I>, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to the same Observable which is merged multiple\n * times in a serialized fashion on the output Observable.\n *\n * <span class=\"informal\">It's like {@link concatMap}, but maps each value\n * always to the same inner Observable.</span>\n *\n * <img src=\"./img/concatMapTo.png\" width=\"100%\">\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then flattens those resulting Observables into one\n * single Observable, which is the output Observable. Each new `innerObservable`\n * instance emitted on the output Observable is concatenated with the previous\n * `innerObservable` instance.\n *\n * __Warning:__ if source values arrive endlessly and faster than their\n * corresponding inner Observables can complete, it will result in memory issues\n * as inner Observables amass in an unbounded buffer waiting for their turn to\n * be subscribed to.\n *\n * Note: `concatMapTo` is equivalent to `mergeMapTo` with concurrency parameter\n * set to `1`.\n *\n * @example <caption>For each click event, tick every second from 0 to 3, with no concurrency</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.concatMapTo(Rx.Observable.interval(1000).take(4));\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // (results are not concurrent)\n * // For every click on the \"document\" it will emit values 0 to 3 spaced\n * // on a 1000ms interval\n * // one click = 1000ms-> 0 -1000ms-> 1 -1000ms-> 2 -1000ms-> 3\n *\n * @see {@link concat}\n * @see {@link concatAll}\n * @see {@link concatMap}\n * @see {@link mergeMapTo}\n * @see {@link switchMapTo}\n *\n * @param {ObservableInput} innerObservable An Observable to replace each value from\n * the source Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An observable of values merged together by joining the\n * passed observable with itself, one after the other, for each value emitted\n * from the source.\n * @method concatMapTo\n * @owner Observable\n */\nexport function concatMapTo<T, I, R>(\n  innerObservable: Observable<I>,\n  resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, R> {\n  return concatMap(() => innerObservable, resultSelector);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/concatMapTo.ts","import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Observer } from '../Observer';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Counts the number of emissions on the source and emits that number when the\n * source completes.\n *\n * <span class=\"informal\">Tells how many values were emitted, when the source\n * completes.</span>\n *\n * <img src=\"./img/count.png\" width=\"100%\">\n *\n * `count` transforms an Observable that emits values into an Observable that\n * emits a single value that represents the number of values emitted by the\n * source Observable. If the source Observable terminates with an error, `count`\n * will pass this error notification along without emitting a value first. If\n * the source Observable does not terminate at all, `count` will neither emit\n * a value nor terminate. This operator takes an optional `predicate` function\n * as argument, in which case the output emission will represent the number of\n * source values that matched `true` with the `predicate`.\n *\n * @example <caption>Counts how many seconds have passed before the first click happened</caption>\n * var seconds = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var secondsBeforeClick = seconds.takeUntil(clicks);\n * var result = secondsBeforeClick.count();\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Counts how many odd numbers are there between 1 and 7</caption>\n * var numbers = Rx.Observable.range(1, 7);\n * var result = numbers.count(i => i % 2 === 1);\n * result.subscribe(x => console.log(x));\n *\n * // Results in:\n * // 4\n *\n * @see {@link max}\n * @see {@link min}\n * @see {@link reduce}\n *\n * @param {function(value: T, i: number, source: Observable<T>): boolean} [predicate] A\n * boolean function to select what values are to be counted. It is provided with\n * arguments of:\n * - `value`: the value from the source Observable.\n * - `index`: the (zero-based) \"index\" of the value from the source Observable.\n * - `source`: the source Observable instance itself.\n * @return {Observable} An Observable of one number that represents the count as\n * described above.\n * @method count\n * @owner Observable\n */\nexport function count<T>(predicate?: (value: T, index: number, source: Observable<T>) => boolean): OperatorFunction<T, number> {\n  return (source: Observable<T>) => source.lift(new CountOperator(predicate, source));\n}\n\nclass CountOperator<T> implements Operator<T, number> {\n  constructor(private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n              private source?: Observable<T>) {\n  }\n\n  call(subscriber: Subscriber<number>, source: any): any {\n    return source.subscribe(new CountSubscriber(subscriber, this.predicate, this.source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass CountSubscriber<T> extends Subscriber<T> {\n  private count: number = 0;\n  private index: number = 0;\n\n  constructor(destination: Observer<number>,\n              private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n              private source?: Observable<T>) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    if (this.predicate) {\n      this._tryPredicate(value);\n    } else {\n      this.count++;\n    }\n  }\n\n  private _tryPredicate(value: T) {\n    let result: any;\n\n    try {\n      result = this.predicate(value, this.index++, this.source);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n\n    if (result) {\n      this.count++;\n    }\n  }\n\n  protected _complete(): void {\n    this.destination.next(this.count);\n    this.destination.complete();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/count.ts","import { Operator } from '../Operator';\nimport { Observable, SubscribableOrPromise } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription, TeardownLogic } from '../Subscription';\n\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits a value from the source Observable only after a particular time span\n * determined by another Observable has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link debounceTime}, but the time span of\n * emission silence is determined by a second Observable.</span>\n *\n * <img src=\"./img/debounce.png\" width=\"100%\">\n *\n * `debounce` delays values emitted by the source Observable, but drops previous\n * pending delayed emissions if a new value arrives on the source Observable.\n * This operator keeps track of the most recent value from the source\n * Observable, and spawns a duration Observable by calling the\n * `durationSelector` function. The value is emitted only when the duration\n * Observable emits a value or completes, and if no other value was emitted on\n * the source Observable since the duration Observable was spawned. If a new\n * value appears before the duration Observable emits, the previous value will\n * be dropped and will not be emitted on the output Observable.\n *\n * Like {@link debounceTime}, this is a rate-limiting operator, and also a\n * delay-like operator since output emissions do not necessarily occur at the\n * same time as they did on the source Observable.\n *\n * @example <caption>Emit the most recent click after a burst of clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.debounce(() => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounceTime}\n * @see {@link delayWhen}\n * @see {@link throttle}\n *\n * @param {function(value: T): SubscribableOrPromise} durationSelector A function\n * that receives a value from the source Observable, for computing the timeout\n * duration for each source value, returned as an Observable or a Promise.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by the specified duration Observable returned by\n * `durationSelector`, and may drop some values if they occur too frequently.\n * @method debounce\n * @owner Observable\n */\nexport function debounce<T>(durationSelector: (value: T) => SubscribableOrPromise<number>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new DebounceOperator(durationSelector));\n}\n\nclass DebounceOperator<T> implements Operator<T, T> {\n  constructor(private durationSelector: (value: T) => SubscribableOrPromise<number>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new DebounceSubscriber(subscriber, this.durationSelector));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DebounceSubscriber<T, R> extends OuterSubscriber<T, R> {\n  private value: T;\n  private hasValue: boolean = false;\n  private durationSubscription: Subscription = null;\n\n  constructor(destination: Subscriber<R>,\n              private durationSelector: (value: T) => SubscribableOrPromise<number>) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    try {\n      const result = this.durationSelector.call(this, value);\n\n      if (result) {\n        this._tryNext(value, result);\n      }\n    } catch (err) {\n      this.destination.error(err);\n    }\n  }\n\n  protected _complete(): void {\n    this.emitValue();\n    this.destination.complete();\n  }\n\n  private _tryNext(value: T, duration: SubscribableOrPromise<number>): void {\n    let subscription = this.durationSubscription;\n    this.value = value;\n    this.hasValue = true;\n    if (subscription) {\n      subscription.unsubscribe();\n      this.remove(subscription);\n    }\n\n    subscription = subscribeToResult(this, duration);\n    if (!subscription.closed) {\n      this.add(this.durationSubscription = subscription);\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this.emitValue();\n  }\n\n  notifyComplete(): void {\n    this.emitValue();\n  }\n\n  emitValue(): void {\n    if (this.hasValue) {\n      const value = this.value;\n      const subscription = this.durationSubscription;\n      if (subscription) {\n        this.durationSubscription = null;\n        subscription.unsubscribe();\n        this.remove(subscription);\n      }\n      this.value = null;\n      this.hasValue = false;\n      super._next(value);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/debounce.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { IScheduler } from '../Scheduler';\nimport { Subscription, TeardownLogic } from '../Subscription';\nimport { async } from '../scheduler/async';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits a value from the source Observable only after a particular time span\n * has passed without another source emission.\n *\n * <span class=\"informal\">It's like {@link delay}, but passes only the most\n * recent value from each burst of emissions.</span>\n *\n * <img src=\"./img/debounceTime.png\" width=\"100%\">\n *\n * `debounceTime` delays values emitted by the source Observable, but drops\n * previous pending delayed emissions if a new value arrives on the source\n * Observable. This operator keeps track of the most recent value from the\n * source Observable, and emits that only when `dueTime` enough time has passed\n * without any other value appearing on the source Observable. If a new value\n * appears before `dueTime` silence occurs, the previous value will be dropped\n * and will not be emitted on the output Observable.\n *\n * This is a rate-limiting operator, because it is impossible for more than one\n * value to be emitted in any time window of duration `dueTime`, but it is also\n * a delay-like operator since output emissions do not occur at the same time as\n * they did on the source Observable. Optionally takes a {@link IScheduler} for\n * managing timers.\n *\n * @example <caption>Emit the most recent click after a burst of clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.debounceTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounce}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttleTime}\n *\n * @param {number} dueTime The timeout duration in milliseconds (or the time\n * unit determined internally by the optional `scheduler`) for the window of\n * time required to wait for emission silence before emitting the most recent\n * source value.\n * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for\n * managing the timers that handle the timeout for each value.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by the specified `dueTime`, and may drop some values if they occur\n * too frequently.\n * @method debounceTime\n * @owner Observable\n */\nexport function debounceTime<T>(dueTime: number, scheduler: IScheduler = async): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new DebounceTimeOperator(dueTime, scheduler));\n}\n\nclass DebounceTimeOperator<T> implements Operator<T, T> {\n  constructor(private dueTime: number, private scheduler: IScheduler) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new DebounceTimeSubscriber(subscriber, this.dueTime, this.scheduler));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DebounceTimeSubscriber<T> extends Subscriber<T> {\n  private debouncedSubscription: Subscription = null;\n  private lastValue: T = null;\n  private hasValue: boolean = false;\n\n  constructor(destination: Subscriber<T>,\n              private dueTime: number,\n              private scheduler: IScheduler) {\n    super(destination);\n  }\n\n  protected _next(value: T) {\n    this.clearDebounce();\n    this.lastValue = value;\n    this.hasValue = true;\n    this.add(this.debouncedSubscription = this.scheduler.schedule(dispatchNext, this.dueTime, this));\n  }\n\n  protected _complete() {\n    this.debouncedNext();\n    this.destination.complete();\n  }\n\n  debouncedNext(): void {\n    this.clearDebounce();\n\n    if (this.hasValue) {\n      this.destination.next(this.lastValue);\n      this.lastValue = null;\n      this.hasValue = false;\n    }\n  }\n\n  private clearDebounce(): void {\n    const debouncedSubscription = this.debouncedSubscription;\n\n    if (debouncedSubscription !== null) {\n      this.remove(debouncedSubscription);\n      debouncedSubscription.unsubscribe();\n      this.debouncedSubscription = null;\n    }\n  }\n}\n\nfunction dispatchNext(subscriber: DebounceTimeSubscriber<any>) {\n  subscriber.debouncedNext();\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/debounceTime.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function defaultIfEmpty<T>(defaultValue?: T): MonoTypeOperatorFunction<T>;\nexport function defaultIfEmpty<T, R>(defaultValue?: R): OperatorFunction<T, T | R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Emits a given value if the source Observable completes without emitting any\n * `next` value, otherwise mirrors the source Observable.\n *\n * <span class=\"informal\">If the source Observable turns out to be empty, then\n * this operator will emit a default value.</span>\n *\n * <img src=\"./img/defaultIfEmpty.png\" width=\"100%\">\n *\n * `defaultIfEmpty` emits the values emitted by the source Observable or a\n * specified default value if the source Observable is empty (completes without\n * having emitted any `next` value).\n *\n * @example <caption>If no clicks happen in 5 seconds, then emit \"no clicks\"</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var clicksBeforeFive = clicks.takeUntil(Rx.Observable.interval(5000));\n * var result = clicksBeforeFive.defaultIfEmpty('no clicks');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link empty}\n * @see {@link last}\n *\n * @param {any} [defaultValue=null] The default value used if the source\n * Observable is empty.\n * @return {Observable} An Observable that emits either the specified\n * `defaultValue` if the source Observable emits no items, or the values emitted\n * by the source Observable.\n * @method defaultIfEmpty\n * @owner Observable\n */\nexport function defaultIfEmpty<T, R>(defaultValue: R = null): OperatorFunction<T, T | R> {\n  return (source: Observable<T>) => source.lift(new DefaultIfEmptyOperator(defaultValue)) as Observable<T | R>;\n}\n\nclass DefaultIfEmptyOperator<T, R> implements Operator<T, T | R> {\n\n  constructor(private defaultValue: R) {\n  }\n\n  call(subscriber: Subscriber<T | R>, source: any): any {\n    return source.subscribe(new DefaultIfEmptySubscriber(subscriber, this.defaultValue));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DefaultIfEmptySubscriber<T, R> extends Subscriber<T> {\n  private isEmpty: boolean = true;\n\n  constructor(destination: Subscriber<T | R>, private defaultValue: R) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    this.isEmpty = false;\n    this.destination.next(value);\n  }\n\n  protected _complete(): void {\n    if (this.isEmpty) {\n      this.destination.next(this.defaultValue);\n    }\n    this.destination.complete();\n  }\n}\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/defaultIfEmpty.ts","import { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { Operator } from '../Operator';\nimport { IScheduler } from '../Scheduler';\nimport { Subscriber } from '../Subscriber';\nimport { Action } from '../scheduler/Action';\nimport { Notification } from '../Notification';\nimport { Observable } from '../Observable';\nimport { PartialObserver } from '../Observer';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Delays the emission of items from the source Observable by a given timeout or\n * until a given Date.\n *\n * <span class=\"informal\">Time shifts each item by some specified amount of\n * milliseconds.</span>\n *\n * <img src=\"./img/delay.png\" width=\"100%\">\n *\n * If the delay argument is a Number, this operator time shifts the source\n * Observable by that amount of time expressed in milliseconds. The relative\n * time intervals between the values are preserved.\n *\n * If the delay argument is a Date, this operator time shifts the start of the\n * Observable execution until the given date occurs.\n *\n * @example <caption>Delay each click by one second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var delayedClicks = clicks.delay(1000); // each click emitted after 1 second\n * delayedClicks.subscribe(x => console.log(x));\n *\n * @example <caption>Delay all clicks until a future date happens</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var date = new Date('March 15, 2050 12:00:00'); // in the future\n * var delayedClicks = clicks.delay(date); // click emitted only after that date\n * delayedClicks.subscribe(x => console.log(x));\n *\n * @see {@link debounceTime}\n * @see {@link delayWhen}\n *\n * @param {number|Date} delay The delay duration in milliseconds (a `number`) or\n * a `Date` until which the emission of the source items is delayed.\n * @param {Scheduler} [scheduler=async] The IScheduler to use for\n * managing the timers that handle the time-shift for each item.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by the specified timeout or Date.\n * @method delay\n * @owner Observable\n */\nexport function delay<T>(delay: number|Date,\n                         scheduler: IScheduler = async): MonoTypeOperatorFunction<T> {\n  const absoluteDelay = isDate(delay);\n  const delayFor = absoluteDelay ? (+delay - scheduler.now()) : Math.abs(<number>delay);\n  return (source: Observable<T>) => source.lift(new DelayOperator(delayFor, scheduler));\n}\n\nclass DelayOperator<T> implements Operator<T, T> {\n  constructor(private delay: number,\n              private scheduler: IScheduler) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new DelaySubscriber(subscriber, this.delay, this.scheduler));\n  }\n}\n\ninterface DelayState<T> {\n  source: DelaySubscriber<T>;\n  destination: PartialObserver<T>;\n  scheduler: IScheduler;\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DelaySubscriber<T> extends Subscriber<T> {\n  private queue: Array<DelayMessage<T>> = [];\n  private active: boolean = false;\n  private errored: boolean = false;\n\n  private static dispatch<T>(this: Action<DelayState<T>>, state: DelayState<T>): void {\n    const source = state.source;\n    const queue = source.queue;\n    const scheduler = state.scheduler;\n    const destination = state.destination;\n\n    while (queue.length > 0 && (queue[0].time - scheduler.now()) <= 0) {\n      queue.shift().notification.observe(destination);\n    }\n\n    if (queue.length > 0) {\n      const delay = Math.max(0, queue[0].time - scheduler.now());\n      this.schedule(state, delay);\n    } else {\n      this.unsubscribe();\n      source.active = false;\n    }\n  }\n\n  constructor(destination: Subscriber<T>,\n              private delay: number,\n              private scheduler: IScheduler) {\n    super(destination);\n  }\n\n  private _schedule(scheduler: IScheduler): void {\n    this.active = true;\n    this.add(scheduler.schedule<DelayState<T>>(DelaySubscriber.dispatch, this.delay, {\n      source: this, destination: this.destination, scheduler: scheduler\n    }));\n  }\n\n  private scheduleNotification(notification: Notification<T>): void {\n    if (this.errored === true) {\n      return;\n    }\n\n    const scheduler = this.scheduler;\n    const message = new DelayMessage(scheduler.now() + this.delay, notification);\n    this.queue.push(message);\n\n    if (this.active === false) {\n      this._schedule(scheduler);\n    }\n  }\n\n  protected _next(value: T) {\n    this.scheduleNotification(Notification.createNext(value));\n  }\n\n  protected _error(err: any) {\n    this.errored = true;\n    this.queue = [];\n    this.destination.error(err);\n  }\n\n  protected _complete() {\n    this.scheduleNotification(Notification.createComplete());\n  }\n}\n\nclass DelayMessage<T> {\n  constructor(public readonly time: number,\n              public readonly notification: Notification<T>) {\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/delay.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subscription, TeardownLogic } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Delays the emission of items from the source Observable by a given time span\n * determined by the emissions of another Observable.\n *\n * <span class=\"informal\">It's like {@link delay}, but the time span of the\n * delay duration is determined by a second Observable.</span>\n *\n * <img src=\"./img/delayWhen.png\" width=\"100%\">\n *\n * `delayWhen` time shifts each emitted value from the source Observable by a\n * time span determined by another Observable. When the source emits a value,\n * the `delayDurationSelector` function is called with the source value as\n * argument, and should return an Observable, called the \"duration\" Observable.\n * The source value is emitted on the output Observable only when the duration\n * Observable emits a value or completes.\n *\n * Optionally, `delayWhen` takes a second argument, `subscriptionDelay`, which\n * is an Observable. When `subscriptionDelay` emits its first value or\n * completes, the source Observable is subscribed to and starts behaving like\n * described in the previous paragraph. If `subscriptionDelay` is not provided,\n * `delayWhen` will subscribe to the source Observable as soon as the output\n * Observable is subscribed.\n *\n * @example <caption>Delay each click by a random amount of time, between 0 and 5 seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var delayedClicks = clicks.delayWhen(event =>\n *   Rx.Observable.interval(Math.random() * 5000)\n * );\n * delayedClicks.subscribe(x => console.log(x));\n *\n * @see {@link debounce}\n * @see {@link delay}\n *\n * @param {function(value: T): Observable} delayDurationSelector A function that\n * returns an Observable for each value emitted by the source Observable, which\n * is then used to delay the emission of that item on the output Observable\n * until the Observable returned from this function emits a value.\n * @param {Observable} subscriptionDelay An Observable that triggers the\n * subscription to the source Observable once it emits any value.\n * @return {Observable} An Observable that delays the emissions of the source\n * Observable by an amount of time specified by the Observable returned by\n * `delayDurationSelector`.\n * @method delayWhen\n * @owner Observable\n */\nexport function delayWhen<T>(delayDurationSelector: (value: T) => Observable<any>,\n                             subscriptionDelay?: Observable<any>): MonoTypeOperatorFunction<T> {\n  if (subscriptionDelay) {\n    return (source: Observable<T>) =>\n      new SubscriptionDelayObservable(source, subscriptionDelay)\n        .lift(new DelayWhenOperator(delayDurationSelector));\n  }\n  return (source: Observable<T>) => source.lift(new DelayWhenOperator(delayDurationSelector));\n}\n\nclass DelayWhenOperator<T> implements Operator<T, T> {\n  constructor(private delayDurationSelector: (value: T) => Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new DelayWhenSubscriber(subscriber, this.delayDurationSelector));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DelayWhenSubscriber<T, R> extends OuterSubscriber<T, R> {\n  private completed: boolean = false;\n  private delayNotifierSubscriptions: Array<Subscription> = [];\n  private values: Array<T> = [];\n\n  constructor(destination: Subscriber<T>,\n              private delayDurationSelector: (value: T) => Observable<any>) {\n    super(destination);\n  }\n\n  notifyNext(outerValue: T, innerValue: any,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this.destination.next(outerValue);\n    this.removeSubscription(innerSub);\n    this.tryComplete();\n  }\n\n  notifyError(error: any, innerSub: InnerSubscriber<T, R>): void {\n    this._error(error);\n  }\n\n  notifyComplete(innerSub: InnerSubscriber<T, R>): void {\n    const value = this.removeSubscription(innerSub);\n    if (value) {\n      this.destination.next(value);\n    }\n    this.tryComplete();\n  }\n\n  protected _next(value: T): void {\n    try {\n      const delayNotifier = this.delayDurationSelector(value);\n      if (delayNotifier) {\n        this.tryDelay(delayNotifier, value);\n      }\n    } catch (err) {\n      this.destination.error(err);\n    }\n  }\n\n  protected _complete(): void {\n    this.completed = true;\n    this.tryComplete();\n  }\n\n  private removeSubscription(subscription: InnerSubscriber<T, R>): T {\n    subscription.unsubscribe();\n\n    const subscriptionIdx = this.delayNotifierSubscriptions.indexOf(subscription);\n    let value: T = null;\n\n    if (subscriptionIdx !== -1) {\n      value = this.values[subscriptionIdx];\n      this.delayNotifierSubscriptions.splice(subscriptionIdx, 1);\n      this.values.splice(subscriptionIdx, 1);\n    }\n\n    return value;\n  }\n\n  private tryDelay(delayNotifier: Observable<any>, value: T): void {\n    const notifierSubscription = subscribeToResult(this, delayNotifier, value);\n\n    if (notifierSubscription && !notifierSubscription.closed) {\n      this.add(notifierSubscription);\n      this.delayNotifierSubscriptions.push(notifierSubscription);\n    }\n\n    this.values.push(value);\n  }\n\n  private tryComplete(): void {\n    if (this.completed && this.delayNotifierSubscriptions.length === 0) {\n      this.destination.complete();\n    }\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SubscriptionDelayObservable<T> extends Observable<T> {\n  constructor(/** @deprecated internal use only */ public source: Observable<T>, private subscriptionDelay: Observable<any>) {\n    super();\n  }\n\n  /** @deprecated internal use only */ _subscribe(subscriber: Subscriber<T>) {\n    this.subscriptionDelay.subscribe(new SubscriptionDelaySubscriber(subscriber, this.source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SubscriptionDelaySubscriber<T> extends Subscriber<T> {\n  private sourceSubscribed: boolean = false;\n\n  constructor(private parent: Subscriber<T>, private source: Observable<T>) {\n    super();\n  }\n\n  protected _next(unused: any) {\n    this.subscribeToSource();\n  }\n\n  protected _error(err: any) {\n    this.unsubscribe();\n    this.parent.error(err);\n  }\n\n  protected _complete() {\n    this.subscribeToSource();\n  }\n\n  private subscribeToSource(): void {\n    if (!this.sourceSubscribed) {\n      this.sourceSubscribed = true;\n      this.unsubscribe();\n      this.source.subscribe(this.parent);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/delayWhen.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Converts an Observable of {@link Notification} objects into the emissions\n * that they represent.\n *\n * <span class=\"informal\">Unwraps {@link Notification} objects as actual `next`,\n * `error` and `complete` emissions. The opposite of {@link materialize}.</span>\n *\n * <img src=\"./img/dematerialize.png\" width=\"100%\">\n *\n * `dematerialize` is assumed to operate an Observable that only emits\n * {@link Notification} objects as `next` emissions, and does not emit any\n * `error`. Such Observable is the output of a `materialize` operation. Those\n * notifications are then unwrapped using the metadata they contain, and emitted\n * as `next`, `error`, and `complete` on the output Observable.\n *\n * Use this operator in conjunction with {@link materialize}.\n *\n * @example <caption>Convert an Observable of Notifications to an actual Observable</caption>\n * var notifA = new Rx.Notification('N', 'A');\n * var notifB = new Rx.Notification('N', 'B');\n * var notifE = new Rx.Notification('E', void 0,\n *   new TypeError('x.toUpperCase is not a function')\n * );\n * var materialized = Rx.Observable.of(notifA, notifB, notifE);\n * var upperCase = materialized.dematerialize();\n * upperCase.subscribe(x => console.log(x), e => console.error(e));\n *\n * // Results in:\n * // A\n * // B\n * // TypeError: x.toUpperCase is not a function\n *\n * @see {@link Notification}\n * @see {@link materialize}\n *\n * @return {Observable} An Observable that emits items and notifications\n * embedded in Notification objects emitted by the source Observable.\n * @method dematerialize\n * @owner Observable\n */\nexport function dematerialize<T>(): OperatorFunction<Notification<T>, T> {\n  return function dematerializeOperatorFunction(source: Observable<Notification<T>>) {\n    return source.lift(new DeMaterializeOperator());\n  };\n}\n\nclass DeMaterializeOperator<T extends Notification<any>, R> implements Operator<T, R> {\n  call(subscriber: Subscriber<any>, source: any): any {\n    return source.subscribe(new DeMaterializeSubscriber(subscriber));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DeMaterializeSubscriber<T extends Notification<any>> extends Subscriber<T> {\n  constructor(destination: Subscriber<any>) {\n    super(destination);\n  }\n\n  protected _next(value: T) {\n    value.observe(this.destination);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/dematerialize.ts","import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { TeardownLogic } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { ISet, Set } from '../util/Set';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from previous items.\n *\n * If a keySelector function is provided, then it will project each value from the source observable into a new value that it will\n * check for equality with previously projected values. If a keySelector function is not provided, it will use each value from the\n * source observable directly with an equality check against previous values.\n *\n * In JavaScript runtimes that support `Set`, this operator will use a `Set` to improve performance of the distinct value checking.\n *\n * In other runtimes, this operator will use a minimal implementation of `Set` that relies on an `Array` and `indexOf` under the\n * hood, so performance will degrade as more values are checked for distinction. Even in newer browsers, a long-running `distinct`\n * use might result in memory leaks. To help alleviate this in some scenarios, an optional `flushes` parameter is also provided so\n * that the internal `Set` can be \"flushed\", basically clearing it of values.\n *\n * @example <caption>A simple example with numbers</caption>\n * Observable.of(1, 1, 2, 2, 2, 1, 2, 3, 4, 3, 2, 1)\n *   .distinct()\n *   .subscribe(x => console.log(x)); // 1, 2, 3, 4\n *\n * @example <caption>An example using a keySelector function</caption>\n * interface Person {\n *    age: number,\n *    name: string\n * }\n *\n * Observable.of<Person>(\n *     { age: 4, name: 'Foo'},\n *     { age: 7, name: 'Bar'},\n *     { age: 5, name: 'Foo'})\n *     .distinct((p: Person) => p.name)\n *     .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n *\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n *\n * @param {function} [keySelector] Optional function to select which value you want to check as distinct.\n * @param {Observable} [flushes] Optional Observable for flushing the internal HashSet of the operator.\n * @return {Observable} An Observable that emits items from the source Observable with distinct values.\n * @method distinct\n * @owner Observable\n */\nexport function distinct<T, K>(keySelector?: (value: T) => K,\n                               flushes?: Observable<any>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new DistinctOperator(keySelector, flushes));\n}\n\nclass DistinctOperator<T, K> implements Operator<T, T> {\n  constructor(private keySelector: (value: T) => K, private flushes: Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new DistinctSubscriber(subscriber, this.keySelector, this.flushes));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class DistinctSubscriber<T, K> extends OuterSubscriber<T, T> {\n  private values: ISet<K> = new Set<K>();\n\n  constructor(destination: Subscriber<T>, private keySelector: (value: T) => K, flushes: Observable<any>) {\n    super(destination);\n\n    if (flushes) {\n      this.add(subscribeToResult(this, flushes));\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: T,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, T>): void {\n    this.values.clear();\n  }\n\n  notifyError(error: any, innerSub: InnerSubscriber<T, T>): void {\n    this._error(error);\n  }\n\n  protected _next(value: T): void {\n    if (this.keySelector) {\n      this._useKeySelector(value);\n    } else {\n      this._finalizeNext(value, value);\n    }\n  }\n\n  private _useKeySelector(value: T): void {\n    let key: K;\n    const { destination } = this;\n    try {\n      key = this.keySelector(value);\n    } catch (err) {\n      destination.error(err);\n      return;\n    }\n    this._finalizeNext(key, value);\n  }\n\n  private _finalizeNext(key: K|T, value: T) {\n    const { values } = this;\n    if (!values.has(<K>key)) {\n      values.add(<K>key);\n      this.destination.next(value);\n    }\n  }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/distinct.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function distinctUntilChanged<T>(compare?: (x: T, y: T) => boolean): MonoTypeOperatorFunction<T>;\nexport function distinctUntilChanged<T, K>(compare: (x: K, y: K) => boolean, keySelector: (x: T) => K): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item.\n *\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n *\n * If a comparator function is not provided, an equality check is used by default.\n *\n * @example <caption>A simple example with numbers</caption>\n * Observable.of(1, 1, 2, 2, 2, 1, 1, 2, 3, 3, 4)\n *   .distinctUntilChanged()\n *   .subscribe(x => console.log(x)); // 1, 2, 1, 2, 3, 4\n *\n * @example <caption>An example using a compare function</caption>\n * interface Person {\n *    age: number,\n *    name: string\n * }\n *\n * Observable.of<Person>(\n *     { age: 4, name: 'Foo'},\n *     { age: 7, name: 'Bar'},\n *     { age: 5, name: 'Foo'})\n *     { age: 6, name: 'Foo'})\n *     .distinctUntilChanged((p: Person, q: Person) => p.name === q.name)\n *     .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo' }\n *\n * @see {@link distinct}\n * @see {@link distinctUntilKeyChanged}\n *\n * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return {Observable} An Observable that emits items from the source Observable with distinct values.\n * @method distinctUntilChanged\n * @owner Observable\n */\nexport function distinctUntilChanged<T, K>(compare?: (x: K, y: K) => boolean, keySelector?: (x: T) => K): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new DistinctUntilChangedOperator<T, K>(compare, keySelector));\n}\n\nclass DistinctUntilChangedOperator<T, K> implements Operator<T, T> {\n  constructor(private compare: (x: K, y: K) => boolean,\n              private keySelector: (x: T) => K) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new DistinctUntilChangedSubscriber(subscriber, this.compare, this.keySelector));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DistinctUntilChangedSubscriber<T, K> extends Subscriber<T> {\n  private key: K;\n  private hasKey: boolean = false;\n\n  constructor(destination: Subscriber<T>,\n              compare: (x: K, y: K) => boolean,\n              private keySelector: (x: T) => K) {\n    super(destination);\n    if (typeof compare === 'function') {\n      this.compare = compare;\n    }\n  }\n\n  private compare(x: any, y: any): boolean {\n    return x === y;\n  }\n\n  protected _next(value: T): void {\n\n    const keySelector = this.keySelector;\n    let key: any = value;\n\n    if (keySelector) {\n      key = tryCatch(this.keySelector)(value);\n      if (key === errorObject) {\n        return this.destination.error(errorObject.e);\n      }\n    }\n\n    let result: any = false;\n\n    if (this.hasKey) {\n      result = tryCatch(this.compare)(this.key, key);\n      if (result === errorObject) {\n        return this.destination.error(errorObject.e);\n      }\n    } else {\n      this.hasKey = true;\n    }\n\n    if (Boolean(result) === false) {\n      this.key = key;\n      this.destination.next(value);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/distinctUntilChanged.ts","import { distinctUntilChanged } from './distinctUntilChanged';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function distinctUntilKeyChanged<T>(key: string): MonoTypeOperatorFunction<T>;\nexport function distinctUntilKeyChanged<T, K>(key: string, compare: (x: K, y: K) => boolean): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits all items emitted by the source Observable that are distinct by comparison from the previous item,\n * using a property accessed by using the key provided to check if the two items are distinct.\n *\n * If a comparator function is provided, then it will be called for each item to test for whether or not that value should be emitted.\n *\n * If a comparator function is not provided, an equality check is used by default.\n *\n * @example <caption>An example comparing the name of persons</caption>\n *\n *  interface Person {\n *     age: number,\n *     name: string\n *  }\n *\n * Observable.of<Person>(\n *     { age: 4, name: 'Foo'},\n *     { age: 7, name: 'Bar'},\n *     { age: 5, name: 'Foo'},\n *     { age: 6, name: 'Foo'})\n *     .distinctUntilKeyChanged('name')\n *     .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo' }\n *\n * @example <caption>An example comparing the first letters of the name</caption>\n *\n * interface Person {\n *     age: number,\n *     name: string\n *  }\n *\n * Observable.of<Person>(\n *     { age: 4, name: 'Foo1'},\n *     { age: 7, name: 'Bar'},\n *     { age: 5, name: 'Foo2'},\n *     { age: 6, name: 'Foo3'})\n *     .distinctUntilKeyChanged('name', (x: string, y: string) => x.substring(0, 3) === y.substring(0, 3))\n *     .subscribe(x => console.log(x));\n *\n * // displays:\n * // { age: 4, name: 'Foo1' }\n * // { age: 7, name: 'Bar' }\n * // { age: 5, name: 'Foo2' }\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n *\n * @param {string} key String key for object property lookup on each item.\n * @param {function} [compare] Optional comparison function called to test if an item is distinct from the previous item in the source.\n * @return {Observable} An Observable that emits items from the source Observable with distinct values based on the key specified.\n * @method distinctUntilKeyChanged\n * @owner Observable\n */\nexport function distinctUntilKeyChanged<T>(key: string, compare?: (x: T, y: T) => boolean): MonoTypeOperatorFunction<T> {\n  return distinctUntilChanged((x: T, y: T) => compare ? compare(x[key], y[key]) : x[key] === y[key]);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/distinctUntilKeyChanged.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits the single value at the specified `index` in a sequence of emissions\n * from the source Observable.\n *\n * <span class=\"informal\">Emits only the i-th value, then completes.</span>\n *\n * <img src=\"./img/elementAt.png\" width=\"100%\">\n *\n * `elementAt` returns an Observable that emits the item at the specified\n * `index` in the source Observable, or a default value if that `index` is out\n * of range and the `default` argument is provided. If the `default` argument is\n * not given and the `index` is out of range, the output Observable will emit an\n * `ArgumentOutOfRangeError` error.\n *\n * @example <caption>Emit only the third click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.elementAt(2);\n * result.subscribe(x => console.log(x));\n *\n * // Results in:\n * // click 1 = nothing\n * // click 2 = nothing\n * // click 3 = MouseEvent object logged to console\n *\n * @see {@link first}\n * @see {@link last}\n * @see {@link skip}\n * @see {@link single}\n * @see {@link take}\n *\n * @throws {ArgumentOutOfRangeError} When using `elementAt(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0` or the\n * Observable has completed before emitting the i-th `next` notification.\n *\n * @param {number} index Is the number `i` for the i-th source emission that has\n * happened since the subscription, starting from the number `0`.\n * @param {T} [defaultValue] The default value returned for missing indices.\n * @return {Observable} An Observable that emits a single item, if it is found.\n * Otherwise, will emit the default value if given. If not, then emits an error.\n * @method elementAt\n * @owner Observable\n */\nexport function elementAt<T>(index: number, defaultValue?: T): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new ElementAtOperator(index, defaultValue));\n}\n\nclass ElementAtOperator<T> implements Operator<T, T> {\n\n  constructor(private index: number, private defaultValue?: T) {\n    if (index < 0) {\n      throw new ArgumentOutOfRangeError;\n    }\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new ElementAtSubscriber(subscriber, this.index, this.defaultValue));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass ElementAtSubscriber<T> extends Subscriber<T> {\n\n  constructor(destination: Subscriber<T>, private index: number, private defaultValue?: T) {\n    super(destination);\n  }\n\n  protected _next(x: T) {\n    if (this.index-- === 0) {\n      this.destination.next(x);\n      this.destination.complete();\n    }\n  }\n\n  protected _complete() {\n    const destination = this.destination;\n    if (this.index >= 0) {\n      if (typeof this.defaultValue !== 'undefined') {\n        destination.next(this.defaultValue);\n      } else {\n        destination.error(new ArgumentOutOfRangeError);\n      }\n    }\n    destination.complete();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/elementAt.ts","import { Operator } from '../Operator';\nimport { Observer } from '../Observer';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that emits whether or not every item of the source satisfies the condition specified.\n *\n * @example <caption>A simple example emitting true if all elements are less than 5, false otherwise</caption>\n *  Observable.of(1, 2, 3, 4, 5, 6)\n *     .every(x => x < 5)\n *     .subscribe(x => console.log(x)); // -> false\n *\n * @param {function} predicate A function for determining if an item meets a specified condition.\n * @param {any} [thisArg] Optional object to use for `this` in the callback.\n * @return {Observable} An Observable of booleans that determines if all items of the source Observable meet the condition specified.\n * @method every\n * @owner Observable\n */\nexport function every<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean,\n                         thisArg?: any): OperatorFunction<T, boolean> {\n  return (source: Observable<T>) => source.lift(new EveryOperator(predicate, thisArg, source));\n}\n\nclass EveryOperator<T> implements Operator<T, boolean> {\n  constructor(private predicate: (value: T, index: number, source: Observable<T>) => boolean,\n              private thisArg?: any,\n              private source?: Observable<T>) {\n  }\n\n  call(observer: Subscriber<boolean>, source: any): any {\n    return source.subscribe(new EverySubscriber(observer, this.predicate, this.thisArg, this.source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass EverySubscriber<T> extends Subscriber<T> {\n  private index: number = 0;\n\n  constructor(destination: Observer<boolean>,\n              private predicate: (value: T, index: number, source: Observable<T>) => boolean,\n              private thisArg: any,\n              private source?: Observable<T>) {\n    super(destination);\n    this.thisArg = thisArg || this;\n  }\n\n  private notifyComplete(everyValueMatch: boolean): void {\n    this.destination.next(everyValueMatch);\n    this.destination.complete();\n  }\n\n  protected _next(value: T): void {\n    let result = false;\n    try {\n      result = this.predicate.call(this.thisArg, value, this.index++, this.source);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n\n    if (!result) {\n      this.notifyComplete(false);\n    }\n  }\n\n  protected _complete(): void {\n    this.notifyComplete(true);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/every.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription, TeardownLogic } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Converts a higher-order Observable into a first-order Observable by dropping\n * inner Observables while the previous inner Observable has not yet completed.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables by dropping the\n * next inner Observables while the current inner is still executing.</span>\n *\n * <img src=\"./img/exhaust.png\" width=\"100%\">\n *\n * `exhaust` subscribes to an Observable that emits Observables, also known as a\n * higher-order Observable. Each time it observes one of these emitted inner\n * Observables, the output Observable begins emitting the items emitted by that\n * inner Observable. So far, it behaves like {@link mergeAll}. However,\n * `exhaust` ignores every new inner Observable if the previous Observable has\n * not yet completed. Once that one completes, it will accept and flatten the\n * next inner Observable and repeat this process.\n *\n * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000).take(5));\n * var result = higherOrder.exhaust();\n * result.subscribe(x => console.log(x));\n *\n * @see {@link combineAll}\n * @see {@link concatAll}\n * @see {@link switch}\n * @see {@link mergeAll}\n * @see {@link exhaustMap}\n * @see {@link zipAll}\n *\n * @return {Observable} An Observable that takes a source of Observables and propagates the first observable\n * exclusively until it completes before subscribing to the next.\n * @method exhaust\n * @owner Observable\n */\nexport function exhaust<T>(): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new SwitchFirstOperator<T>());\n}\n\nclass SwitchFirstOperator<T> implements Operator<T, T> {\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new SwitchFirstSubscriber(subscriber));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SwitchFirstSubscriber<T> extends OuterSubscriber<T, T> {\n  private hasCompleted: boolean = false;\n  private hasSubscription: boolean = false;\n\n  constructor(destination: Subscriber<T>) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    if (!this.hasSubscription) {\n      this.hasSubscription = true;\n      this.add(subscribeToResult(this, value));\n    }\n  }\n\n  protected _complete(): void {\n    this.hasCompleted = true;\n    if (!this.hasSubscription) {\n      this.destination.complete();\n    }\n  }\n\n  notifyComplete(innerSub: Subscription): void {\n    this.remove(innerSub);\n    this.hasSubscription = false;\n    if (this.hasCompleted) {\n      this.destination.complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/exhaust.ts","import { Operator } from '../Operator';\nimport { Observable, ObservableInput } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function exhaustMap<T, R>(project: (value: T, index: number) => ObservableInput<R>): OperatorFunction<T, R>;\nexport function exhaustMap<T, I, R>(project: (value: T, index: number) => ObservableInput<I>, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable only if the previous projected Observable has completed.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link exhaust}.</span>\n *\n * <img src=\"./img/exhaustMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. When it projects a source value to\n * an Observable, the output Observable begins emitting the items emitted by\n * that projected Observable. However, `exhaustMap` ignores every new projected\n * Observable if the previous projected Observable has not yet completed. Once\n * that one completes, it will accept and flatten the next projected Observable\n * and repeat this process.\n *\n * @example <caption>Run a finite timer for each click, only if there is no currently active timer</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.exhaustMap((ev) => Rx.Observable.interval(1000).take(5));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMap}\n * @see {@link exhaust}\n * @see {@link mergeMap}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable containing projected Observables\n * of each item of the source, ignoring projected Observables that start before\n * their preceding Observable has completed.\n * @method exhaustMap\n * @owner Observable\n */\nexport function exhaustMap<T, I, R>(\n  project: (value: T, index: number) => ObservableInput<I>,\n  resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R\n  ): OperatorFunction<T, R> {\n    return (source: Observable<T>) => source.lift(new SwitchFirstMapOperator(project, resultSelector));\n  }\n\nclass SwitchFirstMapOperator<T, I, R> implements Operator<T, R> {\n  constructor(private project: (value: T, index: number) => ObservableInput<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) {\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new SwitchFirstMapSubscriber(subscriber, this.project, this.resultSelector));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SwitchFirstMapSubscriber<T, I, R> extends OuterSubscriber<T, I> {\n  private hasSubscription: boolean = false;\n  private hasCompleted: boolean = false;\n  private index: number = 0;\n\n  constructor(destination: Subscriber<R>,\n              private project: (value: T, index: number) => ObservableInput<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    if (!this.hasSubscription) {\n      this.tryNext(value);\n    }\n  }\n\n  private tryNext(value: T): void {\n    const index = this.index++;\n    const destination = this.destination;\n    try {\n      const result = this.project(value, index);\n      this.hasSubscription = true;\n      this.add(subscribeToResult(this, result, value, index));\n    } catch (err) {\n      destination.error(err);\n    }\n  }\n\n  protected _complete(): void {\n    this.hasCompleted = true;\n    if (!this.hasSubscription) {\n      this.destination.complete();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: I,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, I>): void {\n    const { resultSelector, destination } = this;\n    if (resultSelector) {\n      this.trySelectResult(outerValue, innerValue, outerIndex, innerIndex);\n    } else {\n      destination.next(innerValue);\n    }\n  }\n\n  private trySelectResult(outerValue: T, innerValue: I,\n                          outerIndex: number, innerIndex: number): void {\n    const { resultSelector, destination } = this;\n    try {\n      const result = resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n      destination.next(result);\n    } catch (err) {\n      destination.error(err);\n    }\n  }\n\n  notifyError(err: any): void {\n    this.destination.error(err);\n  }\n\n  notifyComplete(innerSub: Subscription): void {\n    this.remove(innerSub);\n\n    this.hasSubscription = false;\n    if (this.hasCompleted) {\n      this.destination.complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/exhaustMap.ts","import { Observable } from '../Observable';\nimport { IScheduler } from '../Scheduler';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\nimport { Subscription } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { MonoTypeOperatorFunction, OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function expand<T>(project: (value: T, index: number) => Observable<T>, concurrent?: number, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function expand<T, R>(project: (value: T, index: number) => Observable<R>, concurrent?: number, scheduler?: IScheduler): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Recursively projects each source value to an Observable which is merged in\n * the output Observable.\n *\n * <span class=\"informal\">It's similar to {@link mergeMap}, but applies the\n * projection function to every source value as well as every output value.\n * It's recursive.</span>\n *\n * <img src=\"./img/expand.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger. *Expand* will re-emit on the output\n * Observable every source value. Then, each output value is given to the\n * `project` function which returns an inner Observable to be merged on the\n * output Observable. Those output values resulting from the projection are also\n * given to the `project` function to produce new output values. This is how\n * *expand* behaves recursively.\n *\n * @example <caption>Start emitting the powers of two on every click, at most 10 of them</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var powersOfTwo = clicks\n *   .mapTo(1)\n *   .expand(x => Rx.Observable.of(2 * x).delay(1000))\n *   .take(10);\n * powersOfTwo.subscribe(x => console.log(x));\n *\n * @see {@link mergeMap}\n * @see {@link mergeScan}\n *\n * @param {function(value: T, index: number) => Observable} project A function\n * that, when applied to an item emitted by the source or the output Observable,\n * returns an Observable.\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {Scheduler} [scheduler=null] The IScheduler to use for subscribing to\n * each projected inner Observable.\n * @return {Observable} An Observable that emits the source values and also\n * result of applying the projection function to each value emitted on the\n * output Observable and and merging the results of the Observables obtained\n * from this transformation.\n * @method expand\n * @owner Observable\n */\nexport function expand<T, R>(project: (value: T, index: number) => Observable<R>,\n                             concurrent: number = Number.POSITIVE_INFINITY,\n                             scheduler: IScheduler = undefined): OperatorFunction<T, R> {\n  concurrent = (concurrent || 0) < 1 ? Number.POSITIVE_INFINITY : concurrent;\n\n  return (source: Observable<T>) => source.lift(new ExpandOperator(project, concurrent, scheduler));\n}\n\nexport class ExpandOperator<T, R> implements Operator<T, R> {\n  constructor(private project: (value: T, index: number) => Observable<R>,\n              private concurrent: number,\n              private scheduler: IScheduler) {\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new ExpandSubscriber(subscriber, this.project, this.concurrent, this.scheduler));\n  }\n}\n\ninterface DispatchArg<T, R> {\n  subscriber: ExpandSubscriber<T, R>;\n  result: Observable<R>;\n  value: any;\n  index: number;\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class ExpandSubscriber<T, R> extends OuterSubscriber<T, R> {\n  private index: number = 0;\n  private active: number = 0;\n  private hasCompleted: boolean = false;\n  private buffer: any[];\n\n  constructor(destination: Subscriber<R>,\n              private project: (value: T, index: number) => Observable<R>,\n              private concurrent: number,\n              private scheduler: IScheduler) {\n    super(destination);\n    if (concurrent < Number.POSITIVE_INFINITY) {\n      this.buffer = [];\n    }\n  }\n\n  private static dispatch<T, R>(arg: DispatchArg<T, R>): void {\n    const {subscriber, result, value, index} = arg;\n    subscriber.subscribeToProjection(result, value, index);\n  }\n\n  protected _next(value: any): void {\n    const destination = this.destination;\n\n    if (destination.closed) {\n      this._complete();\n      return;\n    }\n\n    const index = this.index++;\n    if (this.active < this.concurrent) {\n      destination.next(value);\n      let result = tryCatch(this.project)(value, index);\n      if (result === errorObject) {\n        destination.error(errorObject.e);\n      } else if (!this.scheduler) {\n        this.subscribeToProjection(result, value, index);\n      } else {\n        const state: DispatchArg<T, R> = { subscriber: this, result, value, index };\n        this.add(this.scheduler.schedule(ExpandSubscriber.dispatch, 0, state));\n      }\n    } else {\n      this.buffer.push(value);\n    }\n  }\n\n  private subscribeToProjection(result: any, value: T, index: number): void {\n    this.active++;\n    this.add(subscribeToResult<T, R>(this, result, value, index));\n  }\n\n  protected _complete(): void {\n    this.hasCompleted = true;\n    if (this.hasCompleted && this.active === 0) {\n      this.destination.complete();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this._next(innerValue);\n  }\n\n  notifyComplete(innerSub: Subscription): void {\n    const buffer = this.buffer;\n    this.remove(innerSub);\n    this.active--;\n    if (buffer && buffer.length > 0) {\n      this._next(buffer.shift());\n    }\n    if (this.hasCompleted && this.active === 0) {\n      this.destination.complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/expand.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function filter<T, S extends T>(predicate: (value: T, index: number) => value is S,\n                                       thisArg?: any): OperatorFunction<T, S>;\nexport function filter<T>(predicate: (value: T, index: number) => boolean,\n                          thisArg?: any): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Filter items emitted by the source Observable by only emitting those that\n * satisfy a specified predicate.\n *\n * <span class=\"informal\">Like\n * [Array.prototype.filter()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/filter),\n * it only emits a value from the source if it passes a criterion function.</span>\n *\n * <img src=\"./img/filter.png\" width=\"100%\">\n *\n * Similar to the well-known `Array.prototype.filter` method, this operator\n * takes values from the source Observable, passes them through a `predicate`\n * function and only emits those values that yielded `true`.\n *\n * @example <caption>Emit only click events whose target was a DIV element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var clicksOnDivs = clicks.filter(ev => ev.target.tagName === 'DIV');\n * clicksOnDivs.subscribe(x => console.log(x));\n *\n * @see {@link distinct}\n * @see {@link distinctUntilChanged}\n * @see {@link distinctUntilKeyChanged}\n * @see {@link ignoreElements}\n * @see {@link partition}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted, if `false` the value is not passed to the output\n * Observable. The `index` parameter is the number `i` for the i-th source\n * emission that has happened since the subscription, starting from the number\n * `0`.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable} An Observable of values from the source that were\n * allowed by the `predicate` function.\n * @method filter\n * @owner Observable\n */\nexport function filter<T>(predicate: (value: T, index: number) => boolean,\n                          thisArg?: any): MonoTypeOperatorFunction<T> {\n  return function filterOperatorFunction(source: Observable<T>): Observable<T> {\n    return source.lift(new FilterOperator(predicate, thisArg));\n  };\n}\n\nclass FilterOperator<T> implements Operator<T, T> {\n  constructor(private predicate: (value: T, index: number) => boolean,\n              private thisArg?: any) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new FilterSubscriber(subscriber, this.predicate, this.thisArg));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass FilterSubscriber<T> extends Subscriber<T> {\n\n  count: number = 0;\n\n  constructor(destination: Subscriber<T>,\n              private predicate: (value: T, index: number) => boolean,\n              private thisArg: any) {\n    super(destination);\n  }\n\n  // the try catch block below is left specifically for\n  // optimization and perf reasons. a tryCatcher is not necessary here.\n  protected _next(value: T) {\n    let result: any;\n    try {\n      result = this.predicate.call(this.thisArg, value, this.count++);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    if (result) {\n      this.destination.next(value);\n    }\n  }\n}\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/filter.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription, TeardownLogic } from '../Subscription';\nimport { Observable } from '../Observable';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that mirrors the source Observable, but will call a specified function when\n * the source terminates on complete or error.\n * @param {function} callback Function to be called when source terminates.\n * @return {Observable} An Observable that mirrors the source, but will call the specified function on termination.\n * @method finally\n * @owner Observable\n */\nexport function finalize<T>(callback: () => void): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new FinallyOperator(callback));\n}\n\nclass FinallyOperator<T> implements Operator<T, T> {\n  constructor(private callback: () => void) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new FinallySubscriber(subscriber, this.callback));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass FinallySubscriber<T> extends Subscriber<T> {\n  constructor(destination: Subscriber<T>, callback: () => void) {\n    super(destination);\n    this.add(new Subscription(callback));\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/finalize.ts","import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\n\nexport function find<T, S extends T>(predicate: (value: T, index: number, source: Observable<T>) => value is S,\n                                     thisArg?: any): OperatorFunction<T, S>;\nexport function find<T, S extends T>(predicate: (value: T, index: number) => value is S,\n                                     thisArg?: any): OperatorFunction<T, S>;\nexport function find<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean,\n                        thisArg?: any): MonoTypeOperatorFunction<T>;\nexport function find<T>(predicate: (value: T, index: number) => boolean,\n                        thisArg?: any): MonoTypeOperatorFunction<T>;\n/**\n * Emits only the first value emitted by the source Observable that meets some\n * condition.\n *\n * <span class=\"informal\">Finds the first value that passes some test and emits\n * that.</span>\n *\n * <img src=\"./img/find.png\" width=\"100%\">\n *\n * `find` searches for the first item in the source Observable that matches the\n * specified condition embodied by the `predicate`, and returns the first\n * occurrence in the source. Unlike {@link first}, the `predicate` is required\n * in `find`, and does not emit an error if a valid value is not found.\n *\n * @example <caption>Find and emit the first click that happens on a DIV element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.find(ev => ev.target.tagName === 'DIV');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link filter}\n * @see {@link first}\n * @see {@link findIndex}\n * @see {@link take}\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate\n * A function called with each item to test for condition matching.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable<T>} An Observable of the first item that matches the\n * condition.\n * @method find\n * @owner Observable\n */\nexport function find<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean,\n                        thisArg?: any): MonoTypeOperatorFunction<T> {\n  if (typeof predicate !== 'function') {\n    throw new TypeError('predicate is not a function');\n  }\n  return (source: Observable<T>) => source.lift(new FindValueOperator(predicate, source, false, thisArg));\n}\n\nexport class FindValueOperator<T> implements Operator<T, T> {\n  constructor(private predicate: (value: T, index: number, source: Observable<T>) => boolean,\n              private source: Observable<T>,\n              private yieldIndex: boolean,\n              private thisArg?: any) {\n  }\n\n  call(observer: Subscriber<T>, source: any): any {\n    return source.subscribe(new FindValueSubscriber(observer, this.predicate, this.source, this.yieldIndex, this.thisArg));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class FindValueSubscriber<T> extends Subscriber<T> {\n  private index: number = 0;\n\n  constructor(destination: Subscriber<T>,\n              private predicate: (value: T, index: number, source: Observable<T>) => boolean,\n              private source: Observable<T>,\n              private yieldIndex: boolean,\n              private thisArg?: any) {\n    super(destination);\n  }\n\n  private notifyComplete(value: any): void {\n    const destination = this.destination;\n\n    destination.next(value);\n    destination.complete();\n  }\n\n  protected _next(value: T): void {\n    const { predicate, thisArg } = this;\n    const index = this.index++;\n    try {\n      const result = predicate.call(thisArg || this, value, index, this.source);\n      if (result) {\n        this.notifyComplete(this.yieldIndex ? index : value);\n      }\n    } catch (err) {\n      this.destination.error(err);\n    }\n  }\n\n  protected _complete(): void {\n    this.notifyComplete(this.yieldIndex ? -1 : undefined);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/find.ts","import { Observable } from '../Observable';\nimport { FindValueOperator } from '../operators/find';\nimport { OperatorFunction } from '../interfaces';\n/**\n * Emits only the index of the first value emitted by the source Observable that\n * meets some condition.\n *\n * <span class=\"informal\">It's like {@link find}, but emits the index of the\n * found value, not the value itself.</span>\n *\n * <img src=\"./img/findIndex.png\" width=\"100%\">\n *\n * `findIndex` searches for the first item in the source Observable that matches\n * the specified condition embodied by the `predicate`, and returns the\n * (zero-based) index of the first occurrence in the source. Unlike\n * {@link first}, the `predicate` is required in `findIndex`, and does not emit\n * an error if a valid value is not found.\n *\n * @example <caption>Emit the index of first click that happens on a DIV element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.findIndex(ev => ev.target.tagName === 'DIV');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link first}\n * @see {@link take}\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} predicate\n * A function called with each item to test for condition matching.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {Observable} An Observable of the index of the first item that\n * matches the condition.\n * @method find\n * @owner Observable\n */\nexport function findIndex<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean,\n                             thisArg?: any): OperatorFunction<T, number> {\n  return (source: Observable<T>) => source.lift(new FindValueOperator(predicate, source, true, thisArg)) as Observable<any>;\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/findIndex.ts","import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { EmptyError } from '../util/EmptyError';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\n/* tslint:disable:max-line-length */\nexport function first<T, S extends T>(predicate: (value: T, index: number, source: Observable<T>) => value is S): OperatorFunction<T, S>;\nexport function first<T, S extends T, R>(predicate: (value: T | S, index: number, source: Observable<T>) => value is S,\n                                         resultSelector: (value: S, index: number) => R, defaultValue?: R): OperatorFunction<T, R>;\nexport function first<T, S extends T>(predicate: (value: T, index: number, source: Observable<T>) => value is S,\n                                      resultSelector: void,\n                                      defaultValue?: S): OperatorFunction<T, S>;\nexport function first<T>(predicate?: (value: T, index: number, source: Observable<T>) => boolean): MonoTypeOperatorFunction<T>;\nexport function first<T, R>(predicate: (value: T, index: number, source: Observable<T>) => boolean,\n                            resultSelector?: (value: T, index: number) => R,\n                            defaultValue?: R): OperatorFunction<T, R>;\nexport function first<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean,\n                         resultSelector: void,\n                         defaultValue?: T): MonoTypeOperatorFunction<T>;\n\n/**\n * Emits only the first value (or the first value that meets some condition)\n * emitted by the source Observable.\n *\n * <span class=\"informal\">Emits only the first value. Or emits only the first\n * value that passes some test.</span>\n *\n * <img src=\"./img/first.png\" width=\"100%\">\n *\n * If called with no arguments, `first` emits the first value of the source\n * Observable, then completes. If called with a `predicate` function, `first`\n * emits the first value of the source that matches the specified condition. It\n * may also take a `resultSelector` function to produce the output value from\n * the input value, and a `defaultValue` to emit in case the source completes\n * before it is able to emit a valid value. Throws an error if `defaultValue`\n * was not provided and a matching element is not found.\n *\n * @example <caption>Emit only the first click that happens on the DOM</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.first();\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Emits the first click that happens on a DIV</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.first(ev => ev.target.tagName === 'DIV');\n * result.subscribe(x => console.log(x));\n *\n * @see {@link filter}\n * @see {@link find}\n * @see {@link take}\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n *\n * @param {function(value: T, index: number, source: Observable<T>): boolean} [predicate]\n * An optional function called with each item to test for condition matching.\n * @param {function(value: T, index: number): R} [resultSelector] A function to\n * produce the value on the output Observable based on the values\n * and the indices of the source Observable. The arguments passed to this\n * function are:\n * - `value`: the value that was emitted on the source.\n * - `index`: the \"index\" of the value from the source.\n * @param {R} [defaultValue] The default value emitted in case no valid value\n * was found on the source.\n * @return {Observable<T|R>} An Observable of the first item that matches the\n * condition.\n * @method first\n * @owner Observable\n */\nexport function first<T, R>(predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n                            resultSelector?: ((value: T, index: number) => R) | void,\n                            defaultValue?: R): OperatorFunction<T, T | R> {\n  return (source: Observable<T>) => source.lift(new FirstOperator(predicate, resultSelector, defaultValue, source));\n}\n\nclass FirstOperator<T, R> implements Operator<T, R> {\n  constructor(private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n              private resultSelector?: ((value: T, index: number) => R) | void,\n              private defaultValue?: any,\n              private source?: Observable<T>) {\n  }\n\n  call(observer: Subscriber<R>, source: any): any {\n    return source.subscribe(new FirstSubscriber(observer, this.predicate, this.resultSelector, this.defaultValue, this.source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass FirstSubscriber<T, R> extends Subscriber<T> {\n  private index: number = 0;\n  private hasCompleted: boolean = false;\n  private _emitted: boolean = false;\n\n  constructor(destination: Subscriber<R>,\n              private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n              private resultSelector?: ((value: T, index: number) => R) | void,\n              private defaultValue?: any,\n              private source?: Observable<T>) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    const index = this.index++;\n    if (this.predicate) {\n      this._tryPredicate(value, index);\n    } else {\n      this._emit(value, index);\n    }\n  }\n\n  private _tryPredicate(value: T, index: number) {\n    let result: any;\n    try {\n      result = this.predicate(value, index, this.source);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    if (result) {\n      this._emit(value, index);\n    }\n  }\n\n  private _emit(value: any, index: number) {\n    if (this.resultSelector) {\n      this._tryResultSelector(value, index);\n      return;\n    }\n    this._emitFinal(value);\n  }\n\n  private _tryResultSelector(value: T, index: number) {\n    let result: any;\n    try {\n      result = (<any>this).resultSelector(value, index);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    this._emitFinal(result);\n  }\n\n  private _emitFinal(value: any) {\n    const destination = this.destination;\n    if (!this._emitted) {\n      this._emitted = true;\n      destination.next(value);\n      destination.complete();\n      this.hasCompleted = true;\n    }\n  }\n\n  protected _complete(): void {\n    const destination = this.destination;\n    if (!this.hasCompleted && typeof this.defaultValue !== 'undefined') {\n      destination.next(this.defaultValue);\n      destination.complete();\n    } else if (!this.hasCompleted) {\n      destination.error(new EmptyError);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/first.ts","import { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subject } from '../Subject';\nimport { Map } from '../util/Map';\nimport { FastMap } from '../util/FastMap';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function groupBy<T, K>(keySelector: (value: T) => K): OperatorFunction<T, GroupedObservable<K, T>>;\nexport function groupBy<T, K>(keySelector: (value: T) => K, elementSelector: void, durationSelector: (grouped: GroupedObservable<K, T>) => Observable<any>): OperatorFunction<T, GroupedObservable<K, T>>;\nexport function groupBy<T, K, R>(keySelector: (value: T) => K, elementSelector?: (value: T) => R, durationSelector?: (grouped: GroupedObservable<K, R>) => Observable<any>): OperatorFunction<T, GroupedObservable<K, R>>;\nexport function groupBy<T, K, R>(keySelector: (value: T) => K, elementSelector?: (value: T) => R, durationSelector?: (grouped: GroupedObservable<K, R>) => Observable<any>, subjectSelector?: () => Subject<R>): OperatorFunction<T, GroupedObservable<K, R>>;\n/* tslint:enable:max-line-length */\n\n/**\n * Groups the items emitted by an Observable according to a specified criterion,\n * and emits these grouped items as `GroupedObservables`, one\n * {@link GroupedObservable} per group.\n *\n * <img src=\"./img/groupBy.png\" width=\"100%\">\n *\n * @example <caption>Group objects by id and return as array</caption>\n * Observable.of<Obj>({id: 1, name: 'aze1'},\n *                    {id: 2, name: 'sf2'},\n *                    {id: 2, name: 'dg2'},\n *                    {id: 1, name: 'erg1'},\n *                    {id: 1, name: 'df1'},\n *                    {id: 2, name: 'sfqfb2'},\n *                    {id: 3, name: 'qfs3'},\n *                    {id: 2, name: 'qsgqsfg2'}\n *     )\n *     .groupBy(p => p.id)\n *     .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], []))\n *     .subscribe(p => console.log(p));\n *\n * // displays:\n * // [ { id: 1, name: 'aze1' },\n * //   { id: 1, name: 'erg1' },\n * //   { id: 1, name: 'df1' } ]\n * //\n * // [ { id: 2, name: 'sf2' },\n * //   { id: 2, name: 'dg2' },\n * //   { id: 2, name: 'sfqfb2' },\n * //   { id: 2, name: 'qsgqsfg2' } ]\n * //\n * // [ { id: 3, name: 'qfs3' } ]\n *\n * @example <caption>Pivot data on the id field</caption>\n * Observable.of<Obj>({id: 1, name: 'aze1'},\n *                    {id: 2, name: 'sf2'},\n *                    {id: 2, name: 'dg2'},\n *                    {id: 1, name: 'erg1'},\n *                    {id: 1, name: 'df1'},\n *                    {id: 2, name: 'sfqfb2'},\n *                    {id: 3, name: 'qfs1'},\n *                    {id: 2, name: 'qsgqsfg2'}\n *                   )\n *     .groupBy(p => p.id, p => p.name)\n *     .flatMap( (group$) => group$.reduce((acc, cur) => [...acc, cur], [\"\" + group$.key]))\n *     .map(arr => ({'id': parseInt(arr[0]), 'values': arr.slice(1)}))\n *     .subscribe(p => console.log(p));\n *\n * // displays:\n * // { id: 1, values: [ 'aze1', 'erg1', 'df1' ] }\n * // { id: 2, values: [ 'sf2', 'dg2', 'sfqfb2', 'qsgqsfg2' ] }\n * // { id: 3, values: [ 'qfs1' ] }\n *\n * @param {function(value: T): K} keySelector A function that extracts the key\n * for each item.\n * @param {function(value: T): R} [elementSelector] A function that extracts the\n * return element for each item.\n * @param {function(grouped: GroupedObservable<K,R>): Observable<any>} [durationSelector]\n * A function that returns an Observable to determine how long each group should\n * exist.\n * @return {Observable<GroupedObservable<K,R>>} An Observable that emits\n * GroupedObservables, each of which corresponds to a unique key value and each\n * of which emits those items from the source Observable that share that key\n * value.\n * @method groupBy\n * @owner Observable\n */\nexport function groupBy<T, K, R>(keySelector: (value: T) => K,\n                                 elementSelector?: ((value: T) => R) | void,\n                                 durationSelector?: (grouped: GroupedObservable<K, R>) => Observable<any>,\n                                 subjectSelector?: () => Subject<R>): OperatorFunction<T, GroupedObservable<K, R>> {\n  return (source: Observable<T>) =>\n    source.lift(new GroupByOperator(keySelector, elementSelector, durationSelector, subjectSelector));\n}\n\nexport interface RefCountSubscription {\n  count: number;\n  unsubscribe: () => void;\n  closed: boolean;\n  attemptedToUnsubscribe: boolean;\n}\n\nclass GroupByOperator<T, K, R> implements Operator<T, GroupedObservable<K, R>> {\n  constructor(private keySelector: (value: T) => K,\n              private elementSelector?: ((value: T) => R) | void,\n              private durationSelector?: (grouped: GroupedObservable<K, R>) => Observable<any>,\n              private subjectSelector?: () => Subject<R>) {\n  }\n\n  call(subscriber: Subscriber<GroupedObservable<K, R>>, source: any): any {\n    return source.subscribe(new GroupBySubscriber(\n      subscriber, this.keySelector, this.elementSelector, this.durationSelector, this.subjectSelector\n    ));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass GroupBySubscriber<T, K, R> extends Subscriber<T> implements RefCountSubscription {\n  private groups: Map<K, Subject<T|R>> = null;\n  public attemptedToUnsubscribe: boolean = false;\n  public count: number = 0;\n\n  constructor(destination: Subscriber<GroupedObservable<K, R>>,\n              private keySelector: (value: T) => K,\n              private elementSelector?: ((value: T) => R) | void,\n              private durationSelector?: (grouped: GroupedObservable<K, R>) => Observable<any>,\n              private subjectSelector?: () => Subject<R>) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    let key: K;\n    try {\n      key = this.keySelector(value);\n    } catch (err) {\n      this.error(err);\n      return;\n    }\n\n    this._group(value, key);\n  }\n\n  private _group(value: T, key: K) {\n    let groups = this.groups;\n\n    if (!groups) {\n      groups = this.groups = typeof key === 'string' ? new FastMap() : new Map();\n    }\n\n    let group = groups.get(key);\n\n    let element: R;\n    if (this.elementSelector) {\n      try {\n        element = this.elementSelector(value);\n      } catch (err) {\n        this.error(err);\n      }\n    } else {\n      element = <any>value;\n    }\n\n    if (!group) {\n      group = this.subjectSelector ? this.subjectSelector() : new Subject<R>();\n      groups.set(key, group);\n      const groupedObservable = new GroupedObservable(key, group, this);\n      this.destination.next(groupedObservable);\n      if (this.durationSelector) {\n        let duration: any;\n        try {\n          duration = this.durationSelector(new GroupedObservable<K, R>(key, <Subject<R>>group));\n        } catch (err) {\n          this.error(err);\n          return;\n        }\n        this.add(duration.subscribe(new GroupDurationSubscriber(key, group, this)));\n      }\n    }\n\n    if (!group.closed) {\n      group.next(element);\n    }\n  }\n\n  protected _error(err: any): void {\n    const groups = this.groups;\n    if (groups) {\n      groups.forEach((group, key) => {\n        group.error(err);\n      });\n\n      groups.clear();\n    }\n    this.destination.error(err);\n  }\n\n  protected _complete(): void {\n    const groups = this.groups;\n    if (groups) {\n      groups.forEach((group, key) => {\n        group.complete();\n      });\n\n      groups.clear();\n    }\n    this.destination.complete();\n  }\n\n  removeGroup(key: K): void {\n    this.groups.delete(key);\n  }\n\n  unsubscribe() {\n    if (!this.closed) {\n      this.attemptedToUnsubscribe = true;\n      if (this.count === 0) {\n        super.unsubscribe();\n      }\n    }\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass GroupDurationSubscriber<K, T> extends Subscriber<T> {\n  constructor(private key: K,\n              private group: Subject<T>,\n              private parent: GroupBySubscriber<any, K, T>) {\n    super(group);\n  }\n\n  protected _next(value: T): void {\n    this.complete();\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    const { parent, key } = this;\n    this.key = this.parent = null;\n    if (parent) {\n      parent.removeGroup(key);\n    }\n  }\n}\n\n/**\n * An Observable representing values belonging to the same group represented by\n * a common key. The values emitted by a GroupedObservable come from the source\n * Observable. The common key is available as the field `key` on a\n * GroupedObservable instance.\n *\n * @class GroupedObservable<K, T>\n */\nexport class GroupedObservable<K, T> extends Observable<T> {\n  constructor(public key: K,\n              private groupSubject: Subject<T>,\n              private refCountSubscription?: RefCountSubscription) {\n    super();\n  }\n\n  /** @deprecated internal use only */ _subscribe(subscriber: Subscriber<T>) {\n    const subscription = new Subscription();\n    const {refCountSubscription, groupSubject} = this;\n    if (refCountSubscription && !refCountSubscription.closed) {\n      subscription.add(new InnerRefCountSubscription(refCountSubscription));\n    }\n    subscription.add(groupSubject.subscribe(subscriber));\n    return subscription;\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass InnerRefCountSubscription extends Subscription {\n  constructor(private parent: RefCountSubscription) {\n    super();\n    parent.count++;\n  }\n\n  unsubscribe() {\n    const parent = this.parent;\n    if (!parent.closed && !this.closed) {\n      super.unsubscribe();\n      parent.count -= 1;\n      if (parent.count === 0 && parent.attemptedToUnsubscribe) {\n        parent.unsubscribe();\n      }\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/groupBy.ts","import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { noop } from '../util/noop';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Ignores all items emitted by the source Observable and only passes calls of `complete` or `error`.\n *\n * <img src=\"./img/ignoreElements.png\" width=\"100%\">\n *\n * @return {Observable} An empty Observable that only calls `complete`\n * or `error`, based on which one is called by the source Observable.\n * @method ignoreElements\n * @owner Observable\n */\nexport function ignoreElements<T>(): MonoTypeOperatorFunction<T> {\n  return function ignoreElementsOperatorFunction(source: Observable<T>) {\n    return source.lift(new IgnoreElementsOperator());\n  };\n}\n\nclass IgnoreElementsOperator<T, R> implements Operator<T, R> {\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new IgnoreElementsSubscriber(subscriber));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass IgnoreElementsSubscriber<T> extends Subscriber<T> {\n  protected _next(unused: T): void {\n    noop();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/ignoreElements.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { OperatorFunction } from '../interfaces';\n\nexport function isEmpty<T>(): OperatorFunction<T, boolean> {\n  return (source: Observable<T>) => source.lift(new IsEmptyOperator());\n}\n\nclass IsEmptyOperator implements Operator<any, boolean> {\n  call (observer: Subscriber<boolean>, source: any): any {\n    return source.subscribe(new IsEmptySubscriber(observer));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass IsEmptySubscriber extends Subscriber<any> {\n  constructor(destination: Subscriber<boolean>) {\n    super(destination);\n  }\n\n  private notifyComplete(isEmpty: boolean): void {\n    const destination = this.destination;\n\n    destination.next(isEmpty);\n    destination.complete();\n  }\n\n  protected _next(value: boolean) {\n    this.notifyComplete(false);\n  }\n\n  protected _complete() {\n    this.notifyComplete(true);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/isEmpty.ts","import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { EmptyError } from '../util/EmptyError';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function last<T, S extends T>(predicate: (value: T, index: number, source: Observable<T>) => value is S): OperatorFunction<T, S>;\nexport function last<T, S extends T, R>(predicate: (value: T | S, index: number, source: Observable<T>) => value is S,\n                                        resultSelector: (value: S, index: number) => R, defaultValue?: R): OperatorFunction<T, R>;\nexport function last<T, S extends T>(predicate: (value: T, index: number, source: Observable<T>) => value is S,\n                                     resultSelector: void,\n                                     defaultValue?: S): OperatorFunction<T, S>;\nexport function last<T>(predicate?: (value: T, index: number, source: Observable<T>) => boolean): MonoTypeOperatorFunction<T>;\nexport function last<T, R>(predicate: (value: T, index: number, source: Observable<T>) => boolean,\n                           resultSelector?: (value: T, index: number) => R,\n                           defaultValue?: R): OperatorFunction<T, R>;\nexport function last<T>(predicate: (value: T, index: number, source: Observable<T>) => boolean,\n                        resultSelector: void,\n                        defaultValue?: T): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits only the last item emitted by the source Observable.\n * It optionally takes a predicate function as a parameter, in which case, rather than emitting\n * the last item from the source Observable, the resulting Observable will emit the last item\n * from the source Observable that satisfies the predicate.\n *\n * <img src=\"./img/last.png\" width=\"100%\">\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * @param {function} predicate - The condition any source emitted item has to satisfy.\n * @return {Observable} An Observable that emits only the last item satisfying the given condition\n * from the source, or an NoSuchElementException if no such items are emitted.\n * @throws - Throws if no items that match the predicate are emitted by the source Observable.\n * @method last\n * @owner Observable\n */\nexport function last<T, R>(predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n                           resultSelector?: ((value: T, index: number) => R) | void,\n                           defaultValue?: R): OperatorFunction<T, T | R> {\n  return (source: Observable<T>) => source.lift(new LastOperator(predicate, resultSelector, defaultValue, source));\n}\n\nclass LastOperator<T, R> implements Operator<T, R> {\n  constructor(private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n              private resultSelector?: ((value: T, index: number) => R) | void,\n              private defaultValue?: any,\n              private source?: Observable<T>) {\n  }\n\n  call(observer: Subscriber<R>, source: any): any {\n    return source.subscribe(new LastSubscriber(observer, this.predicate, this.resultSelector, this.defaultValue, this.source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass LastSubscriber<T, R> extends Subscriber<T> {\n  private lastValue: T | R;\n  private hasValue: boolean = false;\n  private index: number = 0;\n\n  constructor(destination: Subscriber<R>,\n              private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n              private resultSelector?: ((value: T, index: number) => R) | void,\n              private defaultValue?: any,\n              private source?: Observable<T>) {\n    super(destination);\n    if (typeof defaultValue !== 'undefined') {\n      this.lastValue = defaultValue;\n      this.hasValue = true;\n    }\n  }\n\n  protected _next(value: T): void {\n    const index = this.index++;\n    if (this.predicate) {\n      this._tryPredicate(value, index);\n    } else {\n      if (this.resultSelector) {\n        this._tryResultSelector(value, index);\n        return;\n      }\n      this.lastValue = value;\n      this.hasValue = true;\n    }\n  }\n\n  private _tryPredicate(value: T, index: number) {\n    let result: any;\n    try {\n      result = this.predicate(value, index, this.source);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    if (result) {\n      if (this.resultSelector) {\n        this._tryResultSelector(value, index);\n        return;\n      }\n      this.lastValue = value;\n      this.hasValue = true;\n    }\n  }\n\n  private _tryResultSelector(value: T, index: number) {\n    let result: any;\n    try {\n      result = (<any>this).resultSelector(value, index);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    this.lastValue = result;\n    this.hasValue = true;\n  }\n\n  protected _complete(): void {\n    const destination = this.destination;\n    if (this.hasValue) {\n      destination.next(this.lastValue);\n      destination.complete();\n    } else {\n      destination.error(new EmptyError);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/last.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Applies a given `project` function to each value emitted by the source\n * Observable, and emits the resulting values as an Observable.\n *\n * <span class=\"informal\">Like [Array.prototype.map()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/map),\n * it passes each source value through a transformation function to get\n * corresponding output values.</span>\n *\n * <img src=\"./img/map.png\" width=\"100%\">\n *\n * Similar to the well known `Array.prototype.map` function, this operator\n * applies a projection to each value and emits that projection in the output\n * Observable.\n *\n * @example <caption>Map every click to the clientX position of that click</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var positions = clicks.map(ev => ev.clientX);\n * positions.subscribe(x => console.log(x));\n *\n * @see {@link mapTo}\n * @see {@link pluck}\n *\n * @param {function(value: T, index: number): R} project The function to apply\n * to each `value` emitted by the source Observable. The `index` parameter is\n * the number `i` for the i-th emission that has happened since the\n * subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to define what `this` is in the\n * `project` function.\n * @return {Observable<R>} An Observable that emits the values from the source\n * Observable transformed by the given `project` function.\n * @method map\n * @owner Observable\n */\nexport function map<T, R>(project: (value: T, index: number) => R, thisArg?: any): OperatorFunction<T, R> {\n  return function mapOperation(source: Observable<T>): Observable<R> {\n    if (typeof project !== 'function') {\n      throw new TypeError('argument is not a function. Are you looking for `mapTo()`?');\n    }\n    return source.lift(new MapOperator(project, thisArg));\n  };\n}\n\nexport class MapOperator<T, R> implements Operator<T, R> {\n  constructor(private project: (value: T, index: number) => R, private thisArg: any) {\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new MapSubscriber(subscriber, this.project, this.thisArg));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass MapSubscriber<T, R> extends Subscriber<T> {\n  count: number = 0;\n  private thisArg: any;\n\n  constructor(destination: Subscriber<R>,\n              private project: (value: T, index: number) => R,\n              thisArg: any) {\n    super(destination);\n    this.thisArg = thisArg || this;\n  }\n\n  // NOTE: This looks unoptimized, but it's actually purposefully NOT\n  // using try/catch optimizations.\n  protected _next(value: T) {\n    let result: any;\n    try {\n      result = this.project.call(this.thisArg, value, this.count++);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    this.destination.next(result);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/map.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Emits the given constant value on the output Observable every time the source\n * Observable emits a value.\n *\n * <span class=\"informal\">Like {@link map}, but it maps every source value to\n * the same output value every time.</span>\n *\n * <img src=\"./img/mapTo.png\" width=\"100%\">\n *\n * Takes a constant `value` as argument, and emits that whenever the source\n * Observable emits a value. In other words, ignores the actual source value,\n * and simply uses the emission moment to know when to emit the given `value`.\n *\n * @example <caption>Map every click to the string 'Hi'</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var greetings = clicks.mapTo('Hi');\n * greetings.subscribe(x => console.log(x));\n *\n * @see {@link map}\n *\n * @param {any} value The value to map each source value to.\n * @return {Observable} An Observable that emits the given `value` every time\n * the source Observable emits something.\n * @method mapTo\n * @owner Observable\n */\nexport function mapTo<T, R>(value: R): OperatorFunction<T, R> {\n  return (source: Observable<T>) => source.lift(new MapToOperator(value));\n}\n\nclass MapToOperator<T, R> implements Operator<T, R> {\n\n  value: R;\n\n  constructor(value: R) {\n    this.value = value;\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new MapToSubscriber(subscriber, this.value));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass MapToSubscriber<T, R> extends Subscriber<T> {\n\n  value: R;\n\n  constructor(destination: Subscriber<R>, value: R) {\n    super(destination);\n    this.value = value;\n  }\n\n  protected _next(x: T) {\n    this.destination.next(this.value);\n  }\n}\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/mapTo.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Represents all of the notifications from the source Observable as `next`\n * emissions marked with their original types within {@link Notification}\n * objects.\n *\n * <span class=\"informal\">Wraps `next`, `error` and `complete` emissions in\n * {@link Notification} objects, emitted as `next` on the output Observable.\n * </span>\n *\n * <img src=\"./img/materialize.png\" width=\"100%\">\n *\n * `materialize` returns an Observable that emits a `next` notification for each\n * `next`, `error`, or `complete` emission of the source Observable. When the\n * source Observable emits `complete`, the output Observable will emit `next` as\n * a Notification of type \"complete\", and then it will emit `complete` as well.\n * When the source Observable emits `error`, the output will emit `next` as a\n * Notification of type \"error\", and then `complete`.\n *\n * This operator is useful for producing metadata of the source Observable, to\n * be consumed as `next` emissions. Use it in conjunction with\n * {@link dematerialize}.\n *\n * @example <caption>Convert a faulty Observable to an Observable of Notifications</caption>\n * var letters = Rx.Observable.of('a', 'b', 13, 'd');\n * var upperCase = letters.map(x => x.toUpperCase());\n * var materialized = upperCase.materialize();\n * materialized.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // - Notification {kind: \"N\", value: \"A\", error: undefined, hasValue: true}\n * // - Notification {kind: \"N\", value: \"B\", error: undefined, hasValue: true}\n * // - Notification {kind: \"E\", value: undefined, error: TypeError:\n * //   x.toUpperCase is not a function at MapSubscriber.letters.map.x\n * //   [as project] (http://1…, hasValue: false}\n *\n * @see {@link Notification}\n * @see {@link dematerialize}\n *\n * @return {Observable<Notification<T>>} An Observable that emits\n * {@link Notification} objects that wrap the original emissions from the source\n * Observable with metadata.\n * @method materialize\n * @owner Observable\n */\nexport function materialize<T>(): OperatorFunction<T, Notification<T>> {\n  return function materializeOperatorFunction(source: Observable<T>) {\n    return source.lift(new MaterializeOperator());\n  };\n}\n\nclass MaterializeOperator<T> implements Operator<T, Notification<T>> {\n  call(subscriber: Subscriber<Notification<T>>, source: any): any {\n    return source.subscribe(new MaterializeSubscriber(subscriber));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass MaterializeSubscriber<T> extends Subscriber<T> {\n  constructor(destination: Subscriber<Notification<T>>) {\n    super(destination);\n  }\n\n  protected _next(value: T) {\n    this.destination.next(Notification.createNext(value));\n  }\n\n  protected _error(err: any) {\n    const destination = this.destination;\n    destination.next(Notification.createError(err));\n    destination.complete();\n  }\n\n  protected _complete() {\n    const destination = this.destination;\n    destination.next(Notification.createComplete());\n    destination.complete();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/materialize.ts","import { reduce } from './reduce';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * The Max operator operates on an Observable that emits numbers (or items that can be compared with a provided function),\n * and when source Observable completes it emits a single item: the item with the largest value.\n *\n * <img src=\"./img/max.png\" width=\"100%\">\n *\n * @example <caption>Get the maximal value of a series of numbers</caption>\n * Rx.Observable.of(5, 4, 7, 2, 8)\n *   .max()\n *   .subscribe(x => console.log(x)); // -> 8\n *\n * @example <caption>Use a comparer function to get the maximal item</caption>\n * interface Person {\n *   age: number,\n *   name: string\n * }\n * Observable.of<Person>({age: 7, name: 'Foo'},\n *                       {age: 5, name: 'Bar'},\n *                       {age: 9, name: 'Beer'})\n *           .max<Person>((a: Person, b: Person) => a.age < b.age ? -1 : 1)\n *           .subscribe((x: Person) => console.log(x.name)); // -> 'Beer'\n * }\n *\n * @see {@link min}\n *\n * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the\n * value of two items.\n * @return {Observable} An Observable that emits item with the largest value.\n * @method max\n * @owner Observable\n */\nexport function max<T>(comparer?: (x: T, y: T) => number): MonoTypeOperatorFunction<T> {\n  const max: (x: T, y: T) => T = (typeof comparer === 'function')\n    ? (x, y) => comparer(x, y) > 0 ? x : y\n    : (x, y) => x > y ? x : y;\n\n  return reduce(max);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/max.ts","import { Observable, ObservableInput } from '../Observable';\nimport { IScheduler } from '../Scheduler';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\nimport { merge as mergeStatic } from '../observable/merge';\n\nexport { merge as mergeStatic } from '../observable/merge';\n\n/* tslint:disable:max-line-length */\nexport function merge<T>(scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function merge<T>(concurrent?: number, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function merge<T, T2>(v2: ObservableInput<T2>, scheduler?: IScheduler): OperatorFunction<T, T | T2>;\nexport function merge<T, T2>(v2: ObservableInput<T2>, concurrent?: number, scheduler?: IScheduler): OperatorFunction<T, T | T2>;\nexport function merge<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3>;\nexport function merge<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, concurrent?: number, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3>;\nexport function merge<T, T2, T3, T4>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3 | T4>;\nexport function merge<T, T2, T3, T4>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, concurrent?: number, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3 | T4>;\nexport function merge<T, T2, T3, T4, T5>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3 | T4 | T5>;\nexport function merge<T, T2, T3, T4, T5>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, concurrent?: number, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3 | T4 | T5>;\nexport function merge<T, T2, T3, T4, T5, T6>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3 | T4 | T5 | T6>;\nexport function merge<T, T2, T3, T4, T5, T6>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, concurrent?: number, scheduler?: IScheduler): OperatorFunction<T, T | T2 | T3 | T4 | T5 | T6>;\nexport function merge<T>(...observables: Array<ObservableInput<T> | IScheduler | number>): MonoTypeOperatorFunction<T>;\nexport function merge<T, R>(...observables: Array<ObservableInput<any> | IScheduler | number>): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n/**\n * Creates an output Observable which concurrently emits all values from every\n * given input Observable.\n *\n * <span class=\"informal\">Flattens multiple Observables together by blending\n * their values into one Observable.</span>\n *\n * <img src=\"./img/merge.png\" width=\"100%\">\n *\n * `merge` subscribes to each given input Observable (either the source or an\n * Observable given as argument), and simply forwards (without doing any\n * transformation) all the values from all the input Observables to the output\n * Observable. The output Observable only completes once all input Observables\n * have completed. Any error delivered by an input Observable will be immediately\n * emitted on the output Observable.\n *\n * @example <caption>Merge together two Observables: 1s interval and clicks</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var timer = Rx.Observable.interval(1000);\n * var clicksOrTimer = clicks.merge(timer);\n * clicksOrTimer.subscribe(x => console.log(x));\n *\n * @example <caption>Merge together 3 Observables, but only 2 run concurrently</caption>\n * var timer1 = Rx.Observable.interval(1000).take(10);\n * var timer2 = Rx.Observable.interval(2000).take(6);\n * var timer3 = Rx.Observable.interval(500).take(10);\n * var concurrent = 2; // the argument\n * var merged = timer1.merge(timer2, timer3, concurrent);\n * merged.subscribe(x => console.log(x));\n *\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n *\n * @param {ObservableInput} other An input Observable to merge with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @param {Scheduler} [scheduler=null] The IScheduler to use for managing\n * concurrency of input Observables.\n * @return {Observable} An Observable that emits items that are the result of\n * every input Observable.\n * @method merge\n * @owner Observable\n */\nexport function merge<T, R>(...observables: Array<ObservableInput<any> | IScheduler | number>): OperatorFunction<T, R> {\n  return (source: Observable<T>) => source.lift.call(mergeStatic(source, ...observables));\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/merge.ts","\nimport { ObservableInput } from '../Observable';\nimport { mergeMap } from './mergeMap';\nimport { identity } from '../util/identity';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Converts a higher-order Observable into a first-order Observable which\n * concurrently delivers all values that are emitted on the inner Observables.\n *\n * <span class=\"informal\">Flattens an Observable-of-Observables.</span>\n *\n * <img src=\"./img/mergeAll.png\" width=\"100%\">\n *\n * `mergeAll` subscribes to an Observable that emits Observables, also known as\n * a higher-order Observable. Each time it observes one of these emitted inner\n * Observables, it subscribes to that and delivers all the values from the\n * inner Observable on the output Observable. The output Observable only\n * completes once all inner Observables have completed. Any error delivered by\n * a inner Observable will be immediately emitted on the output Observable.\n *\n * @example <caption>Spawn a new interval Observable for each click event, and blend their outputs as one Observable</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000));\n * var firstOrder = higherOrder.mergeAll();\n * firstOrder.subscribe(x => console.log(x));\n *\n * @example <caption>Count from 0 to 9 every second for each click, but only allow 2 concurrent timers</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var higherOrder = clicks.map((ev) => Rx.Observable.interval(1000).take(10));\n * var firstOrder = higherOrder.mergeAll(2);\n * firstOrder.subscribe(x => console.log(x));\n *\n * @see {@link combineAll}\n * @see {@link concatAll}\n * @see {@link exhaust}\n * @see {@link merge}\n * @see {@link mergeMap}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switch}\n * @see {@link zipAll}\n *\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of inner\n * Observables being subscribed to concurrently.\n * @return {Observable} An Observable that emits values coming from all the\n * inner Observables emitted by the source Observable.\n * @method mergeAll\n * @owner Observable\n */\nexport function mergeAll<T>(concurrent: number = Number.POSITIVE_INFINITY): MonoTypeOperatorFunction<T> {\n  return mergeMap(identity as (value: T, index: number) => ObservableInput<{}>, null, concurrent);\n}\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/mergeAll.ts","import { Observable, ObservableInput } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function mergeMap<T, R>(project: (value: T, index: number) => ObservableInput<R>, concurrent?: number): OperatorFunction<T, R>;\nexport function mergeMap<T, I, R>(project: (value: T, index: number) => ObservableInput<I>, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link mergeAll}.</span>\n *\n * <img src=\"./img/mergeMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an Observable, and then merging those resulting Observables and\n * emitting the results of this merger.\n *\n * @example <caption>Map and flatten each letter to an Observable ticking every 1 second</caption>\n * var letters = Rx.Observable.of('a', 'b', 'c');\n * var result = letters.mergeMap(x =>\n *   Rx.Observable.interval(1000).map(i => x+i)\n * );\n * result.subscribe(x => console.log(x));\n *\n * // Results in the following:\n * // a0\n * // b0\n * // c0\n * // a1\n * // b1\n * // c1\n * // continues to list a,b,c with respective ascending integers\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMapTo}\n * @see {@link mergeScan}\n * @see {@link switchMap}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return {Observable} An Observable that emits the result of applying the\n * projection function (and the optional `resultSelector`) to each item emitted\n * by the source Observable and merging the results of the Observables obtained\n * from this transformation.\n * @method mergeMap\n * @owner Observable\n */\nexport function mergeMap<T, I, R>(project: (value: T, index: number) => ObservableInput<I>,\n                                  resultSelector?: ((outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) | number,\n                                  concurrent: number = Number.POSITIVE_INFINITY): OperatorFunction<T, I|R> {\n  return function mergeMapOperatorFunction(source: Observable<T>) {\n    if (typeof resultSelector === 'number') {\n      concurrent = <number>resultSelector;\n      resultSelector = null;\n    }\n    return source.lift(new MergeMapOperator(project, <any>resultSelector, concurrent));\n  };\n}\n\nexport class MergeMapOperator<T, I, R> implements Operator<T, I> {\n  constructor(private project: (value: T, index: number) => ObservableInput<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R,\n              private concurrent: number = Number.POSITIVE_INFINITY) {\n  }\n\n  call(observer: Subscriber<I>, source: any): any {\n    return source.subscribe(new MergeMapSubscriber(\n      observer, this.project, this.resultSelector, this.concurrent\n    ));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class MergeMapSubscriber<T, I, R> extends OuterSubscriber<T, I> {\n  private hasCompleted: boolean = false;\n  private buffer: T[] = [];\n  private active: number = 0;\n  protected index: number = 0;\n\n  constructor(destination: Subscriber<I>,\n              private project: (value: T, index: number) => ObservableInput<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R,\n              private concurrent: number = Number.POSITIVE_INFINITY) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    if (this.active < this.concurrent) {\n      this._tryNext(value);\n    } else {\n      this.buffer.push(value);\n    }\n  }\n\n  protected _tryNext(value: T) {\n    let result: ObservableInput<I>;\n    const index = this.index++;\n    try {\n      result = this.project(value, index);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    this.active++;\n    this._innerSub(result, value, index);\n  }\n\n  private _innerSub(ish: ObservableInput<I>, value: T, index: number): void {\n    this.add(subscribeToResult<T, I>(this, ish, value, index));\n  }\n\n  protected _complete(): void {\n    this.hasCompleted = true;\n    if (this.active === 0 && this.buffer.length === 0) {\n      this.destination.complete();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: I,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, I>): void {\n    if (this.resultSelector) {\n      this._notifyResultSelector(outerValue, innerValue, outerIndex, innerIndex);\n    } else {\n      this.destination.next(innerValue);\n    }\n  }\n\n  private _notifyResultSelector(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) {\n    let result: R;\n    try {\n      result = this.resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    this.destination.next(result);\n  }\n\n  notifyComplete(innerSub: Subscription): void {\n    const buffer = this.buffer;\n    this.remove(innerSub);\n    this.active--;\n    if (buffer.length > 0) {\n      this._next(buffer.shift());\n    } else if (this.active === 0 && this.hasCompleted) {\n      this.destination.complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/mergeMap.ts","import { Observable, ObservableInput } from '../Observable';\nimport { Operator } from '../Operator';\nimport { PartialObserver } from '../Observer';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function mergeMapTo<T, R>(observable: ObservableInput<R>, concurrent?: number): OperatorFunction<T, R>;\nexport function mergeMapTo<T, I, R>(observable: ObservableInput<I>, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R, concurrent?: number): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to the same Observable which is merged multiple\n * times in the output Observable.\n *\n * <span class=\"informal\">It's like {@link mergeMap}, but maps each value always\n * to the same inner Observable.</span>\n *\n * <img src=\"./img/mergeMapTo.png\" width=\"100%\">\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then merges those resulting Observables into one\n * single Observable, which is the output Observable.\n *\n * @example <caption>For each click event, start an interval Observable ticking every 1 second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.mergeMapTo(Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMapTo}\n * @see {@link merge}\n * @see {@link mergeAll}\n * @see {@link mergeMap}\n * @see {@link mergeScan}\n * @see {@link switchMapTo}\n *\n * @param {ObservableInput} innerObservable An Observable to replace each value from\n * the source Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of input\n * Observables being subscribed to concurrently.\n * @return {Observable} An Observable that emits items from the given\n * `innerObservable` (and optionally transformed through `resultSelector`) every\n * time a value is emitted on the source Observable.\n * @method mergeMapTo\n * @owner Observable\n */\nexport function mergeMapTo<T, I, R>(innerObservable: Observable<I>,\n                                    resultSelector?: ((outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) | number,\n                                    concurrent: number = Number.POSITIVE_INFINITY): OperatorFunction<T, R> {\n  if (typeof resultSelector === 'number') {\n    concurrent = <number>resultSelector;\n    resultSelector = null;\n  }\n  return (source: Observable<T>) => source.lift(new MergeMapToOperator(innerObservable, <any>resultSelector, concurrent));\n}\n\n// TODO: Figure out correct signature here: an Operator<Observable<T>, R>\n//       needs to implement call(observer: Subscriber<R>): Subscriber<Observable<T>>\nexport class MergeMapToOperator<T, I, R> implements Operator<Observable<T>, R> {\n  constructor(private ish: ObservableInput<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R,\n              private concurrent: number = Number.POSITIVE_INFINITY) {\n  }\n\n  call(observer: Subscriber<R>, source: any): any {\n    return source.subscribe(new MergeMapToSubscriber(observer, this.ish, this.resultSelector, this.concurrent));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class MergeMapToSubscriber<T, I, R> extends OuterSubscriber<T, I> {\n  private hasCompleted: boolean = false;\n  private buffer: T[] = [];\n  private active: number = 0;\n  protected index: number = 0;\n\n  constructor(destination: Subscriber<R>,\n              private ish: ObservableInput<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R,\n              private concurrent: number = Number.POSITIVE_INFINITY) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    if (this.active < this.concurrent) {\n      const resultSelector = this.resultSelector;\n      const index = this.index++;\n      const ish = this.ish;\n      const destination = this.destination;\n\n      this.active++;\n      this._innerSub(ish, destination, resultSelector, value, index);\n    } else {\n      this.buffer.push(value);\n    }\n  }\n\n  private _innerSub(ish: ObservableInput<I>,\n                    destination: PartialObserver<I>,\n                    resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R,\n                    value: T,\n                    index: number): void {\n    this.add(subscribeToResult<T, I>(this, ish, value, index));\n  }\n\n  protected _complete(): void {\n    this.hasCompleted = true;\n    if (this.active === 0 && this.buffer.length === 0) {\n      this.destination.complete();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: I,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, I>): void {\n    const { resultSelector, destination } = this;\n    if (resultSelector) {\n      this.trySelectResult(outerValue, innerValue, outerIndex, innerIndex);\n    } else {\n      destination.next(innerValue);\n    }\n  }\n\n  private trySelectResult(outerValue: T, innerValue: I,\n                          outerIndex: number, innerIndex: number): void {\n    const { resultSelector, destination } = this;\n    let result: R;\n    try {\n      result = resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n    } catch (err) {\n      destination.error(err);\n      return;\n    }\n\n    destination.next(result);\n  }\n\n  notifyError(err: any): void {\n    this.destination.error(err);\n  }\n\n  notifyComplete(innerSub: Subscription): void {\n    const buffer = this.buffer;\n    this.remove(innerSub);\n    this.active--;\n    if (buffer.length > 0) {\n      this._next(buffer.shift());\n    } else if (this.active === 0 && this.hasCompleted) {\n      this.destination.complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/mergeMapTo.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Applies an accumulator function over the source Observable where the\n * accumulator function itself returns an Observable, then each intermediate\n * Observable returned is merged into the output Observable.\n *\n * <span class=\"informal\">It's like {@link scan}, but the Observables returned\n * by the accumulator are merged into the outer Observable.</span>\n *\n * @example <caption>Count the number of click events</caption>\n * const click$ = Rx.Observable.fromEvent(document, 'click');\n * const one$ = click$.mapTo(1);\n * const seed = 0;\n * const count$ = one$.mergeScan((acc, one) => Rx.Observable.of(acc + one), seed);\n * count$.subscribe(x => console.log(x));\n *\n * // Results:\n * 1\n * 2\n * 3\n * 4\n * // ...and so on for each click\n *\n * @param {function(acc: R, value: T): Observable<R>} accumulator\n * The accumulator function called on each source value.\n * @param seed The initial accumulation value.\n * @param {number} [concurrent=Number.POSITIVE_INFINITY] Maximum number of\n * input Observables being subscribed to concurrently.\n * @return {Observable<R>} An observable of the accumulated values.\n * @method mergeScan\n * @owner Observable\n */\nexport function mergeScan<T, R>(accumulator: (acc: R, value: T) => Observable<R>,\n                                seed: R,\n                                concurrent: number = Number.POSITIVE_INFINITY): OperatorFunction<T, R> {\n  return (source: Observable<T>) => source.lift(new MergeScanOperator(accumulator, seed, concurrent));\n}\n\nexport class MergeScanOperator<T, R> implements Operator<T, R> {\n  constructor(private accumulator: (acc: R, value: T) => Observable<R>,\n              private seed: R,\n              private concurrent: number) {\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new MergeScanSubscriber(\n      subscriber, this.accumulator, this.seed, this.concurrent\n    ));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class MergeScanSubscriber<T, R> extends OuterSubscriber<T, R> {\n  private hasValue: boolean = false;\n  private hasCompleted: boolean = false;\n  private buffer: Observable<any>[] = [];\n  private active: number = 0;\n  protected index: number = 0;\n\n  constructor(destination: Subscriber<R>,\n              private accumulator: (acc: R, value: T) => Observable<R>,\n              private acc: R,\n              private concurrent: number) {\n    super(destination);\n  }\n\n  protected _next(value: any): void {\n    if (this.active < this.concurrent) {\n      const index = this.index++;\n      const ish = tryCatch(this.accumulator)(this.acc, value);\n      const destination = this.destination;\n      if (ish === errorObject) {\n        destination.error(errorObject.e);\n      } else {\n        this.active++;\n        this._innerSub(ish, value, index);\n      }\n    } else {\n      this.buffer.push(value);\n    }\n  }\n\n  private _innerSub(ish: any, value: T, index: number): void {\n    this.add(subscribeToResult<T, R>(this, ish, value, index));\n  }\n\n  protected _complete(): void {\n    this.hasCompleted = true;\n    if (this.active === 0 && this.buffer.length === 0) {\n      if (this.hasValue === false) {\n        this.destination.next(this.acc);\n      }\n      this.destination.complete();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    const { destination } = this;\n    this.acc = innerValue;\n    this.hasValue = true;\n    destination.next(innerValue);\n  }\n\n  notifyComplete(innerSub: Subscription): void {\n    const buffer = this.buffer;\n    this.remove(innerSub);\n    this.active--;\n    if (buffer.length > 0) {\n      this._next(buffer.shift());\n    } else if (this.active === 0 && this.hasCompleted) {\n      if (this.hasValue === false) {\n        this.destination.next(this.acc);\n      }\n      this.destination.complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/mergeScan.ts","import { reduce } from './reduce';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * The Min operator operates on an Observable that emits numbers (or items that can be compared with a provided function),\n * and when source Observable completes it emits a single item: the item with the smallest value.\n *\n * <img src=\"./img/min.png\" width=\"100%\">\n *\n * @example <caption>Get the minimal value of a series of numbers</caption>\n * Rx.Observable.of(5, 4, 7, 2, 8)\n *   .min()\n *   .subscribe(x => console.log(x)); // -> 2\n *\n * @example <caption>Use a comparer function to get the minimal item</caption>\n * interface Person {\n *   age: number,\n *   name: string\n * }\n * Observable.of<Person>({age: 7, name: 'Foo'},\n *                       {age: 5, name: 'Bar'},\n *                       {age: 9, name: 'Beer'})\n *           .min<Person>( (a: Person, b: Person) => a.age < b.age ? -1 : 1)\n *           .subscribe((x: Person) => console.log(x.name)); // -> 'Bar'\n * }\n *\n * @see {@link max}\n *\n * @param {Function} [comparer] - Optional comparer function that it will use instead of its default to compare the\n * value of two items.\n * @return {Observable<R>} An Observable that emits item with the smallest value.\n * @method min\n * @owner Observable\n */\nexport function min<T>(comparer?: (x: T, y: T) => number): MonoTypeOperatorFunction<T> {\n  const min: (x: T, y: T) => T = (typeof comparer === 'function')\n    ? (x, y) => comparer(x, y) < 0 ? x : y\n    : (x, y) => x < y ? x : y;\n  return reduce(min);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/min.ts","import { Subject } from '../Subject';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { ConnectableObservable, connectableObservableDescriptor } from '../observable/ConnectableObservable';\nimport { FactoryOrValue, MonoTypeOperatorFunction, OperatorFunction, UnaryFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function multicast<T>(subjectOrSubjectFactory: FactoryOrValue<Subject<T>>): UnaryFunction<Observable<T>, ConnectableObservable<T>>;\nexport function multicast<T>(SubjectFactory: (this: Observable<T>) => Subject<T>, selector?: MonoTypeOperatorFunction<T>): MonoTypeOperatorFunction<T>;\nexport function multicast<T, R>(SubjectFactory: (this: Observable<T>) => Subject<T>, selector?: OperatorFunction<T, R>): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits the results of invoking a specified selector on items\n * emitted by a ConnectableObservable that shares a single subscription to the underlying stream.\n *\n * <img src=\"./img/multicast.png\" width=\"100%\">\n *\n * @param {Function|Subject} subjectOrSubjectFactory - Factory function to create an intermediate subject through\n * which the source sequence's elements will be multicast to the selector function\n * or Subject to push source elements into.\n * @param {Function} [selector] - Optional selector function that can use the multicasted source stream\n * as many times as needed, without causing multiple subscriptions to the source stream.\n * Subscribers to the given source will receive all notifications of the source from the\n * time of the subscription forward.\n * @return {Observable} An Observable that emits the results of invoking the selector\n * on the items emitted by a `ConnectableObservable` that shares a single subscription to\n * the underlying stream.\n * @method multicast\n * @owner Observable\n */\nexport function multicast<T, R>(subjectOrSubjectFactory: Subject<T> | (() => Subject<T>),\n                                selector?: (source: Observable<T>) => Observable<R>): OperatorFunction<T, R> {\n  return function multicastOperatorFunction(source: Observable<T>): Observable<R> {\n    let subjectFactory: () => Subject<T>;\n    if (typeof subjectOrSubjectFactory === 'function') {\n      subjectFactory = <() => Subject<T>>subjectOrSubjectFactory;\n    } else {\n      subjectFactory = function subjectFactory() {\n        return <Subject<T>>subjectOrSubjectFactory;\n      };\n    }\n\n    if (typeof selector === 'function') {\n      return source.lift(new MulticastOperator(subjectFactory, selector));\n    }\n\n    const connectable: any = Object.create(source, connectableObservableDescriptor);\n    connectable.source = source;\n    connectable.subjectFactory = subjectFactory;\n\n    return <ConnectableObservable<R>> connectable;\n  };\n}\n\nexport class MulticastOperator<T, R> implements Operator<T, R> {\n  constructor(private subjectFactory: () => Subject<T>,\n              private selector: (source: Observable<T>) => Observable<R>) {\n  }\n  call(subscriber: Subscriber<R>, source: any): any {\n    const { selector } = this;\n    const subject = this.subjectFactory();\n    const subscription = selector(subject).subscribe(subscriber);\n    subscription.add(source.subscribe(subject));\n    return subscription;\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/multicast.ts","import { Observable } from '../Observable';\nimport { IScheduler } from '../Scheduler';\nimport { Operator } from '../Operator';\nimport { PartialObserver } from '../Observer';\nimport { Subscriber } from '../Subscriber';\nimport { Notification } from '../Notification';\nimport { TeardownLogic } from '../Subscription';\nimport { Action } from '../scheduler/Action';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n *\n * Re-emits all notifications from source Observable with specified scheduler.\n *\n * <span class=\"informal\">Ensure a specific scheduler is used, from outside of an Observable.</span>\n *\n * `observeOn` is an operator that accepts a scheduler as a first parameter, which will be used to reschedule\n * notifications emitted by the source Observable. It might be useful, if you do not have control over\n * internal scheduler of a given Observable, but want to control when its values are emitted nevertheless.\n *\n * Returned Observable emits the same notifications (nexted values, complete and error events) as the source Observable,\n * but rescheduled with provided scheduler. Note that this doesn't mean that source Observables internal\n * scheduler will be replaced in any way. Original scheduler still will be used, but when the source Observable emits\n * notification, it will be immediately scheduled again - this time with scheduler passed to `observeOn`.\n * An anti-pattern would be calling `observeOn` on Observable that emits lots of values synchronously, to split\n * that emissions into asynchronous chunks. For this to happen, scheduler would have to be passed into the source\n * Observable directly (usually into the operator that creates it). `observeOn` simply delays notifications a\n * little bit more, to ensure that they are emitted at expected moments.\n *\n * As a matter of fact, `observeOn` accepts second parameter, which specifies in milliseconds with what delay notifications\n * will be emitted. The main difference between {@link delay} operator and `observeOn` is that `observeOn`\n * will delay all notifications - including error notifications - while `delay` will pass through error\n * from source Observable immediately when it is emitted. In general it is highly recommended to use `delay` operator\n * for any kind of delaying of values in the stream, while using `observeOn` to specify which scheduler should be used\n * for notification emissions in general.\n *\n * @example <caption>Ensure values in subscribe are called just before browser repaint.</caption>\n * const intervals = Rx.Observable.interval(10); // Intervals are scheduled\n *                                               // with async scheduler by default...\n *\n * intervals\n * .observeOn(Rx.Scheduler.animationFrame)       // ...but we will observe on animationFrame\n * .subscribe(val => {                           // scheduler to ensure smooth animation.\n *   someDiv.style.height = val + 'px';\n * });\n *\n * @see {@link delay}\n *\n * @param {IScheduler} scheduler Scheduler that will be used to reschedule notifications from source Observable.\n * @param {number} [delay] Number of milliseconds that states with what delay every notification should be rescheduled.\n * @return {Observable<T>} Observable that emits the same notifications as the source Observable,\n * but with provided scheduler.\n *\n * @method observeOn\n * @owner Observable\n */\nexport function observeOn<T>(scheduler: IScheduler, delay: number = 0): MonoTypeOperatorFunction<T> {\n  return function observeOnOperatorFunction(source: Observable<T>): Observable<T> {\n    return source.lift(new ObserveOnOperator(scheduler, delay));\n  };\n}\n\nexport class ObserveOnOperator<T> implements Operator<T, T> {\n  constructor(private scheduler: IScheduler, private delay: number = 0) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new ObserveOnSubscriber(subscriber, this.scheduler, this.delay));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class ObserveOnSubscriber<T> extends Subscriber<T> {\n  static dispatch(this: Action<ObserveOnMessage>, arg: ObserveOnMessage) {\n    const { notification, destination } = arg;\n    notification.observe(destination);\n    this.unsubscribe();\n  }\n\n  constructor(destination: Subscriber<T>,\n              private scheduler: IScheduler,\n              private delay: number = 0) {\n    super(destination);\n  }\n\n  private scheduleMessage(notification: Notification<any>): void {\n    this.add(this.scheduler.schedule(\n      ObserveOnSubscriber.dispatch,\n      this.delay,\n      new ObserveOnMessage(notification, this.destination)\n    ));\n  }\n\n  protected _next(value: T): void {\n    this.scheduleMessage(Notification.createNext(value));\n  }\n\n  protected _error(err: any): void {\n    this.scheduleMessage(Notification.createError(err));\n  }\n\n  protected _complete(): void {\n    this.scheduleMessage(Notification.createComplete());\n  }\n}\n\nexport class ObserveOnMessage {\n  constructor(public notification: Notification<any>,\n              public destination: PartialObserver<any>) {\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/observeOn.ts","import { Observable, ObservableInput } from '../Observable';\nimport { FromObservable } from '../observable/FromObservable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { isArray } from '../util/isArray';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function onErrorResumeNext<T, R>(v: ObservableInput<R>): OperatorFunction<T, R>;\nexport function onErrorResumeNext<T, T2, T3, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>): OperatorFunction<T, R>;\nexport function onErrorResumeNext<T, T2, T3, T4, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>): OperatorFunction<T, R>;\nexport function onErrorResumeNext<T, T2, T3, T4, T5, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>): OperatorFunction<T, R>;\nexport function onErrorResumeNext<T, T2, T3, T4, T5, T6, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>): OperatorFunction<T, R> ;\nexport function onErrorResumeNext<T, R>(...observables: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): OperatorFunction<T, R>;\nexport function onErrorResumeNext<T, R>(array: ObservableInput<any>[]): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * When any of the provided Observable emits an complete or error notification, it immediately subscribes to the next one\n * that was passed.\n *\n * <span class=\"informal\">Execute series of Observables no matter what, even if it means swallowing errors.</span>\n *\n * <img src=\"./img/onErrorResumeNext.png\" width=\"100%\">\n *\n * `onErrorResumeNext` is an operator that accepts a series of Observables, provided either directly as\n * arguments or as an array. If no single Observable is provided, returned Observable will simply behave the same\n * as the source.\n *\n * `onErrorResumeNext` returns an Observable that starts by subscribing and re-emitting values from the source Observable.\n * When its stream of values ends - no matter if Observable completed or emitted an error - `onErrorResumeNext`\n * will subscribe to the first Observable that was passed as an argument to the method. It will start re-emitting\n * its values as well and - again - when that stream ends, `onErrorResumeNext` will proceed to subscribing yet another\n * Observable in provided series, no matter if previous Observable completed or ended with an error. This will\n * be happening until there is no more Observables left in the series, at which point returned Observable will\n * complete - even if the last subscribed stream ended with an error.\n *\n * `onErrorResumeNext` can be therefore thought of as version of {@link concat} operator, which is more permissive\n * when it comes to the errors emitted by its input Observables. While `concat` subscribes to the next Observable\n * in series only if previous one successfully completed, `onErrorResumeNext` subscribes even if it ended with\n * an error.\n *\n * Note that you do not get any access to errors emitted by the Observables. In particular do not\n * expect these errors to appear in error callback passed to {@link subscribe}. If you want to take\n * specific actions based on what error was emitted by an Observable, you should try out {@link catch} instead.\n *\n *\n * @example <caption>Subscribe to the next Observable after map fails</caption>\n * Rx.Observable.of(1, 2, 3, 0)\n *   .map(x => {\n *       if (x === 0) { throw Error(); }\n         return 10 / x;\n *   })\n *   .onErrorResumeNext(Rx.Observable.of(1, 2, 3))\n *   .subscribe(\n *     val => console.log(val),\n *     err => console.log(err),          // Will never be called.\n *     () => console.log('that\\'s it!')\n *   );\n *\n * // Logs:\n * // 10\n * // 5\n * // 3.3333333333333335\n * // 1\n * // 2\n * // 3\n * // \"that's it!\"\n *\n * @see {@link concat}\n * @see {@link catch}\n *\n * @param {...ObservableInput} observables Observables passed either directly or as an array.\n * @return {Observable} An Observable that emits values from source Observable, but - if it errors - subscribes\n * to the next passed Observable and so on, until it completes or runs out of Observables.\n * @method onErrorResumeNext\n * @owner Observable\n */\n\nexport function onErrorResumeNext<T, R>(...nextSources: Array<ObservableInput<any> |\n                                                       Array<ObservableInput<any>> |\n                                                       ((...values: Array<any>) => R)>): OperatorFunction<T, R> {\n  if (nextSources.length === 1 && isArray(nextSources[0])) {\n    nextSources = <Array<Observable<any>>>nextSources[0];\n  }\n\n  return (source: Observable<T>) => source.lift(new OnErrorResumeNextOperator<T, R>(nextSources));\n}\n\n/* tslint:disable:max-line-length */\nexport function onErrorResumeNextStatic<R>(v: ObservableInput<R>): Observable<R>;\nexport function onErrorResumeNextStatic<T2, T3, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>): Observable<R>;\nexport function onErrorResumeNextStatic<T2, T3, T4, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>): Observable<R>;\nexport function onErrorResumeNextStatic<T2, T3, T4, T5, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>): Observable<R>;\nexport function onErrorResumeNextStatic<T2, T3, T4, T5, T6, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>): Observable<R>;\n\nexport function onErrorResumeNextStatic<R>(...observables: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): Observable<R>;\nexport function onErrorResumeNextStatic<R>(array: ObservableInput<any>[]): Observable<R>;\n/* tslint:enable:max-line-length */\n\nexport function onErrorResumeNextStatic<T, R>(...nextSources: Array<ObservableInput<any> |\n                                                              Array<ObservableInput<any>> |\n                                                              ((...values: Array<any>) => R)>): Observable<R> {\n  let source: ObservableInput<any> = null;\n\n  if (nextSources.length === 1 && isArray(nextSources[0])) {\n    nextSources = <Array<ObservableInput<any>>>nextSources[0];\n  }\n  source = nextSources.shift();\n\n  return new FromObservable(source, null).lift(new OnErrorResumeNextOperator<T, R>(nextSources));\n}\n\nclass OnErrorResumeNextOperator<T, R> implements Operator<T, R> {\n  constructor(private nextSources: Array<ObservableInput<any>>) {\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new OnErrorResumeNextSubscriber(subscriber, this.nextSources));\n  }\n}\n\nclass OnErrorResumeNextSubscriber<T, R> extends OuterSubscriber<T, R> {\n  constructor(protected destination: Subscriber<T>,\n              private nextSources: Array<ObservableInput<any>>) {\n    super(destination);\n  }\n\n  notifyError(error: any, innerSub: InnerSubscriber<T, any>): void {\n    this.subscribeToNextSource();\n  }\n\n  notifyComplete(innerSub: InnerSubscriber<T, any>): void {\n    this.subscribeToNextSource();\n  }\n\n  protected _error(err: any): void {\n    this.subscribeToNextSource();\n  }\n\n  protected _complete(): void {\n    this.subscribeToNextSource();\n  }\n\n  private subscribeToNextSource(): void {\n    const next = this.nextSources.shift();\n    if (next) {\n      this.add(subscribeToResult(this, next));\n    } else {\n      this.destination.complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/onErrorResumeNext.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Groups pairs of consecutive emissions together and emits them as an array of\n * two values.\n *\n * <span class=\"informal\">Puts the current value and previous value together as\n * an array, and emits that.</span>\n *\n * <img src=\"./img/pairwise.png\" width=\"100%\">\n *\n * The Nth emission from the source Observable will cause the output Observable\n * to emit an array [(N-1)th, Nth] of the previous and the current value, as a\n * pair. For this reason, `pairwise` emits on the second and subsequent\n * emissions from the source Observable, but not on the first emission, because\n * there is no previous value in that case.\n *\n * @example <caption>On every click (starting from the second), emit the relative distance to the previous click</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var pairs = clicks.pairwise();\n * var distance = pairs.map(pair => {\n *   var x0 = pair[0].clientX;\n *   var y0 = pair[0].clientY;\n *   var x1 = pair[1].clientX;\n *   var y1 = pair[1].clientY;\n *   return Math.sqrt(Math.pow(x0 - x1, 2) + Math.pow(y0 - y1, 2));\n * });\n * distance.subscribe(x => console.log(x));\n *\n * @see {@link buffer}\n * @see {@link bufferCount}\n *\n * @return {Observable<Array<T>>} An Observable of pairs (as arrays) of\n * consecutive values from the source Observable.\n * @method pairwise\n * @owner Observable\n */\nexport function pairwise<T>(): OperatorFunction<T, [T, T]> {\n  return (source: Observable<T>) => source.lift(new PairwiseOperator());\n}\n\nclass PairwiseOperator<T> implements Operator<T, [T, T]> {\n  call(subscriber: Subscriber<[T, T]>, source: any): any {\n    return source.subscribe(new PairwiseSubscriber(subscriber));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass PairwiseSubscriber<T> extends Subscriber<T> {\n  private prev: T;\n  private hasPrev: boolean = false;\n\n  constructor(destination: Subscriber<[T, T]>) {\n    super(destination);\n  }\n\n  _next(value: T): void {\n    if (this.hasPrev) {\n      this.destination.next([this.prev, value]);\n    } else {\n      this.hasPrev = true;\n    }\n\n    this.prev = value;\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/pairwise.ts","import { not } from '../util/not';\nimport { filter } from './filter';\nimport { Observable } from '../Observable';\nimport { UnaryFunction } from '../interfaces';\n\n/**\n * Splits the source Observable into two, one with values that satisfy a\n * predicate, and another with values that don't satisfy the predicate.\n *\n * <span class=\"informal\">It's like {@link filter}, but returns two Observables:\n * one like the output of {@link filter}, and the other with values that did not\n * pass the condition.</span>\n *\n * <img src=\"./img/partition.png\" width=\"100%\">\n *\n * `partition` outputs an array with two Observables that partition the values\n * from the source Observable through the given `predicate` function. The first\n * Observable in that array emits source values for which the predicate argument\n * returns true. The second Observable emits source values for which the\n * predicate returns false. The first behaves like {@link filter} and the second\n * behaves like {@link filter} with the predicate negated.\n *\n * @example <caption>Partition click events into those on DIV elements and those elsewhere</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var parts = clicks.partition(ev => ev.target.tagName === 'DIV');\n * var clicksOnDivs = parts[0];\n * var clicksElsewhere = parts[1];\n * clicksOnDivs.subscribe(x => console.log('DIV clicked: ', x));\n * clicksElsewhere.subscribe(x => console.log('Other clicked: ', x));\n *\n * @see {@link filter}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates each value emitted by the source Observable. If it returns `true`,\n * the value is emitted on the first Observable in the returned array, if\n * `false` the value is emitted on the second Observable in the array. The\n * `index` parameter is the number `i` for the i-th source emission that has\n * happened since the subscription, starting from the number `0`.\n * @param {any} [thisArg] An optional argument to determine the value of `this`\n * in the `predicate` function.\n * @return {[Observable<T>, Observable<T>]} An array with two Observables: one\n * with values that passed the predicate, and another with values that did not\n * pass the predicate.\n * @method partition\n * @owner Observable\n */\nexport function partition<T>(predicate: (value: T, index: number) => boolean,\n                             thisArg?: any): UnaryFunction<Observable<T>, [Observable<T>, Observable<T>]> {\n  return (source: Observable<T>) => [\n    filter(predicate, thisArg)(source),\n    filter(not(predicate, thisArg) as any)(source)\n  ] as [Observable<T>, Observable<T>];\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/partition.ts","import { Observable } from '../Observable';\nimport { map } from './map';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Maps each source value (an object) to its specified nested property.\n *\n * <span class=\"informal\">Like {@link map}, but meant only for picking one of\n * the nested properties of every emitted object.</span>\n *\n * <img src=\"./img/pluck.png\" width=\"100%\">\n *\n * Given a list of strings describing a path to an object property, retrieves\n * the value of a specified nested property from all values in the source\n * Observable. If a property can't be resolved, it will return `undefined` for\n * that value.\n *\n * @example <caption>Map every click to the tagName of the clicked target element</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var tagNames = clicks.pluck('target', 'tagName');\n * tagNames.subscribe(x => console.log(x));\n *\n * @see {@link map}\n *\n * @param {...string} properties The nested properties to pluck from each source\n * value (an object).\n * @return {Observable} A new Observable of property values from the source values.\n * @method pluck\n * @owner Observable\n */\nexport function pluck<T, R>(...properties: string[]): OperatorFunction<T, R> {\n  const length = properties.length;\n  if (length === 0) {\n    throw new Error('list of properties cannot be empty.');\n  }\n  return (source: Observable<T>) => map(plucker(properties, length))(source as any);\n}\n\nfunction plucker(props: string[], length: number): (x: string) => any {\n  const mapper = (x: string) => {\n    let currentProp = x;\n    for (let i = 0; i < length; i++) {\n      const p = currentProp[props[i]];\n      if (typeof p !== 'undefined') {\n        currentProp = p;\n      } else {\n        return undefined;\n      }\n    }\n    return currentProp;\n  };\n\n  return mapper;\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/pluck.ts","import { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nimport { multicast } from './multicast';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { MonoTypeOperatorFunction, OperatorFunction, UnaryFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function publish<T>(): UnaryFunction<Observable<T>, ConnectableObservable<T>>;\nexport function publish<T>(selector: MonoTypeOperatorFunction<T>): MonoTypeOperatorFunction<T>;\nexport function publish<T, R>(selector: OperatorFunction<T, R>): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns a ConnectableObservable, which is a variety of Observable that waits until its connect method is called\n * before it begins emitting items to those Observers that have subscribed to it.\n *\n * <img src=\"./img/publish.png\" width=\"100%\">\n *\n * @param {Function} [selector] - Optional selector function which can use the multicasted source sequence as many times\n * as needed, without causing multiple subscriptions to the source sequence.\n * Subscribers to the given source will receive all notifications of the source from the time of the subscription on.\n * @return A ConnectableObservable that upon connection causes the source Observable to emit items to its Observers.\n * @method publish\n * @owner Observable\n */\nexport function publish<T, R>(selector?: OperatorFunction<T, R>): MonoTypeOperatorFunction<T> | OperatorFunction<T, R> {\n  return selector ?\n    multicast(() => new Subject<T>(), selector) :\n    multicast(new Subject<T>());\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/publish.ts","import { Observable } from '../Observable';\nimport { BehaviorSubject } from '../BehaviorSubject';\nimport { multicast } from './multicast';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { UnaryFunction } from '../interfaces';\n\n/**\n * @param value\n * @return {ConnectableObservable<T>}\n * @method publishBehavior\n * @owner Observable\n */\nexport function publishBehavior<T>(value: T):  UnaryFunction<Observable<T>, ConnectableObservable<T>> {\n  return (source: Observable<T>) => multicast(new BehaviorSubject<T>(value))(source) as ConnectableObservable<T>;\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/publishBehavior.ts","import { Observable } from '../Observable';\nimport { AsyncSubject } from '../AsyncSubject';\nimport { multicast } from './multicast';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { UnaryFunction } from '../interfaces';\n\nexport function publishLast<T>(): UnaryFunction<Observable<T>, ConnectableObservable<T>> {\n  return (source: Observable<T>) => multicast(new AsyncSubject<T>())(source);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/publishLast.ts","import { Observable } from '../Observable';\nimport { ReplaySubject } from '../ReplaySubject';\nimport { IScheduler } from '../Scheduler';\nimport { multicast } from './multicast';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { UnaryFunction, MonoTypeOperatorFunction, OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function publishReplay<T>(bufferSize?: number, windowTime?: number, scheduler?: IScheduler): UnaryFunction<Observable<T>, ConnectableObservable<T>>;\nexport function publishReplay<T>(bufferSize?: number, windowTime?: number, selector?: MonoTypeOperatorFunction<T>, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function publishReplay<T, R>(bufferSize?: number, windowTime?: number, selector?: OperatorFunction<T, R>, scheduler?: IScheduler): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\nexport function publishReplay<T, R>(bufferSize?: number,\n                                    windowTime?: number,\n                                    selectorOrScheduler?: IScheduler | OperatorFunction<T, R>,\n                                    scheduler?: IScheduler): UnaryFunction<Observable<T>, ConnectableObservable<R> | Observable<R>> {\n\n  if (selectorOrScheduler && typeof selectorOrScheduler !== 'function') {\n    scheduler = selectorOrScheduler;\n  }\n\n  const selector = typeof selectorOrScheduler === 'function' ? selectorOrScheduler : undefined;\n  const subject = new ReplaySubject<T>(bufferSize, windowTime, scheduler);\n\n  return (source: Observable<T>) => multicast(() => subject, selector)(source) as Observable<R> | ConnectableObservable<R>;\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/publishReplay.ts","import { Observable } from '../Observable';\nimport { isArray } from '../util/isArray';\nimport { MonoTypeOperatorFunction, OperatorFunction } from '../interfaces';\nimport { race as raceStatic } from '../observable/race';\n\n/* tslint:disable:max-line-length */\nexport function race<T>(observables: Array<Observable<T>>): MonoTypeOperatorFunction<T>;\nexport function race<T, R>(observables: Array<Observable<T>>): OperatorFunction<T, R>;\nexport function race<T>(...observables: Array<Observable<T> | Array<Observable<T>>>): MonoTypeOperatorFunction<T>;\nexport function race<T, R>(...observables: Array<Observable<any> | Array<Observable<any>>>): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that mirrors the first source Observable to emit an item\n * from the combination of this Observable and supplied Observables.\n * @param {...Observables} ...observables Sources used to race for which Observable emits first.\n * @return {Observable} An Observable that mirrors the output of the first Observable to emit an item.\n * @method race\n * @owner Observable\n */\nexport function race<T>(...observables: Array<Observable<T> | Array<Observable<T>>>): MonoTypeOperatorFunction<T> {\n  return function raceOperatorFunction(source: Observable<T>) {\n    // if the only argument is an array, it was most likely called with\n    // `pair([obs1, obs2, ...])`\n    if (observables.length === 1 && isArray(observables[0])) {\n      observables = <Array<Observable<T>>>observables[0];\n    }\n\n    return source.lift.call(raceStatic<T>(source, ...observables));\n  };\n}\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/race.ts","import { Observable } from '../Observable';\nimport { scan } from './scan';\nimport { takeLast } from './takeLast';\nimport { defaultIfEmpty } from './defaultIfEmpty';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\nimport { pipe } from '../util/pipe';\n\n/* tslint:disable:max-line-length */\nexport function reduce<T>(accumulator: (acc: T, value: T, index: number) => T, seed?: T): MonoTypeOperatorFunction<T>;\nexport function reduce<T>(accumulator: (acc: T[], value: T, index: number) => T[], seed: T[]): OperatorFunction<T, T[]>;\nexport function reduce<T, R>(accumulator: (acc: R, value: T, index: number) => R, seed?: R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Applies an accumulator function over the source Observable, and returns the\n * accumulated result when the source completes, given an optional seed value.\n *\n * <span class=\"informal\">Combines together all values emitted on the source,\n * using an accumulator function that knows how to join a new source value into\n * the accumulation from the past.</span>\n *\n * <img src=\"./img/reduce.png\" width=\"100%\">\n *\n * Like\n * [Array.prototype.reduce()](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/reduce),\n * `reduce` applies an `accumulator` function against an accumulation and each\n * value of the source Observable (from the past) to reduce it to a single\n * value, emitted on the output Observable. Note that `reduce` will only emit\n * one value, only when the source Observable completes. It is equivalent to\n * applying operator {@link scan} followed by operator {@link last}.\n *\n * Returns an Observable that applies a specified `accumulator` function to each\n * item emitted by the source Observable. If a `seed` value is specified, then\n * that value will be used as the initial value for the accumulator. If no seed\n * value is specified, the first item of the source is used as the seed.\n *\n * @example <caption>Count the number of click events that happened in 5 seconds</caption>\n * var clicksInFiveSeconds = Rx.Observable.fromEvent(document, 'click')\n *   .takeUntil(Rx.Observable.interval(5000));\n * var ones = clicksInFiveSeconds.mapTo(1);\n * var seed = 0;\n * var count = ones.reduce((acc, one) => acc + one, seed);\n * count.subscribe(x => console.log(x));\n *\n * @see {@link count}\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link scan}\n *\n * @param {function(acc: R, value: T, index: number): R} accumulator The accumulator function\n * called on each source value.\n * @param {R} [seed] The initial accumulation value.\n * @return {Observable<R>} An Observable that emits a single value that is the\n * result of accumulating the values emitted by the source Observable.\n * @method reduce\n * @owner Observable\n */\nexport function reduce<T, R>(accumulator: (acc: R, value: T, index?: number) => R, seed?: R): OperatorFunction<T, R> {\n  // providing a seed of `undefined` *should* be valid and trigger\n  // hasSeed! so don't use `seed !== undefined` checks!\n  // For this reason, we have to check it here at the original call site\n  // otherwise inside Operator/Subscriber we won't know if `undefined`\n  // means they didn't provide anything or if they literally provided `undefined`\n  if (arguments.length >= 2) {\n    return function reduceOperatorFunctionWithSeed(source: Observable<T>): Observable<R> {\n      return pipe(scan(accumulator, seed), takeLast(1), defaultIfEmpty(seed))(source);\n    };\n  }\n  return function reduceOperatorFunction(source: Observable<T>): Observable<R> {\n    return pipe(scan<T, T | R>((acc, value, index) => {\n      return accumulator(<R>acc, value, index + 1);\n    }), takeLast(1))(source) as Observable<R>;\n  };\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/reduce.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription, TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\nimport { ConnectableObservable } from '../observable/ConnectableObservable';\nimport { Observable } from '../Observable';\n\nexport function refCount<T>(): MonoTypeOperatorFunction<T> {\n  return function refCountOperatorFunction(source: ConnectableObservable<T>): Observable<T> {\n    return source.lift(new RefCountOperator(source));\n  };\n}\n\nclass RefCountOperator<T> implements Operator<T, T> {\n  constructor(private connectable: ConnectableObservable<T>) {\n  }\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n\n    const { connectable } = this;\n    (<any> connectable)._refCount++;\n\n    const refCounter = new RefCountSubscriber(subscriber, connectable);\n    const subscription = source.subscribe(refCounter);\n\n    if (!refCounter.closed) {\n      (<any> refCounter).connection = connectable.connect();\n    }\n\n    return subscription;\n  }\n}\n\nclass RefCountSubscriber<T> extends Subscriber<T> {\n\n  private connection: Subscription;\n\n  constructor(destination: Subscriber<T>,\n              private connectable: ConnectableObservable<T>) {\n    super(destination);\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n\n    const { connectable } = this;\n    if (!connectable) {\n      this.connection = null;\n      return;\n    }\n\n    this.connectable = null;\n    const refCount = (<any> connectable)._refCount;\n    if (refCount <= 0) {\n      this.connection = null;\n      return;\n    }\n\n    (<any> connectable)._refCount = refCount - 1;\n    if (refCount > 1) {\n      this.connection = null;\n      return;\n    }\n\n    ///\n    // Compare the local RefCountSubscriber's connection Subscription to the\n    // connection Subscription on the shared ConnectableObservable. In cases\n    // where the ConnectableObservable source synchronously emits values, and\n    // the RefCountSubscriber's downstream Observers synchronously unsubscribe,\n    // execution continues to here before the RefCountOperator has a chance to\n    // supply the RefCountSubscriber with the shared connection Subscription.\n    // For example:\n    // ```\n    // Observable.range(0, 10)\n    //   .publish()\n    //   .refCount()\n    //   .take(5)\n    //   .subscribe();\n    // ```\n    // In order to account for this case, RefCountSubscriber should only dispose\n    // the ConnectableObservable's shared connection Subscription if the\n    // connection Subscription exists, *and* either:\n    //   a. RefCountSubscriber doesn't have a reference to the shared connection\n    //      Subscription yet, or,\n    //   b. RefCountSubscriber's connection Subscription reference is identical\n    //      to the shared connection Subscription\n    ///\n    const { connection } = this;\n    const sharedConnection = (<any> connectable)._connection;\n    this.connection = null;\n\n    if (sharedConnection && (!connection || sharedConnection === connection)) {\n      sharedConnection.unsubscribe();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/refCount.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { EmptyObservable } from '../observable/EmptyObservable';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that repeats the stream of items emitted by the source Observable at most count times.\n *\n * <img src=\"./img/repeat.png\" width=\"100%\">\n *\n * @param {number} [count] The number of times the source Observable items are repeated, a count of 0 will yield\n * an empty Observable.\n * @return {Observable} An Observable that repeats the stream of items emitted by the source Observable at most\n * count times.\n * @method repeat\n * @owner Observable\n */\nexport function repeat<T>(count: number = -1): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => {\n    if (count === 0) {\n      return new EmptyObservable<T>();\n    } else if (count < 0) {\n      return source.lift(new RepeatOperator(-1, source));\n    } else {\n      return source.lift(new RepeatOperator(count - 1, source));\n    }\n  };\n}\n\nclass RepeatOperator<T> implements Operator<T, T> {\n  constructor(private count: number,\n              private source: Observable<T>) {\n  }\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new RepeatSubscriber(subscriber, this.count, this.source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass RepeatSubscriber<T> extends Subscriber<T> {\n  constructor(destination: Subscriber<any>,\n              private count: number,\n              private source: Observable<T>) {\n    super(destination);\n  }\n  complete() {\n    if (!this.isStopped) {\n      const { source, count } = this;\n      if (count === 0) {\n        return super.complete();\n      } else if (count > -1) {\n        this.count = count - 1;\n      }\n      source.subscribe(this._unsubscribeAndRecycle());\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/repeat.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nimport { Subscription, TeardownLogic } from '../Subscription';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\n\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\n\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that mirrors the source Observable with the exception of a `complete`. If the source\n * Observable calls `complete`, this method will emit to the Observable returned from `notifier`. If that Observable\n * calls `complete` or `error`, then this method will call `complete` or `error` on the child subscription. Otherwise\n * this method will resubscribe to the source Observable.\n *\n * <img src=\"./img/repeatWhen.png\" width=\"100%\">\n *\n * @param {function(notifications: Observable): Observable} notifier - Receives an Observable of notifications with\n * which a user can `complete` or `error`, aborting the repetition.\n * @return {Observable} The source Observable modified with repeat logic.\n * @method repeatWhen\n * @owner Observable\n */\nexport function repeatWhen<T>(notifier: (notifications: Observable<any>) => Observable<any>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new RepeatWhenOperator(notifier));\n}\n\nclass RepeatWhenOperator<T> implements Operator<T, T> {\n  constructor(protected notifier: (notifications: Observable<any>) => Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new RepeatWhenSubscriber(subscriber, this.notifier, source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass RepeatWhenSubscriber<T, R> extends OuterSubscriber<T, R> {\n\n  private notifications: Subject<any>;\n  private retries: Observable<any>;\n  private retriesSubscription: Subscription;\n  private sourceIsBeingSubscribedTo: boolean = true;\n\n  constructor(destination: Subscriber<R>,\n              private notifier: (notifications: Observable<any>) => Observable<any>,\n              private source: Observable<T>) {\n    super(destination);\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this.sourceIsBeingSubscribedTo = true;\n    this.source.subscribe(this);\n  }\n\n  notifyComplete(innerSub: InnerSubscriber<T, R>): void {\n    if (this.sourceIsBeingSubscribedTo === false) {\n      return super.complete();\n    }\n  }\n\n  complete() {\n    this.sourceIsBeingSubscribedTo = false;\n\n    if (!this.isStopped) {\n      if (!this.retries) {\n        this.subscribeToRetries();\n      }\n      if (!this.retriesSubscription || this.retriesSubscription.closed) {\n        return super.complete();\n      }\n\n      this._unsubscribeAndRecycle();\n      this.notifications.next();\n    }\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    const { notifications, retriesSubscription } = this;\n    if (notifications) {\n      notifications.unsubscribe();\n      this.notifications = null;\n    }\n    if (retriesSubscription) {\n      retriesSubscription.unsubscribe();\n      this.retriesSubscription = null;\n    }\n    this.retries = null;\n  }\n\n  /** @deprecated internal use only */ _unsubscribeAndRecycle(): Subscriber<T> {\n    const { notifications, retries, retriesSubscription } = this;\n    this.notifications = null;\n    this.retries = null;\n    this.retriesSubscription = null;\n    super._unsubscribeAndRecycle();\n    this.notifications = notifications;\n    this.retries = retries;\n    this.retriesSubscription = retriesSubscription;\n    return this;\n  }\n\n  private subscribeToRetries() {\n    this.notifications = new Subject();\n    const retries = tryCatch(this.notifier)(this.notifications);\n    if (retries === errorObject) {\n      return super.complete();\n    }\n    this.retries = retries;\n    this.retriesSubscription = subscribeToResult(this, retries);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/repeatWhen.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\n\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable\n * calls `error`, this method will resubscribe to the source Observable for a maximum of `count` resubscriptions (given\n * as a number parameter) rather than propagating the `error` call.\n *\n * <img src=\"./img/retry.png\" width=\"100%\">\n *\n * Any and all items emitted by the source Observable will be emitted by the resulting Observable, even those emitted\n * during failed subscriptions. For example, if an Observable fails at first but emits [1, 2] then succeeds the second\n * time and emits: [1, 2, 3, 4, 5] then the complete stream of emissions and notifications\n * would be: [1, 2, 1, 2, 3, 4, 5, `complete`].\n * @param {number} count - Number of retry attempts before failing.\n * @return {Observable} The source Observable modified with the retry logic.\n * @method retry\n * @owner Observable\n */\nexport function retry<T>(count: number = -1): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new RetryOperator(count, source));\n}\n\nclass RetryOperator<T> implements Operator<T, T> {\n  constructor(private count: number,\n              private source: Observable<T>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new RetrySubscriber(subscriber, this.count, this.source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass RetrySubscriber<T> extends Subscriber<T> {\n  constructor(destination: Subscriber<any>,\n              private count: number,\n              private source: Observable<T>) {\n    super(destination);\n  }\n  error(err: any) {\n    if (!this.isStopped) {\n      const { source, count } = this;\n      if (count === 0) {\n        return super.error(err);\n      } else if (count > -1) {\n        this.count = count - 1;\n      }\n      source.subscribe(this._unsubscribeAndRecycle());\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/retry.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nimport { Subscription, TeardownLogic } from '../Subscription';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\n\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\n\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that mirrors the source Observable with the exception of an `error`. If the source Observable\n * calls `error`, this method will emit the Throwable that caused the error to the Observable returned from `notifier`.\n * If that Observable calls `complete` or `error` then this method will call `complete` or `error` on the child\n * subscription. Otherwise this method will resubscribe to the source Observable.\n *\n * <img src=\"./img/retryWhen.png\" width=\"100%\">\n *\n * @param {function(errors: Observable): Observable} notifier - Receives an Observable of notifications with which a\n * user can `complete` or `error`, aborting the retry.\n * @return {Observable} The source Observable modified with retry logic.\n * @method retryWhen\n * @owner Observable\n */\nexport function retryWhen<T>(notifier: (errors: Observable<any>) => Observable<any>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new RetryWhenOperator(notifier, source));\n}\n\nclass RetryWhenOperator<T> implements Operator<T, T> {\n  constructor(protected notifier: (errors: Observable<any>) => Observable<any>,\n              public source: Observable<T>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new RetryWhenSubscriber(subscriber, this.notifier, this.source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass RetryWhenSubscriber<T, R> extends OuterSubscriber<T, R> {\n\n  private errors: Subject<any>;\n  private retries: Observable<any>;\n  private retriesSubscription: Subscription;\n\n  constructor(destination: Subscriber<R>,\n              private notifier: (errors: Observable<any>) => Observable<any>,\n              private source: Observable<T>) {\n    super(destination);\n  }\n\n  error(err: any) {\n    if (!this.isStopped) {\n\n      let errors = this.errors;\n      let retries: any = this.retries;\n      let retriesSubscription = this.retriesSubscription;\n\n      if (!retries) {\n        errors = new Subject();\n        retries = tryCatch(this.notifier)(errors);\n        if (retries === errorObject) {\n          return super.error(errorObject.e);\n        }\n        retriesSubscription = subscribeToResult(this, retries);\n      } else {\n        this.errors = null;\n        this.retriesSubscription = null;\n      }\n\n      this._unsubscribeAndRecycle();\n\n      this.errors = errors;\n      this.retries = retries;\n      this.retriesSubscription = retriesSubscription;\n\n      errors.next(err);\n    }\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    const { errors, retriesSubscription } = this;\n    if (errors) {\n      errors.unsubscribe();\n      this.errors = null;\n    }\n    if (retriesSubscription) {\n      retriesSubscription.unsubscribe();\n      this.retriesSubscription = null;\n    }\n    this.retries = null;\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    const { errors, retries, retriesSubscription } = this;\n    this.errors = null;\n    this.retries = null;\n    this.retriesSubscription = null;\n\n    this._unsubscribeAndRecycle();\n\n    this.errors = errors;\n    this.retries = retries;\n    this.retriesSubscription = retriesSubscription;\n\n    this.source.subscribe(this);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/retryWhen.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { TeardownLogic } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\n\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits the most recently emitted value from the source Observable whenever\n * another Observable, the `notifier`, emits.\n *\n * <span class=\"informal\">It's like {@link sampleTime}, but samples whenever\n * the `notifier` Observable emits something.</span>\n *\n * <img src=\"./img/sample.png\" width=\"100%\">\n *\n * Whenever the `notifier` Observable emits a value or completes, `sample`\n * looks at the source Observable and emits whichever value it has most recently\n * emitted since the previous sampling, unless the source has not emitted\n * anything since the previous sampling. The `notifier` is subscribed to as soon\n * as the output Observable is subscribed.\n *\n * @example <caption>On every click, sample the most recent \"seconds\" timer</caption>\n * var seconds = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = seconds.sample(clicks);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param {Observable<any>} notifier The Observable to use for sampling the\n * source Observable.\n * @return {Observable<T>} An Observable that emits the results of sampling the\n * values emitted by the source Observable whenever the notifier Observable\n * emits value or completes.\n * @method sample\n * @owner Observable\n */\nexport function sample<T>(notifier: Observable<any>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new SampleOperator(notifier));\n}\n\nclass SampleOperator<T> implements Operator<T, T> {\n  constructor(private notifier: Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    const sampleSubscriber = new SampleSubscriber(subscriber);\n    const subscription = source.subscribe(sampleSubscriber);\n    subscription.add(subscribeToResult(sampleSubscriber, this.notifier));\n    return subscription;\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SampleSubscriber<T, R> extends OuterSubscriber<T, R> {\n  private value: T;\n  private hasValue: boolean = false;\n\n  protected _next(value: T) {\n    this.value = value;\n    this.hasValue = true;\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this.emitValue();\n  }\n\n  notifyComplete(): void {\n    this.emitValue();\n  }\n\n  emitValue() {\n    if (this.hasValue) {\n      this.hasValue = false;\n      this.destination.next(this.value);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/sample.ts","import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { IScheduler } from '../Scheduler';\nimport { Action } from '../scheduler/Action';\nimport { async } from '../scheduler/async';\nimport { TeardownLogic } from '../Subscription';\n\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits the most recently emitted value from the source Observable within\n * periodic time intervals.\n *\n * <span class=\"informal\">Samples the source Observable at periodic time\n * intervals, emitting what it samples.</span>\n *\n * <img src=\"./img/sampleTime.png\" width=\"100%\">\n *\n * `sampleTime` periodically looks at the source Observable and emits whichever\n * value it has most recently emitted since the previous sampling, unless the\n * source has not emitted anything since the previous sampling. The sampling\n * happens periodically in time every `period` milliseconds (or the time unit\n * defined by the optional `scheduler` argument). The sampling starts as soon as\n * the output Observable is subscribed.\n *\n * @example <caption>Every second, emit the most recent click at most once</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.sampleTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param {number} period The sampling period expressed in milliseconds or the\n * time unit determined internally by the optional `scheduler`.\n * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for\n * managing the timers that handle the sampling.\n * @return {Observable<T>} An Observable that emits the results of sampling the\n * values emitted by the source Observable at the specified time interval.\n * @method sampleTime\n * @owner Observable\n */\nexport function sampleTime<T>(period: number, scheduler: IScheduler = async): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new SampleTimeOperator(period, scheduler));\n}\n\nclass SampleTimeOperator<T> implements Operator<T, T> {\n  constructor(private period: number,\n              private scheduler: IScheduler) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new SampleTimeSubscriber(subscriber, this.period, this.scheduler));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SampleTimeSubscriber<T> extends Subscriber<T> {\n  lastValue: T;\n  hasValue: boolean = false;\n\n  constructor(destination: Subscriber<T>,\n              private period: number,\n              private scheduler: IScheduler) {\n    super(destination);\n    this.add(scheduler.schedule(dispatchNotification, period, { subscriber: this, period }));\n  }\n\n  protected _next(value: T) {\n    this.lastValue = value;\n    this.hasValue = true;\n  }\n\n  notifyNext() {\n    if (this.hasValue) {\n      this.hasValue = false;\n      this.destination.next(this.lastValue);\n    }\n  }\n}\n\nfunction dispatchNotification<T>(this: Action<any>, state: any) {\n  let { subscriber, period } = state;\n  subscriber.notifyNext();\n  this.schedule(state, period);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/sampleTime.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function scan<T>(accumulator: (acc: T, value: T, index: number) => T, seed?: T): MonoTypeOperatorFunction<T>;\nexport function scan<T>(accumulator: (acc: T[], value: T, index: number) => T[], seed?: T[]): OperatorFunction<T, T[]>;\nexport function scan<T, R>(accumulator: (acc: R, value: T, index: number) => R, seed?: R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Applies an accumulator function over the source Observable, and returns each\n * intermediate result, with an optional seed value.\n *\n * <span class=\"informal\">It's like {@link reduce}, but emits the current\n * accumulation whenever the source emits a value.</span>\n *\n * <img src=\"./img/scan.png\" width=\"100%\">\n *\n * Combines together all values emitted on the source, using an accumulator\n * function that knows how to join a new source value into the accumulation from\n * the past. Is similar to {@link reduce}, but emits the intermediate\n * accumulations.\n *\n * Returns an Observable that applies a specified `accumulator` function to each\n * item emitted by the source Observable. If a `seed` value is specified, then\n * that value will be used as the initial value for the accumulator. If no seed\n * value is specified, the first item of the source is used as the seed.\n *\n * @example <caption>Count the number of click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var ones = clicks.mapTo(1);\n * var seed = 0;\n * var count = ones.scan((acc, one) => acc + one, seed);\n * count.subscribe(x => console.log(x));\n *\n * @see {@link expand}\n * @see {@link mergeScan}\n * @see {@link reduce}\n *\n * @param {function(acc: R, value: T, index: number): R} accumulator\n * The accumulator function called on each source value.\n * @param {T|R} [seed] The initial accumulation value.\n * @return {Observable<R>} An observable of the accumulated values.\n * @method scan\n * @owner Observable\n */\nexport function scan<T, R>(accumulator: (acc: R, value: T, index: number) => R, seed?: T | R): OperatorFunction<T, R> {\n  let hasSeed = false;\n  // providing a seed of `undefined` *should* be valid and trigger\n  // hasSeed! so don't use `seed !== undefined` checks!\n  // For this reason, we have to check it here at the original call site\n  // otherwise inside Operator/Subscriber we won't know if `undefined`\n  // means they didn't provide anything or if they literally provided `undefined`\n  if (arguments.length >= 2) {\n    hasSeed = true;\n  }\n\n  return function scanOperatorFunction(source: Observable<T>): Observable<R> {\n    return source.lift(new ScanOperator(accumulator, seed, hasSeed));\n  };\n}\n\nclass ScanOperator<T, R> implements Operator<T, R> {\n  constructor(private accumulator: (acc: R, value: T, index: number) => R, private seed?: T | R, private hasSeed: boolean = false) {}\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new ScanSubscriber(subscriber, this.accumulator, this.seed, this.hasSeed));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass ScanSubscriber<T, R> extends Subscriber<T> {\n  private index: number = 0;\n\n  get seed(): T | R {\n    return this._seed;\n  }\n\n  set seed(value: T | R) {\n    this.hasSeed = true;\n    this._seed = value;\n  }\n\n  constructor(destination: Subscriber<R>, private accumulator: (acc: R, value: T, index: number) => R, private _seed: T | R,\n              private hasSeed: boolean) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    if (!this.hasSeed) {\n      this.seed = value;\n      this.destination.next(value);\n    } else {\n      return this._tryNext(value);\n    }\n  }\n\n  private _tryNext(value: T): void {\n    const index = this.index++;\n    let result: any;\n    try {\n      result = this.accumulator(<R>this.seed, value, index);\n    } catch (err) {\n      this.destination.error(err);\n    }\n    this.seed = result;\n    this.destination.next(result);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/scan.ts","import { Operator } from '../Operator';\nimport { Observer } from '../Observer';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\n\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Compares all values of two observables in sequence using an optional comparor function\n * and returns an observable of a single boolean value representing whether or not the two sequences\n * are equal.\n *\n * <span class=\"informal\">Checks to see of all values emitted by both observables are equal, in order.</span>\n *\n * <img src=\"./img/sequenceEqual.png\" width=\"100%\">\n *\n * `sequenceEqual` subscribes to two observables and buffers incoming values from each observable. Whenever either\n * observable emits a value, the value is buffered and the buffers are shifted and compared from the bottom\n * up; If any value pair doesn't match, the returned observable will emit `false` and complete. If one of the\n * observables completes, the operator will wait for the other observable to complete; If the other\n * observable emits before completing, the returned observable will emit `false` and complete. If one observable never\n * completes or emits after the other complets, the returned observable will never complete.\n *\n * @example <caption>figure out if the Konami code matches</caption>\n * var code = Rx.Observable.from([\n *  \"ArrowUp\",\n *  \"ArrowUp\",\n *  \"ArrowDown\",\n *  \"ArrowDown\",\n *  \"ArrowLeft\",\n *  \"ArrowRight\",\n *  \"ArrowLeft\",\n *  \"ArrowRight\",\n *  \"KeyB\",\n *  \"KeyA\",\n *  \"Enter\" // no start key, clearly.\n * ]);\n *\n * var keys = Rx.Observable.fromEvent(document, 'keyup')\n *  .map(e => e.code);\n * var matches = keys.bufferCount(11, 1)\n *  .mergeMap(\n *    last11 =>\n *      Rx.Observable.from(last11)\n *        .sequenceEqual(code)\n *   );\n * matches.subscribe(matched => console.log('Successful cheat at Contra? ', matched));\n *\n * @see {@link combineLatest}\n * @see {@link zip}\n * @see {@link withLatestFrom}\n *\n * @param {Observable} compareTo The observable sequence to compare the source sequence to.\n * @param {function} [comparor] An optional function to compare each value pair\n * @return {Observable} An Observable of a single boolean value representing whether or not\n * the values emitted by both observables were equal in sequence.\n * @method sequenceEqual\n * @owner Observable\n */\nexport function sequenceEqual<T>(compareTo: Observable<T>,\n                                 comparor?: (a: T, b: T) => boolean): OperatorFunction<T, boolean> {\n  return (source: Observable<T>) => source.lift(new SequenceEqualOperator(compareTo, comparor));\n}\n\nexport class SequenceEqualOperator<T> implements Operator<T, boolean> {\n  constructor(private compareTo: Observable<T>,\n              private comparor: (a: T, b: T) => boolean) {\n  }\n\n  call(subscriber: Subscriber<boolean>, source: any): any {\n    return source.subscribe(new SequenceEqualSubscriber(subscriber, this.compareTo, this.comparor));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class SequenceEqualSubscriber<T, R> extends Subscriber<T> {\n  private _a: T[] = [];\n  private _b: T[] = [];\n  private _oneComplete = false;\n\n  constructor(destination: Observer<R>,\n              private compareTo: Observable<T>,\n              private comparor: (a: T, b: T) => boolean) {\n    super(destination);\n    this.add(compareTo.subscribe(new SequenceEqualCompareToSubscriber(destination, this)));\n  }\n\n  protected _next(value: T): void {\n    if (this._oneComplete && this._b.length === 0) {\n      this.emit(false);\n    } else {\n      this._a.push(value);\n      this.checkValues();\n    }\n  }\n\n  public _complete(): void {\n    if (this._oneComplete) {\n      this.emit(this._a.length === 0 && this._b.length === 0);\n    } else {\n      this._oneComplete = true;\n    }\n  }\n\n  checkValues() {\n    const { _a, _b, comparor } = this;\n    while (_a.length > 0 && _b.length > 0) {\n      let a = _a.shift();\n      let b = _b.shift();\n      let areEqual = false;\n      if (comparor) {\n        areEqual = tryCatch(comparor)(a, b);\n        if (areEqual === errorObject) {\n          this.destination.error(errorObject.e);\n        }\n      } else {\n        areEqual = a === b;\n      }\n      if (!areEqual) {\n        this.emit(false);\n      }\n    }\n  }\n\n  emit(value: boolean) {\n    const { destination } = this;\n    destination.next(value);\n    destination.complete();\n  }\n\n  nextB(value: T) {\n    if (this._oneComplete && this._a.length === 0) {\n      this.emit(false);\n    } else {\n      this._b.push(value);\n      this.checkValues();\n    }\n  }\n}\n\nclass SequenceEqualCompareToSubscriber<T, R> extends Subscriber<T> {\n  constructor(destination: Observer<R>, private parent: SequenceEqualSubscriber<T, R>) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    this.parent.nextB(value);\n  }\n\n  protected _error(err: any): void {\n    this.parent.error(err);\n  }\n\n  protected _complete(): void {\n    this.parent._complete();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/sequenceEqual.ts","import { Observable } from '../Observable';\nimport { multicast } from './multicast';\nimport { refCount } from './refCount';\nimport { Subject } from '../Subject';\n\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\nfunction shareSubjectFactory() {\n  return new Subject();\n}\n\n/**\n * Returns a new Observable that multicasts (shares) the original Observable. As long as there is at least one\n * Subscriber this Observable will be subscribed and emitting data. When all subscribers have unsubscribed it will\n * unsubscribe from the source Observable. Because the Observable is multicasting it makes the stream `hot`.\n * This is an alias for .multicast(() => new Subject()).refCount().\n *\n * <img src=\"./img/share.png\" width=\"100%\">\n *\n * @return {Observable<T>} An Observable that upon connection causes the source Observable to emit items to its Observers.\n * @method share\n * @owner Observable\n */\nexport function share<T>(): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => refCount()(multicast(shareSubjectFactory)(source)) as Observable<T>;\n};\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/share.ts","import { Observable } from '../Observable';\nimport { ReplaySubject } from '../ReplaySubject';\nimport { IScheduler } from '../Scheduler';\nimport { Subscription } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\nimport { Subscriber } from '../Subscriber';\n\n/**\n * @method shareReplay\n * @owner Observable\n */\nexport function shareReplay<T>(bufferSize?: number, windowTime?: number, scheduler?: IScheduler ): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(shareReplayOperator(bufferSize, windowTime, scheduler));\n}\n\nfunction shareReplayOperator<T>(bufferSize?: number, windowTime?: number, scheduler?: IScheduler) {\n  let subject: ReplaySubject<T>;\n  let refCount = 0;\n  let subscription: Subscription;\n  let hasError = false;\n  let isComplete = false;\n\n  return function shareReplayOperation(this: Subscriber<T>, source: Observable<T>) {\n    refCount++;\n    if (!subject || hasError) {\n      hasError = false;\n      subject = new ReplaySubject<T>(bufferSize, windowTime, scheduler);\n      subscription = source.subscribe({\n        next(value) { subject.next(value); },\n        error(err) {\n          hasError = true;\n          subject.error(err);\n        },\n        complete() {\n          isComplete = true;\n          subject.complete();\n        },\n      });\n    }\n\n    const innerSub = subject.subscribe(this);\n\n    return () => {\n      refCount--;\n      innerSub.unsubscribe();\n      if (subscription && refCount === 0 && isComplete) {\n        subscription.unsubscribe();\n      }\n    };\n  };\n};\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/shareReplay.ts","import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observer } from '../Observer';\nimport { EmptyError } from '../util/EmptyError';\nimport { TeardownLogic } from '../Subscription';\n\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that emits the single item emitted by the source Observable that matches a specified\n * predicate, if that Observable emits one such item. If the source Observable emits more than one such item or no\n * such items, notify of an IllegalArgumentException or NoSuchElementException respectively.\n *\n * <img src=\"./img/single.png\" width=\"100%\">\n *\n * @throws {EmptyError} Delivers an EmptyError to the Observer's `error`\n * callback if the Observable completes before any `next` notification was sent.\n * @param {Function} predicate - A predicate function to evaluate items emitted by the source Observable.\n * @return {Observable<T>} An Observable that emits the single item emitted by the source Observable that matches\n * the predicate.\n .\n * @method single\n * @owner Observable\n */\nexport function single<T>(predicate?: (value: T, index: number, source: Observable<T>) => boolean): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new SingleOperator(predicate, source));\n}\n\nclass SingleOperator<T> implements Operator<T, T> {\n  constructor(private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n              private source?: Observable<T>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new SingleSubscriber(subscriber, this.predicate, this.source));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SingleSubscriber<T> extends Subscriber<T> {\n  private seenValue: boolean = false;\n  private singleValue: T;\n  private index: number = 0;\n\n  constructor(destination: Observer<T>,\n              private predicate?: (value: T, index: number, source: Observable<T>) => boolean,\n              private source?: Observable<T>) {\n    super(destination);\n  }\n\n  private applySingleValue(value: T): void {\n    if (this.seenValue) {\n      this.destination.error('Sequence contains more than one element');\n    } else {\n      this.seenValue = true;\n      this.singleValue = value;\n    }\n  }\n\n  protected _next(value: T): void {\n    const index = this.index++;\n\n    if (this.predicate) {\n      this.tryNext(value, index);\n    } else {\n      this.applySingleValue(value);\n    }\n  }\n\n  private tryNext(value: T, index: number): void {\n    try {\n      if (this.predicate(value, index, this.source)) {\n        this.applySingleValue(value);\n      }\n    } catch (err) {\n      this.destination.error(err);\n    }\n  }\n\n  protected _complete(): void {\n    const destination = this.destination;\n\n    if (this.index > 0) {\n      destination.next(this.seenValue ? this.singleValue : undefined);\n      destination.complete();\n    } else {\n      destination.error(new EmptyError);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/single.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that skips the first `count` items emitted by the source Observable.\n *\n * <img src=\"./img/skip.png\" width=\"100%\">\n *\n * @param {Number} count - The number of times, items emitted by source Observable should be skipped.\n * @return {Observable} An Observable that skips values emitted by the source Observable.\n *\n * @method skip\n * @owner Observable\n */\nexport function skip<T>(count: number): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new SkipOperator(count));\n}\n\nclass SkipOperator<T> implements Operator<T, T> {\n  constructor(private total: number) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new SkipSubscriber(subscriber, this.total));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SkipSubscriber<T> extends Subscriber<T> {\n  count: number = 0;\n\n  constructor(destination: Subscriber<T>, private total: number) {\n    super(destination);\n  }\n\n  protected _next(x: T) {\n    if (++this.count > this.total) {\n      this.destination.next(x);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/skip.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Skip the last `count` values emitted by the source Observable.\n *\n * <img src=\"./img/skipLast.png\" width=\"100%\">\n *\n * `skipLast` returns an Observable that accumulates a queue with a length\n * enough to store the first `count` values. As more values are received,\n * values are taken from the front of the queue and produced on the result\n * sequence. This causes values to be delayed.\n *\n * @example <caption>Skip the last 2 values of an Observable with many values</caption>\n * var many = Rx.Observable.range(1, 5);\n * var skipLastTwo = many.skipLast(2);\n * skipLastTwo.subscribe(x => console.log(x));\n *\n * // Results in:\n * // 1 2 3\n *\n * @see {@link skip}\n * @see {@link skipUntil}\n * @see {@link skipWhile}\n * @see {@link take}\n *\n * @throws {ArgumentOutOfRangeError} When using `skipLast(i)`, it throws\n * ArgumentOutOrRangeError if `i < 0`.\n *\n * @param {number} count Number of elements to skip from the end of the source Observable.\n * @returns {Observable<T>} An Observable that skips the last count values\n * emitted by the source Observable.\n * @method skipLast\n * @owner Observable\n */\nexport function skipLast<T>(count: number): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new SkipLastOperator(count));\n}\n\nclass SkipLastOperator<T> implements Operator<T, T> {\n  constructor(private _skipCount: number) {\n    if (this._skipCount < 0) {\n      throw new ArgumentOutOfRangeError;\n    }\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    if (this._skipCount === 0) {\n      // If we don't want to skip any values then just subscribe\n      // to Subscriber without any further logic.\n      return source.subscribe(new Subscriber(subscriber));\n    } else {\n      return source.subscribe(new SkipLastSubscriber(subscriber, this._skipCount));\n    }\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SkipLastSubscriber<T> extends Subscriber<T> {\n  private _ring: T[];\n  private _count: number = 0;\n\n  constructor(destination: Subscriber<T>, private _skipCount: number) {\n    super(destination);\n    this._ring = new Array<T>(_skipCount);\n  }\n\n  protected _next(value: T): void {\n    const skipCount = this._skipCount;\n    const count = this._count++;\n\n    if (count < skipCount) {\n      this._ring[count] = value;\n    } else {\n      const currentIndex = count % skipCount;\n      const ring = this._ring;\n      const oldValue = ring[currentIndex];\n\n      ring[currentIndex] = value;\n      this.destination.next(oldValue);\n    }\n  }\n}\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/skipLast.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that skips items emitted by the source Observable until a second Observable emits an item.\n *\n * <img src=\"./img/skipUntil.png\" width=\"100%\">\n *\n * @param {Observable} notifier - The second Observable that has to emit an item before the source Observable's elements begin to\n * be mirrored by the resulting Observable.\n * @return {Observable<T>} An Observable that skips items from the source Observable until the second Observable emits\n * an item, then emits the remaining items.\n * @method skipUntil\n * @owner Observable\n */\nexport function skipUntil<T>(notifier: Observable<any>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new SkipUntilOperator(notifier));\n}\n\nclass SkipUntilOperator<T> implements Operator<T, T> {\n  constructor(private notifier: Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new SkipUntilSubscriber(subscriber, this.notifier));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SkipUntilSubscriber<T, R> extends OuterSubscriber<T, R> {\n\n  private hasValue: boolean = false;\n  private isInnerStopped: boolean = false;\n\n  constructor(destination: Subscriber<any>,\n              notifier: Observable<any>) {\n    super(destination);\n    this.add(subscribeToResult(this, notifier));\n  }\n\n  protected _next(value: T) {\n    if (this.hasValue) {\n      super._next(value);\n    }\n  }\n\n  protected _complete() {\n    if (this.isInnerStopped) {\n      super._complete();\n    } else {\n      this.unsubscribe();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this.hasValue = true;\n  }\n\n  notifyComplete(): void {\n    this.isInnerStopped = true;\n    if (this.isStopped) {\n      super._complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/skipUntil.ts","import { Observable } from '../Observable';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Returns an Observable that skips all items emitted by the source Observable as long as a specified condition holds\n * true, but emits all further source items as soon as the condition becomes false.\n *\n * <img src=\"./img/skipWhile.png\" width=\"100%\">\n *\n * @param {Function} predicate - A function to test each item emitted from the source Observable.\n * @return {Observable<T>} An Observable that begins emitting items emitted by the source Observable when the\n * specified predicate becomes false.\n * @method skipWhile\n * @owner Observable\n */\nexport function skipWhile<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new SkipWhileOperator(predicate));\n}\n\nclass SkipWhileOperator<T> implements Operator<T, T> {\n  constructor(private predicate: (value: T, index: number) => boolean) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new SkipWhileSubscriber(subscriber, this.predicate));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SkipWhileSubscriber<T> extends Subscriber<T> {\n  private skipping: boolean = true;\n  private index: number = 0;\n\n  constructor(destination: Subscriber<T>,\n              private predicate: (value: T, index: number) => boolean) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    const destination = this.destination;\n    if (this.skipping) {\n      this.tryCallPredicate(value);\n    }\n\n    if (!this.skipping) {\n      destination.next(value);\n    }\n  }\n\n  private tryCallPredicate(value: T): void {\n    try {\n      const result = this.predicate(value, this.index++);\n      this.skipping = Boolean(result);\n    } catch (err) {\n      this.destination.error(err);\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/skipWhile.ts","import { IScheduler } from '../Scheduler';\nimport { Observable } from '../Observable';\nimport { ArrayObservable } from '../observable/ArrayObservable';\nimport { ScalarObservable } from '../observable/ScalarObservable';\nimport { EmptyObservable } from '../observable/EmptyObservable';\nimport { concat as concatStatic } from '../observable/concat';\nimport { isScheduler } from '../util/isScheduler';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function startWith<T>(v1: T, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function startWith<T>(v1: T, v2: T, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function startWith<T>(v1: T, v2: T, v3: T, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function startWith<T>(v1: T, v2: T, v3: T, v4: T, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function startWith<T>(v1: T, v2: T, v3: T, v4: T, v5: T, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function startWith<T>(v1: T, v2: T, v3: T, v4: T, v5: T, v6: T, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function startWith<T>(...array: Array<T | IScheduler>): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Returns an Observable that emits the items you specify as arguments before it begins to emit\n * items emitted by the source Observable.\n *\n * <img src=\"./img/startWith.png\" width=\"100%\">\n *\n * @param {...T} values - Items you want the modified Observable to emit first.\n * @param {Scheduler} [scheduler] - A {@link IScheduler} to use for scheduling\n * the emissions of the `next` notifications.\n * @return {Observable} An Observable that emits the items in the specified Iterable and then emits the items\n * emitted by the source Observable.\n * @method startWith\n * @owner Observable\n */\nexport function startWith<T>(...array: Array<T | IScheduler>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => {\n    let scheduler = <IScheduler>array[array.length - 1];\n    if (isScheduler(scheduler)) {\n      array.pop();\n    } else {\n      scheduler = null;\n    }\n\n    const len = array.length;\n    if (len === 1) {\n      return concatStatic(new ScalarObservable<T>(<T>array[0], scheduler), source);\n    } else if (len > 1) {\n      return concatStatic(new ArrayObservable<T>(<T[]>array, scheduler), source);\n    } else {\n      return concatStatic(new EmptyObservable<T>(scheduler), source);\n    }\n  };\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/startWith.ts","import { OperatorFunction } from '../interfaces';\nimport { Observable } from '../Observable';\nimport { switchMap } from './switchMap';\nimport { identity } from '../util/identity';\n\nexport function switchAll<T>(): OperatorFunction<Observable<T>, T> {\n  return switchMap(identity);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/switchAll.ts","import { Operator } from '../Operator';\nimport { Observable, ObservableInput } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function switchMap<T, R>(project: (value: T, index: number) => ObservableInput<R>): OperatorFunction<T, R>;\nexport function switchMap<T, I, R>(project: (value: T, index: number) => ObservableInput<I>, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to an Observable which is merged in the output\n * Observable, emitting values only from the most recently projected Observable.\n *\n * <span class=\"informal\">Maps each value to an Observable, then flattens all of\n * these inner Observables using {@link switch}.</span>\n *\n * <img src=\"./img/switchMap.png\" width=\"100%\">\n *\n * Returns an Observable that emits items based on applying a function that you\n * supply to each item emitted by the source Observable, where that function\n * returns an (so-called \"inner\") Observable. Each time it observes one of these\n * inner Observables, the output Observable begins emitting the items emitted by\n * that inner Observable. When a new inner Observable is emitted, `switchMap`\n * stops emitting items from the earlier-emitted inner Observable and begins\n * emitting items from the new one. It continues to behave like this for\n * subsequent inner Observables.\n *\n * @example <caption>Rerun an interval Observable on every click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.switchMap((ev) => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMap}\n * @see {@link exhaustMap}\n * @see {@link mergeMap}\n * @see {@link switch}\n * @see {@link switchMapTo}\n *\n * @param {function(value: T, ?index: number): ObservableInput} project A function\n * that, when applied to an item emitted by the source Observable, returns an\n * Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable that emits the result of applying the\n * projection function (and the optional `resultSelector`) to each item emitted\n * by the source Observable and taking only the values from the most recently\n * projected inner Observable.\n * @method switchMap\n * @owner Observable\n */\nexport function switchMap<T, I, R>(\n  project: (value: T, index: number) => ObservableInput<I>,\n  resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R\n): OperatorFunction<T, I | R> {\n  return function switchMapOperatorFunction(source: Observable<T>): Observable<I | R> {\n    return source.lift(new SwitchMapOperator(project, resultSelector));\n  };\n}\n\nclass SwitchMapOperator<T, I, R> implements Operator<T, I> {\n  constructor(private project: (value: T, index: number) => ObservableInput<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) {\n  }\n\n  call(subscriber: Subscriber<I>, source: any): any {\n    return source.subscribe(new SwitchMapSubscriber(subscriber, this.project, this.resultSelector));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SwitchMapSubscriber<T, I, R> extends OuterSubscriber<T, I> {\n  private index: number = 0;\n  private innerSubscription: Subscription;\n\n  constructor(destination: Subscriber<I>,\n              private project: (value: T, index: number) => ObservableInput<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) {\n    super(destination);\n  }\n\n  protected _next(value: T) {\n    let result: ObservableInput<I>;\n    const index = this.index++;\n    try {\n      result = this.project(value, index);\n    } catch (error) {\n      this.destination.error(error);\n      return;\n    }\n    this._innerSub(result, value, index);\n  }\n\n  private _innerSub(result: ObservableInput<I>, value: T, index: number) {\n    const innerSubscription = this.innerSubscription;\n    if (innerSubscription) {\n      innerSubscription.unsubscribe();\n    }\n    this.add(this.innerSubscription = subscribeToResult(this, result, value, index));\n  }\n\n  protected _complete(): void {\n    const {innerSubscription} = this;\n    if (!innerSubscription || innerSubscription.closed) {\n      super._complete();\n    }\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    this.innerSubscription = null;\n  }\n\n  notifyComplete(innerSub: Subscription): void {\n    this.remove(innerSub);\n    this.innerSubscription = null;\n    if (this.isStopped) {\n      super._complete();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: I,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, I>): void {\n    if (this.resultSelector) {\n      this._tryNotifyNext(outerValue, innerValue, outerIndex, innerIndex);\n    } else {\n      this.destination.next(innerValue);\n    }\n  }\n\n  private _tryNotifyNext(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): void {\n    let result: R;\n    try {\n      result = this.resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    this.destination.next(result);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/switchMap.ts","import { Operator } from '../Operator';\nimport { Observable, ObservableInput } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription } from '../Subscription';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function switchMapTo<T, R>(observable: ObservableInput<R>): OperatorFunction<T, R>;\nexport function switchMapTo<T, I, R>(observable: ObservableInput<I>, resultSelector: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Projects each source value to the same Observable which is flattened multiple\n * times with {@link switch} in the output Observable.\n *\n * <span class=\"informal\">It's like {@link switchMap}, but maps each value\n * always to the same inner Observable.</span>\n *\n * <img src=\"./img/switchMapTo.png\" width=\"100%\">\n *\n * Maps each source value to the given Observable `innerObservable` regardless\n * of the source value, and then flattens those resulting Observables into one\n * single Observable, which is the output Observable. The output Observables\n * emits values only from the most recently emitted instance of\n * `innerObservable`.\n *\n * @example <caption>Rerun an interval Observable on every click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.switchMapTo(Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link concatMapTo}\n * @see {@link switch}\n * @see {@link switchMap}\n * @see {@link mergeMapTo}\n *\n * @param {ObservableInput} innerObservable An Observable to replace each value from\n * the source Observable.\n * @param {function(outerValue: T, innerValue: I, outerIndex: number, innerIndex: number): any} [resultSelector]\n * A function to produce the value on the output Observable based on the values\n * and the indices of the source (outer) emission and the inner Observable\n * emission. The arguments passed to this function are:\n * - `outerValue`: the value that came from the source\n * - `innerValue`: the value that came from the projected Observable\n * - `outerIndex`: the \"index\" of the value that came from the source\n * - `innerIndex`: the \"index\" of the value from the projected Observable\n * @return {Observable} An Observable that emits items from the given\n * `innerObservable` (and optionally transformed through `resultSelector`) every\n * time a value is emitted on the source Observable, and taking only the values\n * from the most recently projected inner Observable.\n * @method switchMapTo\n * @owner Observable\n */\nexport function switchMapTo<T, I, R>(innerObservable: Observable<I>,\n                                     resultSelector?: (outerValue: T,\n                                                       innerValue: I,\n                                                       outerIndex: number,\n                                                       innerIndex: number) => R): OperatorFunction<T, I | R> {\n  return (source: Observable<T>) => source.lift(new SwitchMapToOperator(innerObservable, resultSelector));\n}\n\nclass SwitchMapToOperator<T, I, R> implements Operator<T, I> {\n  constructor(private observable: Observable<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) {\n  }\n\n  call(subscriber: Subscriber<I>, source: any): any {\n    return source.subscribe(new SwitchMapToSubscriber(subscriber, this.observable, this.resultSelector));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass SwitchMapToSubscriber<T, I, R> extends OuterSubscriber<T, I> {\n  private index: number = 0;\n  private innerSubscription: Subscription;\n\n  constructor(destination: Subscriber<I>,\n              private inner: Observable<I>,\n              private resultSelector?: (outerValue: T, innerValue: I, outerIndex: number, innerIndex: number) => R) {\n    super(destination);\n  }\n\n  protected _next(value: any) {\n    const innerSubscription = this.innerSubscription;\n    if (innerSubscription) {\n      innerSubscription.unsubscribe();\n    }\n    this.add(this.innerSubscription = subscribeToResult(this, this.inner, value, this.index++));\n  }\n\n  protected _complete() {\n    const {innerSubscription} = this;\n    if (!innerSubscription || innerSubscription.closed) {\n      super._complete();\n    }\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    this.innerSubscription = null;\n  }\n\n  notifyComplete(innerSub: Subscription) {\n    this.remove(innerSub);\n    this.innerSubscription = null;\n    if (this.isStopped) {\n      super._complete();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: I,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, I>): void {\n    const { resultSelector, destination } = this;\n    if (resultSelector) {\n      this.tryResultSelector(outerValue, innerValue, outerIndex, innerIndex);\n    } else {\n      destination.next(innerValue);\n    }\n  }\n\n  private tryResultSelector(outerValue: T, innerValue: I,\n                            outerIndex: number, innerIndex: number): void {\n    const { resultSelector, destination } = this;\n    let result: R;\n    try {\n      result = resultSelector(outerValue, innerValue, outerIndex, innerIndex);\n    } catch (err) {\n      destination.error(err);\n      return;\n    }\n\n    destination.next(result);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/switchMapTo.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { EmptyObservable } from '../observable/EmptyObservable';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits only the first `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Takes the first `count` values from the source, then\n * completes.</span>\n *\n * <img src=\"./img/take.png\" width=\"100%\">\n *\n * `take` returns an Observable that emits only the first `count` values emitted\n * by the source Observable. If the source emits fewer than `count` values then\n * all of its values are emitted. After that, it completes, regardless if the\n * source completes.\n *\n * @example <caption>Take the first 5 seconds of an infinite 1-second interval Observable</caption>\n * var interval = Rx.Observable.interval(1000);\n * var five = interval.take(5);\n * five.subscribe(x => console.log(x));\n *\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @throws {ArgumentOutOfRangeError} When using `take(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.\n *\n * @param {number} count The maximum number of `next` values to emit.\n * @return {Observable<T>} An Observable that emits only the first `count`\n * values emitted by the source Observable, or all of the values from the source\n * if the source emits fewer than `count` values.\n * @method take\n * @owner Observable\n */\nexport function take<T>(count: number): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => {\n    if (count === 0) {\n      return new EmptyObservable<T>();\n    } else {\n      return source.lift(new TakeOperator(count));\n    }\n  };\n}\n\nclass TakeOperator<T> implements Operator<T, T> {\n  constructor(private total: number) {\n    if (this.total < 0) {\n      throw new ArgumentOutOfRangeError;\n    }\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new TakeSubscriber(subscriber, this.total));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass TakeSubscriber<T> extends Subscriber<T> {\n  private count: number = 0;\n\n  constructor(destination: Subscriber<T>, private total: number) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    const total = this.total;\n    const count = ++this.count;\n    if (count <= total) {\n      this.destination.next(value);\n      if (count === total) {\n        this.destination.complete();\n        this.unsubscribe();\n      }\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/take.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { ArgumentOutOfRangeError } from '../util/ArgumentOutOfRangeError';\nimport { EmptyObservable } from '../observable/EmptyObservable';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits only the last `count` values emitted by the source Observable.\n *\n * <span class=\"informal\">Remembers the latest `count` values, then emits those\n * only when the source completes.</span>\n *\n * <img src=\"./img/takeLast.png\" width=\"100%\">\n *\n * `takeLast` returns an Observable that emits at most the last `count` values\n * emitted by the source Observable. If the source emits fewer than `count`\n * values then all of its values are emitted. This operator must wait until the\n * `complete` notification emission from the source in order to emit the `next`\n * values on the output Observable, because otherwise it is impossible to know\n * whether or not more values will be emitted on the source. For this reason,\n * all values are emitted synchronously, followed by the complete notification.\n *\n * @example <caption>Take the last 3 values of an Observable with many values</caption>\n * var many = Rx.Observable.range(1, 100);\n * var lastThree = many.takeLast(3);\n * lastThree.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeUntil}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @throws {ArgumentOutOfRangeError} When using `takeLast(i)`, it delivers an\n * ArgumentOutOrRangeError to the Observer's `error` callback if `i < 0`.\n *\n * @param {number} count The maximum number of values to emit from the end of\n * the sequence of values emitted by the source Observable.\n * @return {Observable<T>} An Observable that emits at most the last count\n * values emitted by the source Observable.\n * @method takeLast\n * @owner Observable\n */\nexport function takeLast<T>(count: number): MonoTypeOperatorFunction<T> {\n  return function takeLastOperatorFunction(source: Observable<T>): Observable<T> {\n    if (count === 0) {\n      return new EmptyObservable<T>();\n    } else {\n      return source.lift(new TakeLastOperator(count));\n    }\n  };\n}\n\nclass TakeLastOperator<T> implements Operator<T, T> {\n  constructor(private total: number) {\n    if (this.total < 0) {\n      throw new ArgumentOutOfRangeError;\n    }\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new TakeLastSubscriber(subscriber, this.total));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass TakeLastSubscriber<T> extends Subscriber<T> {\n  private ring: Array<T> = new Array();\n  private count: number = 0;\n\n  constructor(destination: Subscriber<T>, private total: number) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    const ring = this.ring;\n    const total = this.total;\n    const count = this.count++;\n\n    if (ring.length < total) {\n      ring.push(value);\n    } else {\n      const index = count % total;\n      ring[index] = value;\n    }\n  }\n\n  protected _complete(): void {\n    const destination = this.destination;\n    let count = this.count;\n\n    if (count > 0) {\n      const total = this.count >= this.total ? this.total : this.count;\n      const ring  = this.ring;\n\n      for (let i = 0; i < total; i++) {\n        const idx = (count++) % total;\n        destination.next(ring[idx]);\n      }\n    }\n\n    destination.complete();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/takeLast.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { TeardownLogic } from '../Subscription';\n\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\n\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits the values emitted by the source Observable until a `notifier`\n * Observable emits a value.\n *\n * <span class=\"informal\">Lets values pass until a second Observable,\n * `notifier`, emits something. Then, it completes.</span>\n *\n * <img src=\"./img/takeUntil.png\" width=\"100%\">\n *\n * `takeUntil` subscribes and begins mirroring the source Observable. It also\n * monitors a second Observable, `notifier` that you provide. If the `notifier`\n * emits a value or a complete notification, the output Observable stops\n * mirroring the source Observable and completes.\n *\n * @example <caption>Tick every second until the first click happens</caption>\n * var interval = Rx.Observable.interval(1000);\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = interval.takeUntil(clicks);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeWhile}\n * @see {@link skip}\n *\n * @param {Observable} notifier The Observable whose first emitted value will\n * cause the output Observable of `takeUntil` to stop emitting values from the\n * source Observable.\n * @return {Observable<T>} An Observable that emits the values from the source\n * Observable until such time as `notifier` emits its first value.\n * @method takeUntil\n * @owner Observable\n */\nexport function takeUntil<T>(notifier: Observable<any>): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new TakeUntilOperator(notifier));\n}\n\nclass TakeUntilOperator<T> implements Operator<T, T> {\n  constructor(private notifier: Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new TakeUntilSubscriber(subscriber, this.notifier));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass TakeUntilSubscriber<T, R> extends OuterSubscriber<T, R> {\n\n  constructor(destination: Subscriber<any>,\n              private notifier: Observable<any>) {\n    super(destination);\n    this.add(subscribeToResult(this, notifier));\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this.complete();\n  }\n\n  notifyComplete(): void {\n    // noop\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/takeUntil.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits values emitted by the source Observable so long as each value satisfies\n * the given `predicate`, and then completes as soon as this `predicate` is not\n * satisfied.\n *\n * <span class=\"informal\">Takes values from the source only while they pass the\n * condition given. When the first value does not satisfy, it completes.</span>\n *\n * <img src=\"./img/takeWhile.png\" width=\"100%\">\n *\n * `takeWhile` subscribes and begins mirroring the source Observable. Each value\n * emitted on the source is given to the `predicate` function which returns a\n * boolean, representing a condition to be satisfied by the source values. The\n * output Observable emits the source values until such time as the `predicate`\n * returns false, at which point `takeWhile` stops mirroring the source\n * Observable and completes the output Observable.\n *\n * @example <caption>Emit click events only while the clientX property is greater than 200</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.takeWhile(ev => ev.clientX > 200);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link take}\n * @see {@link takeLast}\n * @see {@link takeUntil}\n * @see {@link skip}\n *\n * @param {function(value: T, index: number): boolean} predicate A function that\n * evaluates a value emitted by the source Observable and returns a boolean.\n * Also takes the (zero-based) index as the second argument.\n * @return {Observable<T>} An Observable that emits the values from the source\n * Observable so long as each value satisfies the condition defined by the\n * `predicate`, then completes.\n * @method takeWhile\n * @owner Observable\n */\nexport function takeWhile<T>(predicate: (value: T, index: number) => boolean): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new TakeWhileOperator(predicate));\n}\n\nclass TakeWhileOperator<T> implements Operator<T, T> {\n  constructor(private predicate: (value: T, index: number) => boolean) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new TakeWhileSubscriber(subscriber, this.predicate));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass TakeWhileSubscriber<T> extends Subscriber<T> {\n  private index: number = 0;\n\n  constructor(destination: Subscriber<T>,\n              private predicate: (value: T, index: number) => boolean) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    const destination = this.destination;\n    let result: boolean;\n    try {\n      result = this.predicate(value, this.index++);\n    } catch (err) {\n      destination.error(err);\n      return;\n    }\n    this.nextOrComplete(value, result);\n  }\n\n  private nextOrComplete(value: T, predicateResult: boolean): void {\n    const destination = this.destination;\n    if (Boolean(predicateResult)) {\n      destination.next(value);\n    } else {\n      destination.complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/takeWhile.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { PartialObserver } from '../Observer';\nimport { TeardownLogic } from '../Subscription';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function tap<T>(next: (x: T) => void, error?: (e: any) => void, complete?: () => void): MonoTypeOperatorFunction<T>;\nexport function tap<T>(observer: PartialObserver<T>): MonoTypeOperatorFunction<T>;\n/* tslint:enable:max-line-length */\n\n/**\n * Perform a side effect for every emission on the source Observable, but return\n * an Observable that is identical to the source.\n *\n * <span class=\"informal\">Intercepts each emission on the source and runs a\n * function, but returns an output which is identical to the source as long as errors don't occur.</span>\n *\n * <img src=\"./img/do.png\" width=\"100%\">\n *\n * Returns a mirrored Observable of the source Observable, but modified so that\n * the provided Observer is called to perform a side effect for every value,\n * error, and completion emitted by the source. Any errors that are thrown in\n * the aforementioned Observer or handlers are safely sent down the error path\n * of the output Observable.\n *\n * This operator is useful for debugging your Observables for the correct values\n * or performing other side effects.\n *\n * Note: this is different to a `subscribe` on the Observable. If the Observable\n * returned by `do` is not subscribed, the side effects specified by the\n * Observer will never happen. `do` therefore simply spies on existing\n * execution, it does not trigger an execution to happen like `subscribe` does.\n *\n * @example <caption>Map every click to the clientX position of that click, while also logging the click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var positions = clicks\n *   .do(ev => console.log(ev))\n *   .map(ev => ev.clientX);\n * positions.subscribe(x => console.log(x));\n *\n * @see {@link map}\n * @see {@link subscribe}\n *\n * @param {Observer|function} [nextOrObserver] A normal Observer object or a\n * callback for `next`.\n * @param {function} [error] Callback for errors in the source.\n * @param {function} [complete] Callback for the completion of the source.\n * @return {Observable} An Observable identical to the source, but runs the\n * specified Observer or callback(s) for each item.\n * @name tap\n */\nexport function tap<T>(nextOrObserver?: PartialObserver<T> | ((x: T) => void),\n                       error?: (e: any) => void,\n                       complete?: () => void): MonoTypeOperatorFunction<T> {\n  return function tapOperatorFunction(source: Observable<T>): Observable<T> {\n    return source.lift(new DoOperator(nextOrObserver, error, complete));\n  };\n}\n\nclass DoOperator<T> implements Operator<T, T> {\n  constructor(private nextOrObserver?: PartialObserver<T> | ((x: T) => void),\n              private error?: (e: any) => void,\n              private complete?: () => void) {\n  }\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new DoSubscriber(subscriber, this.nextOrObserver, this.error, this.complete));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass DoSubscriber<T> extends Subscriber<T> {\n\n  private safeSubscriber: Subscriber<T>;\n\n  constructor(destination: Subscriber<T>,\n              nextOrObserver?: PartialObserver<T> | ((x: T) => void),\n              error?: (e: any) => void,\n              complete?: () => void) {\n    super(destination);\n\n    const safeSubscriber = new Subscriber<T>(nextOrObserver, error, complete);\n    safeSubscriber.syncErrorThrowable = true;\n    this.add(safeSubscriber);\n    this.safeSubscriber = safeSubscriber;\n  }\n\n  protected _next(value: T): void {\n    const { safeSubscriber } = this;\n    safeSubscriber.next(value);\n    if (safeSubscriber.syncErrorThrown) {\n      this.destination.error(safeSubscriber.syncErrorValue);\n    } else {\n      this.destination.next(value);\n    }\n  }\n\n  protected _error(err: any): void {\n    const { safeSubscriber } = this;\n    safeSubscriber.error(err);\n    if (safeSubscriber.syncErrorThrown) {\n      this.destination.error(safeSubscriber.syncErrorValue);\n    } else {\n      this.destination.error(err);\n    }\n  }\n\n  protected _complete(): void {\n    const { safeSubscriber } = this;\n    safeSubscriber.complete();\n    if (safeSubscriber.syncErrorThrown) {\n      this.destination.error(safeSubscriber.syncErrorValue);\n    } else {\n      this.destination.complete();\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/tap.ts","import { Operator } from '../Operator';\nimport { Observable, SubscribableOrPromise } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { Subscription, TeardownLogic } from '../Subscription';\n\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\n\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\nexport interface ThrottleConfig {\n  leading?: boolean;\n  trailing?: boolean;\n}\n\nexport const defaultThrottleConfig: ThrottleConfig = {\n  leading: true,\n  trailing: false\n};\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for a duration determined by another Observable, then repeats this\n * process.\n *\n * <span class=\"informal\">It's like {@link throttleTime}, but the silencing\n * duration is determined by a second Observable.</span>\n *\n * <img src=\"./img/throttle.png\" width=\"100%\">\n *\n * `throttle` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled by calling the `durationSelector` function with the source value,\n * which returns the \"duration\" Observable. When the duration Observable emits a\n * value or completes, the timer is disabled, and this process repeats for the\n * next source value.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.throttle(ev => Rx.Observable.interval(1000));\n * result.subscribe(x => console.log(x));\n *\n * @see {@link audit}\n * @see {@link debounce}\n * @see {@link delayWhen}\n * @see {@link sample}\n * @see {@link throttleTime}\n *\n * @param {function(value: T): SubscribableOrPromise} durationSelector A function\n * that receives a value from the source Observable, for computing the silencing\n * duration for each source value, returned as an Observable or a Promise.\n * @param {Object} config a configuration object to define `leading` and `trailing` behavior. Defaults\n * to `{ leading: true, trailing: false }`.\n * @return {Observable<T>} An Observable that performs the throttle operation to\n * limit the rate of emissions from the source.\n * @method throttle\n * @owner Observable\n */\nexport function throttle<T>(durationSelector: (value: T) => SubscribableOrPromise<number>,\n                            config: ThrottleConfig = defaultThrottleConfig): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new ThrottleOperator(durationSelector, config.leading, config.trailing));\n}\n\nclass ThrottleOperator<T> implements Operator<T, T> {\n  constructor(private durationSelector: (value: T) => SubscribableOrPromise<number>,\n              private leading: boolean,\n              private trailing: boolean) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(\n      new ThrottleSubscriber(subscriber, this.durationSelector, this.leading, this.trailing)\n    );\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc\n * @ignore\n * @extends {Ignored}\n */\nclass ThrottleSubscriber<T, R> extends OuterSubscriber<T, R> {\n  private throttled: Subscription;\n  private _trailingValue: T;\n  private _hasTrailingValue = false;\n\n  constructor(protected destination: Subscriber<T>,\n              private durationSelector: (value: T) => SubscribableOrPromise<number>,\n              private _leading: boolean,\n              private _trailing: boolean) {\n    super(destination);\n  }\n\n  protected _next(value: T): void {\n    if (this.throttled) {\n      if (this._trailing) {\n        this._hasTrailingValue = true;\n        this._trailingValue = value;\n      }\n    } else {\n      const duration = this.tryDurationSelector(value);\n      if (duration) {\n        this.add(this.throttled = subscribeToResult(this, duration));\n      }\n      if (this._leading) {\n        this.destination.next(value);\n        if (this._trailing) {\n          this._hasTrailingValue = true;\n          this._trailingValue = value;\n        }\n      }\n    }\n  }\n\n  private tryDurationSelector(value: T): SubscribableOrPromise<any> {\n    try {\n      return this.durationSelector(value);\n    } catch (err) {\n      this.destination.error(err);\n      return null;\n    }\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    const { throttled, _trailingValue, _hasTrailingValue, _trailing } = this;\n\n    this._trailingValue = null;\n    this._hasTrailingValue = false;\n\n    if (throttled) {\n      this.remove(throttled);\n      this.throttled = null;\n      throttled.unsubscribe();\n    }\n  }\n\n  private _sendTrailing() {\n    const { destination, throttled, _trailing, _trailingValue, _hasTrailingValue } = this;\n    if (throttled && _trailing && _hasTrailingValue) {\n      destination.next(_trailingValue);\n      this._trailingValue = null;\n      this._hasTrailingValue = false;\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this._sendTrailing();\n    this._unsubscribe();\n  }\n\n  notifyComplete(): void {\n    this._sendTrailing();\n    this._unsubscribe();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/throttle.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { IScheduler } from '../Scheduler';\nimport { Subscription, TeardownLogic } from '../Subscription';\nimport { async } from '../scheduler/async';\nimport { Observable } from '../Observable';\nimport { ThrottleConfig, defaultThrottleConfig } from './throttle';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n * Emits a value from the source Observable, then ignores subsequent source\n * values for `duration` milliseconds, then repeats this process.\n *\n * <span class=\"informal\">Lets a value pass, then ignores source values for the\n * next `duration` milliseconds.</span>\n *\n * <img src=\"./img/throttleTime.png\" width=\"100%\">\n *\n * `throttleTime` emits the source Observable values on the output Observable\n * when its internal timer is disabled, and ignores source values when the timer\n * is enabled. Initially, the timer is disabled. As soon as the first source\n * value arrives, it is forwarded to the output Observable, and then the timer\n * is enabled. After `duration` milliseconds (or the time unit determined\n * internally by the optional `scheduler`) has passed, the timer is disabled,\n * and this process repeats for the next source value. Optionally takes a\n * {@link IScheduler} for managing timers.\n *\n * @example <caption>Emit clicks at a rate of at most one click per second</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.throttleTime(1000);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link auditTime}\n * @see {@link debounceTime}\n * @see {@link delay}\n * @see {@link sampleTime}\n * @see {@link throttle}\n *\n * @param {number} duration Time to wait before emitting another value after\n * emitting the last value, measured in milliseconds or the time unit determined\n * internally by the optional `scheduler`.\n * @param {Scheduler} [scheduler=async] The {@link IScheduler} to use for\n * managing the timers that handle the throttling.\n * @return {Observable<T>} An Observable that performs the throttle operation to\n * limit the rate of emissions from the source.\n * @method throttleTime\n * @owner Observable\n */\nexport function throttleTime<T>(duration: number,\n                                scheduler: IScheduler = async,\n                                config: ThrottleConfig = defaultThrottleConfig): MonoTypeOperatorFunction<T> {\n  return (source: Observable<T>) => source.lift(new ThrottleTimeOperator(duration, scheduler, config.leading, config.trailing));\n}\n\nclass ThrottleTimeOperator<T> implements Operator<T, T> {\n  constructor(private duration: number,\n              private scheduler: IScheduler,\n              private leading: boolean,\n              private trailing: boolean) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(\n      new ThrottleTimeSubscriber(subscriber, this.duration, this.scheduler, this.leading, this.trailing)\n    );\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass ThrottleTimeSubscriber<T> extends Subscriber<T> {\n  private throttled: Subscription;\n  private _hasTrailingValue: boolean = false;\n  private _trailingValue: T = null;\n\n  constructor(destination: Subscriber<T>,\n              private duration: number,\n              private scheduler: IScheduler,\n              private leading: boolean,\n              private trailing: boolean) {\n    super(destination);\n  }\n\n  protected _next(value: T) {\n    if (this.throttled) {\n      if (this.trailing) {\n        this._trailingValue = value;\n        this._hasTrailingValue = true;\n      }\n    } else {\n      this.add(this.throttled = this.scheduler.schedule(dispatchNext, this.duration, { subscriber: this }));\n      if (this.leading) {\n        this.destination.next(value);\n      }\n    }\n  }\n\n  clearThrottle() {\n    const throttled = this.throttled;\n    if (throttled) {\n      if (this.trailing && this._hasTrailingValue) {\n        this.destination.next(this._trailingValue);\n        this._trailingValue = null;\n        this._hasTrailingValue = false;\n      }\n      throttled.unsubscribe();\n      this.remove(throttled);\n      this.throttled = null;\n    }\n  }\n}\n\ninterface DispatchArg<T> {\n  subscriber: ThrottleTimeSubscriber<T>;\n}\n\nfunction dispatchNext<T>(arg: DispatchArg<T>) {\n  const { subscriber } = arg;\n  subscriber.clearThrottle();\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/throttleTime.ts","import { Operator } from '../Operator';\nimport { Observable } from '../Observable';\nimport { Subscriber } from '../Subscriber';\nimport { IScheduler } from '../Scheduler';\nimport { async } from '../scheduler/async';\nimport { OperatorFunction } from '../interfaces';\n\nexport function timeInterval<T>(scheduler: IScheduler = async): OperatorFunction<T, TimeInterval<T>> {\n  return (source: Observable<T>) => source.lift(new TimeIntervalOperator(scheduler));\n}\n\nexport class TimeInterval<T> {\n  constructor(public value: T, public interval: number) {\n\n  }\n};\n\nclass TimeIntervalOperator<T> implements Operator<T, TimeInterval<T>> {\n  constructor(private scheduler: IScheduler) {\n\n  }\n\n  call(observer: Subscriber<TimeInterval<T>>, source: any): any {\n    return source.subscribe(new TimeIntervalSubscriber(observer, this.scheduler));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass TimeIntervalSubscriber<T> extends Subscriber<T> {\n  private lastTime: number = 0;\n\n  constructor(destination: Subscriber<TimeInterval<T>>, private scheduler: IScheduler) {\n    super(destination);\n\n    this.lastTime = scheduler.now();\n  }\n\n  protected _next(value: T) {\n    let now = this.scheduler.now();\n    let span = now - this.lastTime;\n    this.lastTime = now;\n\n    this.destination.next(new TimeInterval(value, span));\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/timeInterval.ts","import { Action } from '../scheduler/Action';\nimport { async } from '../scheduler/async';\nimport { isDate } from '../util/isDate';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { IScheduler } from '../Scheduler';\nimport { Observable } from '../Observable';\nimport { TeardownLogic } from '../Subscription';\nimport { TimeoutError } from '../util/TimeoutError';\nimport { MonoTypeOperatorFunction } from '../interfaces';\n\n/**\n *\n * Errors if Observable does not emit a value in given time span.\n *\n * <span class=\"informal\">Timeouts on Observable that doesn't emit values fast enough.</span>\n *\n * <img src=\"./img/timeout.png\" width=\"100%\">\n *\n * `timeout` operator accepts as an argument either a number or a Date.\n *\n * If number was provided, it returns an Observable that behaves like a source\n * Observable, unless there is a period of time where there is no value emitted.\n * So if you provide `100` as argument and first value comes after 50ms from\n * the moment of subscription, this value will be simply re-emitted by the resulting\n * Observable. If however after that 100ms passes without a second value being emitted,\n * stream will end with an error and source Observable will be unsubscribed.\n * These checks are performed throughout whole lifecycle of Observable - from the moment\n * it was subscribed to, until it completes or errors itself. Thus every value must be\n * emitted within specified period since previous value.\n *\n * If provided argument was Date, returned Observable behaves differently. It throws\n * if Observable did not complete before provided Date. This means that periods between\n * emission of particular values do not matter in this case. If Observable did not complete\n * before provided Date, source Observable will be unsubscribed. Other than that, resulting\n * stream behaves just as source Observable.\n *\n * `timeout` accepts also a Scheduler as a second parameter. It is used to schedule moment (or moments)\n * when returned Observable will check if source stream emitted value or completed.\n *\n * @example <caption>Check if ticks are emitted within certain timespan</caption>\n * const seconds = Rx.Observable.interval(1000);\n *\n * seconds.timeout(1100) // Let's use bigger timespan to be safe,\n *                       // since `interval` might fire a bit later then scheduled.\n * .subscribe(\n *     value => console.log(value), // Will emit numbers just as regular `interval` would.\n *     err => console.log(err) // Will never be called.\n * );\n *\n * seconds.timeout(900).subscribe(\n *     value => console.log(value), // Will never be called.\n *     err => console.log(err) // Will emit error before even first value is emitted,\n *                             // since it did not arrive within 900ms period.\n * );\n *\n * @example <caption>Use Date to check if Observable completed</caption>\n * const seconds = Rx.Observable.interval(1000);\n *\n * seconds.timeout(new Date(\"December 17, 2020 03:24:00\"))\n * .subscribe(\n *     value => console.log(value), // Will emit values as regular `interval` would\n *                                  // until December 17, 2020 at 03:24:00.\n *     err => console.log(err) // On December 17, 2020 at 03:24:00 it will emit an error,\n *                             // since Observable did not complete by then.\n * );\n *\n * @see {@link timeoutWith}\n *\n * @param {number|Date} due Number specifying period within which Observable must emit values\n *                          or Date specifying before when Observable should complete\n * @param {Scheduler} [scheduler] Scheduler controlling when timeout checks occur.\n * @return {Observable<T>} Observable that mirrors behaviour of source, unless timeout checks fail.\n * @method timeout\n * @owner Observable\n */\nexport function timeout<T>(due: number | Date,\n                           scheduler: IScheduler = async): MonoTypeOperatorFunction<T> {\n  const absoluteTimeout = isDate(due);\n  const waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(<number>due);\n  return (source: Observable<T>) => source.lift(new TimeoutOperator(waitFor, absoluteTimeout, scheduler, new TimeoutError()));\n}\n\nclass TimeoutOperator<T> implements Operator<T, T> {\n  constructor(private waitFor: number,\n              private absoluteTimeout: boolean,\n              private scheduler: IScheduler,\n              private errorInstance: TimeoutError) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new TimeoutSubscriber<T>(\n      subscriber, this.absoluteTimeout, this.waitFor, this.scheduler, this.errorInstance\n    ));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass TimeoutSubscriber<T> extends Subscriber<T> {\n\n  private action: Action<TimeoutSubscriber<T>> = null;\n\n  constructor(destination: Subscriber<T>,\n              private absoluteTimeout: boolean,\n              private waitFor: number,\n              private scheduler: IScheduler,\n              private errorInstance: TimeoutError) {\n    super(destination);\n    this.scheduleTimeout();\n  }\n\n  private static dispatchTimeout<T>(subscriber: TimeoutSubscriber<T>): void {\n    subscriber.error(subscriber.errorInstance);\n  }\n\n  private scheduleTimeout(): void {\n    const { action } = this;\n    if (action) {\n      // Recycle the action if we've already scheduled one. All the production\n      // Scheduler Actions mutate their state/delay time and return themeselves.\n      // VirtualActions are immutable, so they create and return a clone. In this\n      // case, we need to set the action reference to the most recent VirtualAction,\n      // to ensure that's the one we clone from next time.\n      this.action = (<Action<TimeoutSubscriber<T>>> action.schedule(this, this.waitFor));\n    } else {\n      this.add(this.action = (<Action<TimeoutSubscriber<T>>> this.scheduler.schedule(\n        TimeoutSubscriber.dispatchTimeout, this.waitFor, this\n      )));\n    }\n  }\n\n  protected _next(value: T): void {\n    if (!this.absoluteTimeout) {\n      this.scheduleTimeout();\n    }\n    super._next(value);\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    this.action = null;\n    this.scheduler = null;\n    this.errorInstance = null;\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/timeout.ts","import { Action } from '../scheduler/Action';\nimport { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { IScheduler } from '../Scheduler';\nimport { async } from '../scheduler/async';\nimport { TeardownLogic } from '../Subscription';\nimport { Observable, ObservableInput } from '../Observable';\nimport { isDate } from '../util/isDate';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction, MonoTypeOperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function timeoutWith<T>(due: number | Date, withObservable: ObservableInput<T>, scheduler?: IScheduler): MonoTypeOperatorFunction<T>;\nexport function timeoutWith<T, R>(due: number | Date, withObservable: ObservableInput<R>, scheduler?: IScheduler): OperatorFunction<T, T | R>;\n/* tslint:enable:max-line-length */\n\n/**\n *\n * Errors if Observable does not emit a value in given time span, in case of which\n * subscribes to the second Observable.\n *\n * <span class=\"informal\">It's a version of `timeout` operator that let's you specify fallback Observable.</span>\n *\n * <img src=\"./img/timeoutWith.png\" width=\"100%\">\n *\n * `timeoutWith` is a variation of `timeout` operator. It behaves exactly the same,\n * still accepting as a first argument either a number or a Date, which control - respectively -\n * when values of source Observable should be emitted or when it should complete.\n *\n * The only difference is that it accepts a second, required parameter. This parameter\n * should be an Observable which will be subscribed when source Observable fails any timeout check.\n * So whenever regular `timeout` would emit an error, `timeoutWith` will instead start re-emitting\n * values from second Observable. Note that this fallback Observable is not checked for timeouts\n * itself, so it can emit values and complete at arbitrary points in time. From the moment of a second\n * subscription, Observable returned from `timeoutWith` simply mirrors fallback stream. When that\n * stream completes, it completes as well.\n *\n * Scheduler, which in case of `timeout` is provided as as second argument, can be still provided\n * here - as a third, optional parameter. It still is used to schedule timeout checks and -\n * as a consequence - when second Observable will be subscribed, since subscription happens\n * immediately after failing check.\n *\n * @example <caption>Add fallback observable</caption>\n * const seconds = Rx.Observable.interval(1000);\n * const minutes = Rx.Observable.interval(60 * 1000);\n *\n * seconds.timeoutWith(900, minutes)\n *     .subscribe(\n *         value => console.log(value), // After 900ms, will start emitting `minutes`,\n *                                      // since first value of `seconds` will not arrive fast enough.\n *         err => console.log(err) // Would be called after 900ms in case of `timeout`,\n *                                 // but here will never be called.\n *     );\n *\n * @param {number|Date} due Number specifying period within which Observable must emit values\n *                          or Date specifying before when Observable should complete\n * @param {Observable<T>} withObservable Observable which will be subscribed if source fails timeout check.\n * @param {Scheduler} [scheduler] Scheduler controlling when timeout checks occur.\n * @return {Observable<T>} Observable that mirrors behaviour of source or, when timeout check fails, of an Observable\n *                          passed as a second parameter.\n * @method timeoutWith\n * @owner Observable\n */\nexport function timeoutWith<T, R>(due: number | Date,\n                                  withObservable: ObservableInput<R>,\n                                  scheduler: IScheduler = async): OperatorFunction<T, T | R> {\n  return (source: Observable<T>) => {\n    let absoluteTimeout = isDate(due);\n    let waitFor = absoluteTimeout ? (+due - scheduler.now()) : Math.abs(<number>due);\n    return source.lift(new TimeoutWithOperator(waitFor, absoluteTimeout, withObservable, scheduler));\n  };\n}\n\nclass TimeoutWithOperator<T> implements Operator<T, T> {\n  constructor(private waitFor: number,\n              private absoluteTimeout: boolean,\n              private withObservable: ObservableInput<any>,\n              private scheduler: IScheduler) {\n  }\n\n  call(subscriber: Subscriber<T>, source: any): TeardownLogic {\n    return source.subscribe(new TimeoutWithSubscriber(\n      subscriber, this.absoluteTimeout, this.waitFor, this.withObservable, this.scheduler\n    ));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass TimeoutWithSubscriber<T, R> extends OuterSubscriber<T, R> {\n\n  private action: Action<TimeoutWithSubscriber<T, R>> = null;\n\n  constructor(destination: Subscriber<T>,\n              private absoluteTimeout: boolean,\n              private waitFor: number,\n              private withObservable: ObservableInput<any>,\n              private scheduler: IScheduler) {\n    super(destination);\n    this.scheduleTimeout();\n  }\n\n  private static dispatchTimeout<T, R>(subscriber: TimeoutWithSubscriber<T, R>): void {\n    const { withObservable } = subscriber;\n    (<any> subscriber)._unsubscribeAndRecycle();\n    subscriber.add(subscribeToResult(subscriber, withObservable));\n  }\n\n  private scheduleTimeout(): void {\n    const { action } = this;\n    if (action) {\n      // Recycle the action if we've already scheduled one. All the production\n      // Scheduler Actions mutate their state/delay time and return themeselves.\n      // VirtualActions are immutable, so they create and return a clone. In this\n      // case, we need to set the action reference to the most recent VirtualAction,\n      // to ensure that's the one we clone from next time.\n      this.action = (<Action<TimeoutWithSubscriber<T, R>>> action.schedule(this, this.waitFor));\n    } else {\n      this.add(this.action = (<Action<TimeoutWithSubscriber<T, R>>> this.scheduler.schedule(\n        TimeoutWithSubscriber.dispatchTimeout, this.waitFor, this\n      )));\n    }\n  }\n\n  protected _next(value: T): void {\n    if (!this.absoluteTimeout) {\n      this.scheduleTimeout();\n    }\n    super._next(value);\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    this.action = null;\n    this.scheduler = null;\n    this.withObservable = null;\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/timeoutWith.ts","\nimport { IScheduler } from '../Scheduler';\nimport { async } from '../scheduler/async';\nimport { OperatorFunction } from '../interfaces';\nimport { map } from './map';\n\n/**\n * @param scheduler\n * @return {Observable<Timestamp<any>>|WebSocketSubject<T>|Observable<T>}\n * @method timestamp\n * @owner Observable\n */\nexport function timestamp<T>(scheduler: IScheduler = async): OperatorFunction<T, Timestamp<T>> {\n  return map((value: T) => new Timestamp(value, scheduler.now()));\n  // return (source: Observable<T>) => source.lift(new TimestampOperator(scheduler));\n}\n\nexport class Timestamp<T> {\n  constructor(public value: T, public timestamp: number) {\n  }\n};\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/timestamp.ts","import { reduce } from './reduce';\nimport { OperatorFunction } from '../interfaces';\n\nfunction toArrayReducer<T>(arr: T[], item: T, index: number) {\n  if (index === 0) {\n    return [item];\n  }\n  arr.push(item);\n  return arr;\n}\n\nexport function toArray<T>(): OperatorFunction<T, T[]> {\n  return reduce(toArrayReducer, []) as OperatorFunction<T, T[]>;\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/toArray.ts","import { Observable } from '../Observable';\nimport { OperatorFunction } from '../interfaces';\nimport { Subject } from '../Subject';\nimport { Subscriber } from '../Subscriber';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { Operator } from '../Operator';\n\n/**\n * Branch out the source Observable values as a nested Observable whenever\n * `windowBoundaries` emits.\n *\n * <span class=\"informal\">It's like {@link buffer}, but emits a nested Observable\n * instead of an array.</span>\n *\n * <img src=\"./img/window.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits connected, non-overlapping\n * windows. It emits the current window and opens a new one whenever the\n * Observable `windowBoundaries` emits an item. Because each window is an\n * Observable, the output is a higher-order Observable.\n *\n * @example <caption>In every window of 1 second each, emit at most 2 click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var interval = Rx.Observable.interval(1000);\n * var result = clicks.window(interval)\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link windowWhen}\n * @see {@link buffer}\n *\n * @param {Observable<any>} windowBoundaries An Observable that completes the\n * previous window and starts a new window.\n * @return {Observable<Observable<T>>} An Observable of windows, which are\n * Observables emitting values of the source Observable.\n * @method window\n * @owner Observable\n */\nexport function window<T>(windowBoundaries: Observable<any>): OperatorFunction<T, Observable<T>> {\n  return function windowOperatorFunction(source: Observable<T>) {\n    return source.lift(new WindowOperator(windowBoundaries));\n  };\n}\n\nclass WindowOperator<T> implements Operator<T, Observable<T>> {\n\n  constructor(private windowBoundaries: Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<Observable<T>>, source: any): any {\n    const windowSubscriber = new WindowSubscriber(subscriber);\n    const sourceSubscription = source.subscribe(windowSubscriber);\n    if (!sourceSubscription.closed) {\n      windowSubscriber.add(subscribeToResult(windowSubscriber, this.windowBoundaries));\n    }\n    return sourceSubscription;\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass WindowSubscriber<T> extends OuterSubscriber<T, any> {\n\n  private window: Subject<T> = new Subject<T>();\n\n  constructor(destination: Subscriber<Observable<T>>) {\n    super(destination);\n    destination.next(this.window);\n  }\n\n  notifyNext(outerValue: T, innerValue: any,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, any>): void {\n    this.openWindow();\n  }\n\n  notifyError(error: any, innerSub: InnerSubscriber<T, any>): void {\n    this._error(error);\n  }\n\n  notifyComplete(innerSub: InnerSubscriber<T, any>): void {\n    this._complete();\n  }\n\n  protected _next(value: T): void {\n    this.window.next(value);\n  }\n\n  protected _error(err: any): void {\n    this.window.error(err);\n    this.destination.error(err);\n  }\n\n  protected _complete(): void {\n    this.window.complete();\n    this.destination.complete();\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    this.window = null;\n  }\n\n  private openWindow(): void  {\n    const prevWindow = this.window;\n    if (prevWindow) {\n      prevWindow.complete();\n    }\n    const destination = this.destination;\n    const newWindow = this.window = new Subject<T>();\n    destination.next(newWindow);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/window.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Branch out the source Observable values as a nested Observable with each\n * nested Observable emitting at most `windowSize` values.\n *\n * <span class=\"informal\">It's like {@link bufferCount}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowCount.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits windows every `startWindowEvery`\n * items, each containing no more than `windowSize` items. When the source\n * Observable completes or encounters an error, the output Observable emits\n * the current window and propagates the notification from the source\n * Observable. If `startWindowEvery` is not provided, then new windows are\n * started immediately at the start of the source and when each window completes\n * with size `windowSize`.\n *\n * @example <caption>Ignore every 3rd click event, starting from the first one</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowCount(3)\n *   .map(win => win.skip(1)) // skip first of every 3 clicks\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Ignore every 3rd click event, starting from the third one</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowCount(2, 3)\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link windowWhen}\n * @see {@link bufferCount}\n *\n * @param {number} windowSize The maximum number of values emitted by each\n * window.\n * @param {number} [startWindowEvery] Interval at which to start a new window.\n * For example if `startWindowEvery` is `2`, then a new window will be started\n * on every other value from the source. A new window is started at the\n * beginning of the source by default.\n * @return {Observable<Observable<T>>} An Observable of windows, which in turn\n * are Observable of values.\n * @method windowCount\n * @owner Observable\n */\nexport function windowCount<T>(windowSize: number,\n                               startWindowEvery: number = 0): OperatorFunction<T, Observable<T>> {\n  return function windowCountOperatorFunction(source: Observable<T>) {\n    return source.lift(new WindowCountOperator<T>(windowSize, startWindowEvery));\n  };\n}\n\nclass WindowCountOperator<T> implements Operator<T, Observable<T>> {\n\n  constructor(private windowSize: number,\n              private startWindowEvery: number) {\n  }\n\n  call(subscriber: Subscriber<Observable<T>>, source: any): any {\n    return source.subscribe(new WindowCountSubscriber(subscriber, this.windowSize, this.startWindowEvery));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass WindowCountSubscriber<T> extends Subscriber<T> {\n  private windows: Subject<T>[] = [ new Subject<T>() ];\n  private count: number = 0;\n\n  constructor(protected destination: Subscriber<Observable<T>>,\n              private windowSize: number,\n              private startWindowEvery: number) {\n    super(destination);\n    destination.next(this.windows[0]);\n  }\n\n  protected _next(value: T) {\n    const startWindowEvery = (this.startWindowEvery > 0) ? this.startWindowEvery : this.windowSize;\n    const destination = this.destination;\n    const windowSize = this.windowSize;\n    const windows = this.windows;\n    const len = windows.length;\n\n    for (let i = 0; i < len && !this.closed; i++) {\n      windows[i].next(value);\n    }\n    const c = this.count - windowSize + 1;\n    if (c >= 0 && c % startWindowEvery === 0 && !this.closed) {\n      windows.shift().complete();\n    }\n    if (++this.count % startWindowEvery === 0 && !this.closed) {\n      const window = new Subject<T>();\n      windows.push(window);\n      destination.next(window);\n    }\n  }\n\n  protected _error(err: any) {\n    const windows = this.windows;\n    if (windows) {\n      while (windows.length > 0 && !this.closed) {\n        windows.shift().error(err);\n      }\n    }\n    this.destination.error(err);\n  }\n\n  protected _complete() {\n    const windows = this.windows;\n    if (windows) {\n      while (windows.length > 0 && !this.closed) {\n        windows.shift().complete();\n      }\n    }\n    this.destination.complete();\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    this.count = 0;\n    this.windows = null;\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/windowCount.ts","import { IScheduler } from '../Scheduler';\nimport { Action } from '../scheduler/Action';\nimport { Subject } from '../Subject';\nimport { Operator } from '../Operator';\nimport { async } from '../scheduler/async';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subscription } from '../Subscription';\nimport { isNumeric } from '../util/isNumeric';\nimport { isScheduler } from '../util/isScheduler';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Branch out the source Observable values as a nested Observable periodically\n * in time.\n *\n * <span class=\"informal\">It's like {@link bufferTime}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowTime.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable starts a new window periodically, as\n * determined by the `windowCreationInterval` argument. It emits each window\n * after a fixed timespan, specified by the `windowTimeSpan` argument. When the\n * source Observable completes or encounters an error, the output Observable\n * emits the current window and propagates the notification from the source\n * Observable. If `windowCreationInterval` is not provided, the output\n * Observable starts a new window when the previous window of duration\n * `windowTimeSpan` completes. If `maxWindowCount` is provided, each window\n * will emit at most fixed number of values. Window will complete immediately\n * after emitting last value and next one still will open as specified by\n * `windowTimeSpan` and `windowCreationInterval` arguments.\n *\n * @example <caption>In every window of 1 second each, emit at most 2 click events</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowTime(1000)\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Every 5 seconds start a window 1 second long, and emit at most 2 click events per window</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowTime(1000, 5000)\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @example <caption>Same as example above but with maxWindowCount instead of take</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks.windowTime(1000, 5000, 2) // each window has still at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n\n * @see {@link window}\n * @see {@link windowCount}\n * @see {@link windowToggle}\n * @see {@link windowWhen}\n * @see {@link bufferTime}\n *\n * @param {number} windowTimeSpan The amount of time to fill each window.\n * @param {number} [windowCreationInterval] The interval at which to start new\n * windows.\n * @param {number} [maxWindowSize=Number.POSITIVE_INFINITY] Max number of\n * values each window can emit before completion.\n * @param {Scheduler} [scheduler=async] The scheduler on which to schedule the\n * intervals that determine window boundaries.\n * @return {Observable<Observable<T>>} An observable of windows, which in turn\n * are Observables.\n * @method windowTime\n * @owner Observable\n */\nexport function windowTime<T>(windowTimeSpan: number,\n                              scheduler?: IScheduler): OperatorFunction<T, Observable<T>>;\nexport function windowTime<T>(windowTimeSpan: number,\n                              windowCreationInterval: number,\n                              scheduler?: IScheduler): OperatorFunction<T, Observable<T>>;\nexport function windowTime<T>(windowTimeSpan: number,\n                              windowCreationInterval: number,\n                              maxWindowSize: number,\n                              scheduler?: IScheduler): OperatorFunction<T, Observable<T>>;\n\nexport function windowTime<T>(windowTimeSpan: number): OperatorFunction<T, Observable<T>> {\n  let scheduler: IScheduler = async;\n  let windowCreationInterval: number = null;\n  let maxWindowSize: number = Number.POSITIVE_INFINITY;\n\n  if (isScheduler(arguments[3])) {\n    scheduler = arguments[3];\n  }\n\n  if (isScheduler(arguments[2])) {\n    scheduler = arguments[2];\n  } else if (isNumeric(arguments[2])) {\n    maxWindowSize = arguments[2];\n  }\n\n  if (isScheduler(arguments[1])) {\n    scheduler = arguments[1];\n  } else if (isNumeric(arguments[1])) {\n    windowCreationInterval = arguments[1];\n  }\n\n  return function windowTimeOperatorFunction(source: Observable<T>) {\n    return source.lift(new WindowTimeOperator<T>(windowTimeSpan, windowCreationInterval, maxWindowSize, scheduler));\n  };\n}\n\nclass WindowTimeOperator<T> implements Operator<T, Observable<T>> {\n\n  constructor(private windowTimeSpan: number,\n              private windowCreationInterval: number | null,\n              private maxWindowSize: number,\n              private scheduler: IScheduler) {\n  }\n\n  call(subscriber: Subscriber<Observable<T>>, source: any): any {\n    return source.subscribe(new WindowTimeSubscriber(\n      subscriber, this.windowTimeSpan, this.windowCreationInterval, this.maxWindowSize, this.scheduler\n    ));\n  }\n}\n\ninterface CreationState<T> {\n  windowTimeSpan: number;\n  windowCreationInterval: number;\n  subscriber: WindowTimeSubscriber<T>;\n  scheduler: IScheduler;\n}\n\ninterface TimeSpanOnlyState<T> {\n    window: CountedSubject<T>;\n    windowTimeSpan: number;\n    subscriber: WindowTimeSubscriber<T>;\n  }\n\ninterface CloseWindowContext<T> {\n  action: Action<CreationState<T>>;\n  subscription: Subscription;\n}\n\ninterface CloseState<T> {\n  subscriber: WindowTimeSubscriber<T>;\n  window: CountedSubject<T>;\n  context: CloseWindowContext<T>;\n}\n\nclass CountedSubject<T> extends Subject<T> {\n  private _numberOfNextedValues: number = 0;\n\n  next(value?: T): void {\n    this._numberOfNextedValues++;\n    super.next(value);\n  }\n\n  get numberOfNextedValues(): number {\n    return this._numberOfNextedValues;\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass WindowTimeSubscriber<T> extends Subscriber<T> {\n  private windows: CountedSubject<T>[] = [];\n\n  constructor(protected destination: Subscriber<Observable<T>>,\n              private windowTimeSpan: number,\n              private windowCreationInterval: number | null,\n              private maxWindowSize: number,\n              private scheduler: IScheduler) {\n    super(destination);\n\n    const window = this.openWindow();\n    if (windowCreationInterval !== null && windowCreationInterval >= 0) {\n      const closeState: CloseState<T> = { subscriber: this, window, context: <any>null };\n      const creationState: CreationState<T> = { windowTimeSpan, windowCreationInterval, subscriber: this, scheduler };\n      this.add(scheduler.schedule(dispatchWindowClose, windowTimeSpan, closeState));\n      this.add(scheduler.schedule(dispatchWindowCreation, windowCreationInterval, creationState));\n    } else {\n      const timeSpanOnlyState: TimeSpanOnlyState<T> = { subscriber: this, window, windowTimeSpan };\n      this.add(scheduler.schedule(dispatchWindowTimeSpanOnly, windowTimeSpan, timeSpanOnlyState));\n    }\n  }\n\n  protected _next(value: T): void {\n    const windows = this.windows;\n    const len = windows.length;\n    for (let i = 0; i < len; i++) {\n      const window = windows[i];\n      if (!window.closed) {\n        window.next(value);\n        if (window.numberOfNextedValues >= this.maxWindowSize) {\n          this.closeWindow(window);\n        }\n      }\n    }\n  }\n\n  protected _error(err: any): void {\n    const windows = this.windows;\n    while (windows.length > 0) {\n      windows.shift().error(err);\n    }\n    this.destination.error(err);\n  }\n\n  protected _complete(): void {\n    const windows = this.windows;\n    while (windows.length > 0) {\n      const window = windows.shift();\n      if (!window.closed) {\n        window.complete();\n      }\n    }\n    this.destination.complete();\n  }\n\n  public openWindow(): CountedSubject<T> {\n    const window = new CountedSubject<T>();\n    this.windows.push(window);\n    const destination = this.destination;\n    destination.next(window);\n    return window;\n  }\n\n  public closeWindow(window: CountedSubject<T>): void {\n    window.complete();\n    const windows = this.windows;\n    windows.splice(windows.indexOf(window), 1);\n  }\n}\n\nfunction dispatchWindowTimeSpanOnly<T>(this: Action<TimeSpanOnlyState<T>>, state: TimeSpanOnlyState<T>): void {\n  const { subscriber, windowTimeSpan, window } = state;\n  if (window) {\n    subscriber.closeWindow(window);\n  }\n  state.window = subscriber.openWindow();\n  this.schedule(state, windowTimeSpan);\n}\n\nfunction dispatchWindowCreation<T>(this: Action<CreationState<T>>, state: CreationState<T>): void {\n  const { windowTimeSpan, subscriber, scheduler, windowCreationInterval } = state;\n  const window = subscriber.openWindow();\n  const action = this;\n  let context: CloseWindowContext<T> = { action, subscription: <any>null };\n  const timeSpanState: CloseState<T> = { subscriber, window, context };\n  context.subscription = scheduler.schedule(dispatchWindowClose, windowTimeSpan, timeSpanState);\n  action.add(context.subscription);\n  action.schedule(state, windowCreationInterval);\n}\n\nfunction dispatchWindowClose<T>(state: CloseState<T>): void {\n  const { subscriber, window, context } = state;\n  if (context && context.action && context.subscription) {\n    context.action.remove(context.subscription);\n  }\n  subscriber.closeWindow(window);\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/windowTime.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nimport { Subscription } from '../Subscription';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Branch out the source Observable values as a nested Observable starting from\n * an emission from `openings` and ending when the output of `closingSelector`\n * emits.\n *\n * <span class=\"informal\">It's like {@link bufferToggle}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowToggle.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits windows that contain those items\n * emitted by the source Observable between the time when the `openings`\n * Observable emits an item and when the Observable returned by\n * `closingSelector` emits an item.\n *\n * @example <caption>Every other second, emit the click events from the next 500ms</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var openings = Rx.Observable.interval(1000);\n * var result = clicks.windowToggle(openings, i =>\n *   i % 2 ? Rx.Observable.interval(500) : Rx.Observable.empty()\n * ).mergeAll();\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowWhen}\n * @see {@link bufferToggle}\n *\n * @param {Observable<O>} openings An observable of notifications to start new\n * windows.\n * @param {function(value: O): Observable} closingSelector A function that takes\n * the value emitted by the `openings` observable and returns an Observable,\n * which, when it emits (either `next` or `complete`), signals that the\n * associated window should complete.\n * @return {Observable<Observable<T>>} An observable of windows, which in turn\n * are Observables.\n * @method windowToggle\n * @owner Observable\n */\nexport function windowToggle<T, O>(openings: Observable<O>,\n                                   closingSelector: (openValue: O) => Observable<any>): OperatorFunction<T, Observable<T>> {\n  return (source: Observable<T>) => source.lift(new WindowToggleOperator<T, O>(openings, closingSelector));\n}\n\nclass WindowToggleOperator<T, O> implements Operator<T, Observable<T>> {\n\n  constructor(private openings: Observable<O>,\n              private closingSelector: (openValue: O) => Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<Observable<T>>, source: any): any {\n    return source.subscribe(new WindowToggleSubscriber(\n      subscriber, this.openings, this.closingSelector\n    ));\n  }\n}\n\ninterface WindowContext<T> {\n  window: Subject<T>;\n  subscription: Subscription;\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass WindowToggleSubscriber<T, O> extends OuterSubscriber<T, any> {\n  private contexts: WindowContext<T>[] = [];\n  private openSubscription: Subscription;\n\n  constructor(destination: Subscriber<Observable<T>>,\n              private openings: Observable<O>,\n              private closingSelector: (openValue: O) => Observable<any>) {\n    super(destination);\n    this.add(this.openSubscription = subscribeToResult(this, openings, openings));\n  }\n\n  protected _next(value: T) {\n    const { contexts } = this;\n    if (contexts) {\n      const len = contexts.length;\n      for (let i = 0; i < len; i++) {\n        contexts[i].window.next(value);\n      }\n    }\n  }\n\n  protected _error(err: any) {\n\n    const { contexts } = this;\n    this.contexts = null;\n\n    if (contexts) {\n      const len = contexts.length;\n      let index = -1;\n\n      while (++index < len) {\n        const context = contexts[index];\n        context.window.error(err);\n        context.subscription.unsubscribe();\n      }\n    }\n\n    super._error(err);\n  }\n\n  protected _complete() {\n    const { contexts } = this;\n    this.contexts = null;\n    if (contexts) {\n      const len = contexts.length;\n      let index = -1;\n      while (++index < len) {\n        const context = contexts[index];\n        context.window.complete();\n        context.subscription.unsubscribe();\n      }\n    }\n    super._complete();\n  }\n\n  /** @deprecated internal use only */ _unsubscribe() {\n    const { contexts } = this;\n    this.contexts = null;\n    if (contexts) {\n      const len = contexts.length;\n      let index = -1;\n      while (++index < len) {\n        const context = contexts[index];\n        context.window.unsubscribe();\n        context.subscription.unsubscribe();\n      }\n    }\n  }\n\n  notifyNext(outerValue: any, innerValue: any,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, any>): void {\n\n    if (outerValue === this.openings) {\n\n      const { closingSelector } = this;\n      const closingNotifier = tryCatch(closingSelector)(innerValue);\n\n      if (closingNotifier === errorObject) {\n        return this.error(errorObject.e);\n      } else {\n        const window = new Subject<T>();\n        const subscription = new Subscription();\n        const context = { window, subscription };\n        this.contexts.push(context);\n        const innerSubscription = subscribeToResult(this, closingNotifier, context);\n\n        if (innerSubscription.closed) {\n          this.closeWindow(this.contexts.length - 1);\n        } else {\n          (<any> innerSubscription).context = context;\n          subscription.add(innerSubscription);\n        }\n\n        this.destination.next(window);\n\n      }\n    } else {\n      this.closeWindow(this.contexts.indexOf(outerValue));\n    }\n  }\n\n  notifyError(err: any): void {\n    this.error(err);\n  }\n\n  notifyComplete(inner: Subscription): void {\n    if (inner !== this.openSubscription) {\n      this.closeWindow(this.contexts.indexOf((<any> inner).context));\n    }\n  }\n\n  private closeWindow(index: number): void {\n    if (index === -1) {\n      return;\n    }\n\n    const { contexts } = this;\n    const context = contexts[index];\n    const { window, subscription } = context;\n    contexts.splice(index, 1);\n    window.complete();\n    subscription.unsubscribe();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/windowToggle.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable } from '../Observable';\nimport { Subject } from '../Subject';\nimport { Subscription } from '../Subscription';\nimport { tryCatch } from '../util/tryCatch';\nimport { errorObject } from '../util/errorObject';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/**\n * Branch out the source Observable values as a nested Observable using a\n * factory function of closing Observables to determine when to start a new\n * window.\n *\n * <span class=\"informal\">It's like {@link bufferWhen}, but emits a nested\n * Observable instead of an array.</span>\n *\n * <img src=\"./img/windowWhen.png\" width=\"100%\">\n *\n * Returns an Observable that emits windows of items it collects from the source\n * Observable. The output Observable emits connected, non-overlapping windows.\n * It emits the current window and opens a new one whenever the Observable\n * produced by the specified `closingSelector` function emits an item. The first\n * window is opened immediately when subscribing to the output Observable.\n *\n * @example <caption>Emit only the first two clicks events in every window of [1-5] random seconds</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var result = clicks\n *   .windowWhen(() => Rx.Observable.interval(1000 + Math.random() * 4000))\n *   .map(win => win.take(2)) // each window has at most 2 emissions\n *   .mergeAll(); // flatten the Observable-of-Observables\n * result.subscribe(x => console.log(x));\n *\n * @see {@link window}\n * @see {@link windowCount}\n * @see {@link windowTime}\n * @see {@link windowToggle}\n * @see {@link bufferWhen}\n *\n * @param {function(): Observable} closingSelector A function that takes no\n * arguments and returns an Observable that signals (on either `next` or\n * `complete`) when to close the previous window and start a new one.\n * @return {Observable<Observable<T>>} An observable of windows, which in turn\n * are Observables.\n * @method windowWhen\n * @owner Observable\n */\nexport function windowWhen<T>(closingSelector: () => Observable<any>): OperatorFunction<T, Observable<T>> {\n  return function windowWhenOperatorFunction(source: Observable<T>) {\n    return source.lift(new WindowOperator<T>(closingSelector));\n  };\n}\n\nclass WindowOperator<T> implements Operator<T, Observable<T>> {\n  constructor(private closingSelector: () => Observable<any>) {\n  }\n\n  call(subscriber: Subscriber<Observable<T>>, source: any): any {\n    return source.subscribe(new WindowSubscriber(subscriber, this.closingSelector));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass WindowSubscriber<T> extends OuterSubscriber<T, any> {\n  private window: Subject<T>;\n  private closingNotification: Subscription;\n\n  constructor(protected destination: Subscriber<Observable<T>>,\n              private closingSelector: () => Observable<any>) {\n    super(destination);\n    this.openWindow();\n  }\n\n  notifyNext(outerValue: T, innerValue: any,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, any>): void {\n    this.openWindow(innerSub);\n  }\n\n  notifyError(error: any, innerSub: InnerSubscriber<T, any>): void {\n    this._error(error);\n  }\n\n  notifyComplete(innerSub: InnerSubscriber<T, any>): void {\n    this.openWindow(innerSub);\n  }\n\n  protected _next(value: T): void {\n    this.window.next(value);\n  }\n\n  protected _error(err: any): void {\n    this.window.error(err);\n    this.destination.error(err);\n    this.unsubscribeClosingNotification();\n  }\n\n  protected _complete(): void {\n    this.window.complete();\n    this.destination.complete();\n    this.unsubscribeClosingNotification();\n  }\n\n  private unsubscribeClosingNotification(): void {\n    if (this.closingNotification) {\n      this.closingNotification.unsubscribe();\n    }\n  }\n\n  private openWindow(innerSub: InnerSubscriber<T, any> = null): void {\n    if (innerSub) {\n      this.remove(innerSub);\n      innerSub.unsubscribe();\n    }\n\n    const prevWindow = this.window;\n    if (prevWindow) {\n      prevWindow.complete();\n    }\n\n    const window = this.window = new Subject<T>();\n    this.destination.next(window);\n\n    const closingNotifier = tryCatch(this.closingSelector)();\n    if (closingNotifier === errorObject) {\n      const err = errorObject.e;\n      this.destination.error(err);\n      this.window.error(err);\n    } else {\n      this.add(this.closingNotification = subscribeToResult(this, closingNotifier));\n    }\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/windowWhen.ts","import { Operator } from '../Operator';\nimport { Subscriber } from '../Subscriber';\nimport { Observable, ObservableInput } from '../Observable';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function withLatestFrom<T, R>(project: (v1: T) => R): OperatorFunction<T, R>;\nexport function withLatestFrom<T, T2, R>(v2: ObservableInput<T2>, project: (v1: T, v2: T2) => R): OperatorFunction<T, R>;\nexport function withLatestFrom<T, T2, T3, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, project: (v1: T, v2: T2, v3: T3) => R): OperatorFunction<T, R>;\nexport function withLatestFrom<T, T2, T3, T4, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, project: (v1: T, v2: T2, v3: T3, v4: T4) => R): OperatorFunction<T, R>;\nexport function withLatestFrom<T, T2, T3, T4, T5, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => R): OperatorFunction<T, R>;\nexport function withLatestFrom<T, T2, T3, T4, T5, T6, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => R): OperatorFunction<T, R> ;\nexport function withLatestFrom<T, T2>(v2: ObservableInput<T2>): OperatorFunction<T, [T, T2]>;\nexport function withLatestFrom<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>): OperatorFunction<T, [T, T2, T3]>;\nexport function withLatestFrom<T, T2, T3, T4>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>): OperatorFunction<T, [T, T2, T3, T4]>;\nexport function withLatestFrom<T, T2, T3, T4, T5>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>): OperatorFunction<T, [T, T2, T3, T4, T5]>;\nexport function withLatestFrom<T, T2, T3, T4, T5, T6>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>): OperatorFunction<T, [T, T2, T3, T4, T5, T6]> ;\nexport function withLatestFrom<T, R>(...observables: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): OperatorFunction<T, R>;\nexport function withLatestFrom<T, R>(array: ObservableInput<any>[]): OperatorFunction<T, R>;\nexport function withLatestFrom<T, R>(array: ObservableInput<any>[], project: (...values: Array<any>) => R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Combines the source Observable with other Observables to create an Observable\n * whose values are calculated from the latest values of each, only when the\n * source emits.\n *\n * <span class=\"informal\">Whenever the source Observable emits a value, it\n * computes a formula using that value plus the latest values from other input\n * Observables, then emits the output of that formula.</span>\n *\n * <img src=\"./img/withLatestFrom.png\" width=\"100%\">\n *\n * `withLatestFrom` combines each value from the source Observable (the\n * instance) with the latest values from the other input Observables only when\n * the source emits a value, optionally using a `project` function to determine\n * the value to be emitted on the output Observable. All input Observables must\n * emit at least one value before the output Observable will emit a value.\n *\n * @example <caption>On every click event, emit an array with the latest timer event plus the click event</caption>\n * var clicks = Rx.Observable.fromEvent(document, 'click');\n * var timer = Rx.Observable.interval(1000);\n * var result = clicks.withLatestFrom(timer);\n * result.subscribe(x => console.log(x));\n *\n * @see {@link combineLatest}\n *\n * @param {ObservableInput} other An input Observable to combine with the source\n * Observable. More than one input Observables may be given as argument.\n * @param {Function} [project] Projection function for combining values\n * together. Receives all values in order of the Observables passed, where the\n * first parameter is a value from the source Observable. (e.g.\n * `a.withLatestFrom(b, c, (a1, b1, c1) => a1 + b1 + c1)`). If this is not\n * passed, arrays will be emitted on the output Observable.\n * @return {Observable} An Observable of projected values from the most recent\n * values from each input Observable, or an array of the most recent values from\n * each input Observable.\n * @method withLatestFrom\n * @owner Observable\n */\nexport function withLatestFrom<T, R>(...args: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): OperatorFunction<T, R> {\n  return (source: Observable<T>) => {\n    let project: any;\n    if (typeof args[args.length - 1] === 'function') {\n      project = args.pop();\n    }\n    const observables = <Observable<any>[]>args;\n    return source.lift(new WithLatestFromOperator(observables, project));\n  };\n}\n\nclass WithLatestFromOperator<T, R> implements Operator<T, R> {\n  constructor(private observables: Observable<any>[],\n              private project?: (...values: any[]) => Observable<R>) {\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new WithLatestFromSubscriber(subscriber, this.observables, this.project));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass WithLatestFromSubscriber<T, R> extends OuterSubscriber<T, R> {\n  private values: any[];\n  private toRespond: number[] = [];\n\n  constructor(destination: Subscriber<R>,\n              private observables: Observable<any>[],\n              private project?: (...values: any[]) => Observable<R>) {\n    super(destination);\n    const len = observables.length;\n    this.values = new Array(len);\n\n    for (let i = 0; i < len; i++) {\n      this.toRespond.push(i);\n    }\n\n    for (let i = 0; i < len; i++) {\n      let observable = observables[i];\n      this.add(subscribeToResult<T, R>(this, observable, <any>observable, i));\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: R,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this.values[outerIndex] = innerValue;\n    const toRespond = this.toRespond;\n    if (toRespond.length > 0) {\n      const found = toRespond.indexOf(outerIndex);\n      if (found !== -1) {\n        toRespond.splice(found, 1);\n      }\n    }\n  }\n\n  notifyComplete() {\n    // noop\n  }\n\n  protected _next(value: T) {\n    if (this.toRespond.length === 0) {\n      const args = [value, ...this.values];\n      if (this.project) {\n        this._tryProject(args);\n      } else {\n        this.destination.next(args);\n      }\n    }\n  }\n\n  private _tryProject(args: any[]) {\n    let result: any;\n    try {\n      result = this.project.apply(this, args);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    this.destination.next(result);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/withLatestFrom.ts","import { Observable, ObservableInput } from '../Observable';\nimport { ArrayObservable } from '../observable/ArrayObservable';\nimport { isArray } from '../util/isArray';\nimport { Operator } from '../Operator';\nimport { PartialObserver } from '../Observer';\nimport { Subscriber } from '../Subscriber';\nimport { OuterSubscriber } from '../OuterSubscriber';\nimport { InnerSubscriber } from '../InnerSubscriber';\nimport { subscribeToResult } from '../util/subscribeToResult';\nimport { iterator as Symbol_iterator } from '../symbol/iterator';\nimport { OperatorFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function zip<T, R>(project: (v1: T) => R): OperatorFunction<T, R>;\nexport function zip<T, T2, R>(v2: ObservableInput<T2>, project: (v1: T, v2: T2) => R): OperatorFunction<T, R>;\nexport function zip<T, T2, T3, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, project: (v1: T, v2: T2, v3: T3) => R): OperatorFunction<T, R>;\nexport function zip<T, T2, T3, T4, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, project: (v1: T, v2: T2, v3: T3, v4: T4) => R): OperatorFunction<T, R>;\nexport function zip<T, T2, T3, T4, T5, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => R): OperatorFunction<T, R>;\nexport function zip<T, T2, T3, T4, T5, T6, R>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => R): OperatorFunction<T, R> ;\nexport function zip<T, T2>(v2: ObservableInput<T2>): OperatorFunction<T, [T, T2]>;\nexport function zip<T, T2, T3>(v2: ObservableInput<T2>, v3: ObservableInput<T3>): OperatorFunction<T, [T, T2, T3]>;\nexport function zip<T, T2, T3, T4>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>): OperatorFunction<T, [T, T2, T3, T4]>;\nexport function zip<T, T2, T3, T4, T5>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>): OperatorFunction<T, [T, T2, T3, T4, T5]>;\nexport function zip<T, T2, T3, T4, T5, T6>(v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>): OperatorFunction<T, [T, T2, T3, T4, T5, T6]> ;\nexport function zip<T, R>(...observables: Array<ObservableInput<T> | ((...values: Array<T>) => R)>): OperatorFunction<T, R>;\nexport function zip<T, R>(array: Array<ObservableInput<T>>): OperatorFunction<T, R>;\nexport function zip<T, TOther, R>(array: Array<ObservableInput<TOther>>, project: (v1: T, ...values: Array<TOther>) => R): OperatorFunction<T, R>;\n/* tslint:enable:max-line-length */\n\n/**\n * @param observables\n * @return {Observable<R>}\n * @method zip\n * @owner Observable\n */\nexport function zip<T, R>(...observables: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): OperatorFunction<T, R> {\n  return function zipOperatorFunction(source: Observable<T>) {\n    return source.lift.call(zipStatic<R>(source, ...observables));\n  };\n}\n\n/* tslint:disable:max-line-length */\nexport function zipStatic<T, R>(v1: ObservableInput<T>, project: (v1: T) => R): Observable<R>;\nexport function zipStatic<T, T2, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, project: (v1: T, v2: T2) => R): Observable<R>;\nexport function zipStatic<T, T2, T3, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, project: (v1: T, v2: T2, v3: T3) => R): Observable<R>;\nexport function zipStatic<T, T2, T3, T4, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, project: (v1: T, v2: T2, v3: T3, v4: T4) => R): Observable<R>;\nexport function zipStatic<T, T2, T3, T4, T5, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5) => R): Observable<R>;\nexport function zipStatic<T, T2, T3, T4, T5, T6, R>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>, project: (v1: T, v2: T2, v3: T3, v4: T4, v5: T5, v6: T6) => R): Observable<R>;\n\nexport function zipStatic<T, T2>(v1: ObservableInput<T>, v2: ObservableInput<T2>): Observable<[T, T2]>;\nexport function zipStatic<T, T2, T3>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>): Observable<[T, T2, T3]>;\nexport function zipStatic<T, T2, T3, T4>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>): Observable<[T, T2, T3, T4]>;\nexport function zipStatic<T, T2, T3, T4, T5>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>): Observable<[T, T2, T3, T4, T5]>;\nexport function zipStatic<T, T2, T3, T4, T5, T6>(v1: ObservableInput<T>, v2: ObservableInput<T2>, v3: ObservableInput<T3>, v4: ObservableInput<T4>, v5: ObservableInput<T5>, v6: ObservableInput<T6>): Observable<[T, T2, T3, T4, T5, T6]>;\n\nexport function zipStatic<T>(array: ObservableInput<T>[]): Observable<T[]>;\nexport function zipStatic<R>(array: ObservableInput<any>[]): Observable<R>;\nexport function zipStatic<T, R>(array: ObservableInput<T>[], project: (...values: Array<T>) => R): Observable<R>;\nexport function zipStatic<R>(array: ObservableInput<any>[], project: (...values: Array<any>) => R): Observable<R>;\n\nexport function zipStatic<T>(...observables: Array<ObservableInput<T>>): Observable<T[]>;\nexport function zipStatic<T, R>(...observables: Array<ObservableInput<T> | ((...values: Array<T>) => R)>): Observable<R>;\nexport function zipStatic<R>(...observables: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): Observable<R>;\n/* tslint:enable:max-line-length */\n\n/**\n * Combines multiple Observables to create an Observable whose values are calculated from the values, in order, of each\n * of its input Observables.\n *\n * If the latest parameter is a function, this function is used to compute the created value from the input values.\n * Otherwise, an array of the input values is returned.\n *\n * @example <caption>Combine age and name from different sources</caption>\n *\n * let age$ = Observable.of<number>(27, 25, 29);\n * let name$ = Observable.of<string>('Foo', 'Bar', 'Beer');\n * let isDev$ = Observable.of<boolean>(true, true, false);\n *\n * Observable\n *     .zip(age$,\n *          name$,\n *          isDev$,\n *          (age: number, name: string, isDev: boolean) => ({ age, name, isDev }))\n *     .subscribe(x => console.log(x));\n *\n * // outputs\n * // { age: 27, name: 'Foo', isDev: true }\n * // { age: 25, name: 'Bar', isDev: true }\n * // { age: 29, name: 'Beer', isDev: false }\n *\n * @param observables\n * @return {Observable<R>}\n * @static true\n * @name zip\n * @owner Observable\n */\nexport function zipStatic<T, R>(...observables: Array<ObservableInput<any> | ((...values: Array<any>) => R)>): Observable<R> {\n  const project = <((...ys: Array<any>) => R)> observables[observables.length - 1];\n  if (typeof project === 'function') {\n    observables.pop();\n  }\n  return new ArrayObservable(observables).lift(new ZipOperator(project));\n}\n\nexport class ZipOperator<T, R> implements Operator<T, R> {\n\n  project: (...values: Array<any>) => R;\n\n  constructor(project?: (...values: Array<any>) => R) {\n    this.project = project;\n  }\n\n  call(subscriber: Subscriber<R>, source: any): any {\n    return source.subscribe(new ZipSubscriber(subscriber, this.project));\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nexport class ZipSubscriber<T, R> extends Subscriber<T> {\n  private values: any;\n  private project: (...values: Array<any>) => R;\n  private iterators: LookAheadIterator<any>[] = [];\n  private active = 0;\n\n  constructor(destination: Subscriber<R>,\n              project?: (...values: Array<any>) => R,\n              values: any = Object.create(null)) {\n    super(destination);\n    this.project = (typeof project === 'function') ? project : null;\n    this.values = values;\n  }\n\n  protected _next(value: any) {\n    const iterators = this.iterators;\n    if (isArray(value)) {\n      iterators.push(new StaticArrayIterator(value));\n    } else if (typeof value[Symbol_iterator] === 'function') {\n      iterators.push(new StaticIterator(value[Symbol_iterator]()));\n    } else {\n      iterators.push(new ZipBufferIterator(this.destination, this, value));\n    }\n  }\n\n  protected _complete() {\n    const iterators = this.iterators;\n    const len = iterators.length;\n\n    if (len === 0) {\n      this.destination.complete();\n      return;\n    }\n\n    this.active = len;\n    for (let i = 0; i < len; i++) {\n      let iterator: ZipBufferIterator<any, any> = <any>iterators[i];\n      if (iterator.stillUnsubscribed) {\n        this.add(iterator.subscribe(iterator, i));\n      } else {\n        this.active--; // not an observable\n      }\n    }\n  }\n\n  notifyInactive() {\n    this.active--;\n    if (this.active === 0) {\n      this.destination.complete();\n    }\n  }\n\n  checkIterators() {\n    const iterators = this.iterators;\n    const len = iterators.length;\n    const destination = this.destination;\n\n    // abort if not all of them have values\n    for (let i = 0; i < len; i++) {\n      let iterator = iterators[i];\n      if (typeof iterator.hasValue === 'function' && !iterator.hasValue()) {\n        return;\n      }\n    }\n\n    let shouldComplete = false;\n    const args: any[] = [];\n    for (let i = 0; i < len; i++) {\n      let iterator = iterators[i];\n      let result = iterator.next();\n\n      // check to see if it's completed now that you've gotten\n      // the next value.\n      if (iterator.hasCompleted()) {\n        shouldComplete = true;\n      }\n\n      if (result.done) {\n        destination.complete();\n        return;\n      }\n\n      args.push(result.value);\n    }\n\n    if (this.project) {\n      this._tryProject(args);\n    } else {\n      destination.next(args);\n    }\n\n    if (shouldComplete) {\n      destination.complete();\n    }\n  }\n\n  protected _tryProject(args: any[]) {\n    let result: any;\n    try {\n      result = this.project.apply(this, args);\n    } catch (err) {\n      this.destination.error(err);\n      return;\n    }\n    this.destination.next(result);\n  }\n}\n\ninterface LookAheadIterator<T> extends Iterator<T> {\n  hasValue(): boolean;\n  hasCompleted(): boolean;\n}\n\nclass StaticIterator<T> implements LookAheadIterator<T> {\n  private nextResult: IteratorResult<T>;\n\n  constructor(private iterator: Iterator<T>) {\n    this.nextResult = iterator.next();\n  }\n\n  hasValue() {\n    return true;\n  }\n\n  next(): IteratorResult<T> {\n    const result = this.nextResult;\n    this.nextResult = this.iterator.next();\n    return result;\n  }\n\n  hasCompleted() {\n    const nextResult = this.nextResult;\n    return nextResult && nextResult.done;\n  }\n}\n\nclass StaticArrayIterator<T> implements LookAheadIterator<T> {\n  private index = 0;\n  private length = 0;\n\n  constructor(private array: T[]) {\n    this.length = array.length;\n  }\n\n  [Symbol_iterator]() {\n    return this;\n  }\n\n  next(value?: any): IteratorResult<T> {\n    const i = this.index++;\n    const array = this.array;\n    return i < this.length ? { value: array[i], done: false } : { value: null, done: true };\n  }\n\n  hasValue() {\n    return this.array.length > this.index;\n  }\n\n  hasCompleted() {\n    return this.array.length === this.index;\n  }\n}\n\n/**\n * We need this JSDoc comment for affecting ESDoc.\n * @ignore\n * @extends {Ignored}\n */\nclass ZipBufferIterator<T, R> extends OuterSubscriber<T, R> implements LookAheadIterator<T> {\n  stillUnsubscribed = true;\n  buffer: T[] = [];\n  isComplete = false;\n\n  constructor(destination: PartialObserver<T>,\n              private parent: ZipSubscriber<T, R>,\n              private observable: Observable<T>) {\n    super(destination);\n  }\n\n  [Symbol_iterator]() {\n    return this;\n  }\n\n  // NOTE: there is actually a name collision here with Subscriber.next and Iterator.next\n  //    this is legit because `next()` will never be called by a subscription in this case.\n  next(): IteratorResult<T> {\n    const buffer = this.buffer;\n    if (buffer.length === 0 && this.isComplete) {\n      return { value: null, done: true };\n    } else {\n      return { value: buffer.shift(), done: false };\n    }\n  }\n\n  hasValue() {\n    return this.buffer.length > 0;\n  }\n\n  hasCompleted() {\n    return this.buffer.length === 0 && this.isComplete;\n  }\n\n  notifyComplete() {\n    if (this.buffer.length > 0) {\n      this.isComplete = true;\n      this.parent.notifyInactive();\n    } else {\n      this.destination.complete();\n    }\n  }\n\n  notifyNext(outerValue: T, innerValue: any,\n             outerIndex: number, innerIndex: number,\n             innerSub: InnerSubscriber<T, R>): void {\n    this.buffer.push(innerValue);\n    this.parent.checkIterators();\n  }\n\n  subscribe(value: any, index: number) {\n    return subscribeToResult<any, any>(this, this.observable, this, index);\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/zip.ts","import { ZipOperator } from './zip';\nimport { Observable } from '../Observable';\nimport { OperatorFunction } from '../interfaces';\n\nexport function zipAll<T, R>(project?: (...values: Array<any>) => R): OperatorFunction<T, R> {\n  return (source: Observable<T>) => source.lift(new ZipOperator(project));\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/operators/zipAll.ts","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/scheduler/async.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/scheduler/async.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/scheduler/async.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/symbol/iterator.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/symbol/iterator.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/symbol/iterator.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/ArgumentOutOfRangeError.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/ArgumentOutOfRangeError.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/ArgumentOutOfRangeError.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/EmptyError.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/EmptyError.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/EmptyError.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/FastMap.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/FastMap.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/FastMap.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/Map.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/Map.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/Map.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/Set.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/Set.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/Set.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/TimeoutError.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/TimeoutError.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/TimeoutError.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/errorObject.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/errorObject.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/errorObject.js\n// module chunks = 0","export function identity<T>(x: T): T {\n  return x;\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/util/identity.ts","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/isArray.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/isArray.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/isArray.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/isDate.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/isDate.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/isDate.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/isNumeric.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/isNumeric.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/isNumeric.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/isScheduler.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/isScheduler.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/isScheduler.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/noop.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/noop.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/noop.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/not.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/not.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/not.js\n// module chunks = 0","import { noop } from './noop';\nimport { UnaryFunction } from '../interfaces';\n\n/* tslint:disable:max-line-length */\nexport function pipe<T>(): UnaryFunction<T, T>;\nexport function pipe<T, A>(op1: UnaryFunction<T, A>): UnaryFunction<T, A>;\nexport function pipe<T, A, B>(op1: UnaryFunction<T, A>, op2: UnaryFunction<A, B>): UnaryFunction<T, B>;\nexport function pipe<T, A, B, C>(op1: UnaryFunction<T, A>, op2: UnaryFunction<A, B>, op3: UnaryFunction<B, C>): UnaryFunction<T, C>;\nexport function pipe<T, A, B, C, D>(op1: UnaryFunction<T, A>, op2: UnaryFunction<A, B>, op3: UnaryFunction<B, C>, op4: UnaryFunction<C, D>): UnaryFunction<T, D>;\nexport function pipe<T, A, B, C, D, E>(op1: UnaryFunction<T, A>, op2: UnaryFunction<A, B>, op3: UnaryFunction<B, C>, op4: UnaryFunction<C, D>, op5: UnaryFunction<D, E>): UnaryFunction<T, E>;\nexport function pipe<T, A, B, C, D, E, F>(op1: UnaryFunction<T, A>, op2: UnaryFunction<A, B>, op3: UnaryFunction<B, C>, op4: UnaryFunction<C, D>, op5: UnaryFunction<D, E>, op6: UnaryFunction<E, F>): UnaryFunction<T, F>;\nexport function pipe<T, A, B, C, D, E, F, G>(op1: UnaryFunction<T, A>, op2: UnaryFunction<A, B>, op3: UnaryFunction<B, C>, op4: UnaryFunction<C, D>, op5: UnaryFunction<D, E>, op6: UnaryFunction<E, F>, op7: UnaryFunction<F, G>): UnaryFunction<T, G>;\nexport function pipe<T, A, B, C, D, E, F, G, H>(op1: UnaryFunction<T, A>, op2: UnaryFunction<A, B>, op3: UnaryFunction<B, C>, op4: UnaryFunction<C, D>, op5: UnaryFunction<D, E>, op6: UnaryFunction<E, F>, op7: UnaryFunction<F, G>, op8: UnaryFunction<G, H>): UnaryFunction<T, H>;\nexport function pipe<T, A, B, C, D, E, F, G, H, I>(op1: UnaryFunction<T, A>, op2: UnaryFunction<A, B>, op3: UnaryFunction<B, C>, op4: UnaryFunction<C, D>, op5: UnaryFunction<D, E>, op6: UnaryFunction<E, F>, op7: UnaryFunction<F, G>, op8: UnaryFunction<G, H>, op9: UnaryFunction<H, I>): UnaryFunction<T, I>;\n/* tslint:enable:max-line-length */\n\nexport function pipe<T, R>(...fns: Array<UnaryFunction<T, R>>): UnaryFunction<T, R> {\n  return pipeFromArray(fns);\n}\n\n/* @internal */\nexport function pipeFromArray<T, R>(fns: Array<UnaryFunction<T, R>>): UnaryFunction<T, R> {\n  if (!fns) {\n    return noop as UnaryFunction<any, any>;\n  }\n\n  if (fns.length === 1) {\n    return fns[0];\n  }\n\n  return function piped(input: T): R {\n    return fns.reduce((prev: any, fn: UnaryFunction<T, R>) => fn(prev), input);\n  };\n}\n\n\n\n// WEBPACK FOOTER //\n// ../../src/util/pipe.ts","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/subscribeToResult.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/subscribeToResult.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/subscribeToResult.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/rxjs/util/tryCatch.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/rxjs/util/tryCatch.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/rxjs/util/tryCatch.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/webpack/buildin/global.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/webpack/buildin/global.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/webpack/buildin/global.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/webpack/buildin/module.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/webpack/buildin/module.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/webpack/buildin/module.js\n// module chunks = 0","module.exports = (__webpack_require__(\"dll-reference _shop_js_vendor_ng4\"))(\"./node_modules/zone.js/dist/zone.js\");\n\n\n//////////////////\n// WEBPACK FOOTER\n// delegated ./node_modules/zone.js/dist/zone.js from dll-reference _shop_js_vendor_ng4\n// module id = ./node_modules/zone.js/dist/zone.js\n// module chunks = 0","import {Component, Inject} from \"@angular/core\";\n\n@Component({\n    selector: 'app',\n    template: `\n        <voucher></voucher>\n    `\n})\n\nexport class AppComponent {\n\n    constructor() {\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/app.component.ts","import {NgModule} from \"@angular/core\";\nimport {AppComponent} from \"./app.component\";\nimport {VoucherServiceModule} from './service/voucher.service.module';\nimport {VoucherComponentModule} from './components/voucher/voucher.component.module';\nimport {AbstractCsiAppModule} from \"@shop/js-infrastructure-ng4-csi\";\nimport {TrackingAttributesModule} from \"@shop/js-infrastructure-ng4-comp\";\n\n@NgModule({\n    imports: [\n        VoucherComponentModule,\n        VoucherServiceModule\n    ],\n    declarations: [\n        AppComponent\n    ],\n    entryComponents: [\n        AppComponent\n    ]\n\n})\nexport class AppModule extends AbstractCsiAppModule{\n    appComponentType = AppComponent\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/app.module.ts","import {ChangeDetectionStrategy, Component, Input, OnInit} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\nimport {FeedbackMessageType} from '../../../service/voucher.service';\n\n@Component({\n    template: `\n        <div class=\"alert small\" [ngClass]=\"classObjectForMessageType\" role=\"alert\">\n            <p [innerHTML]=\"content$ | async\"\n               trackingId=\"message\"\n               data-co-uitest-element=\"vch_message\"></p>\n        </div>\n    `,\n    selector: \"feedback-message\",\n    changeDetection: ChangeDetectionStrategy.OnPush\n})\n\nexport class FeedbackMessageComponent implements OnInit {\n    @Input()\n    messageType$: Observable<FeedbackMessageType>;\n\n    @Input()\n    content$: Observable<string>;\n\n    private classObjectForMessageType: { [key: string]: boolean } = {};\n\n    ngOnInit(): void {\n        if (this.messageType$) {\n            this.messageType$.subscribe((messageType: FeedbackMessageType) => {\n                let classObject = {\n                    'alert-success': messageType === FeedbackMessageType.SUCCESS,\n                    'alert-danger': messageType === FeedbackMessageType.ERROR\n                };\n                this.classObjectForMessageType = classObject;\n            });\n        }\n\n    }\n}\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/components/voucher/child-components/feedback-message.component.ts","import { Component, EventEmitter, Input, Output } from \"@angular/core\";\nimport { Observable } from \"rxjs\";\n\n@Component({\n  template: `\n        <div>\n            <p>\n                <strong>Gutscheincode:</strong> <span\n                    trackingId=\"cdisplay\"\n                    data-co-uitest-element=\"vch_code_display\">{{ displayedVoucherCode$ | async}}</span>\n\n                <a class=\"link-action pull-right\" (click)=\"onDelete()\"\n                   trackingAttributes\n                   trackingAttributesAction=\"form\"\n                   trackingAttributesElementId=\"removeVoucherCode\">\n                    <span class=\"glyphicon glyphicon-remove\"\n                          trackingId=\"remove\"\n                          data-co-uitest-element=\"vch_code_remove\"></span>\n                    Gutscheincode entfernen\n                </a>\n            </p>\n        </div>\n    `,\n  selector: \"voucher-applied\"\n})\nexport class VoucherAppliedComponent {\n  @Input() displayedVoucherCode$: Observable<string>;\n\n  @Output() deleteVoucher: EventEmitter<void> = new EventEmitter<void>();\n\n  onDelete() {\n    this.deleteVoucher.emit();\n  }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/components/voucher/child-components/voucher-applied.component.ts","import {\n    Component,\n    EventEmitter,\n    Input,\n    OnInit,\n    Output,\n    ViewChild\n} from \"@angular/core\";\nimport {FormGroup, NgModel, Validators} from \"@angular/forms\";\nimport {VoucherValidationSpec} from \"../../../service/voucher.service\";\n\n@Component({\n    selector: \"voucher-input\",\n    template: `\n        <div class=\"voucher-input-container\">\n            <!-- TODO: OSD-1859 use this for debugging validation, remove once validation works as intended -->\n            <label for=\"voucher-code-input\">{{ voucherInputText}}</label>\n\n            <form novalidate (ngSubmit)=\"onSubmit()\" class=\"co-h__no-margin\" #voucherForm=\"ngForm\">\n                <div class=\"form-group form-group-line\">\n                    <div class=\"input\" [ngClass]=\"{'has-error has-danger': shouldShowValidationError}\">\n                        <span class=\"js-float-label hide-label\">\n                            <span class=\"float-label-text\" data-text=\"Gutscheincode\"></span>\n                            <input class=\"form-control\"\n                                   id=\"voucher-code-input\"\n                                   data-float-label=\"Gutscheincode\"\n                                   [placeholder]=\"voucherCodeText\"\n                                   name=\"voucherInput\"\n                                   #voucherInput=\"ngModel\"\n                                   ngModel\n                                   data-co-uitest-element=\"vch_code_input\"\n                                   trackingId=\"input\"\n                                   trackingAttributes\n                                   trackingAttributesAction=\"form\"\n                                   trackingAttributesElementId=\"voucherCodeInput\"\n                                   aria-describedby=\"vch-validation-error\"\n                            >\n                        </span>\n                        <span *ngIf=\"shouldShowValidationError\"\n                              id=\"vch-validation-error\"\n                              class=\"help-block with-errors\"\n                              trackingId=\"validation_errors\"\n                              data-co-uitest-element=\"vch_validation_errors\">\n                            {{getVchValidationError}}\n                        </span>\n                    </div>\n\n\n                    <div class=\"form-inline-buttons\">\n                        <button class=\"btn btn-beta btn-block\"\n                                type=\"submit\"\n                                trackingId=\"submit\"\n                                data-co-uitest-element=\"vch_code_submit\"\n                                trackingAttributes\n                                trackingAttributesAction=\"button\"\n                                trackingAttributesElementId=\"redeemVoucherCode\"\n                        >\n                          <span>{{ redeemText }}</span>  \n                        </button>\n                    </div>\n                </div>\n            </form>\n        </div>\n    `\n})\nexport class VoucherInputComponent implements OnInit {\n    @Output() applyVoucher: EventEmitter<string> = new EventEmitter();\n\n    @Input() validationSpec: VoucherValidationSpec;\n\n    @ViewChild(\"voucherInput\") private voucherInput: NgModel;\n\n    @ViewChild(\"voucherForm\") private voucherForm: FormGroup;\n\n    private formSubmitted: boolean = false;\n    @Input() voucherInputText: string;\n    @Input() voucherCodeText: string;\n    @Input() redeemText: string;\n\n    ngOnInit(): void {\n        if (this.validationSpec) {\n            this.voucherInput.control.setValidators([\n                Validators.required,\n                Validators.minLength(this.validationSpec.minLength),\n                Validators.maxLength(this.validationSpec.maxLength)\n            ]);\n        }\n    }\n\n    onSubmit() {\n        if (this.voucherForm.valid) {\n            let value = this.voucherInput.value.trim();\n            this.applyVoucher.emit(value);\n        }\n        this.formSubmitted = true;\n    }\n\n    get shouldShowValidationError(): boolean {\n        return (\n            this.voucherForm.invalid &&\n            (this.voucherForm.touched || this.formSubmitted)\n        );\n    }\n    get getVchValidationError(): string {\n        let errorMessage = \"\";\n        if (this.voucherInput.errors.required)\n            errorMessage = \"Bitte geben Sie einen Gutscheincode ein.\"\n        else if (this.voucherInput.errors.minlength)\n            errorMessage = \"Der eingegebene Gutscheincode ist zu kurz.\"\n        else if (this.voucherInput.errors.maxlength)\n            errorMessage = \"Der eingegebene Gutscheincode ist zu lang.\"\n\n        return errorMessage;\n    }\n}\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/components/voucher/child-components/voucher-input.component.ts","import {Component, EventEmitter, Input, OnInit, Output} from \"@angular/core\";\nimport {Observable} from \"rxjs\";\n\n@Component({\n    template: `\n        <div class=\"panel-group section-accordion margin-bottom-md\">\n\n            <div class=\"panel\">\n                <a href=\"javascript:void(0)\" role=\"button\" [ngClass]=\"classForPanelTitle$ | async\"\n                   (click)=\"onToggle()\"\n                   trackingId=\"panel\"\n                   data-co-uitest-element=\"vch_panel\"\n                   trackingAttributes\n                   trackingAttributesAction=\"accordion\"\n                   trackingAttributesElementId=\"redeemVoucherPanel\"\n                   >\n                  \n                    \n                    Gutschein einlösen\n                </a>\n                <div class=\"accordion-content collapse\"\n                     [ngClass]=\"classForPanel$ | async\">\n\n                    <ng-content></ng-content>\n                </div>\n            </div>\n        </div>\n    `,\n    selector: 'voucher-panel'\n})\n\nexport class VoucherPanelComponent implements OnInit {\n\n    @Input()\n    open$: Observable<boolean>;\n\n    @Output()\n    toggle = new EventEmitter<void>(); \n\n    classForPanelTitle$: Observable<{}>;\n\n    classForPanel$: Observable<{}>;\n\n    onToggle(): void {\n        this.toggle.emit();\n    }\n\n    ngOnInit(): void {\n        this.classForPanel$ = this.open$.map(open => {\n            return {\n                'in': open\n            }\n        });\n\n        this.classForPanelTitle$ = this.open$.map(open => {\n            return {\n                'collapsed': !open\n            }\n        })\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/components/voucher/child-components/voucher-panel.component.ts","import {NgModule} from \"@angular/core\";\nimport {BrowserModule} from \"@angular/platform-browser\";\nimport {VoucherAppliedComponent} from './child-components/voucher-applied.component';\nimport {VoucherInputComponent} from './child-components/voucher-input.component';\nimport {VoucherPanelComponent} from './child-components/voucher-panel.component';\nimport {VoucherComponent} from './voucher.component';\nimport {FeedbackMessageComponent} from './child-components/feedback-message.component';\nimport {FormsModule, ReactiveFormsModule} from '@angular/forms';\nimport {\n    TrackingAttributesModule,\n    TrackingContextComponent,\n    TrackingIdComponent\n} from \"@shop/js-infrastructure-ng4-comp\";\n\n@NgModule({\n    imports: [\n        BrowserModule,\n        FormsModule,\n        ReactiveFormsModule,\n        TrackingAttributesModule\n    ],\n    declarations: [\n        VoucherComponent,\n        VoucherPanelComponent,\n        VoucherInputComponent,\n        VoucherAppliedComponent,\n        FeedbackMessageComponent,\n        TrackingIdComponent,\n        TrackingContextComponent\n    ],\n    exports: [\n        VoucherComponent\n    ]\n\n})\nexport class VoucherComponentModule {\n}\n\n\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/components/voucher/voucher.component.module.ts","import {ChangeDetectionStrategy, Component, OnInit} from '@angular/core';\nimport {FeedbackMessageType, VoucherService, VoucherValidationSpec} from '../../service/voucher.service';\nimport {Observable} from \"rxjs\";\n\n\n@Component({\n    template: `\n        <div>\n            <voucher-panel [open$]=\"panelOpen$\"\n                           (toggle)=\"onTogglePanel()\"\n                           trackingContext=\"voucher\">\n                <feedback-message *ngIf=\"hasFeedbackMessage$ | async\"\n                                  [messageType$]=\"feedbackMessageType$\"\n                                  [content$]=\"feedbackMessage$\"\n                                  trackingContext=\"feedback\">\n                </feedback-message>\n\n                <voucher-input *ngIf=\"voucherInputMode$ | async\"\n                               (applyVoucher)=\"onApplyVoucher($event)\"\n                               [validationSpec]=\"validationSpec$ | async\"\n                               [voucherInputText]=\"voucherInputText$ | async\"\n                               [voucherCodeText]=\"voucherCodeText$ | async\"\n                               [redeemText]=\"redeemText$ | async\"\n                               trackingContext=\"input\">\n                </voucher-input>\n                <voucher-applied *ngIf=\"!(voucherInputMode$ | async)\"\n                                 [displayedVoucherCode$]=\"displayedVoucherCode$\"\n                                 (deleteVoucher)=\"onDeleteVoucher()\"\n                                 trackingContext=\"applied\">\n\n                </voucher-applied>\n            </voucher-panel>\n        </div>`,\n    selector: 'voucher',\n    // fast change detection possible because observables and immutable data structures are used\n    changeDetection: ChangeDetectionStrategy.OnPush\n})\n\nexport class VoucherComponent implements OnInit {\n\n    constructor(readonly voucherService: VoucherService) {\n    }\n\n    ngOnInit(): void {\n    }\n\n    onApplyVoucher(voucherCode: string) {\n        this.voucherService.applyVoucher(voucherCode);\n    }\n\n    onDeleteVoucher() {\n        this.voucherService.deleteVoucher();\n    }\n\n    onTogglePanel() {\n        this.voucherService.togglePanel();\n    }\n\n    validationSpec$: Observable<VoucherValidationSpec> = this.voucherService.voucherValidationSpec$;\n\n    panelOpen$: Observable<boolean> = this.voucherService.panelOpen$;\n\n    feedbackMessageType$: Observable<FeedbackMessageType> = this.voucherService.feedbackMessageType$;\n\n    feedbackMessage$: Observable<string> = this.voucherService.feedbackMessage$;\n\n    voucherInputMode$: Observable<boolean> = this.voucherService.voucherInputMode$;\n\n    hasFeedbackMessage$: Observable<boolean> = this.voucherService.hasFeedbackMessage$;\n\n    displayedVoucherCode$: Observable<string> = this.voucherService.displayedVoucherCode$;\n\n    voucherInputText$: Observable<string> = this.voucherService.voucherInputText$;\n\n    voucherCodeText$: Observable<string> = this.voucherService.voucherCodeText$;\n\n    redeemText$: Observable<string> = this.voucherService.redeemText$;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/components/voucher/voucher.component.ts","import {Property, PostCall} from \"@shop/js-infrastructure-generic-datatypes\";\nimport {VoucherValueType} from '../stores/voucher/values/voucher-value-type';\nimport {AppliedVoucherValue} from '../stores/voucher/values/applied-voucher.value';\nimport {VoucherValidationSpecValue} from \"../stores/voucher/values/voucher-validation-spec.value\";\n\n@VoucherValueType()\nexport class VoucherPageValue {\n\n    @Property({nullable: true})\n    readonly appliedVoucher?: AppliedVoucherValue;\n\n    @Property()\n    readonly applyVoucherCall: PostCall<AppliedVoucherValue>;\n\n    @Property()\n    readonly voucherValidationSpec: VoucherValidationSpecValue;\n\n    @Property()\n    readonly voucherInputText: string;\n\n    @Property()\n    readonly voucherCodeText: string;\n\n    @Property()\n    readonly redeemText: string;\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/page-value/voucher-page.value.ts","import {ShopApplicationModule} from '@shop/js-infrastructure-ng4-store';\nimport {VoucherService} from './voucher.service';\nimport {VoucherPageValue} from '../page-value/voucher-page.value';\nimport {VoucherReducer} from '../stores/voucher/reducers/voucher.reducer';\nimport {VoucherPageValueReducer} from '../stores/voucher/reducers/voucher.page-value.reducer';\nimport {VoucherUiStateValue} from '../stores/voucher/values/voucher-ui-state.value';\nimport {VoucherRootStateValue} from '../stores/voucher/values/voucher-root-state.value';\nimport {AbstractVoucherAction} from '../stores/voucher/actions/abstract-voucher.action';\nimport {NgModule} from '@angular/core';\nimport {StoreCsiModule} from \"@shop/js-infrastructure-ng4-store-csi\";\nimport {CsiModule} from \"@shop/js-infrastructure-ng4-csi\";\n\n@NgModule({\n    imports: [\n        ShopApplicationModule,\n        CsiModule,\n        StoreCsiModule,\n    ],\n    providers: [\n        ShopApplicationModule.forRootComponent({\n            extensionName: 'voucher',\n            actionBaseType: AbstractVoucherAction,\n            initialStoreValue: VoucherRootStateValue.create({\n                uiState: VoucherUiStateValue.create({\n                    panelOpen: false,\n                    displayedVoucherCode: null,\n                    currentFeedbackMessage: null,\n                    voucherEditable: true,\n                    voucherInputMode: true,\n                    voucherInputText: '',\n                    voucherCodeText: '',\n                    redeemText: ''\n                })\n            }),\n            reducers: [\n                VoucherPageValueReducer,\n                VoucherReducer\n            ],\n            pageValue: {\n                customReducer: true,\n                pageValueType: VoucherPageValue\n            }\n        }),\n        VoucherService\n    ]\n})\nexport class VoucherServiceModule {}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/service/voucher.service.module.ts","import {VoucherRootStateValue} from '../stores/voucher/values/voucher-root-state.value';\nimport {AbstractStoreService, IExtensionStore, OnAction} from '@shop/js-infrastructure-ng4-store';\nimport {Injectable} from '@angular/core';\nimport {Actions} from \"@ngrx/effects\";\n\nimport {ApplyVoucherAction} from \"../stores/voucher/actions/apply-voucher-action\";\nimport {VoucherAppliedAction} from \"../stores/voucher/actions/voucher-applied-action\";\nimport {AppliedVoucherValue} from \"../stores/voucher/values/applied-voucher.value\";\nimport {DeleteVoucherAction} from \"../stores/voucher/actions/delete-voucher-action\";\nimport {VoucherDeletedAction} from \"../stores/voucher/actions/voucher-deleted-action\";\nimport {Observable} from \"rxjs/Observable\";\nimport {VoucherResultType} from \"../stores/voucher/values/voucher-result-type.enum\";\nimport {ToggleVoucherPanelAction} from \"../stores/voucher/actions/toggle-voucher-panel.action\";\nimport {VoucherEnumType} from '../stores/voucher/values/voucher-enum-type';\nimport {AbstractEnum} from \"@shop/js-infrastructure-generic-datatypes\";\nimport {VoucherBenefitChangedCsiOutboundAction} from \"../stores/voucher/actions/voucher-benefit-changed-csi-outbound.action\";\n\n@Injectable()\nexport class VoucherService extends AbstractStoreService<VoucherRootStateValue> {\n\n    constructor(store: IExtensionStore<VoucherRootStateValue>, actions: Actions) {\n        super(store, actions);\n    }\n\n    readonly feedbackMessage$: Observable<string> = this.select(data => (data && data.uiState.currentFeedbackMessage) || null);\n    readonly feedbackMessageType$: Observable<FeedbackMessageType> = this.select(data =>\n        data && data.appliedVoucher && data.appliedVoucher.validationResult === VoucherResultType.ACCEPTED\n        ? FeedbackMessageType.SUCCESS\n        : FeedbackMessageType.ERROR);\n    readonly hasFeedbackMessage$: Observable<boolean> = this.feedbackMessage$.map(message => !!message);\n    readonly voucherInputMode$: Observable<boolean> = this.select(data => (data && data.uiState.voucherInputMode) || false);\n\n    // UI state\n    readonly panelOpen$: Observable<boolean> = this.select(data => (data && data.uiState.panelOpen) || false);\n    readonly displayedVoucherCode$: Observable<string> = this.select(data => (data && data.uiState.displayedVoucherCode) || null);\n    readonly voucherValidationSpec$: Observable<VoucherValidationSpec> = this.select(data => (data && data.voucherValidationSpec) || null);\n\n    voucherInputText$ = this.select(state => state.uiState.voucherInputText || 'Enter voucher Text');\n    voucherCodeText$ = this.select(state => state.uiState.voucherCodeText || 'Enter voucher Code');\n    redeemText$ = this.select(state => state.uiState.redeemText || 'Enter voucher ButtonText');\n\n    @OnAction()\n    private onApplyVoucher(action: ApplyVoucherAction) {\n        this.callWithPayload(\n            this.currentState.applyVoucherCall.withData(action.voucherCode),\n            AppliedVoucherValue,\n            (appliedVoucher: AppliedVoucherValue) => new VoucherAppliedAction(appliedVoucher)\n        );\n    }\n\n    @OnAction()\n    private onVoucherApplied(action: VoucherAppliedAction) {\n        this.dispatch(new VoucherBenefitChangedCsiOutboundAction());\n    }\n\n    @OnAction()\n    private onVoucherDeleted(action: VoucherDeletedAction) {\n        this.dispatch(new VoucherBenefitChangedCsiOutboundAction());\n    }\n\n\n    @OnAction()\n    private onDeleteVoucher(action: DeleteVoucherAction) {\n        this.callWithoutPayload(\n            this.currentState.appliedVoucher.unapplyVoucherCall,\n            () => new VoucherDeletedAction()\n        );\n    }\n\n    applyVoucher(voucherCode: string): void {\n        this.dispatch(new ApplyVoucherAction(voucherCode));\n\n    }\n\n    deleteVoucher(): void {\n        this.dispatch(new DeleteVoucherAction());\n    }\n\n    togglePanel(): void {\n        this.dispatch(new ToggleVoucherPanelAction());\n    }\n}\n\n@VoucherEnumType()\nexport class FeedbackMessageType extends AbstractEnum {\n    static readonly SUCCESS = new FeedbackMessageType();\n    static readonly ERROR = new FeedbackMessageType();\n\n    toString(): string {\n        return this.name;\n    }\n}\n\nexport interface VoucherValidationSpec{\n    readonly minLength: number;\n    readonly maxLength: number;\n}\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/service/voucher.service.ts","import {AbstractBaseAction} from \"@shop/js-infrastructure-ng4-store\";\n\nexport abstract class AbstractVoucherAction extends AbstractBaseAction {\n\n    public static readonly NAMESPACE = \"voucher\";\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/actions/abstract-voucher.action.ts","import {AbstractVoucherAction} from './abstract-voucher.action';\n\nexport class ApplyVoucherAction extends AbstractVoucherAction {\n\n    constructor(public readonly voucherCode:string) {\n        super();\n    }\n}\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/actions/apply-voucher-action.ts","import {AbstractVoucherAction} from './abstract-voucher.action';\n\nexport class DeleteVoucherAction extends AbstractVoucherAction {\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/actions/delete-voucher-action.ts","import {AbstractVoucherAction} from './abstract-voucher.action';\n\nexport class ToggleVoucherPanelAction extends AbstractVoucherAction {\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/actions/toggle-voucher-panel.action.ts","import {AbstractVoucherAction} from './abstract-voucher.action';\nimport {AppliedVoucherValue} from '../values/applied-voucher.value';\n\nexport class VoucherAppliedAction extends AbstractVoucherAction {\n\n    constructor(public readonly appliedVoucher: AppliedVoucherValue) {\n        super();\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/actions/voucher-applied-action.ts","\nimport {CsiOutboundAction} from \"@shop/js-infrastructure-ng4-store-csi\";\nimport {AbstractVoucherAction} from \"./abstract-voucher.action\";\n\n/**\n * This action is used to notify the parent application that the benefits has changed.\n */\n@CsiOutboundAction(\n    // ATTENTION: Don't change this string as it is the message type the parent application is listening to.\n    \"voucher-benefit-changed\"\n)\nexport class VoucherBenefitChangedCsiOutboundAction extends AbstractVoucherAction{\n    constructor(){\n        super();\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/actions/voucher-benefit-changed-csi-outbound.action.ts","import {AbstractVoucherAction} from './abstract-voucher.action';\nimport {AppliedVoucherValue} from '../values/applied-voucher.value';\n\nexport class VoucherDeletedAction extends AbstractVoucherAction {\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/actions/voucher-deleted-action.ts","import {VoucherRootStateValue} from \"../values/voucher-root-state.value\";\nimport {AppliedVoucherValue} from \"../values/applied-voucher.value\";\nimport {VoucherResultType} from \"../values/voucher-result-type.enum\";\nimport {VoucherUiStateValue} from \"../values/voucher-ui-state.value\";\n\nexport function computeUiStateWithAppliedVoucher(state: VoucherRootStateValue, appliedVoucher: AppliedVoucherValue): VoucherRootStateValue {\n    return state.update({\n        appliedVoucher: appliedVoucher,\n        uiState: (s) => s.update({\n            displayedVoucherCode: appliedVoucher.voucherCode,\n            currentFeedbackMessage: appliedVoucher.feedbackMessage,\n            voucherInputMode: appliedVoucher.validationResult !== VoucherResultType.ACCEPTED,\n            panelOpen: true,\n            voucherInputText: state.voucherInputText,\n            voucherCodeText: state.voucherCodeText,\n            redeemText: state.redeemText\n        })\n    });\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/reducers/reducer-utils.ts","import {VoucherRootStateValue} from '../values/voucher-root-state.value';\nimport {VoucherPageValue} from '../../../page-value/voucher-page.value';\nimport {AbstractMethodReducer, PageValueAction, ReducerMethod} from \"@shop/js-infrastructure-ng4-store\";\nimport {computeUiStateWithAppliedVoucher} from \"./reducer-utils\";\n\nexport class VoucherPageValueReducer extends AbstractMethodReducer<PageValueAction, VoucherRootStateValue> {\n\n    @ReducerMethod()\n    computeInitialStateFromPageValue(state: VoucherRootStateValue, action: PageValueAction): VoucherRootStateValue {\n        let pageValue: VoucherPageValue = action.pageValue;\n\n        let initialState = state.update({\n            appliedVoucher: pageValue.appliedVoucher,\n            applyVoucherCall: pageValue.applyVoucherCall,\n            voucherValidationSpec: pageValue.voucherValidationSpec,\n            voucherInputText: pageValue.voucherInputText,\n            voucherCodeText: pageValue.voucherCodeText,\n            redeemText: pageValue.redeemText,\n\n            uiState: s => s.update({\n                voucherInputText: pageValue.voucherInputText,\n                voucherCodeText: pageValue.voucherCodeText,\n                redeemText: pageValue.redeemText\n            })\n        });\n\n        return pageValue.appliedVoucher\n            ? computeUiStateWithAppliedVoucher(initialState, pageValue.appliedVoucher)\n            : initialState;\n    }\n\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/reducers/voucher.page-value.reducer.ts","import {AbstractMethodReducer, ReducerMethod} from '@shop/js-infrastructure-ng4-store';\nimport {VoucherRootStateValue} from '../values/voucher-root-state.value';\nimport {ApplyVoucherAction} from '../actions/apply-voucher-action';\nimport {VoucherAppliedAction} from \"../actions/voucher-applied-action\";\nimport {VoucherDeletedAction} from \"../actions/voucher-deleted-action\";\nimport {VoucherResultType} from \"../values/voucher-result-type.enum\";\nimport {ToggleVoucherPanelAction} from \"../actions/toggle-voucher-panel.action\";\nimport {AppliedVoucherValue} from \"../values/applied-voucher.value\";\nimport {computeUiStateWithAppliedVoucher} from \"./reducer-utils\";\n\nexport class VoucherReducer extends AbstractMethodReducer<ApplyVoucherAction, VoucherRootStateValue> {\n\n    @ReducerMethod()\n    applyVoucher(state: VoucherRootStateValue, action: ApplyVoucherAction): VoucherRootStateValue {\n        return state.update({\n            uiState: (s) => s.update({\n                voucherEditable: false\n            })\n        });\n    }\n\n    @ReducerMethod()\n    voucherApplied(state: VoucherRootStateValue, action: VoucherAppliedAction): VoucherRootStateValue {\n        return computeUiStateWithAppliedVoucher(state, action.appliedVoucher);\n    }\n\n    @ReducerMethod()\n    deleteVoucher(state: VoucherRootStateValue, action: VoucherDeletedAction): VoucherRootStateValue {\n        return state.update({\n            appliedVoucher: null,\n            uiState: (s) => s.update({\n                displayedVoucherCode: null,\n                voucherEditable: true,\n                displayVoucherCode: null,\n                currentFeedbackMessage: null,\n                voucherInputMode: true,\n                voucherInputText: state.voucherInputText,\n                voucherCodeText: state.voucherCodeText,\n                redeemText: state.redeemText\n            }),\n        });\n    }\n\n    @ReducerMethod()\n    tooglePanel(state: VoucherRootStateValue, action: ToggleVoucherPanelAction): VoucherRootStateValue {\n        return state.update({\n            uiState: (s) => s.update({\n                panelOpen: open => !open\n            })\n        });\n    }\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/reducers/voucher.reducer.ts","import {AbstractStoreValue} from \"@shop/js-infrastructure-ng4-store\";\nimport {Property, PostCall} from \"@shop/js-infrastructure-generic-datatypes\";\nimport {VoucherValueType} from './voucher-value-type';\nimport {VoucherResultType} from './voucher-result-type.enum';\n\n@VoucherValueType()\nexport class AppliedVoucherValue extends AbstractStoreValue {\n\n    @Property()\n    readonly voucherCode: string;\n\n    @Property()\n    readonly validationResult: VoucherResultType;\n\n    @Property()\n    readonly feedbackMessage: string;\n\n    @Property()\n    readonly unapplyVoucherCall: PostCall<any>;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/values/applied-voucher.value.ts","import {EnumType} from \"@shop/js-infrastructure-generic-datatypes\";\n\nexport function VoucherEnumType() {\n    return EnumType(\"voucher\");\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/values/voucher-enum-type.ts","import {VoucherEnumType} from './voucher-enum-type';\nimport {AbstractEnum} from \"@shop/js-infrastructure-generic-datatypes\";\n\n@VoucherEnumType()\nexport class VoucherResultType extends AbstractEnum {\n\n    /**\n     * The voucher code was accepted.\n     */\n    static readonly ACCEPTED = new VoucherResultType();\n\n    /**\n     * The user tried to apply a voucher on top of another one already applied.\n     */\n    static readonly UNSUPPORTED_MULTIPLE_VOUCHERS = new VoucherResultType();\n\n    /**\n     * The voucher could not be applied because the cart was empty.\n     */\n    static readonly EMPTY_CART = new VoucherResultType();\n\n    /**\n     * An unexpected error occurred when applying the voucher.\n     */\n    static readonly UNEXPECTED_ERROR = new VoucherResultType();\n\n    // TODO Add error message documentation when available in MCE docs\n    static readonly INVALID_PRODUCT_ID = new VoucherResultType();\n    static readonly INVALID_VO_NUMBER = new VoucherResultType();\n    static readonly VOUCHER_ALREADY_CASHED_IN = new VoucherResultType();\n    static readonly VOUCHER_EXPIRED = new VoucherResultType();\n    static readonly VOUCHER_PROFILE_NOT_VALID_YET = new VoucherResultType();\n    static readonly VOUCHER_NOT_VALID_FOR_CHOSEN_PRODUCT = new VoucherResultType();\n    static readonly ALLOWED_CASHINS_COMPLETED = new VoucherResultType();\n    static readonly WRONG_CASHIN_SALES_CHANNEL = new VoucherResultType();\n    static readonly VOUCHER_PROFILE_STOPPED = new VoucherResultType();\n    static readonly VOUCHER_PROFILE_EXPIRED = new VoucherResultType();\n    static readonly DUPLICATE_RESERVATION_REQUEST = new VoucherResultType();\n    static readonly ALLOWED_CASHINS_FOR_VO_COMPLETED = new VoucherResultType();\n    static readonly FRAME_CONTRACT_NOT_VALID = new VoucherResultType();\n    static readonly VO_NOT_VALID_FOR_PROFILE = new VoucherResultType();\n    static readonly INVALID_VOUCHER_CATEGORY = new VoucherResultType();\n    static readonly INVALID_VOUCHER_CODE = new VoucherResultType();\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/values/voucher-result-type.enum.ts","import {AbstractRootStoreValue} from \"@shop/js-infrastructure-ng4-store\";\nimport {VoucherValueType} from './voucher-value-type';\nimport {VoucherUiStateValue} from './voucher-ui-state.value';\nimport {AppliedVoucherValue} from './applied-voucher.value';\nimport {PostCall, Property} from \"@shop/js-infrastructure-generic-datatypes\";\nimport {VoucherValidationSpecValue} from \"./voucher-validation-spec.value\";\n\n\n@VoucherValueType()\nexport class VoucherRootStateValue extends AbstractRootStoreValue {\n\n    @Property({nullable: true})\n    readonly appliedVoucher?: AppliedVoucherValue;\n\n    @Property({nullable: true})\n    readonly applyVoucherCall?: PostCall<AppliedVoucherValue>;\n\n    @Property({nullable: true})\n    readonly voucherValidationSpec?: VoucherValidationSpecValue;\n\n    @Property()\n    readonly uiState: VoucherUiStateValue;\n\n    @Property()\n    readonly voucherInputText: string;\n\n    @Property()\n    readonly voucherCodeText: string;\n\n    @Property()\n    readonly redeemText: string;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/values/voucher-root-state.value.ts","import { AbstractStoreValue} from \"@shop/js-infrastructure-ng4-store\";\nimport {VoucherValueType} from './voucher-value-type';\nimport {Property} from \"@shop/js-infrastructure-generic-datatypes\";\n\n@VoucherValueType()\nexport class VoucherUiStateValue extends AbstractStoreValue {\n\n    @Property()\n    readonly panelOpen: boolean;\n\n    @Property()\n    readonly voucherEditable: boolean;\n\n    @Property({nullable:true})\n    readonly currentFeedbackMessage: string | null;\n\n    @Property({nullable:true})\n    readonly displayedVoucherCode: string | null;\n\n    @Property()\n    readonly voucherInputMode: boolean\n\n    @Property()\n    readonly voucherInputText: string;\n\n    @Property()\n    readonly voucherCodeText: string;\n\n    @Property()\n    readonly redeemText: string;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/values/voucher-ui-state.value.ts","import {VoucherValueType} from \"./voucher-value-type\";\nimport {Property} from \"@shop/js-infrastructure-generic-datatypes\";\n\n@VoucherValueType()\nexport class VoucherValidationSpecValue {\n    /**\n     * The minimum length of the voucher code.\n     */\n    @Property()\n    readonly minLength: number;\n\n    /**\n     * The maximum length of the voucher code.\n     */\n    @Property()\n    readonly maxLength: number;\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/values/voucher-validation-spec.value.ts","import {ValueType} from \"@shop/js-infrastructure-generic-datatypes\";\n\nexport function VoucherValueType() {\n    return ValueType(\"voucher\");\n}\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/app/stores/voucher/values/voucher-value-type.ts","import \"reflect-metadata\"; //this must be imported before zone.js ... otherwise the ng will not boot\nimport 'zone.js';\nimport 'core-js/es7/reflect';\nimport \"rxjs/Rx\"\nimport {AppModule} from \"./app/app.module\";\nimport {createCsiBootstrapForNg4Module} from \"@shop/js-infrastructure-ng4-csi\";\n\nexport let bootstrap = createCsiBootstrapForNg4Module(AppModule);\n\n\n\n// WEBPACK FOOTER //\n// ./src/main/typescript/index.ts","module.exports = _shop_js_vendor_ng4;\n\n\n//////////////////\n// WEBPACK FOOTER\n// external \"_shop_js_vendor_ng4\"\n// module id = dll-reference _shop_js_vendor_ng4\n// module chunks = 0"],"sourceRoot":""}